@syncfusion/ej2-office-common 35.1.37 → 35.1.42
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
|
@@ -1,896 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typed OMML control classes (EG_OMathMathElements).
|
|
3
|
-
*
|
|
4
|
-
* Source: ECMA-376-4 Annex A.8.1; mathml-spec §7 / §11.2.
|
|
5
|
-
* Constructors take props bag + fixed-sequence children (no boolean traps).
|
|
6
|
-
*/
|
|
7
|
-
import { OpenXmlElement } from '../openxml';
|
|
8
|
-
import { MathFractionType, MathLimLoc, MathScript, MathShape, MathStyle, MathTopBot } from './enums';
|
|
9
|
-
import { MathArgument, MathElement } from './math-element';
|
|
10
|
-
/** Opaque ctrlPr carrier shared by property bags. */
|
|
11
|
-
export declare type MathCtrlPr = OpenXmlElement | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* `m:accPr` — accent character.
|
|
14
|
-
*
|
|
15
|
-
* `ctrlPr` is intentionally omitted from the public bag; it is carried only on
|
|
16
|
-
* the wire model via internal parse/serialize channels and must not be exposed.
|
|
17
|
-
*/
|
|
18
|
-
export interface MathAccentProperties {
|
|
19
|
-
/** Accent character (`m:chr`). */
|
|
20
|
-
chr?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
23
|
-
* @private
|
|
24
|
-
* Not part of the public MathML authoring API.
|
|
25
|
-
*/
|
|
26
|
-
ctrlPr?: MathCtrlPr;
|
|
27
|
-
}
|
|
28
|
-
/** `m:barPr` — top/bot position. */
|
|
29
|
-
export interface MathBarProperties {
|
|
30
|
-
/** Bar position (`m:pos`). */
|
|
31
|
-
pos?: MathTopBot;
|
|
32
|
-
/**
|
|
33
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
34
|
-
* @private
|
|
35
|
-
* Not part of the public MathML authoring API.
|
|
36
|
-
*/
|
|
37
|
-
ctrlPr?: MathCtrlPr;
|
|
38
|
-
}
|
|
39
|
-
/** `m:boxPr`. */
|
|
40
|
-
export interface MathBoxProperties {
|
|
41
|
-
/** Whether the box emulates an operator (`m:opEmu`). */
|
|
42
|
-
isOperatorEmulated?: boolean;
|
|
43
|
-
/** Whether line breaking inside the box is forbidden (`m:noBreak`). */
|
|
44
|
-
isNoBreak?: boolean;
|
|
45
|
-
/** Whether the box acts as a differential (`m:diff`). */
|
|
46
|
-
isDifferential?: boolean;
|
|
47
|
-
/** Whether the box participates in alignment (`m:aln`). */
|
|
48
|
-
isAligned?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
51
|
-
* @private
|
|
52
|
-
* Not part of the public MathML authoring API.
|
|
53
|
-
*/
|
|
54
|
-
ctrlPr?: MathCtrlPr;
|
|
55
|
-
}
|
|
56
|
-
/** `m:borderBoxPr`. */
|
|
57
|
-
export interface MathBorderBoxProperties {
|
|
58
|
-
/** Whether the top border is hidden (`m:hideTop`). */
|
|
59
|
-
isTopHidden?: boolean;
|
|
60
|
-
/** Whether the bottom border is hidden (`m:hideBot`). */
|
|
61
|
-
isBottomHidden?: boolean;
|
|
62
|
-
/** Whether the left border is hidden (`m:hideLeft`). */
|
|
63
|
-
isLeftHidden?: boolean;
|
|
64
|
-
/** Whether the right border is hidden (`m:hideRight`). */
|
|
65
|
-
isRightHidden?: boolean;
|
|
66
|
-
/** Whether a horizontal strike is drawn (`m:strikeH`). */
|
|
67
|
-
hasHorizontalStrike?: boolean;
|
|
68
|
-
/** Whether a vertical strike is drawn (`m:strikeV`). */
|
|
69
|
-
hasVerticalStrike?: boolean;
|
|
70
|
-
/** Whether a bottom-left to top-right diagonal strike is drawn (`m:strikeBLTR`). */
|
|
71
|
-
hasBottomLeftToTopRightStrike?: boolean;
|
|
72
|
-
/** Whether a top-left to bottom-right diagonal strike is drawn (`m:strikeTLBR`). */
|
|
73
|
-
hasTopLeftToBottomRightStrike?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
76
|
-
* @private
|
|
77
|
-
* Not part of the public MathML authoring API.
|
|
78
|
-
*/
|
|
79
|
-
ctrlPr?: MathCtrlPr;
|
|
80
|
-
}
|
|
81
|
-
/** `m:dPr` — delimiter properties. */
|
|
82
|
-
export interface MathDelimiterProperties {
|
|
83
|
-
/** Beginning delimiter character (`m:begChr`). */
|
|
84
|
-
begChr?: string;
|
|
85
|
-
/** Separator character between arguments (`m:sepChr`). */
|
|
86
|
-
sepChr?: string;
|
|
87
|
-
/** Ending delimiter character (`m:endChr`). */
|
|
88
|
-
endChr?: string;
|
|
89
|
-
/** Whether delimiter glyphs may grow to match content height (`m:grow`). */
|
|
90
|
-
canGrow?: boolean;
|
|
91
|
-
/** ST_Shp: centered | match only. */
|
|
92
|
-
shp?: MathShape;
|
|
93
|
-
/**
|
|
94
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
95
|
-
* @private
|
|
96
|
-
* Not part of the public MathML authoring API.
|
|
97
|
-
*/
|
|
98
|
-
ctrlPr?: MathCtrlPr;
|
|
99
|
-
}
|
|
100
|
-
/** `m:eqArrPr`. */
|
|
101
|
-
export interface MathEquationArrayProperties {
|
|
102
|
-
/** Base vertical justification (`m:baseJc`). */
|
|
103
|
-
baseJc?: string;
|
|
104
|
-
/** Whether maximum distribution spacing is enabled (`m:maxDist`). */
|
|
105
|
-
hasMaxDistance?: boolean;
|
|
106
|
-
/** Whether object distribution spacing is enabled (`m:objDist`). */
|
|
107
|
-
hasObjectDistance?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
110
|
-
* @private
|
|
111
|
-
* Not part of the public MathML authoring API.
|
|
112
|
-
*/
|
|
113
|
-
ctrlPr?: MathCtrlPr;
|
|
114
|
-
}
|
|
115
|
-
/** `m:fPr` — fraction type. */
|
|
116
|
-
export interface MathFractionProperties {
|
|
117
|
-
/** ST_FType: bar | skw | lin | noBar. */
|
|
118
|
-
type?: MathFractionType;
|
|
119
|
-
/**
|
|
120
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
121
|
-
* @private
|
|
122
|
-
* Not part of the public MathML authoring API.
|
|
123
|
-
*/
|
|
124
|
-
ctrlPr?: MathCtrlPr;
|
|
125
|
-
}
|
|
126
|
-
/** `m:funcPr`. */
|
|
127
|
-
export interface MathFunctionProperties {
|
|
128
|
-
/**
|
|
129
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
130
|
-
* @private
|
|
131
|
-
* Not part of the public MathML authoring API.
|
|
132
|
-
*/
|
|
133
|
-
ctrlPr?: MathCtrlPr;
|
|
134
|
-
}
|
|
135
|
-
/** `m:groupChrPr`. */
|
|
136
|
-
export interface MathGroupCharacterProperties {
|
|
137
|
-
/** Group character (`m:chr`). */
|
|
138
|
-
chr?: string;
|
|
139
|
-
/** Character position (`m:pos`). */
|
|
140
|
-
pos?: MathTopBot;
|
|
141
|
-
/** Vertical justification of the group character (`m:vertJc`). */
|
|
142
|
-
vertJc?: MathTopBot;
|
|
143
|
-
/**
|
|
144
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
145
|
-
* @private
|
|
146
|
-
* Not part of the public MathML authoring API.
|
|
147
|
-
*/
|
|
148
|
-
ctrlPr?: MathCtrlPr;
|
|
149
|
-
}
|
|
150
|
-
/** `m:limLowPr` / `m:limUppPr`. */
|
|
151
|
-
export interface MathLimitProperties {
|
|
152
|
-
/**
|
|
153
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
154
|
-
* @private
|
|
155
|
-
* Not part of the public MathML authoring API.
|
|
156
|
-
*/
|
|
157
|
-
ctrlPr?: MathCtrlPr;
|
|
158
|
-
}
|
|
159
|
-
/** `m:mPr`. */
|
|
160
|
-
export interface MathMatrixProperties {
|
|
161
|
-
/** Base vertical justification (`m:baseJc`). */
|
|
162
|
-
baseJc?: string;
|
|
163
|
-
/** Whether placeholders are hidden (`m:plcHide`). */
|
|
164
|
-
isPlaceholderHidden?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
167
|
-
* @private
|
|
168
|
-
* Not part of the public MathML authoring API.
|
|
169
|
-
*/
|
|
170
|
-
ctrlPr?: MathCtrlPr;
|
|
171
|
-
}
|
|
172
|
-
/** `m:naryPr`. */
|
|
173
|
-
export interface MathNaryProperties {
|
|
174
|
-
/** N-ary operator character (`m:chr`). */
|
|
175
|
-
chr?: string;
|
|
176
|
-
/** Limit location (`m:limLoc`). */
|
|
177
|
-
limLoc?: MathLimLoc;
|
|
178
|
-
/** Whether the n-ary operator glyph may grow (`m:grow`). */
|
|
179
|
-
canGrow?: boolean;
|
|
180
|
-
/** Whether the subscript limit is hidden (`m:subHide`). */
|
|
181
|
-
isSubscriptHidden?: boolean;
|
|
182
|
-
/** Whether the superscript limit is hidden (`m:supHide`). */
|
|
183
|
-
isSuperscriptHidden?: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
186
|
-
* @private
|
|
187
|
-
* Not part of the public MathML authoring API.
|
|
188
|
-
*/
|
|
189
|
-
ctrlPr?: MathCtrlPr;
|
|
190
|
-
}
|
|
191
|
-
/** `m:phantPr`. */
|
|
192
|
-
export interface MathPhantomProperties {
|
|
193
|
-
/** Whether the phantom contents are shown (`m:show`). */
|
|
194
|
-
isShown?: boolean;
|
|
195
|
-
/** Whether the phantom contributes zero width (`m:zeroWid`). */
|
|
196
|
-
isZeroWidth?: boolean;
|
|
197
|
-
/** Whether the phantom contributes zero ascent (`m:zeroAsc`). */
|
|
198
|
-
isZeroAscender?: boolean;
|
|
199
|
-
/** Whether the phantom contributes zero descent (`m:zeroDesc`). */
|
|
200
|
-
isZeroDescender?: boolean;
|
|
201
|
-
/** Whether the phantom is transparent for spacing (`m:transp`). */
|
|
202
|
-
isTransparent?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
205
|
-
* @private
|
|
206
|
-
* Not part of the public MathML authoring API.
|
|
207
|
-
*/
|
|
208
|
-
ctrlPr?: MathCtrlPr;
|
|
209
|
-
}
|
|
210
|
-
/** `m:radPr`. */
|
|
211
|
-
export interface MathRadicalProperties {
|
|
212
|
-
/** Whether the degree is hidden (`m:degHide`). */
|
|
213
|
-
isDegreeHidden?: boolean;
|
|
214
|
-
/**
|
|
215
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
216
|
-
* @private
|
|
217
|
-
* Not part of the public MathML authoring API.
|
|
218
|
-
*/
|
|
219
|
-
ctrlPr?: MathCtrlPr;
|
|
220
|
-
}
|
|
221
|
-
/** Shared script-control props (`sPre`/`sSub`/`sSup`/`sSubSup`). */
|
|
222
|
-
export interface MathScriptControlProperties {
|
|
223
|
-
/** Whether scripts are alignment-aligned (`m:alnScr`). */
|
|
224
|
-
isScriptAligned?: boolean;
|
|
225
|
-
/**
|
|
226
|
-
* Opaque control properties carrier (`m:ctrlPr`).
|
|
227
|
-
* @private
|
|
228
|
-
* Not part of the public MathML authoring API.
|
|
229
|
-
*/
|
|
230
|
-
ctrlPr?: MathCtrlPr;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* `m:rPr` math run properties.
|
|
234
|
-
*
|
|
235
|
-
* Source: ECMA-376-4 `CT_RPR` — lit?, nor? | (scr?, sty?), brk?, aln?.
|
|
236
|
-
*/
|
|
237
|
-
export interface MathRunProperties {
|
|
238
|
-
/** Whether the run is treated as literal text (`m:lit`). */
|
|
239
|
-
isLiteral?: boolean;
|
|
240
|
-
/** Whether the run uses normal text styling (`m:nor`). */
|
|
241
|
-
isNormal?: boolean;
|
|
242
|
-
/** Math script (`m:scr`). */
|
|
243
|
-
scr?: MathScript;
|
|
244
|
-
/** Math style (`m:sty`). */
|
|
245
|
-
sty?: MathStyle;
|
|
246
|
-
/** Whether the run is an alignment point (`m:aln`). */
|
|
247
|
-
isAligned?: boolean;
|
|
248
|
-
/** Break value (ST_Integer255 when modeled as break index). */
|
|
249
|
-
brk?: number;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Accent math structure — a base expression with a combining accent character.
|
|
253
|
-
*
|
|
254
|
-
* @public
|
|
255
|
-
*/
|
|
256
|
-
export declare class MathAccent extends MathElement {
|
|
257
|
-
/**
|
|
258
|
-
* Discriminator for this math control kind.
|
|
259
|
-
*
|
|
260
|
-
* @public
|
|
261
|
-
*/
|
|
262
|
-
readonly type = "acc";
|
|
263
|
-
private _properties;
|
|
264
|
-
private _base;
|
|
265
|
-
constructor(properties?: MathAccentProperties, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
266
|
-
/**
|
|
267
|
-
* Gets or sets accent configuration such as the accent character.
|
|
268
|
-
*
|
|
269
|
-
* @public
|
|
270
|
-
*/
|
|
271
|
-
properties: Readonly<MathAccentProperties>;
|
|
272
|
-
/**
|
|
273
|
-
* Gets or sets the base mathematical expression under the accent.
|
|
274
|
-
*
|
|
275
|
-
* @public
|
|
276
|
-
*/
|
|
277
|
-
base: MathArgument;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Over/under bar structure (`m:bar`) — a base expression with a bar accent.
|
|
281
|
-
*
|
|
282
|
-
* Child sequence: `barPr?`, `e`.
|
|
283
|
-
*
|
|
284
|
-
* @public
|
|
285
|
-
*/
|
|
286
|
-
export declare class MathBar extends MathElement {
|
|
287
|
-
/**
|
|
288
|
-
* Math element type for this control (`bar`).
|
|
289
|
-
*/
|
|
290
|
-
readonly type = "bar";
|
|
291
|
-
private _properties;
|
|
292
|
-
private _base;
|
|
293
|
-
constructor(properties?: MathBarProperties, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
294
|
-
/**
|
|
295
|
-
* Bar configuration (`m:barPr`), such as bar position (`pos`).
|
|
296
|
-
*/
|
|
297
|
-
properties: Readonly<MathBarProperties>;
|
|
298
|
-
/**
|
|
299
|
-
* Base mathematical expression under the bar (`m:e`).
|
|
300
|
-
*/
|
|
301
|
-
base: MathArgument;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Layout box structure (`m:box`) — groups a base for operator emulation and breaks.
|
|
305
|
-
*
|
|
306
|
-
* Child sequence: `boxPr?`, `e`.
|
|
307
|
-
*
|
|
308
|
-
* @public
|
|
309
|
-
*/
|
|
310
|
-
export declare class MathBox extends MathElement {
|
|
311
|
-
/**
|
|
312
|
-
* Math element type for this control (`box`).
|
|
313
|
-
*/
|
|
314
|
-
readonly type = "box";
|
|
315
|
-
private _properties;
|
|
316
|
-
private _base;
|
|
317
|
-
constructor(properties?: MathBoxProperties, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
318
|
-
/**
|
|
319
|
-
* Box configuration (`m:boxPr`), such as operator emulation and break flags.
|
|
320
|
-
*/
|
|
321
|
-
properties: Readonly<MathBoxProperties>;
|
|
322
|
-
/**
|
|
323
|
-
* Base mathematical expression inside the box (`m:e`).
|
|
324
|
-
*/
|
|
325
|
-
base: MathArgument;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Border box structure (`m:borderBox`) — a base expression with optional borders and strikes.
|
|
329
|
-
*
|
|
330
|
-
* Child sequence: `borderBoxPr?`, `e`.
|
|
331
|
-
*
|
|
332
|
-
* @public
|
|
333
|
-
*/
|
|
334
|
-
export declare class MathBorderBox extends MathElement {
|
|
335
|
-
/**
|
|
336
|
-
* Math element type for this control (`borderBox`).
|
|
337
|
-
*/
|
|
338
|
-
readonly type = "borderBox";
|
|
339
|
-
private _properties;
|
|
340
|
-
private _base;
|
|
341
|
-
constructor(properties?: MathBorderBoxProperties, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
342
|
-
/**
|
|
343
|
-
* Border-box configuration (`m:borderBoxPr`), such as hidden sides and strike flags.
|
|
344
|
-
*/
|
|
345
|
-
properties: Readonly<MathBorderBoxProperties>;
|
|
346
|
-
/**
|
|
347
|
-
* Base mathematical expression inside the border box (`m:e`).
|
|
348
|
-
*/
|
|
349
|
-
base: MathArgument;
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* Delimiter structure (`m:d`) — one or more arguments between begin/end characters.
|
|
353
|
-
*
|
|
354
|
-
* Child sequence: `dPr?`, `e` (1..∞).
|
|
355
|
-
*
|
|
356
|
-
* @public
|
|
357
|
-
*/
|
|
358
|
-
export declare class MathDelimiter extends MathElement {
|
|
359
|
-
/**
|
|
360
|
-
* Math element type for this control (`d`).
|
|
361
|
-
*/
|
|
362
|
-
readonly type = "d";
|
|
363
|
-
private _properties;
|
|
364
|
-
private _elements;
|
|
365
|
-
constructor(properties?: MathDelimiterProperties, elements?: ReadonlyArray<MathArgument | ReadonlyArray<MathElement>>);
|
|
366
|
-
/**
|
|
367
|
-
* Delimiter configuration (`m:dPr`), such as begin/end characters and grow.
|
|
368
|
-
*/
|
|
369
|
-
properties: Readonly<MathDelimiterProperties>;
|
|
370
|
-
/**
|
|
371
|
-
* Ordered delimiter arguments (`m:e`), each an {@link MathArgument}.
|
|
372
|
-
*/
|
|
373
|
-
/**
|
|
374
|
-
* Replaces the ordered delimiter arguments (`m:e`) in document order.
|
|
375
|
-
*/
|
|
376
|
-
elements: ReadonlyArray<MathArgument>;
|
|
377
|
-
/**
|
|
378
|
-
* Validates that this delimiter has at least one argument before serialization.
|
|
379
|
-
*
|
|
380
|
-
* @private
|
|
381
|
-
* Called by the OMML serializer; not part of the public authoring API.
|
|
382
|
-
*/
|
|
383
|
-
assertSerializable(path?: string): void;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Equation array structure (`m:eqArr`) — stacked equation rows as arguments.
|
|
387
|
-
*
|
|
388
|
-
* Child sequence: `eqArrPr?`, `e` (1..∞).
|
|
389
|
-
*
|
|
390
|
-
* @public
|
|
391
|
-
*/
|
|
392
|
-
export declare class MathEquationArray extends MathElement {
|
|
393
|
-
/**
|
|
394
|
-
* Math element type for this control (`eqArr`).
|
|
395
|
-
*/
|
|
396
|
-
readonly type = "eqArr";
|
|
397
|
-
private _properties;
|
|
398
|
-
private _elements;
|
|
399
|
-
constructor(properties?: MathEquationArrayProperties, elements?: ReadonlyArray<MathArgument | ReadonlyArray<MathElement>>);
|
|
400
|
-
/**
|
|
401
|
-
* Equation-array configuration (`m:eqArrPr`), such as base justification and distribution.
|
|
402
|
-
*/
|
|
403
|
-
properties: Readonly<MathEquationArrayProperties>;
|
|
404
|
-
/**
|
|
405
|
-
* Ordered equation-array rows (`m:e`), each an {@link MathArgument}.
|
|
406
|
-
*/
|
|
407
|
-
/**
|
|
408
|
-
* Replaces the ordered equation-array rows (`m:e`) in document order.
|
|
409
|
-
*/
|
|
410
|
-
elements: ReadonlyArray<MathArgument>;
|
|
411
|
-
/**
|
|
412
|
-
* Validates that this equation array has at least one row before serialization.
|
|
413
|
-
*
|
|
414
|
-
* @private
|
|
415
|
-
* Called by the OMML serializer; not part of the public authoring API.
|
|
416
|
-
*/
|
|
417
|
-
assertSerializable(path?: string): void;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Fraction math structure — numerator over denominator with optional fraction style.
|
|
421
|
-
*
|
|
422
|
-
* @public
|
|
423
|
-
*/
|
|
424
|
-
export declare class MathFraction extends MathElement {
|
|
425
|
-
/**
|
|
426
|
-
* Discriminator for this math control kind.
|
|
427
|
-
*
|
|
428
|
-
* @public
|
|
429
|
-
*/
|
|
430
|
-
readonly type = "f";
|
|
431
|
-
private _properties;
|
|
432
|
-
private _numerator;
|
|
433
|
-
private _denominator;
|
|
434
|
-
constructor(properties?: MathFractionProperties, numerator?: MathArgument | ReadonlyArray<MathElement>, denominator?: MathArgument | ReadonlyArray<MathElement>);
|
|
435
|
-
/**
|
|
436
|
-
* Gets or sets fraction configuration such as bar, skewed, linear, or no-bar style.
|
|
437
|
-
*
|
|
438
|
-
* @public
|
|
439
|
-
*/
|
|
440
|
-
properties: Readonly<MathFractionProperties>;
|
|
441
|
-
/**
|
|
442
|
-
* Gets or sets the numerator of the fraction.
|
|
443
|
-
*
|
|
444
|
-
* @public
|
|
445
|
-
*/
|
|
446
|
-
numerator: MathArgument;
|
|
447
|
-
/**
|
|
448
|
-
* Gets or sets the denominator of the fraction.
|
|
449
|
-
*
|
|
450
|
-
* @public
|
|
451
|
-
*/
|
|
452
|
-
denominator: MathArgument;
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* Function-apply structure (`m:func`) — function name applied to a base expression.
|
|
456
|
-
*
|
|
457
|
-
* Child sequence: `funcPr?`, `fName`, `e`.
|
|
458
|
-
*
|
|
459
|
-
* @public
|
|
460
|
-
*/
|
|
461
|
-
export declare class MathFunction extends MathElement {
|
|
462
|
-
/**
|
|
463
|
-
* Math element type for this control (`func`).
|
|
464
|
-
*/
|
|
465
|
-
readonly type = "func";
|
|
466
|
-
private _properties;
|
|
467
|
-
private _name;
|
|
468
|
-
private _base;
|
|
469
|
-
constructor(properties?: MathFunctionProperties, name?: MathArgument | ReadonlyArray<MathElement>, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
470
|
-
/**
|
|
471
|
-
* Function-apply configuration (`m:funcPr`).
|
|
472
|
-
*/
|
|
473
|
-
properties: Readonly<MathFunctionProperties>;
|
|
474
|
-
/**
|
|
475
|
-
* Function name argument (`m:fName`), for example `sin` or `log`.
|
|
476
|
-
*/
|
|
477
|
-
name: MathArgument;
|
|
478
|
-
/**
|
|
479
|
-
* Base mathematical expression the function applies to (`m:e`).
|
|
480
|
-
*/
|
|
481
|
-
base: MathArgument;
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* Group-character structure (`m:groupChr`) — a base with a grouping character above or below.
|
|
485
|
-
*
|
|
486
|
-
* Child sequence: `groupChrPr?`, `e`.
|
|
487
|
-
*
|
|
488
|
-
* @public
|
|
489
|
-
*/
|
|
490
|
-
export declare class MathGroupCharacter extends MathElement {
|
|
491
|
-
/**
|
|
492
|
-
* Math element type for this control (`groupChr`).
|
|
493
|
-
*/
|
|
494
|
-
readonly type = "groupChr";
|
|
495
|
-
private _properties;
|
|
496
|
-
private _base;
|
|
497
|
-
constructor(properties?: MathGroupCharacterProperties, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
498
|
-
/**
|
|
499
|
-
* Group-character configuration (`m:groupChrPr`), such as character and position.
|
|
500
|
-
*/
|
|
501
|
-
properties: Readonly<MathGroupCharacterProperties>;
|
|
502
|
-
/**
|
|
503
|
-
* Base mathematical expression under the group character (`m:e`).
|
|
504
|
-
*/
|
|
505
|
-
base: MathArgument;
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Lower-limit structure (`m:limLow`) — a base expression with a limit below it.
|
|
509
|
-
*
|
|
510
|
-
* Child sequence: `limLowPr?`, `e`, `lim`.
|
|
511
|
-
*
|
|
512
|
-
* @public
|
|
513
|
-
*/
|
|
514
|
-
export declare class MathLimitLower extends MathElement {
|
|
515
|
-
/**
|
|
516
|
-
* Math element type for this control (`limLow`).
|
|
517
|
-
*/
|
|
518
|
-
readonly type = "limLow";
|
|
519
|
-
private _properties;
|
|
520
|
-
private _base;
|
|
521
|
-
private _lim;
|
|
522
|
-
constructor(properties?: MathLimitProperties, base?: MathArgument | ReadonlyArray<MathElement>, lim?: MathArgument | ReadonlyArray<MathElement>);
|
|
523
|
-
/**
|
|
524
|
-
* Lower-limit configuration (`m:limLowPr`).
|
|
525
|
-
*/
|
|
526
|
-
properties: Readonly<MathLimitProperties>;
|
|
527
|
-
/**
|
|
528
|
-
* Base mathematical expression above the lower limit (`m:e`).
|
|
529
|
-
*/
|
|
530
|
-
base: MathArgument;
|
|
531
|
-
/**
|
|
532
|
-
* Lower-limit argument drawn beneath the base (`m:lim`).
|
|
533
|
-
*/
|
|
534
|
-
lim: MathArgument;
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* Upper-limit structure (`m:limUpp`) — a base expression with a limit above it.
|
|
538
|
-
*
|
|
539
|
-
* Child sequence: `limUppPr?`, `e`, `lim`.
|
|
540
|
-
*
|
|
541
|
-
* @public
|
|
542
|
-
*/
|
|
543
|
-
export declare class MathLimitUpper extends MathElement {
|
|
544
|
-
/**
|
|
545
|
-
* Math element type for this control (`limUpp`).
|
|
546
|
-
*/
|
|
547
|
-
readonly type = "limUpp";
|
|
548
|
-
private _properties;
|
|
549
|
-
private _base;
|
|
550
|
-
private _lim;
|
|
551
|
-
constructor(properties?: MathLimitProperties, base?: MathArgument | ReadonlyArray<MathElement>, lim?: MathArgument | ReadonlyArray<MathElement>);
|
|
552
|
-
/**
|
|
553
|
-
* Upper-limit configuration (`m:limUppPr`).
|
|
554
|
-
*/
|
|
555
|
-
properties: Readonly<MathLimitProperties>;
|
|
556
|
-
/**
|
|
557
|
-
* Base mathematical expression below the upper limit (`m:e`).
|
|
558
|
-
*/
|
|
559
|
-
base: MathArgument;
|
|
560
|
-
/**
|
|
561
|
-
* Upper-limit argument drawn above the base (`m:lim`).
|
|
562
|
-
*/
|
|
563
|
-
lim: MathArgument;
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* Matrix row (`m:mr`) — one row of matrix cell arguments.
|
|
567
|
-
*
|
|
568
|
-
* Child sequence: `e` (1..∞).
|
|
569
|
-
*
|
|
570
|
-
* @public
|
|
571
|
-
*/
|
|
572
|
-
export declare class MathMatrixRow extends MathElement {
|
|
573
|
-
/**
|
|
574
|
-
* Math element type for this control (`mr`).
|
|
575
|
-
*/
|
|
576
|
-
readonly type = "mr";
|
|
577
|
-
private _elements;
|
|
578
|
-
constructor(elements?: ReadonlyArray<MathArgument | ReadonlyArray<MathElement>>);
|
|
579
|
-
/**
|
|
580
|
-
* Ordered cell arguments in this matrix row (`m:e`), each an {@link MathArgument}.
|
|
581
|
-
*/
|
|
582
|
-
readonly elements: ReadonlyArray<MathArgument>;
|
|
583
|
-
/**
|
|
584
|
-
* Replaces the ordered cell arguments (`m:e`) in this matrix row.
|
|
585
|
-
*/
|
|
586
|
-
setElements(next: ReadonlyArray<MathArgument>): void;
|
|
587
|
-
/**
|
|
588
|
-
* Validates that this matrix row has at least one cell before serialization.
|
|
589
|
-
*
|
|
590
|
-
* @private
|
|
591
|
-
* Called by the OMML serializer; not part of the public authoring API.
|
|
592
|
-
*/
|
|
593
|
-
assertSerializable(path?: string): void;
|
|
594
|
-
}
|
|
595
|
-
/**
|
|
596
|
-
* Matrix structure (`m:m`) — a grid of matrix rows.
|
|
597
|
-
*
|
|
598
|
-
* Child sequence: `mPr?`, `mr` (1..∞).
|
|
599
|
-
*
|
|
600
|
-
* @public
|
|
601
|
-
*/
|
|
602
|
-
export declare class MathMatrix extends MathElement {
|
|
603
|
-
/**
|
|
604
|
-
* Math element type for this control (`m`).
|
|
605
|
-
*/
|
|
606
|
-
readonly type = "m";
|
|
607
|
-
private _properties;
|
|
608
|
-
private _rows;
|
|
609
|
-
constructor(properties?: MathMatrixProperties, rows?: ReadonlyArray<MathMatrixRow>);
|
|
610
|
-
/**
|
|
611
|
-
* Matrix configuration (`m:mPr`), such as base justification and placeholder visibility.
|
|
612
|
-
*/
|
|
613
|
-
properties: Readonly<MathMatrixProperties>;
|
|
614
|
-
/**
|
|
615
|
-
* Ordered matrix rows (`m:mr`), each a {@link MathMatrixRow}.
|
|
616
|
-
*/
|
|
617
|
-
readonly rows: ReadonlyArray<MathMatrixRow>;
|
|
618
|
-
/**
|
|
619
|
-
* Replaces the ordered matrix rows (`m:mr`) in document order.
|
|
620
|
-
*/
|
|
621
|
-
setRows(next: ReadonlyArray<MathMatrixRow>): void;
|
|
622
|
-
/**
|
|
623
|
-
* Validates that this matrix has at least one row (and each row is valid) before serialization.
|
|
624
|
-
*
|
|
625
|
-
* @private
|
|
626
|
-
* Called by the OMML serializer; not part of the public authoring API.
|
|
627
|
-
*/
|
|
628
|
-
assertSerializable(path?: string): void;
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* N-ary operator structure (`m:nary`) — integral, sum, product, and similar operators.
|
|
632
|
-
*
|
|
633
|
-
* Child sequence: `naryPr?`, `sub`, `sup`, `e`.
|
|
634
|
-
*
|
|
635
|
-
* @public
|
|
636
|
-
*/
|
|
637
|
-
export declare class MathNaryOperator extends MathElement {
|
|
638
|
-
/**
|
|
639
|
-
* Math element type for this control (`nary`).
|
|
640
|
-
*/
|
|
641
|
-
readonly type = "nary";
|
|
642
|
-
private _properties;
|
|
643
|
-
private _sub;
|
|
644
|
-
private _sup;
|
|
645
|
-
private _base;
|
|
646
|
-
constructor(properties?: MathNaryProperties, sub?: MathArgument | ReadonlyArray<MathElement>, sup?: MathArgument | ReadonlyArray<MathElement>, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
647
|
-
/**
|
|
648
|
-
* N-ary operator configuration (`m:naryPr`), such as operator character, limit location, and hide flags.
|
|
649
|
-
*/
|
|
650
|
-
properties: Readonly<MathNaryProperties>;
|
|
651
|
-
/**
|
|
652
|
-
* Lower (subscript) limit of the n-ary operator (`m:sub`).
|
|
653
|
-
*/
|
|
654
|
-
subscript: MathArgument;
|
|
655
|
-
/**
|
|
656
|
-
* Upper (superscript) limit of the n-ary operator (`m:sup`).
|
|
657
|
-
*/
|
|
658
|
-
superscript: MathArgument;
|
|
659
|
-
/**
|
|
660
|
-
* Base mathematical expression the n-ary operator applies to (`m:e`).
|
|
661
|
-
*/
|
|
662
|
-
base: MathArgument;
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* Phantom structure (`m:phant`) — layout spacing from content that may be hidden.
|
|
666
|
-
*
|
|
667
|
-
* Child sequence: `phantPr?`, `e`.
|
|
668
|
-
*
|
|
669
|
-
* @public
|
|
670
|
-
*/
|
|
671
|
-
export declare class MathPhantom extends MathElement {
|
|
672
|
-
/**
|
|
673
|
-
* Math element type for this control (`phant`).
|
|
674
|
-
*/
|
|
675
|
-
readonly type = "phant";
|
|
676
|
-
private _properties;
|
|
677
|
-
private _base;
|
|
678
|
-
constructor(properties?: MathPhantomProperties, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
679
|
-
/**
|
|
680
|
-
* Phantom configuration (`m:phantPr`), such as show and zero-width/ascender/descender flags.
|
|
681
|
-
*/
|
|
682
|
-
properties: Readonly<MathPhantomProperties>;
|
|
683
|
-
/**
|
|
684
|
-
* Base mathematical expression used for phantom layout (`m:e`).
|
|
685
|
-
*/
|
|
686
|
-
base: MathArgument;
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Radical structure (`m:rad`) — square root or nth-root with optional degree.
|
|
690
|
-
*
|
|
691
|
-
* Child sequence: `radPr?`, `deg`, `e`.
|
|
692
|
-
*
|
|
693
|
-
* @public
|
|
694
|
-
*/
|
|
695
|
-
export declare class MathRadical extends MathElement {
|
|
696
|
-
/**
|
|
697
|
-
* Math element type for this control (`rad`).
|
|
698
|
-
*/
|
|
699
|
-
readonly type = "rad";
|
|
700
|
-
private _properties;
|
|
701
|
-
private _deg;
|
|
702
|
-
private _base;
|
|
703
|
-
constructor(properties?: MathRadicalProperties, deg?: MathArgument | ReadonlyArray<MathElement>, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
704
|
-
/**
|
|
705
|
-
* Radical configuration (`m:radPr`), such as whether the degree is hidden.
|
|
706
|
-
*/
|
|
707
|
-
properties: Readonly<MathRadicalProperties>;
|
|
708
|
-
/**
|
|
709
|
-
* Degree argument of the radical (`m:deg`), for example the index of an nth root.
|
|
710
|
-
*/
|
|
711
|
-
deg: MathArgument;
|
|
712
|
-
/**
|
|
713
|
-
* Radicand — the expression under the radical sign (`m:e`).
|
|
714
|
-
*/
|
|
715
|
-
base: MathArgument;
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
* Pre-sub-superscript structure (`m:sPre`) — scripts placed before the base.
|
|
719
|
-
*
|
|
720
|
-
* Child sequence: `sPrePr?`, `sub`, `sup`, `e`.
|
|
721
|
-
*
|
|
722
|
-
* @public
|
|
723
|
-
*/
|
|
724
|
-
export declare class MathPreSubSuperscript extends MathElement {
|
|
725
|
-
/**
|
|
726
|
-
* Math element type for this control (`sPre`).
|
|
727
|
-
*/
|
|
728
|
-
readonly type = "sPre";
|
|
729
|
-
private _properties;
|
|
730
|
-
private _sub;
|
|
731
|
-
private _sup;
|
|
732
|
-
private _base;
|
|
733
|
-
constructor(properties?: MathScriptControlProperties, sub?: MathArgument | ReadonlyArray<MathElement>, sup?: MathArgument | ReadonlyArray<MathElement>, base?: MathArgument | ReadonlyArray<MathElement>);
|
|
734
|
-
/**
|
|
735
|
-
* Pre-script configuration (`m:sPrePr`), such as script alignment.
|
|
736
|
-
*/
|
|
737
|
-
properties: Readonly<MathScriptControlProperties>;
|
|
738
|
-
/**
|
|
739
|
-
* Subscript argument placed before the base (`m:sub`).
|
|
740
|
-
*/
|
|
741
|
-
sub: MathArgument;
|
|
742
|
-
/**
|
|
743
|
-
* Superscript argument placed before the base (`m:sup`).
|
|
744
|
-
*/
|
|
745
|
-
sup: MathArgument;
|
|
746
|
-
/**
|
|
747
|
-
* Base mathematical expression after the pre-scripts (`m:e`).
|
|
748
|
-
*/
|
|
749
|
-
base: MathArgument;
|
|
750
|
-
}
|
|
751
|
-
/**
|
|
752
|
-
* Subscript structure (`m:sSub`) — a base with a subscript.
|
|
753
|
-
*
|
|
754
|
-
* Child sequence: `sSubPr?`, `e`, `sub`.
|
|
755
|
-
*
|
|
756
|
-
* @public
|
|
757
|
-
*/
|
|
758
|
-
export declare class MathSubscript extends MathElement {
|
|
759
|
-
/**
|
|
760
|
-
* Math element type for this control (`sSub`).
|
|
761
|
-
*/
|
|
762
|
-
readonly type = "sSub";
|
|
763
|
-
private _properties;
|
|
764
|
-
private _base;
|
|
765
|
-
private _sub;
|
|
766
|
-
constructor(properties?: MathScriptControlProperties, base?: MathArgument | ReadonlyArray<MathElement>, sub?: MathArgument | ReadonlyArray<MathElement>);
|
|
767
|
-
/**
|
|
768
|
-
* Subscript configuration (`m:sSubPr`), such as script alignment.
|
|
769
|
-
*/
|
|
770
|
-
properties: Readonly<MathScriptControlProperties>;
|
|
771
|
-
/**
|
|
772
|
-
* Base mathematical expression carrying the subscript (`m:e`).
|
|
773
|
-
*/
|
|
774
|
-
base: MathArgument;
|
|
775
|
-
/**
|
|
776
|
-
* Subscript argument (`m:sub`).
|
|
777
|
-
*/
|
|
778
|
-
subscript: MathArgument;
|
|
779
|
-
}
|
|
780
|
-
/**
|
|
781
|
-
* Sub-superscript structure (`m:sSubSup`) — a base with both subscript and superscript.
|
|
782
|
-
*
|
|
783
|
-
* Child sequence: `sSubSupPr?`, `e`, `sub`, `sup`.
|
|
784
|
-
*
|
|
785
|
-
* @public
|
|
786
|
-
*/
|
|
787
|
-
export declare class MathSubSuperscript extends MathElement {
|
|
788
|
-
/**
|
|
789
|
-
* Math element type for this control (`sSubSup`).
|
|
790
|
-
*/
|
|
791
|
-
readonly type = "sSubSup";
|
|
792
|
-
private _properties;
|
|
793
|
-
private _base;
|
|
794
|
-
private _sub;
|
|
795
|
-
private _sup;
|
|
796
|
-
constructor(properties?: MathScriptControlProperties, base?: MathArgument | ReadonlyArray<MathElement>, sub?: MathArgument | ReadonlyArray<MathElement>, sup?: MathArgument | ReadonlyArray<MathElement>);
|
|
797
|
-
/**
|
|
798
|
-
* Sub-superscript configuration (`m:sSubSupPr`), such as script alignment.
|
|
799
|
-
*/
|
|
800
|
-
properties: Readonly<MathScriptControlProperties>;
|
|
801
|
-
/**
|
|
802
|
-
* Base mathematical expression carrying both scripts (`m:e`).
|
|
803
|
-
*/
|
|
804
|
-
base: MathArgument;
|
|
805
|
-
/**
|
|
806
|
-
* Subscript argument (`m:sub`).
|
|
807
|
-
*/
|
|
808
|
-
subscript: MathArgument;
|
|
809
|
-
/**
|
|
810
|
-
* Superscript argument (`m:sup`).
|
|
811
|
-
*/
|
|
812
|
-
superscript: MathArgument;
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* Superscript structure (`m:sSup`) — a base with a superscript.
|
|
816
|
-
*
|
|
817
|
-
* Child sequence: `sSupPr?`, `e`, `sup`.
|
|
818
|
-
*
|
|
819
|
-
* @public
|
|
820
|
-
*/
|
|
821
|
-
export declare class MathSuperscript extends MathElement {
|
|
822
|
-
/**
|
|
823
|
-
* Math element type for this control (`sSup`).
|
|
824
|
-
*/
|
|
825
|
-
readonly type = "sSup";
|
|
826
|
-
private _properties;
|
|
827
|
-
private _base;
|
|
828
|
-
private _sup;
|
|
829
|
-
constructor(properties?: MathScriptControlProperties, base?: MathArgument | ReadonlyArray<MathElement>, sup?: MathArgument | ReadonlyArray<MathElement>);
|
|
830
|
-
/**
|
|
831
|
-
* Superscript configuration (`m:sSupPr`), such as script alignment.
|
|
832
|
-
*/
|
|
833
|
-
properties: Readonly<MathScriptControlProperties>;
|
|
834
|
-
/**
|
|
835
|
-
* Base mathematical expression carrying the superscript (`m:e`).
|
|
836
|
-
*/
|
|
837
|
-
base: MathArgument;
|
|
838
|
-
/**
|
|
839
|
-
* Superscript argument (`m:sup`).
|
|
840
|
-
*/
|
|
841
|
-
superscript: MathArgument;
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* Math run (`m:r`) — text and optional opaque WML run content inside an equation.
|
|
845
|
-
*
|
|
846
|
-
* Child sequence: `rPr?`, optional `w:rPr`, then (`m:t` | WML run content)*.
|
|
847
|
-
* The constructor accepts a string (single {@link MathText}) or a children list.
|
|
848
|
-
*
|
|
849
|
-
* @public
|
|
850
|
-
*/
|
|
851
|
-
export declare class MathRun extends MathElement {
|
|
852
|
-
/**
|
|
853
|
-
* Math element type for this control (`r`).
|
|
854
|
-
*/
|
|
855
|
-
readonly type = "r";
|
|
856
|
-
private _properties;
|
|
857
|
-
private _wRPr;
|
|
858
|
-
private _children;
|
|
859
|
-
private _opaqueChildren;
|
|
860
|
-
constructor(textOrChildren?: string | ReadonlyArray<MathElement>, properties?: MathRunProperties, wRPr?: OpenXmlElement, opaqueChildren?: ReadonlyArray<OpenXmlElement>);
|
|
861
|
-
/**
|
|
862
|
-
* Math run configuration (`m:rPr`), such as literal/normal flags, script, and style.
|
|
863
|
-
*/
|
|
864
|
-
properties: Readonly<MathRunProperties>;
|
|
865
|
-
/**
|
|
866
|
-
* Optional WordprocessingML run properties (`w:rPr`) nested under this math run.
|
|
867
|
-
*
|
|
868
|
-
* @private
|
|
869
|
-
* Opaque WML carrier for round-trip; not part of the public MathML authoring API.
|
|
870
|
-
*/
|
|
871
|
-
/**
|
|
872
|
-
* @private
|
|
873
|
-
*
|
|
874
|
-
*/
|
|
875
|
-
wRPr: OpenXmlElement | undefined;
|
|
876
|
-
/**
|
|
877
|
-
* Ordered math children of this run (typically {@link MathText} nodes).
|
|
878
|
-
*/
|
|
879
|
-
readonly children: ReadonlyArray<MathElement>;
|
|
880
|
-
/**
|
|
881
|
-
* Opaque non-math WML run-content siblings preserved in order with math texts.
|
|
882
|
-
*
|
|
883
|
-
* @private
|
|
884
|
-
* Used by parse/serialize for round-trip fidelity; not part of the public authoring API.
|
|
885
|
-
*/
|
|
886
|
-
readonly opaqueChildren: ReadonlyArray<OpenXmlElement>;
|
|
887
|
-
/**
|
|
888
|
-
* Replaces the ordered math children of this run.
|
|
889
|
-
*/
|
|
890
|
-
setChildren(next: ReadonlyArray<MathElement>): void;
|
|
891
|
-
/**
|
|
892
|
-
* Concatenated text of all {@link MathText} children (full UTF-8 passthrough).
|
|
893
|
-
* Assigning a value replaces children with a single {@link MathText}.
|
|
894
|
-
*/
|
|
895
|
-
text: string;
|
|
896
|
-
}
|