LayoutProtocol

Layout protocol class.

Constructor

new LayoutProtocol(config)

Parameters:
NameTypeDescription
configobject

As {id, displaySets: [{divId, dataSelector, orientation}]}.

Classes

LayoutProtocol

Methods

getDataViewConfigs(dataIds) → {Object.<string, Array.<ViewConfig>>}

Get the data view configs for the given data ids.

Parameters:
NameTypeDescription
dataIdsArray.<string>

The data id.

Returns:

The data view configs.

Type: 
Object.<string, Array.<ViewConfig>>

getId() → {string}

Get the layout id.

Returns:

The id.

Type: 
string

getLayerGroupDivIds() → {Array.<string>}

Get the layer groups div ids from this layout.

Returns:

The ids.

Type: 
Array.<string>

getViewConfigsByDataId(dataId) → {Array.<ViewConfig>}

Get the view configs for the given data id.

Parameters:
NameTypeDescription
dataIdstring

The data id.

Returns:

The view configs.

Type: 
Array.<ViewConfig>

getViewConfigsByDivId(divId) → {ViewConfig}

Get the first view config for the given div id.

Parameters:
NameTypeDescription
divIdstring

The div id.

Returns:

The config.

Type: 
ViewConfig