edeap
Version:
Euler Diagrams Drawn with Ellipses Area-Proportionally (Edeap)
14 lines (13 loc) • 626 B
TypeScript
import type { InitConfig, SVGConfig, State, ITextDimensions } from "./types.js";
import { EdeapAreas } from "./EdeapAreas.js";
export declare function initialState({ overlaps, initialLayout }: InitConfig): State;
export declare function generateSVG({ state, areas, width, height, showLabels, showValues, standalone, labelSize, labelFont, valueSize, color: colorGenerator, dimensions, }: SVGConfig & {
state: State;
areas: EdeapAreas;
}): string;
export declare function textDimensions(strings: any[], td: ITextDimensions): {
widths: number[];
heights: number[];
maxHeight: number;
maxWidth: number;
};