Last updated

API / geotoolkit3d / scene / grid / Grid / Grid

Namespace: Grid

grid.Grid.Grid

Table of contents

Type Aliases

Contents

Type Aliases

FormatterCallback

Ƭ FormatterCallback: (value: number, axisSize?: number) => string

Type declaration

▸ (value, axisSize?): string

Parameters
Name Type
valuenumber
Optional axisSizenumber
Returns

string


Formatters

Ƭ Formatters: Object

Type declaration

NameTypeDescription
xFormatterCallbackThe label text formatter for the X axis
yFormatterCallbackThe label text formatter for the Y axis
zFormatterCallbackThe label text formatter for the Z axis

LineStyle

Ƭ LineStyle: Object

Type declaration

NameTypeDescription
x?TypeThe X grid line style
y?TypeThe Y grid line style
z?TypeThe Z grid line style

ModeCallback

Ƭ ModeCallback: (gridPlane: ThreeObject3D, scene: Scene, camera: PerspectiveCamera | OrthographicCamera) => boolean

Type declaration

▸ (gridPlane, scene, camera): boolean

Callback function to define which plane of the grid should be visible. See Mode methods for the built-in modes.

Parameters
Name Type
gridPlaneThreeObject3D
sceneScene
cameraPerspectiveCamera | OrthographicCamera
Returns

boolean


Options

Ƭ Options: Omit<Options, "isselectable"> & { axis?: { distance?: number ; formatters?: { x?: FormatterCallback ; y?: FormatterCallback ; z?: FormatterCallback } ; linestyles?: { x?: Type ; y?: Type ; z?: Type } ; outlines?: OutlinesOptions ; textstyles?: { x?: Type ; y?: Type ; z?: Type } } ; counts?: Vector3 ; end?: Vector3 ; grid?: { linestyles?: { x?: Type ; y?: Type ; z?: Type } } ; levels?: Range ; mode?: Mode | ModeCallback ; modelend?: Vector3 ; modelstart?: Vector3 ; planecolor?: string | Color ; planeopacity?: number ; start?: Vector3 ; tickgenerators?: TickGenerators ; title?: { distance?: number ; outlines?: OutlinesOptions ; texts?: { x?: string ; y?: string ; z?: string } ; textstyles?: { x?: Type ; y?: Type ; z?: Type } } }

The options


OptionsBase

Ƭ OptionsBase: Options

The options


OptionsBaseOut

Ƭ OptionsBaseOut: Required<OptionsBase & Options>


OutlinesOptions

Ƭ OutlinesOptions: Object

Type declaration

NameTypeDescription
x?OutlineOptionsThe labels outline options on the X axis
y?OutlineOptionsThe labels outline options on the Y axis
z?OutlineOptionsThe labels outline options on the Z axis

PlaneName

Ƭ PlaneName: "right" | "left" | "bottom" | "top" | "front" | "back"


TextStyles

Ƭ TextStyles: Object

Type declaration

NameTypeDescription
x?TypeThe text style for the X axis
y?TypeThe text style for the Y axis
z?TypeThe text style for the Z axis

TickGenerators

Ƭ TickGenerators: Object

Type declaration

NameTypeDescription
x?TickGeneratorThe tick generator to use for the X axis
y?TickGeneratorThe tick generator to use for the Y axis
z?TickGeneratorThe tick generator to use for the Z axis