MCPcopy Create free account
hub / github.com/microsoft/SandDance / constructor

Method constructor

docs/app/js/sanddance-app.js:4404–4419  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

4402var _signals = require("../signals");
4403class Cross extends (0, _layout.Layout) {
4404 constructor(props){
4405 super(props);
4406 this.props = props;
4407 const p = this.prefix = `cross_${this.id}`;
4408 this.binX = (0, _bin.binnable)(`${p}_x`, props.globalScope.data.name, props.groupbyX);
4409 this.binY = (0, _bin.binnable)(`${p}_y`, props.globalScope.data.name, props.groupbyY);
4410 this.names = {
4411 facetDataName: `data_${p}_facet`,
4412 searchUnion: `data_${p}_search`,
4413 dimScale: `scale_${p}`,
4414 dimCount: `${p}_count`,
4415 dimCategorical: `data_${p}_cat`,
4416 dimCellSize: `${p}_cell_size`,
4417 dimCellSizeCalc: `${p}_cell_calc`
4418 };
4419 }
4420 getGrouping() {
4421 return this.binX.fields.concat(this.binY.fields);
4422 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected