Skip to main content

@novorender/web_app / RenderStateGrid

Interface: RenderStateGrid

Grid related render state.

Properties

axisX

readonly axisX: ReadonlyVec3;

The grid's x-axis in world space.

Defined in

@novorender/core3d/state/index.ts:320


axisY

readonly axisY: ReadonlyVec3;

The grid's y-axis in world space.

Defined in

@novorender/core3d/state/index.ts:323


color1

readonly color1: RGB;

Color of minor grid lines.

Defined in

@novorender/core3d/state/index.ts:311


color2

readonly color2: RGB;

Color of major grid lines.

Defined in

@novorender/core3d/state/index.ts:314


distance

readonly distance: number;

Max distance to render grid in meters.

Defined in

@novorender/core3d/state/index.ts:336


enabled

readonly enabled: boolean;

Turn grid on and off.

Defined in

@novorender/core3d/state/index.ts:308


origin

readonly origin: ReadonlyVec3;

The grid's origin/center coordinate in world space.

Defined in

@novorender/core3d/state/index.ts:317


size1

readonly size1: number;

Minor grid cell size

Default Value

1

Defined in

@novorender/core3d/state/index.ts:328


size2

readonly size2: number;

Major grid cell size

Default Value

10

Defined in

@novorender/core3d/state/index.ts:333