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,18 @@
import { XmlComponent } from "file/xml-components";
import { MathDenominator } from "./math-denominator";
import { MathNumerator } from "./math-numerator";
export interface IMathFractionOptions {
readonly numerator: MathNumerator;
readonly denominator: MathDenominator;
}
export class MathFraction extends XmlComponent {
constructor(readonly options: IMathFractionOptions) {
super("m:f");
this.root.push(options.numerator);
this.root.push(options.denominator);
}
}