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-10-21 03:57:15 +01:00
|
|
|
|
2024-01-03 08:13:13 +08:00
|
|
|
import { MathComponent } from "../math-component";
|
2025-04-14 16:43:15 +05:30
|
|
|
import { createMathBase } from "./math-base";
|
2024-01-03 08:13:13 +08:00
|
|
|
import { MathLimit } from "./math-limit";
|
|
|
|
|
2024-10-21 03:57:15 +01:00
|
|
|
export type IMathLimitUpperOptions = {
|
2024-01-03 08:13:13 +08:00
|
|
|
readonly children: readonly MathComponent[];
|
|
|
|
readonly limit: readonly MathComponent[];
|
2024-10-21 03:57:15 +01:00
|
|
|
};
|
2024-01-03 08:13:13 +08:00
|
|
|
|
|
|
|
export class MathLimitUpper extends XmlComponent {
|
|
|
|
public constructor(options: IMathLimitUpperOptions) {
|
|
|
|
super("m:limUpp");
|
|
|
|
|
2025-04-14 16:43:15 +05:30
|
|
|
this.root.push(createMathBase({ children: options.children }));
|
2024-01-03 08:13:13 +08:00
|
|
|
this.root.push(new MathLimit(options.limit));
|
|
|
|
}
|
|
|
|
}
|