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

Method constructor

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

Source from the content-addressed store, hash-verified

5764var _signals = require("../signals");
5765class Wrap extends (0, _layout.Layout) {
5766 constructor(props){
5767 super(props);
5768 this.props = props;
5769 const p = this.prefix = `wrap_${this.id}`;
5770 this.bin = (0, _bin.binnable)(this.prefix, props.globalScope.data.name, props.groupby);
5771 this.names = {
5772 outputData: `data_${p}_out`,
5773 rowColumnDataName: `data_${p}_row_col`,
5774 cellHeight: `${p}_cellHeight`,
5775 cellWidth: `${p}_cellWidth`,
5776 fits: `${p}_fits`,
5777 target: `${p}_target`,
5778 minArea: `${p}_minArea`,
5779 aspect: `${p}_aspect`,
5780 minAspect: `${p}_minAspect`,
5781 idealAspect: `${p}_idealAspect`,
5782 dataLength: `${p}_dataLength`,
5783 rxc0: `${p}_rxc0`,
5784 rxc1: `${p}_rxc1`,
5785 rxc2: `${p}_rxc2`,
5786 rxc: `${p}_rxc`,
5787 growColCount: `${p}_growColCount`,
5788 growCellWidth: `${p}_growCellWidth`,
5789 fitsArea: `${p}_fitsArea`,
5790 colCount: `${p}_colCount`
5791 };
5792 }
5793 getGrouping() {
5794 return this.bin.fields;
5795 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected