Add math limit component (#2510)

This commit is contained in:
yaokailun
2024-01-03 08:13:13 +08:00
committed by GitHub
parent 13cf3eee5a
commit c4ed19e589
9 changed files with 210 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// http://www.datypic.com/sc/ooxml/e-m_limUpp-1.html
import { XmlComponent } from "@file/xml-components";
import { MathComponent } from "../math-component";
import { MathBase } from "./math-base";
import { MathLimit } from "./math-limit";
export interface IMathLimitUpperOptions {
readonly children: readonly MathComponent[];
readonly limit: readonly MathComponent[];
}
export class MathLimitUpper extends XmlComponent {
public constructor(options: IMathLimitUpperOptions) {
super("m:limUpp");
this.root.push(new MathBase(options.children));
this.root.push(new MathLimit(options.limit));
}
}