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

Method constructor

docs/app/js/sanddance-app.js:2537–2574  ·  view source on GitHub ↗
(props, specContext)

Source from the content-addressed store, hash-verified

2535var _index = require("./layouts/index");
2536class SpecBuilder {
2537 constructor(props, specContext){
2538 this.props = props;
2539 this.specContext = specContext;
2540 this.globalSignals = {
2541 minCellWidth: {
2542 name: (0, _constants.SignalNames).MinCellWidth,
2543 update: `${0, _defaults.minFacetWidth}`
2544 },
2545 minCellHeight: {
2546 name: (0, _constants.SignalNames).MinCellHeight,
2547 update: `${0, _defaults.minFacetHeight}`
2548 },
2549 plotOffsetLeft: {
2550 name: (0, _constants.SignalNames).PlotOffsetLeft,
2551 update: "0"
2552 },
2553 plotOffsetTop: {
2554 name: (0, _constants.SignalNames).PlotOffsetTop,
2555 update: "0"
2556 },
2557 plotOffsetBottom: {
2558 name: (0, _constants.SignalNames).PlotOffsetBottom,
2559 update: "0"
2560 },
2561 plotOffsetRight: {
2562 name: (0, _constants.SignalNames).PlotOffsetRight,
2563 update: "0"
2564 },
2565 plotHeightOut: {
2566 name: (0, _constants.SignalNames).PlotHeightOut,
2567 update: (0, _constants.SignalNames).PlotHeightIn
2568 },
2569 plotWidthOut: {
2570 name: (0, _constants.SignalNames).PlotWidthOut,
2571 update: (0, _constants.SignalNames).PlotWidthIn
2572 }
2573 };
2574 }
2575 validate() {
2576 const { specContext } = this;
2577 const { specCapabilities } = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected