MCPcopy Index your code
hub / github.com/microsoft/SandDance / constructor

Method constructor

packages/sanddance-specs/src/specBuilder.ts:56–72  ·  view source on GitHub ↗
(public props: SpecBuilderProps, public specContext: SpecContext)

Source from the content-addressed store, hash-verified

54 private globalSignals: GlobalSignals;
55
56 constructor(public props: SpecBuilderProps, public specContext: SpecContext) {
57 this.globalSignals = {
58 facetAxesAdjustX: { name: SignalNames.FacetAxesAdjustX, update: props.facetLayout && props.collapseFacetAxes ? facetPaddingLeft.toString() : '0' },
59 facetAxesAdjustY: { name: SignalNames.FacetAxesAdjustY, update: props.facetLayout && props.collapseFacetAxes ? facetPaddingBottom.toString() : '0' },
60 minCellWidth: {
61 name: SignalNames.MinCellWidth,
62 update: `${minFacetWidth}`,
63 },
64 minCellHeight: { name: SignalNames.MinCellHeight, update: `${minFacetHeight}` },
65 plotOffsetLeft: { name: SignalNames.PlotOffsetLeft, update: '0' },
66 plotOffsetTop: { name: SignalNames.PlotOffsetTop, update: '0' },
67 plotOffsetBottom: { name: SignalNames.PlotOffsetBottom, update: '0' },
68 plotOffsetRight: { name: SignalNames.PlotOffsetRight, update: '0' },
69 plotHeightOut: { name: SignalNames.PlotHeightOut, update: SignalNames.PlotHeightIn },
70 plotWidthOut: { name: SignalNames.PlotWidthOut, update: SignalNames.PlotWidthIn },
71 };
72 }
73
74 public validate() {
75 const { specContext } = this;

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected