UNPKG

edeap

Version:

Euler Diagrams Drawn with Ellipses Area-Proportionally (Edeap)

20 lines (19 loc) 556 B
import { ITextDimensions } from "./types.js"; interface Options { fontName?: string; fontSize?: string; fontWeight?: string; } export declare class TextDimensionsServer implements ITextDimensions { fontSize: number; fontName: string; getTextWidth: (text: string, options?: Options | undefined) => number; constructor(charactersTable?: Record<string, string>); init(fontSize: number, fontName: string): void; measure(str: string): { width: number; height: number; }; destroy(): void; } export {};