UNPKG

@deltares/fews-web-oc-charts

Version:
49 lines (48 loc) 1.44 kB
import { Axes } from '../Axes/axes.js'; import { CartesianAxes, Chart } from '../index.js'; import { Visitor } from './visitor.js'; type CrossSectionSelectOptions = { x: { axisIndex: number; }; draggable: boolean; }; export declare class CrossSectionSelect implements Visitor { private trace; private group; private backGroup; private frontGroup; private pointRadius; private simulation; private axis; value: number | Date; currentData: any; callback: (value: number | Date) => void; format: (n: number | { valueOf(): number; } | Date) => string; private options; private visible; constructor(value: number | Date, callback: (value: number | Date) => void, options: CrossSectionSelectOptions, trace?: string[]); setTrace(trace: string[]): void; visit(axis: Axes): void; create(axis: CartesianAxes): void; redraw(): void; start(event: any): void; drag(event: any): void; end(): void; styleForChart(id: any): CSSStyleDeclaration; updateLine(xPos: number): void; updateDataPoints(points: any, styles: any): void; updateLabels(points: any, styles: any): void; limitValue(): boolean; findNearestPoint(chart: Chart, xPos: any): { id: string; x: number; y: number; value?: string; d: any; }; determineLabel(yExtent: any[], yValue: any[] | any): any; } export {};