new MatrixResolver()
Resolves the matrices from configuration provided
Classes
Members
(static, constant) exports.computeMatrices
Computes matrices for a group
(static, constant) exports.getHeaderText
(static, constant) exports.mutateAxesFromMap
(static, constant) exports.mutateAxesFromMap
(static, constant) exports.setFacetsAndProjections
Methods
(static) axes(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) cacheMaps(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) colCells(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) columnMatrix(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) createHeaders(placeholders, fieldNames)
Parameters:
Name | Type | Description |
---|---|---|
placeholders |
* | |
fieldNames |
* |
(static) createRetinalAxes(datamodel, config)
Parameters:
Name | Type | Description |
---|---|---|
datamodel |
* | |
config |
* |
(static) createUnits(componentRegistry, config)
Parameters:
Name | Type | Description |
---|---|---|
componentRegistry |
* | |
config |
* |
(static) datamodelTransform(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) dependencies(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) facets(…facets)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
facets |
* |
<repeatable> |
(static) forEach(matrixType, callback)
Callback to be applied on each cell of a matrix of a particular type
Parameters:
Name | Type | Description |
---|---|---|
matrixType |
string | type of matrix on which callback is to be applied |
callback |
function | function to be applied to each cell |
(static) getAllFields()
(static) getCellDef(cell) → {Object}
Gets the class definition of a particular cell type(if the particular type has been extended, that particular
definition is returned)
Parameters:
Name | Type | Description |
---|---|---|
cell |
Object | cell whose class definition is to be retrieved |
Returns:
cell definition
- Type
- Object
(static) getMatrices(datamodel, config, componentRegistry, encoders)
Parameters:
Name | Type | Description |
---|---|---|
datamodel |
* | |
config |
* | |
componentRegistry |
* | |
encoders |
* |
(static) getRetinalAxes()
(static) getSimpleAxes(type)
Parameters:
Name | Type | Description |
---|---|---|
type |
* |
(static) horizontalAxis(rows) → {Object}
return the normalized set of rows and facets and projections
Parameters:
Name | Type | Description |
---|---|---|
rows |
Object | parameters needed to set horizontal axis consisiting of rows |
Returns:
facets, projections and normalized rows
- Type
- Object
(static) layerConfig(layer) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
layer |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) matrixLayers(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) optionalProjections(config, layerConfig)
Parameters:
Name | Type | Description |
---|---|---|
config |
* | |
layerConfig |
* |
(static) projections(…projections)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projections |
* |
<repeatable> |
(static) registry(…placeholders) → {Object}
Set: Registers placeholders, Get: return {Object} those placeholders
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
placeholders |
Object |
<repeatable> |
cells that will construct the group |
Returns:
Either current instance or the set of placeholders
- Type
- Object
(static) resetSimpleAxes()
(static) rowCells(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) rowMatrix(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) setDomains(config)
Parameters:
Name | Type | Description |
---|---|---|
config |
* |
(static) units(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) valueCellsCreator(GeomCell) → {Object}
return a visual cell creator along with its axis information to be injected to the datamodel creation
function
Parameters:
Name | Type | Description |
---|---|---|
GeomCell |
Object | Type of cell to be created |
Returns:
Created cell
- Type
- Object
(static) valueMatrix(type) → {Object}
Used to set the layer config from outside or get current layer info
Parameters:
Name | Type | Description |
---|---|---|
type |
Object | configuration of layer provided externally |
Returns:
either the layer or current instance
- Type
- Object
(static) verticalAxis(columns) → {Object}
return the normalized set of columns and facets and projections
Parameters:
Name | Type | Description |
---|---|---|
columns |
Object | parameters needed to set vertical axis consisiting of columns |
Returns:
facets, projections and normalized columns
- Type
- Object