MathMLCompile.d.ts 1.1 KB

123456789101112131415161718192021222324
  1. import { MmlFactory } from '../../core/MmlTree/MmlFactory.js';
  2. import { MmlNode } from '../../core/MmlTree/MmlNode.js';
  3. import { OptionList } from '../../util/Options.js';
  4. import { DOMAdaptor } from '../../core/DOMAdaptor.js';
  5. export declare class MathMLCompile<N, T, D> {
  6. static OPTIONS: OptionList;
  7. adaptor: DOMAdaptor<N, T, D>;
  8. protected factory: MmlFactory;
  9. protected options: OptionList;
  10. constructor(options?: OptionList);
  11. setMmlFactory(mmlFactory: MmlFactory): void;
  12. compile(node: N): MmlNode;
  13. makeNode(node: N): MmlNode;
  14. protected addAttributes(mml: MmlNode, node: N): void;
  15. protected filterAttribute(_name: string, value: string): string;
  16. protected filterClassList(list: string[]): string[];
  17. protected addChildren(mml: MmlNode, node: N): void;
  18. protected addText(mml: MmlNode, child: N): void;
  19. protected checkClass(mml: MmlNode, node: N): void;
  20. protected fixCalligraphic(variant: string): string;
  21. protected markMrows(mml: MmlNode): void;
  22. protected trimSpace(text: string): string;
  23. protected error(message: string): void;
  24. }