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

Method preStage

docs/app/js/sanddance-app.js:9753–9764  ·  view source on GitHub ↗
(stage, deckProps)

Source from the content-addressed store, hash-verified

9751 // }
9752 }
9753 preStage(stage, deckProps) {
9754 const onClick = (e, search)=>{
9755 if (this.options.onAxisClick) this.options.onAxisClick(e, search);
9756 else this.select(search);
9757 };
9758 this.overrideAxisLabels(stage);
9759 const polygonLayer = (0, _axisSelection.axisSelectionLayer)(this.presenter, this.specCapabilities, this._specColumns, stage, onClick, this.options.colors.axisSelectHighlight, this.options.selectionPolygonZ);
9760 const order = 1; //after textlayer but before others
9761 deckProps.layers.splice(order, 0, polygonLayer);
9762 (0, _legend.finalizeLegend)(this.insight.colorBin, this._specColumns.color, stage.legend, this.options.language);
9763 if (this.options.onStage) this.options.onStage(stage, deckProps);
9764 }
9765 onCubeClick(e, cube) {
9766 this.options.onCubeClick && this.options.onCubeClick(e, cube);
9767 const hasSelectedData = this._dataScope.hasSelectedData();

Callers 4

onDataChangedMethod · 0.95
_renderMethod · 0.95
setDeckPropsMethod · 0.45

Calls 1

overrideAxisLabelsMethod · 0.95

Tested by

no test coverage detected