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

19 lines
441 B
TypeScript
Raw Normal View History

2019-08-15 00:47:55 +01:00
// http://www.datypic.com/sc/ooxml/e-m_oMath-1.html
import { XmlComponent } from "file/xml-components";
2020-10-10 13:41:26 +01:00
import { MathComponent } from "./math-component";
2019-08-15 00:47:55 +01:00
export interface IMathOptions {
2020-10-10 13:41:26 +01:00
readonly children: MathComponent[];
2019-08-15 00:47:55 +01:00
}
export class Math extends XmlComponent {
2020-10-10 13:41:26 +01:00
constructor(options: IMathOptions) {
2019-08-15 00:47:55 +01:00
super("m:oMath");
for (const child of options.children) {
this.root.push(child);
}
}
}