(public props: CrossProps & LayoutBuildProps)
| 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); |
nothing calls this directly
no test coverage detected