FontCache.d.ts 441 B

1234567891011121314
  1. import { SVG } from '../svg.js';
  2. export declare class FontCache<N, T, D> {
  3. protected jax: SVG<N, T, D>;
  4. protected cache: Map<string, string>;
  5. protected defs: N;
  6. protected localID: string;
  7. protected nextID: number;
  8. constructor(jax: SVG<N, T, D>);
  9. cachePath(variant: string, C: string, path: string): string;
  10. clearLocalID(): void;
  11. useLocalID(id?: string): void;
  12. clearCache(): void;
  13. getCache(): N;
  14. }