@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.
Files changed (226) hide show
  1. package/dist/ej2-office-common.umd.min.js +2 -2
  2. package/dist/ej2-office-common.umd.min.js.map +1 -1
  3. package/dist/es6/ej2-office-common.es2015.js +5421 -6017
  4. package/dist/es6/ej2-office-common.es2015.js.map +1 -1
  5. package/dist/es6/ej2-office-common.es5.js +6270 -7203
  6. package/dist/es6/ej2-office-common.es5.js.map +1 -1
  7. package/dist/global/ej2-office-common.min.js +2 -2
  8. package/dist/global/ej2-office-common.min.js.map +1 -1
  9. package/dist/global/index.d.ts +1 -1
  10. package/office-common.js +4 -0
  11. package/package.json +11 -7
  12. package/src/index.d.ts +3 -17
  13. package/src/index.js +3 -18
  14. package/src/office-common/features/index.d.ts +6 -0
  15. package/src/office-common/features/index.js +6 -0
  16. package/src/office-common/features/mathml/index.d.ts +25 -0
  17. package/src/office-common/features/mathml/index.js +22 -0
  18. package/src/office-common/features/mathml/latex/latex-generator.d.ts +8 -0
  19. package/src/office-common/features/mathml/latex/latex-generator.js +357 -0
  20. package/src/office-common/features/mathml/latex/latex-parser.d.ts +87 -0
  21. package/src/office-common/features/mathml/latex/latex-parser.js +1206 -0
  22. package/src/office-common/features/mathml/latex/latex-symbols.d.ts +13 -0
  23. package/src/office-common/features/mathml/latex/latex-symbols.js +681 -0
  24. package/src/office-common/features/mathml/math-settings.d.ts +54 -0
  25. package/src/office-common/features/mathml/math-settings.js +174 -0
  26. package/src/office-common/features/mathml/office-math/adapter.d.ts +59 -0
  27. package/src/office-common/features/mathml/office-math/adapter.js +6 -0
  28. package/src/office-common/features/mathml/office-math/basic.d.ts +91 -0
  29. package/src/office-common/features/mathml/office-math/basic.js +93 -0
  30. package/src/office-common/features/mathml/office-math/break.d.ts +30 -0
  31. package/src/office-common/features/mathml/office-math/break.js +75 -0
  32. package/src/office-common/features/mathml/office-math/collection.d.ts +104 -0
  33. package/src/office-common/features/mathml/office-math/collection.js +170 -0
  34. package/src/office-common/features/mathml/office-math/entity.d.ts +12 -0
  35. package/src/office-common/features/mathml/office-math/entity.js +3 -0
  36. package/src/office-common/features/mathml/office-math/enums.d.ts +97 -0
  37. package/src/office-common/features/mathml/office-math/enums.js +108 -0
  38. package/src/office-common/features/mathml/office-math/format.d.ts +28 -0
  39. package/src/office-common/features/mathml/office-math/format.js +90 -0
  40. package/src/office-common/features/mathml/office-math/function-base.d.ts +27 -0
  41. package/src/office-common/features/mathml/office-math/function-base.js +69 -0
  42. package/src/office-common/features/mathml/office-math/function-collection.d.ts +29 -0
  43. package/src/office-common/features/mathml/office-math/function-collection.js +76 -0
  44. package/src/office-common/features/mathml/office-math/functions-basic.d.ts +118 -0
  45. package/src/office-common/features/mathml/office-math/functions-basic.js +331 -0
  46. package/src/office-common/features/mathml/office-math/functions-multi.d.ts +156 -0
  47. package/src/office-common/features/mathml/office-math/functions-multi.js +407 -0
  48. package/src/office-common/features/mathml/office-math/index.d.ts +27 -0
  49. package/src/office-common/features/mathml/office-math/index.js +25 -0
  50. package/src/office-common/features/mathml/office-math/keys.d.ts +6 -0
  51. package/src/office-common/features/mathml/office-math/keys.js +20 -0
  52. package/src/office-common/features/mathml/office-math/math-clone.d.ts +20 -0
  53. package/src/office-common/features/mathml/office-math/math-clone.js +203 -0
  54. package/src/office-common/features/mathml/office-math/math-collection.d.ts +19 -0
  55. package/src/office-common/features/mathml/office-math/math-collection.js +41 -0
  56. package/src/office-common/features/mathml/office-math/math-equality.d.ts +21 -0
  57. package/src/office-common/features/mathml/office-math/math-equality.js +115 -0
  58. package/src/office-common/features/mathml/office-math/math-paragraph.d.ts +58 -0
  59. package/src/office-common/features/mathml/office-math/math-paragraph.js +126 -0
  60. package/src/office-common/features/mathml/office-math/math-traversal.d.ts +23 -0
  61. package/src/office-common/features/mathml/office-math/math-traversal.js +95 -0
  62. package/src/office-common/features/mathml/office-math/matrix-collections.d.ts +54 -0
  63. package/src/office-common/features/mathml/office-math/matrix-collections.js +113 -0
  64. package/src/office-common/features/mathml/office-math/matrix-column.d.ts +43 -0
  65. package/src/office-common/features/mathml/office-math/matrix-column.js +96 -0
  66. package/src/office-common/features/mathml/office-math/matrix-row.d.ts +38 -0
  67. package/src/office-common/features/mathml/office-math/matrix-row.js +71 -0
  68. package/src/office-common/features/mathml/office-math/matrix.d.ts +62 -0
  69. package/src/office-common/features/mathml/office-math/matrix.js +158 -0
  70. package/src/office-common/features/mathml/office-math/office-math.d.ts +55 -0
  71. package/src/office-common/features/mathml/office-math/office-math.js +116 -0
  72. package/src/office-common/features/mathml/office-math/owner-holder.d.ts +42 -0
  73. package/src/office-common/features/mathml/office-math/owner-holder.js +87 -0
  74. package/src/office-common/features/mathml/office-math/property-store.d.ts +66 -0
  75. package/src/office-common/features/mathml/office-math/property-store.js +99 -0
  76. package/src/office-common/features/mathml/office-math/run-element.d.ts +31 -0
  77. package/src/office-common/features/mathml/office-math/run-element.js +97 -0
  78. package/src/office-common/features/mathml/office-math/unknown-element.d.ts +37 -0
  79. package/src/office-common/features/mathml/office-math/unknown-element.js +62 -0
  80. package/src/office-common/features/mathml/office-math/xml-equal.d.ts +13 -0
  81. package/src/office-common/features/mathml/office-math/xml-equal.js +24 -0
  82. package/src/office-common/features/mathml/parse/office-math-parser.d.ts +24 -0
  83. package/src/office-common/features/mathml/parse/office-math-parser.js +396 -0
  84. package/src/office-common/features/mathml/parse/office-math-properties.d.ts +165 -0
  85. package/src/office-common/features/mathml/parse/office-math-properties.js +432 -0
  86. package/src/office-common/features/mathml/parse/parse-options.d.ts +22 -0
  87. package/src/office-common/features/mathml/parse/parse-options.js +3 -0
  88. package/src/office-common/features/mathml/serialize/office-math-properties-writer.d.ts +38 -0
  89. package/src/office-common/features/mathml/serialize/office-math-properties-writer.js +267 -0
  90. package/src/office-common/features/mathml/serialize/office-math-serializer.d.ts +23 -0
  91. package/src/office-common/features/mathml/serialize/office-math-serializer.js +306 -0
  92. package/src/office-common/features/mathml/serialize/omml-writer.d.ts +123 -0
  93. package/src/office-common/features/mathml/serialize/omml-writer.js +135 -0
  94. package/src/office-common/index.d.ts +10 -0
  95. package/src/office-common/index.js +10 -0
  96. package/.eslintrc.json +0 -263
  97. package/.prettierrc.json +0 -5
  98. package/api-extractor.json +0 -35
  99. package/core.js +0 -4
  100. package/encryption.js +0 -4
  101. package/features.js +0 -4
  102. package/global.json +0 -6
  103. package/nuget.config +0 -7
  104. package/src/all.d.ts +0 -41
  105. package/src/all.js +0 -38
  106. package/src/features/index.d.ts +0 -11
  107. package/src/features/index.js +0 -11
  108. package/src/features/mathml/index.d.ts +0 -30
  109. package/src/features/mathml/index.js +0 -22
  110. package/src/features/mathml/math-factory.d.ts +0 -26
  111. package/src/features/mathml/math-factory.js +0 -568
  112. package/src/features/mathml/model/controls.d.ts +0 -896
  113. package/src/features/mathml/model/controls.js +0 -1541
  114. package/src/features/mathml/model/math-element.d.ts +0 -173
  115. package/src/features/mathml/model/math-element.js +0 -315
  116. package/src/features/mathml/model/roots.d.ts +0 -82
  117. package/src/features/mathml/model/roots.js +0 -177
  118. package/src/features/mathml/parse/math-parser.d.ts +0 -43
  119. package/src/features/mathml/parse/math-parser.js +0 -636
  120. package/src/features/mathml/serialize/math-serializer.d.ts +0 -34
  121. package/src/features/mathml/serialize/math-serializer.js +0 -749
  122. package/tsconfig.build.json +0 -13
  123. package/tsconfig.harness.json +0 -32
  124. package/tslint.json +0 -111
  125. /package/src/{core → office-common/core}/index.d.ts +0 -0
  126. /package/src/{core → office-common/core}/index.js +0 -0
  127. /package/src/{core → office-common/core}/xml/index.d.ts +0 -0
  128. /package/src/{core → office-common/core}/xml/index.js +0 -0
  129. /package/src/{core → office-common/core}/xml/model.d.ts +0 -0
  130. /package/src/{core → office-common/core}/xml/model.js +0 -0
  131. /package/src/{encryption → office-common/encryption}/agile-constants.d.ts +0 -0
  132. /package/src/{encryption → office-common/encryption}/agile-constants.js +0 -0
  133. /package/src/{encryption → office-common/encryption}/agile-encryption-info.d.ts +0 -0
  134. /package/src/{encryption → office-common/encryption}/agile-encryption-info.js +0 -0
  135. /package/src/{encryption → office-common/encryption}/agile-password.d.ts +0 -0
  136. /package/src/{encryption → office-common/encryption}/agile-password.js +0 -0
  137. /package/src/{encryption → office-common/encryption}/cfb-reader.d.ts +0 -0
  138. /package/src/{encryption → office-common/encryption}/cfb-reader.js +0 -0
  139. /package/src/{encryption → office-common/encryption}/crypto-primitives.d.ts +0 -0
  140. /package/src/{encryption → office-common/encryption}/crypto-primitives.js +0 -0
  141. /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.d.ts +0 -0
  142. /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.js +0 -0
  143. /package/src/{encryption → office-common/encryption}/encryption-info-xml.d.ts +0 -0
  144. /package/src/{encryption → office-common/encryption}/encryption-info-xml.js +0 -0
  145. /package/src/{encryption → office-common/encryption}/errors.d.ts +0 -0
  146. /package/src/{encryption → office-common/encryption}/errors.js +0 -0
  147. /package/src/{encryption → office-common/encryption}/index.d.ts +0 -0
  148. /package/src/{encryption → office-common/encryption}/index.js +0 -0
  149. /package/src/{features → office-common/features}/diagrams/constants.d.ts +0 -0
  150. /package/src/{features → office-common/features}/diagrams/constants.js +0 -0
  151. /package/src/{features → office-common/features}/diagrams/diagram-data-model.d.ts +0 -0
  152. /package/src/{features → office-common/features}/diagrams/diagram-data-model.js +0 -0
  153. /package/src/{features → office-common/features}/diagrams/diagram-parsers.d.ts +0 -0
  154. /package/src/{features → office-common/features}/diagrams/diagram-parsers.js +0 -0
  155. /package/src/{features → office-common/features}/diagrams/diagram-serializers.d.ts +0 -0
  156. /package/src/{features → office-common/features}/diagrams/diagram-serializers.js +0 -0
  157. /package/src/{features → office-common/features}/diagrams/diagram-views.d.ts +0 -0
  158. /package/src/{features → office-common/features}/diagrams/diagram-views.js +0 -0
  159. /package/src/{features → office-common/features}/diagrams/element-tree.d.ts +0 -0
  160. /package/src/{features → office-common/features}/diagrams/element-tree.js +0 -0
  161. /package/src/{features → office-common/features}/diagrams/errors.d.ts +0 -0
  162. /package/src/{features → office-common/features}/diagrams/errors.js +0 -0
  163. /package/src/{features → office-common/features}/diagrams/index.d.ts +0 -0
  164. /package/src/{features → office-common/features}/diagrams/index.js +0 -0
  165. /package/src/{features → office-common/features}/diagrams/smart-art-catalog.d.ts +0 -0
  166. /package/src/{features → office-common/features}/diagrams/smart-art-catalog.js +0 -0
  167. /package/src/{features → office-common/features}/diagrams/smart-art-diagram.d.ts +0 -0
  168. /package/src/{features → office-common/features}/diagrams/smart-art-diagram.js +0 -0
  169. /package/src/{features → office-common/features}/ink/constants.d.ts +0 -0
  170. /package/src/{features → office-common/features}/ink/constants.js +0 -0
  171. /package/src/{features → office-common/features}/ink/index.d.ts +0 -0
  172. /package/src/{features → office-common/features}/ink/index.js +0 -0
  173. /package/src/{features → office-common/features}/ink/ink-effects.d.ts +0 -0
  174. /package/src/{features → office-common/features}/ink/ink-effects.js +0 -0
  175. /package/src/{features → office-common/features}/ink/ink-model.d.ts +0 -0
  176. /package/src/{features → office-common/features}/ink/ink-model.js +0 -0
  177. /package/src/{features → office-common/features}/ink/ink-parser.d.ts +0 -0
  178. /package/src/{features → office-common/features}/ink/ink-parser.js +0 -0
  179. /package/src/{features → office-common/features}/ink/ink-serializer.d.ts +0 -0
  180. /package/src/{features → office-common/features}/ink/ink-serializer.js +0 -0
  181. /package/src/{features → office-common/features}/ink/ink-units.d.ts +0 -0
  182. /package/src/{features → office-common/features}/ink/ink-units.js +0 -0
  183. /package/src/{features → office-common/features}/ink/ink-xml.d.ts +0 -0
  184. /package/src/{features → office-common/features}/ink/ink-xml.js +0 -0
  185. /package/src/{features → office-common/features}/ink/trace-codec.d.ts +0 -0
  186. /package/src/{features → office-common/features}/ink/trace-codec.js +0 -0
  187. /package/src/{features → office-common/features}/mathml/constants.d.ts +0 -0
  188. /package/src/{features → office-common/features}/mathml/constants.js +0 -0
  189. /package/src/{features → office-common/features}/mathml/errors.d.ts +0 -0
  190. /package/src/{features → office-common/features}/mathml/errors.js +0 -0
  191. /package/src/{features → office-common/features}/mathml/model/enums.d.ts +0 -0
  192. /package/src/{features → office-common/features}/mathml/model/enums.js +0 -0
  193. /package/src/{features → office-common/features}/mathml/openxml.d.ts +0 -0
  194. /package/src/{features → office-common/features}/mathml/openxml.js +0 -0
  195. /package/src/{features → office-common/features}/smart-art/diagram-xml.d.ts +0 -0
  196. /package/src/{features → office-common/features}/smart-art/diagram-xml.js +0 -0
  197. /package/src/{features → office-common/features}/smart-art/errors.d.ts +0 -0
  198. /package/src/{features → office-common/features}/smart-art/errors.js +0 -0
  199. /package/src/{features → office-common/features}/smart-art/index.d.ts +0 -0
  200. /package/src/{features → office-common/features}/smart-art/index.js +0 -0
  201. /package/src/{features → office-common/features}/smart-art/minimal-samples.d.ts +0 -0
  202. /package/src/{features → office-common/features}/smart-art/minimal-samples.js +0 -0
  203. /package/src/{features → office-common/features}/smart-art/mutators.d.ts +0 -0
  204. /package/src/{features → office-common/features}/smart-art/mutators.js +0 -0
  205. /package/src/{features → office-common/features}/smart-art/namespaces.d.ts +0 -0
  206. /package/src/{features → office-common/features}/smart-art/namespaces.js +0 -0
  207. /package/src/{features → office-common/features}/smart-art/package-graph.d.ts +0 -0
  208. /package/src/{features → office-common/features}/smart-art/package-graph.js +0 -0
  209. /package/src/{features → office-common/features}/smart-art/parse-colors.d.ts +0 -0
  210. /package/src/{features → office-common/features}/smart-art/parse-colors.js +0 -0
  211. /package/src/{features → office-common/features}/smart-art/parse-data.d.ts +0 -0
  212. /package/src/{features → office-common/features}/smart-art/parse-data.js +0 -0
  213. /package/src/{features → office-common/features}/smart-art/parse-layout.d.ts +0 -0
  214. /package/src/{features → office-common/features}/smart-art/parse-layout.js +0 -0
  215. /package/src/{features → office-common/features}/smart-art/parse-rel-ids.d.ts +0 -0
  216. /package/src/{features → office-common/features}/smart-art/parse-rel-ids.js +0 -0
  217. /package/src/{features → office-common/features}/smart-art/parse-style.d.ts +0 -0
  218. /package/src/{features → office-common/features}/smart-art/parse-style.js +0 -0
  219. /package/src/{features → office-common/features}/smart-art/point-text.d.ts +0 -0
  220. /package/src/{features → office-common/features}/smart-art/point-text.js +0 -0
  221. /package/src/{features → office-common/features}/smart-art/register.d.ts +0 -0
  222. /package/src/{features → office-common/features}/smart-art/register.js +0 -0
  223. /package/src/{features → office-common/features}/smart-art/serialize.d.ts +0 -0
  224. /package/src/{features → office-common/features}/smart-art/serialize.js +0 -0
  225. /package/src/{features → office-common/features}/smart-art/types.d.ts +0 -0
  226. /package/src/{features → office-common/features}/smart-art/types.js +0 -0
