Class: Cognite3DViewerToolBase
@cognite/reveal/tools.Cognite3DViewerToolBase
Base class for tools attaching to a @see {@link Cognite3DViewer}.
Hierarchy
-
Cognite3DViewerToolBase
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
Name | Type |
---|---|
event | "disposed" |
handler | () => void |
Returns
void