@deltares/fews-web-oc-charts
Version:
FEWS Chart Library
32 lines (31 loc) • 1.24 kB
TypeScript
import { Axes } from '../Axes/axes.js';
import { CartesianAxes } from '../index.js';
import { Visitor } from './visitor.js';
export declare class VerticalMouseOver implements Visitor {
private trace;
private group;
private axes;
private mouseGroup;
private mousePerLine;
private customNumberFormatter;
constructor(trace?: string[], numberFormatter?: (value: number, extent?: [number, number]) => string);
setTrace(trace: string[]): void;
visit(axes: Axes): void;
create(axes: CartesianAxes): void;
onPointerout(): void;
onPointerover(): void;
yPosForCharts(mouse: any): any;
isHidden(element: any): boolean;
closestPointForChart(id: string, datum: any[], y: number, yPos: number, rMin: number): number[];
update(mouse: any, yPos: any): void;
findClosestPoint(y: any, y1: any, y2: any): any[];
findIndex(inputDatum: any, xKey: any, yKey: any, yValue: any): number;
determineLabel(extent: any[], value: any[] | any): string;
updatePoints(pointData: any): void;
updateYLine(yPos: number): void;
updateYValue(yPos: any): void;
private yText;
updateTooltip(pointData: any, mouse: any): void;
updateLineIndicators(): void;
redraw(): void;
}