2020-10-10 13:41:26 +01:00
|
|
|
// http://www.datypic.com/sc/ooxml/e-m_d-1.html
|
2022-06-26 23:26:42 +01:00
|
|
|
import { XmlComponent } from "@file/xml-components";
|
2020-10-10 13:41:26 +01:00
|
|
|
|
|
|
|
import { MathComponent } from "../math-component";
|
2025-04-14 16:43:15 +05:30
|
|
|
import { createMathBase } from "../n-ary";
|
|
|
|
import { createMathBracketProperties } from "./math-bracket-properties";
|
2020-10-10 13:41:26 +01:00
|
|
|
|
|
|
|
export class MathSquareBrackets extends XmlComponent {
|
2022-09-15 20:00:50 +01:00
|
|
|
public constructor(options: { readonly children: readonly MathComponent[] }) {
|
2020-10-10 13:41:26 +01:00
|
|
|
super("m:d");
|
|
|
|
|
|
|
|
this.root.push(
|
2025-04-14 16:43:15 +05:30
|
|
|
createMathBracketProperties({
|
|
|
|
characters: {
|
|
|
|
beginningCharacter: "[",
|
|
|
|
endingCharacter: "]",
|
|
|
|
},
|
2020-10-10 13:41:26 +01:00
|
|
|
}),
|
|
|
|
);
|
2025-04-14 16:43:15 +05:30
|
|
|
this.root.push(createMathBase({ children: options.children }));
|
2020-10-10 13:41:26 +01:00
|
|
|
}
|
|
|
|
}
|