@deltares/fews-web-oc-charts
Version:
FEWS Chart Library
21 lines (20 loc) • 715 B
TypeScript
import type { Chart } from '../index.js';
import type { CrossSectionPoint } from './crossSectionSelectRenderer.js';
export type CrossSectionSelectAxis = {
xScales: Array<{
invert(value: number): any;
domain(): [any, any];
(value: any): number;
}>;
yScales: Array<{
domain(): [any, any];
(value: any): number;
}>;
chartsExtent: (axis: 'x' | 'y', index: number, options: Record<string, never>) => any[];
};
export declare function determineCrossSectionLabel(yExtent: any[], yValue: any): string;
export declare function findCrossSectionPoint(params: {
axis: CrossSectionSelectAxis | undefined;
chart: Chart;
xPos: number;
}): CrossSectionPoint;