UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

15 lines (11 loc) 450 B
// http://www.datypic.com/sc/ooxml/e-m_degHide-1.html import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; class MathDegreeHideAttributes extends XmlAttributeComponent<{ readonly hide: number }> { protected readonly xmlKeys = { hide: "m:val" }; } export class MathDegreeHide extends XmlComponent { constructor() { super("m:degHide"); this.root.push(new MathDegreeHideAttributes({ hide: 1 })); } }