Fix the incorrect limit location value of MathIntergral #2512 (#2513)

This commit is contained in:
yaokailun
2024-01-04 10:42:05 +08:00
committed by GitHub
parent e779f6ea62
commit 75715fde37
4 changed files with 7 additions and 7 deletions

View File

@ -7,13 +7,13 @@ import { MathSubScriptHide } from "./math-sub-script-hide";
import { MathSuperScriptHide } from "./math-super-script-hide";
export class MathNAryProperties extends XmlComponent {
public constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean) {
public constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean, limitLocationVal?: string) {
super("m:naryPr");
if (!!accent) {
this.root.push(new MathAccentCharacter(accent));
}
this.root.push(new MathLimitLocation());
this.root.push(new MathLimitLocation(limitLocationVal));
if (!hasSuperScript) {
this.root.push(new MathSuperScriptHide());