Files
docx-js/src/file/paragraph/math/brackets/math-ending-char.ts

15 lines
493 B
TypeScript
Raw Normal View History

2020-10-10 13:41:26 +01:00
// http://www.datypic.com/sc/ooxml/e-m_endChr-1.html
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
2020-10-10 13:41:26 +01:00
class MathEndingCharacterAttributes extends XmlAttributeComponent<{ readonly character: string }> {
protected readonly xmlKeys = { character: "m:val" };
}
export class MathEndingCharacter extends XmlComponent {
constructor(character: string) {
super("m:endChr");
this.root.push(new MathEndingCharacterAttributes({ character }));
}
}