| 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; |