mtable.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. import { SVGWrapper, SVGConstructor } from '../Wrapper.js';
  2. import { SVGWrapperFactory } from '../WrapperFactory.js';
  3. import { SVGmtr } from './mtr.js';
  4. import { SVGmtd } from './mtd.js';
  5. import { MmlNode } from '../../../core/MmlTree/MmlNode.js';
  6. import { OptionList } from '../../../util/Options.js';
  7. import { StyleList } from '../../../util/StyleList.js';
  8. declare const SVGmtable_base: import("../../common/Wrappers/mtable.js").MtableConstructor<SVGmtd<any, any, any>, SVGmtr<any, any, any>> & SVGConstructor<any, any, any>;
  9. export declare class SVGmtable<N, T, D> extends SVGmtable_base {
  10. static kind: string;
  11. static styles: StyleList;
  12. labels: N;
  13. constructor(factory: SVGWrapperFactory<N, T, D>, node: MmlNode, parent?: SVGWrapper<N, T, D>);
  14. toSVG(parent: N): void;
  15. protected placeRows(svg: N): void;
  16. protected getRowHD(equal: boolean, HD: number, H: number, D: number): [number, number];
  17. handleColor(): void;
  18. protected handleColumnLines(svg: N): void;
  19. protected handleRowLines(svg: N): void;
  20. protected handleFrame(svg: N): void;
  21. protected handlePWidth(svg: N): number;
  22. protected lineClass(style: string): string;
  23. protected makeFrame(w: number, h: number, d: number, style: string): N;
  24. protected makeVLine(x: number, style: string, t: number): N;
  25. protected makeHLine(y: number, style: string, t: number): N;
  26. protected setLineThickness(t: number, style: string, properties: OptionList): OptionList;
  27. protected handleLabels(svg: N, _parent: N, dx: number): void;
  28. protected spaceLabels(): void;
  29. protected topTable(svg: N, labels: N, side: string): void;
  30. protected subTable(svg: N, labels: N, side: string, dx: number): void;
  31. }
  32. export {};