asposewordscloud
Version:
Aspose.Words Cloud SDK for Node.js
139 lines (138 loc) • 7.04 kB
JavaScript
/*
* --------------------------------------------------------------------------------
* <copyright company="Aspose" file="officeMathObject.ts">
* Copyright (c) 2025 Aspose.Words for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* </summary>
* --------------------------------------------------------------------------------
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.OfficeMathObject = exports.importsMapOfficeMathObject = void 0;
const officeMathLink_1 = require("./officeMathLink");
const storyChildNodes_1 = require("./storyChildNodes");
exports.importsMapOfficeMathObject = {
OfficeMathLink: officeMathLink_1.OfficeMathLink,
StoryChildNodes: storyChildNodes_1.StoryChildNodes,
};
/**
* DTO container with an OfficeMath object.
*/
class OfficeMathObject extends officeMathLink_1.OfficeMathLink {
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return super.getAttributeTypeMap().concat(OfficeMathObject.attributeTypeMap);
}
constructor(init) {
super(init);
Object.assign(this, init);
}
collectFilesContent(_resultFilesContent) {
}
validate() {
var _a;
super.validate();
(_a = this.content) === null || _a === void 0 ? void 0 : _a.validate();
}
}
exports.OfficeMathObject = OfficeMathObject;
/**
* Attribute type map
*/
OfficeMathObject.attributeTypeMap = [
{
name: "content",
baseName: "Content",
type: "StoryChildNodes",
},
{
name: "displayType",
baseName: "DisplayType",
type: "OfficeMathObject.DisplayTypeEnum",
},
{
name: "justification",
baseName: "Justification",
type: "OfficeMathObject.JustificationEnum",
},
{
name: "mathObjectType",
baseName: "MathObjectType",
type: "OfficeMathObject.MathObjectTypeEnum",
}
];
/**
* Enums for OfficeMathObject
*/
// tslint:disable:quotemark
// tslint:disable-next-line:no-namespace
(function (OfficeMathObject) {
let DisplayTypeEnum;
(function (DisplayTypeEnum) {
DisplayTypeEnum[DisplayTypeEnum["Display"] = 'Display'] = "Display";
DisplayTypeEnum[DisplayTypeEnum["Inline"] = 'Inline'] = "Inline";
})(DisplayTypeEnum = OfficeMathObject.DisplayTypeEnum || (OfficeMathObject.DisplayTypeEnum = {}));
let JustificationEnum;
(function (JustificationEnum) {
JustificationEnum[JustificationEnum["CenterGroup"] = 'CenterGroup'] = "CenterGroup";
JustificationEnum[JustificationEnum["Default"] = 'Default'] = "Default";
JustificationEnum[JustificationEnum["Center"] = 'Center'] = "Center";
JustificationEnum[JustificationEnum["Left"] = 'Left'] = "Left";
JustificationEnum[JustificationEnum["Right"] = 'Right'] = "Right";
JustificationEnum[JustificationEnum["Inline"] = 'Inline'] = "Inline";
})(JustificationEnum = OfficeMathObject.JustificationEnum || (OfficeMathObject.JustificationEnum = {}));
let MathObjectTypeEnum;
(function (MathObjectTypeEnum) {
MathObjectTypeEnum[MathObjectTypeEnum["OMath"] = 'OMath'] = "OMath";
MathObjectTypeEnum[MathObjectTypeEnum["OMathPara"] = 'OMathPara'] = "OMathPara";
MathObjectTypeEnum[MathObjectTypeEnum["Accent"] = 'Accent'] = "Accent";
MathObjectTypeEnum[MathObjectTypeEnum["Bar"] = 'Bar'] = "Bar";
MathObjectTypeEnum[MathObjectTypeEnum["BorderBox"] = 'BorderBox'] = "BorderBox";
MathObjectTypeEnum[MathObjectTypeEnum["Box"] = 'Box'] = "Box";
MathObjectTypeEnum[MathObjectTypeEnum["Delimiter"] = 'Delimiter'] = "Delimiter";
MathObjectTypeEnum[MathObjectTypeEnum["Degree"] = 'Degree'] = "Degree";
MathObjectTypeEnum[MathObjectTypeEnum["Argument"] = 'Argument'] = "Argument";
MathObjectTypeEnum[MathObjectTypeEnum["Array"] = 'Array'] = "Array";
MathObjectTypeEnum[MathObjectTypeEnum["Fraction"] = 'Fraction'] = "Fraction";
MathObjectTypeEnum[MathObjectTypeEnum["Denominator"] = 'Denominator'] = "Denominator";
MathObjectTypeEnum[MathObjectTypeEnum["Numerator"] = 'Numerator'] = "Numerator";
MathObjectTypeEnum[MathObjectTypeEnum["Function"] = 'Function'] = "Function";
MathObjectTypeEnum[MathObjectTypeEnum["FunctionName"] = 'FunctionName'] = "FunctionName";
MathObjectTypeEnum[MathObjectTypeEnum["GroupCharacter"] = 'GroupCharacter'] = "GroupCharacter";
MathObjectTypeEnum[MathObjectTypeEnum["Limit"] = 'Limit'] = "Limit";
MathObjectTypeEnum[MathObjectTypeEnum["LowerLimit"] = 'LowerLimit'] = "LowerLimit";
MathObjectTypeEnum[MathObjectTypeEnum["UpperLimit"] = 'UpperLimit'] = "UpperLimit";
MathObjectTypeEnum[MathObjectTypeEnum["Matrix"] = 'Matrix'] = "Matrix";
MathObjectTypeEnum[MathObjectTypeEnum["MatrixRow"] = 'MatrixRow'] = "MatrixRow";
MathObjectTypeEnum[MathObjectTypeEnum["NAry"] = 'NAry'] = "NAry";
MathObjectTypeEnum[MathObjectTypeEnum["Phantom"] = 'Phantom'] = "Phantom";
MathObjectTypeEnum[MathObjectTypeEnum["Radical"] = 'Radical'] = "Radical";
MathObjectTypeEnum[MathObjectTypeEnum["SubscriptPart"] = 'SubscriptPart'] = "SubscriptPart";
MathObjectTypeEnum[MathObjectTypeEnum["SuperscriptPart"] = 'SuperscriptPart'] = "SuperscriptPart";
MathObjectTypeEnum[MathObjectTypeEnum["PreSubSuperscript"] = 'PreSubSuperscript'] = "PreSubSuperscript";
MathObjectTypeEnum[MathObjectTypeEnum["Subscript"] = 'Subscript'] = "Subscript";
MathObjectTypeEnum[MathObjectTypeEnum["SubSuperscript"] = 'SubSuperscript'] = "SubSuperscript";
MathObjectTypeEnum[MathObjectTypeEnum["Supercript"] = 'Supercript'] = "Supercript";
})(MathObjectTypeEnum = OfficeMathObject.MathObjectTypeEnum || (OfficeMathObject.MathObjectTypeEnum = {}));
})(OfficeMathObject = exports.OfficeMathObject || (exports.OfficeMathObject = {}));
// tslint:enable:quotemark
;