@tanstack/charts
Version:
A chart grammar for TypeScript and JavaScript. Marks consume your data directly, channels describe visual encodings, and the engine compiles them into a renderer-neutral keyed scene. TanStack's compact scales cover common numeric and categorical mappings.
9 lines (8 loc) • 334 B
TypeScript
import type { ChartTextMeasurer, ChartTextTypography } from './types.js';
export interface DomTextMeasurer {
measureText: ChartTextMeasurer;
typography: () => ChartTextTypography;
refresh: () => boolean;
invalidate: () => void;
}
export declare function createDomTextMeasurer(container: HTMLElement): DomTextMeasurer;