document-model.js 2.7.17 → 3.1.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 +45 -17
- package/dist/content.d.cts +298 -8
- package/dist/content.d.ts +298 -8
- package/dist/content.js +45 -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 +3 -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 +83 -181
- package/dist/package.d.ts +83 -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 +438 -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.1.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": [
|
|
@@ -873,8 +943,79 @@
|
|
|
873
943
|
"bottom"
|
|
874
944
|
]
|
|
875
945
|
},
|
|
946
|
+
"comment": {
|
|
947
|
+
"type": "object",
|
|
948
|
+
"properties": {
|
|
949
|
+
"text": {
|
|
950
|
+
"type": "string"
|
|
951
|
+
},
|
|
952
|
+
"author": {
|
|
953
|
+
"type": "string"
|
|
954
|
+
},
|
|
955
|
+
"createdAt": {
|
|
956
|
+
"type": "string"
|
|
957
|
+
},
|
|
958
|
+
"replies": {
|
|
959
|
+
"type": "array",
|
|
960
|
+
"items": {
|
|
961
|
+
"type": "object",
|
|
962
|
+
"properties": {
|
|
963
|
+
"text": {
|
|
964
|
+
"type": "string"
|
|
965
|
+
},
|
|
966
|
+
"author": {
|
|
967
|
+
"type": "string"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
"required": [
|
|
971
|
+
"text"
|
|
972
|
+
],
|
|
973
|
+
"additionalProperties": false
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"required": [
|
|
978
|
+
"text"
|
|
979
|
+
],
|
|
980
|
+
"additionalProperties": false
|
|
981
|
+
},
|
|
876
982
|
"sourcePath": {
|
|
877
983
|
"type": "string"
|
|
984
|
+
},
|
|
985
|
+
"frames": {
|
|
986
|
+
"type": "array",
|
|
987
|
+
"items": {
|
|
988
|
+
"type": "object",
|
|
989
|
+
"properties": {
|
|
990
|
+
"pageIndex": {
|
|
991
|
+
"type": "integer",
|
|
992
|
+
"minimum": 0,
|
|
993
|
+
"maximum": 9007199254740991
|
|
994
|
+
},
|
|
995
|
+
"xPt": {
|
|
996
|
+
"type": "number"
|
|
997
|
+
},
|
|
998
|
+
"yPt": {
|
|
999
|
+
"type": "number"
|
|
1000
|
+
},
|
|
1001
|
+
"widthPt": {
|
|
1002
|
+
"type": "number",
|
|
1003
|
+
"minimum": 0
|
|
1004
|
+
},
|
|
1005
|
+
"heightPt": {
|
|
1006
|
+
"type": "number",
|
|
1007
|
+
"minimum": 0
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"required": [
|
|
1011
|
+
"pageIndex",
|
|
1012
|
+
"xPt",
|
|
1013
|
+
"yPt",
|
|
1014
|
+
"widthPt",
|
|
1015
|
+
"heightPt"
|
|
1016
|
+
],
|
|
1017
|
+
"additionalProperties": false
|
|
1018
|
+
}
|
|
878
1019
|
}
|
|
879
1020
|
},
|
|
880
1021
|
"required": [
|
|
@@ -967,6 +1108,41 @@
|
|
|
967
1108
|
"sourcePath": {
|
|
968
1109
|
"type": "string"
|
|
969
1110
|
},
|
|
1111
|
+
"frames": {
|
|
1112
|
+
"type": "array",
|
|
1113
|
+
"items": {
|
|
1114
|
+
"type": "object",
|
|
1115
|
+
"properties": {
|
|
1116
|
+
"pageIndex": {
|
|
1117
|
+
"type": "integer",
|
|
1118
|
+
"minimum": 0,
|
|
1119
|
+
"maximum": 9007199254740991
|
|
1120
|
+
},
|
|
1121
|
+
"xPt": {
|
|
1122
|
+
"type": "number"
|
|
1123
|
+
},
|
|
1124
|
+
"yPt": {
|
|
1125
|
+
"type": "number"
|
|
1126
|
+
},
|
|
1127
|
+
"widthPt": {
|
|
1128
|
+
"type": "number",
|
|
1129
|
+
"minimum": 0
|
|
1130
|
+
},
|
|
1131
|
+
"heightPt": {
|
|
1132
|
+
"type": "number",
|
|
1133
|
+
"minimum": 0
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
"required": [
|
|
1137
|
+
"pageIndex",
|
|
1138
|
+
"xPt",
|
|
1139
|
+
"yPt",
|
|
1140
|
+
"widthPt",
|
|
1141
|
+
"heightPt"
|
|
1142
|
+
],
|
|
1143
|
+
"additionalProperties": false
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
970
1146
|
"anchorRow": {
|
|
971
1147
|
"type": "integer",
|
|
972
1148
|
"minimum": 0,
|
|
@@ -1208,7 +1384,7 @@
|
|
|
1208
1384
|
]
|
|
1209
1385
|
},
|
|
1210
1386
|
"document": {
|
|
1211
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
1387
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.1.0/schemas/content-document.schema.json"
|
|
1212
1388
|
},
|
|
1213
1389
|
"frame": {
|
|
1214
1390
|
"$ref": "#/$defs/Box"
|
|
@@ -1268,7 +1444,7 @@
|
|
|
1268
1444
|
},
|
|
1269
1445
|
"formatVersion": {
|
|
1270
1446
|
"type": "number",
|
|
1271
|
-
"const":
|
|
1447
|
+
"const": 3
|
|
1272
1448
|
},
|
|
1273
1449
|
"metadata": {
|
|
1274
1450
|
"type": "object",
|
|
@@ -1393,6 +1569,41 @@
|
|
|
1393
1569
|
"sourcePath": {
|
|
1394
1570
|
"type": "string"
|
|
1395
1571
|
},
|
|
1572
|
+
"frames": {
|
|
1573
|
+
"type": "array",
|
|
1574
|
+
"items": {
|
|
1575
|
+
"type": "object",
|
|
1576
|
+
"properties": {
|
|
1577
|
+
"pageIndex": {
|
|
1578
|
+
"type": "integer",
|
|
1579
|
+
"minimum": 0,
|
|
1580
|
+
"maximum": 9007199254740991
|
|
1581
|
+
},
|
|
1582
|
+
"xPt": {
|
|
1583
|
+
"type": "number"
|
|
1584
|
+
},
|
|
1585
|
+
"yPt": {
|
|
1586
|
+
"type": "number"
|
|
1587
|
+
},
|
|
1588
|
+
"widthPt": {
|
|
1589
|
+
"type": "number",
|
|
1590
|
+
"minimum": 0
|
|
1591
|
+
},
|
|
1592
|
+
"heightPt": {
|
|
1593
|
+
"type": "number",
|
|
1594
|
+
"minimum": 0
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
"required": [
|
|
1598
|
+
"pageIndex",
|
|
1599
|
+
"xPt",
|
|
1600
|
+
"yPt",
|
|
1601
|
+
"widthPt",
|
|
1602
|
+
"heightPt"
|
|
1603
|
+
],
|
|
1604
|
+
"additionalProperties": false
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1396
1607
|
"blocks": {
|
|
1397
1608
|
"type": "array",
|
|
1398
1609
|
"items": {
|
|
@@ -1531,6 +1742,41 @@
|
|
|
1531
1742
|
},
|
|
1532
1743
|
"sourcePath": {
|
|
1533
1744
|
"type": "string"
|
|
1745
|
+
},
|
|
1746
|
+
"frames": {
|
|
1747
|
+
"type": "array",
|
|
1748
|
+
"items": {
|
|
1749
|
+
"type": "object",
|
|
1750
|
+
"properties": {
|
|
1751
|
+
"pageIndex": {
|
|
1752
|
+
"type": "integer",
|
|
1753
|
+
"minimum": 0,
|
|
1754
|
+
"maximum": 9007199254740991
|
|
1755
|
+
},
|
|
1756
|
+
"xPt": {
|
|
1757
|
+
"type": "number"
|
|
1758
|
+
},
|
|
1759
|
+
"yPt": {
|
|
1760
|
+
"type": "number"
|
|
1761
|
+
},
|
|
1762
|
+
"widthPt": {
|
|
1763
|
+
"type": "number",
|
|
1764
|
+
"minimum": 0
|
|
1765
|
+
},
|
|
1766
|
+
"heightPt": {
|
|
1767
|
+
"type": "number",
|
|
1768
|
+
"minimum": 0
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
"required": [
|
|
1772
|
+
"pageIndex",
|
|
1773
|
+
"xPt",
|
|
1774
|
+
"yPt",
|
|
1775
|
+
"widthPt",
|
|
1776
|
+
"heightPt"
|
|
1777
|
+
],
|
|
1778
|
+
"additionalProperties": false
|
|
1779
|
+
}
|
|
1534
1780
|
}
|
|
1535
1781
|
},
|
|
1536
1782
|
"required": [
|
|
@@ -1655,6 +1901,41 @@
|
|
|
1655
1901
|
},
|
|
1656
1902
|
"sourcePath": {
|
|
1657
1903
|
"type": "string"
|
|
1904
|
+
},
|
|
1905
|
+
"frames": {
|
|
1906
|
+
"type": "array",
|
|
1907
|
+
"items": {
|
|
1908
|
+
"type": "object",
|
|
1909
|
+
"properties": {
|
|
1910
|
+
"pageIndex": {
|
|
1911
|
+
"type": "integer",
|
|
1912
|
+
"minimum": 0,
|
|
1913
|
+
"maximum": 9007199254740991
|
|
1914
|
+
},
|
|
1915
|
+
"xPt": {
|
|
1916
|
+
"type": "number"
|
|
1917
|
+
},
|
|
1918
|
+
"yPt": {
|
|
1919
|
+
"type": "number"
|
|
1920
|
+
},
|
|
1921
|
+
"widthPt": {
|
|
1922
|
+
"type": "number",
|
|
1923
|
+
"minimum": 0
|
|
1924
|
+
},
|
|
1925
|
+
"heightPt": {
|
|
1926
|
+
"type": "number",
|
|
1927
|
+
"minimum": 0
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
"required": [
|
|
1931
|
+
"pageIndex",
|
|
1932
|
+
"xPt",
|
|
1933
|
+
"yPt",
|
|
1934
|
+
"widthPt",
|
|
1935
|
+
"heightPt"
|
|
1936
|
+
],
|
|
1937
|
+
"additionalProperties": false
|
|
1938
|
+
}
|
|
1658
1939
|
}
|
|
1659
1940
|
},
|
|
1660
1941
|
"required": [
|
|
@@ -1756,6 +2037,41 @@
|
|
|
1756
2037
|
},
|
|
1757
2038
|
"sourcePath": {
|
|
1758
2039
|
"type": "string"
|
|
2040
|
+
},
|
|
2041
|
+
"frames": {
|
|
2042
|
+
"type": "array",
|
|
2043
|
+
"items": {
|
|
2044
|
+
"type": "object",
|
|
2045
|
+
"properties": {
|
|
2046
|
+
"pageIndex": {
|
|
2047
|
+
"type": "integer",
|
|
2048
|
+
"minimum": 0,
|
|
2049
|
+
"maximum": 9007199254740991
|
|
2050
|
+
},
|
|
2051
|
+
"xPt": {
|
|
2052
|
+
"type": "number"
|
|
2053
|
+
},
|
|
2054
|
+
"yPt": {
|
|
2055
|
+
"type": "number"
|
|
2056
|
+
},
|
|
2057
|
+
"widthPt": {
|
|
2058
|
+
"type": "number",
|
|
2059
|
+
"minimum": 0
|
|
2060
|
+
},
|
|
2061
|
+
"heightPt": {
|
|
2062
|
+
"type": "number",
|
|
2063
|
+
"minimum": 0
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
"required": [
|
|
2067
|
+
"pageIndex",
|
|
2068
|
+
"xPt",
|
|
2069
|
+
"yPt",
|
|
2070
|
+
"widthPt",
|
|
2071
|
+
"heightPt"
|
|
2072
|
+
],
|
|
2073
|
+
"additionalProperties": false
|
|
2074
|
+
}
|
|
1759
2075
|
}
|
|
1760
2076
|
},
|
|
1761
2077
|
"required": [
|
|
@@ -2023,6 +2339,41 @@
|
|
|
2023
2339
|
},
|
|
2024
2340
|
"sourcePath": {
|
|
2025
2341
|
"type": "string"
|
|
2342
|
+
},
|
|
2343
|
+
"frames": {
|
|
2344
|
+
"type": "array",
|
|
2345
|
+
"items": {
|
|
2346
|
+
"type": "object",
|
|
2347
|
+
"properties": {
|
|
2348
|
+
"pageIndex": {
|
|
2349
|
+
"type": "integer",
|
|
2350
|
+
"minimum": 0,
|
|
2351
|
+
"maximum": 9007199254740991
|
|
2352
|
+
},
|
|
2353
|
+
"xPt": {
|
|
2354
|
+
"type": "number"
|
|
2355
|
+
},
|
|
2356
|
+
"yPt": {
|
|
2357
|
+
"type": "number"
|
|
2358
|
+
},
|
|
2359
|
+
"widthPt": {
|
|
2360
|
+
"type": "number",
|
|
2361
|
+
"minimum": 0
|
|
2362
|
+
},
|
|
2363
|
+
"heightPt": {
|
|
2364
|
+
"type": "number",
|
|
2365
|
+
"minimum": 0
|
|
2366
|
+
}
|
|
2367
|
+
},
|
|
2368
|
+
"required": [
|
|
2369
|
+
"pageIndex",
|
|
2370
|
+
"xPt",
|
|
2371
|
+
"yPt",
|
|
2372
|
+
"widthPt",
|
|
2373
|
+
"heightPt"
|
|
2374
|
+
],
|
|
2375
|
+
"additionalProperties": false
|
|
2376
|
+
}
|
|
2026
2377
|
}
|
|
2027
2378
|
},
|
|
2028
2379
|
"required": [
|
|
@@ -2062,7 +2413,7 @@
|
|
|
2062
2413
|
},
|
|
2063
2414
|
"formatVersion": {
|
|
2064
2415
|
"type": "number",
|
|
2065
|
-
"const":
|
|
2416
|
+
"const": 3
|
|
2066
2417
|
},
|
|
2067
2418
|
"metadata": {
|
|
2068
2419
|
"type": "object",
|
|
@@ -2178,6 +2529,38 @@
|
|
|
2178
2529
|
],
|
|
2179
2530
|
"additionalProperties": false
|
|
2180
2531
|
},
|
|
2532
|
+
"LayoutFrame": {
|
|
2533
|
+
"type": "object",
|
|
2534
|
+
"properties": {
|
|
2535
|
+
"pageIndex": {
|
|
2536
|
+
"type": "integer",
|
|
2537
|
+
"minimum": 0,
|
|
2538
|
+
"maximum": 9007199254740991
|
|
2539
|
+
},
|
|
2540
|
+
"xPt": {
|
|
2541
|
+
"type": "number"
|
|
2542
|
+
},
|
|
2543
|
+
"yPt": {
|
|
2544
|
+
"type": "number"
|
|
2545
|
+
},
|
|
2546
|
+
"widthPt": {
|
|
2547
|
+
"type": "number",
|
|
2548
|
+
"minimum": 0
|
|
2549
|
+
},
|
|
2550
|
+
"heightPt": {
|
|
2551
|
+
"type": "number",
|
|
2552
|
+
"minimum": 0
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
"required": [
|
|
2556
|
+
"pageIndex",
|
|
2557
|
+
"xPt",
|
|
2558
|
+
"yPt",
|
|
2559
|
+
"widthPt",
|
|
2560
|
+
"heightPt"
|
|
2561
|
+
],
|
|
2562
|
+
"additionalProperties": false
|
|
2563
|
+
},
|
|
2181
2564
|
"Alignment": {
|
|
2182
2565
|
"type": "string",
|
|
2183
2566
|
"enum": [
|
|
@@ -2285,6 +2668,12 @@
|
|
|
2285
2668
|
},
|
|
2286
2669
|
"sourcePath": {
|
|
2287
2670
|
"type": "string"
|
|
2671
|
+
},
|
|
2672
|
+
"frames": {
|
|
2673
|
+
"type": "array",
|
|
2674
|
+
"items": {
|
|
2675
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2676
|
+
}
|
|
2288
2677
|
}
|
|
2289
2678
|
},
|
|
2290
2679
|
"required": [
|
|
@@ -2308,6 +2697,11 @@
|
|
|
2308
2697
|
"styleId": {
|
|
2309
2698
|
"type": "string"
|
|
2310
2699
|
},
|
|
2700
|
+
"headingLevel": {
|
|
2701
|
+
"type": "integer",
|
|
2702
|
+
"exclusiveMinimum": 0,
|
|
2703
|
+
"maximum": 9007199254740991
|
|
2704
|
+
},
|
|
2311
2705
|
"alignment": {
|
|
2312
2706
|
"$ref": "#/$defs/Alignment"
|
|
2313
2707
|
},
|
|
@@ -2332,6 +2726,12 @@
|
|
|
2332
2726
|
},
|
|
2333
2727
|
"sourcePath": {
|
|
2334
2728
|
"type": "string"
|
|
2729
|
+
},
|
|
2730
|
+
"frames": {
|
|
2731
|
+
"type": "array",
|
|
2732
|
+
"items": {
|
|
2733
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2734
|
+
}
|
|
2335
2735
|
}
|
|
2336
2736
|
},
|
|
2337
2737
|
"required": [
|
|
@@ -2370,6 +2770,12 @@
|
|
|
2370
2770
|
},
|
|
2371
2771
|
"sourcePath": {
|
|
2372
2772
|
"type": "string"
|
|
2773
|
+
},
|
|
2774
|
+
"frames": {
|
|
2775
|
+
"type": "array",
|
|
2776
|
+
"items": {
|
|
2777
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2778
|
+
}
|
|
2373
2779
|
}
|
|
2374
2780
|
},
|
|
2375
2781
|
"required": [
|
|
@@ -2390,6 +2796,12 @@
|
|
|
2390
2796
|
},
|
|
2391
2797
|
"sourcePath": {
|
|
2392
2798
|
"type": "string"
|
|
2799
|
+
},
|
|
2800
|
+
"frames": {
|
|
2801
|
+
"type": "array",
|
|
2802
|
+
"items": {
|
|
2803
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2804
|
+
}
|
|
2393
2805
|
}
|
|
2394
2806
|
},
|
|
2395
2807
|
"required": [
|
|
@@ -2424,6 +2836,12 @@
|
|
|
2424
2836
|
},
|
|
2425
2837
|
"sourcePath": {
|
|
2426
2838
|
"type": "string"
|
|
2839
|
+
},
|
|
2840
|
+
"frames": {
|
|
2841
|
+
"type": "array",
|
|
2842
|
+
"items": {
|
|
2843
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2844
|
+
}
|
|
2427
2845
|
}
|
|
2428
2846
|
},
|
|
2429
2847
|
"required": [
|
|
@@ -2472,6 +2890,12 @@
|
|
|
2472
2890
|
},
|
|
2473
2891
|
"sourcePath": {
|
|
2474
2892
|
"type": "string"
|
|
2893
|
+
},
|
|
2894
|
+
"frames": {
|
|
2895
|
+
"type": "array",
|
|
2896
|
+
"items": {
|
|
2897
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2898
|
+
}
|
|
2475
2899
|
}
|
|
2476
2900
|
},
|
|
2477
2901
|
"required": [
|
|
@@ -2499,7 +2923,7 @@
|
|
|
2499
2923
|
]
|
|
2500
2924
|
},
|
|
2501
2925
|
"document": {
|
|
2502
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
2926
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.1.0/schemas/content-document.schema.json"
|
|
2503
2927
|
},
|
|
2504
2928
|
"frame": {
|
|
2505
2929
|
"$ref": "#/$defs/Box"
|
|
@@ -2507,6 +2931,12 @@
|
|
|
2507
2931
|
"sourcePath": {
|
|
2508
2932
|
"type": "string"
|
|
2509
2933
|
},
|
|
2934
|
+
"frames": {
|
|
2935
|
+
"type": "array",
|
|
2936
|
+
"items": {
|
|
2937
|
+
"$ref": "#/$defs/LayoutFrame"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2510
2940
|
"anchorRow": {
|
|
2511
2941
|
"type": "integer",
|
|
2512
2942
|
"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.1.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.1.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.1.0/schemas/layout-document.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"formatVersion": {
|