Class: DomLabelMap
Меньше 1 минуты
Class: DomLabelMap
Labels map with DOM rendering support.
Hierarchy
↳
DomLabelMap
Constructors
constructor
• new DomLabelMap(renderManager
, options
): DomLabelMap
Parameters
Name | Type | Description |
---|---|---|
renderManager | RenderManagerBase | RenderManager instance. |
options | DomLabelMapOptions | Labels map options for creation. |
Returns
Overrides
LabelMapBase.constructor
Properties
labels
• labels: Map
<string
, DomLabel
>
Labels map.
Methods
add
▸ add(name
, position
, value
, color?
, elNum?
): void
Update single label to labels map.
Parameters
Name | Type | Description |
---|---|---|
name | string | Label name. |
position | Vector3 | Label position in 3D space. |
value | any | label content. |
color? | ColorRepresentation | label color. |
elNum? | number | Optional element number associated with label. |
Returns
void
clear
▸ clear(): void
Clear labels.
Returns
void
Overrides
dispose
▸ dispose(): void
Dispose label map.
Returns
void
Overrides
update
▸ update(name
, value
): void
Update single label content.
Parameters
Name | Type | Description |
---|---|---|
name | string | Label name. |
value | any | label content. |
Returns
void