private voronoiClick()

in src/UXClient/Components/LineChart/LineChart.ts [796:830]


    private voronoiClick (mouseEvent) {
        //supress if the context menu is visible
        if (this.contextMenu && this.contextMenu.contextMenuVisible)
            return;
    
        if (!this.filteredValueExist() || !this.voronoiExists()) return;
        if (this.brushElem && !this.isDroppingMarker) return;
        const [mx, my] = d3.mouse(mouseEvent);
        var site: any = this.voronoiDiagram.find(mx, my);
        let cDO = this.getCDOFromAggKey(site.data.aggregateKey);
        if (!this.isDroppingMarker) {
            if (site.data && cDO.onElementClick !== null) {
                cDO.onElementClick(site.data.aggregateKey, site.data.splitBy, site.data.dateTime.toISOString(), site.data.measures);
            } else {
                if (this.chartComponentData.stickiedKey !== null) {
                    site = this.voronoiDiagram.find(mx, my);
                    this.voronoiMousemove(site.data);
                    this.unstickySeries(site.data.aggregateKey, site.data.splitBy);
                    return;
                }
                this.stickySeries(site.data.aggregateKey, site.data.splitBy);    
            }
        } else {
            if (!this.hasBrush) {
                this.isDroppingMarker = false;
            }
        }

        this.destroyMarkerInstructions();
        if (Utils.safeNotNullOrUndefined(() => this.activeMarker)) {
            this.activeMarker.onChange(false, true);
            this.exportMarkers();
            this.activeMarker = null;
        }
    }