Interface InfiniteGridOptions

Infinite grid component options

InfiniteGridOptions

2024.7.8

yisky

interface InfiniteGridOptions {
    cellSize?: number;
    color?: ColorRepresentation;
    lineWidth?: number;
    lookAt?: Vector3;
    minHeight?: number;
    occluded?: boolean;
    onAfterRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void);
    onBeforeRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void);
    position?: Vector3;
    quaternion?: Quaternion;
    queryMask?: QueryMask;
    renderOrder?: RenderOrder;
    rotation?: Euler;
    scale?: Vector3;
    userData?: {
        [key: string]: any;
    };
}

Hierarchy (view full)

Properties

cellSize?: number

Grid cell size, 100.0

InfiniteGridOptions

color?: ColorRepresentation

Grid color, '#ffffff'

InfiniteGridOptions

lineWidth?: number

Grid line width, 1.0 pixel

InfiniteGridOptions

lookAt?: Vector3

Rotates the object to face a point in world space.

LightformerOptions

minHeight?: number

Grid min height, 1000.0

InfiniteGridOptions

occluded?: boolean

Specifies whether the grid can be occluded, true.

InfiniteGridOptions

onAfterRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void)

After render callback

RendererOptions

onBeforeRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void)

Before render callback

RendererOptions

position?: Vector3

Local Position

LightformerOptions

quaternion?: Quaternion

Local quaternion

RendererOptions

queryMask?: QueryMask

Query mask

RendererOptions

renderOrder?: RenderOrder

Render order

RendererOptions

rotation?: Euler

Local rotation

LightformerOptions

scale?: Vector3

Local Scale

LightformerOptions

userData?: {
    [key: string]: any;
}

The component user data, default is {}

ComponentOptions