HTMLDocument.d.ts 1.4 KB

12345678910111213141516171819202122232425262728
  1. import { AbstractMathDocument } from '../../core/MathDocument.js';
  2. import { OptionList } from '../../util/Options.js';
  3. import { HTMLMathItem } from './HTMLMathItem.js';
  4. import { HTMLDomStrings } from './HTMLDomStrings.js';
  5. import { DOMAdaptor } from '../../core/DOMAdaptor.js';
  6. import { InputJax } from '../../core/InputJax.js';
  7. import { ProtoItem, Location } from '../../core/MathItem.js';
  8. import { StyleList } from '../../util/StyleList.js';
  9. export declare type HTMLNodeArray<N, T> = [N | T, number][][];
  10. export declare class HTMLDocument<N, T, D> extends AbstractMathDocument<N, T, D> {
  11. static KIND: string;
  12. static OPTIONS: OptionList;
  13. protected styles: StyleList[];
  14. domStrings: HTMLDomStrings<N, T, D>;
  15. constructor(document: any, adaptor: DOMAdaptor<N, T, D>, options: OptionList);
  16. protected findPosition(N: number, index: number, delim: string, nodes: HTMLNodeArray<N, T>): Location<N, T>;
  17. protected mathItem(item: ProtoItem<N, T>, jax: InputJax<N, T, D>, nodes: HTMLNodeArray<N, T>): HTMLMathItem<N, T, D>;
  18. findMath(options: OptionList): this;
  19. updateDocument(): this;
  20. protected addPageElements(): void;
  21. addStyleSheet(): void;
  22. protected findSheet(head: N, id: string): N;
  23. removeFromDocument(restore?: boolean): this;
  24. documentStyleSheet(): N;
  25. documentPageElements(): N;
  26. addStyles(styles: StyleList): void;
  27. getStyles(): StyleList[];
  28. }