Class: MatrixResolver

MatrixResolver()

new MatrixResolver()

Resolves the matrices from configuration provided
Source:

Classes

module.exports

Members

(static, constant) exports.computeMatrices

Computes matrices for a group
Source:

(static, constant) exports.getHeaderText

Source:

(static, constant) exports.mutateAxesFromMap

Source:

(static, constant) exports.mutateAxesFromMap

Source:

(static, constant) exports.setFacetsAndProjections

Source:

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
Source:
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
Source:
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
Source:
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
Source:
Returns:
either the layer or current instance
Type
Object

(static) createHeaders(placeholders, fieldNames)

Parameters:
Name Type Description
placeholders *
fieldNames *
Source:

(static) createRetinalAxes(datamodel, config)

Parameters:
Name Type Description
datamodel *
config *
Source:

(static) createUnits(componentRegistry, config)

Parameters:
Name Type Description
componentRegistry *
config *
Source:

(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
Source:
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
Source:
Returns:
either the layer or current instance
Type
Object

(static) facets(…facets)

Parameters:
Name Type Attributes Description
facets * <repeatable>
Source:

(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
Source:

(static) getAllFields()

Source:

(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
Source:
Returns:
cell definition
Type
Object

(static) getMatrices(datamodel, config, componentRegistry, encoders)

Parameters:
Name Type Description
datamodel *
config *
componentRegistry *
encoders *
Source:

(static) getRetinalAxes()

Source:

(static) getSimpleAxes(type)

Parameters:
Name Type Description
type *
Source:

(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
Source:
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
Source:
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
Source:
Returns:
either the layer or current instance
Type
Object

(static) optionalProjections(config, layerConfig)

Parameters:
Name Type Description
config *
layerConfig *
Source:

(static) projections(…projections)

Parameters:
Name Type Attributes Description
projections * <repeatable>
Source:

(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
Source:
Returns:
Either current instance or the set of placeholders
Type
Object

(static) resetSimpleAxes()

Source:

(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
Source:
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
Source:
Returns:
either the layer or current instance
Type
Object

(static) setDomains(config)

Parameters:
Name Type Description
config *
Source:

(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
Source:
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
Source:
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
Source:
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
Source:
Returns:
facets, projections and normalized columns
Type
Object