Files
docx-js/src/file/paragraph/math/bar/math-bar-properties.ts
Dolan 4d1a351649 Documentation and Refactoring (#3028)
* Documentation and Refactoring

* Documentation and Refactoring

* Fix lint issues

* Convert components to Builder style

---------

Co-authored-by: Dolan Miu <dmiu@bloomberg.net>
2025-04-14 16:43:15 +05:30

11 lines
380 B
TypeScript

// https://www.datypic.com/sc/ooxml/e-m_barPr-1.html
import { BuilderElement, XmlComponent } from "@file/xml-components";
import { createMathBarPos } from "./math-bar-pos";
export const createMathBarProperties = ({ type }: { readonly type: string }): XmlComponent =>
new BuilderElement({
name: "m:barPr",
children: [createMathBarPos({ val: type })],
});