ImFusion Web SDK

LabelConfigMap

Wrapper for a C++ map of number to [LabelConfig]LabelConfig.

Extends

Methods

MethodDescription
size()Returns the number of entries in the map
keys()Returns a list of all keys
get()Returns the value for the given key
set()Sets the value for the given key

Inherited from ClassHandle

MethodDescription
isAliasOf()Returns true if this handle and other alias the same underlying C++ object.
delete()Releases this JavaScript handle.
deleteLater()Schedules this handle for deferred deletion and returns this handle.
isDeleted()Returns true if this handle has already been deleted.
[dispose]()Releases this handle when the enclosing scope exits, so a handle can be declared with using instead of calling delete() later manually.
clone()Returns a new JavaScript handle aliasing the same underlying C++ object.

size()

ts
size(): number;

Returns the number of entries in the map

Returns

number


keys()

ts
keys(): IntegerList;

Returns a list of all keys

Returns

IntegerList


get()

ts
get(key: number): LabelConfig | undefined;

Returns the value for the given key

Parameters

ParameterType
keynumber

Returns

LabelConfig | undefined


set()

ts
set(key: number, value: LabelConfig): void;

Sets the value for the given key

Parameters

ParameterType
keynumber
valueLabelConfig

Returns

void

On this page