@deltares/fews-web-oc-charts
Version:
FEWS Chart Library
21 lines (20 loc) • 677 B
TypeScript
import { Axes } from '../Axes/axes.js';
import { Visitor } from './visitor.js';
export declare class Legend implements Visitor {
private labels;
private svg;
private group;
private axis;
private configuredLabels;
constructor(labels: any, container?: HTMLElement);
visit(axis: Axes): void;
redraw(): void;
createLegendSymbol(chartId: string, legendId: string, node: Element): void;
updateDimensions(): void;
updateLabels(): void;
updateLabelPositions(selection: any, maxWidth: any): void;
optimalColumnsRows(width: number, elementWidth: number, elementCount: number): {
columns: number;
rows: number;
};
}