Methods
addLayerGroup(htmlElement) → {LayerGroup}
Add a layer group to the list.
Name | Type | Description |
---|---|---|
htmlElement | object | The HTML element of the layer group. |
- Source
The newly created layer group.
- Type:
- LayerGroup
bindLayerGroups()
Bind the layer groups of the stage.
- Source
draw()
Draw the stage: calls draw on all layer groups.
- Source
empty()
Empty the layer group list.
- Source
getActiveLayerGroup() → {LayerGroup}
Get the active layer group.
- Source
The layer group.
- Type:
- LayerGroup
getDrawLayersByDataIndex(index) → {Array}
Get the draw layers associated to a data index.
Name | Type | Description |
---|---|---|
index | number | The data index. |
- Source
The layers.
- Type:
- Array
getLayerGroup(index) → {LayerGroup}
Get the layer group at the given index.
Name | Type | Description |
---|---|---|
index | number | The index. |
- Source
The layer group.
- Type:
- LayerGroup
getLayerGroupByDivId(id) → {LayerGroup}
Get a layer group from an HTML element id.
Name | Type | Description |
---|---|---|
id | string | The element id to find. |
- Source
The layer group.
- Type:
- LayerGroup
getNumberOfLayerGroups() → {number}
Get the number of layer groups that form the stage.
- Source
The number of layer groups.
- Type:
- number
getViewLayersByDataIndex(index) → {Array}
Get the view layers associated to a data index.
Name | Type | Description |
---|---|---|
index | number | The data index. |
- Source
The layers.
- Type:
- Array
reset()
Reset the stage: calls reset on all layer groups.
- Source
setBinders(list)
Set the layer groups binders.
Name | Type | Description |
---|---|---|
list | Array | The list of binder objects. |
- Source
syncLayerGroupScale()
Synchronise the fit scale of the group layers.
- Source
unbindLayerGroups()
Unbind the layer groups of the stage.
- Source