(stage: VegaDeckGl.types.Stage, deckProps: VegaDeckGl.DeckProps)
| 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); |
no test coverage detected