document-model.js 2.7.16 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -4
- package/dist/content-json-schema-defs.cjs +67 -6
- package/dist/content-json-schema-defs.js +67 -6
- package/dist/content.cjs +34 -17
- package/dist/content.d.cts +261 -8
- package/dist/content.d.ts +261 -8
- package/dist/content.js +35 -19
- package/dist/{geometry-rj_ACBLD.d.cts → geometry-CvcjSwnA.d.cts} +9 -1
- package/dist/{geometry-rj_ACBLD.d.ts → geometry-CvcjSwnA.d.ts} +9 -1
- package/dist/geometry.cjs +8 -0
- package/dist/geometry.d.cts +2 -2
- package/dist/geometry.d.ts +2 -2
- package/dist/geometry.js +8 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/package.cjs +4 -4
- package/dist/package.d.cts +74 -181
- package/dist/package.d.ts +74 -181
- package/dist/package.js +4 -4
- package/dist/schema-io.cjs +1 -1
- package/dist/schema-io.js +1 -1
- package/package.json +1 -1
- package/schemas/content-document.schema.json +402 -8
- package/schemas/document-package.schema.json +23 -5
- package/schemas/layout-document.schema.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.0.0/schemas/content-document.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"formatVersion": {
|
|
13
13
|
"type": "number",
|
|
14
|
-
"const":
|
|
14
|
+
"const": 3
|
|
15
15
|
},
|
|
16
16
|
"metadata": {
|
|
17
17
|
"type": "object",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
"formatVersion": {
|
|
132
132
|
"type": "number",
|
|
133
|
-
"const":
|
|
133
|
+
"const": 3
|
|
134
134
|
},
|
|
135
135
|
"metadata": {
|
|
136
136
|
"type": "object",
|
|
@@ -255,6 +255,41 @@
|
|
|
255
255
|
"sourcePath": {
|
|
256
256
|
"type": "string"
|
|
257
257
|
},
|
|
258
|
+
"frames": {
|
|
259
|
+
"type": "array",
|
|
260
|
+
"items": {
|
|
261
|
+
"type": "object",
|
|
262
|
+
"properties": {
|
|
263
|
+
"pageIndex": {
|
|
264
|
+
"type": "integer",
|
|
265
|
+
"minimum": 0,
|
|
266
|
+
"maximum": 9007199254740991
|
|
267
|
+
},
|
|
268
|
+
"xPt": {
|
|
269
|
+
"type": "number"
|
|
270
|
+
},
|
|
271
|
+
"yPt": {
|
|
272
|
+
"type": "number"
|
|
273
|
+
},
|
|
274
|
+
"widthPt": {
|
|
275
|
+
"type": "number",
|
|
276
|
+
"minimum": 0
|
|
277
|
+
},
|
|
278
|
+
"heightPt": {
|
|
279
|
+
"type": "number",
|
|
280
|
+
"minimum": 0
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"required": [
|
|
284
|
+
"pageIndex",
|
|
285
|
+
"xPt",
|
|
286
|
+
"yPt",
|
|
287
|
+
"widthPt",
|
|
288
|
+
"heightPt"
|
|
289
|
+
],
|
|
290
|
+
"additionalProperties": false
|
|
291
|
+
}
|
|
292
|
+
},
|
|
258
293
|
"blocks": {
|
|
259
294
|
"type": "array",
|
|
260
295
|
"items": {
|
|
@@ -303,7 +338,7 @@
|
|
|
303
338
|
},
|
|
304
339
|
"formatVersion": {
|
|
305
340
|
"type": "number",
|
|
306
|
-
"const":
|
|
341
|
+
"const": 3
|
|
307
342
|
},
|
|
308
343
|
"metadata": {
|
|
309
344
|
"type": "object",
|
|
@@ -610,6 +645,41 @@
|
|
|
610
645
|
},
|
|
611
646
|
"sourcePath": {
|
|
612
647
|
"type": "string"
|
|
648
|
+
},
|
|
649
|
+
"frames": {
|
|
650
|
+
"type": "array",
|
|
651
|
+
"items": {
|
|
652
|
+
"type": "object",
|
|
653
|
+
"properties": {
|
|
654
|
+
"pageIndex": {
|
|
655
|
+
"type": "integer",
|
|
656
|
+
"minimum": 0,
|
|
657
|
+
"maximum": 9007199254740991
|
|
658
|
+
},
|
|
659
|
+
"xPt": {
|
|
660
|
+
"type": "number"
|
|
661
|
+
},
|
|
662
|
+
"yPt": {
|
|
663
|
+
"type": "number"
|
|
664
|
+
},
|
|
665
|
+
"widthPt": {
|
|
666
|
+
"type": "number",
|
|
667
|
+
"minimum": 0
|
|
668
|
+
},
|
|
669
|
+
"heightPt": {
|
|
670
|
+
"type": "number",
|
|
671
|
+
"minimum": 0
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": [
|
|
675
|
+
"pageIndex",
|
|
676
|
+
"xPt",
|
|
677
|
+
"yPt",
|
|
678
|
+
"widthPt",
|
|
679
|
+
"heightPt"
|
|
680
|
+
],
|
|
681
|
+
"additionalProperties": false
|
|
682
|
+
}
|
|
613
683
|
}
|
|
614
684
|
},
|
|
615
685
|
"required": [
|
|
@@ -875,6 +945,41 @@
|
|
|
875
945
|
},
|
|
876
946
|
"sourcePath": {
|
|
877
947
|
"type": "string"
|
|
948
|
+
},
|
|
949
|
+
"frames": {
|
|
950
|
+
"type": "array",
|
|
951
|
+
"items": {
|
|
952
|
+
"type": "object",
|
|
953
|
+
"properties": {
|
|
954
|
+
"pageIndex": {
|
|
955
|
+
"type": "integer",
|
|
956
|
+
"minimum": 0,
|
|
957
|
+
"maximum": 9007199254740991
|
|
958
|
+
},
|
|
959
|
+
"xPt": {
|
|
960
|
+
"type": "number"
|
|
961
|
+
},
|
|
962
|
+
"yPt": {
|
|
963
|
+
"type": "number"
|
|
964
|
+
},
|
|
965
|
+
"widthPt": {
|
|
966
|
+
"type": "number",
|
|
967
|
+
"minimum": 0
|
|
968
|
+
},
|
|
969
|
+
"heightPt": {
|
|
970
|
+
"type": "number",
|
|
971
|
+
"minimum": 0
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
"required": [
|
|
975
|
+
"pageIndex",
|
|
976
|
+
"xPt",
|
|
977
|
+
"yPt",
|
|
978
|
+
"widthPt",
|
|
979
|
+
"heightPt"
|
|
980
|
+
],
|
|
981
|
+
"additionalProperties": false
|
|
982
|
+
}
|
|
878
983
|
}
|
|
879
984
|
},
|
|
880
985
|
"required": [
|
|
@@ -967,6 +1072,41 @@
|
|
|
967
1072
|
"sourcePath": {
|
|
968
1073
|
"type": "string"
|
|
969
1074
|
},
|
|
1075
|
+
"frames": {
|
|
1076
|
+
"type": "array",
|
|
1077
|
+
"items": {
|
|
1078
|
+
"type": "object",
|
|
1079
|
+
"properties": {
|
|
1080
|
+
"pageIndex": {
|
|
1081
|
+
"type": "integer",
|
|
1082
|
+
"minimum": 0,
|
|
1083
|
+
"maximum": 9007199254740991
|
|
1084
|
+
},
|
|
1085
|
+
"xPt": {
|
|
1086
|
+
"type": "number"
|
|
1087
|
+
},
|
|
1088
|
+
"yPt": {
|
|
1089
|
+
"type": "number"
|
|
1090
|
+
},
|
|
1091
|
+
"widthPt": {
|
|
1092
|
+
"type": "number",
|
|
1093
|
+
"minimum": 0
|
|
1094
|
+
},
|
|
1095
|
+
"heightPt": {
|
|
1096
|
+
"type": "number",
|
|
1097
|
+
"minimum": 0
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"required": [
|
|
1101
|
+
"pageIndex",
|
|
1102
|
+
"xPt",
|
|
1103
|
+
"yPt",
|
|
1104
|
+
"widthPt",
|
|
1105
|
+
"heightPt"
|
|
1106
|
+
],
|
|
1107
|
+
"additionalProperties": false
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
970
1110
|
"anchorRow": {
|
|
971
1111
|
"type": "integer",
|
|
972
1112
|
"minimum": 0,
|
|
@@ -1208,7 +1348,7 @@
|
|
|
1208
1348
|
]
|
|
1209
1349
|
},
|
|
1210
1350
|
"document": {
|
|
1211
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
1351
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.0.0/schemas/content-document.schema.json"
|
|
1212
1352
|
},
|
|
1213
1353
|
"frame": {
|
|
1214
1354
|
"$ref": "#/$defs/Box"
|
|
@@ -1268,7 +1408,7 @@
|
|
|
1268
1408
|
},
|
|
1269
1409
|
"formatVersion": {
|
|
1270
1410
|
"type": "number",
|
|
1271
|
-
"const":
|
|
1411
|
+
"const": 3
|
|
1272
1412
|
},
|
|
1273
1413
|
"metadata": {
|
|
1274
1414
|
"type": "object",
|
|
@@ -1393,6 +1533,41 @@
|
|
|
1393
1533
|
"sourcePath": {
|
|
1394
1534
|
"type": "string"
|
|
1395
1535
|
},
|
|
1536
|
+
"frames": {
|
|
1537
|
+
"type": "array",
|
|
1538
|
+
"items": {
|
|
1539
|
+
"type": "object",
|
|
1540
|
+
"properties": {
|
|
1541
|
+
"pageIndex": {
|
|
1542
|
+
"type": "integer",
|
|
1543
|
+
"minimum": 0,
|
|
1544
|
+
"maximum": 9007199254740991
|
|
1545
|
+
},
|
|
1546
|
+
"xPt": {
|
|
1547
|
+
"type": "number"
|
|
1548
|
+
},
|
|
1549
|
+
"yPt": {
|
|
1550
|
+
"type": "number"
|
|
1551
|
+
},
|
|
1552
|
+
"widthPt": {
|
|
1553
|
+
"type": "number",
|
|
1554
|
+
"minimum": 0
|
|
1555
|
+
},
|
|
1556
|
+
"heightPt": {
|
|
1557
|
+
"type": "number",
|
|
1558
|
+
"minimum": 0
|
|
1559
|
+
}
|
|
1560
|
+
},
|
|
1561
|
+
"required": [
|
|
1562
|
+
"pageIndex",
|
|
1563
|
+
"xPt",
|
|
1564
|
+
"yPt",
|
|
1565
|
+
"widthPt",
|
|
1566
|
+
"heightPt"
|
|
1567
|
+
],
|
|
1568
|
+
"additionalProperties": false
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1396
1571
|
"blocks": {
|
|
1397
1572
|
"type": "array",
|
|
1398
1573
|
"items": {
|
|
@@ -1531,6 +1706,41 @@
|
|
|
1531
1706
|
},
|
|
1532
1707
|
"sourcePath": {
|
|
1533
1708
|
"type": "string"
|
|
1709
|
+
},
|
|
1710
|
+
"frames": {
|
|
1711
|
+
"type": "array",
|
|
1712
|
+
"items": {
|
|
1713
|
+
"type": "object",
|
|
1714
|
+
"properties": {
|
|
1715
|
+
"pageIndex": {
|
|
1716
|
+
"type": "integer",
|
|
1717
|
+
"minimum": 0,
|
|
1718
|
+
"maximum": 9007199254740991
|
|
1719
|
+
},
|
|
1720
|
+
"xPt": {
|
|
1721
|
+
"type": "number"
|
|
1722
|
+
},
|
|
1723
|
+
"yPt": {
|
|
1724
|
+
"type": "number"
|
|
1725
|
+
},
|
|
1726
|
+
"widthPt": {
|
|
1727
|
+
"type": "number",
|
|
1728
|
+
"minimum": 0
|
|
1729
|
+
},
|
|
1730
|
+
"heightPt": {
|
|
1731
|
+
"type": "number",
|
|
1732
|
+
"minimum": 0
|
|
1733
|
+
}
|
|
1734
|
+
},
|
|
1735
|
+
"required": [
|
|
1736
|
+
"pageIndex",
|
|
1737
|
+
"xPt",
|
|
1738
|
+
"yPt",
|
|
1739
|
+
"widthPt",
|
|
1740
|
+
"heightPt"
|
|
1741
|
+
],
|
|
1742
|
+
"additionalProperties": false
|
|
1743
|
+
}
|
|
1534
1744
|
}
|
|
1535
1745
|
},
|
|
1536
1746
|
"required": [
|
|
@@ -1655,6 +1865,41 @@
|
|
|
1655
1865
|
},
|
|
1656
1866
|
"sourcePath": {
|
|
1657
1867
|
"type": "string"
|
|
1868
|
+
},
|
|
1869
|
+
"frames": {
|
|
1870
|
+
"type": "array",
|
|
1871
|
+
"items": {
|
|
1872
|
+
"type": "object",
|
|
1873
|
+
"properties": {
|
|
1874
|
+
"pageIndex": {
|
|
1875
|
+
"type": "integer",
|
|
1876
|
+
"minimum": 0,
|
|
1877
|
+
"maximum": 9007199254740991
|
|
1878
|
+
},
|
|
1879
|
+
"xPt": {
|
|
1880
|
+
"type": "number"
|
|
1881
|
+
},
|
|
1882
|
+
"yPt": {
|
|
1883
|
+
"type": "number"
|
|
1884
|
+
},
|
|
1885
|
+
"widthPt": {
|
|
1886
|
+
"type": "number",
|
|
1887
|
+
"minimum": 0
|
|
1888
|
+
},
|
|
1889
|
+
"heightPt": {
|
|
1890
|
+
"type": "number",
|
|
1891
|
+
"minimum": 0
|
|
1892
|
+
}
|
|
1893
|
+
},
|
|
1894
|
+
"required": [
|
|
1895
|
+
"pageIndex",
|
|
1896
|
+
"xPt",
|
|
1897
|
+
"yPt",
|
|
1898
|
+
"widthPt",
|
|
1899
|
+
"heightPt"
|
|
1900
|
+
],
|
|
1901
|
+
"additionalProperties": false
|
|
1902
|
+
}
|
|
1658
1903
|
}
|
|
1659
1904
|
},
|
|
1660
1905
|
"required": [
|
|
@@ -1756,6 +2001,41 @@
|
|
|
1756
2001
|
},
|
|
1757
2002
|
"sourcePath": {
|
|
1758
2003
|
"type": "string"
|
|
2004
|
+
},
|
|
2005
|
+
"frames": {
|
|
2006
|
+
"type": "array",
|
|
2007
|
+
"items": {
|
|
2008
|
+
"type": "object",
|
|
2009
|
+
"properties": {
|
|
2010
|
+
"pageIndex": {
|
|
2011
|
+
"type": "integer",
|
|
2012
|
+
"minimum": 0,
|
|
2013
|
+
"maximum": 9007199254740991
|
|
2014
|
+
},
|
|
2015
|
+
"xPt": {
|
|
2016
|
+
"type": "number"
|
|
2017
|
+
},
|
|
2018
|
+
"yPt": {
|
|
2019
|
+
"type": "number"
|
|
2020
|
+
},
|
|
2021
|
+
"widthPt": {
|
|
2022
|
+
"type": "number",
|
|
2023
|
+
"minimum": 0
|
|
2024
|
+
},
|
|
2025
|
+
"heightPt": {
|
|
2026
|
+
"type": "number",
|
|
2027
|
+
"minimum": 0
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
"required": [
|
|
2031
|
+
"pageIndex",
|
|
2032
|
+
"xPt",
|
|
2033
|
+
"yPt",
|
|
2034
|
+
"widthPt",
|
|
2035
|
+
"heightPt"
|
|
2036
|
+
],
|
|
2037
|
+
"additionalProperties": false
|
|
2038
|
+
}
|
|
1759
2039
|
}
|
|
1760
2040
|
},
|
|
1761
2041
|
"required": [
|
|
@@ -2023,6 +2303,41 @@
|
|
|
2023
2303
|
},
|
|
2024
2304
|
"sourcePath": {
|
|
2025
2305
|
"type": "string"
|
|
2306
|
+
},
|
|
2307
|
+
"frames": {
|
|
2308
|
+
"type": "array",
|
|
2309
|
+
"items": {
|
|
2310
|
+
"type": "object",
|
|
2311
|
+
"properties": {
|
|
2312
|
+
"pageIndex": {
|
|
2313
|
+
"type": "integer",
|
|
2314
|
+
"minimum": 0,
|
|
2315
|
+
"maximum": 9007199254740991
|
|
2316
|
+
},
|
|
2317
|
+
"xPt": {
|
|
2318
|
+
"type": "number"
|
|
2319
|
+
},
|
|
2320
|
+
"yPt": {
|
|
2321
|
+
"type": "number"
|
|
2322
|
+
},
|
|
2323
|
+
"widthPt": {
|
|
2324
|
+
"type": "number",
|
|
2325
|
+
"minimum": 0
|
|
2326
|
+
},
|
|
2327
|
+
"heightPt": {
|
|
2328
|
+
"type": "number",
|
|
2329
|
+
"minimum": 0
|
|
2330
|
+
}
|
|
2331
|
+
},
|
|
2332
|
+
"required": [
|
|
2333
|
+
"pageIndex",
|
|
2334
|
+
"xPt",
|
|
2335
|
+
"yPt",
|
|
2336
|
+
"widthPt",
|
|
2337
|
+
"heightPt"
|
|
2338
|
+
],
|
|
2339
|
+
"additionalProperties": false
|
|
2340
|
+
}
|
|
2026
2341
|
}
|
|
2027
2342
|
},
|
|
2028
2343
|
"required": [
|
|
@@ -2062,7 +2377,7 @@
|
|
|
2062
2377
|
},
|
|
2063
2378
|
"formatVersion": {
|
|
2064
2379
|
"type": "number",
|
|
2065
|
-
"const":
|
|
2380
|
+
"const": 3
|
|
2066
2381
|
},
|
|
2067
2382
|
"metadata": {
|
|
2068
2383
|
"type": "object",
|
|
@@ -2178,6 +2493,38 @@
|
|
|
2178
2493
|
],
|
|
2179
2494
|
"additionalProperties": false
|
|
2180
2495
|
},
|
|
2496
|
+
"LayoutFrame": {
|
|
2497
|
+
"type": "object",
|
|
2498
|
+
"properties": {
|
|
2499
|
+
"pageIndex": {
|
|
2500
|
+
"type": "integer",
|
|
2501
|
+
"minimum": 0,
|
|
2502
|
+
"maximum": 9007199254740991
|
|
2503
|
+
},
|
|
2504
|
+
"xPt": {
|
|
2505
|
+
"type": "number"
|
|
2506
|
+
},
|
|
2507
|
+
"yPt": {
|
|
2508
|
+
"type": "number"
|
|
2509
|
+
},
|
|
2510
|
+
"widthPt": {
|
|
2511
|
+
"type": "number",
|
|
2512
|
+
"minimum": 0
|
|
2513
|
+
},
|
|
2514
|
+
"heightPt": {
|
|
2515
|
+
"type": "number",
|
|
2516
|
+
"minimum": 0
|
|
2517
|
+
}
|
|
2518
|
+
},
|
|
2519
|
+
"required": [
|
|
2520
|
+
"pageIndex",
|
|
2521
|
+
"xPt",
|
|
2522
|
+
"yPt",
|
|
2523
|
+
"widthPt",
|
|
2524
|
+
"heightPt"
|
|
2525
|
+
],
|
|
2526
|
+
"additionalProperties": false
|
|
2527
|
+
},
|
|
2181
2528
|
"Alignment": {
|
|
2182
2529
|
"type": "string",
|
|
2183
2530
|
"enum": [
|
|
@@ -2285,6 +2632,12 @@
|
|
|
2285
2632
|
},
|
|
2286
2633
|
"sourcePath": {
|
|
2287
2634
|
"type": "string"
|
|
2635
|
+
},
|
|
2636
|
+
"frames": {
|
|
2637
|
+
"type": "array",
|
|
2638
|
+
"items": {
|
|
2639
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2640
|
+
}
|
|
2288
2641
|
}
|
|
2289
2642
|
},
|
|
2290
2643
|
"required": [
|
|
@@ -2308,6 +2661,11 @@
|
|
|
2308
2661
|
"styleId": {
|
|
2309
2662
|
"type": "string"
|
|
2310
2663
|
},
|
|
2664
|
+
"headingLevel": {
|
|
2665
|
+
"type": "integer",
|
|
2666
|
+
"exclusiveMinimum": 0,
|
|
2667
|
+
"maximum": 9007199254740991
|
|
2668
|
+
},
|
|
2311
2669
|
"alignment": {
|
|
2312
2670
|
"$ref": "#/$defs/Alignment"
|
|
2313
2671
|
},
|
|
@@ -2332,6 +2690,12 @@
|
|
|
2332
2690
|
},
|
|
2333
2691
|
"sourcePath": {
|
|
2334
2692
|
"type": "string"
|
|
2693
|
+
},
|
|
2694
|
+
"frames": {
|
|
2695
|
+
"type": "array",
|
|
2696
|
+
"items": {
|
|
2697
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2698
|
+
}
|
|
2335
2699
|
}
|
|
2336
2700
|
},
|
|
2337
2701
|
"required": [
|
|
@@ -2370,6 +2734,12 @@
|
|
|
2370
2734
|
},
|
|
2371
2735
|
"sourcePath": {
|
|
2372
2736
|
"type": "string"
|
|
2737
|
+
},
|
|
2738
|
+
"frames": {
|
|
2739
|
+
"type": "array",
|
|
2740
|
+
"items": {
|
|
2741
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2742
|
+
}
|
|
2373
2743
|
}
|
|
2374
2744
|
},
|
|
2375
2745
|
"required": [
|
|
@@ -2390,6 +2760,12 @@
|
|
|
2390
2760
|
},
|
|
2391
2761
|
"sourcePath": {
|
|
2392
2762
|
"type": "string"
|
|
2763
|
+
},
|
|
2764
|
+
"frames": {
|
|
2765
|
+
"type": "array",
|
|
2766
|
+
"items": {
|
|
2767
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2768
|
+
}
|
|
2393
2769
|
}
|
|
2394
2770
|
},
|
|
2395
2771
|
"required": [
|
|
@@ -2424,6 +2800,12 @@
|
|
|
2424
2800
|
},
|
|
2425
2801
|
"sourcePath": {
|
|
2426
2802
|
"type": "string"
|
|
2803
|
+
},
|
|
2804
|
+
"frames": {
|
|
2805
|
+
"type": "array",
|
|
2806
|
+
"items": {
|
|
2807
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2808
|
+
}
|
|
2427
2809
|
}
|
|
2428
2810
|
},
|
|
2429
2811
|
"required": [
|
|
@@ -2472,6 +2854,12 @@
|
|
|
2472
2854
|
},
|
|
2473
2855
|
"sourcePath": {
|
|
2474
2856
|
"type": "string"
|
|
2857
|
+
},
|
|
2858
|
+
"frames": {
|
|
2859
|
+
"type": "array",
|
|
2860
|
+
"items": {
|
|
2861
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2862
|
+
}
|
|
2475
2863
|
}
|
|
2476
2864
|
},
|
|
2477
2865
|
"required": [
|
|
@@ -2499,7 +2887,7 @@
|
|
|
2499
2887
|
]
|
|
2500
2888
|
},
|
|
2501
2889
|
"document": {
|
|
2502
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
2890
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.0.0/schemas/content-document.schema.json"
|
|
2503
2891
|
},
|
|
2504
2892
|
"frame": {
|
|
2505
2893
|
"$ref": "#/$defs/Box"
|
|
@@ -2507,6 +2895,12 @@
|
|
|
2507
2895
|
"sourcePath": {
|
|
2508
2896
|
"type": "string"
|
|
2509
2897
|
},
|
|
2898
|
+
"frames": {
|
|
2899
|
+
"type": "array",
|
|
2900
|
+
"items": {
|
|
2901
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2902
|
+
}
|
|
2903
|
+
},
|
|
2510
2904
|
"anchorRow": {
|
|
2511
2905
|
"type": "integer",
|
|
2512
2906
|
"minimum": 0,
|
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.0.0/schemas/document-package.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"formatVersion": {
|
|
7
7
|
"type": "number",
|
|
8
|
-
"const":
|
|
8
|
+
"const": 2
|
|
9
9
|
},
|
|
10
10
|
"content": {
|
|
11
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
11
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.0.0/schemas/content-document.schema.json"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"pages": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"widthPt": {
|
|
19
|
+
"type": "number",
|
|
20
|
+
"exclusiveMinimum": 0
|
|
21
|
+
},
|
|
22
|
+
"heightPt": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"exclusiveMinimum": 0
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"widthPt",
|
|
29
|
+
"heightPt"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
15
33
|
}
|
|
16
34
|
},
|
|
17
35
|
"required": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.0.0/schemas/layout-document.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"formatVersion": {
|