OptionalautoSize?: booleanenable automatic sizing and positioning of the box grid according to its child elements
OptionalautoSizePadding?: number | Vec3 | BoxPaddingpadding when autosize is enabled
OptionalautoSizeUpdateRate?: numberupdate frequency in ms when autosize is enabled
OptionalaxesColor?: string | number | Coloraxes color
OptionalaxesLineWidth?: numberaxes line width as a factor of cell size
OptionalaxesTickSize?: numberthe axes tick size as a factor of cell size
Optionalbackground?: string | Color | numberbackground color of the grid planes
OptionalbackgroundOpacity?: numberopacity of the grid planes background color
OptionalcellSize?: numberthe size of a grid cell in world units
OptionalenableProjection?: booleanif enabled, project a shade of the objects within the grid planes, using an orthographic camera
OptionalgridColorMajor?: string | number | Colorthe color of the major grid lines
OptionalgridColorMinor?: string | number | Colorthe color of the minor/sub division grid lines
OptionalgridLineWidth?: numberline width as a factor of the cell size
OptionalgridOrigin?: Vec3world coordinates of the grid origin (origo)
OptionalgridScale?: Vec3scale determining axes values and direction along each axis
Optionalopacity?: numberopacity of the grid planes (including grid lines)
OptionaloriginValue?: Vec3the axes values at the specified origin (default 0,0,0)
OptionalprojectionColor?: string | number | Colorthe color of the projected shade when projection is enabled
OptionalprojectionRefreshRate?: numberthe update frequency of the projected texture when projection is enabled (ms)
OptionalprojectionResolution?: numberthe quality/size of the projection texture used when projection is enabled
OptionalshowRulers?: booleanshow rulers on the grid planes at the intersection point of the pointer
Optionalsize?: Vec3size of the grid box in world units
OptionalsubDivisions?: numbernumber of sub divisions of a grid cell
BoxGrid props