document-content-model 1.2.1 → 1.3.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/index.cjs +34 -0
- package/dist/index.d.cts +188 -1
- package/dist/index.d.ts +188 -1
- package/dist/index.js +32 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -462,6 +462,36 @@ const LayoutEllipseSchema = zod.z.object({
|
|
|
462
462
|
}).optional(),
|
|
463
463
|
sourcePath: zod.z.string().optional()
|
|
464
464
|
});
|
|
465
|
+
const LayoutPathSegmentSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
466
|
+
kind: zod.z.literal("line"),
|
|
467
|
+
xPt: zod.z.number(),
|
|
468
|
+
yPt: zod.z.number()
|
|
469
|
+
}), zod.z.object({
|
|
470
|
+
kind: zod.z.literal("cubic"),
|
|
471
|
+
c1xPt: zod.z.number(),
|
|
472
|
+
c1yPt: zod.z.number(),
|
|
473
|
+
c2xPt: zod.z.number(),
|
|
474
|
+
c2yPt: zod.z.number(),
|
|
475
|
+
xPt: zod.z.number(),
|
|
476
|
+
yPt: zod.z.number()
|
|
477
|
+
})]);
|
|
478
|
+
const LayoutSubpathSchema = zod.z.object({
|
|
479
|
+
startXPt: zod.z.number(),
|
|
480
|
+
startYPt: zod.z.number(),
|
|
481
|
+
segments: zod.z.array(LayoutPathSegmentSchema),
|
|
482
|
+
closed: zod.z.boolean()
|
|
483
|
+
});
|
|
484
|
+
const LayoutPathSchema = zod.z.object({
|
|
485
|
+
kind: zod.z.literal("path"),
|
|
486
|
+
subpaths: zod.z.array(LayoutSubpathSchema),
|
|
487
|
+
fill: ColorSchema.optional(),
|
|
488
|
+
fillRule: zod.z.enum(["nonzero", "evenodd"]).optional(),
|
|
489
|
+
stroke: zod.z.object({
|
|
490
|
+
color: ColorSchema,
|
|
491
|
+
widthPt: zod.z.number().positive()
|
|
492
|
+
}).optional(),
|
|
493
|
+
sourcePath: zod.z.string().optional()
|
|
494
|
+
});
|
|
465
495
|
const LayoutLinkSchema = zod.z.object({
|
|
466
496
|
kind: zod.z.literal("link"),
|
|
467
497
|
uri: zod.z.string(),
|
|
@@ -477,6 +507,7 @@ const LayoutItemSchema = zod.z.discriminatedUnion("kind", [
|
|
|
477
507
|
LayoutRectSchema,
|
|
478
508
|
LayoutLineSchema,
|
|
479
509
|
LayoutEllipseSchema,
|
|
510
|
+
LayoutPathSchema,
|
|
480
511
|
LayoutLinkSchema
|
|
481
512
|
]);
|
|
482
513
|
const LayoutPageSchema = zod.z.object({
|
|
@@ -545,7 +576,10 @@ exports.LayoutLineSchema = LayoutLineSchema;
|
|
|
545
576
|
exports.LayoutLinkSchema = LayoutLinkSchema;
|
|
546
577
|
exports.LayoutMetadataSchema = LayoutMetadataSchema;
|
|
547
578
|
exports.LayoutPageSchema = LayoutPageSchema;
|
|
579
|
+
exports.LayoutPathSchema = LayoutPathSchema;
|
|
580
|
+
exports.LayoutPathSegmentSchema = LayoutPathSegmentSchema;
|
|
548
581
|
exports.LayoutRectSchema = LayoutRectSchema;
|
|
582
|
+
exports.LayoutSubpathSchema = LayoutSubpathSchema;
|
|
549
583
|
exports.LayoutTextSchema = LayoutTextSchema;
|
|
550
584
|
exports.MarginsSchema = MarginsSchema;
|
|
551
585
|
exports.PAGE_SIZE_A4 = PAGE_SIZE_A4;
|
package/dist/index.d.cts
CHANGED
|
@@ -1354,6 +1354,79 @@ declare const LayoutEllipseSchema: z.ZodObject<{
|
|
|
1354
1354
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1355
1355
|
}, z.core.$strip>;
|
|
1356
1356
|
type LayoutEllipse = z.infer<typeof LayoutEllipseSchema>;
|
|
1357
|
+
declare const LayoutPathSegmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1358
|
+
kind: z.ZodLiteral<"line">;
|
|
1359
|
+
xPt: z.ZodNumber;
|
|
1360
|
+
yPt: z.ZodNumber;
|
|
1361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1362
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1363
|
+
c1xPt: z.ZodNumber;
|
|
1364
|
+
c1yPt: z.ZodNumber;
|
|
1365
|
+
c2xPt: z.ZodNumber;
|
|
1366
|
+
c2yPt: z.ZodNumber;
|
|
1367
|
+
xPt: z.ZodNumber;
|
|
1368
|
+
yPt: z.ZodNumber;
|
|
1369
|
+
}, z.core.$strip>], "kind">;
|
|
1370
|
+
type LayoutPathSegment = z.infer<typeof LayoutPathSegmentSchema>;
|
|
1371
|
+
declare const LayoutSubpathSchema: z.ZodObject<{
|
|
1372
|
+
startXPt: z.ZodNumber;
|
|
1373
|
+
startYPt: z.ZodNumber;
|
|
1374
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1375
|
+
kind: z.ZodLiteral<"line">;
|
|
1376
|
+
xPt: z.ZodNumber;
|
|
1377
|
+
yPt: z.ZodNumber;
|
|
1378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1379
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1380
|
+
c1xPt: z.ZodNumber;
|
|
1381
|
+
c1yPt: z.ZodNumber;
|
|
1382
|
+
c2xPt: z.ZodNumber;
|
|
1383
|
+
c2yPt: z.ZodNumber;
|
|
1384
|
+
xPt: z.ZodNumber;
|
|
1385
|
+
yPt: z.ZodNumber;
|
|
1386
|
+
}, z.core.$strip>], "kind">>;
|
|
1387
|
+
closed: z.ZodBoolean;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1389
|
+
type LayoutSubpath = z.infer<typeof LayoutSubpathSchema>;
|
|
1390
|
+
declare const LayoutPathSchema: z.ZodObject<{
|
|
1391
|
+
kind: z.ZodLiteral<"path">;
|
|
1392
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1393
|
+
startXPt: z.ZodNumber;
|
|
1394
|
+
startYPt: z.ZodNumber;
|
|
1395
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1396
|
+
kind: z.ZodLiteral<"line">;
|
|
1397
|
+
xPt: z.ZodNumber;
|
|
1398
|
+
yPt: z.ZodNumber;
|
|
1399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1400
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1401
|
+
c1xPt: z.ZodNumber;
|
|
1402
|
+
c1yPt: z.ZodNumber;
|
|
1403
|
+
c2xPt: z.ZodNumber;
|
|
1404
|
+
c2yPt: z.ZodNumber;
|
|
1405
|
+
xPt: z.ZodNumber;
|
|
1406
|
+
yPt: z.ZodNumber;
|
|
1407
|
+
}, z.core.$strip>], "kind">>;
|
|
1408
|
+
closed: z.ZodBoolean;
|
|
1409
|
+
}, z.core.$strip>>;
|
|
1410
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1411
|
+
r: z.ZodNumber;
|
|
1412
|
+
g: z.ZodNumber;
|
|
1413
|
+
b: z.ZodNumber;
|
|
1414
|
+
}, z.core.$strip>>;
|
|
1415
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1416
|
+
nonzero: "nonzero";
|
|
1417
|
+
evenodd: "evenodd";
|
|
1418
|
+
}>>;
|
|
1419
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1420
|
+
color: z.ZodObject<{
|
|
1421
|
+
r: z.ZodNumber;
|
|
1422
|
+
g: z.ZodNumber;
|
|
1423
|
+
b: z.ZodNumber;
|
|
1424
|
+
}, z.core.$strip>;
|
|
1425
|
+
widthPt: z.ZodNumber;
|
|
1426
|
+
}, z.core.$strip>>;
|
|
1427
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
}, z.core.$strip>;
|
|
1429
|
+
type LayoutPath = z.infer<typeof LayoutPathSchema>;
|
|
1357
1430
|
declare const LayoutLinkSchema: z.ZodObject<{
|
|
1358
1431
|
kind: z.ZodLiteral<"link">;
|
|
1359
1432
|
uri: z.ZodString;
|
|
@@ -1452,6 +1525,44 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1452
1525
|
widthPt: z.ZodNumber;
|
|
1453
1526
|
}, z.core.$strip>>;
|
|
1454
1527
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1529
|
+
kind: z.ZodLiteral<"path">;
|
|
1530
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1531
|
+
startXPt: z.ZodNumber;
|
|
1532
|
+
startYPt: z.ZodNumber;
|
|
1533
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1534
|
+
kind: z.ZodLiteral<"line">;
|
|
1535
|
+
xPt: z.ZodNumber;
|
|
1536
|
+
yPt: z.ZodNumber;
|
|
1537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1538
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1539
|
+
c1xPt: z.ZodNumber;
|
|
1540
|
+
c1yPt: z.ZodNumber;
|
|
1541
|
+
c2xPt: z.ZodNumber;
|
|
1542
|
+
c2yPt: z.ZodNumber;
|
|
1543
|
+
xPt: z.ZodNumber;
|
|
1544
|
+
yPt: z.ZodNumber;
|
|
1545
|
+
}, z.core.$strip>], "kind">>;
|
|
1546
|
+
closed: z.ZodBoolean;
|
|
1547
|
+
}, z.core.$strip>>;
|
|
1548
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1549
|
+
r: z.ZodNumber;
|
|
1550
|
+
g: z.ZodNumber;
|
|
1551
|
+
b: z.ZodNumber;
|
|
1552
|
+
}, z.core.$strip>>;
|
|
1553
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1554
|
+
nonzero: "nonzero";
|
|
1555
|
+
evenodd: "evenodd";
|
|
1556
|
+
}>>;
|
|
1557
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1558
|
+
color: z.ZodObject<{
|
|
1559
|
+
r: z.ZodNumber;
|
|
1560
|
+
g: z.ZodNumber;
|
|
1561
|
+
b: z.ZodNumber;
|
|
1562
|
+
}, z.core.$strip>;
|
|
1563
|
+
widthPt: z.ZodNumber;
|
|
1564
|
+
}, z.core.$strip>>;
|
|
1565
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1455
1566
|
}, z.core.$strip>, z.ZodObject<{
|
|
1456
1567
|
kind: z.ZodLiteral<"link">;
|
|
1457
1568
|
uri: z.ZodString;
|
|
@@ -1553,6 +1664,44 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
1553
1664
|
widthPt: z.ZodNumber;
|
|
1554
1665
|
}, z.core.$strip>>;
|
|
1555
1666
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1668
|
+
kind: z.ZodLiteral<"path">;
|
|
1669
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1670
|
+
startXPt: z.ZodNumber;
|
|
1671
|
+
startYPt: z.ZodNumber;
|
|
1672
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1673
|
+
kind: z.ZodLiteral<"line">;
|
|
1674
|
+
xPt: z.ZodNumber;
|
|
1675
|
+
yPt: z.ZodNumber;
|
|
1676
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1677
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1678
|
+
c1xPt: z.ZodNumber;
|
|
1679
|
+
c1yPt: z.ZodNumber;
|
|
1680
|
+
c2xPt: z.ZodNumber;
|
|
1681
|
+
c2yPt: z.ZodNumber;
|
|
1682
|
+
xPt: z.ZodNumber;
|
|
1683
|
+
yPt: z.ZodNumber;
|
|
1684
|
+
}, z.core.$strip>], "kind">>;
|
|
1685
|
+
closed: z.ZodBoolean;
|
|
1686
|
+
}, z.core.$strip>>;
|
|
1687
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1688
|
+
r: z.ZodNumber;
|
|
1689
|
+
g: z.ZodNumber;
|
|
1690
|
+
b: z.ZodNumber;
|
|
1691
|
+
}, z.core.$strip>>;
|
|
1692
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1693
|
+
nonzero: "nonzero";
|
|
1694
|
+
evenodd: "evenodd";
|
|
1695
|
+
}>>;
|
|
1696
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1697
|
+
color: z.ZodObject<{
|
|
1698
|
+
r: z.ZodNumber;
|
|
1699
|
+
g: z.ZodNumber;
|
|
1700
|
+
b: z.ZodNumber;
|
|
1701
|
+
}, z.core.$strip>;
|
|
1702
|
+
widthPt: z.ZodNumber;
|
|
1703
|
+
}, z.core.$strip>>;
|
|
1704
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1556
1705
|
}, z.core.$strip>, z.ZodObject<{
|
|
1557
1706
|
kind: z.ZodLiteral<"link">;
|
|
1558
1707
|
uri: z.ZodString;
|
|
@@ -1678,6 +1827,44 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
1678
1827
|
widthPt: z.ZodNumber;
|
|
1679
1828
|
}, z.core.$strip>>;
|
|
1680
1829
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1830
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1831
|
+
kind: z.ZodLiteral<"path">;
|
|
1832
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1833
|
+
startXPt: z.ZodNumber;
|
|
1834
|
+
startYPt: z.ZodNumber;
|
|
1835
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1836
|
+
kind: z.ZodLiteral<"line">;
|
|
1837
|
+
xPt: z.ZodNumber;
|
|
1838
|
+
yPt: z.ZodNumber;
|
|
1839
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1840
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1841
|
+
c1xPt: z.ZodNumber;
|
|
1842
|
+
c1yPt: z.ZodNumber;
|
|
1843
|
+
c2xPt: z.ZodNumber;
|
|
1844
|
+
c2yPt: z.ZodNumber;
|
|
1845
|
+
xPt: z.ZodNumber;
|
|
1846
|
+
yPt: z.ZodNumber;
|
|
1847
|
+
}, z.core.$strip>], "kind">>;
|
|
1848
|
+
closed: z.ZodBoolean;
|
|
1849
|
+
}, z.core.$strip>>;
|
|
1850
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1851
|
+
r: z.ZodNumber;
|
|
1852
|
+
g: z.ZodNumber;
|
|
1853
|
+
b: z.ZodNumber;
|
|
1854
|
+
}, z.core.$strip>>;
|
|
1855
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1856
|
+
nonzero: "nonzero";
|
|
1857
|
+
evenodd: "evenodd";
|
|
1858
|
+
}>>;
|
|
1859
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1860
|
+
color: z.ZodObject<{
|
|
1861
|
+
r: z.ZodNumber;
|
|
1862
|
+
g: z.ZodNumber;
|
|
1863
|
+
b: z.ZodNumber;
|
|
1864
|
+
}, z.core.$strip>;
|
|
1865
|
+
widthPt: z.ZodNumber;
|
|
1866
|
+
}, z.core.$strip>>;
|
|
1867
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1681
1868
|
}, z.core.$strip>, z.ZodObject<{
|
|
1682
1869
|
kind: z.ZodLiteral<"link">;
|
|
1683
1870
|
uri: z.ZodString;
|
|
@@ -1701,4 +1888,4 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
1701
1888
|
}, z.core.$strip>;
|
|
1702
1889
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
1703
1890
|
//#endregion
|
|
1704
|
-
export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutRect, LayoutRectSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
|
1891
|
+
export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -1354,6 +1354,79 @@ declare const LayoutEllipseSchema: z.ZodObject<{
|
|
|
1354
1354
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1355
1355
|
}, z.core.$strip>;
|
|
1356
1356
|
type LayoutEllipse = z.infer<typeof LayoutEllipseSchema>;
|
|
1357
|
+
declare const LayoutPathSegmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1358
|
+
kind: z.ZodLiteral<"line">;
|
|
1359
|
+
xPt: z.ZodNumber;
|
|
1360
|
+
yPt: z.ZodNumber;
|
|
1361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1362
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1363
|
+
c1xPt: z.ZodNumber;
|
|
1364
|
+
c1yPt: z.ZodNumber;
|
|
1365
|
+
c2xPt: z.ZodNumber;
|
|
1366
|
+
c2yPt: z.ZodNumber;
|
|
1367
|
+
xPt: z.ZodNumber;
|
|
1368
|
+
yPt: z.ZodNumber;
|
|
1369
|
+
}, z.core.$strip>], "kind">;
|
|
1370
|
+
type LayoutPathSegment = z.infer<typeof LayoutPathSegmentSchema>;
|
|
1371
|
+
declare const LayoutSubpathSchema: z.ZodObject<{
|
|
1372
|
+
startXPt: z.ZodNumber;
|
|
1373
|
+
startYPt: z.ZodNumber;
|
|
1374
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1375
|
+
kind: z.ZodLiteral<"line">;
|
|
1376
|
+
xPt: z.ZodNumber;
|
|
1377
|
+
yPt: z.ZodNumber;
|
|
1378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1379
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1380
|
+
c1xPt: z.ZodNumber;
|
|
1381
|
+
c1yPt: z.ZodNumber;
|
|
1382
|
+
c2xPt: z.ZodNumber;
|
|
1383
|
+
c2yPt: z.ZodNumber;
|
|
1384
|
+
xPt: z.ZodNumber;
|
|
1385
|
+
yPt: z.ZodNumber;
|
|
1386
|
+
}, z.core.$strip>], "kind">>;
|
|
1387
|
+
closed: z.ZodBoolean;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1389
|
+
type LayoutSubpath = z.infer<typeof LayoutSubpathSchema>;
|
|
1390
|
+
declare const LayoutPathSchema: z.ZodObject<{
|
|
1391
|
+
kind: z.ZodLiteral<"path">;
|
|
1392
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1393
|
+
startXPt: z.ZodNumber;
|
|
1394
|
+
startYPt: z.ZodNumber;
|
|
1395
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1396
|
+
kind: z.ZodLiteral<"line">;
|
|
1397
|
+
xPt: z.ZodNumber;
|
|
1398
|
+
yPt: z.ZodNumber;
|
|
1399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1400
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1401
|
+
c1xPt: z.ZodNumber;
|
|
1402
|
+
c1yPt: z.ZodNumber;
|
|
1403
|
+
c2xPt: z.ZodNumber;
|
|
1404
|
+
c2yPt: z.ZodNumber;
|
|
1405
|
+
xPt: z.ZodNumber;
|
|
1406
|
+
yPt: z.ZodNumber;
|
|
1407
|
+
}, z.core.$strip>], "kind">>;
|
|
1408
|
+
closed: z.ZodBoolean;
|
|
1409
|
+
}, z.core.$strip>>;
|
|
1410
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1411
|
+
r: z.ZodNumber;
|
|
1412
|
+
g: z.ZodNumber;
|
|
1413
|
+
b: z.ZodNumber;
|
|
1414
|
+
}, z.core.$strip>>;
|
|
1415
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1416
|
+
nonzero: "nonzero";
|
|
1417
|
+
evenodd: "evenodd";
|
|
1418
|
+
}>>;
|
|
1419
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1420
|
+
color: z.ZodObject<{
|
|
1421
|
+
r: z.ZodNumber;
|
|
1422
|
+
g: z.ZodNumber;
|
|
1423
|
+
b: z.ZodNumber;
|
|
1424
|
+
}, z.core.$strip>;
|
|
1425
|
+
widthPt: z.ZodNumber;
|
|
1426
|
+
}, z.core.$strip>>;
|
|
1427
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
}, z.core.$strip>;
|
|
1429
|
+
type LayoutPath = z.infer<typeof LayoutPathSchema>;
|
|
1357
1430
|
declare const LayoutLinkSchema: z.ZodObject<{
|
|
1358
1431
|
kind: z.ZodLiteral<"link">;
|
|
1359
1432
|
uri: z.ZodString;
|
|
@@ -1452,6 +1525,44 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1452
1525
|
widthPt: z.ZodNumber;
|
|
1453
1526
|
}, z.core.$strip>>;
|
|
1454
1527
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1529
|
+
kind: z.ZodLiteral<"path">;
|
|
1530
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1531
|
+
startXPt: z.ZodNumber;
|
|
1532
|
+
startYPt: z.ZodNumber;
|
|
1533
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1534
|
+
kind: z.ZodLiteral<"line">;
|
|
1535
|
+
xPt: z.ZodNumber;
|
|
1536
|
+
yPt: z.ZodNumber;
|
|
1537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1538
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1539
|
+
c1xPt: z.ZodNumber;
|
|
1540
|
+
c1yPt: z.ZodNumber;
|
|
1541
|
+
c2xPt: z.ZodNumber;
|
|
1542
|
+
c2yPt: z.ZodNumber;
|
|
1543
|
+
xPt: z.ZodNumber;
|
|
1544
|
+
yPt: z.ZodNumber;
|
|
1545
|
+
}, z.core.$strip>], "kind">>;
|
|
1546
|
+
closed: z.ZodBoolean;
|
|
1547
|
+
}, z.core.$strip>>;
|
|
1548
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1549
|
+
r: z.ZodNumber;
|
|
1550
|
+
g: z.ZodNumber;
|
|
1551
|
+
b: z.ZodNumber;
|
|
1552
|
+
}, z.core.$strip>>;
|
|
1553
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1554
|
+
nonzero: "nonzero";
|
|
1555
|
+
evenodd: "evenodd";
|
|
1556
|
+
}>>;
|
|
1557
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1558
|
+
color: z.ZodObject<{
|
|
1559
|
+
r: z.ZodNumber;
|
|
1560
|
+
g: z.ZodNumber;
|
|
1561
|
+
b: z.ZodNumber;
|
|
1562
|
+
}, z.core.$strip>;
|
|
1563
|
+
widthPt: z.ZodNumber;
|
|
1564
|
+
}, z.core.$strip>>;
|
|
1565
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1455
1566
|
}, z.core.$strip>, z.ZodObject<{
|
|
1456
1567
|
kind: z.ZodLiteral<"link">;
|
|
1457
1568
|
uri: z.ZodString;
|
|
@@ -1553,6 +1664,44 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
1553
1664
|
widthPt: z.ZodNumber;
|
|
1554
1665
|
}, z.core.$strip>>;
|
|
1555
1666
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1668
|
+
kind: z.ZodLiteral<"path">;
|
|
1669
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1670
|
+
startXPt: z.ZodNumber;
|
|
1671
|
+
startYPt: z.ZodNumber;
|
|
1672
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1673
|
+
kind: z.ZodLiteral<"line">;
|
|
1674
|
+
xPt: z.ZodNumber;
|
|
1675
|
+
yPt: z.ZodNumber;
|
|
1676
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1677
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1678
|
+
c1xPt: z.ZodNumber;
|
|
1679
|
+
c1yPt: z.ZodNumber;
|
|
1680
|
+
c2xPt: z.ZodNumber;
|
|
1681
|
+
c2yPt: z.ZodNumber;
|
|
1682
|
+
xPt: z.ZodNumber;
|
|
1683
|
+
yPt: z.ZodNumber;
|
|
1684
|
+
}, z.core.$strip>], "kind">>;
|
|
1685
|
+
closed: z.ZodBoolean;
|
|
1686
|
+
}, z.core.$strip>>;
|
|
1687
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1688
|
+
r: z.ZodNumber;
|
|
1689
|
+
g: z.ZodNumber;
|
|
1690
|
+
b: z.ZodNumber;
|
|
1691
|
+
}, z.core.$strip>>;
|
|
1692
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1693
|
+
nonzero: "nonzero";
|
|
1694
|
+
evenodd: "evenodd";
|
|
1695
|
+
}>>;
|
|
1696
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1697
|
+
color: z.ZodObject<{
|
|
1698
|
+
r: z.ZodNumber;
|
|
1699
|
+
g: z.ZodNumber;
|
|
1700
|
+
b: z.ZodNumber;
|
|
1701
|
+
}, z.core.$strip>;
|
|
1702
|
+
widthPt: z.ZodNumber;
|
|
1703
|
+
}, z.core.$strip>>;
|
|
1704
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1556
1705
|
}, z.core.$strip>, z.ZodObject<{
|
|
1557
1706
|
kind: z.ZodLiteral<"link">;
|
|
1558
1707
|
uri: z.ZodString;
|
|
@@ -1678,6 +1827,44 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
1678
1827
|
widthPt: z.ZodNumber;
|
|
1679
1828
|
}, z.core.$strip>>;
|
|
1680
1829
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1830
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1831
|
+
kind: z.ZodLiteral<"path">;
|
|
1832
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
1833
|
+
startXPt: z.ZodNumber;
|
|
1834
|
+
startYPt: z.ZodNumber;
|
|
1835
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1836
|
+
kind: z.ZodLiteral<"line">;
|
|
1837
|
+
xPt: z.ZodNumber;
|
|
1838
|
+
yPt: z.ZodNumber;
|
|
1839
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1840
|
+
kind: z.ZodLiteral<"cubic">;
|
|
1841
|
+
c1xPt: z.ZodNumber;
|
|
1842
|
+
c1yPt: z.ZodNumber;
|
|
1843
|
+
c2xPt: z.ZodNumber;
|
|
1844
|
+
c2yPt: z.ZodNumber;
|
|
1845
|
+
xPt: z.ZodNumber;
|
|
1846
|
+
yPt: z.ZodNumber;
|
|
1847
|
+
}, z.core.$strip>], "kind">>;
|
|
1848
|
+
closed: z.ZodBoolean;
|
|
1849
|
+
}, z.core.$strip>>;
|
|
1850
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1851
|
+
r: z.ZodNumber;
|
|
1852
|
+
g: z.ZodNumber;
|
|
1853
|
+
b: z.ZodNumber;
|
|
1854
|
+
}, z.core.$strip>>;
|
|
1855
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
1856
|
+
nonzero: "nonzero";
|
|
1857
|
+
evenodd: "evenodd";
|
|
1858
|
+
}>>;
|
|
1859
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1860
|
+
color: z.ZodObject<{
|
|
1861
|
+
r: z.ZodNumber;
|
|
1862
|
+
g: z.ZodNumber;
|
|
1863
|
+
b: z.ZodNumber;
|
|
1864
|
+
}, z.core.$strip>;
|
|
1865
|
+
widthPt: z.ZodNumber;
|
|
1866
|
+
}, z.core.$strip>>;
|
|
1867
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1681
1868
|
}, z.core.$strip>, z.ZodObject<{
|
|
1682
1869
|
kind: z.ZodLiteral<"link">;
|
|
1683
1870
|
uri: z.ZodString;
|
|
@@ -1701,4 +1888,4 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
1701
1888
|
}, z.core.$strip>;
|
|
1702
1889
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
1703
1890
|
//#endregion
|
|
1704
|
-
export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutRect, LayoutRectSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
|
1891
|
+
export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
package/dist/index.js
CHANGED
|
@@ -461,6 +461,36 @@ const LayoutEllipseSchema = z.object({
|
|
|
461
461
|
}).optional(),
|
|
462
462
|
sourcePath: z.string().optional()
|
|
463
463
|
});
|
|
464
|
+
const LayoutPathSegmentSchema = z.discriminatedUnion("kind", [z.object({
|
|
465
|
+
kind: z.literal("line"),
|
|
466
|
+
xPt: z.number(),
|
|
467
|
+
yPt: z.number()
|
|
468
|
+
}), z.object({
|
|
469
|
+
kind: z.literal("cubic"),
|
|
470
|
+
c1xPt: z.number(),
|
|
471
|
+
c1yPt: z.number(),
|
|
472
|
+
c2xPt: z.number(),
|
|
473
|
+
c2yPt: z.number(),
|
|
474
|
+
xPt: z.number(),
|
|
475
|
+
yPt: z.number()
|
|
476
|
+
})]);
|
|
477
|
+
const LayoutSubpathSchema = z.object({
|
|
478
|
+
startXPt: z.number(),
|
|
479
|
+
startYPt: z.number(),
|
|
480
|
+
segments: z.array(LayoutPathSegmentSchema),
|
|
481
|
+
closed: z.boolean()
|
|
482
|
+
});
|
|
483
|
+
const LayoutPathSchema = z.object({
|
|
484
|
+
kind: z.literal("path"),
|
|
485
|
+
subpaths: z.array(LayoutSubpathSchema),
|
|
486
|
+
fill: ColorSchema.optional(),
|
|
487
|
+
fillRule: z.enum(["nonzero", "evenodd"]).optional(),
|
|
488
|
+
stroke: z.object({
|
|
489
|
+
color: ColorSchema,
|
|
490
|
+
widthPt: z.number().positive()
|
|
491
|
+
}).optional(),
|
|
492
|
+
sourcePath: z.string().optional()
|
|
493
|
+
});
|
|
464
494
|
const LayoutLinkSchema = z.object({
|
|
465
495
|
kind: z.literal("link"),
|
|
466
496
|
uri: z.string(),
|
|
@@ -476,6 +506,7 @@ const LayoutItemSchema = z.discriminatedUnion("kind", [
|
|
|
476
506
|
LayoutRectSchema,
|
|
477
507
|
LayoutLineSchema,
|
|
478
508
|
LayoutEllipseSchema,
|
|
509
|
+
LayoutPathSchema,
|
|
479
510
|
LayoutLinkSchema
|
|
480
511
|
]);
|
|
481
512
|
const LayoutPageSchema = z.object({
|
|
@@ -497,4 +528,4 @@ const LayoutDocumentSchema = z.object({
|
|
|
497
528
|
images: z.record(z.string(), LayoutImageAssetSchema)
|
|
498
529
|
});
|
|
499
530
|
//#endregion
|
|
500
|
-
export { AlignmentSchema, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, ColorSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, LayoutEllipseSchema, LayoutFontSchema, LayoutImageAssetSchema, LayoutImageSchema, LayoutItemSchema, LayoutLineSchema, LayoutLinkSchema, LayoutMetadataSchema, LayoutPageSchema, LayoutRectSchema, LayoutTextSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
|
531
|
+
export { AlignmentSchema, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, ColorSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, LayoutEllipseSchema, LayoutFontSchema, LayoutImageAssetSchema, LayoutImageSchema, LayoutItemSchema, LayoutLineSchema, LayoutLinkSchema, LayoutMetadataSchema, LayoutPageSchema, LayoutPathSchema, LayoutPathSegmentSchema, LayoutRectSchema, LayoutSubpathSchema, LayoutTextSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-content-model",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The canonical, format-agnostic content and layout schemas shared by ooxml.js, odf.js, and documents.js -- pure Zod schemas, no behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|