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

Method constructor

packages/sanddance-specs/src/layouts/wrap.ts:56–81  ·  view source on GitHub ↗
(public props: WrapProps & LayoutBuildProps)

Source from the content-addressed store, hash-verified

54 };
55
56 constructor(public props: WrapProps & LayoutBuildProps) {
57 super(props);
58 const p = this.prefix = `wrap_${this.id}`;
59 this.bin = binnable(this.prefix, props.globalScope.data.name, props.groupby);
60 this.names = {
61 outputData: `data_${p}_out`,
62 rowColumnDataName: `data_${p}_row_col`,
63 cellHeight: `${p}_cellHeight`,
64 cellWidth: `${p}_cellWidth`,
65 fits: `${p}_fits`,
66 target: `${p}_target`,
67 minArea: `${p}_minArea`,
68 aspect: `${p}_aspect`,
69 minAspect: `${p}_minAspect`,
70 idealAspect: `${p}_idealAspect`,
71 dataLength: `${p}_dataLength`,
72 rxc0: `${p}_rxc0`,
73 rxc1: `${p}_rxc1`,
74 rxc2: `${p}_rxc2`,
75 rxc: `${p}_rxc`,
76 growColCount: `${p}_growColCount`,
77 growCellWidth: `${p}_growCellWidth`,
78 fitsArea: `${p}_fitsArea`,
79 colCount: `${p}_colCount`,
80 };
81 }
82
83 public getGrouping() {
84 return this.bin.fields;

Callers

nothing calls this directly

Calls 1

binnableFunction · 0.90

Tested by

no test coverage detected