document-content-model 7.7.0 → 7.9.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/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{construct-C9cYkjnd.d.cts → construct-C4XiF8OW.d.cts} +6 -6
- package/dist/{construct-C9cYkjnd.d.ts → construct-C4XiF8OW.d.ts} +6 -6
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-BIM8bWWt.d.ts → content-C1hJ6olW.d.ts} +1753 -47
- package/dist/{content-DpsxyPMw.d.cts → content-DN5CqH6Y.d.cts} +1753 -47
- package/dist/content-json-schema-defs.cjs +128 -15
- package/dist/content-json-schema-defs.js +128 -15
- package/dist/content.cjs +71 -17
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +68 -18
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{package-node-B8LBrCCD.d.ts → package-node-B9aFWtrZ.d.ts} +311 -14
- package/dist/{package-node-CENJl5PH.d.cts → package-node-DktLHAKG.d.cts} +311 -14
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.d.cts +33 -6
- package/dist/package.d.ts +33 -6
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
- package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/content-document.schema.json +1147 -13
- package/schemas/document-tree.schema.json +214 -3
package/dist/content.cjs
CHANGED
|
@@ -9,6 +9,35 @@ const require_style = require("./style.cjs");
|
|
|
9
9
|
const require_metadata = require("./metadata.cjs");
|
|
10
10
|
let zod = require("zod");
|
|
11
11
|
//#region src/content.ts
|
|
12
|
+
const ContentOriginSchema = zod.z.enum([
|
|
13
|
+
"chart",
|
|
14
|
+
"diagram",
|
|
15
|
+
"table",
|
|
16
|
+
"image",
|
|
17
|
+
"notes",
|
|
18
|
+
"body"
|
|
19
|
+
]);
|
|
20
|
+
const ContentTranscriptSchema = zod.z.object({
|
|
21
|
+
text: zod.z.string(),
|
|
22
|
+
confidence: zod.z.enum([
|
|
23
|
+
"high",
|
|
24
|
+
"medium",
|
|
25
|
+
"low"
|
|
26
|
+
]),
|
|
27
|
+
mechanism: zod.z.enum(["deterministic", "model"])
|
|
28
|
+
});
|
|
29
|
+
const ContentInterpretationSchema = zod.z.object({
|
|
30
|
+
transcript: ContentTranscriptSchema.optional(),
|
|
31
|
+
description: zod.z.string().optional(),
|
|
32
|
+
by: zod.z.object({
|
|
33
|
+
model: zod.z.string(),
|
|
34
|
+
at: zod.z.string()
|
|
35
|
+
}).optional()
|
|
36
|
+
});
|
|
37
|
+
const CONTENT_ANNOTATION_FIELDS = {
|
|
38
|
+
origin: ContentOriginSchema.optional(),
|
|
39
|
+
interpretation: ContentInterpretationSchema.optional()
|
|
40
|
+
};
|
|
12
41
|
const RUN_FONT_PROPERTY_SHAPE = {
|
|
13
42
|
bold: zod.z.boolean().optional(),
|
|
14
43
|
italic: zod.z.boolean().optional(),
|
|
@@ -27,7 +56,8 @@ const ContentRunSchema = zod.z.object({
|
|
|
27
56
|
direction: require_style.TextDirectionSchema.optional(),
|
|
28
57
|
sourcePath: zod.z.string().optional(),
|
|
29
58
|
source: require_source.SourceResidueSchema.optional(),
|
|
30
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
59
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
60
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
31
61
|
});
|
|
32
62
|
const ContentListMembershipSchema = zod.z.object({
|
|
33
63
|
numId: zod.z.string().optional(),
|
|
@@ -87,7 +117,8 @@ const ContentParagraphSchema = zod.z.object({
|
|
|
87
117
|
borders: ContentParagraphBordersSchema.optional(),
|
|
88
118
|
sourcePath: zod.z.string().optional(),
|
|
89
119
|
source: require_source.SourceResidueSchema.optional(),
|
|
90
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
120
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
121
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
91
122
|
});
|
|
92
123
|
function clampHeadingLevel(level) {
|
|
93
124
|
return Math.min(6, Math.max(1, Math.round(level)));
|
|
@@ -149,16 +180,21 @@ const ContentImageBlockSchema = zod.z.object({
|
|
|
149
180
|
heightPt: zod.z.number().positive(),
|
|
150
181
|
altText: zod.z.string().optional(),
|
|
151
182
|
original: ContentImageOriginalSchema.optional(),
|
|
183
|
+
anchorRunIndex: zod.z.number().int().nonnegative().optional(),
|
|
184
|
+
anchorOffset: zod.z.number().int().nonnegative().optional(),
|
|
185
|
+
caption: zod.z.string().optional(),
|
|
152
186
|
floatPosition: ContentFloatPositionSchema.optional(),
|
|
153
187
|
sourcePath: zod.z.string().optional(),
|
|
154
188
|
source: require_source.SourceResidueSchema.optional(),
|
|
155
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
189
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
190
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
156
191
|
});
|
|
157
192
|
const ContentPageBreakSchema = zod.z.object({
|
|
158
193
|
kind: zod.z.literal("pageBreak"),
|
|
159
194
|
sourcePath: zod.z.string().optional(),
|
|
160
195
|
source: require_source.SourceResidueSchema.optional(),
|
|
161
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
196
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
197
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
162
198
|
});
|
|
163
199
|
const ContentConstructStartSchema = zod.z.object({
|
|
164
200
|
kind: zod.z.literal("constructStart"),
|
|
@@ -224,7 +260,8 @@ const CONTENT_EMBEDDED_OBJECT_FIELDS = {
|
|
|
224
260
|
anchorColumn: zod.z.number().int().nonnegative().optional(),
|
|
225
261
|
offsetXPt: zod.z.number().optional(),
|
|
226
262
|
offsetYPt: zod.z.number().optional(),
|
|
227
|
-
source: require_source.SourceResidueSchema.optional()
|
|
263
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
264
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
228
265
|
};
|
|
229
266
|
const ContentEmbeddedObjectSchema = zod.z.object(CONTENT_EMBEDDED_OBJECT_FIELDS);
|
|
230
267
|
const ContentEmbeddedObjectBlockSchema = zod.z.object({
|
|
@@ -351,7 +388,8 @@ const ContentTableCellSchema = zod.z.object({
|
|
|
351
388
|
formula: zod.z.string().optional(),
|
|
352
389
|
sourcePath: zod.z.string().optional(),
|
|
353
390
|
source: require_source.SourceResidueSchema.optional(),
|
|
354
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
391
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
392
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
355
393
|
});
|
|
356
394
|
const ContentTableRowSchema = zod.z.object({
|
|
357
395
|
cells: zod.z.array(ContentTableCellSchema),
|
|
@@ -364,7 +402,8 @@ const ContentTableSchema = zod.z.object({
|
|
|
364
402
|
columnWidthsPt: zod.z.array(zod.z.number().nonnegative()),
|
|
365
403
|
sourcePath: zod.z.string().optional(),
|
|
366
404
|
source: require_source.SourceResidueSchema.optional(),
|
|
367
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
405
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
406
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
368
407
|
});
|
|
369
408
|
const ContentBlockSchema = zod.z.discriminatedUnion("kind", [
|
|
370
409
|
ContentParagraphSchema,
|
|
@@ -392,7 +431,8 @@ const ContentSectionSchema = zod.z.object({
|
|
|
392
431
|
]).optional(),
|
|
393
432
|
headers: ContentPageFurnitureSchema.optional(),
|
|
394
433
|
footers: ContentPageFurnitureSchema.optional(),
|
|
395
|
-
source: require_source.SourceResidueSchema.optional()
|
|
434
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
435
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
396
436
|
});
|
|
397
437
|
const ContentShapeSchema = zod.z.object({
|
|
398
438
|
name: zod.z.string().optional(),
|
|
@@ -408,13 +448,15 @@ const ContentShapeSchema = zod.z.object({
|
|
|
408
448
|
sourcePath: zod.z.string().optional(),
|
|
409
449
|
source: require_source.SourceResidueSchema.optional(),
|
|
410
450
|
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
451
|
+
...CONTENT_ANNOTATION_FIELDS,
|
|
411
452
|
blocks: zod.z.lazy(() => zod.z.array(ContentBlockSchema))
|
|
412
453
|
});
|
|
413
454
|
const ContentSlideSchema = zod.z.object({
|
|
414
455
|
size: require_geometry.PageSizeSchema,
|
|
415
456
|
shapes: zod.z.array(ContentShapeSchema),
|
|
416
457
|
notes: zod.z.string(),
|
|
417
|
-
source: require_source.SourceResidueSchema.optional()
|
|
458
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
459
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
418
460
|
});
|
|
419
461
|
const DecimalStringSchema = zod.z.string().regex(/^-?(0|[1-9]\d*)(\.\d+)?$/);
|
|
420
462
|
const ContentCellValueSchema = zod.z.discriminatedUnion("kind", [
|
|
@@ -491,7 +533,8 @@ const ContentSheetCellSchema = zod.z.object({
|
|
|
491
533
|
comment: ContentSheetCellCommentSchema.optional(),
|
|
492
534
|
sourcePath: zod.z.string().optional(),
|
|
493
535
|
source: require_source.SourceResidueSchema.optional(),
|
|
494
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
536
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
537
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
495
538
|
});
|
|
496
539
|
const ContentSheetColumnSchema = zod.z.object({
|
|
497
540
|
index: zod.z.number().int().nonnegative(),
|
|
@@ -709,7 +752,8 @@ const ContentSheetSchema = zod.z.object({
|
|
|
709
752
|
embeddedObjects: zod.z.array(ContentEmbeddedObjectSchema).optional(),
|
|
710
753
|
dataValidations: zod.z.array(ContentSheetDataValidationSchema).optional(),
|
|
711
754
|
conditionalFormats: zod.z.array(ContentSheetConditionalFormatSchema).optional(),
|
|
712
|
-
source: require_source.SourceResidueSchema.optional()
|
|
755
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
756
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
713
757
|
});
|
|
714
758
|
const ContentStrokeDashSchema = zod.z.object({
|
|
715
759
|
dots1: zod.z.number().int().positive(),
|
|
@@ -797,7 +841,8 @@ const ContentVectorSchema = zod.z.discriminatedUnion("kind", [
|
|
|
797
841
|
paintOrder: zod.z.number().optional(),
|
|
798
842
|
sourcePath: zod.z.string().optional(),
|
|
799
843
|
source: require_source.SourceResidueSchema.optional(),
|
|
800
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
844
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
845
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
801
846
|
}),
|
|
802
847
|
zod.z.object({
|
|
803
848
|
kind: zod.z.literal("ellipse"),
|
|
@@ -810,7 +855,8 @@ const ContentVectorSchema = zod.z.discriminatedUnion("kind", [
|
|
|
810
855
|
paintOrder: zod.z.number().optional(),
|
|
811
856
|
sourcePath: zod.z.string().optional(),
|
|
812
857
|
source: require_source.SourceResidueSchema.optional(),
|
|
813
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
858
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
859
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
814
860
|
}),
|
|
815
861
|
zod.z.object({
|
|
816
862
|
kind: zod.z.literal("line"),
|
|
@@ -820,7 +866,8 @@ const ContentVectorSchema = zod.z.discriminatedUnion("kind", [
|
|
|
820
866
|
paintOrder: zod.z.number().optional(),
|
|
821
867
|
sourcePath: zod.z.string().optional(),
|
|
822
868
|
source: require_source.SourceResidueSchema.optional(),
|
|
823
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
869
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
870
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
824
871
|
}),
|
|
825
872
|
zod.z.object({
|
|
826
873
|
kind: zod.z.literal("path"),
|
|
@@ -835,14 +882,16 @@ const ContentVectorSchema = zod.z.discriminatedUnion("kind", [
|
|
|
835
882
|
paintOrder: zod.z.number().optional(),
|
|
836
883
|
sourcePath: zod.z.string().optional(),
|
|
837
884
|
source: require_source.SourceResidueSchema.optional(),
|
|
838
|
-
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
885
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
886
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
839
887
|
})
|
|
840
888
|
]);
|
|
841
889
|
const ContentDrawPageSchema = zod.z.object({
|
|
842
890
|
size: require_geometry.PageSizeSchema,
|
|
843
891
|
shapes: zod.z.array(ContentShapeSchema),
|
|
844
892
|
vectors: zod.z.array(ContentVectorSchema),
|
|
845
|
-
source: require_source.SourceResidueSchema.optional()
|
|
893
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
894
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
846
895
|
});
|
|
847
896
|
const ContentFormulaSchema = zod.z.object({
|
|
848
897
|
mathml: zod.z.array(require_mathml.MathMlNodeSchema),
|
|
@@ -850,7 +899,8 @@ const ContentFormulaSchema = zod.z.object({
|
|
|
850
899
|
presentation: require_math.MathPresentationSchema.optional(),
|
|
851
900
|
content: require_math.MathExpressionSchema.optional(),
|
|
852
901
|
provenance: require_math.MathProvenanceSchema.optional(),
|
|
853
|
-
source: require_source.SourceResidueSchema.optional()
|
|
902
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
903
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
854
904
|
});
|
|
855
905
|
const contentDocumentSharedFields = { symbolTable: require_math.SymbolTableSchema.optional() };
|
|
856
906
|
const ContentDefinedNameSchema = zod.z.object({
|
|
@@ -892,6 +942,7 @@ const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [
|
|
|
892
942
|
})
|
|
893
943
|
]);
|
|
894
944
|
//#endregion
|
|
945
|
+
exports.CONTENT_ANNOTATION_FIELDS = CONTENT_ANNOTATION_FIELDS;
|
|
895
946
|
exports.ContentBitmapFillSchema = ContentBitmapFillSchema;
|
|
896
947
|
exports.ContentBlockSchema = ContentBlockSchema;
|
|
897
948
|
exports.ContentBorderSchema = ContentBorderSchema;
|
|
@@ -919,7 +970,9 @@ exports.ContentHatchFillSchema = ContentHatchFillSchema;
|
|
|
919
970
|
exports.ContentHatchStyleSchema = ContentHatchStyleSchema;
|
|
920
971
|
exports.ContentImageBlockSchema = ContentImageBlockSchema;
|
|
921
972
|
exports.ContentImageOriginalSchema = ContentImageOriginalSchema;
|
|
973
|
+
exports.ContentInterpretationSchema = ContentInterpretationSchema;
|
|
922
974
|
exports.ContentListMembershipSchema = ContentListMembershipSchema;
|
|
975
|
+
exports.ContentOriginSchema = ContentOriginSchema;
|
|
923
976
|
exports.ContentPageBreakSchema = ContentPageBreakSchema;
|
|
924
977
|
exports.ContentPageFurnitureSchema = ContentPageFurnitureSchema;
|
|
925
978
|
exports.ContentParagraphBordersSchema = ContentParagraphBordersSchema;
|
|
@@ -952,6 +1005,7 @@ exports.ContentSubpathSchema = ContentSubpathSchema;
|
|
|
952
1005
|
exports.ContentTableCellSchema = ContentTableCellSchema;
|
|
953
1006
|
exports.ContentTableRowSchema = ContentTableRowSchema;
|
|
954
1007
|
exports.ContentTableSchema = ContentTableSchema;
|
|
1008
|
+
exports.ContentTranscriptSchema = ContentTranscriptSchema;
|
|
955
1009
|
exports.ContentVectorSchema = ContentVectorSchema;
|
|
956
1010
|
exports.DecimalStringSchema = DecimalStringSchema;
|
|
957
1011
|
exports.IMAGE_FORMATS = IMAGE_FORMATS;
|
package/dist/content.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, 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, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
1
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-DN5CqH6Y.cjs";
|
|
2
|
+
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, 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, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/content.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, 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, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
1
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-C1hJ6olW.js";
|
|
2
|
+
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, 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, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/content.js
CHANGED
|
@@ -8,6 +8,35 @@ import { AlignmentSchema, TextDirectionSchema } from "./style.js";
|
|
|
8
8
|
import { LayoutMetadataSchema } from "./metadata.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/content.ts
|
|
11
|
+
const ContentOriginSchema = z.enum([
|
|
12
|
+
"chart",
|
|
13
|
+
"diagram",
|
|
14
|
+
"table",
|
|
15
|
+
"image",
|
|
16
|
+
"notes",
|
|
17
|
+
"body"
|
|
18
|
+
]);
|
|
19
|
+
const ContentTranscriptSchema = z.object({
|
|
20
|
+
text: z.string(),
|
|
21
|
+
confidence: z.enum([
|
|
22
|
+
"high",
|
|
23
|
+
"medium",
|
|
24
|
+
"low"
|
|
25
|
+
]),
|
|
26
|
+
mechanism: z.enum(["deterministic", "model"])
|
|
27
|
+
});
|
|
28
|
+
const ContentInterpretationSchema = z.object({
|
|
29
|
+
transcript: ContentTranscriptSchema.optional(),
|
|
30
|
+
description: z.string().optional(),
|
|
31
|
+
by: z.object({
|
|
32
|
+
model: z.string(),
|
|
33
|
+
at: z.string()
|
|
34
|
+
}).optional()
|
|
35
|
+
});
|
|
36
|
+
const CONTENT_ANNOTATION_FIELDS = {
|
|
37
|
+
origin: ContentOriginSchema.optional(),
|
|
38
|
+
interpretation: ContentInterpretationSchema.optional()
|
|
39
|
+
};
|
|
11
40
|
const RUN_FONT_PROPERTY_SHAPE = {
|
|
12
41
|
bold: z.boolean().optional(),
|
|
13
42
|
italic: z.boolean().optional(),
|
|
@@ -26,7 +55,8 @@ const ContentRunSchema = z.object({
|
|
|
26
55
|
direction: TextDirectionSchema.optional(),
|
|
27
56
|
sourcePath: z.string().optional(),
|
|
28
57
|
source: SourceResidueSchema.optional(),
|
|
29
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
58
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
59
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
30
60
|
});
|
|
31
61
|
const ContentListMembershipSchema = z.object({
|
|
32
62
|
numId: z.string().optional(),
|
|
@@ -86,7 +116,8 @@ const ContentParagraphSchema = z.object({
|
|
|
86
116
|
borders: ContentParagraphBordersSchema.optional(),
|
|
87
117
|
sourcePath: z.string().optional(),
|
|
88
118
|
source: SourceResidueSchema.optional(),
|
|
89
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
119
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
120
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
90
121
|
});
|
|
91
122
|
function clampHeadingLevel(level) {
|
|
92
123
|
return Math.min(6, Math.max(1, Math.round(level)));
|
|
@@ -148,16 +179,21 @@ const ContentImageBlockSchema = z.object({
|
|
|
148
179
|
heightPt: z.number().positive(),
|
|
149
180
|
altText: z.string().optional(),
|
|
150
181
|
original: ContentImageOriginalSchema.optional(),
|
|
182
|
+
anchorRunIndex: z.number().int().nonnegative().optional(),
|
|
183
|
+
anchorOffset: z.number().int().nonnegative().optional(),
|
|
184
|
+
caption: z.string().optional(),
|
|
151
185
|
floatPosition: ContentFloatPositionSchema.optional(),
|
|
152
186
|
sourcePath: z.string().optional(),
|
|
153
187
|
source: SourceResidueSchema.optional(),
|
|
154
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
188
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
189
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
155
190
|
});
|
|
156
191
|
const ContentPageBreakSchema = z.object({
|
|
157
192
|
kind: z.literal("pageBreak"),
|
|
158
193
|
sourcePath: z.string().optional(),
|
|
159
194
|
source: SourceResidueSchema.optional(),
|
|
160
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
195
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
196
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
161
197
|
});
|
|
162
198
|
const ContentConstructStartSchema = z.object({
|
|
163
199
|
kind: z.literal("constructStart"),
|
|
@@ -223,7 +259,8 @@ const CONTENT_EMBEDDED_OBJECT_FIELDS = {
|
|
|
223
259
|
anchorColumn: z.number().int().nonnegative().optional(),
|
|
224
260
|
offsetXPt: z.number().optional(),
|
|
225
261
|
offsetYPt: z.number().optional(),
|
|
226
|
-
source: SourceResidueSchema.optional()
|
|
262
|
+
source: SourceResidueSchema.optional(),
|
|
263
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
227
264
|
};
|
|
228
265
|
const ContentEmbeddedObjectSchema = z.object(CONTENT_EMBEDDED_OBJECT_FIELDS);
|
|
229
266
|
const ContentEmbeddedObjectBlockSchema = z.object({
|
|
@@ -350,7 +387,8 @@ const ContentTableCellSchema = z.object({
|
|
|
350
387
|
formula: z.string().optional(),
|
|
351
388
|
sourcePath: z.string().optional(),
|
|
352
389
|
source: SourceResidueSchema.optional(),
|
|
353
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
390
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
391
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
354
392
|
});
|
|
355
393
|
const ContentTableRowSchema = z.object({
|
|
356
394
|
cells: z.array(ContentTableCellSchema),
|
|
@@ -363,7 +401,8 @@ const ContentTableSchema = z.object({
|
|
|
363
401
|
columnWidthsPt: z.array(z.number().nonnegative()),
|
|
364
402
|
sourcePath: z.string().optional(),
|
|
365
403
|
source: SourceResidueSchema.optional(),
|
|
366
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
404
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
405
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
367
406
|
});
|
|
368
407
|
const ContentBlockSchema = z.discriminatedUnion("kind", [
|
|
369
408
|
ContentParagraphSchema,
|
|
@@ -391,7 +430,8 @@ const ContentSectionSchema = z.object({
|
|
|
391
430
|
]).optional(),
|
|
392
431
|
headers: ContentPageFurnitureSchema.optional(),
|
|
393
432
|
footers: ContentPageFurnitureSchema.optional(),
|
|
394
|
-
source: SourceResidueSchema.optional()
|
|
433
|
+
source: SourceResidueSchema.optional(),
|
|
434
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
395
435
|
});
|
|
396
436
|
const ContentShapeSchema = z.object({
|
|
397
437
|
name: z.string().optional(),
|
|
@@ -407,13 +447,15 @@ const ContentShapeSchema = z.object({
|
|
|
407
447
|
sourcePath: z.string().optional(),
|
|
408
448
|
source: SourceResidueSchema.optional(),
|
|
409
449
|
frames: z.array(LayoutFrameSchema).optional(),
|
|
450
|
+
...CONTENT_ANNOTATION_FIELDS,
|
|
410
451
|
blocks: z.lazy(() => z.array(ContentBlockSchema))
|
|
411
452
|
});
|
|
412
453
|
const ContentSlideSchema = z.object({
|
|
413
454
|
size: PageSizeSchema,
|
|
414
455
|
shapes: z.array(ContentShapeSchema),
|
|
415
456
|
notes: z.string(),
|
|
416
|
-
source: SourceResidueSchema.optional()
|
|
457
|
+
source: SourceResidueSchema.optional(),
|
|
458
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
417
459
|
});
|
|
418
460
|
const DecimalStringSchema = z.string().regex(/^-?(0|[1-9]\d*)(\.\d+)?$/);
|
|
419
461
|
const ContentCellValueSchema = z.discriminatedUnion("kind", [
|
|
@@ -490,7 +532,8 @@ const ContentSheetCellSchema = z.object({
|
|
|
490
532
|
comment: ContentSheetCellCommentSchema.optional(),
|
|
491
533
|
sourcePath: z.string().optional(),
|
|
492
534
|
source: SourceResidueSchema.optional(),
|
|
493
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
535
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
536
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
494
537
|
});
|
|
495
538
|
const ContentSheetColumnSchema = z.object({
|
|
496
539
|
index: z.number().int().nonnegative(),
|
|
@@ -708,7 +751,8 @@ const ContentSheetSchema = z.object({
|
|
|
708
751
|
embeddedObjects: z.array(ContentEmbeddedObjectSchema).optional(),
|
|
709
752
|
dataValidations: z.array(ContentSheetDataValidationSchema).optional(),
|
|
710
753
|
conditionalFormats: z.array(ContentSheetConditionalFormatSchema).optional(),
|
|
711
|
-
source: SourceResidueSchema.optional()
|
|
754
|
+
source: SourceResidueSchema.optional(),
|
|
755
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
712
756
|
});
|
|
713
757
|
const ContentStrokeDashSchema = z.object({
|
|
714
758
|
dots1: z.number().int().positive(),
|
|
@@ -796,7 +840,8 @@ const ContentVectorSchema = z.discriminatedUnion("kind", [
|
|
|
796
840
|
paintOrder: z.number().optional(),
|
|
797
841
|
sourcePath: z.string().optional(),
|
|
798
842
|
source: SourceResidueSchema.optional(),
|
|
799
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
843
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
844
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
800
845
|
}),
|
|
801
846
|
z.object({
|
|
802
847
|
kind: z.literal("ellipse"),
|
|
@@ -809,7 +854,8 @@ const ContentVectorSchema = z.discriminatedUnion("kind", [
|
|
|
809
854
|
paintOrder: z.number().optional(),
|
|
810
855
|
sourcePath: z.string().optional(),
|
|
811
856
|
source: SourceResidueSchema.optional(),
|
|
812
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
857
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
858
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
813
859
|
}),
|
|
814
860
|
z.object({
|
|
815
861
|
kind: z.literal("line"),
|
|
@@ -819,7 +865,8 @@ const ContentVectorSchema = z.discriminatedUnion("kind", [
|
|
|
819
865
|
paintOrder: z.number().optional(),
|
|
820
866
|
sourcePath: z.string().optional(),
|
|
821
867
|
source: SourceResidueSchema.optional(),
|
|
822
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
868
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
869
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
823
870
|
}),
|
|
824
871
|
z.object({
|
|
825
872
|
kind: z.literal("path"),
|
|
@@ -834,14 +881,16 @@ const ContentVectorSchema = z.discriminatedUnion("kind", [
|
|
|
834
881
|
paintOrder: z.number().optional(),
|
|
835
882
|
sourcePath: z.string().optional(),
|
|
836
883
|
source: SourceResidueSchema.optional(),
|
|
837
|
-
frames: z.array(LayoutFrameSchema).optional()
|
|
884
|
+
frames: z.array(LayoutFrameSchema).optional(),
|
|
885
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
838
886
|
})
|
|
839
887
|
]);
|
|
840
888
|
const ContentDrawPageSchema = z.object({
|
|
841
889
|
size: PageSizeSchema,
|
|
842
890
|
shapes: z.array(ContentShapeSchema),
|
|
843
891
|
vectors: z.array(ContentVectorSchema),
|
|
844
|
-
source: SourceResidueSchema.optional()
|
|
892
|
+
source: SourceResidueSchema.optional(),
|
|
893
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
845
894
|
});
|
|
846
895
|
const ContentFormulaSchema = z.object({
|
|
847
896
|
mathml: z.array(MathMlNodeSchema),
|
|
@@ -849,7 +898,8 @@ const ContentFormulaSchema = z.object({
|
|
|
849
898
|
presentation: MathPresentationSchema.optional(),
|
|
850
899
|
content: MathExpressionSchema.optional(),
|
|
851
900
|
provenance: MathProvenanceSchema.optional(),
|
|
852
|
-
source: SourceResidueSchema.optional()
|
|
901
|
+
source: SourceResidueSchema.optional(),
|
|
902
|
+
...CONTENT_ANNOTATION_FIELDS
|
|
853
903
|
});
|
|
854
904
|
const contentDocumentSharedFields = { symbolTable: SymbolTableSchema.optional() };
|
|
855
905
|
const ContentDefinedNameSchema = z.object({
|
|
@@ -891,4 +941,4 @@ const ContentDocumentSchema = z.discriminatedUnion("kind", [
|
|
|
891
941
|
})
|
|
892
942
|
]);
|
|
893
943
|
//#endregion
|
|
894
|
-
export { ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDefinedNameSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFontSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentImageOriginalSchema, 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, IMAGE_FORMATS, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
944
|
+
export { CONTENT_ANNOTATION_FIELDS, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDefinedNameSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFontSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentImageOriginalSchema, ContentInterpretationSchema, ContentListMembershipSchema, ContentOriginSchema, 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, ContentTranscriptSchema, ContentVectorSchema, DecimalStringSchema, IMAGE_FORMATS, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/decompose.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-
|
|
1
|
+
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-DN5CqH6Y.cjs";
|
|
2
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-DktLHAKG.cjs";
|
|
3
3
|
//#region src/decompose.d.ts
|
|
4
4
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
5
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|
package/dist/decompose.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-
|
|
1
|
+
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-C1hJ6olW.js";
|
|
2
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-B9aFWtrZ.js";
|
|
3
3
|
//#region src/decompose.d.ts
|
|
4
4
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
5
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|
package/dist/definitions.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { St as ContentRun, mt as ContentParagraph } from "./content-DN5CqH6Y.cjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
left: "left";
|
|
7
|
-
right: "right";
|
|
8
7
|
center: "center";
|
|
8
|
+
right: "right";
|
|
9
9
|
justify: "justify";
|
|
10
10
|
}>>;
|
|
11
11
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,8 +49,8 @@ declare const StyleEntrySchema: z.ZodObject<{
|
|
|
49
49
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
50
50
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
left: "left";
|
|
52
|
-
right: "right";
|
|
53
52
|
center: "center";
|
|
53
|
+
right: "right";
|
|
54
54
|
justify: "justify";
|
|
55
55
|
}>>;
|
|
56
56
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -94,8 +94,8 @@ declare const StylesTableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
94
94
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
95
95
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
96
96
|
left: "left";
|
|
97
|
-
right: "right";
|
|
98
97
|
center: "center";
|
|
98
|
+
right: "right";
|
|
99
99
|
justify: "justify";
|
|
100
100
|
}>>;
|
|
101
101
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/definitions.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { St as ContentRun, mt as ContentParagraph } from "./content-C1hJ6olW.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
left: "left";
|
|
7
|
-
right: "right";
|
|
8
7
|
center: "center";
|
|
8
|
+
right: "right";
|
|
9
9
|
justify: "justify";
|
|
10
10
|
}>>;
|
|
11
11
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,8 +49,8 @@ declare const StyleEntrySchema: z.ZodObject<{
|
|
|
49
49
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
50
50
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
left: "left";
|
|
52
|
-
right: "right";
|
|
53
52
|
center: "center";
|
|
53
|
+
right: "right";
|
|
54
54
|
justify: "justify";
|
|
55
55
|
}>>;
|
|
56
56
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -94,8 +94,8 @@ declare const StylesTableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
94
94
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
95
95
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
96
96
|
left: "left";
|
|
97
|
-
right: "right";
|
|
98
97
|
center: "center";
|
|
98
|
+
right: "right";
|
|
99
99
|
justify: "justify";
|
|
100
100
|
}>>;
|
|
101
101
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/factor-styles.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { C as ContentDocument } from "./content-DN5CqH6Y.cjs";
|
|
3
3
|
import { DocumentTree } from "./package.cjs";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|
package/dist/factor-styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as ContentDocument } from "./content-C1hJ6olW.js";
|
|
3
3
|
import { DocumentTree } from "./package.js";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|