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

Method constructor

packages/sanddance-specs/src/layouts/cross.ts:68–82  ·  view source on GitHub ↗
(public props: CrossProps & LayoutBuildProps)

Source from the content-addressed store, hash-verified

66 };
67
68 constructor(public props: CrossProps & LayoutBuildProps) {
69 super(props);
70 const p = this.prefix = `cross_${this.id}`;
71 this.binX = binnable(`${p}_x`, props.globalScope.data.name, props.groupbyX);
72 this.binY = binnable(`${p}_y`, props.globalScope.data.name, props.groupbyY);
73 this.names = {
74 facetDataName: `data_${p}_facet`,
75 searchUnion: `data_${p}_search`,
76 dimScale: `scale_${p}`,
77 dimCount: `${p}_count`,
78 dimCategorical: `data_${p}_cat`,
79 dimCellSize: `${p}_cell_size`,
80 dimCellSizeCalc: `${p}_cell_calc`,
81 };
82 }
83
84 public getGrouping() {
85 return this.binX.fields.concat(this.binY.fields);

Callers

nothing calls this directly

Calls 1

binnableFunction · 0.90

Tested by

no test coverage detected