@@ -0,0 +1,407 @@
1
+ /**
2
+ * Multi-equation Math functions: delimiter, equation array, fraction, function, limit, n-ary, scripts.
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, MathDelimiterShapeType, MathFractionType, MathLimitType, MathScriptType, MathVerticalAlignment, SpacingRule } from './enums';
18
+ import { K } from './keys';
19
+ import { OfficeMathFunctionBase } from './function-base';
20
+ import { OfficeMath } from './office-math';
21
+ import { OfficeMathCollection } from './math-collection';
22
+ /** Delimiter (`m:d`). @public */
23
+ var OfficeMathDelimiter = /** @class */ (function (_super) {
24
+ __extends(OfficeMathDelimiter, _super);
25
+ function OfficeMathDelimiter(owner) {
26
+ var _this = _super.call(this, owner) || this;
27
+ _this.type = MathFunctionType.Delimiter;
28
+ _this._equations = new OfficeMathCollection(_this);
29
+ return _this;
30
+ }
31
+ Object.defineProperty(OfficeMathDelimiter.prototype, "beginCharacter", {
32
+ /** Opening character. Default `(`. */
33
+ get: function () { return this.getProperty(K.BegChar, function () { return '('; }); },
34
+ set: function (value) { this.setProperty(K.BegChar, value); },
35
+ enumerable: true,
36
+ configurable: true
37
+ });
38
+ Object.defineProperty(OfficeMathDelimiter.prototype, "endCharacter", {
39
+ /** Closing character. Default `)`. */
40
+ get: function () { return this.getProperty(K.EndChar, function () { return ')'; }); },
41
+ set: function (value) { this.setProperty(K.EndChar, value); },
42
+ enumerable: true,
43
+ configurable: true
44
+ });
45
+ Object.defineProperty(OfficeMathDelimiter.prototype, "separator", {
46
+ /** Separator character. Default `|`. */
47
+ get: function () { return this.getProperty(K.SeparatorChar, function () { return '|'; }); },
48
+ set: function (value) { this.setProperty(K.SeparatorChar, value); },
49
+ enumerable: true,
50
+ configurable: true
51
+ });
52
+ Object.defineProperty(OfficeMathDelimiter.prototype, "isGrow", {
53
+ /** Whether delimiters grow with content. Default true. */
54
+ get: function () { return this.getProperty(K.Grow, function () { return true; }); },
55
+ set: function (value) { this.setProperty(K.Grow, value); },
56
+ enumerable: true,
57
+ configurable: true
58
+ });
59
+ Object.defineProperty(OfficeMathDelimiter.prototype, "delimiterShape", {
60
+ /** Delimiter shape. Default centered. */
61
+ get: function () { return this.getProperty(K.Shape, function () { return MathDelimiterShapeType.Centered; }); },
62
+ set: function (value) { this.setProperty(K.Shape, value); },
63
+ enumerable: true,
64
+ configurable: true
65
+ });
66
+ Object.defineProperty(OfficeMathDelimiter.prototype, "equations", {
67
+ /** Argument equations. */
68
+ get: function () { return this._equations; },
69
+ enumerable: true,
70
+ configurable: true
71
+ });
72
+ return OfficeMathDelimiter;
73
+ }(OfficeMathFunctionBase));
74
+ export { OfficeMathDelimiter };
75
+ /**
76
+ * Validates a row spacing value against its rule.
77
+ *
78
+ * @param value
79
+ * @param rule
80
+ * @private
81
+ */
82
+ export function checkRowSpacing(value, rule) {
83
+ if (rule === SpacingRule.Exactly && (value < 0 || value > 1584)) {
84
+ throw new RangeError('RowSpacing must be between 0 pt and 1584 pt for Exactly spacing rule.');
85
+ }
86
+ if (rule === SpacingRule.Multiple && (value < 0 || value > 132)) {
87
+ throw new RangeError('RowSpacing must be between 0 li and 132 li for Multiple spacing rule.');
88
+ }
89
+ }
90
+ /** Equation array (`m:eqArr`). @public */
91
+ var OfficeMathEquationArray = /** @class */ (function (_super) {
92
+ __extends(OfficeMathEquationArray, _super);
93
+ function OfficeMathEquationArray(owner) {
94
+ var _this = _super.call(this, owner) || this;
95
+ _this.type = MathFunctionType.EquationArray;
96
+ _this._equations = new OfficeMathCollection(_this);
97
+ return _this;
98
+ }
99
+ Object.defineProperty(OfficeMathEquationArray.prototype, "verticalAlignment", {
100
+ /** Vertical alignment. Default center. */
101
+ get: function () { return this.getProperty(K.EqArrAlign, function () { return MathVerticalAlignment.Center; }); },
102
+ set: function (value) { this.setProperty(K.EqArrAlign, value); },
103
+ enumerable: true,
104
+ configurable: true
105
+ });
106
+ Object.defineProperty(OfficeMathEquationArray.prototype, "expandEquationContainer", {
107
+ /** Expand container. Default false. */
108
+ get: function () { return this.getProperty(K.MaxDist, function () { return false; }); },
109
+ set: function (value) { this.setProperty(K.MaxDist, value); },
110
+ enumerable: true,
111
+ configurable: true
112
+ });
113
+ Object.defineProperty(OfficeMathEquationArray.prototype, "expandEquationContent", {
114
+ /** Expand content. Default false. */
115
+ get: function () { return this.getProperty(K.ObjDist, function () { return false; }); },
116
+ set: function (value) { this.setProperty(K.ObjDist, value); },
117
+ enumerable: true,
118
+ configurable: true
119
+ });
120
+ Object.defineProperty(OfficeMathEquationArray.prototype, "rowSpacing", {
121
+ /** Row spacing; unit depends on `rowSpacingRule` (points for Exactly, lines for Multiple). Default 0. */
122
+ get: function () { return this.getProperty(K.RowSpacing, function () { return 0; }); },
123
+ set: function (value) {
124
+ checkRowSpacing(value, this.rowSpacingRule);
125
+ this.setProperty(K.RowSpacing, value);
126
+ },
127
+ enumerable: true,
128
+ configurable: true
129
+ });
130
+ Object.defineProperty(OfficeMathEquationArray.prototype, "rowSpacingRule", {
131
+ /** Row spacing rule. Default single. */
132
+ get: function () { return this.getProperty(K.RowSpacingRule, function () { return SpacingRule.Single; }); },
133
+ set: function (value) { this.setProperty(K.RowSpacingRule, value); },
134
+ enumerable: true,
135
+ configurable: true
136
+ });
137
+ Object.defineProperty(OfficeMathEquationArray.prototype, "equations", {
138
+ /** Row equations. */
139
+ get: function () { return this._equations; },
140
+ enumerable: true,
141
+ configurable: true
142
+ });
143
+ return OfficeMathEquationArray;
144
+ }(OfficeMathFunctionBase));
145
+ export { OfficeMathEquationArray };
146
+ /** Fraction (`m:f`). @public */
147
+ var OfficeMathFraction = /** @class */ (function (_super) {
148
+ __extends(OfficeMathFraction, _super);
149
+ function OfficeMathFraction(owner) {
150
+ var _this = _super.call(this, owner) || this;
151
+ _this.type = MathFunctionType.Fraction;
152
+ _this._denominator = new OfficeMath(_this);
153
+ _this._numerator = new OfficeMath(_this);
154
+ return _this;
155
+ }
156
+ Object.defineProperty(OfficeMathFraction.prototype, "fractionType", {
157
+ /** Fraction type. Default normal bar. */
158
+ get: function () { return this.getProperty(K.FractionType, function () { return MathFractionType.NormalFractionBar; }); },
159
+ set: function (value) { this.setProperty(K.FractionType, value); },
160
+ enumerable: true,
161
+ configurable: true
162
+ });
163
+ Object.defineProperty(OfficeMathFraction.prototype, "numerator", {
164
+ /** Numerator. */
165
+ get: function () { return this._numerator; },
166
+ enumerable: true,
167
+ configurable: true
168
+ });
169
+ Object.defineProperty(OfficeMathFraction.prototype, "denominator", {
170
+ /** Denominator. */
171
+ get: function () { return this._denominator; },
172
+ enumerable: true,
173
+ configurable: true
174
+ });
175
+ return OfficeMathFraction;
176
+ }(OfficeMathFunctionBase));
177
+ export { OfficeMathFraction };
178
+ /** Function application (`m:func`). @public */
179
+ var OfficeMathFunction = /** @class */ (function (_super) {
180
+ __extends(OfficeMathFunction, _super);
181
+ function OfficeMathFunction(owner) {
182
+ var _this = _super.call(this, owner) || this;
183
+ _this.type = MathFunctionType.Function;
184
+ _this._equation = new OfficeMath(_this);
185
+ _this._functionName = new OfficeMath(_this);
186
+ return _this;
187
+ }
188
+ Object.defineProperty(OfficeMathFunction.prototype, "equation", {
189
+ /** Argument equation. */
190
+ get: function () { return this._equation; },
191
+ enumerable: true,
192
+ configurable: true
193
+ });
194
+ Object.defineProperty(OfficeMathFunction.prototype, "functionName", {
195
+ /** Function name equation. */
196
+ get: function () { return this._functionName; },
197
+ enumerable: true,
198
+ configurable: true
199
+ });
200
+ return OfficeMathFunction;
201
+ }(OfficeMathFunctionBase));
202
+ export { OfficeMathFunction };
203
+ /** Lower or upper limit (`m:limLow` / `m:limUpp`). @public */
204
+ var OfficeMathLimit = /** @class */ (function (_super) {
205
+ __extends(OfficeMathLimit, _super);
206
+ function OfficeMathLimit(owner) {
207
+ var _this = _super.call(this, owner) || this;
208
+ _this.type = MathFunctionType.Limit;
209
+ _this._equation = new OfficeMath(_this);
210
+ _this._limit = new OfficeMath(_this);
211
+ return _this;
212
+ }
213
+ Object.defineProperty(OfficeMathLimit.prototype, "limitType", {
214
+ /** Lower or upper limit. Default lower. */
215
+ get: function () { return this.getProperty(K.LimitType, function () { return MathLimitType.LowerLimit; }); },
216
+ set: function (value) { this.setProperty(K.LimitType, value); },
217
+ enumerable: true,
218
+ configurable: true
219
+ });
220
+ Object.defineProperty(OfficeMathLimit.prototype, "equation", {
221
+ /** Base equation. */
222
+ get: function () { return this._equation; },
223
+ enumerable: true,
224
+ configurable: true
225
+ });
226
+ Object.defineProperty(OfficeMathLimit.prototype, "limit", {
227
+ /** Limit equation. */
228
+ get: function () { return this._limit; },
229
+ enumerable: true,
230
+ configurable: true
231
+ });
232
+ return OfficeMathLimit;
233
+ }(OfficeMathFunctionBase));
234
+ export { OfficeMathLimit };
235
+ /** N-ary operator (`m:nary`). @public */
236
+ var OfficeMathNArray = /** @class */ (function (_super) {
237
+ __extends(OfficeMathNArray, _super);
238
+ function OfficeMathNArray(owner) {
239
+ var _this = _super.call(this, owner) || this;
240
+ _this.type = MathFunctionType.NArray;
241
+ _this._equation = new OfficeMath(_this);
242
+ _this._subscript = new OfficeMath(_this);
243
+ _this._superscript = new OfficeMath(_this);
244
+ return _this;
245
+ }
246
+ Object.defineProperty(OfficeMathNArray.prototype, "nArrayCharacter", {
247
+ /** Operator character. Default U+222B. */
248
+ get: function () { return this.getProperty(K.NAryChar, function () { return String.fromCharCode(8747); }); },
249
+ set: function (value) { this.setProperty(K.NAryChar, value); },
250
+ enumerable: true,
251
+ configurable: true
252
+ });
253
+ Object.defineProperty(OfficeMathNArray.prototype, "hasGrow", {
254
+ /** Whether the operator grows. Default false. */
255
+ get: function () { return this.getProperty(K.HasGrow, function () { return false; }); },
256
+ set: function (value) { this.setProperty(K.HasGrow, value); },
257
+ enumerable: true,
258
+ configurable: true
259
+ });
260
+ Object.defineProperty(OfficeMathNArray.prototype, "hideLowerLimit", {
261
+ /** Hides the lower limit. Default false. */
262
+ get: function () { return this.getProperty(K.HideSubscript, function () { return false; }); },
263
+ set: function (value) { this.setProperty(K.HideSubscript, value); },
264
+ enumerable: true,
265
+ configurable: true
266
+ });
267
+ Object.defineProperty(OfficeMathNArray.prototype, "hideUpperLimit", {
268
+ /** Hides the upper limit. Default false. */
269
+ get: function () { return this.getProperty(K.HideSuperscript, function () { return false; }); },
270
+ set: function (value) { this.setProperty(K.HideSuperscript, value); },
271
+ enumerable: true,
272
+ configurable: true
273
+ });
274
+ Object.defineProperty(OfficeMathNArray.prototype, "subSuperscriptLimit", {
275
+ /** Limits as sub/superscript. Default true for the integral character, false otherwise. */
276
+ get: function () {
277
+ var _this = this;
278
+ return this.getProperty(K.SubSupLimit, function () { return _this.nArrayCharacter === String.fromCharCode(8747); });
279
+ },
280
+ set: function (value) { this.setProperty(K.SubSupLimit, value); },
281
+ enumerable: true,
282
+ configurable: true
283
+ });
284
+ Object.defineProperty(OfficeMathNArray.prototype, "equation", {
285
+ /** Operand equation. */
286
+ get: function () { return this._equation; },
287
+ enumerable: true,
288
+ configurable: true
289
+ });
290
+ Object.defineProperty(OfficeMathNArray.prototype, "subscript", {
291
+ /** Lower limit equation. */
292
+ get: function () { return this._subscript; },
293
+ enumerable: true,
294
+ configurable: true
295
+ });
296
+ Object.defineProperty(OfficeMathNArray.prototype, "superscript", {
297
+ /** Upper limit equation. */
298
+ get: function () { return this._superscript; },
299
+ enumerable: true,
300
+ configurable: true
301
+ });
302
+ return OfficeMathNArray;
303
+ }(OfficeMathFunctionBase));
304
+ export { OfficeMathNArray };
305
+ /** Single subscript or superscript (`m:sSub` / `m:sSup`). @public */
306
+ var OfficeMathScript = /** @class */ (function (_super) {
307
+ __extends(OfficeMathScript, _super);
308
+ function OfficeMathScript(owner) {
309
+ var _this = _super.call(this, owner) || this;
310
+ _this.type = MathFunctionType.SubSuperscript;
311
+ _this._equation = new OfficeMath(_this);
312
+ _this._script = new OfficeMath(_this);
313
+ return _this;
314
+ }
315
+ Object.defineProperty(OfficeMathScript.prototype, "scriptType", {
316
+ /** Subscript or superscript. Default superscript. */
317
+ get: function () { return this.getProperty(K.ScriptType, function () { return MathScriptType.Superscript; }); },
318
+ set: function (value) { this.setProperty(K.ScriptType, value); },
319
+ enumerable: true,
320
+ configurable: true
321
+ });
322
+ Object.defineProperty(OfficeMathScript.prototype, "equation", {
323
+ /** Base equation. */
324
+ get: function () { return this._equation; },
325
+ enumerable: true,
326
+ configurable: true
327
+ });
328
+ Object.defineProperty(OfficeMathScript.prototype, "script", {
329
+ /** Script equation. */
330
+ get: function () { return this._script; },
331
+ enumerable: true,
332
+ configurable: true
333
+ });
334
+ return OfficeMathScript;
335
+ }(OfficeMathFunctionBase));
336
+ export { OfficeMathScript };
337
+ /** Combined right sub/superscript (`m:sSubSup`). @public */
338
+ var OfficeMathRightScript = /** @class */ (function (_super) {
339
+ __extends(OfficeMathRightScript, _super);
340
+ function OfficeMathRightScript(owner) {
341
+ var _this = _super.call(this, owner) || this;
342
+ _this.type = MathFunctionType.RightSubSuperscript;
343
+ _this._equation = new OfficeMath(_this);
344
+ _this._subscript = new OfficeMath(_this);
345
+ _this._superscript = new OfficeMath(_this);
346
+ return _this;
347
+ }
348
+ Object.defineProperty(OfficeMathRightScript.prototype, "isSkipAlign", {
349
+ /** Align scripts. Default true. */
350
+ get: function () { return this.getProperty(K.SkipAlign, function () { return true; }); },
351
+ set: function (value) { this.setProperty(K.SkipAlign, value); },
352
+ enumerable: true,
353
+ configurable: true
354
+ });
355
+ Object.defineProperty(OfficeMathRightScript.prototype, "equation", {
356
+ /** Base equation. */
357
+ get: function () { return this._equation; },
358
+ enumerable: true,
359
+ configurable: true
360
+ });
361
+ Object.defineProperty(OfficeMathRightScript.prototype, "subscript", {
362
+ /** Subscript equation. */
363
+ get: function () { return this._subscript; },
364
+ enumerable: true,
365
+ configurable: true
366
+ });
367
+ Object.defineProperty(OfficeMathRightScript.prototype, "superscript", {
368
+ /** Superscript equation. */
369
+ get: function () { return this._superscript; },
370
+ enumerable: true,
371
+ configurable: true
372
+ });
373
+ return OfficeMathRightScript;
374
+ }(OfficeMathFunctionBase));
375
+ export { OfficeMathRightScript };
376
+ /** Left sub/superscript (`m:sPre`). @public */
377
+ var OfficeMathLeftScript = /** @class */ (function (_super) {
378
+ __extends(OfficeMathLeftScript, _super);
379
+ function OfficeMathLeftScript(owner) {
380
+ var _this = _super.call(this, owner) || this;
381
+ _this.type = MathFunctionType.LeftSubSuperscript;
382
+ _this._equation = new OfficeMath(_this);
383
+ _this._subscript = new OfficeMath(_this);
384
+ _this._superscript = new OfficeMath(_this);
385
+ return _this;
386
+ }
387
+ Object.defineProperty(OfficeMathLeftScript.prototype, "equation", {
388
+ /** Base equation. */
389
+ get: function () { return this._equation; },
390
+ enumerable: true,
391
+ configurable: true
392
+ });
393
+ Object.defineProperty(OfficeMathLeftScript.prototype, "subscript", {
394
+ /** Subscript equation. */
395
+ get: function () { return this._subscript; },
396
+ enumerable: true,
397
+ configurable: true
398
+ });
399
+ Object.defineProperty(OfficeMathLeftScript.prototype, "superscript", {
400
+ /** Superscript equation. */
401
+ get: function () { return this._superscript; },
402
+ enumerable: true,
403
+ configurable: true
404
+ });
405
+ return OfficeMathLeftScript;
406
+ }(OfficeMathFunctionBase));
407
+ export { OfficeMathLeftScript };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Office Math authoring model.
3
+ */
4
+ export * from './enums';
5
+ export * from './entity';
6
+ export * from './property-store';
7
+ export * from './owner-holder';
8
+ export * from './adapter';
9
+ export * from './basic';
10
+ export * from './collection';
11
+ export * from './break';
12
+ export * from './format';
13
+ export * from './function-base';
14
+ export * from './run-element';
15
+ export * from './functions-basic';
16
+ export * from './functions-multi';
17
+ export * from './matrix';
18
+ export * from './matrix-row';
19
+ export * from './matrix-column';
20
+ export * from './matrix-collections';
21
+ export * from './office-math';
22
+ export * from './math-collection';
23
+ export * from './function-collection';
24
+ export * from './math-paragraph';
25
+ export * from './unknown-element';
26
+ export * from './math-clone';
27
+ export * from './math-equality';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Office Math authoring model.
3
+ */
4
+ export * from './enums';
5
+ export * from './property-store';
6
+ export * from './owner-holder';
7
+ export * from './basic';
8
+ export * from './collection';
9
+ export * from './break';
10
+ export * from './format';
11
+ export * from './function-base';
12
+ export * from './run-element';
13
+ export * from './functions-basic';
14
+ export * from './functions-multi';
15
+ export * from './matrix';
16
+ export * from './matrix-row';
17
+ export * from './matrix-column';
18
+ export * from './matrix-collections';
19
+ export * from './office-math';
20
+ export * from './math-collection';
21
+ export * from './function-collection';
22
+ export * from './math-paragraph';
23
+ export * from './unknown-element';
24
+ export * from './math-clone';
25
+ export * from './math-equality';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Property keys of the Office Math authoring model (same numbering as Compression).
3
+ */
4
+ export declare const K: {
5
+ [name: string]: number;
6
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Property keys of the Office Math authoring model (same numbering as Compression).
3
+ */
4
+ export var K = {
5
+ AccentChar: 1, BarTop: 2,
6
+ HideTop: 3, HideBottom: 4, HideRight: 5, HideLeft: 6,
7
+ StrikeBLTR: 7, StrikeTLBR: 8, StrikeVertical: 9, StrikeHorizontal: 10,
8
+ BoxAlign: 11, NoBreak: 12, EnableDifferential: 14, OperatorEmulator: 15,
9
+ AlignAt: 16, BegChar: 17, EndChar: 18, NoRightChar: 19, NoLeftChar: 20,
10
+ SeparatorChar: 21, Grow: 22, Shape: 23,
11
+ EqArrAlign: 24, MaxDist: 25, ObjDist: 26, RowSpacing: 27, RowSpacingRule: 28,
12
+ FractionType: 29, HasAlignTop: 30, GroupChar: 31, HasCharTop: 32,
13
+ MatrixAlign: 33, ColumnWidth: 34, ColumnSpacingRule: 35, ColumnSpacing: 36, ColumnGap: 38, ColumnGapRule: 39, PlaceHoldHidden: 37,
14
+ NAryChar: 41, HasGrow: 42, HideSubscript: 43, HideSuperscript: 44, SubSupLimit: 45,
15
+ Show: 46, Smash: 47, Transparent: 48, ZeroAscent: 49, ZeroDescent: 50, ZeroWidth: 51,
16
+ HideDegree: 51, SkipAlign: 52,
17
+ HasAlignment: 53, HasLiteral: 54, HasNormalText: 55, Script: 56, Style: 57,
18
+ ArgumentSize: 74, AlignPoint: 76, Justification: 77,
19
+ LimitType: 80, ScriptType: 81
20
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Deep clone of the Math model.
3
+ */
4
+ import { OfficeMath } from './office-math';
5
+ import { OfficeMathParagraph } from './math-paragraph';
6
+ /**
7
+ * Deep-clones an equation as a new, detached equation.
8
+ *
9
+ * @param {OfficeMath} source The equation to clone.
10
+ * @param {OfficeMathParagraph} root Paragraph that supplies the host adapter for the copy.
11
+ * @returns {OfficeMath} An attached copy living under `root`.
12
+ */
13
+ export declare function cloneOfficeMath(source: OfficeMath, root: OfficeMathParagraph): OfficeMath;
14
+ /**
15
+ * Deep-clones a Math paragraph including explicit properties, owners and unknown elements.
16
+ *
17
+ * @param {OfficeMathParagraph} source The paragraph to clone.
18
+ * @returns {OfficeMathParagraph} An independent copy.
19
+ */
20
+ export declare function cloneOfficeMathParagraph(source: OfficeMathParagraph): OfficeMathParagraph;