Files
docx-js/src/file/paragraph/math/n-ary/math-accent-character.ts

15 lines
474 B
TypeScript
Raw Normal View History

2019-08-20 20:40:40 +01:00
// http://www.datypic.com/sc/ooxml/e-m_chr-1.html
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
class MathAccentCharacterAttributes extends XmlAttributeComponent<{ readonly accent: string }> {
protected readonly xmlKeys = { accent: "m:val" };
}
export class MathAccentCharacter extends XmlComponent {
2020-10-10 13:41:26 +01:00
constructor(accent: string) {
2019-08-20 20:40:40 +01:00
super("m:chr");
this.root.push(new MathAccentCharacterAttributes({ accent }));
}
}