Files
docx-js/src/file/paragraph/math/brackets/math-beginning-character.ts

15 lines
509 B
TypeScript
Raw Normal View History

2020-10-10 13:41:26 +01:00
// http://www.datypic.com/sc/ooxml/e-m_begChr-1.html
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
2020-10-10 13:41:26 +01:00
class MathBeginningCharacterAttributes extends XmlAttributeComponent<{ readonly character: string }> {
protected readonly xmlKeys = { character: "m:val" };
}
export class MathBeginningCharacter extends XmlComponent {
2022-08-31 07:52:27 +01:00
public constructor(character: string) {
2020-10-10 13:41:26 +01:00
super("m:begChr");
this.root.push(new MathBeginningCharacterAttributes({ character }));
}
}