@skillpet/circuit
Version:
Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components
9 lines (8 loc) • 365 B
TypeScript
export declare function hasMath(text: string): boolean;
export declare function isKatexAvailable(): boolean;
export declare function ensureKatex(): Promise<boolean>;
export declare function renderMathHtml(text: string, _fontSize: number): string;
export declare function estimateMathSize(text: string, fontSize: number): {
width: number;
height: number;
};