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

Method constructor

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

Source from the content-addressed store, hash-verified

3748var _scope = require("./scope");
3749class GlobalScope {
3750 constructor(props){
3751 const { dataName , markGroup , scope , signals } = props;
3752 this.scope = scope;
3753 this._markGroup = markGroup;
3754 this.signals = signals;
3755 this.data = (0, _scope.getDataByName)(scope.data, dataName).data;
3756 this._markDataName = dataName;
3757 this.offsets = {
3758 x: "0",
3759 y: "0",
3760 h: (0, _constants.SignalNames).PlotHeightIn,
3761 w: (0, _constants.SignalNames).PlotWidthIn
3762 };
3763 this.sizeSignals = {
3764 layoutHeight: (0, _constants.SignalNames).PlotHeightIn,
3765 layoutWidth: (0, _constants.SignalNames).PlotWidthIn
3766 };
3767 this.zSize = (0, _constants.SignalNames).PlotHeightIn;
3768 }
3769 get markDataName() {
3770 return this._markDataName;
3771 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected