Constructor
new LayoutProtocol(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config | object | As {id, displaySets: [{divId, dataSelector, orientation}]}. |
- Source
Classes
Methods
getDataViewConfigs(dataIds) → {Object.<string, Array.<ViewConfig>>}
Get the data view configs for the given data ids.
Parameters:
| Name | Type | Description |
|---|---|---|
dataIds | Array.<string> | The data id. |
- Source
Returns:
The data view configs.
- Type:
- Object.<string, Array.<ViewConfig>>
getId() → {string}
Get the layout id.
- Source
Returns:
The id.
- Type:
- string
getLayerGroupDivIds() → {Array.<string>}
Get the layer groups div ids from this layout.
- Source
Returns:
The ids.
- Type:
- Array.<string>
getViewConfigsByDataId(dataId) → {Array.<ViewConfig>}
Get the view configs for the given data id.
Parameters:
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
- Source
Returns:
The view configs.
- Type:
- Array.<ViewConfig>
getViewConfigsByDivId(divId) → {ViewConfig}
Get the first view config for the given div id.
Parameters:
| Name | Type | Description |
|---|---|---|
divId | string | The div id. |
- Source
Returns:
The config.
- Type:
- ViewConfig