Skip to main content
Version: 3.x

Class: NodeCollection

@cognite/reveal.NodeCollection

Abstract class for implementing a set of nodes to be styled.

Hierarchy

Accessors

classToken

get classToken(): string

Returns

string

Defined in

packages/cad-styling/src/NodeCollection.ts:23


isLoading

Abstract get isLoading(): boolean

Returns

boolean

Defined in

packages/cad-styling/src/NodeCollection.ts:37

Methods

clear

Abstract clear(): void

Returns

void

Defined in

packages/cad-styling/src/NodeCollection.ts:45


getAreas

Abstract getAreas(): AreaCollection

Returns areas surrounding the nodes in the collection. The areas are boxes in "ThreeJS coordinates". Note that not all implementations supports this.

Returns

AreaCollection

Defined in

packages/cad-styling/src/NodeCollection.ts:44


getIndexSet

Abstract getIndexSet(): IndexSet

Returns

IndexSet

Defined in

packages/cad-styling/src/NodeCollection.ts:38


off

off(event, listener): void

Parameters

NameType
event"changed"
listener() => void

Returns

void

Defined in

packages/cad-styling/src/NodeCollection.ts:32


on

on(event, listener): void

Parameters

NameType
event"changed"
listener() => void

Returns

void

Defined in

packages/cad-styling/src/NodeCollection.ts:27


serialize

Abstract serialize(): SerializedNodeCollection

Returns

SerializedNodeCollection

Defined in

packages/cad-styling/src/NodeCollection.ts:46