Add math run and fraction

This commit is contained in:
Dolan
2019-08-15 00:47:55 +01:00
parent b52a4adaff
commit a1b9be453b
17 changed files with 292 additions and 1 deletions

View File

@ -0,0 +1,19 @@
// http://www.datypic.com/sc/ooxml/e-m_oMath-1.html
import { XmlComponent } from "file/xml-components";
import { MathFraction } from "./fraction";
import { MathRun } from "./math-run";
export interface IMathOptions {
readonly children: Array<MathRun | MathFraction>;
}
export class Math extends XmlComponent {
constructor(readonly options: IMathOptions) {
super("m:oMath");
for (const child of options.children) {
this.root.push(child);
}
}
}