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

Method constructor

packages/sanddance-specs/src/globalScope.ts:44–62  ·  view source on GitHub ↗
(props: GlobalScopeProps)

Source from the content-addressed store, hash-verified

42 public signals: GlobalSignals;
43
44 constructor(props: GlobalScopeProps) {
45 const { dataName, markGroup, scope, signals } = props;
46 this.scope = scope;
47 this._markGroup = markGroup;
48 this.signals = signals;
49 this.data = getDataByName(scope.data, dataName).data;
50 this._markDataName = dataName;
51 this.offsets = {
52 x: '0',
53 y: '0',
54 h: SignalNames.PlotHeightIn,
55 w: SignalNames.PlotWidthIn,
56 };
57 this.sizeSignals = {
58 layoutHeight: SignalNames.PlotHeightIn,
59 layoutWidth: SignalNames.PlotWidthIn,
60 };
61 this.zSize = SignalNames.PlotHeightIn;
62 }
63
64 get markDataName(): string {
65 return this._markDataName;

Callers

nothing calls this directly

Calls 1

getDataByNameFunction · 0.90

Tested by

no test coverage detected