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

Method preStage

packages/sanddance/src/viewer.ts:562–578  ·  view source on GitHub ↗
(stage: VegaDeckGl.types.Stage, deckProps: VegaDeckGl.DeckProps)

Source from the content-addressed store, hash-verified

560 }
561
562 private preStage(stage: VegaDeckGl.types.Stage, deckProps: VegaDeckGl.DeckProps) {
563 const onClick: AxisSelectionHandler = (e, search: SearchExpressionGroup) => {
564 if (this.options.onAxisClick) {
565 this.options.onAxisClick(e, search);
566 } else {
567 this.select(search);
568 }
569 };
570 this.overrideAxisLabels(stage);
571 const polygonLayer = axisSelectionLayer(this.presenter, this.specCapabilities, this._specColumns, stage, onClick, this.options.colors.axisSelectHighlight, this.options.selectionPolygonZ);
572 const order = 1;//after textlayer but before others
573 deckProps.layers.splice(order, 0, polygonLayer);
574 finalizeLegend(this.insight.colorBin, this._specColumns.color, stage.legend, this.options.language);
575 if (this.options.onStage) {
576 this.options.onStage(stage, deckProps);
577 }
578 }
579
580 private onCubeClick(e: MouseEvent | PointerEvent | TouchEvent, cube: VegaDeckGl.types.Cube) {
581 this.options.onCubeClick && this.options.onCubeClick(e, cube);

Callers 4

onDataChangedMethod · 0.95
_renderMethod · 0.95
setDeckPropsMethod · 0.45

Calls 3

overrideAxisLabelsMethod · 0.95
axisSelectionLayerFunction · 0.90
finalizeLegendFunction · 0.90

Tested by

no test coverage detected