/** * Class that can measure text for a given font very efficiently (about ~1000 times faster than canvas measuretext). * It uses a precomputed table of character widths for a given font and size. * * Also supports utility functions like ellipsis. */ export declare class FastTextMeasure { private font; table: Float32Array; meanWidth: number; constructor(font: string); computeTable(): void; fastMeasureText(text: string): number; /** * @deprecated Use fastTextEllipsis instead. */ textEllipsis(text: string, maxWidth: number): string; fastTextEllipsis(text: string, maxWidth: number): { truncatedLabel: string; truncatedWidth: number; }; } //# sourceMappingURL=FastTextMeasure.d.ts.map