Skip to main content
Version: Next

Class: AxisGizmoTool

@cognite/reveal/tools.AxisGizmoTool

Class for axis gizmo like the one in Blender

Hierarchy

Constructors

constructor

new AxisGizmoTool(option?): AxisGizmoTool

Parameters

NameType
option?AxisGizmoOptions

Returns

AxisGizmoTool

Overrides

Cognite3DViewerToolBase.constructor

Defined in

packages/tools/src/AxisGizmo/AxisGizmoTool.ts:48

Accessors

options

get options(): AxisGizmoOptions

Returns

AxisGizmoOptions

Defined in

packages/tools/src/AxisGizmo/AxisGizmoTool.ts:100

Methods

connect

connect(viewer): void

Connects the AxisGizmoTool to a Cognite3DViewer instance.

Parameters

NameTypeDescription
viewerCognite3DViewerThe Cognite3DViewer instance to connect to. Note: After it is connected to the viewer the tool can not be moved or changed size by changing the fields: size, corner, yMargin and yMargin in the AxisGizmoOptions

Returns

void

Defined in

packages/tools/src/AxisGizmo/AxisGizmoTool.ts:84


dispose

dispose(): void

Disposes the element and triggeres the 'disposed' event before clearing the list of dipose-listeners.

Returns

void

Overrides

Cognite3DViewerToolBase.dispose

Defined in

packages/tools/src/AxisGizmo/AxisGizmoTool.ts:60


off

off(event, handler): void

Unregisters an event handler for the 'disposed'-event.

Parameters

NameType
event"disposed"
handler() => void

Returns

void

Inherited from

Cognite3DViewerToolBase.off

Defined in

packages/tools/src/Cognite3DViewerToolBase.ts:38