Skip to main content
Version: 3.x

Class: Cognite3DViewerToolBase

@cognite/reveal/tools.Cognite3DViewerToolBase

Base class for tools attaching to a @see {@link Cognite3DViewer}.

Hierarchy

Constructors

constructor

new Cognite3DViewerToolBase()

Methods

dispose

dispose(): void

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

Returns

void

Defined in

packages/tools/src/Cognite3DViewerToolBase.ts:52


off

off(event, handler): void

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

Parameters

NameType
event"disposed"
handler() => void

Returns

void

Defined in

packages/tools/src/Cognite3DViewerToolBase.ts:37