@deltares/fews-web-oc-charts
Version:
FEWS Chart Library
40 lines (39 loc) • 1.05 kB
TypeScript
export type CrossSectionPoint = {
id: string;
x?: number;
y?: number;
value?: string;
d: any;
};
export type CrossSectionPointStyles = Record<string, CSSStyleDeclaration>;
export declare class CrossSectionSelectRenderer {
private simulation?;
updateLine(params: {
backGroup: any;
axisHeight: number;
xPos: number;
visible: boolean;
value: number | Date;
format: (value: number | {
valueOf(): number;
} | Date) => string;
}): void;
updateDataPoints(params: {
frontGroup: any;
points: CrossSectionPoint[];
styles: CrossSectionPointStyles;
pointRadius: number;
visible: boolean;
}): void;
updateLabels(params: {
backGroup: any;
frontGroup: any;
points: CrossSectionPoint[];
styles: CrossSectionPointStyles;
pointRadius: number;
visible: boolean;
}): void;
private buildLabelLayout;
private measureLabelBoxes;
private createCollisionForce;
}