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

21 lines
656 B
TypeScript
Raw Normal View History

2024-01-03 08:13:13 +08:00
// http://www.datypic.com/sc/ooxml/e-m_limUpp-1.html
import { XmlComponent } from "@file/xml-components";
2024-01-03 08:13:13 +08:00
import { MathComponent } from "../math-component";
import { createMathBase } from "./math-base";
2024-01-03 08:13:13 +08:00
import { MathLimit } from "./math-limit";
export type IMathLimitUpperOptions = {
2024-01-03 08:13:13 +08:00
readonly children: readonly MathComponent[];
readonly limit: readonly MathComponent[];
};
2024-01-03 08:13:13 +08:00
export class MathLimitUpper extends XmlComponent {
public constructor(options: IMathLimitUpperOptions) {
super("m:limUpp");
this.root.push(createMathBase({ children: options.children }));
2024-01-03 08:13:13 +08:00
this.root.push(new MathLimit(options.limit));
}
}