document-schema 7.15.2 → 7.16.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/bijection-constructs-3By08A5K.cjs +14695 -0
- package/dist/bijection-constructs-DlP29TpB.js +14624 -0
- package/dist/bijection-constructs.cjs +4 -0
- package/dist/bijection-constructs.d.cts +6 -0
- package/dist/bijection-constructs.d.ts +6 -0
- package/dist/bijection-constructs.js +2 -0
- package/dist/bijection-corpus.cjs +12 -0
- package/dist/bijection-corpus.d.cts +46 -0
- package/dist/bijection-corpus.d.ts +46 -0
- package/dist/bijection-corpus.js +2 -0
- package/dist/codec.d.cts +3 -3
- package/dist/codec.d.ts +3 -3
- package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
- package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-Dg9cb8mF.d.cts → content-DQui8vwD.d.cts} +7925 -6159
- package/dist/{content-BMrK9SrW.d.ts → content-DaST7v0K.d.ts} +7925 -6159
- package/dist/content-drawing-DAC7_N1K.d.cts +1606 -0
- package/dist/content-drawing-DNxYhY-G.d.ts +1606 -0
- package/dist/content-drawing.cjs +186 -0
- package/dist/content-drawing.d.cts +2 -0
- package/dist/content-drawing.d.ts +2 -0
- package/dist/content-drawing.js +171 -0
- package/dist/content-json-schema-defs.cjs +29 -3035
- package/dist/content-json-schema-defs.d.cts +2 -6
- package/dist/content-json-schema-defs.d.ts +2 -6
- package/dist/content-json-schema-defs.js +30 -3033
- package/dist/content-sheet.cjs +408 -0
- package/dist/content-sheet.d.cts +2 -0
- package/dist/content-sheet.d.ts +2 -0
- package/dist/content-sheet.js +385 -0
- package/dist/content-vocabulary.cjs +190 -0
- package/dist/content-vocabulary.d.cts +2 -0
- package/dist/content-vocabulary.d.ts +2 -0
- package/dist/content-vocabulary.js +168 -0
- package/dist/content.cjs +29 -777
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +10 -701
- package/dist/decompose.cjs +5 -0
- package/dist/decompose.d.cts +5 -3
- package/dist/decompose.d.ts +5 -3
- package/dist/decompose.js +5 -1
- package/dist/definitions.cjs +2 -1
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/definitions.js +2 -1
- package/dist/factor-styles.cjs +2 -0
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +4 -2
- package/dist/flatten.cjs +5 -0
- package/dist/flatten.d.cts +3 -2
- package/dist/flatten.d.ts +3 -2
- package/dist/flatten.js +5 -1
- package/dist/index.cjs +71 -67
- package/dist/index.d.cts +13 -11
- package/dist/index.d.ts +13 -11
- package/dist/index.js +12 -12
- package/dist/json-schema-defs-blocks.cjs +1036 -0
- package/dist/json-schema-defs-blocks.d.cts +5 -0
- package/dist/json-schema-defs-blocks.d.ts +5 -0
- package/dist/json-schema-defs-blocks.js +1035 -0
- package/dist/json-schema-defs-math.cjs +291 -0
- package/dist/json-schema-defs-math.d.cts +5 -0
- package/dist/json-schema-defs-math.d.ts +5 -0
- package/dist/json-schema-defs-math.js +290 -0
- package/dist/json-schema-defs-shared.cjs +42 -0
- package/dist/json-schema-defs-shared.d.cts +9 -0
- package/dist/json-schema-defs-shared.d.ts +9 -0
- package/dist/json-schema-defs-shared.js +38 -0
- package/dist/json-schema-defs-sheet.cjs +944 -0
- package/dist/json-schema-defs-sheet.d.cts +5 -0
- package/dist/json-schema-defs-sheet.d.ts +5 -0
- package/dist/json-schema-defs-sheet.js +943 -0
- package/dist/json-schema-defs-tree.cjs +237 -0
- package/dist/json-schema-defs-tree.d.cts +5 -0
- package/dist/json-schema-defs-tree.d.ts +5 -0
- package/dist/json-schema-defs-tree.js +237 -0
- package/dist/json-schema-defs-vector.cjs +513 -0
- package/dist/json-schema-defs-vector.d.cts +5 -0
- package/dist/json-schema-defs-vector.d.ts +5 -0
- package/dist/json-schema-defs-vector.js +512 -0
- package/dist/magic-string.es-CB2hOw9v.js +1012 -0
- package/dist/magic-string.es-MEBc20Ce.cjs +1012 -0
- package/dist/{math-BScHxedi.d.cts → math-DdIQCljT.d.cts} +9 -9
- package/dist/{math-BScHxedi.d.ts → math-DdIQCljT.d.ts} +9 -9
- package/dist/math-layout.d.cts +2 -2
- package/dist/math-layout.d.ts +2 -2
- package/dist/math.cjs +7 -5
- package/dist/math.d.cts +1 -1
- package/dist/math.d.ts +1 -1
- package/dist/math.js +7 -5
- package/dist/mathml.cjs +3 -1
- package/dist/mathml.js +3 -1
- package/dist/{package-node-gA3Kpgl2.d.ts → package-node-BMbep0jw.d.ts} +44 -43
- package/dist/{package-node-wxNXHAov.d.cts → package-node-DXhNJt15.d.cts} +44 -43
- package/dist/package-node.cjs +12 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package-node.js +4 -1
- package/dist/package.d.cts +12 -12
- package/dist/package.d.ts +12 -12
- package/dist/schema-io.cjs +7 -2
- package/dist/schema-io.d.cts +3 -2
- package/dist/schema-io.d.ts +3 -2
- package/dist/schema-io.js +7 -3
- 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/table-grid.cjs +5 -0
- package/dist/table-grid.d.cts +4 -3
- package/dist/table-grid.d.ts +4 -3
- package/dist/table-grid.js +5 -1
- package/dist/text-layout.d.cts +7 -7
- package/dist/text-layout.d.ts +7 -7
- package/package.json +1 -1
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
|
@@ -0,0 +1,1035 @@
|
|
|
1
|
+
import { CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./json-schema-defs-shared.js";
|
|
2
|
+
//#region src/json-schema-defs-blocks.ts
|
|
3
|
+
const DEFS_BLOCKS = {
|
|
4
|
+
Color: {
|
|
5
|
+
type: "object",
|
|
6
|
+
properties: {
|
|
7
|
+
r: {
|
|
8
|
+
type: "number",
|
|
9
|
+
minimum: 0,
|
|
10
|
+
maximum: 1
|
|
11
|
+
},
|
|
12
|
+
g: {
|
|
13
|
+
type: "number",
|
|
14
|
+
minimum: 0,
|
|
15
|
+
maximum: 1
|
|
16
|
+
},
|
|
17
|
+
b: {
|
|
18
|
+
type: "number",
|
|
19
|
+
minimum: 0,
|
|
20
|
+
maximum: 1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
required: [
|
|
24
|
+
"r",
|
|
25
|
+
"g",
|
|
26
|
+
"b"
|
|
27
|
+
],
|
|
28
|
+
additionalProperties: false
|
|
29
|
+
},
|
|
30
|
+
Box: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
xPt: { type: "number" },
|
|
34
|
+
yPt: { type: "number" },
|
|
35
|
+
widthPt: {
|
|
36
|
+
type: "number",
|
|
37
|
+
minimum: 0
|
|
38
|
+
},
|
|
39
|
+
heightPt: {
|
|
40
|
+
type: "number",
|
|
41
|
+
minimum: 0
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
required: [
|
|
45
|
+
"xPt",
|
|
46
|
+
"yPt",
|
|
47
|
+
"widthPt",
|
|
48
|
+
"heightPt"
|
|
49
|
+
],
|
|
50
|
+
additionalProperties: false
|
|
51
|
+
},
|
|
52
|
+
LayoutFrame: {
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
pageIndex: {
|
|
56
|
+
type: "integer",
|
|
57
|
+
minimum: 0,
|
|
58
|
+
maximum: MAX_SAFE_INTEGER
|
|
59
|
+
},
|
|
60
|
+
xPt: { type: "number" },
|
|
61
|
+
yPt: { type: "number" },
|
|
62
|
+
widthPt: {
|
|
63
|
+
type: "number",
|
|
64
|
+
minimum: 0
|
|
65
|
+
},
|
|
66
|
+
heightPt: {
|
|
67
|
+
type: "number",
|
|
68
|
+
minimum: 0
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
required: [
|
|
72
|
+
"pageIndex",
|
|
73
|
+
"xPt",
|
|
74
|
+
"yPt",
|
|
75
|
+
"widthPt",
|
|
76
|
+
"heightPt"
|
|
77
|
+
],
|
|
78
|
+
additionalProperties: false
|
|
79
|
+
},
|
|
80
|
+
Alignment: {
|
|
81
|
+
type: "string",
|
|
82
|
+
enum: [
|
|
83
|
+
"left",
|
|
84
|
+
"center",
|
|
85
|
+
"right",
|
|
86
|
+
"justify"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
SourceResidue: {
|
|
90
|
+
type: "object",
|
|
91
|
+
properties: {
|
|
92
|
+
format: {
|
|
93
|
+
type: "string",
|
|
94
|
+
enum: [
|
|
95
|
+
"docx",
|
|
96
|
+
"pptx",
|
|
97
|
+
"xlsx",
|
|
98
|
+
"odt",
|
|
99
|
+
"ods",
|
|
100
|
+
"odp",
|
|
101
|
+
"odg",
|
|
102
|
+
"odm",
|
|
103
|
+
"odb",
|
|
104
|
+
"odf",
|
|
105
|
+
"markdown",
|
|
106
|
+
"pdf",
|
|
107
|
+
"epub",
|
|
108
|
+
"rtf",
|
|
109
|
+
"wpd"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
xml: { type: "string" }
|
|
113
|
+
},
|
|
114
|
+
required: ["format", "xml"],
|
|
115
|
+
additionalProperties: false
|
|
116
|
+
},
|
|
117
|
+
ContentStrokeStyle: {
|
|
118
|
+
type: "string",
|
|
119
|
+
enum: [
|
|
120
|
+
"solid",
|
|
121
|
+
"dashed",
|
|
122
|
+
"dotted",
|
|
123
|
+
"double"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
ContentBorder: {
|
|
127
|
+
type: "object",
|
|
128
|
+
properties: {
|
|
129
|
+
color: { $ref: "#/$defs/Color" },
|
|
130
|
+
widthPt: {
|
|
131
|
+
type: "number",
|
|
132
|
+
exclusiveMinimum: 0
|
|
133
|
+
},
|
|
134
|
+
style: { $ref: "#/$defs/ContentStrokeStyle" }
|
|
135
|
+
},
|
|
136
|
+
required: ["color", "widthPt"],
|
|
137
|
+
additionalProperties: false
|
|
138
|
+
},
|
|
139
|
+
ContentCellBorders: {
|
|
140
|
+
type: "object",
|
|
141
|
+
properties: {
|
|
142
|
+
left: { $ref: "#/$defs/ContentBorder" },
|
|
143
|
+
right: { $ref: "#/$defs/ContentBorder" },
|
|
144
|
+
top: { $ref: "#/$defs/ContentBorder" },
|
|
145
|
+
bottom: { $ref: "#/$defs/ContentBorder" },
|
|
146
|
+
diagonalUp: { $ref: "#/$defs/ContentBorder" },
|
|
147
|
+
diagonalDown: { $ref: "#/$defs/ContentBorder" }
|
|
148
|
+
},
|
|
149
|
+
additionalProperties: false
|
|
150
|
+
},
|
|
151
|
+
ContentParagraphBorders: {
|
|
152
|
+
type: "object",
|
|
153
|
+
properties: {
|
|
154
|
+
left: { $ref: "#/$defs/ContentBorder" },
|
|
155
|
+
right: { $ref: "#/$defs/ContentBorder" },
|
|
156
|
+
top: { $ref: "#/$defs/ContentBorder" },
|
|
157
|
+
bottom: { $ref: "#/$defs/ContentBorder" }
|
|
158
|
+
},
|
|
159
|
+
additionalProperties: false
|
|
160
|
+
},
|
|
161
|
+
ContentCellPatternType: {
|
|
162
|
+
type: "string",
|
|
163
|
+
enum: [
|
|
164
|
+
"percent5",
|
|
165
|
+
"percent10",
|
|
166
|
+
"percent12",
|
|
167
|
+
"percent15",
|
|
168
|
+
"percent20",
|
|
169
|
+
"percent25",
|
|
170
|
+
"percent30",
|
|
171
|
+
"percent35",
|
|
172
|
+
"percent37",
|
|
173
|
+
"percent40",
|
|
174
|
+
"percent45",
|
|
175
|
+
"percent50",
|
|
176
|
+
"percent55",
|
|
177
|
+
"percent60",
|
|
178
|
+
"percent62",
|
|
179
|
+
"percent65",
|
|
180
|
+
"percent70",
|
|
181
|
+
"percent75",
|
|
182
|
+
"percent80",
|
|
183
|
+
"percent85",
|
|
184
|
+
"percent87",
|
|
185
|
+
"percent90",
|
|
186
|
+
"percent95",
|
|
187
|
+
"horizontalStripe",
|
|
188
|
+
"verticalStripe",
|
|
189
|
+
"diagonalStripe",
|
|
190
|
+
"reverseDiagonalStripe",
|
|
191
|
+
"horizontalCross",
|
|
192
|
+
"diagonalCross",
|
|
193
|
+
"thinHorizontalStripe",
|
|
194
|
+
"thinVerticalStripe",
|
|
195
|
+
"thinDiagonalStripe",
|
|
196
|
+
"thinReverseDiagonalStripe",
|
|
197
|
+
"thinHorizontalCross",
|
|
198
|
+
"thinDiagonalCross",
|
|
199
|
+
"mediumGray",
|
|
200
|
+
"darkGray",
|
|
201
|
+
"lightGray",
|
|
202
|
+
"darkHorizontal",
|
|
203
|
+
"darkVertical",
|
|
204
|
+
"darkDown",
|
|
205
|
+
"darkUp",
|
|
206
|
+
"darkGrid",
|
|
207
|
+
"darkTrellis",
|
|
208
|
+
"lightHorizontal",
|
|
209
|
+
"lightVertical",
|
|
210
|
+
"lightDown",
|
|
211
|
+
"lightUp",
|
|
212
|
+
"lightGrid",
|
|
213
|
+
"lightTrellis",
|
|
214
|
+
"gray125",
|
|
215
|
+
"gray0625"
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
ContentCellFill: { oneOf: [{
|
|
219
|
+
type: "object",
|
|
220
|
+
properties: {
|
|
221
|
+
kind: {
|
|
222
|
+
type: "string",
|
|
223
|
+
const: "solid"
|
|
224
|
+
},
|
|
225
|
+
color: { $ref: "#/$defs/Color" }
|
|
226
|
+
},
|
|
227
|
+
required: ["kind", "color"],
|
|
228
|
+
additionalProperties: false
|
|
229
|
+
}, {
|
|
230
|
+
type: "object",
|
|
231
|
+
properties: {
|
|
232
|
+
kind: {
|
|
233
|
+
type: "string",
|
|
234
|
+
const: "pattern"
|
|
235
|
+
},
|
|
236
|
+
patternType: { $ref: "#/$defs/ContentCellPatternType" },
|
|
237
|
+
foregroundColor: { $ref: "#/$defs/Color" },
|
|
238
|
+
backgroundColor: { $ref: "#/$defs/Color" }
|
|
239
|
+
},
|
|
240
|
+
required: ["kind", "patternType"],
|
|
241
|
+
additionalProperties: false
|
|
242
|
+
}] },
|
|
243
|
+
ContentListMembership: {
|
|
244
|
+
type: "object",
|
|
245
|
+
properties: {
|
|
246
|
+
numId: { type: "string" },
|
|
247
|
+
level: {
|
|
248
|
+
type: "integer",
|
|
249
|
+
minimum: 0,
|
|
250
|
+
maximum: MAX_SAFE_INTEGER
|
|
251
|
+
},
|
|
252
|
+
checked: { type: "boolean" },
|
|
253
|
+
itemId: { type: "string" },
|
|
254
|
+
format: {
|
|
255
|
+
type: "string",
|
|
256
|
+
enum: [
|
|
257
|
+
"bullet",
|
|
258
|
+
"decimal",
|
|
259
|
+
"lowerLetter",
|
|
260
|
+
"upperLetter",
|
|
261
|
+
"lowerRoman",
|
|
262
|
+
"upperRoman"
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
required: ["level"],
|
|
267
|
+
additionalProperties: false
|
|
268
|
+
},
|
|
269
|
+
ContentRun: {
|
|
270
|
+
type: "object",
|
|
271
|
+
properties: {
|
|
272
|
+
text: { type: "string" },
|
|
273
|
+
bold: { type: "boolean" },
|
|
274
|
+
italic: { type: "boolean" },
|
|
275
|
+
underline: { type: "boolean" },
|
|
276
|
+
strike: { type: "boolean" },
|
|
277
|
+
fontFamily: { type: "string" },
|
|
278
|
+
sizePt: {
|
|
279
|
+
type: "number",
|
|
280
|
+
exclusiveMinimum: 0
|
|
281
|
+
},
|
|
282
|
+
color: { $ref: "#/$defs/Color" },
|
|
283
|
+
hyperlink: { type: "string" },
|
|
284
|
+
verticalAlign: {
|
|
285
|
+
type: "string",
|
|
286
|
+
enum: ["superscript", "subscript"]
|
|
287
|
+
},
|
|
288
|
+
direction: {
|
|
289
|
+
type: "string",
|
|
290
|
+
enum: ["ltr", "rtl"]
|
|
291
|
+
},
|
|
292
|
+
sourcePath: { type: "string" },
|
|
293
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
294
|
+
frames: {
|
|
295
|
+
type: "array",
|
|
296
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
297
|
+
},
|
|
298
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
299
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
300
|
+
},
|
|
301
|
+
required: ["text"],
|
|
302
|
+
additionalProperties: false
|
|
303
|
+
},
|
|
304
|
+
RunConstructExtent: {
|
|
305
|
+
type: "object",
|
|
306
|
+
properties: {
|
|
307
|
+
descriptor: { $ref: "#/$defs/ConstructDescriptor" },
|
|
308
|
+
startRun: {
|
|
309
|
+
type: "integer",
|
|
310
|
+
minimum: 0,
|
|
311
|
+
maximum: MAX_SAFE_INTEGER
|
|
312
|
+
},
|
|
313
|
+
endRun: {
|
|
314
|
+
type: "integer",
|
|
315
|
+
minimum: 0,
|
|
316
|
+
maximum: MAX_SAFE_INTEGER
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
required: [
|
|
320
|
+
"descriptor",
|
|
321
|
+
"startRun",
|
|
322
|
+
"endRun"
|
|
323
|
+
],
|
|
324
|
+
additionalProperties: false
|
|
325
|
+
},
|
|
326
|
+
ContentParagraph: {
|
|
327
|
+
type: "object",
|
|
328
|
+
properties: {
|
|
329
|
+
kind: {
|
|
330
|
+
type: "string",
|
|
331
|
+
const: "paragraph"
|
|
332
|
+
},
|
|
333
|
+
runs: {
|
|
334
|
+
type: "array",
|
|
335
|
+
items: { $ref: "#/$defs/ContentRun" }
|
|
336
|
+
},
|
|
337
|
+
constructs: {
|
|
338
|
+
type: "array",
|
|
339
|
+
items: { $ref: "#/$defs/RunConstructExtent" }
|
|
340
|
+
},
|
|
341
|
+
styleId: { type: "string" },
|
|
342
|
+
codeLanguage: { type: "string" },
|
|
343
|
+
preformatted: { type: "boolean" },
|
|
344
|
+
headingLevel: {
|
|
345
|
+
type: "integer",
|
|
346
|
+
exclusiveMinimum: 0,
|
|
347
|
+
maximum: MAX_SAFE_INTEGER
|
|
348
|
+
},
|
|
349
|
+
alignment: { $ref: "#/$defs/Alignment" },
|
|
350
|
+
list: { $ref: "#/$defs/ContentListMembership" },
|
|
351
|
+
spacingBeforePt: { type: "number" },
|
|
352
|
+
spacingAfterPt: { type: "number" },
|
|
353
|
+
lineSpacing: {
|
|
354
|
+
type: "number",
|
|
355
|
+
exclusiveMinimum: 0
|
|
356
|
+
},
|
|
357
|
+
indentLeftPt: { type: "number" },
|
|
358
|
+
indentRightPt: { type: "number" },
|
|
359
|
+
indentFirstLinePt: { type: "number" },
|
|
360
|
+
direction: {
|
|
361
|
+
type: "string",
|
|
362
|
+
enum: ["ltr", "rtl"]
|
|
363
|
+
},
|
|
364
|
+
pageBreakBefore: { type: "boolean" },
|
|
365
|
+
pageBreakAfter: { type: "boolean" },
|
|
366
|
+
borders: { $ref: "#/$defs/ContentParagraphBorders" },
|
|
367
|
+
sourcePath: { type: "string" },
|
|
368
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
369
|
+
frames: {
|
|
370
|
+
type: "array",
|
|
371
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
372
|
+
},
|
|
373
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
374
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
375
|
+
},
|
|
376
|
+
required: ["kind", "runs"],
|
|
377
|
+
additionalProperties: false
|
|
378
|
+
},
|
|
379
|
+
ContentFloatOrigin: {
|
|
380
|
+
type: "string",
|
|
381
|
+
enum: [
|
|
382
|
+
"page",
|
|
383
|
+
"margin",
|
|
384
|
+
"leftMargin",
|
|
385
|
+
"rightMargin",
|
|
386
|
+
"topMargin",
|
|
387
|
+
"bottomMargin",
|
|
388
|
+
"insideMargin",
|
|
389
|
+
"outsideMargin",
|
|
390
|
+
"column",
|
|
391
|
+
"character",
|
|
392
|
+
"paragraph",
|
|
393
|
+
"line",
|
|
394
|
+
"frame"
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
ContentFloatAlign: {
|
|
398
|
+
type: "string",
|
|
399
|
+
enum: [
|
|
400
|
+
"left",
|
|
401
|
+
"right",
|
|
402
|
+
"top",
|
|
403
|
+
"bottom",
|
|
404
|
+
"center",
|
|
405
|
+
"inside",
|
|
406
|
+
"outside"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
ContentFloatAxis: { anyOf: [{
|
|
410
|
+
type: "object",
|
|
411
|
+
properties: {
|
|
412
|
+
relativeTo: { $ref: "#/$defs/ContentFloatOrigin" },
|
|
413
|
+
offsetPt: { type: "number" }
|
|
414
|
+
},
|
|
415
|
+
required: ["relativeTo", "offsetPt"],
|
|
416
|
+
additionalProperties: false
|
|
417
|
+
}, {
|
|
418
|
+
type: "object",
|
|
419
|
+
properties: {
|
|
420
|
+
relativeTo: { $ref: "#/$defs/ContentFloatOrigin" },
|
|
421
|
+
align: { $ref: "#/$defs/ContentFloatAlign" }
|
|
422
|
+
},
|
|
423
|
+
required: ["relativeTo", "align"],
|
|
424
|
+
additionalProperties: false
|
|
425
|
+
}] },
|
|
426
|
+
ContentFloatPosition: {
|
|
427
|
+
type: "object",
|
|
428
|
+
properties: {
|
|
429
|
+
horizontal: { $ref: "#/$defs/ContentFloatAxis" },
|
|
430
|
+
vertical: { $ref: "#/$defs/ContentFloatAxis" }
|
|
431
|
+
},
|
|
432
|
+
required: ["horizontal", "vertical"],
|
|
433
|
+
additionalProperties: false
|
|
434
|
+
},
|
|
435
|
+
ContentOrigin: {
|
|
436
|
+
type: "string",
|
|
437
|
+
enum: [
|
|
438
|
+
"chart",
|
|
439
|
+
"diagram",
|
|
440
|
+
"table",
|
|
441
|
+
"image",
|
|
442
|
+
"notes",
|
|
443
|
+
"body"
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
ContentInterpretation: {
|
|
447
|
+
type: "object",
|
|
448
|
+
properties: {
|
|
449
|
+
transcript: {
|
|
450
|
+
type: "object",
|
|
451
|
+
properties: {
|
|
452
|
+
text: { type: "string" },
|
|
453
|
+
confidence: {
|
|
454
|
+
type: "string",
|
|
455
|
+
enum: [
|
|
456
|
+
"high",
|
|
457
|
+
"medium",
|
|
458
|
+
"low"
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
mechanism: {
|
|
462
|
+
type: "string",
|
|
463
|
+
enum: ["deterministic", "model"]
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
required: [
|
|
467
|
+
"text",
|
|
468
|
+
"confidence",
|
|
469
|
+
"mechanism"
|
|
470
|
+
],
|
|
471
|
+
additionalProperties: false
|
|
472
|
+
},
|
|
473
|
+
description: { type: "string" },
|
|
474
|
+
by: {
|
|
475
|
+
type: "object",
|
|
476
|
+
properties: {
|
|
477
|
+
model: { type: "string" },
|
|
478
|
+
at: { type: "string" }
|
|
479
|
+
},
|
|
480
|
+
required: ["model", "at"],
|
|
481
|
+
additionalProperties: false
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
additionalProperties: false
|
|
485
|
+
},
|
|
486
|
+
ContentImageOriginal: {
|
|
487
|
+
type: "object",
|
|
488
|
+
properties: {
|
|
489
|
+
filter: {
|
|
490
|
+
type: "string",
|
|
491
|
+
enum: ["jbig2", "jpeg2000"]
|
|
492
|
+
},
|
|
493
|
+
base64: { type: "string" },
|
|
494
|
+
jbig2GlobalsBase64: { type: "string" }
|
|
495
|
+
},
|
|
496
|
+
required: ["filter", "base64"],
|
|
497
|
+
additionalProperties: false
|
|
498
|
+
},
|
|
499
|
+
ContentImageBlock: {
|
|
500
|
+
type: "object",
|
|
501
|
+
properties: {
|
|
502
|
+
kind: {
|
|
503
|
+
type: "string",
|
|
504
|
+
const: "image"
|
|
505
|
+
},
|
|
506
|
+
format: {
|
|
507
|
+
type: "string",
|
|
508
|
+
enum: [
|
|
509
|
+
"png",
|
|
510
|
+
"jpeg",
|
|
511
|
+
"svg",
|
|
512
|
+
"gif"
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
base64: { type: "string" },
|
|
516
|
+
widthPt: {
|
|
517
|
+
type: "number",
|
|
518
|
+
exclusiveMinimum: 0
|
|
519
|
+
},
|
|
520
|
+
heightPt: {
|
|
521
|
+
type: "number",
|
|
522
|
+
exclusiveMinimum: 0
|
|
523
|
+
},
|
|
524
|
+
altText: { type: "string" },
|
|
525
|
+
original: { $ref: "#/$defs/ContentImageOriginal" },
|
|
526
|
+
anchorRunIndex: {
|
|
527
|
+
type: "integer",
|
|
528
|
+
minimum: 0,
|
|
529
|
+
maximum: MAX_SAFE_INTEGER
|
|
530
|
+
},
|
|
531
|
+
anchorOffset: {
|
|
532
|
+
type: "integer",
|
|
533
|
+
minimum: 0,
|
|
534
|
+
maximum: MAX_SAFE_INTEGER
|
|
535
|
+
},
|
|
536
|
+
caption: { type: "string" },
|
|
537
|
+
floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
|
|
538
|
+
sourcePath: { type: "string" },
|
|
539
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
540
|
+
frames: {
|
|
541
|
+
type: "array",
|
|
542
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
543
|
+
},
|
|
544
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
545
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
546
|
+
},
|
|
547
|
+
required: [
|
|
548
|
+
"kind",
|
|
549
|
+
"format",
|
|
550
|
+
"base64",
|
|
551
|
+
"widthPt",
|
|
552
|
+
"heightPt"
|
|
553
|
+
],
|
|
554
|
+
additionalProperties: false
|
|
555
|
+
},
|
|
556
|
+
ContentPageBreak: {
|
|
557
|
+
type: "object",
|
|
558
|
+
properties: {
|
|
559
|
+
kind: {
|
|
560
|
+
type: "string",
|
|
561
|
+
const: "pageBreak"
|
|
562
|
+
},
|
|
563
|
+
sourcePath: { type: "string" },
|
|
564
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
565
|
+
frames: {
|
|
566
|
+
type: "array",
|
|
567
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
568
|
+
},
|
|
569
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
570
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
571
|
+
},
|
|
572
|
+
required: ["kind"],
|
|
573
|
+
additionalProperties: false
|
|
574
|
+
},
|
|
575
|
+
ContentTableCell: {
|
|
576
|
+
type: "object",
|
|
577
|
+
properties: {
|
|
578
|
+
blocks: {
|
|
579
|
+
type: "array",
|
|
580
|
+
items: { $ref: "#/$defs/ContentBlock" }
|
|
581
|
+
},
|
|
582
|
+
colSpan: {
|
|
583
|
+
type: "integer",
|
|
584
|
+
exclusiveMinimum: 0,
|
|
585
|
+
maximum: MAX_SAFE_INTEGER
|
|
586
|
+
},
|
|
587
|
+
rowSpan: {
|
|
588
|
+
type: "integer",
|
|
589
|
+
exclusiveMinimum: 0,
|
|
590
|
+
maximum: MAX_SAFE_INTEGER
|
|
591
|
+
},
|
|
592
|
+
background: { $ref: "#/$defs/ContentCellFill" },
|
|
593
|
+
borders: { $ref: "#/$defs/ContentCellBorders" },
|
|
594
|
+
verticalAlign: {
|
|
595
|
+
type: "string",
|
|
596
|
+
enum: [
|
|
597
|
+
"top",
|
|
598
|
+
"center",
|
|
599
|
+
"bottom"
|
|
600
|
+
]
|
|
601
|
+
},
|
|
602
|
+
formula: { type: "string" },
|
|
603
|
+
sourcePath: { type: "string" },
|
|
604
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
605
|
+
frames: {
|
|
606
|
+
type: "array",
|
|
607
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
608
|
+
},
|
|
609
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
610
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
611
|
+
},
|
|
612
|
+
required: ["blocks"],
|
|
613
|
+
additionalProperties: false
|
|
614
|
+
},
|
|
615
|
+
ContentTableRow: {
|
|
616
|
+
type: "object",
|
|
617
|
+
properties: {
|
|
618
|
+
cells: {
|
|
619
|
+
type: "array",
|
|
620
|
+
items: { $ref: "#/$defs/ContentTableCell" }
|
|
621
|
+
},
|
|
622
|
+
heightPt: {
|
|
623
|
+
type: "number",
|
|
624
|
+
exclusiveMinimum: 0
|
|
625
|
+
},
|
|
626
|
+
direction: {
|
|
627
|
+
type: "string",
|
|
628
|
+
enum: ["ltr", "rtl"]
|
|
629
|
+
},
|
|
630
|
+
isHeader: { type: "boolean" }
|
|
631
|
+
},
|
|
632
|
+
required: ["cells"],
|
|
633
|
+
additionalProperties: false
|
|
634
|
+
},
|
|
635
|
+
ContentTableColumn: {
|
|
636
|
+
type: "object",
|
|
637
|
+
properties: {
|
|
638
|
+
widthPt: {
|
|
639
|
+
type: "number",
|
|
640
|
+
minimum: 0
|
|
641
|
+
},
|
|
642
|
+
isHeader: { type: "boolean" }
|
|
643
|
+
},
|
|
644
|
+
required: ["widthPt"],
|
|
645
|
+
additionalProperties: false
|
|
646
|
+
},
|
|
647
|
+
ContentTable: {
|
|
648
|
+
type: "object",
|
|
649
|
+
properties: {
|
|
650
|
+
kind: {
|
|
651
|
+
type: "string",
|
|
652
|
+
const: "table"
|
|
653
|
+
},
|
|
654
|
+
rows: {
|
|
655
|
+
type: "array",
|
|
656
|
+
items: { $ref: "#/$defs/ContentTableRow" }
|
|
657
|
+
},
|
|
658
|
+
columns: {
|
|
659
|
+
type: "array",
|
|
660
|
+
items: { $ref: "#/$defs/ContentTableColumn" }
|
|
661
|
+
},
|
|
662
|
+
sourcePath: { type: "string" },
|
|
663
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
664
|
+
frames: {
|
|
665
|
+
type: "array",
|
|
666
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
667
|
+
},
|
|
668
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
669
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
670
|
+
},
|
|
671
|
+
required: [
|
|
672
|
+
"kind",
|
|
673
|
+
"rows",
|
|
674
|
+
"columns"
|
|
675
|
+
],
|
|
676
|
+
additionalProperties: false
|
|
677
|
+
},
|
|
678
|
+
ContentEmbeddedObjectBlock: {
|
|
679
|
+
type: "object",
|
|
680
|
+
properties: {
|
|
681
|
+
kind: {
|
|
682
|
+
type: "string",
|
|
683
|
+
const: "embeddedObject"
|
|
684
|
+
},
|
|
685
|
+
objectKind: {
|
|
686
|
+
type: "string",
|
|
687
|
+
enum: EMBEDDED_OBJECT_KINDS
|
|
688
|
+
},
|
|
689
|
+
document: { $ref: CONTENT_DOCUMENT_URI },
|
|
690
|
+
frame: { $ref: "#/$defs/Box" },
|
|
691
|
+
sourcePath: { type: "string" },
|
|
692
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
693
|
+
frames: {
|
|
694
|
+
type: "array",
|
|
695
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
696
|
+
},
|
|
697
|
+
anchorRow: {
|
|
698
|
+
type: "integer",
|
|
699
|
+
minimum: 0,
|
|
700
|
+
maximum: MAX_SAFE_INTEGER
|
|
701
|
+
},
|
|
702
|
+
anchorColumn: {
|
|
703
|
+
type: "integer",
|
|
704
|
+
minimum: 0,
|
|
705
|
+
maximum: MAX_SAFE_INTEGER
|
|
706
|
+
},
|
|
707
|
+
offsetXPt: { type: "number" },
|
|
708
|
+
offsetYPt: { type: "number" }
|
|
709
|
+
},
|
|
710
|
+
required: [
|
|
711
|
+
"kind",
|
|
712
|
+
"objectKind",
|
|
713
|
+
"document",
|
|
714
|
+
"frame"
|
|
715
|
+
],
|
|
716
|
+
additionalProperties: false
|
|
717
|
+
},
|
|
718
|
+
ContentConstructStart: {
|
|
719
|
+
type: "object",
|
|
720
|
+
properties: {
|
|
721
|
+
kind: {
|
|
722
|
+
type: "string",
|
|
723
|
+
const: "constructStart"
|
|
724
|
+
},
|
|
725
|
+
descriptor: { $ref: "#/$defs/ConstructDescriptor" }
|
|
726
|
+
},
|
|
727
|
+
required: ["kind", "descriptor"],
|
|
728
|
+
additionalProperties: false
|
|
729
|
+
},
|
|
730
|
+
ContentConstructEnd: {
|
|
731
|
+
type: "object",
|
|
732
|
+
properties: { kind: {
|
|
733
|
+
type: "string",
|
|
734
|
+
const: "constructEnd"
|
|
735
|
+
} },
|
|
736
|
+
required: ["kind"],
|
|
737
|
+
additionalProperties: false
|
|
738
|
+
},
|
|
739
|
+
ContentBlock: { oneOf: [
|
|
740
|
+
{ $ref: "#/$defs/ContentParagraph" },
|
|
741
|
+
{ $ref: "#/$defs/ContentTable" },
|
|
742
|
+
{ $ref: "#/$defs/ContentImageBlock" },
|
|
743
|
+
{ $ref: "#/$defs/ContentPageBreak" },
|
|
744
|
+
{ $ref: "#/$defs/ContentEmbeddedObjectBlock" },
|
|
745
|
+
{ $ref: "#/$defs/ContentConstructStart" },
|
|
746
|
+
{ $ref: "#/$defs/ContentConstructEnd" }
|
|
747
|
+
] },
|
|
748
|
+
TreeBlockLeaf: { oneOf: [
|
|
749
|
+
{ $ref: "#/$defs/ContentParagraph" },
|
|
750
|
+
{ $ref: "#/$defs/ContentTable" },
|
|
751
|
+
{ $ref: "#/$defs/ContentImageBlock" },
|
|
752
|
+
{ $ref: "#/$defs/ContentPageBreak" },
|
|
753
|
+
{ $ref: "#/$defs/ContentEmbeddedObjectBlock" }
|
|
754
|
+
] },
|
|
755
|
+
PageSize: {
|
|
756
|
+
type: "object",
|
|
757
|
+
properties: {
|
|
758
|
+
widthPt: {
|
|
759
|
+
type: "number",
|
|
760
|
+
exclusiveMinimum: 0
|
|
761
|
+
},
|
|
762
|
+
heightPt: {
|
|
763
|
+
type: "number",
|
|
764
|
+
exclusiveMinimum: 0
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
required: ["widthPt", "heightPt"],
|
|
768
|
+
additionalProperties: false
|
|
769
|
+
},
|
|
770
|
+
Margins: {
|
|
771
|
+
type: "object",
|
|
772
|
+
properties: {
|
|
773
|
+
topPt: {
|
|
774
|
+
type: "number",
|
|
775
|
+
minimum: 0
|
|
776
|
+
},
|
|
777
|
+
rightPt: {
|
|
778
|
+
type: "number",
|
|
779
|
+
minimum: 0
|
|
780
|
+
},
|
|
781
|
+
bottomPt: {
|
|
782
|
+
type: "number",
|
|
783
|
+
minimum: 0
|
|
784
|
+
},
|
|
785
|
+
leftPt: {
|
|
786
|
+
type: "number",
|
|
787
|
+
minimum: 0
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
required: [
|
|
791
|
+
"topPt",
|
|
792
|
+
"rightPt",
|
|
793
|
+
"bottomPt",
|
|
794
|
+
"leftPt"
|
|
795
|
+
],
|
|
796
|
+
additionalProperties: false
|
|
797
|
+
},
|
|
798
|
+
SectionDescriptor: {
|
|
799
|
+
type: "object",
|
|
800
|
+
properties: {
|
|
801
|
+
pageSize: { $ref: "#/$defs/PageSize" },
|
|
802
|
+
margins: { $ref: "#/$defs/Margins" },
|
|
803
|
+
breakType: {
|
|
804
|
+
type: "string",
|
|
805
|
+
enum: [
|
|
806
|
+
"nextPage",
|
|
807
|
+
"continuous",
|
|
808
|
+
"evenPage",
|
|
809
|
+
"oddPage"
|
|
810
|
+
]
|
|
811
|
+
},
|
|
812
|
+
headers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
813
|
+
footers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
814
|
+
watermarks: { $ref: "#/$defs/ContentPageFurniture" },
|
|
815
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
816
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
817
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
818
|
+
kind: {
|
|
819
|
+
type: "string",
|
|
820
|
+
const: "section"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
required: [
|
|
824
|
+
"pageSize",
|
|
825
|
+
"margins",
|
|
826
|
+
"kind"
|
|
827
|
+
],
|
|
828
|
+
additionalProperties: false
|
|
829
|
+
},
|
|
830
|
+
ContentPageFurniture: {
|
|
831
|
+
type: "object",
|
|
832
|
+
properties: {
|
|
833
|
+
default: {
|
|
834
|
+
type: "array",
|
|
835
|
+
items: { $ref: "#/$defs/ContentBlock" }
|
|
836
|
+
},
|
|
837
|
+
even: {
|
|
838
|
+
type: "array",
|
|
839
|
+
items: { $ref: "#/$defs/ContentBlock" }
|
|
840
|
+
},
|
|
841
|
+
first: {
|
|
842
|
+
type: "array",
|
|
843
|
+
items: { $ref: "#/$defs/ContentBlock" }
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
additionalProperties: false
|
|
847
|
+
},
|
|
848
|
+
SlideDescriptor: {
|
|
849
|
+
type: "object",
|
|
850
|
+
properties: {
|
|
851
|
+
size: { $ref: "#/$defs/PageSize" },
|
|
852
|
+
notes: { type: "string" },
|
|
853
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
854
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
855
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
856
|
+
kind: {
|
|
857
|
+
type: "string",
|
|
858
|
+
const: "slide"
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
required: [
|
|
862
|
+
"size",
|
|
863
|
+
"notes",
|
|
864
|
+
"kind"
|
|
865
|
+
],
|
|
866
|
+
additionalProperties: false
|
|
867
|
+
},
|
|
868
|
+
SheetDescriptor: {
|
|
869
|
+
type: "object",
|
|
870
|
+
properties: {
|
|
871
|
+
name: { type: "string" },
|
|
872
|
+
cells: {
|
|
873
|
+
type: "array",
|
|
874
|
+
items: { $ref: "#/$defs/ContentSheetCell" }
|
|
875
|
+
},
|
|
876
|
+
columns: {
|
|
877
|
+
type: "array",
|
|
878
|
+
items: { $ref: "#/$defs/ContentSheetColumn" }
|
|
879
|
+
},
|
|
880
|
+
rows: {
|
|
881
|
+
type: "array",
|
|
882
|
+
items: { $ref: "#/$defs/ContentSheetRow" }
|
|
883
|
+
},
|
|
884
|
+
printSettings: { $ref: "#/$defs/ContentSheetPrintSettings" },
|
|
885
|
+
dataValidations: {
|
|
886
|
+
type: "array",
|
|
887
|
+
items: { $ref: "#/$defs/ContentSheetDataValidation" }
|
|
888
|
+
},
|
|
889
|
+
conditionalFormats: {
|
|
890
|
+
type: "array",
|
|
891
|
+
items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
|
|
892
|
+
},
|
|
893
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
894
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
895
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
896
|
+
kind: {
|
|
897
|
+
type: "string",
|
|
898
|
+
const: "sheet"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
required: [
|
|
902
|
+
"name",
|
|
903
|
+
"cells",
|
|
904
|
+
"columns",
|
|
905
|
+
"rows",
|
|
906
|
+
"printSettings",
|
|
907
|
+
"kind"
|
|
908
|
+
],
|
|
909
|
+
additionalProperties: false
|
|
910
|
+
},
|
|
911
|
+
DrawPageDescriptor: {
|
|
912
|
+
type: "object",
|
|
913
|
+
properties: {
|
|
914
|
+
size: { $ref: "#/$defs/PageSize" },
|
|
915
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
916
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
917
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
918
|
+
kind: {
|
|
919
|
+
type: "string",
|
|
920
|
+
const: "drawPage"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
required: ["size", "kind"],
|
|
924
|
+
additionalProperties: false
|
|
925
|
+
},
|
|
926
|
+
ShapeDescriptor: {
|
|
927
|
+
type: "object",
|
|
928
|
+
properties: {
|
|
929
|
+
name: { type: "string" },
|
|
930
|
+
frame: { $ref: "#/$defs/Box" },
|
|
931
|
+
rotationDeg: { type: "number" },
|
|
932
|
+
insetLeftPt: {
|
|
933
|
+
type: "number",
|
|
934
|
+
minimum: 0
|
|
935
|
+
},
|
|
936
|
+
insetTopPt: {
|
|
937
|
+
type: "number",
|
|
938
|
+
minimum: 0
|
|
939
|
+
},
|
|
940
|
+
insetRightPt: {
|
|
941
|
+
type: "number",
|
|
942
|
+
minimum: 0
|
|
943
|
+
},
|
|
944
|
+
insetBottomPt: {
|
|
945
|
+
type: "number",
|
|
946
|
+
minimum: 0
|
|
947
|
+
},
|
|
948
|
+
fontScale: {
|
|
949
|
+
type: "number",
|
|
950
|
+
exclusiveMinimum: 0
|
|
951
|
+
},
|
|
952
|
+
lineSpacingReduction: {
|
|
953
|
+
type: "number",
|
|
954
|
+
minimum: 0
|
|
955
|
+
},
|
|
956
|
+
paintOrder: { type: "number" },
|
|
957
|
+
readingOrder: { type: "number" },
|
|
958
|
+
sourcePath: { type: "string" },
|
|
959
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
960
|
+
frames: {
|
|
961
|
+
type: "array",
|
|
962
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
963
|
+
},
|
|
964
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
965
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
966
|
+
},
|
|
967
|
+
required: [
|
|
968
|
+
"frame",
|
|
969
|
+
"insetLeftPt",
|
|
970
|
+
"insetTopPt",
|
|
971
|
+
"insetRightPt",
|
|
972
|
+
"insetBottomPt"
|
|
973
|
+
],
|
|
974
|
+
additionalProperties: false
|
|
975
|
+
},
|
|
976
|
+
HeadingParagraph: {
|
|
977
|
+
type: "object",
|
|
978
|
+
properties: {
|
|
979
|
+
kind: {
|
|
980
|
+
type: "string",
|
|
981
|
+
const: "paragraph"
|
|
982
|
+
},
|
|
983
|
+
runs: {
|
|
984
|
+
type: "array",
|
|
985
|
+
items: { $ref: "#/$defs/ContentRun" }
|
|
986
|
+
},
|
|
987
|
+
constructs: {
|
|
988
|
+
type: "array",
|
|
989
|
+
items: { $ref: "#/$defs/RunConstructExtent" }
|
|
990
|
+
},
|
|
991
|
+
styleId: { type: "string" },
|
|
992
|
+
codeLanguage: { type: "string" },
|
|
993
|
+
preformatted: { type: "boolean" },
|
|
994
|
+
headingLevel: {
|
|
995
|
+
type: "integer",
|
|
996
|
+
exclusiveMinimum: 0,
|
|
997
|
+
maximum: MAX_SAFE_INTEGER
|
|
998
|
+
},
|
|
999
|
+
alignment: { $ref: "#/$defs/Alignment" },
|
|
1000
|
+
list: { $ref: "#/$defs/ContentListMembership" },
|
|
1001
|
+
spacingBeforePt: { type: "number" },
|
|
1002
|
+
spacingAfterPt: { type: "number" },
|
|
1003
|
+
lineSpacing: {
|
|
1004
|
+
type: "number",
|
|
1005
|
+
exclusiveMinimum: 0
|
|
1006
|
+
},
|
|
1007
|
+
indentLeftPt: { type: "number" },
|
|
1008
|
+
indentRightPt: { type: "number" },
|
|
1009
|
+
indentFirstLinePt: { type: "number" },
|
|
1010
|
+
direction: {
|
|
1011
|
+
type: "string",
|
|
1012
|
+
enum: ["ltr", "rtl"]
|
|
1013
|
+
},
|
|
1014
|
+
pageBreakBefore: { type: "boolean" },
|
|
1015
|
+
pageBreakAfter: { type: "boolean" },
|
|
1016
|
+
borders: { $ref: "#/$defs/ContentParagraphBorders" },
|
|
1017
|
+
sourcePath: { type: "string" },
|
|
1018
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
1019
|
+
frames: {
|
|
1020
|
+
type: "array",
|
|
1021
|
+
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1022
|
+
},
|
|
1023
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1024
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1025
|
+
},
|
|
1026
|
+
required: [
|
|
1027
|
+
"kind",
|
|
1028
|
+
"runs",
|
|
1029
|
+
"headingLevel"
|
|
1030
|
+
],
|
|
1031
|
+
additionalProperties: false
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
//#endregion
|
|
1035
|
+
export { DEFS_BLOCKS };
|