Files
docx-js/src/file/paragraph/math/math.ts

19 lines
458 B
TypeScript

// http://www.datypic.com/sc/ooxml/e-m_oMath-1.html
import { XmlComponent } from "@file/xml-components";
import { MathComponent } from "./math-component";
export interface IMathOptions {
readonly children: readonly MathComponent[];
}
export class Math extends XmlComponent {
public constructor(options: IMathOptions) {
super("m:oMath");
for (const child of options.children) {
this.root.push(child);
}
}
}