@syncfusion/ej2-office-common 35.1.37 → 35.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-office-common.umd.min.js +2 -2
- package/dist/ej2-office-common.umd.min.js.map +1 -1
- package/dist/es6/ej2-office-common.es2015.js +5421 -6017
- package/dist/es6/ej2-office-common.es2015.js.map +1 -1
- package/dist/es6/ej2-office-common.es5.js +6270 -7203
- package/dist/es6/ej2-office-common.es5.js.map +1 -1
- package/dist/global/ej2-office-common.min.js +2 -2
- package/dist/global/ej2-office-common.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/office-common.js +4 -0
- package/package.json +11 -7
- package/src/index.d.ts +3 -17
- package/src/index.js +3 -18
- package/src/office-common/features/index.d.ts +6 -0
- package/src/office-common/features/index.js +6 -0
- package/src/office-common/features/mathml/index.d.ts +25 -0
- package/src/office-common/features/mathml/index.js +22 -0
- package/src/office-common/features/mathml/latex/latex-generator.d.ts +8 -0
- package/src/office-common/features/mathml/latex/latex-generator.js +357 -0
- package/src/office-common/features/mathml/latex/latex-parser.d.ts +87 -0
- package/src/office-common/features/mathml/latex/latex-parser.js +1206 -0
- package/src/office-common/features/mathml/latex/latex-symbols.d.ts +13 -0
- package/src/office-common/features/mathml/latex/latex-symbols.js +681 -0
- package/src/office-common/features/mathml/math-settings.d.ts +54 -0
- package/src/office-common/features/mathml/math-settings.js +174 -0
- package/src/office-common/features/mathml/office-math/adapter.d.ts +59 -0
- package/src/office-common/features/mathml/office-math/adapter.js +6 -0
- package/src/office-common/features/mathml/office-math/basic.d.ts +91 -0
- package/src/office-common/features/mathml/office-math/basic.js +93 -0
- package/src/office-common/features/mathml/office-math/break.d.ts +30 -0
- package/src/office-common/features/mathml/office-math/break.js +75 -0
- package/src/office-common/features/mathml/office-math/collection.d.ts +104 -0
- package/src/office-common/features/mathml/office-math/collection.js +170 -0
- package/src/office-common/features/mathml/office-math/entity.d.ts +12 -0
- package/src/office-common/features/mathml/office-math/entity.js +3 -0
- package/src/office-common/features/mathml/office-math/enums.d.ts +97 -0
- package/src/office-common/features/mathml/office-math/enums.js +108 -0
- package/src/office-common/features/mathml/office-math/format.d.ts +28 -0
- package/src/office-common/features/mathml/office-math/format.js +90 -0
- package/src/office-common/features/mathml/office-math/function-base.d.ts +27 -0
- package/src/office-common/features/mathml/office-math/function-base.js +69 -0
- package/src/office-common/features/mathml/office-math/function-collection.d.ts +29 -0
- package/src/office-common/features/mathml/office-math/function-collection.js +76 -0
- package/src/office-common/features/mathml/office-math/functions-basic.d.ts +118 -0
- package/src/office-common/features/mathml/office-math/functions-basic.js +331 -0
- package/src/office-common/features/mathml/office-math/functions-multi.d.ts +156 -0
- package/src/office-common/features/mathml/office-math/functions-multi.js +407 -0
- package/src/office-common/features/mathml/office-math/index.d.ts +27 -0
- package/src/office-common/features/mathml/office-math/index.js +25 -0
- package/src/office-common/features/mathml/office-math/keys.d.ts +6 -0
- package/src/office-common/features/mathml/office-math/keys.js +20 -0
- package/src/office-common/features/mathml/office-math/math-clone.d.ts +20 -0
- package/src/office-common/features/mathml/office-math/math-clone.js +203 -0
- package/src/office-common/features/mathml/office-math/math-collection.d.ts +19 -0
- package/src/office-common/features/mathml/office-math/math-collection.js +41 -0
- package/src/office-common/features/mathml/office-math/math-equality.d.ts +21 -0
- package/src/office-common/features/mathml/office-math/math-equality.js +115 -0
- package/src/office-common/features/mathml/office-math/math-paragraph.d.ts +58 -0
- package/src/office-common/features/mathml/office-math/math-paragraph.js +126 -0
- package/src/office-common/features/mathml/office-math/math-traversal.d.ts +23 -0
- package/src/office-common/features/mathml/office-math/math-traversal.js +95 -0
- package/src/office-common/features/mathml/office-math/matrix-collections.d.ts +54 -0
- package/src/office-common/features/mathml/office-math/matrix-collections.js +113 -0
- package/src/office-common/features/mathml/office-math/matrix-column.d.ts +43 -0
- package/src/office-common/features/mathml/office-math/matrix-column.js +96 -0
- package/src/office-common/features/mathml/office-math/matrix-row.d.ts +38 -0
- package/src/office-common/features/mathml/office-math/matrix-row.js +71 -0
- package/src/office-common/features/mathml/office-math/matrix.d.ts +62 -0
- package/src/office-common/features/mathml/office-math/matrix.js +158 -0
- package/src/office-common/features/mathml/office-math/office-math.d.ts +55 -0
- package/src/office-common/features/mathml/office-math/office-math.js +116 -0
- package/src/office-common/features/mathml/office-math/owner-holder.d.ts +42 -0
- package/src/office-common/features/mathml/office-math/owner-holder.js +87 -0
- package/src/office-common/features/mathml/office-math/property-store.d.ts +66 -0
- package/src/office-common/features/mathml/office-math/property-store.js +99 -0
- package/src/office-common/features/mathml/office-math/run-element.d.ts +31 -0
- package/src/office-common/features/mathml/office-math/run-element.js +97 -0
- package/src/office-common/features/mathml/office-math/unknown-element.d.ts +37 -0
- package/src/office-common/features/mathml/office-math/unknown-element.js +62 -0
- package/src/office-common/features/mathml/office-math/xml-equal.d.ts +13 -0
- package/src/office-common/features/mathml/office-math/xml-equal.js +24 -0
- package/src/office-common/features/mathml/parse/office-math-parser.d.ts +24 -0
- package/src/office-common/features/mathml/parse/office-math-parser.js +396 -0
- package/src/office-common/features/mathml/parse/office-math-properties.d.ts +165 -0
- package/src/office-common/features/mathml/parse/office-math-properties.js +432 -0
- package/src/office-common/features/mathml/parse/parse-options.d.ts +22 -0
- package/src/office-common/features/mathml/parse/parse-options.js +3 -0
- package/src/office-common/features/mathml/serialize/office-math-properties-writer.d.ts +38 -0
- package/src/office-common/features/mathml/serialize/office-math-properties-writer.js +267 -0
- package/src/office-common/features/mathml/serialize/office-math-serializer.d.ts +23 -0
- package/src/office-common/features/mathml/serialize/office-math-serializer.js +306 -0
- package/src/office-common/features/mathml/serialize/omml-writer.d.ts +123 -0
- package/src/office-common/features/mathml/serialize/omml-writer.js +135 -0
- package/src/office-common/index.d.ts +10 -0
- package/src/office-common/index.js +10 -0
- package/.eslintrc.json +0 -263
- package/.prettierrc.json +0 -5
- package/api-extractor.json +0 -35
- package/core.js +0 -4
- package/encryption.js +0 -4
- package/features.js +0 -4
- package/global.json +0 -6
- package/nuget.config +0 -7
- package/src/all.d.ts +0 -41
- package/src/all.js +0 -38
- package/src/features/index.d.ts +0 -11
- package/src/features/index.js +0 -11
- package/src/features/mathml/index.d.ts +0 -30
- package/src/features/mathml/index.js +0 -22
- package/src/features/mathml/math-factory.d.ts +0 -26
- package/src/features/mathml/math-factory.js +0 -568
- package/src/features/mathml/model/controls.d.ts +0 -896
- package/src/features/mathml/model/controls.js +0 -1541
- package/src/features/mathml/model/math-element.d.ts +0 -173
- package/src/features/mathml/model/math-element.js +0 -315
- package/src/features/mathml/model/roots.d.ts +0 -82
- package/src/features/mathml/model/roots.js +0 -177
- package/src/features/mathml/parse/math-parser.d.ts +0 -43
- package/src/features/mathml/parse/math-parser.js +0 -636
- package/src/features/mathml/serialize/math-serializer.d.ts +0 -34
- package/src/features/mathml/serialize/math-serializer.js +0 -749
- package/tsconfig.build.json +0 -13
- package/tsconfig.harness.json +0 -32
- package/tslint.json +0 -111
- /package/src/{core → office-common/core}/index.d.ts +0 -0
- /package/src/{core → office-common/core}/index.js +0 -0
- /package/src/{core → office-common/core}/xml/index.d.ts +0 -0
- /package/src/{core → office-common/core}/xml/index.js +0 -0
- /package/src/{core → office-common/core}/xml/model.d.ts +0 -0
- /package/src/{core → office-common/core}/xml/model.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-constants.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-constants.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-encryption-info.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-encryption-info.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-password.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-password.js +0 -0
- /package/src/{encryption → office-common/encryption}/cfb-reader.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/cfb-reader.js +0 -0
- /package/src/{encryption → office-common/encryption}/crypto-primitives.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/crypto-primitives.js +0 -0
- /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.js +0 -0
- /package/src/{encryption → office-common/encryption}/encryption-info-xml.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/encryption-info-xml.js +0 -0
- /package/src/{encryption → office-common/encryption}/errors.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/errors.js +0 -0
- /package/src/{encryption → office-common/encryption}/index.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/index.js +0 -0
- /package/src/{features → office-common/features}/diagrams/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/constants.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-data-model.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-data-model.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-parsers.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-parsers.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-serializers.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-serializers.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-views.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-views.js +0 -0
- /package/src/{features → office-common/features}/diagrams/element-tree.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/element-tree.js +0 -0
- /package/src/{features → office-common/features}/diagrams/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/errors.js +0 -0
- /package/src/{features → office-common/features}/diagrams/index.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/index.js +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-catalog.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-catalog.js +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-diagram.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-diagram.js +0 -0
- /package/src/{features → office-common/features}/ink/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/constants.js +0 -0
- /package/src/{features → office-common/features}/ink/index.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/index.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-effects.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-effects.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-model.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-model.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-parser.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-parser.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-serializer.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-serializer.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-units.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-units.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-xml.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-xml.js +0 -0
- /package/src/{features → office-common/features}/ink/trace-codec.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/trace-codec.js +0 -0
- /package/src/{features → office-common/features}/mathml/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/constants.js +0 -0
- /package/src/{features → office-common/features}/mathml/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/errors.js +0 -0
- /package/src/{features → office-common/features}/mathml/model/enums.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/model/enums.js +0 -0
- /package/src/{features → office-common/features}/mathml/openxml.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/openxml.js +0 -0
- /package/src/{features → office-common/features}/smart-art/diagram-xml.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/diagram-xml.js +0 -0
- /package/src/{features → office-common/features}/smart-art/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/errors.js +0 -0
- /package/src/{features → office-common/features}/smart-art/index.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/index.js +0 -0
- /package/src/{features → office-common/features}/smart-art/minimal-samples.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/minimal-samples.js +0 -0
- /package/src/{features → office-common/features}/smart-art/mutators.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/mutators.js +0 -0
- /package/src/{features → office-common/features}/smart-art/namespaces.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/namespaces.js +0 -0
- /package/src/{features → office-common/features}/smart-art/package-graph.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/package-graph.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-colors.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-colors.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-data.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-data.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-layout.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-layout.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-rel-ids.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-rel-ids.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-style.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-style.js +0 -0
- /package/src/{features → office-common/features}/smart-art/point-text.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/point-text.js +0 -0
- /package/src/{features → office-common/features}/smart-art/register.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/register.js +0 -0
- /package/src/{features → office-common/features}/smart-art/serialize.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/serialize.js +0 -0
- /package/src/{features → office-common/features}/smart-art/types.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/types.js +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection and factory of Math functions.
|
|
3
|
+
*/
|
|
4
|
+
var __extends = (this && this.__extends) || (function () {
|
|
5
|
+
var extendStatics = function (d, b) {
|
|
6
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
9
|
+
return extendStatics(d, b);
|
|
10
|
+
};
|
|
11
|
+
return function (d, b) {
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
import { OwnedCollection } from './collection';
|
|
18
|
+
import { MathFunctionType, MathLimitType, MathScriptType } from './enums';
|
|
19
|
+
import { OfficeMathRunElement } from './run-element';
|
|
20
|
+
import { OfficeMathAccent, OfficeMathBar, OfficeMathBorderBox, OfficeMathBox, OfficeMathGroupCharacter, OfficeMathPhantom, OfficeMathRadical } from './functions-basic';
|
|
21
|
+
import { OfficeMathDelimiter, OfficeMathEquationArray, OfficeMathFraction, OfficeMathFunction, OfficeMathLimit, OfficeMathNArray, OfficeMathScript, OfficeMathRightScript, OfficeMathLeftScript } from './functions-multi';
|
|
22
|
+
import { OfficeMathMatrix } from './matrix';
|
|
23
|
+
/**
|
|
24
|
+
* Creates an unattached function of the given type.
|
|
25
|
+
*
|
|
26
|
+
* @param type
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
export function createMathFunction(type) {
|
|
30
|
+
switch (type) {
|
|
31
|
+
case MathFunctionType.Accent: return new OfficeMathAccent();
|
|
32
|
+
case MathFunctionType.Bar: return new OfficeMathBar();
|
|
33
|
+
case MathFunctionType.BorderBox: return new OfficeMathBorderBox();
|
|
34
|
+
case MathFunctionType.Box: return new OfficeMathBox();
|
|
35
|
+
case MathFunctionType.Delimiter: return new OfficeMathDelimiter();
|
|
36
|
+
case MathFunctionType.EquationArray: return new OfficeMathEquationArray();
|
|
37
|
+
case MathFunctionType.Fraction: return new OfficeMathFraction();
|
|
38
|
+
case MathFunctionType.Function: return new OfficeMathFunction();
|
|
39
|
+
case MathFunctionType.GroupCharacter: return new OfficeMathGroupCharacter();
|
|
40
|
+
case MathFunctionType.Limit: return new OfficeMathLimit();
|
|
41
|
+
case MathFunctionType.Matrix: return new OfficeMathMatrix();
|
|
42
|
+
case MathFunctionType.NArray: return new OfficeMathNArray();
|
|
43
|
+
case MathFunctionType.Phantom: return new OfficeMathPhantom();
|
|
44
|
+
case MathFunctionType.Radical: return new OfficeMathRadical();
|
|
45
|
+
case MathFunctionType.LeftSubSuperscript: return new OfficeMathLeftScript();
|
|
46
|
+
case MathFunctionType.SubSuperscript: return new OfficeMathScript();
|
|
47
|
+
case MathFunctionType.RightSubSuperscript: return new OfficeMathRightScript();
|
|
48
|
+
case MathFunctionType.RunElement: return new OfficeMathRunElement();
|
|
49
|
+
default: throw new RangeError('Unknown Math function type: ' + String(type));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Ordered collection of Math functions with a type-based factory.
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
var OfficeMathFunctionCollection = /** @class */ (function (_super) {
|
|
58
|
+
__extends(OfficeMathFunctionCollection, _super);
|
|
59
|
+
function OfficeMathFunctionCollection(owner) {
|
|
60
|
+
return _super.call(this, owner) || this;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Creates a function of the given type and appends it, or inserts it at `index`.
|
|
64
|
+
*
|
|
65
|
+
* @param type
|
|
66
|
+
* @param index
|
|
67
|
+
*/
|
|
68
|
+
OfficeMathFunctionCollection.prototype.add = function (type, index) {
|
|
69
|
+
var item = createMathFunction(type);
|
|
70
|
+
this.insertItem(index === undefined ? this.count : index, item);
|
|
71
|
+
return item;
|
|
72
|
+
};
|
|
73
|
+
return OfficeMathFunctionCollection;
|
|
74
|
+
}(OwnedCollection));
|
|
75
|
+
export { OfficeMathFunctionCollection };
|
|
76
|
+
export { MathLimitType, MathScriptType };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single-equation Math functions: accent, bar, border box, box, group character, phantom, radical.
|
|
3
|
+
*/
|
|
4
|
+
import { MathFunctionType } from './enums';
|
|
5
|
+
import { OfficeMathFunctionBase } from './function-base';
|
|
6
|
+
import { OfficeMath } from './office-math';
|
|
7
|
+
import { OfficeMathBreak } from './break';
|
|
8
|
+
import { OfficeMathEntity } from './entity';
|
|
9
|
+
/** Accent (`m:acc`). @public */
|
|
10
|
+
export declare class OfficeMathAccent extends OfficeMathFunctionBase {
|
|
11
|
+
readonly type = MathFunctionType.Accent;
|
|
12
|
+
private readonly _equation;
|
|
13
|
+
constructor(owner?: OfficeMathEntity);
|
|
14
|
+
/** Accent character. Default U+0302. */
|
|
15
|
+
accentCharacter: string;
|
|
16
|
+
/** Base equation. */
|
|
17
|
+
readonly equation: OfficeMath;
|
|
18
|
+
}
|
|
19
|
+
/** Bar (`m:bar`). @public */
|
|
20
|
+
export declare class OfficeMathBar extends OfficeMathFunctionBase {
|
|
21
|
+
readonly type = MathFunctionType.Bar;
|
|
22
|
+
private readonly _equation;
|
|
23
|
+
constructor(owner?: OfficeMathEntity);
|
|
24
|
+
/** Whether the bar is drawn above the base. Default false. */
|
|
25
|
+
barTop: boolean;
|
|
26
|
+
/** Base equation. */
|
|
27
|
+
readonly equation: OfficeMath;
|
|
28
|
+
}
|
|
29
|
+
/** Border box (`m:borderBox`). @public */
|
|
30
|
+
export declare class OfficeMathBorderBox extends OfficeMathFunctionBase {
|
|
31
|
+
readonly type = MathFunctionType.BorderBox;
|
|
32
|
+
private readonly _equation;
|
|
33
|
+
constructor(owner?: OfficeMathEntity);
|
|
34
|
+
/** Hides the top border. Default false. */
|
|
35
|
+
hideTop: boolean;
|
|
36
|
+
/** Hides the bottom border. Default false. */
|
|
37
|
+
hideBottom: boolean;
|
|
38
|
+
/** Hides the left border. Default false. */
|
|
39
|
+
hideLeft: boolean;
|
|
40
|
+
/** Hides the right border. Default false. */
|
|
41
|
+
hideRight: boolean;
|
|
42
|
+
/** Diagonal strike from bottom-left to top-right. Default false. */
|
|
43
|
+
strikeDiagonalUp: boolean;
|
|
44
|
+
/** Diagonal strike from top-left to bottom-right. Default false. */
|
|
45
|
+
strikeDiagonalDown: boolean;
|
|
46
|
+
/** Vertical strike. Default false. */
|
|
47
|
+
strikeVertical: boolean;
|
|
48
|
+
/** Horizontal strike. Default false. */
|
|
49
|
+
strikeHorizontal: boolean;
|
|
50
|
+
/** Base equation. */
|
|
51
|
+
readonly equation: OfficeMath;
|
|
52
|
+
}
|
|
53
|
+
/** Box (`m:box`). @public */
|
|
54
|
+
export declare class OfficeMathBox extends OfficeMathFunctionBase {
|
|
55
|
+
readonly type = MathFunctionType.Box;
|
|
56
|
+
private readonly _equation;
|
|
57
|
+
private _break;
|
|
58
|
+
constructor(owner?: OfficeMathEntity);
|
|
59
|
+
/** Operator alignment. Default false. */
|
|
60
|
+
alignment: boolean;
|
|
61
|
+
/** Differential. Default false. */
|
|
62
|
+
enableDifferential: boolean;
|
|
63
|
+
/** Disallows line breaks inside the box. Default true. */
|
|
64
|
+
noBreak: boolean;
|
|
65
|
+
/** Operator emulator. Default false. */
|
|
66
|
+
operatorEmulator: boolean;
|
|
67
|
+
/** Optional manual break. Not created automatically. */
|
|
68
|
+
break: OfficeMathBreak | undefined;
|
|
69
|
+
/** Base equation. */
|
|
70
|
+
readonly equation: OfficeMath;
|
|
71
|
+
}
|
|
72
|
+
/** Group character (`m:groupChr`). @public */
|
|
73
|
+
export declare class OfficeMathGroupCharacter extends OfficeMathFunctionBase {
|
|
74
|
+
readonly type = MathFunctionType.GroupCharacter;
|
|
75
|
+
private readonly _equation;
|
|
76
|
+
constructor(owner?: OfficeMathEntity);
|
|
77
|
+
/** Whether the group is aligned top. Default true. */
|
|
78
|
+
hasAlignTop: boolean;
|
|
79
|
+
/** Whether the character is drawn on top. Default false. */
|
|
80
|
+
hasCharacterTop: boolean;
|
|
81
|
+
/** Grouping character. Default U+23DF. */
|
|
82
|
+
groupCharacter: string;
|
|
83
|
+
/** Base equation. */
|
|
84
|
+
readonly equation: OfficeMath;
|
|
85
|
+
}
|
|
86
|
+
/** Phantom (`m:phant`). @public */
|
|
87
|
+
export declare class OfficeMathPhantom extends OfficeMathFunctionBase {
|
|
88
|
+
readonly type = MathFunctionType.Phantom;
|
|
89
|
+
private readonly _equation;
|
|
90
|
+
constructor(owner?: OfficeMathEntity);
|
|
91
|
+
/** Shows the phantom content. Default true. */
|
|
92
|
+
show: boolean;
|
|
93
|
+
/** Transparent. Default false. */
|
|
94
|
+
transparent: boolean;
|
|
95
|
+
/** Zero ascent. Default false. */
|
|
96
|
+
zeroAscent: boolean;
|
|
97
|
+
/** Zero descent. Default false. */
|
|
98
|
+
zeroDescent: boolean;
|
|
99
|
+
/** Zero width. Default false. */
|
|
100
|
+
zeroWidth: boolean;
|
|
101
|
+
/** Smash. Default false. */
|
|
102
|
+
smash: boolean;
|
|
103
|
+
/** Base equation. */
|
|
104
|
+
readonly equation: OfficeMath;
|
|
105
|
+
}
|
|
106
|
+
/** Radical (`m:rad`). @public */
|
|
107
|
+
export declare class OfficeMathRadical extends OfficeMathFunctionBase {
|
|
108
|
+
readonly type = MathFunctionType.Radical;
|
|
109
|
+
private readonly _equation;
|
|
110
|
+
private readonly _degree;
|
|
111
|
+
constructor(owner?: OfficeMathEntity);
|
|
112
|
+
/** Hides the degree. Default false. */
|
|
113
|
+
hideDegree: boolean;
|
|
114
|
+
/** Degree equation. */
|
|
115
|
+
readonly degree: OfficeMath;
|
|
116
|
+
/** Radicand equation. */
|
|
117
|
+
readonly equation: OfficeMath;
|
|
118
|
+
}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single-equation Math functions: accent, bar, border box, box, group character, phantom, radical.
|
|
3
|
+
*/
|
|
4
|
+
var __extends = (this && this.__extends) || (function () {
|
|
5
|
+
var extendStatics = function (d, b) {
|
|
6
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
9
|
+
return extendStatics(d, b);
|
|
10
|
+
};
|
|
11
|
+
return function (d, b) {
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
import { MathFunctionType } from './enums';
|
|
18
|
+
import { K } from './keys';
|
|
19
|
+
import { OfficeMathFunctionBase } from './function-base';
|
|
20
|
+
import { OfficeMath } from './office-math';
|
|
21
|
+
/** Accent (`m:acc`). @public */
|
|
22
|
+
var OfficeMathAccent = /** @class */ (function (_super) {
|
|
23
|
+
__extends(OfficeMathAccent, _super);
|
|
24
|
+
function OfficeMathAccent(owner) {
|
|
25
|
+
var _this = _super.call(this, owner) || this;
|
|
26
|
+
_this.type = MathFunctionType.Accent;
|
|
27
|
+
_this._equation = new OfficeMath(_this);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
Object.defineProperty(OfficeMathAccent.prototype, "accentCharacter", {
|
|
31
|
+
/** Accent character. Default U+0302. */
|
|
32
|
+
get: function () { return this.getProperty(K.AccentChar, function () { return String.fromCharCode(770); }); },
|
|
33
|
+
set: function (value) { this.setProperty(K.AccentChar, value); },
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(OfficeMathAccent.prototype, "equation", {
|
|
38
|
+
/** Base equation. */
|
|
39
|
+
get: function () { return this._equation; },
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
43
|
+
return OfficeMathAccent;
|
|
44
|
+
}(OfficeMathFunctionBase));
|
|
45
|
+
export { OfficeMathAccent };
|
|
46
|
+
/** Bar (`m:bar`). @public */
|
|
47
|
+
var OfficeMathBar = /** @class */ (function (_super) {
|
|
48
|
+
__extends(OfficeMathBar, _super);
|
|
49
|
+
function OfficeMathBar(owner) {
|
|
50
|
+
var _this = _super.call(this, owner) || this;
|
|
51
|
+
_this.type = MathFunctionType.Bar;
|
|
52
|
+
_this._equation = new OfficeMath(_this);
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
Object.defineProperty(OfficeMathBar.prototype, "barTop", {
|
|
56
|
+
/** Whether the bar is drawn above the base. Default false. */
|
|
57
|
+
get: function () { return this.getProperty(K.BarTop, function () { return false; }); },
|
|
58
|
+
set: function (value) { this.setProperty(K.BarTop, value); },
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(OfficeMathBar.prototype, "equation", {
|
|
63
|
+
/** Base equation. */
|
|
64
|
+
get: function () { return this._equation; },
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true
|
|
67
|
+
});
|
|
68
|
+
return OfficeMathBar;
|
|
69
|
+
}(OfficeMathFunctionBase));
|
|
70
|
+
export { OfficeMathBar };
|
|
71
|
+
/** Border box (`m:borderBox`). @public */
|
|
72
|
+
var OfficeMathBorderBox = /** @class */ (function (_super) {
|
|
73
|
+
__extends(OfficeMathBorderBox, _super);
|
|
74
|
+
function OfficeMathBorderBox(owner) {
|
|
75
|
+
var _this = _super.call(this, owner) || this;
|
|
76
|
+
_this.type = MathFunctionType.BorderBox;
|
|
77
|
+
_this._equation = new OfficeMath(_this);
|
|
78
|
+
return _this;
|
|
79
|
+
}
|
|
80
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "hideTop", {
|
|
81
|
+
/** Hides the top border. Default false. */
|
|
82
|
+
get: function () { return this.getProperty(K.HideTop, function () { return false; }); },
|
|
83
|
+
set: function (value) { this.setProperty(K.HideTop, value); },
|
|
84
|
+
enumerable: true,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "hideBottom", {
|
|
88
|
+
/** Hides the bottom border. Default false. */
|
|
89
|
+
get: function () { return this.getProperty(K.HideBottom, function () { return false; }); },
|
|
90
|
+
set: function (value) { this.setProperty(K.HideBottom, value); },
|
|
91
|
+
enumerable: true,
|
|
92
|
+
configurable: true
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "hideLeft", {
|
|
95
|
+
/** Hides the left border. Default false. */
|
|
96
|
+
get: function () { return this.getProperty(K.HideLeft, function () { return false; }); },
|
|
97
|
+
set: function (value) { this.setProperty(K.HideLeft, value); },
|
|
98
|
+
enumerable: true,
|
|
99
|
+
configurable: true
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "hideRight", {
|
|
102
|
+
/** Hides the right border. Default false. */
|
|
103
|
+
get: function () { return this.getProperty(K.HideRight, function () { return false; }); },
|
|
104
|
+
set: function (value) { this.setProperty(K.HideRight, value); },
|
|
105
|
+
enumerable: true,
|
|
106
|
+
configurable: true
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "strikeDiagonalUp", {
|
|
109
|
+
/** Diagonal strike from bottom-left to top-right. Default false. */
|
|
110
|
+
get: function () { return this.getProperty(K.StrikeBLTR, function () { return false; }); },
|
|
111
|
+
set: function (value) { this.setProperty(K.StrikeBLTR, value); },
|
|
112
|
+
enumerable: true,
|
|
113
|
+
configurable: true
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "strikeDiagonalDown", {
|
|
116
|
+
/** Diagonal strike from top-left to bottom-right. Default false. */
|
|
117
|
+
get: function () { return this.getProperty(K.StrikeTLBR, function () { return false; }); },
|
|
118
|
+
set: function (value) { this.setProperty(K.StrikeTLBR, value); },
|
|
119
|
+
enumerable: true,
|
|
120
|
+
configurable: true
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "strikeVertical", {
|
|
123
|
+
/** Vertical strike. Default false. */
|
|
124
|
+
get: function () { return this.getProperty(K.StrikeVertical, function () { return false; }); },
|
|
125
|
+
set: function (value) { this.setProperty(K.StrikeVertical, value); },
|
|
126
|
+
enumerable: true,
|
|
127
|
+
configurable: true
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "strikeHorizontal", {
|
|
130
|
+
/** Horizontal strike. Default false. */
|
|
131
|
+
get: function () { return this.getProperty(K.StrikeHorizontal, function () { return false; }); },
|
|
132
|
+
set: function (value) { this.setProperty(K.StrikeHorizontal, value); },
|
|
133
|
+
enumerable: true,
|
|
134
|
+
configurable: true
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(OfficeMathBorderBox.prototype, "equation", {
|
|
137
|
+
/** Base equation. */
|
|
138
|
+
get: function () { return this._equation; },
|
|
139
|
+
enumerable: true,
|
|
140
|
+
configurable: true
|
|
141
|
+
});
|
|
142
|
+
return OfficeMathBorderBox;
|
|
143
|
+
}(OfficeMathFunctionBase));
|
|
144
|
+
export { OfficeMathBorderBox };
|
|
145
|
+
/** Box (`m:box`). @public */
|
|
146
|
+
var OfficeMathBox = /** @class */ (function (_super) {
|
|
147
|
+
__extends(OfficeMathBox, _super);
|
|
148
|
+
function OfficeMathBox(owner) {
|
|
149
|
+
var _this = _super.call(this, owner) || this;
|
|
150
|
+
_this.type = MathFunctionType.Box;
|
|
151
|
+
_this._equation = new OfficeMath(_this);
|
|
152
|
+
return _this;
|
|
153
|
+
}
|
|
154
|
+
Object.defineProperty(OfficeMathBox.prototype, "alignment", {
|
|
155
|
+
/** Operator alignment. Default false. */
|
|
156
|
+
get: function () { return this.getProperty(K.BoxAlign, function () { return false; }); },
|
|
157
|
+
set: function (value) { this.setProperty(K.BoxAlign, value); },
|
|
158
|
+
enumerable: true,
|
|
159
|
+
configurable: true
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(OfficeMathBox.prototype, "enableDifferential", {
|
|
162
|
+
/** Differential. Default false. */
|
|
163
|
+
get: function () { return this.getProperty(K.EnableDifferential, function () { return false; }); },
|
|
164
|
+
set: function (value) { this.setProperty(K.EnableDifferential, value); },
|
|
165
|
+
enumerable: true,
|
|
166
|
+
configurable: true
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(OfficeMathBox.prototype, "noBreak", {
|
|
169
|
+
/** Disallows line breaks inside the box. Default true. */
|
|
170
|
+
get: function () { return this.getProperty(K.NoBreak, function () { return true; }); },
|
|
171
|
+
set: function (value) { this.setProperty(K.NoBreak, value); },
|
|
172
|
+
enumerable: true,
|
|
173
|
+
configurable: true
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(OfficeMathBox.prototype, "operatorEmulator", {
|
|
176
|
+
/** Operator emulator. Default false. */
|
|
177
|
+
get: function () { return this.getProperty(K.OperatorEmulator, function () { return false; }); },
|
|
178
|
+
set: function (value) { this.setProperty(K.OperatorEmulator, value); },
|
|
179
|
+
enumerable: true,
|
|
180
|
+
configurable: true
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(OfficeMathBox.prototype, "break", {
|
|
183
|
+
/** Optional manual break. Not created automatically. */
|
|
184
|
+
get: function () { return this._break; },
|
|
185
|
+
set: function (value) {
|
|
186
|
+
this._break = value;
|
|
187
|
+
this.notifyMutated();
|
|
188
|
+
},
|
|
189
|
+
enumerable: true,
|
|
190
|
+
configurable: true
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(OfficeMathBox.prototype, "equation", {
|
|
193
|
+
/** Base equation. */
|
|
194
|
+
get: function () { return this._equation; },
|
|
195
|
+
enumerable: true,
|
|
196
|
+
configurable: true
|
|
197
|
+
});
|
|
198
|
+
return OfficeMathBox;
|
|
199
|
+
}(OfficeMathFunctionBase));
|
|
200
|
+
export { OfficeMathBox };
|
|
201
|
+
/** Group character (`m:groupChr`). @public */
|
|
202
|
+
var OfficeMathGroupCharacter = /** @class */ (function (_super) {
|
|
203
|
+
__extends(OfficeMathGroupCharacter, _super);
|
|
204
|
+
function OfficeMathGroupCharacter(owner) {
|
|
205
|
+
var _this = _super.call(this, owner) || this;
|
|
206
|
+
_this.type = MathFunctionType.GroupCharacter;
|
|
207
|
+
_this._equation = new OfficeMath(_this);
|
|
208
|
+
return _this;
|
|
209
|
+
}
|
|
210
|
+
Object.defineProperty(OfficeMathGroupCharacter.prototype, "hasAlignTop", {
|
|
211
|
+
/** Whether the group is aligned top. Default true. */
|
|
212
|
+
get: function () { return this.getProperty(K.HasAlignTop, function () { return true; }); },
|
|
213
|
+
set: function (value) { this.setProperty(K.HasAlignTop, value); },
|
|
214
|
+
enumerable: true,
|
|
215
|
+
configurable: true
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(OfficeMathGroupCharacter.prototype, "hasCharacterTop", {
|
|
218
|
+
/** Whether the character is drawn on top. Default false. */
|
|
219
|
+
get: function () { return this.getProperty(K.HasCharTop, function () { return false; }); },
|
|
220
|
+
set: function (value) { this.setProperty(K.HasCharTop, value); },
|
|
221
|
+
enumerable: true,
|
|
222
|
+
configurable: true
|
|
223
|
+
});
|
|
224
|
+
Object.defineProperty(OfficeMathGroupCharacter.prototype, "groupCharacter", {
|
|
225
|
+
/** Grouping character. Default U+23DF. */
|
|
226
|
+
get: function () { return this.getProperty(K.GroupChar, function () { return String.fromCharCode(9183); }); },
|
|
227
|
+
set: function (value) { this.setProperty(K.GroupChar, value); },
|
|
228
|
+
enumerable: true,
|
|
229
|
+
configurable: true
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(OfficeMathGroupCharacter.prototype, "equation", {
|
|
232
|
+
/** Base equation. */
|
|
233
|
+
get: function () { return this._equation; },
|
|
234
|
+
enumerable: true,
|
|
235
|
+
configurable: true
|
|
236
|
+
});
|
|
237
|
+
return OfficeMathGroupCharacter;
|
|
238
|
+
}(OfficeMathFunctionBase));
|
|
239
|
+
export { OfficeMathGroupCharacter };
|
|
240
|
+
/** Phantom (`m:phant`). @public */
|
|
241
|
+
var OfficeMathPhantom = /** @class */ (function (_super) {
|
|
242
|
+
__extends(OfficeMathPhantom, _super);
|
|
243
|
+
function OfficeMathPhantom(owner) {
|
|
244
|
+
var _this = _super.call(this, owner) || this;
|
|
245
|
+
_this.type = MathFunctionType.Phantom;
|
|
246
|
+
_this._equation = new OfficeMath(_this);
|
|
247
|
+
return _this;
|
|
248
|
+
}
|
|
249
|
+
Object.defineProperty(OfficeMathPhantom.prototype, "show", {
|
|
250
|
+
/** Shows the phantom content. Default true. */
|
|
251
|
+
get: function () { return this.getProperty(K.Show, function () { return true; }); },
|
|
252
|
+
set: function (value) { this.setProperty(K.Show, value); },
|
|
253
|
+
enumerable: true,
|
|
254
|
+
configurable: true
|
|
255
|
+
});
|
|
256
|
+
Object.defineProperty(OfficeMathPhantom.prototype, "transparent", {
|
|
257
|
+
/** Transparent. Default false. */
|
|
258
|
+
get: function () { return this.getProperty(K.Transparent, function () { return false; }); },
|
|
259
|
+
set: function (value) { this.setProperty(K.Transparent, value); },
|
|
260
|
+
enumerable: true,
|
|
261
|
+
configurable: true
|
|
262
|
+
});
|
|
263
|
+
Object.defineProperty(OfficeMathPhantom.prototype, "zeroAscent", {
|
|
264
|
+
/** Zero ascent. Default false. */
|
|
265
|
+
get: function () { return this.getProperty(K.ZeroAscent, function () { return false; }); },
|
|
266
|
+
set: function (value) { this.setProperty(K.ZeroAscent, value); },
|
|
267
|
+
enumerable: true,
|
|
268
|
+
configurable: true
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(OfficeMathPhantom.prototype, "zeroDescent", {
|
|
271
|
+
/** Zero descent. Default false. */
|
|
272
|
+
get: function () { return this.getProperty(K.ZeroDescent, function () { return false; }); },
|
|
273
|
+
set: function (value) { this.setProperty(K.ZeroDescent, value); },
|
|
274
|
+
enumerable: true,
|
|
275
|
+
configurable: true
|
|
276
|
+
});
|
|
277
|
+
Object.defineProperty(OfficeMathPhantom.prototype, "zeroWidth", {
|
|
278
|
+
/** Zero width. Default false. */
|
|
279
|
+
get: function () { return this.getProperty(K.ZeroWidth, function () { return false; }); },
|
|
280
|
+
set: function (value) { this.setProperty(K.ZeroWidth, value); },
|
|
281
|
+
enumerable: true,
|
|
282
|
+
configurable: true
|
|
283
|
+
});
|
|
284
|
+
Object.defineProperty(OfficeMathPhantom.prototype, "smash", {
|
|
285
|
+
/** Smash. Default false. */
|
|
286
|
+
get: function () { return this.getProperty(K.Smash, function () { return false; }); },
|
|
287
|
+
set: function (value) { this.setProperty(K.Smash, value); },
|
|
288
|
+
enumerable: true,
|
|
289
|
+
configurable: true
|
|
290
|
+
});
|
|
291
|
+
Object.defineProperty(OfficeMathPhantom.prototype, "equation", {
|
|
292
|
+
/** Base equation. */
|
|
293
|
+
get: function () { return this._equation; },
|
|
294
|
+
enumerable: true,
|
|
295
|
+
configurable: true
|
|
296
|
+
});
|
|
297
|
+
return OfficeMathPhantom;
|
|
298
|
+
}(OfficeMathFunctionBase));
|
|
299
|
+
export { OfficeMathPhantom };
|
|
300
|
+
/** Radical (`m:rad`). @public */
|
|
301
|
+
var OfficeMathRadical = /** @class */ (function (_super) {
|
|
302
|
+
__extends(OfficeMathRadical, _super);
|
|
303
|
+
function OfficeMathRadical(owner) {
|
|
304
|
+
var _this = _super.call(this, owner) || this;
|
|
305
|
+
_this.type = MathFunctionType.Radical;
|
|
306
|
+
_this._equation = new OfficeMath(_this);
|
|
307
|
+
_this._degree = new OfficeMath(_this);
|
|
308
|
+
return _this;
|
|
309
|
+
}
|
|
310
|
+
Object.defineProperty(OfficeMathRadical.prototype, "hideDegree", {
|
|
311
|
+
/** Hides the degree. Default false. */
|
|
312
|
+
get: function () { return this.getProperty(K.HideDegree, function () { return false; }); },
|
|
313
|
+
set: function (value) { this.setProperty(K.HideDegree, value); },
|
|
314
|
+
enumerable: true,
|
|
315
|
+
configurable: true
|
|
316
|
+
});
|
|
317
|
+
Object.defineProperty(OfficeMathRadical.prototype, "degree", {
|
|
318
|
+
/** Degree equation. */
|
|
319
|
+
get: function () { return this._degree; },
|
|
320
|
+
enumerable: true,
|
|
321
|
+
configurable: true
|
|
322
|
+
});
|
|
323
|
+
Object.defineProperty(OfficeMathRadical.prototype, "equation", {
|
|
324
|
+
/** Radicand equation. */
|
|
325
|
+
get: function () { return this._equation; },
|
|
326
|
+
enumerable: true,
|
|
327
|
+
configurable: true
|
|
328
|
+
});
|
|
329
|
+
return OfficeMathRadical;
|
|
330
|
+
}(OfficeMathFunctionBase));
|
|
331
|
+
export { OfficeMathRadical };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Multi-equation Math functions: delimiter, equation array, fraction, function, limit, n-ary, scripts.
|
|
3
|
+
*/
|
|
4
|
+
import { MathFunctionType, MathDelimiterShapeType, MathFractionType, MathLimitType, MathScriptType, MathVerticalAlignment, SpacingRule } from './enums';
|
|
5
|
+
import { OfficeMathFunctionBase } from './function-base';
|
|
6
|
+
import { OfficeMath } from './office-math';
|
|
7
|
+
import { OfficeMathCollection } from './math-collection';
|
|
8
|
+
import { OfficeMathEntity } from './entity';
|
|
9
|
+
/** Delimiter (`m:d`). @public */
|
|
10
|
+
export declare class OfficeMathDelimiter extends OfficeMathFunctionBase {
|
|
11
|
+
readonly type = MathFunctionType.Delimiter;
|
|
12
|
+
private readonly _equations;
|
|
13
|
+
constructor(owner?: OfficeMathEntity);
|
|
14
|
+
/** Opening character. Default `(`. */
|
|
15
|
+
beginCharacter: string;
|
|
16
|
+
/** Closing character. Default `)`. */
|
|
17
|
+
endCharacter: string;
|
|
18
|
+
/** Separator character. Default `|`. */
|
|
19
|
+
separator: string;
|
|
20
|
+
/** Whether delimiters grow with content. Default true. */
|
|
21
|
+
isGrow: boolean;
|
|
22
|
+
/** Delimiter shape. Default centered. */
|
|
23
|
+
delimiterShape: MathDelimiterShapeType;
|
|
24
|
+
/** Argument equations. */
|
|
25
|
+
readonly equations: OfficeMathCollection;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Validates a row spacing value against its rule.
|
|
29
|
+
*
|
|
30
|
+
* @param value
|
|
31
|
+
* @param rule
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
export declare function checkRowSpacing(value: number, rule: SpacingRule): void;
|
|
35
|
+
/** Equation array (`m:eqArr`). @public */
|
|
36
|
+
export declare class OfficeMathEquationArray extends OfficeMathFunctionBase {
|
|
37
|
+
readonly type = MathFunctionType.EquationArray;
|
|
38
|
+
private readonly _equations;
|
|
39
|
+
constructor(owner?: OfficeMathEntity);
|
|
40
|
+
/** Vertical alignment. Default center. */
|
|
41
|
+
verticalAlignment: MathVerticalAlignment;
|
|
42
|
+
/** Expand container. Default false. */
|
|
43
|
+
expandEquationContainer: boolean;
|
|
44
|
+
/** Expand content. Default false. */
|
|
45
|
+
expandEquationContent: boolean;
|
|
46
|
+
/** Row spacing; unit depends on `rowSpacingRule` (points for Exactly, lines for Multiple). Default 0. */
|
|
47
|
+
rowSpacing: number;
|
|
48
|
+
/** Row spacing rule. Default single. */
|
|
49
|
+
rowSpacingRule: SpacingRule;
|
|
50
|
+
/** Row equations. */
|
|
51
|
+
readonly equations: OfficeMathCollection;
|
|
52
|
+
}
|
|
53
|
+
/** Fraction (`m:f`). @public */
|
|
54
|
+
export declare class OfficeMathFraction extends OfficeMathFunctionBase {
|
|
55
|
+
readonly type = MathFunctionType.Fraction;
|
|
56
|
+
private readonly _numerator;
|
|
57
|
+
private readonly _denominator;
|
|
58
|
+
constructor(owner?: OfficeMathEntity);
|
|
59
|
+
/** Fraction type. Default normal bar. */
|
|
60
|
+
fractionType: MathFractionType;
|
|
61
|
+
/** Numerator. */
|
|
62
|
+
readonly numerator: OfficeMath;
|
|
63
|
+
/** Denominator. */
|
|
64
|
+
readonly denominator: OfficeMath;
|
|
65
|
+
}
|
|
66
|
+
/** Function application (`m:func`). @public */
|
|
67
|
+
export declare class OfficeMathFunction extends OfficeMathFunctionBase {
|
|
68
|
+
readonly type = MathFunctionType.Function;
|
|
69
|
+
private readonly _equation;
|
|
70
|
+
private readonly _functionName;
|
|
71
|
+
constructor(owner?: OfficeMathEntity);
|
|
72
|
+
/** Argument equation. */
|
|
73
|
+
readonly equation: OfficeMath;
|
|
74
|
+
/** Function name equation. */
|
|
75
|
+
readonly functionName: OfficeMath;
|
|
76
|
+
}
|
|
77
|
+
/** Lower or upper limit (`m:limLow` / `m:limUpp`). @public */
|
|
78
|
+
export declare class OfficeMathLimit extends OfficeMathFunctionBase {
|
|
79
|
+
readonly type = MathFunctionType.Limit;
|
|
80
|
+
private readonly _equation;
|
|
81
|
+
private readonly _limit;
|
|
82
|
+
constructor(owner?: OfficeMathEntity);
|
|
83
|
+
/** Lower or upper limit. Default lower. */
|
|
84
|
+
limitType: MathLimitType;
|
|
85
|
+
/** Base equation. */
|
|
86
|
+
readonly equation: OfficeMath;
|
|
87
|
+
/** Limit equation. */
|
|
88
|
+
readonly limit: OfficeMath;
|
|
89
|
+
}
|
|
90
|
+
/** N-ary operator (`m:nary`). @public */
|
|
91
|
+
export declare class OfficeMathNArray extends OfficeMathFunctionBase {
|
|
92
|
+
readonly type = MathFunctionType.NArray;
|
|
93
|
+
private readonly _equation;
|
|
94
|
+
private readonly _subscript;
|
|
95
|
+
private readonly _superscript;
|
|
96
|
+
constructor(owner?: OfficeMathEntity);
|
|
97
|
+
/** Operator character. Default U+222B. */
|
|
98
|
+
nArrayCharacter: string;
|
|
99
|
+
/** Whether the operator grows. Default false. */
|
|
100
|
+
hasGrow: boolean;
|
|
101
|
+
/** Hides the lower limit. Default false. */
|
|
102
|
+
hideLowerLimit: boolean;
|
|
103
|
+
/** Hides the upper limit. Default false. */
|
|
104
|
+
hideUpperLimit: boolean;
|
|
105
|
+
/** Limits as sub/superscript. Default true for the integral character, false otherwise. */
|
|
106
|
+
subSuperscriptLimit: boolean;
|
|
107
|
+
/** Operand equation. */
|
|
108
|
+
readonly equation: OfficeMath;
|
|
109
|
+
/** Lower limit equation. */
|
|
110
|
+
readonly subscript: OfficeMath;
|
|
111
|
+
/** Upper limit equation. */
|
|
112
|
+
readonly superscript: OfficeMath;
|
|
113
|
+
}
|
|
114
|
+
/** Single subscript or superscript (`m:sSub` / `m:sSup`). @public */
|
|
115
|
+
export declare class OfficeMathScript extends OfficeMathFunctionBase {
|
|
116
|
+
readonly type = MathFunctionType.SubSuperscript;
|
|
117
|
+
private readonly _equation;
|
|
118
|
+
private readonly _script;
|
|
119
|
+
constructor(owner?: OfficeMathEntity);
|
|
120
|
+
/** Subscript or superscript. Default superscript. */
|
|
121
|
+
scriptType: MathScriptType;
|
|
122
|
+
/** Base equation. */
|
|
123
|
+
readonly equation: OfficeMath;
|
|
124
|
+
/** Script equation. */
|
|
125
|
+
readonly script: OfficeMath;
|
|
126
|
+
}
|
|
127
|
+
/** Combined right sub/superscript (`m:sSubSup`). @public */
|
|
128
|
+
export declare class OfficeMathRightScript extends OfficeMathFunctionBase {
|
|
129
|
+
readonly type = MathFunctionType.RightSubSuperscript;
|
|
130
|
+
private readonly _equation;
|
|
131
|
+
private readonly _subscript;
|
|
132
|
+
private readonly _superscript;
|
|
133
|
+
constructor(owner?: OfficeMathEntity);
|
|
134
|
+
/** Align scripts. Default true. */
|
|
135
|
+
isSkipAlign: boolean;
|
|
136
|
+
/** Base equation. */
|
|
137
|
+
readonly equation: OfficeMath;
|
|
138
|
+
/** Subscript equation. */
|
|
139
|
+
readonly subscript: OfficeMath;
|
|
140
|
+
/** Superscript equation. */
|
|
141
|
+
readonly superscript: OfficeMath;
|
|
142
|
+
}
|
|
143
|
+
/** Left sub/superscript (`m:sPre`). @public */
|
|
144
|
+
export declare class OfficeMathLeftScript extends OfficeMathFunctionBase {
|
|
145
|
+
readonly type = MathFunctionType.LeftSubSuperscript;
|
|
146
|
+
private readonly _equation;
|
|
147
|
+
private readonly _subscript;
|
|
148
|
+
private readonly _superscript;
|
|
149
|
+
constructor(owner?: OfficeMathEntity);
|
|
150
|
+
/** Base equation. */
|
|
151
|
+
readonly equation: OfficeMath;
|
|
152
|
+
/** Subscript equation. */
|
|
153
|
+
readonly subscript: OfficeMath;
|
|
154
|
+
/** Superscript equation. */
|
|
155
|
+
readonly superscript: OfficeMath;
|
|
156
|
+
}
|