Skip to main content
Version: Next

Class: UnionNodeCollection

Defined in: packages/cad-styling/src/UnionNodeCollection.ts:16

Node collection that takes the set union of multiple node collections.

Extends

Constructors

Constructor

new UnionNodeCollection(nodeCollections?): UnionNodeCollection

Defined in: packages/cad-styling/src/UnionNodeCollection.ts:21

Parameters

nodeCollections?

NodeCollection[]

Returns

UnionNodeCollection

Overrides

CombineNodeCollectionBase.constructor

Properties

classToken

readonly static classToken: "UnionNodeCollection" = 'UnionNodeCollection'

Defined in: packages/cad-styling/src/UnionNodeCollection.ts:19

Accessors

classToken

Get Signature

get classToken(): string

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

Returns

string

Inherited from

CombineNodeCollectionBase.classToken


isLoading

Get Signature

get isLoading(): boolean

Defined in: packages/cad-styling/src/CombineNodeCollectionBase.ts:67

Override

Returns

boolean

Inherited from

CombineNodeCollectionBase.isLoading

Methods

add()

add(nodeCollection): void

Defined in: packages/cad-styling/src/CombineNodeCollectionBase.ts:26

Parameters

nodeCollection

NodeCollection

Returns

void

Inherited from

CombineNodeCollectionBase.add


clear()

clear(): void

Defined in: packages/cad-styling/src/CombineNodeCollectionBase.ts:46

Clears all underlying node collections.

Returns

void

Inherited from

CombineNodeCollectionBase.clear


getAreas()

getAreas(): AreaCollection

Defined in: packages/cad-styling/src/UnionNodeCollection.ts:45

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

Returns

AreaCollection

Overrides

CombineNodeCollectionBase.getAreas


getIndexSet()

getIndexSet(): IndexSet

Defined in: packages/cad-styling/src/CombineNodeCollectionBase.ts:59

Override

Returns

IndexSet

Inherited from

CombineNodeCollectionBase.getIndexSet


off()

off(event, listener): void

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

Parameters

event

"changed"

listener

() => void

Returns

void

Inherited from

CombineNodeCollectionBase.off


on()

on(event, listener): void

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

Parameters

event

"changed"

listener

() => void

Returns

void

Inherited from

CombineNodeCollectionBase.on


remove()

remove(nodeCollection): void

Defined in: packages/cad-styling/src/CombineNodeCollectionBase.ts:32

Parameters

nodeCollection

NodeCollection

Returns

void

Inherited from

CombineNodeCollectionBase.remove


serialize()

serialize(): SerializedNodeCollection

Defined in: packages/cad-styling/src/UnionNodeCollection.ts:25

Returns

SerializedNodeCollection

Overrides

CombineNodeCollectionBase.serialize