Files
docx-js/src/file/paragraph/math/n-ary/math-limit-location.ts

13 lines
470 B
TypeScript
Raw Normal View History

2019-08-20 20:40:40 +01:00
// http://www.datypic.com/sc/ooxml/e-m_limLoc-1.html
import { BuilderElement, XmlComponent } from "@file/xml-components";
2019-08-20 20:40:40 +01:00
type MathLimitLocationOptions = { readonly value?: string };
2019-08-20 20:40:40 +01:00
export const createMathLimitLocation = ({ value }: MathLimitLocationOptions): XmlComponent =>
new BuilderElement<Required<MathLimitLocationOptions>>({
name: "m:limLoc",
attributes: {
value: { key: "m:val", value: value || "undOvr" },
},
});