20 lines
635 B
TypeScript
20 lines
635 B
TypeScript
![]() |
// 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));
|
||
|
}
|
||
|
}
|