document-content-model 4.3.3 → 7.6.0
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/README.md +274 -95
- package/dist/border-weight.cjs +26 -0
- package/dist/border-weight.d.cts +12 -0
- package/dist/border-weight.d.ts +12 -0
- package/dist/border-weight.js +23 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{construct-CdQuI9f5.d.cts → construct-GVdTKrE7.d.cts} +245 -5
- package/dist/{construct-CdQuI9f5.d.ts → construct-GVdTKrE7.d.ts} +245 -5
- package/dist/construct.cjs +13 -6
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/construct.js +13 -6
- package/dist/content-BCOxY0Eb.d.ts +10273 -0
- package/dist/content-BzkhrS6P.d.cts +10273 -0
- package/dist/content-json-schema-defs.cjs +1056 -189
- package/dist/content-json-schema-defs.js +1056 -189
- package/dist/content.cjs +514 -36
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +488 -37
- package/dist/decompose.cjs +7 -17
- package/dist/decompose.d.cts +5 -5
- package/dist/decompose.d.ts +5 -5
- package/dist/decompose.js +7 -17
- package/dist/definitions.cjs +5 -1
- package/dist/definitions.d.cts +37 -1
- package/dist/definitions.d.ts +37 -1
- package/dist/definitions.js +5 -1
- package/dist/factor-styles.cjs +14 -8
- package/dist/factor-styles.d.cts +6 -6
- package/dist/factor-styles.d.ts +6 -6
- package/dist/factor-styles.js +15 -9
- package/dist/flatten.cjs +5 -5
- package/dist/flatten.d.cts +4 -4
- package/dist/flatten.d.ts +4 -4
- package/dist/flatten.js +5 -5
- package/dist/font-port.d.cts +2 -2
- package/dist/font-port.d.ts +2 -2
- package/dist/index.cjs +54 -14
- package/dist/index.d.cts +14 -12
- package/dist/index.d.ts +14 -12
- package/dist/index.js +12 -10
- package/dist/{math-BlG8Tjk-.d.cts → math-BScHxedi.d.cts} +97 -14
- package/dist/{math-BlG8Tjk-.d.ts → math-BScHxedi.d.ts} +97 -14
- package/dist/math-layout.d.cts +6 -6
- package/dist/math-layout.d.ts +6 -6
- package/dist/math.cjs +32 -6
- package/dist/math.d.cts +2 -2
- package/dist/math.d.ts +2 -2
- package/dist/math.js +29 -7
- package/dist/{mathml-B1oTCtzc.d.cts → mathml-Czqc1mdZ.d.cts} +3 -3
- package/dist/{mathml-B1oTCtzc.d.ts → mathml-Czqc1mdZ.d.ts} +3 -3
- package/dist/mathml.cjs +9 -2
- package/dist/mathml.d.cts +1 -1
- package/dist/mathml.d.ts +1 -1
- package/dist/mathml.js +9 -2
- package/dist/metadata.cjs +12 -1
- package/dist/metadata.d.cts +13 -0
- package/dist/metadata.d.ts +13 -0
- package/dist/metadata.js +12 -1
- package/dist/package-node-C4mh1hLY.d.ts +1989 -0
- package/dist/package-node-RQMDBzwd.d.cts +1989 -0
- package/dist/package-node.cjs +21 -21
- package/dist/package-node.d.cts +2 -2
- package/dist/package-node.d.ts +2 -2
- package/dist/package-node.js +14 -14
- package/dist/package.cjs +5 -3
- package/dist/package.d.cts +253 -8
- package/dist/package.d.ts +253 -8
- package/dist/package.js +5 -3
- package/dist/schema-io.cjs +21 -11
- package/dist/schema-io.d.cts +13 -9
- package/dist/schema-io.d.ts +13 -9
- package/dist/schema-io.js +21 -12
- package/dist/source-Bas5ol6f.d.cts +43 -0
- package/dist/source-Bas5ol6f.d.ts +43 -0
- package/dist/source.cjs +27 -0
- package/dist/source.d.cts +2 -0
- package/dist/source.d.ts +2 -0
- package/dist/source.js +25 -0
- package/dist/style-D06NwxAJ.d.cts +29 -0
- package/dist/style-D06NwxAJ.d.ts +29 -0
- package/dist/style.cjs +2 -0
- package/dist/style.d.cts +2 -24
- package/dist/style.d.ts +2 -24
- package/dist/style.js +2 -1
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +28 -29
- package/schemas/content-document.schema.json +6623 -1694
- package/schemas/{document-package.schema.json → document-tree.schema.json} +1826 -143
- package/dist/content-B7b_P3FC.d.cts +0 -2481
- package/dist/content-Dn7uoJFG.d.ts +0 -2481
- package/dist/package-node-CC-FE2zS.d.cts +0 -459
- package/dist/package-node-DxdparRh.d.ts +0 -459
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_a1 = require("./a1.cjs");
|
|
3
|
+
const require_border_weight = require("./border-weight.cjs");
|
|
3
4
|
require("./codec.cjs");
|
|
4
5
|
const require_color = require("./color.cjs");
|
|
6
|
+
const require_source = require("./source.cjs");
|
|
5
7
|
const require_construct = require("./construct.cjs");
|
|
6
8
|
const require_math = require("./math.cjs");
|
|
7
|
-
const require_geometry = require("./geometry.cjs");
|
|
8
9
|
const require_mathml = require("./mathml.cjs");
|
|
9
|
-
const
|
|
10
|
+
const require_geometry = require("./geometry.cjs");
|
|
10
11
|
const require_style = require("./style.cjs");
|
|
12
|
+
const require_metadata = require("./metadata.cjs");
|
|
11
13
|
const require_content = require("./content.cjs");
|
|
12
14
|
const require_definitions = require("./definitions.cjs");
|
|
13
15
|
const require_package_node = require("./package-node.cjs");
|
|
@@ -23,6 +25,7 @@ require("./math-layout.cjs");
|
|
|
23
25
|
exports.AlignmentSchema = require_style.AlignmentSchema;
|
|
24
26
|
exports.AnchorDescriptorSchema = require_construct.AnchorDescriptorSchema;
|
|
25
27
|
exports.AnchorTypeSchema = require_construct.AnchorTypeSchema;
|
|
28
|
+
exports.BORDER_WIDTH_PT = require_border_weight.BORDER_WIDTH_PT;
|
|
26
29
|
exports.BoxSchema = require_geometry.BoxSchema;
|
|
27
30
|
exports.COLOR_BLACK = require_color.COLOR_BLACK;
|
|
28
31
|
exports.CONTENT_DEFS = require_content_json_schema_defs.CONTENT_DEFS;
|
|
@@ -30,9 +33,12 @@ exports.CONTENT_DOCUMENT_URI = require_content_json_schema_defs.CONTENT_DOCUMENT
|
|
|
30
33
|
exports.ColorSchema = require_color.ColorSchema;
|
|
31
34
|
exports.ConstructDescriptorSchema = require_construct.ConstructDescriptorSchema;
|
|
32
35
|
exports.ConstructMarkerImbalanceError = require_decompose.ConstructMarkerImbalanceError;
|
|
36
|
+
exports.ContentBitmapFillSchema = require_content.ContentBitmapFillSchema;
|
|
33
37
|
exports.ContentBlockSchema = require_content.ContentBlockSchema;
|
|
34
38
|
exports.ContentBorderSchema = require_content.ContentBorderSchema;
|
|
35
39
|
exports.ContentCellBordersSchema = require_content.ContentCellBordersSchema;
|
|
40
|
+
exports.ContentCellFillSchema = require_content.ContentCellFillSchema;
|
|
41
|
+
exports.ContentCellPatternTypeSchema = require_content.ContentCellPatternTypeSchema;
|
|
36
42
|
exports.ContentCellValueSchema = require_content.ContentCellValueSchema;
|
|
37
43
|
exports.ContentConstructEndSchema = require_content.ContentConstructEndSchema;
|
|
38
44
|
exports.ContentConstructStartSchema = require_content.ContentConstructStartSchema;
|
|
@@ -43,10 +49,21 @@ exports.ContentDocumentSchema = require_content.ContentDocumentSchema;
|
|
|
43
49
|
exports.ContentDrawPageSchema = require_content.ContentDrawPageSchema;
|
|
44
50
|
exports.ContentEmbeddedObjectBlockSchema = require_content.ContentEmbeddedObjectBlockSchema;
|
|
45
51
|
exports.ContentEmbeddedObjectSchema = require_content.ContentEmbeddedObjectSchema;
|
|
52
|
+
exports.ContentFillPatternSchema = require_content.ContentFillPatternSchema;
|
|
53
|
+
exports.ContentFloatAlignSchema = require_content.ContentFloatAlignSchema;
|
|
54
|
+
exports.ContentFloatAxisSchema = require_content.ContentFloatAxisSchema;
|
|
55
|
+
exports.ContentFloatOriginSchema = require_content.ContentFloatOriginSchema;
|
|
56
|
+
exports.ContentFloatPositionSchema = require_content.ContentFloatPositionSchema;
|
|
46
57
|
exports.ContentFormulaSchema = require_content.ContentFormulaSchema;
|
|
58
|
+
exports.ContentGradientFillSchema = require_content.ContentGradientFillSchema;
|
|
59
|
+
exports.ContentGradientStyleSchema = require_content.ContentGradientStyleSchema;
|
|
60
|
+
exports.ContentHatchFillSchema = require_content.ContentHatchFillSchema;
|
|
61
|
+
exports.ContentHatchStyleSchema = require_content.ContentHatchStyleSchema;
|
|
47
62
|
exports.ContentImageBlockSchema = require_content.ContentImageBlockSchema;
|
|
48
63
|
exports.ContentListMembershipSchema = require_content.ContentListMembershipSchema;
|
|
49
64
|
exports.ContentPageBreakSchema = require_content.ContentPageBreakSchema;
|
|
65
|
+
exports.ContentPageFurnitureSchema = require_content.ContentPageFurnitureSchema;
|
|
66
|
+
exports.ContentParagraphBordersSchema = require_content.ContentParagraphBordersSchema;
|
|
50
67
|
exports.ContentParagraphSchema = require_content.ContentParagraphSchema;
|
|
51
68
|
exports.ContentPathPointSchema = require_content.ContentPathPointSchema;
|
|
52
69
|
exports.ContentPathSegmentSchema = require_content.ContentPathSegmentSchema;
|
|
@@ -56,13 +73,20 @@ exports.ContentShapeSchema = require_content.ContentShapeSchema;
|
|
|
56
73
|
exports.ContentSheetCellCommentSchema = require_content.ContentSheetCellCommentSchema;
|
|
57
74
|
exports.ContentSheetCellSchema = require_content.ContentSheetCellSchema;
|
|
58
75
|
exports.ContentSheetColumnSchema = require_content.ContentSheetColumnSchema;
|
|
76
|
+
exports.ContentSheetConditionalFormatSchema = require_content.ContentSheetConditionalFormatSchema;
|
|
77
|
+
exports.ContentSheetConditionalFormatStyleSchema = require_content.ContentSheetConditionalFormatStyleSchema;
|
|
78
|
+
exports.ContentSheetConditionalFormatValueSchema = require_content.ContentSheetConditionalFormatValueSchema;
|
|
79
|
+
exports.ContentSheetDataValidationSchema = require_content.ContentSheetDataValidationSchema;
|
|
80
|
+
exports.ContentSheetDataValidationTypeSchema = require_content.ContentSheetDataValidationTypeSchema;
|
|
59
81
|
exports.ContentSheetImageSchema = require_content.ContentSheetImageSchema;
|
|
60
82
|
exports.ContentSheetPrintRangeSchema = require_content.ContentSheetPrintRangeSchema;
|
|
61
83
|
exports.ContentSheetPrintSettingsSchema = require_content.ContentSheetPrintSettingsSchema;
|
|
84
|
+
exports.ContentSheetRangeSchema = require_content.ContentSheetRangeSchema;
|
|
62
85
|
exports.ContentSheetRepeatRangeSchema = require_content.ContentSheetRepeatRangeSchema;
|
|
63
86
|
exports.ContentSheetRowSchema = require_content.ContentSheetRowSchema;
|
|
64
87
|
exports.ContentSheetSchema = require_content.ContentSheetSchema;
|
|
65
88
|
exports.ContentSlideSchema = require_content.ContentSlideSchema;
|
|
89
|
+
exports.ContentStrokeDashSchema = require_content.ContentStrokeDashSchema;
|
|
66
90
|
exports.ContentStrokeSchema = require_content.ContentStrokeSchema;
|
|
67
91
|
exports.ContentStrokeStyleSchema = require_content.ContentStrokeStyleSchema;
|
|
68
92
|
exports.ContentSubpathSchema = require_content.ContentSubpathSchema;
|
|
@@ -77,14 +101,18 @@ exports.DefinitionsTableSchema = require_definitions.DefinitionsTableSchema;
|
|
|
77
101
|
exports.DimensionVectorSchema = require_math.DimensionVectorSchema;
|
|
78
102
|
exports.DivisionDescriptorSchema = require_construct.DivisionDescriptorSchema;
|
|
79
103
|
exports.DivisionSourceSchema = require_construct.DivisionSourceSchema;
|
|
80
|
-
exports.
|
|
104
|
+
exports.DocumentPackageRenamedError = require_schema_io.DocumentPackageRenamedError;
|
|
105
|
+
exports.DocumentTreeSchema = require_package.DocumentTreeSchema;
|
|
81
106
|
exports.DrawPageDescriptorSchema = require_package_node.DrawPageDescriptorSchema;
|
|
82
107
|
exports.DrawPageGroupSchema = require_package_node.DrawPageGroupSchema;
|
|
83
108
|
exports.EMBEDDED_OBJECT_KINDS = require_content_json_schema_defs.EMBEDDED_OBJECT_KINDS;
|
|
109
|
+
exports.EvaluationValueSchema = require_math.EvaluationValueSchema;
|
|
84
110
|
exports.ExactRationalSchema = require_math.ExactRationalSchema;
|
|
85
111
|
exports.FieldDescriptorSchema = require_construct.FieldDescriptorSchema;
|
|
112
|
+
exports.FormulaBindingsSchema = require_math.FormulaBindingsSchema;
|
|
86
113
|
exports.HeadingGroupSchema = require_package_node.HeadingGroupSchema;
|
|
87
114
|
exports.HeadingParagraphSchema = require_package_node.HeadingParagraphSchema;
|
|
115
|
+
exports.IntervalSchema = require_math.IntervalSchema;
|
|
88
116
|
exports.LayoutFontSchema = require_style.LayoutFontSchema;
|
|
89
117
|
exports.LayoutFrameSchema = require_geometry.LayoutFrameSchema;
|
|
90
118
|
exports.LayoutMetadataSchema = require_metadata.LayoutMetadataSchema;
|
|
@@ -120,13 +148,11 @@ exports.MathUnitSchema = require_math.MathUnitSchema;
|
|
|
120
148
|
exports.MathUnparsedSchema = require_math.MathUnparsedSchema;
|
|
121
149
|
exports.PAGE_SIZE_A4 = require_geometry.PAGE_SIZE_A4;
|
|
122
150
|
exports.PAGE_SIZE_LETTER = require_geometry.PAGE_SIZE_LETTER;
|
|
123
|
-
exports.PackageBlockLeafSchema = require_package_node.PackageBlockLeafSchema;
|
|
124
|
-
exports.PackageGroupSchema = require_package_node.PackageGroupSchema;
|
|
125
|
-
exports.PackageLeafSchema = require_package_node.PackageLeafSchema;
|
|
126
|
-
exports.PackageNodeSchema = require_package_node.PackageNodeSchema;
|
|
127
151
|
exports.PageSizeSchema = require_geometry.PageSizeSchema;
|
|
128
152
|
exports.ProvenanceChangeSchema = require_construct.ProvenanceChangeSchema;
|
|
129
153
|
exports.ProvenanceDescriptorSchema = require_construct.ProvenanceDescriptorSchema;
|
|
154
|
+
exports.QuantitySchema = require_math.QuantitySchema;
|
|
155
|
+
exports.RunConstructExtentSchema = require_content.RunConstructExtentSchema;
|
|
130
156
|
exports.SCHEMA_FILE_NAMES = require_schema_io.SCHEMA_FILE_NAMES;
|
|
131
157
|
exports.SI_BASE_DIMENSIONS = require_math.SI_BASE_DIMENSIONS;
|
|
132
158
|
exports.SLIDE_SIZE_STANDARD = require_geometry.SLIDE_SIZE_STANDARD;
|
|
@@ -140,17 +166,26 @@ exports.ShapeDescriptorSchema = require_package_node.ShapeDescriptorSchema;
|
|
|
140
166
|
exports.ShapeGroupSchema = require_package_node.ShapeGroupSchema;
|
|
141
167
|
exports.SheetDescriptorSchema = require_package_node.SheetDescriptorSchema;
|
|
142
168
|
exports.SheetGroupSchema = require_package_node.SheetGroupSchema;
|
|
169
|
+
exports.SheetRuleOperatorSchema = require_content.SheetRuleOperatorSchema;
|
|
143
170
|
exports.SlideDescriptorSchema = require_package_node.SlideDescriptorSchema;
|
|
144
171
|
exports.SlideGroupSchema = require_package_node.SlideGroupSchema;
|
|
172
|
+
exports.SourceFormatSchema = require_source.SourceFormatSchema;
|
|
173
|
+
exports.SourceResidueSchema = require_source.SourceResidueSchema;
|
|
145
174
|
exports.StyleEntrySchema = require_definitions.StyleEntrySchema;
|
|
146
175
|
exports.StyleParagraphPropertiesSchema = require_definitions.StyleParagraphPropertiesSchema;
|
|
147
176
|
exports.StyleRunPropertiesSchema = require_definitions.StyleRunPropertiesSchema;
|
|
148
177
|
exports.StylesTableSchema = require_definitions.StylesTableSchema;
|
|
149
178
|
exports.SymbolTableSchema = require_math.SymbolTableSchema;
|
|
179
|
+
exports.TextDirectionSchema = require_style.TextDirectionSchema;
|
|
180
|
+
exports.TreeBlockLeafSchema = require_package_node.TreeBlockLeafSchema;
|
|
181
|
+
exports.TreeGroupSchema = require_package_node.TreeGroupSchema;
|
|
182
|
+
exports.TreeLeafSchema = require_package_node.TreeLeafSchema;
|
|
183
|
+
exports.TreeNodeSchema = require_package_node.TreeNodeSchema;
|
|
150
184
|
exports.UnrecognizedDocumentSchemaError = require_schema_io.UnrecognizedDocumentSchemaError;
|
|
151
185
|
exports.applyParagraphStyleProperties = require_definitions.applyParagraphStyleProperties;
|
|
152
186
|
exports.applyRunStyleProperties = require_definitions.applyRunStyleProperties;
|
|
153
|
-
exports.
|
|
187
|
+
exports.assembleTree = require_factor_styles.assembleTree;
|
|
188
|
+
exports.borderWeightForWidthPt = require_border_weight.borderWeightForWidthPt;
|
|
154
189
|
exports.cellReference = require_a1.cellReference;
|
|
155
190
|
exports.clampHeadingLevel = require_content.clampHeadingLevel;
|
|
156
191
|
exports.colorToRgbHex = require_color.colorToRgbHex;
|
|
@@ -158,13 +193,15 @@ exports.columnIndexToLetters = require_a1.columnIndexToLetters;
|
|
|
158
193
|
exports.columnLettersToIndex = require_a1.columnLettersToIndex;
|
|
159
194
|
exports.contentDocumentSharedFields = require_content.contentDocumentSharedFields;
|
|
160
195
|
exports.contentDocumentWithSchema = require_schema_io.contentDocumentWithSchema;
|
|
196
|
+
exports.dashedBorderWeightForWidthPt = require_border_weight.dashedBorderWeightForWidthPt;
|
|
161
197
|
exports.decompose = require_decompose.decompose;
|
|
162
198
|
exports.documentFromJson = require_schema_io.documentFromJson;
|
|
163
|
-
exports.documentPackageWithSchema = require_schema_io.documentPackageWithSchema;
|
|
164
199
|
exports.documentSchemaKindOf = require_schema_io.documentSchemaKindOf;
|
|
200
|
+
exports.documentTreeWithSchema = require_schema_io.documentTreeWithSchema;
|
|
165
201
|
exports.factorStyles = require_factor_styles.factorStyles;
|
|
166
202
|
exports.findConstructMarkerImbalance = require_content.findConstructMarkerImbalance;
|
|
167
|
-
exports.
|
|
203
|
+
exports.findRunConstructFault = require_content.findRunConstructFault;
|
|
204
|
+
exports.flattenTree = require_flatten.flattenTree;
|
|
168
205
|
exports.isContentBlock = require_content.isContentBlock;
|
|
169
206
|
exports.isContentConstructEnd = require_content.isContentConstructEnd;
|
|
170
207
|
exports.isContentConstructStart = require_content.isContentConstructStart;
|
|
@@ -173,20 +210,23 @@ exports.isHeadingGroupNode = require_package_node.isHeadingGroupNode;
|
|
|
173
210
|
exports.isListGroupNode = require_package_node.isListGroupNode;
|
|
174
211
|
exports.isMathExpression = require_math.isMathExpression;
|
|
175
212
|
exports.isMathMlNode = require_mathml.isMathMlNode;
|
|
176
|
-
exports.
|
|
177
|
-
exports.isPackageGroup = require_package_node.isPackageGroup;
|
|
178
|
-
exports.isPackageLeaf = require_package_node.isPackageLeaf;
|
|
179
|
-
exports.isPackageNode = require_package_node.isPackageNode;
|
|
213
|
+
exports.isRunConstructExtent = require_content.isRunConstructExtent;
|
|
180
214
|
exports.isSectionConstructGroupNode = require_package_node.isSectionConstructGroupNode;
|
|
181
215
|
exports.isSectionGroupNode = require_package_node.isSectionGroupNode;
|
|
182
216
|
exports.isShapeConstructGroupNode = require_package_node.isShapeConstructGroupNode;
|
|
183
217
|
exports.isShapeGroupNode = require_package_node.isShapeGroupNode;
|
|
184
218
|
exports.isSheetGroupNode = require_package_node.isSheetGroupNode;
|
|
185
219
|
exports.isSlideGroupNode = require_package_node.isSlideGroupNode;
|
|
220
|
+
exports.isTreeBlockLeaf = require_package_node.isTreeBlockLeaf;
|
|
221
|
+
exports.isTreeGroup = require_package_node.isTreeGroup;
|
|
222
|
+
exports.isTreeLeaf = require_package_node.isTreeLeaf;
|
|
223
|
+
exports.isTreeNode = require_package_node.isTreeNode;
|
|
186
224
|
exports.overlayStyleEntries = require_definitions.overlayStyleEntries;
|
|
187
225
|
exports.parseCellReference = require_a1.parseCellReference;
|
|
188
226
|
exports.parseRangeReference = require_a1.parseRangeReference;
|
|
189
227
|
exports.rangeReference = require_a1.rangeReference;
|
|
228
|
+
exports.resolveCellFillColor = require_content.resolveCellFillColor;
|
|
190
229
|
exports.resolveStyleChain = require_definitions.resolveStyleChain;
|
|
191
230
|
exports.rgbHexToColor = require_color.rgbHexToColor;
|
|
192
231
|
exports.schemaUriFor = require_schema_io.schemaUriFor;
|
|
232
|
+
exports.unrecognizedFillKind = require_content.unrecognizedFillKind;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.cjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BORDER_WIDTH_PT, BorderWeight, borderWeightForWidthPt, dashedBorderWeightForWidthPt } from "./border-weight.cjs";
|
|
3
|
+
import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d as MathMlNode, f as MathMlNodeSchema, g as MathMlTextSchema, h as MathMlText, i as MathMlCdataSchema, l as MathMlElement, m as MathMlPiSchema, n as MathMlAttributeSchema, o as MathMlCommentSchema, p as MathMlPi, r as MathMlCdata, s as MathMlDeclaration, t as MathMlAttribute, u as MathMlElementSchema } from "./mathml-Czqc1mdZ.cjs";
|
|
4
|
+
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-BScHxedi.cjs";
|
|
4
5
|
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.cjs";
|
|
5
6
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.cjs";
|
|
6
|
-
import {
|
|
7
|
+
import { i as SourceResidueSchema, n as SourceFormatSchema, r as SourceResidue, t as SourceFormat } from "./source-Bas5ol6f.cjs";
|
|
8
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.cjs";
|
|
9
|
+
import { $ as ContentPageBreak, $t as ContentStrokeStyle, A as ContentFillPatternSchema, At as ContentSheetDataValidation, B as ContentFormulaSchema, Bt as ContentSheetRange, C as ContentDrawPageSchema, Cn as isContentBlock, Ct as ContentSheetColumnSchema, D as ContentEmbeddedObjectKind, Dn as resolveCellFillColor, Dt as ContentSheetConditionalFormatStyleSchema, E as ContentEmbeddedObjectBlockSchema, En as isRunConstructExtent, Et as ContentSheetConditionalFormatStyle, F as ContentFloatOrigin, Ft as ContentSheetImageSchema, G as ContentHatchFill, Gt as ContentSheetRowSchema, H as ContentGradientFillSchema, Ht as ContentSheetRepeatRange, I as ContentFloatOriginSchema, It as ContentSheetPrintRange, J as ContentHatchStyleSchema, Jt as ContentSlideSchema, K as ContentHatchFillSchema, Kt as ContentSheetSchema, L as ContentFloatPosition, Lt as ContentSheetPrintRangeSchema, M as ContentFloatAlignSchema, Mt as ContentSheetDataValidationType, N as ContentFloatAxis, Nt as ContentSheetDataValidationTypeSchema, O as ContentEmbeddedObjectSchema, On as unrecognizedFillKind, Ot as ContentSheetConditionalFormatValue, P as ContentFloatAxisSchema, Pt as ContentSheetImage, Q as ContentListMembershipSchema, Qt as ContentStrokeSchema, R as ContentFloatPositionSchema, Rt as ContentSheetPrintSettings, S as ContentDrawPage, Sn as findRunConstructFault, St as ContentSheetColumn, T as ContentEmbeddedObjectBlock, Tn as isContentConstructStart, Tt as ContentSheetConditionalFormatSchema, U as ContentGradientStyle, Ut as ContentSheetRepeatRangeSchema, V as ContentGradientFill, Vt as ContentSheetRangeSchema, W as ContentGradientStyleSchema, Wt as ContentSheetRow, X as ContentImageBlockSchema, Xt as ContentStrokeDash, Y as ContentImageBlock, Yt as ContentStroke, Z as ContentListMembership, Zt as ContentStrokeDashSchema, _ as ContentConstructEndSchema, _n as SheetRuleOperator, _t as ContentSheet, a as ContentBlockSchema, an as ContentTableCellSchema, at as ContentParagraphBordersSchema, b as ContentDocument, bn as contentDocumentSharedFields, bt as ContentSheetCellCommentSchema, c as ContentCellBorders, cn as ContentTableSchema, ct as ContentPathPointSchema, d as ContentCellFillSchema, dn as DecimalString, dt as ContentRun, en as ContentStrokeStyleSchema, et as ContentPageBreakSchema, f as ContentCellPatternType, fn as DecimalStringSchema, ft as ContentRunSchema, g as ContentConstructEnd, gn as RunConstructFault, gt as ContentShapeSchema, h as ContentCellValueSchema, hn as RunConstructExtentSchema, ht as ContentShape, i as ContentBlock, in as ContentTableCell, it as ContentParagraphBorders, j as ContentFloatAlign, jt as ContentSheetDataValidationSchema, k as ContentFillPattern, kt as ContentSheetConditionalFormatValueSchema, l as ContentCellBordersSchema, ln as ContentVector, lt as ContentPathSegment, m as ContentCellValue, mn as RunConstructExtent, mt as ContentSectionSchema, n as ContentBitmapFill, nn as ContentSubpathSchema, nt as ContentPageFurnitureSchema, o as ContentBorder, on as ContentTableRow, ot as ContentParagraphSchema, p as ContentCellPatternTypeSchema, pn as FusedNode, pt as ContentSection, q as ContentHatchStyle, qt as ContentSlide, r as ContentBitmapFillSchema, rn as ContentTable, rt as ContentParagraph, s as ContentBorderSchema, sn as ContentTableRowSchema, st as ContentPathPoint, t as ConstructMarkerImbalance, tn as ContentSubpath, tt as ContentPageFurniture, u as ContentCellFill, un as ContentVectorSchema, ut as ContentPathSegmentSchema, v as ContentConstructStart, vn as SheetRuleOperatorSchema, vt as ContentSheetCell, w as ContentEmbeddedObject, wn as isContentConstructEnd, wt as ContentSheetConditionalFormat, x as ContentDocumentSchema, xn as findConstructMarkerImbalance, xt as ContentSheetCellSchema, y as ContentConstructStartSchema, yn as clampHeadingLevel, yt as ContentSheetCellComment, z as ContentFormula, zt as ContentSheetPrintSettingsSchema } from "./content-BzkhrS6P.cjs";
|
|
7
10
|
import { ContentCodec } from "./codec.cjs";
|
|
8
|
-
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-
|
|
11
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-GVdTKrE7.cjs";
|
|
9
12
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.cjs";
|
|
10
|
-
import { $ as
|
|
11
|
-
import { ConstructMarkerImbalanceError,
|
|
13
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-RQMDBzwd.cjs";
|
|
14
|
+
import { ConstructMarkerImbalanceError, TreeChildren, decompose } from "./decompose.cjs";
|
|
12
15
|
import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.cjs";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
+
import { DocumentTree, DocumentTreeSchema } from "./package.cjs";
|
|
17
|
+
import { assembleTree, factorStyles } from "./factor-styles.cjs";
|
|
18
|
+
import { flattenTree } from "./flatten.cjs";
|
|
16
19
|
import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.cjs";
|
|
17
|
-
import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.cjs";
|
|
18
20
|
import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.cjs";
|
|
19
|
-
import { ContentDocumentJson, DocumentJsonResult,
|
|
21
|
+
import { ContentDocumentJson, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTreeJson, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, schemaUriFor } from "./schema-io.cjs";
|
|
20
22
|
import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.cjs";
|
|
21
23
|
import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.cjs";
|
|
22
|
-
export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult,
|
|
24
|
+
export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, BORDER_WIDTH_PT, BorderWeight, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTree, DocumentTreeJson, DocumentTreeSchema, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, EvaluationValue, EvaluationValueSchema, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FormulaBindings, FormulaBindingsSchema, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, Interval, IntervalSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, Point, PositionedFormula, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, Quantity, QuantitySchema, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SheetRuleOperator, SheetRuleOperatorSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, SourceFormat, SourceFormatSchema, SourceResidue, SourceResidueSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextDirection, TextDirectionSchema, TextMeasurer, TreeBlockLeaf, TreeBlockLeafSchema, type TreeChildren, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, borderWeightForWidthPt, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, dashedBorderWeightForWidthPt, decompose, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, factorStyles, findConstructMarkerImbalance, findRunConstructFault, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isRunConstructExtent, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveCellFillColor, resolveStyleChain, rgbHexToColor, schemaUriFor, unrecognizedFillKind };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BORDER_WIDTH_PT, BorderWeight, borderWeightForWidthPt, dashedBorderWeightForWidthPt } from "./border-weight.js";
|
|
3
|
+
import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d as MathMlNode, f as MathMlNodeSchema, g as MathMlTextSchema, h as MathMlText, i as MathMlCdataSchema, l as MathMlElement, m as MathMlPiSchema, n as MathMlAttributeSchema, o as MathMlCommentSchema, p as MathMlPi, r as MathMlCdata, s as MathMlDeclaration, t as MathMlAttribute, u as MathMlElementSchema } from "./mathml-Czqc1mdZ.js";
|
|
4
|
+
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-BScHxedi.js";
|
|
4
5
|
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.js";
|
|
5
6
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.js";
|
|
6
|
-
import {
|
|
7
|
+
import { i as SourceResidueSchema, n as SourceFormatSchema, r as SourceResidue, t as SourceFormat } from "./source-Bas5ol6f.js";
|
|
8
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.js";
|
|
9
|
+
import { $ as ContentPageBreak, $t as ContentStrokeStyle, A as ContentFillPatternSchema, At as ContentSheetDataValidation, B as ContentFormulaSchema, Bt as ContentSheetRange, C as ContentDrawPageSchema, Cn as isContentBlock, Ct as ContentSheetColumnSchema, D as ContentEmbeddedObjectKind, Dn as resolveCellFillColor, Dt as ContentSheetConditionalFormatStyleSchema, E as ContentEmbeddedObjectBlockSchema, En as isRunConstructExtent, Et as ContentSheetConditionalFormatStyle, F as ContentFloatOrigin, Ft as ContentSheetImageSchema, G as ContentHatchFill, Gt as ContentSheetRowSchema, H as ContentGradientFillSchema, Ht as ContentSheetRepeatRange, I as ContentFloatOriginSchema, It as ContentSheetPrintRange, J as ContentHatchStyleSchema, Jt as ContentSlideSchema, K as ContentHatchFillSchema, Kt as ContentSheetSchema, L as ContentFloatPosition, Lt as ContentSheetPrintRangeSchema, M as ContentFloatAlignSchema, Mt as ContentSheetDataValidationType, N as ContentFloatAxis, Nt as ContentSheetDataValidationTypeSchema, O as ContentEmbeddedObjectSchema, On as unrecognizedFillKind, Ot as ContentSheetConditionalFormatValue, P as ContentFloatAxisSchema, Pt as ContentSheetImage, Q as ContentListMembershipSchema, Qt as ContentStrokeSchema, R as ContentFloatPositionSchema, Rt as ContentSheetPrintSettings, S as ContentDrawPage, Sn as findRunConstructFault, St as ContentSheetColumn, T as ContentEmbeddedObjectBlock, Tn as isContentConstructStart, Tt as ContentSheetConditionalFormatSchema, U as ContentGradientStyle, Ut as ContentSheetRepeatRangeSchema, V as ContentGradientFill, Vt as ContentSheetRangeSchema, W as ContentGradientStyleSchema, Wt as ContentSheetRow, X as ContentImageBlockSchema, Xt as ContentStrokeDash, Y as ContentImageBlock, Yt as ContentStroke, Z as ContentListMembership, Zt as ContentStrokeDashSchema, _ as ContentConstructEndSchema, _n as SheetRuleOperator, _t as ContentSheet, a as ContentBlockSchema, an as ContentTableCellSchema, at as ContentParagraphBordersSchema, b as ContentDocument, bn as contentDocumentSharedFields, bt as ContentSheetCellCommentSchema, c as ContentCellBorders, cn as ContentTableSchema, ct as ContentPathPointSchema, d as ContentCellFillSchema, dn as DecimalString, dt as ContentRun, en as ContentStrokeStyleSchema, et as ContentPageBreakSchema, f as ContentCellPatternType, fn as DecimalStringSchema, ft as ContentRunSchema, g as ContentConstructEnd, gn as RunConstructFault, gt as ContentShapeSchema, h as ContentCellValueSchema, hn as RunConstructExtentSchema, ht as ContentShape, i as ContentBlock, in as ContentTableCell, it as ContentParagraphBorders, j as ContentFloatAlign, jt as ContentSheetDataValidationSchema, k as ContentFillPattern, kt as ContentSheetConditionalFormatValueSchema, l as ContentCellBordersSchema, ln as ContentVector, lt as ContentPathSegment, m as ContentCellValue, mn as RunConstructExtent, mt as ContentSectionSchema, n as ContentBitmapFill, nn as ContentSubpathSchema, nt as ContentPageFurnitureSchema, o as ContentBorder, on as ContentTableRow, ot as ContentParagraphSchema, p as ContentCellPatternTypeSchema, pn as FusedNode, pt as ContentSection, q as ContentHatchStyle, qt as ContentSlide, r as ContentBitmapFillSchema, rn as ContentTable, rt as ContentParagraph, s as ContentBorderSchema, sn as ContentTableRowSchema, st as ContentPathPoint, t as ConstructMarkerImbalance, tn as ContentSubpath, tt as ContentPageFurniture, u as ContentCellFill, un as ContentVectorSchema, ut as ContentPathSegmentSchema, v as ContentConstructStart, vn as SheetRuleOperatorSchema, vt as ContentSheetCell, w as ContentEmbeddedObject, wn as isContentConstructEnd, wt as ContentSheetConditionalFormat, x as ContentDocumentSchema, xn as findConstructMarkerImbalance, xt as ContentSheetCellSchema, y as ContentConstructStartSchema, yn as clampHeadingLevel, yt as ContentSheetCellComment, z as ContentFormula, zt as ContentSheetPrintSettingsSchema } from "./content-BCOxY0Eb.js";
|
|
7
10
|
import { ContentCodec } from "./codec.js";
|
|
8
|
-
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-
|
|
11
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-GVdTKrE7.js";
|
|
9
12
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
|
|
10
|
-
import { $ as
|
|
11
|
-
import { ConstructMarkerImbalanceError,
|
|
13
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-C4mh1hLY.js";
|
|
14
|
+
import { ConstructMarkerImbalanceError, TreeChildren, decompose } from "./decompose.js";
|
|
12
15
|
import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
+
import { DocumentTree, DocumentTreeSchema } from "./package.js";
|
|
17
|
+
import { assembleTree, factorStyles } from "./factor-styles.js";
|
|
18
|
+
import { flattenTree } from "./flatten.js";
|
|
16
19
|
import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.js";
|
|
17
|
-
import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.js";
|
|
18
20
|
import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.js";
|
|
19
|
-
import { ContentDocumentJson, DocumentJsonResult,
|
|
21
|
+
import { ContentDocumentJson, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTreeJson, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, schemaUriFor } from "./schema-io.js";
|
|
20
22
|
import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.js";
|
|
21
23
|
import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.js";
|
|
22
|
-
export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult,
|
|
24
|
+
export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, BORDER_WIDTH_PT, BorderWeight, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTree, DocumentTreeJson, DocumentTreeSchema, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, EvaluationValue, EvaluationValueSchema, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FormulaBindings, FormulaBindingsSchema, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, Interval, IntervalSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, Point, PositionedFormula, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, Quantity, QuantitySchema, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SheetRuleOperator, SheetRuleOperatorSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, SourceFormat, SourceFormatSchema, SourceResidue, SourceResidueSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextDirection, TextDirectionSchema, TextMeasurer, TreeBlockLeaf, TreeBlockLeafSchema, type TreeChildren, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, borderWeightForWidthPt, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, dashedBorderWeightForWidthPt, decompose, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, factorStyles, findConstructMarkerImbalance, findRunConstructFault, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isRunConstructExtent, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveCellFillColor, resolveStyleChain, rgbHexToColor, schemaUriFor, unrecognizedFillKind };
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.js";
|
|
2
|
+
import { BORDER_WIDTH_PT, borderWeightForWidthPt, dashedBorderWeightForWidthPt } from "./border-weight.js";
|
|
2
3
|
import "./codec.js";
|
|
3
4
|
import { COLOR_BLACK, ColorSchema, colorToRgbHex, rgbHexToColor } from "./color.js";
|
|
5
|
+
import { SourceFormatSchema, SourceResidueSchema } from "./source.js";
|
|
4
6
|
import { AnchorDescriptorSchema, AnchorTypeSchema, ConstructDescriptorSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, DivisionDescriptorSchema, DivisionSourceSchema, FieldDescriptorSchema, LinkDescriptorSchema, LinkTargetSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema } from "./construct.js";
|
|
5
|
-
import { DimensionVectorSchema, ExactRationalSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, SI_BASE_DIMENSIONS, SymbolTableSchema, isMathExpression } from "./math.js";
|
|
6
|
-
import { BoxSchema, LayoutFrameSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "./geometry.js";
|
|
7
|
+
import { DimensionVectorSchema, EvaluationValueSchema, ExactRationalSchema, FormulaBindingsSchema, IntervalSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, QuantitySchema, SI_BASE_DIMENSIONS, SymbolTableSchema, isMathExpression } from "./math.js";
|
|
7
8
|
import { MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, isMathMlNode } from "./mathml.js";
|
|
9
|
+
import { BoxSchema, LayoutFrameSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "./geometry.js";
|
|
10
|
+
import { AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFontSchema, TextDirectionSchema } from "./style.js";
|
|
8
11
|
import { LayoutMetadataSchema } from "./metadata.js";
|
|
9
|
-
import {
|
|
10
|
-
import { ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart } from "./content.js";
|
|
12
|
+
import { ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentPageFurnitureSchema, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidationSchema, ContentSheetDataValidationTypeSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRangeSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind } from "./content.js";
|
|
11
13
|
import { DefinitionEntrySchema, DefinitionsTableSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
|
|
12
|
-
import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema,
|
|
13
|
-
import {
|
|
14
|
-
import { LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson,
|
|
14
|
+
import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, TreeBlockLeafSchema, TreeGroupSchema, TreeLeafSchema, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode } from "./package-node.js";
|
|
15
|
+
import { DocumentTreeSchema } from "./package.js";
|
|
16
|
+
import { DocumentPackageRenamedError, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, schemaUriFor } from "./schema-io.js";
|
|
15
17
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
|
|
16
18
|
import { ConstructMarkerImbalanceError, decompose } from "./decompose.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
+
import { flattenTree } from "./flatten.js";
|
|
20
|
+
import { assembleTree, factorStyles } from "./factor-styles.js";
|
|
19
21
|
import "./font-port.js";
|
|
20
22
|
import "./text-layout.js";
|
|
21
23
|
import "./math-layout.js";
|
|
22
|
-
export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DivisionDescriptorSchema, DivisionSourceSchema,
|
|
24
|
+
export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BORDER_WIDTH_PT, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentPageFurnitureSchema, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidationSchema, ContentSheetDataValidationTypeSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRangeSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DivisionDescriptorSchema, DivisionSourceSchema, DocumentPackageRenamedError, DocumentTreeSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, EvaluationValueSchema, ExactRationalSchema, FieldDescriptorSchema, FormulaBindingsSchema, HeadingGroupSchema, HeadingParagraphSchema, IntervalSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, ListParagraphSchema, MAX_SAFE_INTEGER, MarginsSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, QuantitySchema, RunConstructExtentSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SheetRuleOperatorSchema, SlideDescriptorSchema, SlideGroupSchema, SourceFormatSchema, SourceResidueSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, SymbolTableSchema, TextDirectionSchema, TreeBlockLeafSchema, TreeGroupSchema, TreeLeafSchema, TreeNodeSchema, UnrecognizedDocumentSchemaError, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, borderWeightForWidthPt, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, dashedBorderWeightForWidthPt, decompose, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, factorStyles, findConstructMarkerImbalance, findRunConstructFault, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isRunConstructExtent, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveCellFillColor, resolveStyleChain, rgbHexToColor, schemaUriFor, unrecognizedFillKind };
|