Reference·JavaScript · @bimworks/viewer3dJavaScript

GridOptions

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface GridOptions

Members#

Member Kind Description
axisXColor Property Colour of the X axis line. Set its alpha to 0 to hide it.
axisYColor Property Colour of the Y axis line. Set its alpha to 0 to hide it.
elevation Property Elevation of the grid plane in meters. Default 0.
majorColor Property Colour of every tenth line.
minorColor Property Colour of the subdivision lines.
opacity Property Overall opacity multiplier, 0..1. Default 1.
snapping Property Whether grid intersections act as snapping targets for measurements and tools, on the same footing as model vertices. Default true. Turning this off leaves t…

axisXColor#

TypeScript#
axisXColor?: (number)[]

Colour of the X axis line. Set its alpha to 0 to hide it.

axisYColor#

TypeScript#
axisYColor?: (number)[]

Colour of the Y axis line. Set its alpha to 0 to hide it.

elevation#

TypeScript#
elevation?: number

Elevation of the grid plane in meters. Default 0.

majorColor#

TypeScript#
majorColor?: (number)[]

Colour of every tenth line.

minorColor#

TypeScript#
minorColor?: (number)[]

Colour of the subdivision lines.

opacity#

TypeScript#
opacity?: number

Overall opacity multiplier, 0..1. Default 1.

snapping#

TypeScript#
snapping?: boolean

Whether grid intersections act as snapping targets for measurements and tools, on the same footing as model vertices. Default true. Turning this off leaves the grid visible but inert.