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
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { SI_BASE_DIMENSIONS } from "./math.js";
|
|
2
1
|
import { MathMlAttributeSchema, MathMlElementSchema, MathMlNodeSchema } from "./mathml.js";
|
|
3
|
-
import
|
|
2
|
+
import "./json-schema-defs-shared.js";
|
|
3
|
+
import { DEFS_BLOCKS } from "./json-schema-defs-blocks.js";
|
|
4
|
+
import { DEFS_SHEET } from "./json-schema-defs-sheet.js";
|
|
5
|
+
import { DEFS_VECTOR } from "./json-schema-defs-vector.js";
|
|
6
|
+
import { DEFS_TREE } from "./json-schema-defs-tree.js";
|
|
7
|
+
import { DEFS_MATH } from "./json-schema-defs-math.js";
|
|
4
8
|
import { z } from "zod";
|
|
5
9
|
//#region src/content-json-schema-defs.ts
|
|
6
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER;
|
|
7
|
-
const EMBEDDED_OBJECT_KINDS = [
|
|
8
|
-
"formula",
|
|
9
|
-
"wordprocessing",
|
|
10
|
-
"presentation",
|
|
11
|
-
"spreadsheet",
|
|
12
|
-
"drawing",
|
|
13
|
-
"chart"
|
|
14
|
-
];
|
|
15
|
-
const CONTENT_DOCUMENT_URI = schemaUriFor("ContentDocument");
|
|
16
10
|
let cachedMathMlJsonSchemas;
|
|
17
11
|
function getMathMlJsonSchemas() {
|
|
18
12
|
if (cachedMathMlJsonSchemas === void 0) {
|
|
@@ -31,9 +25,9 @@ function mathMlDef(id) {
|
|
|
31
25
|
delete stripped.$id;
|
|
32
26
|
return stripped;
|
|
33
27
|
}
|
|
34
|
-
function cacheMathMlDef(id) {
|
|
28
|
+
function cacheMathMlDef(target, id) {
|
|
35
29
|
const value = mathMlDef(id);
|
|
36
|
-
Object.defineProperty(
|
|
30
|
+
Object.defineProperty(target, id, {
|
|
37
31
|
value,
|
|
38
32
|
enumerable: true,
|
|
39
33
|
configurable: true,
|
|
@@ -41,3025 +35,28 @@ function cacheMathMlDef(id) {
|
|
|
41
35
|
});
|
|
42
36
|
return value;
|
|
43
37
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"kind",
|
|
59
|
-
"binder",
|
|
60
|
-
"lower",
|
|
61
|
-
"upper",
|
|
62
|
-
"body"
|
|
63
|
-
],
|
|
64
|
-
additionalProperties: false
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
const CONTENT_DEFS = {
|
|
68
|
-
Color: {
|
|
69
|
-
type: "object",
|
|
70
|
-
properties: {
|
|
71
|
-
r: {
|
|
72
|
-
type: "number",
|
|
73
|
-
minimum: 0,
|
|
74
|
-
maximum: 1
|
|
75
|
-
},
|
|
76
|
-
g: {
|
|
77
|
-
type: "number",
|
|
78
|
-
minimum: 0,
|
|
79
|
-
maximum: 1
|
|
80
|
-
},
|
|
81
|
-
b: {
|
|
82
|
-
type: "number",
|
|
83
|
-
minimum: 0,
|
|
84
|
-
maximum: 1
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
required: [
|
|
88
|
-
"r",
|
|
89
|
-
"g",
|
|
90
|
-
"b"
|
|
91
|
-
],
|
|
92
|
-
additionalProperties: false
|
|
93
|
-
},
|
|
94
|
-
Box: {
|
|
95
|
-
type: "object",
|
|
96
|
-
properties: {
|
|
97
|
-
xPt: { type: "number" },
|
|
98
|
-
yPt: { type: "number" },
|
|
99
|
-
widthPt: {
|
|
100
|
-
type: "number",
|
|
101
|
-
minimum: 0
|
|
102
|
-
},
|
|
103
|
-
heightPt: {
|
|
104
|
-
type: "number",
|
|
105
|
-
minimum: 0
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
required: [
|
|
109
|
-
"xPt",
|
|
110
|
-
"yPt",
|
|
111
|
-
"widthPt",
|
|
112
|
-
"heightPt"
|
|
113
|
-
],
|
|
114
|
-
additionalProperties: false
|
|
115
|
-
},
|
|
116
|
-
LayoutFrame: {
|
|
117
|
-
type: "object",
|
|
118
|
-
properties: {
|
|
119
|
-
pageIndex: {
|
|
120
|
-
type: "integer",
|
|
121
|
-
minimum: 0,
|
|
122
|
-
maximum: MAX_SAFE_INTEGER
|
|
123
|
-
},
|
|
124
|
-
xPt: { type: "number" },
|
|
125
|
-
yPt: { type: "number" },
|
|
126
|
-
widthPt: {
|
|
127
|
-
type: "number",
|
|
128
|
-
minimum: 0
|
|
129
|
-
},
|
|
130
|
-
heightPt: {
|
|
131
|
-
type: "number",
|
|
132
|
-
minimum: 0
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
required: [
|
|
136
|
-
"pageIndex",
|
|
137
|
-
"xPt",
|
|
138
|
-
"yPt",
|
|
139
|
-
"widthPt",
|
|
140
|
-
"heightPt"
|
|
141
|
-
],
|
|
142
|
-
additionalProperties: false
|
|
143
|
-
},
|
|
144
|
-
Alignment: {
|
|
145
|
-
type: "string",
|
|
146
|
-
enum: [
|
|
147
|
-
"left",
|
|
148
|
-
"center",
|
|
149
|
-
"right",
|
|
150
|
-
"justify"
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
SourceResidue: {
|
|
154
|
-
type: "object",
|
|
155
|
-
properties: {
|
|
156
|
-
format: {
|
|
157
|
-
type: "string",
|
|
158
|
-
enum: [
|
|
159
|
-
"docx",
|
|
160
|
-
"pptx",
|
|
161
|
-
"xlsx",
|
|
162
|
-
"odt",
|
|
163
|
-
"ods",
|
|
164
|
-
"odp",
|
|
165
|
-
"odg",
|
|
166
|
-
"odm",
|
|
167
|
-
"odb",
|
|
168
|
-
"odf",
|
|
169
|
-
"markdown",
|
|
170
|
-
"pdf",
|
|
171
|
-
"epub",
|
|
172
|
-
"rtf",
|
|
173
|
-
"wpd"
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
xml: { type: "string" }
|
|
177
|
-
},
|
|
178
|
-
required: ["format", "xml"],
|
|
179
|
-
additionalProperties: false
|
|
180
|
-
},
|
|
181
|
-
ContentStrokeStyle: {
|
|
182
|
-
type: "string",
|
|
183
|
-
enum: [
|
|
184
|
-
"solid",
|
|
185
|
-
"dashed",
|
|
186
|
-
"dotted",
|
|
187
|
-
"double"
|
|
188
|
-
]
|
|
189
|
-
},
|
|
190
|
-
ContentBorder: {
|
|
191
|
-
type: "object",
|
|
192
|
-
properties: {
|
|
193
|
-
color: { $ref: "#/$defs/Color" },
|
|
194
|
-
widthPt: {
|
|
195
|
-
type: "number",
|
|
196
|
-
exclusiveMinimum: 0
|
|
197
|
-
},
|
|
198
|
-
style: { $ref: "#/$defs/ContentStrokeStyle" }
|
|
199
|
-
},
|
|
200
|
-
required: ["color", "widthPt"],
|
|
201
|
-
additionalProperties: false
|
|
202
|
-
},
|
|
203
|
-
ContentCellBorders: {
|
|
204
|
-
type: "object",
|
|
205
|
-
properties: {
|
|
206
|
-
left: { $ref: "#/$defs/ContentBorder" },
|
|
207
|
-
right: { $ref: "#/$defs/ContentBorder" },
|
|
208
|
-
top: { $ref: "#/$defs/ContentBorder" },
|
|
209
|
-
bottom: { $ref: "#/$defs/ContentBorder" },
|
|
210
|
-
diagonalUp: { $ref: "#/$defs/ContentBorder" },
|
|
211
|
-
diagonalDown: { $ref: "#/$defs/ContentBorder" }
|
|
212
|
-
},
|
|
213
|
-
additionalProperties: false
|
|
214
|
-
},
|
|
215
|
-
ContentParagraphBorders: {
|
|
216
|
-
type: "object",
|
|
217
|
-
properties: {
|
|
218
|
-
left: { $ref: "#/$defs/ContentBorder" },
|
|
219
|
-
right: { $ref: "#/$defs/ContentBorder" },
|
|
220
|
-
top: { $ref: "#/$defs/ContentBorder" },
|
|
221
|
-
bottom: { $ref: "#/$defs/ContentBorder" }
|
|
222
|
-
},
|
|
223
|
-
additionalProperties: false
|
|
224
|
-
},
|
|
225
|
-
ContentCellPatternType: {
|
|
226
|
-
type: "string",
|
|
227
|
-
enum: [
|
|
228
|
-
"percent5",
|
|
229
|
-
"percent10",
|
|
230
|
-
"percent12",
|
|
231
|
-
"percent15",
|
|
232
|
-
"percent20",
|
|
233
|
-
"percent25",
|
|
234
|
-
"percent30",
|
|
235
|
-
"percent35",
|
|
236
|
-
"percent37",
|
|
237
|
-
"percent40",
|
|
238
|
-
"percent45",
|
|
239
|
-
"percent50",
|
|
240
|
-
"percent55",
|
|
241
|
-
"percent60",
|
|
242
|
-
"percent62",
|
|
243
|
-
"percent65",
|
|
244
|
-
"percent70",
|
|
245
|
-
"percent75",
|
|
246
|
-
"percent80",
|
|
247
|
-
"percent85",
|
|
248
|
-
"percent87",
|
|
249
|
-
"percent90",
|
|
250
|
-
"percent95",
|
|
251
|
-
"horizontalStripe",
|
|
252
|
-
"verticalStripe",
|
|
253
|
-
"diagonalStripe",
|
|
254
|
-
"reverseDiagonalStripe",
|
|
255
|
-
"horizontalCross",
|
|
256
|
-
"diagonalCross",
|
|
257
|
-
"thinHorizontalStripe",
|
|
258
|
-
"thinVerticalStripe",
|
|
259
|
-
"thinDiagonalStripe",
|
|
260
|
-
"thinReverseDiagonalStripe",
|
|
261
|
-
"thinHorizontalCross",
|
|
262
|
-
"thinDiagonalCross",
|
|
263
|
-
"mediumGray",
|
|
264
|
-
"darkGray",
|
|
265
|
-
"lightGray",
|
|
266
|
-
"darkHorizontal",
|
|
267
|
-
"darkVertical",
|
|
268
|
-
"darkDown",
|
|
269
|
-
"darkUp",
|
|
270
|
-
"darkGrid",
|
|
271
|
-
"darkTrellis",
|
|
272
|
-
"lightHorizontal",
|
|
273
|
-
"lightVertical",
|
|
274
|
-
"lightDown",
|
|
275
|
-
"lightUp",
|
|
276
|
-
"lightGrid",
|
|
277
|
-
"lightTrellis",
|
|
278
|
-
"gray125",
|
|
279
|
-
"gray0625"
|
|
280
|
-
]
|
|
281
|
-
},
|
|
282
|
-
ContentCellFill: { oneOf: [{
|
|
283
|
-
type: "object",
|
|
284
|
-
properties: {
|
|
285
|
-
kind: {
|
|
286
|
-
type: "string",
|
|
287
|
-
const: "solid"
|
|
288
|
-
},
|
|
289
|
-
color: { $ref: "#/$defs/Color" }
|
|
290
|
-
},
|
|
291
|
-
required: ["kind", "color"],
|
|
292
|
-
additionalProperties: false
|
|
293
|
-
}, {
|
|
294
|
-
type: "object",
|
|
295
|
-
properties: {
|
|
296
|
-
kind: {
|
|
297
|
-
type: "string",
|
|
298
|
-
const: "pattern"
|
|
299
|
-
},
|
|
300
|
-
patternType: { $ref: "#/$defs/ContentCellPatternType" },
|
|
301
|
-
foregroundColor: { $ref: "#/$defs/Color" },
|
|
302
|
-
backgroundColor: { $ref: "#/$defs/Color" }
|
|
303
|
-
},
|
|
304
|
-
required: ["kind", "patternType"],
|
|
305
|
-
additionalProperties: false
|
|
306
|
-
}] },
|
|
307
|
-
ContentListMembership: {
|
|
308
|
-
type: "object",
|
|
309
|
-
properties: {
|
|
310
|
-
numId: { type: "string" },
|
|
311
|
-
level: {
|
|
312
|
-
type: "integer",
|
|
313
|
-
minimum: 0,
|
|
314
|
-
maximum: MAX_SAFE_INTEGER
|
|
315
|
-
},
|
|
316
|
-
checked: { type: "boolean" },
|
|
317
|
-
itemId: { type: "string" },
|
|
318
|
-
format: {
|
|
319
|
-
type: "string",
|
|
320
|
-
enum: [
|
|
321
|
-
"bullet",
|
|
322
|
-
"decimal",
|
|
323
|
-
"lowerLetter",
|
|
324
|
-
"upperLetter",
|
|
325
|
-
"lowerRoman",
|
|
326
|
-
"upperRoman"
|
|
327
|
-
]
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
required: ["level"],
|
|
331
|
-
additionalProperties: false
|
|
332
|
-
},
|
|
333
|
-
ContentRun: {
|
|
334
|
-
type: "object",
|
|
335
|
-
properties: {
|
|
336
|
-
text: { type: "string" },
|
|
337
|
-
bold: { type: "boolean" },
|
|
338
|
-
italic: { type: "boolean" },
|
|
339
|
-
underline: { type: "boolean" },
|
|
340
|
-
strike: { type: "boolean" },
|
|
341
|
-
fontFamily: { type: "string" },
|
|
342
|
-
sizePt: {
|
|
343
|
-
type: "number",
|
|
344
|
-
exclusiveMinimum: 0
|
|
345
|
-
},
|
|
346
|
-
color: { $ref: "#/$defs/Color" },
|
|
347
|
-
hyperlink: { type: "string" },
|
|
348
|
-
verticalAlign: {
|
|
349
|
-
type: "string",
|
|
350
|
-
enum: ["superscript", "subscript"]
|
|
351
|
-
},
|
|
352
|
-
direction: {
|
|
353
|
-
type: "string",
|
|
354
|
-
enum: ["ltr", "rtl"]
|
|
355
|
-
},
|
|
356
|
-
sourcePath: { type: "string" },
|
|
357
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
358
|
-
frames: {
|
|
359
|
-
type: "array",
|
|
360
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
361
|
-
},
|
|
362
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
363
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
364
|
-
},
|
|
365
|
-
required: ["text"],
|
|
366
|
-
additionalProperties: false
|
|
367
|
-
},
|
|
368
|
-
RunConstructExtent: {
|
|
369
|
-
type: "object",
|
|
370
|
-
properties: {
|
|
371
|
-
descriptor: { $ref: "#/$defs/ConstructDescriptor" },
|
|
372
|
-
startRun: {
|
|
373
|
-
type: "integer",
|
|
374
|
-
minimum: 0,
|
|
375
|
-
maximum: MAX_SAFE_INTEGER
|
|
376
|
-
},
|
|
377
|
-
endRun: {
|
|
378
|
-
type: "integer",
|
|
379
|
-
minimum: 0,
|
|
380
|
-
maximum: MAX_SAFE_INTEGER
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
required: [
|
|
384
|
-
"descriptor",
|
|
385
|
-
"startRun",
|
|
386
|
-
"endRun"
|
|
387
|
-
],
|
|
388
|
-
additionalProperties: false
|
|
389
|
-
},
|
|
390
|
-
ContentParagraph: {
|
|
391
|
-
type: "object",
|
|
392
|
-
properties: {
|
|
393
|
-
kind: {
|
|
394
|
-
type: "string",
|
|
395
|
-
const: "paragraph"
|
|
396
|
-
},
|
|
397
|
-
runs: {
|
|
398
|
-
type: "array",
|
|
399
|
-
items: { $ref: "#/$defs/ContentRun" }
|
|
400
|
-
},
|
|
401
|
-
constructs: {
|
|
402
|
-
type: "array",
|
|
403
|
-
items: { $ref: "#/$defs/RunConstructExtent" }
|
|
404
|
-
},
|
|
405
|
-
styleId: { type: "string" },
|
|
406
|
-
codeLanguage: { type: "string" },
|
|
407
|
-
preformatted: { type: "boolean" },
|
|
408
|
-
headingLevel: {
|
|
409
|
-
type: "integer",
|
|
410
|
-
exclusiveMinimum: 0,
|
|
411
|
-
maximum: MAX_SAFE_INTEGER
|
|
412
|
-
},
|
|
413
|
-
alignment: { $ref: "#/$defs/Alignment" },
|
|
414
|
-
list: { $ref: "#/$defs/ContentListMembership" },
|
|
415
|
-
spacingBeforePt: { type: "number" },
|
|
416
|
-
spacingAfterPt: { type: "number" },
|
|
417
|
-
lineSpacing: {
|
|
418
|
-
type: "number",
|
|
419
|
-
exclusiveMinimum: 0
|
|
420
|
-
},
|
|
421
|
-
indentLeftPt: { type: "number" },
|
|
422
|
-
indentRightPt: { type: "number" },
|
|
423
|
-
indentFirstLinePt: { type: "number" },
|
|
424
|
-
direction: {
|
|
425
|
-
type: "string",
|
|
426
|
-
enum: ["ltr", "rtl"]
|
|
427
|
-
},
|
|
428
|
-
pageBreakBefore: { type: "boolean" },
|
|
429
|
-
pageBreakAfter: { type: "boolean" },
|
|
430
|
-
borders: { $ref: "#/$defs/ContentParagraphBorders" },
|
|
431
|
-
sourcePath: { type: "string" },
|
|
432
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
433
|
-
frames: {
|
|
434
|
-
type: "array",
|
|
435
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
436
|
-
},
|
|
437
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
438
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
439
|
-
},
|
|
440
|
-
required: ["kind", "runs"],
|
|
441
|
-
additionalProperties: false
|
|
442
|
-
},
|
|
443
|
-
ContentFloatOrigin: {
|
|
444
|
-
type: "string",
|
|
445
|
-
enum: [
|
|
446
|
-
"page",
|
|
447
|
-
"margin",
|
|
448
|
-
"leftMargin",
|
|
449
|
-
"rightMargin",
|
|
450
|
-
"topMargin",
|
|
451
|
-
"bottomMargin",
|
|
452
|
-
"insideMargin",
|
|
453
|
-
"outsideMargin",
|
|
454
|
-
"column",
|
|
455
|
-
"character",
|
|
456
|
-
"paragraph",
|
|
457
|
-
"line",
|
|
458
|
-
"frame"
|
|
459
|
-
]
|
|
460
|
-
},
|
|
461
|
-
ContentFloatAlign: {
|
|
462
|
-
type: "string",
|
|
463
|
-
enum: [
|
|
464
|
-
"left",
|
|
465
|
-
"right",
|
|
466
|
-
"top",
|
|
467
|
-
"bottom",
|
|
468
|
-
"center",
|
|
469
|
-
"inside",
|
|
470
|
-
"outside"
|
|
471
|
-
]
|
|
472
|
-
},
|
|
473
|
-
ContentFloatAxis: { anyOf: [{
|
|
474
|
-
type: "object",
|
|
475
|
-
properties: {
|
|
476
|
-
relativeTo: { $ref: "#/$defs/ContentFloatOrigin" },
|
|
477
|
-
offsetPt: { type: "number" }
|
|
478
|
-
},
|
|
479
|
-
required: ["relativeTo", "offsetPt"],
|
|
480
|
-
additionalProperties: false
|
|
481
|
-
}, {
|
|
482
|
-
type: "object",
|
|
483
|
-
properties: {
|
|
484
|
-
relativeTo: { $ref: "#/$defs/ContentFloatOrigin" },
|
|
485
|
-
align: { $ref: "#/$defs/ContentFloatAlign" }
|
|
486
|
-
},
|
|
487
|
-
required: ["relativeTo", "align"],
|
|
488
|
-
additionalProperties: false
|
|
489
|
-
}] },
|
|
490
|
-
ContentFloatPosition: {
|
|
491
|
-
type: "object",
|
|
492
|
-
properties: {
|
|
493
|
-
horizontal: { $ref: "#/$defs/ContentFloatAxis" },
|
|
494
|
-
vertical: { $ref: "#/$defs/ContentFloatAxis" }
|
|
495
|
-
},
|
|
496
|
-
required: ["horizontal", "vertical"],
|
|
497
|
-
additionalProperties: false
|
|
498
|
-
},
|
|
499
|
-
ContentOrigin: {
|
|
500
|
-
type: "string",
|
|
501
|
-
enum: [
|
|
502
|
-
"chart",
|
|
503
|
-
"diagram",
|
|
504
|
-
"table",
|
|
505
|
-
"image",
|
|
506
|
-
"notes",
|
|
507
|
-
"body"
|
|
508
|
-
]
|
|
509
|
-
},
|
|
510
|
-
ContentInterpretation: {
|
|
511
|
-
type: "object",
|
|
512
|
-
properties: {
|
|
513
|
-
transcript: {
|
|
514
|
-
type: "object",
|
|
515
|
-
properties: {
|
|
516
|
-
text: { type: "string" },
|
|
517
|
-
confidence: {
|
|
518
|
-
type: "string",
|
|
519
|
-
enum: [
|
|
520
|
-
"high",
|
|
521
|
-
"medium",
|
|
522
|
-
"low"
|
|
523
|
-
]
|
|
524
|
-
},
|
|
525
|
-
mechanism: {
|
|
526
|
-
type: "string",
|
|
527
|
-
enum: ["deterministic", "model"]
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
required: [
|
|
531
|
-
"text",
|
|
532
|
-
"confidence",
|
|
533
|
-
"mechanism"
|
|
534
|
-
],
|
|
535
|
-
additionalProperties: false
|
|
536
|
-
},
|
|
537
|
-
description: { type: "string" },
|
|
538
|
-
by: {
|
|
539
|
-
type: "object",
|
|
540
|
-
properties: {
|
|
541
|
-
model: { type: "string" },
|
|
542
|
-
at: { type: "string" }
|
|
543
|
-
},
|
|
544
|
-
required: ["model", "at"],
|
|
545
|
-
additionalProperties: false
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
additionalProperties: false
|
|
549
|
-
},
|
|
550
|
-
ContentImageOriginal: {
|
|
551
|
-
type: "object",
|
|
552
|
-
properties: {
|
|
553
|
-
filter: {
|
|
554
|
-
type: "string",
|
|
555
|
-
enum: ["jbig2", "jpeg2000"]
|
|
556
|
-
},
|
|
557
|
-
base64: { type: "string" },
|
|
558
|
-
jbig2GlobalsBase64: { type: "string" }
|
|
559
|
-
},
|
|
560
|
-
required: ["filter", "base64"],
|
|
561
|
-
additionalProperties: false
|
|
562
|
-
},
|
|
563
|
-
ContentImageBlock: {
|
|
564
|
-
type: "object",
|
|
565
|
-
properties: {
|
|
566
|
-
kind: {
|
|
567
|
-
type: "string",
|
|
568
|
-
const: "image"
|
|
569
|
-
},
|
|
570
|
-
format: {
|
|
571
|
-
type: "string",
|
|
572
|
-
enum: [
|
|
573
|
-
"png",
|
|
574
|
-
"jpeg",
|
|
575
|
-
"svg",
|
|
576
|
-
"gif"
|
|
577
|
-
]
|
|
578
|
-
},
|
|
579
|
-
base64: { type: "string" },
|
|
580
|
-
widthPt: {
|
|
581
|
-
type: "number",
|
|
582
|
-
exclusiveMinimum: 0
|
|
583
|
-
},
|
|
584
|
-
heightPt: {
|
|
585
|
-
type: "number",
|
|
586
|
-
exclusiveMinimum: 0
|
|
587
|
-
},
|
|
588
|
-
altText: { type: "string" },
|
|
589
|
-
original: { $ref: "#/$defs/ContentImageOriginal" },
|
|
590
|
-
anchorRunIndex: {
|
|
591
|
-
type: "integer",
|
|
592
|
-
minimum: 0,
|
|
593
|
-
maximum: MAX_SAFE_INTEGER
|
|
594
|
-
},
|
|
595
|
-
anchorOffset: {
|
|
596
|
-
type: "integer",
|
|
597
|
-
minimum: 0,
|
|
598
|
-
maximum: MAX_SAFE_INTEGER
|
|
599
|
-
},
|
|
600
|
-
caption: { type: "string" },
|
|
601
|
-
floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
|
|
602
|
-
sourcePath: { type: "string" },
|
|
603
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
604
|
-
frames: {
|
|
605
|
-
type: "array",
|
|
606
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
607
|
-
},
|
|
608
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
609
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
610
|
-
},
|
|
611
|
-
required: [
|
|
612
|
-
"kind",
|
|
613
|
-
"format",
|
|
614
|
-
"base64",
|
|
615
|
-
"widthPt",
|
|
616
|
-
"heightPt"
|
|
617
|
-
],
|
|
618
|
-
additionalProperties: false
|
|
619
|
-
},
|
|
620
|
-
ContentPageBreak: {
|
|
621
|
-
type: "object",
|
|
622
|
-
properties: {
|
|
623
|
-
kind: {
|
|
624
|
-
type: "string",
|
|
625
|
-
const: "pageBreak"
|
|
626
|
-
},
|
|
627
|
-
sourcePath: { type: "string" },
|
|
628
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
629
|
-
frames: {
|
|
630
|
-
type: "array",
|
|
631
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
632
|
-
},
|
|
633
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
634
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
635
|
-
},
|
|
636
|
-
required: ["kind"],
|
|
637
|
-
additionalProperties: false
|
|
638
|
-
},
|
|
639
|
-
ContentTableCell: {
|
|
640
|
-
type: "object",
|
|
641
|
-
properties: {
|
|
642
|
-
blocks: {
|
|
643
|
-
type: "array",
|
|
644
|
-
items: { $ref: "#/$defs/ContentBlock" }
|
|
645
|
-
},
|
|
646
|
-
colSpan: {
|
|
647
|
-
type: "integer",
|
|
648
|
-
exclusiveMinimum: 0,
|
|
649
|
-
maximum: MAX_SAFE_INTEGER
|
|
650
|
-
},
|
|
651
|
-
rowSpan: {
|
|
652
|
-
type: "integer",
|
|
653
|
-
exclusiveMinimum: 0,
|
|
654
|
-
maximum: MAX_SAFE_INTEGER
|
|
655
|
-
},
|
|
656
|
-
background: { $ref: "#/$defs/ContentCellFill" },
|
|
657
|
-
borders: { $ref: "#/$defs/ContentCellBorders" },
|
|
658
|
-
verticalAlign: {
|
|
659
|
-
type: "string",
|
|
660
|
-
enum: [
|
|
661
|
-
"top",
|
|
662
|
-
"center",
|
|
663
|
-
"bottom"
|
|
664
|
-
]
|
|
665
|
-
},
|
|
666
|
-
formula: { type: "string" },
|
|
667
|
-
sourcePath: { type: "string" },
|
|
668
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
669
|
-
frames: {
|
|
670
|
-
type: "array",
|
|
671
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
672
|
-
},
|
|
673
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
674
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
675
|
-
},
|
|
676
|
-
required: ["blocks"],
|
|
677
|
-
additionalProperties: false
|
|
678
|
-
},
|
|
679
|
-
ContentTableRow: {
|
|
680
|
-
type: "object",
|
|
681
|
-
properties: {
|
|
682
|
-
cells: {
|
|
683
|
-
type: "array",
|
|
684
|
-
items: { $ref: "#/$defs/ContentTableCell" }
|
|
685
|
-
},
|
|
686
|
-
heightPt: {
|
|
687
|
-
type: "number",
|
|
688
|
-
exclusiveMinimum: 0
|
|
689
|
-
},
|
|
690
|
-
direction: {
|
|
691
|
-
type: "string",
|
|
692
|
-
enum: ["ltr", "rtl"]
|
|
693
|
-
},
|
|
694
|
-
isHeader: { type: "boolean" }
|
|
695
|
-
},
|
|
696
|
-
required: ["cells"],
|
|
697
|
-
additionalProperties: false
|
|
698
|
-
},
|
|
699
|
-
ContentTableColumn: {
|
|
700
|
-
type: "object",
|
|
701
|
-
properties: {
|
|
702
|
-
widthPt: {
|
|
703
|
-
type: "number",
|
|
704
|
-
minimum: 0
|
|
705
|
-
},
|
|
706
|
-
isHeader: { type: "boolean" }
|
|
707
|
-
},
|
|
708
|
-
required: ["widthPt"],
|
|
709
|
-
additionalProperties: false
|
|
710
|
-
},
|
|
711
|
-
ContentTable: {
|
|
712
|
-
type: "object",
|
|
713
|
-
properties: {
|
|
714
|
-
kind: {
|
|
715
|
-
type: "string",
|
|
716
|
-
const: "table"
|
|
717
|
-
},
|
|
718
|
-
rows: {
|
|
719
|
-
type: "array",
|
|
720
|
-
items: { $ref: "#/$defs/ContentTableRow" }
|
|
721
|
-
},
|
|
722
|
-
columns: {
|
|
723
|
-
type: "array",
|
|
724
|
-
items: { $ref: "#/$defs/ContentTableColumn" }
|
|
725
|
-
},
|
|
726
|
-
sourcePath: { type: "string" },
|
|
727
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
728
|
-
frames: {
|
|
729
|
-
type: "array",
|
|
730
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
731
|
-
},
|
|
732
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
733
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
734
|
-
},
|
|
735
|
-
required: [
|
|
736
|
-
"kind",
|
|
737
|
-
"rows",
|
|
738
|
-
"columns"
|
|
739
|
-
],
|
|
740
|
-
additionalProperties: false
|
|
741
|
-
},
|
|
742
|
-
ContentEmbeddedObjectBlock: {
|
|
743
|
-
type: "object",
|
|
744
|
-
properties: {
|
|
745
|
-
kind: {
|
|
746
|
-
type: "string",
|
|
747
|
-
const: "embeddedObject"
|
|
748
|
-
},
|
|
749
|
-
objectKind: {
|
|
750
|
-
type: "string",
|
|
751
|
-
enum: EMBEDDED_OBJECT_KINDS
|
|
752
|
-
},
|
|
753
|
-
document: { $ref: CONTENT_DOCUMENT_URI },
|
|
754
|
-
frame: { $ref: "#/$defs/Box" },
|
|
755
|
-
sourcePath: { type: "string" },
|
|
756
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
757
|
-
frames: {
|
|
758
|
-
type: "array",
|
|
759
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
760
|
-
},
|
|
761
|
-
anchorRow: {
|
|
762
|
-
type: "integer",
|
|
763
|
-
minimum: 0,
|
|
764
|
-
maximum: MAX_SAFE_INTEGER
|
|
765
|
-
},
|
|
766
|
-
anchorColumn: {
|
|
767
|
-
type: "integer",
|
|
768
|
-
minimum: 0,
|
|
769
|
-
maximum: MAX_SAFE_INTEGER
|
|
770
|
-
},
|
|
771
|
-
offsetXPt: { type: "number" },
|
|
772
|
-
offsetYPt: { type: "number" }
|
|
773
|
-
},
|
|
774
|
-
required: [
|
|
775
|
-
"kind",
|
|
776
|
-
"objectKind",
|
|
777
|
-
"document",
|
|
778
|
-
"frame"
|
|
779
|
-
],
|
|
780
|
-
additionalProperties: false
|
|
781
|
-
},
|
|
782
|
-
ContentConstructStart: {
|
|
783
|
-
type: "object",
|
|
784
|
-
properties: {
|
|
785
|
-
kind: {
|
|
786
|
-
type: "string",
|
|
787
|
-
const: "constructStart"
|
|
788
|
-
},
|
|
789
|
-
descriptor: { $ref: "#/$defs/ConstructDescriptor" }
|
|
790
|
-
},
|
|
791
|
-
required: ["kind", "descriptor"],
|
|
792
|
-
additionalProperties: false
|
|
793
|
-
},
|
|
794
|
-
ContentConstructEnd: {
|
|
795
|
-
type: "object",
|
|
796
|
-
properties: { kind: {
|
|
797
|
-
type: "string",
|
|
798
|
-
const: "constructEnd"
|
|
799
|
-
} },
|
|
800
|
-
required: ["kind"],
|
|
801
|
-
additionalProperties: false
|
|
802
|
-
},
|
|
803
|
-
ContentBlock: { oneOf: [
|
|
804
|
-
{ $ref: "#/$defs/ContentParagraph" },
|
|
805
|
-
{ $ref: "#/$defs/ContentTable" },
|
|
806
|
-
{ $ref: "#/$defs/ContentImageBlock" },
|
|
807
|
-
{ $ref: "#/$defs/ContentPageBreak" },
|
|
808
|
-
{ $ref: "#/$defs/ContentEmbeddedObjectBlock" },
|
|
809
|
-
{ $ref: "#/$defs/ContentConstructStart" },
|
|
810
|
-
{ $ref: "#/$defs/ContentConstructEnd" }
|
|
811
|
-
] },
|
|
812
|
-
TreeBlockLeaf: { oneOf: [
|
|
813
|
-
{ $ref: "#/$defs/ContentParagraph" },
|
|
814
|
-
{ $ref: "#/$defs/ContentTable" },
|
|
815
|
-
{ $ref: "#/$defs/ContentImageBlock" },
|
|
816
|
-
{ $ref: "#/$defs/ContentPageBreak" },
|
|
817
|
-
{ $ref: "#/$defs/ContentEmbeddedObjectBlock" }
|
|
818
|
-
] },
|
|
819
|
-
PageSize: {
|
|
820
|
-
type: "object",
|
|
821
|
-
properties: {
|
|
822
|
-
widthPt: {
|
|
823
|
-
type: "number",
|
|
824
|
-
exclusiveMinimum: 0
|
|
825
|
-
},
|
|
826
|
-
heightPt: {
|
|
827
|
-
type: "number",
|
|
828
|
-
exclusiveMinimum: 0
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
required: ["widthPt", "heightPt"],
|
|
832
|
-
additionalProperties: false
|
|
833
|
-
},
|
|
834
|
-
Margins: {
|
|
835
|
-
type: "object",
|
|
836
|
-
properties: {
|
|
837
|
-
topPt: {
|
|
838
|
-
type: "number",
|
|
839
|
-
minimum: 0
|
|
840
|
-
},
|
|
841
|
-
rightPt: {
|
|
842
|
-
type: "number",
|
|
843
|
-
minimum: 0
|
|
844
|
-
},
|
|
845
|
-
bottomPt: {
|
|
846
|
-
type: "number",
|
|
847
|
-
minimum: 0
|
|
848
|
-
},
|
|
849
|
-
leftPt: {
|
|
850
|
-
type: "number",
|
|
851
|
-
minimum: 0
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
required: [
|
|
855
|
-
"topPt",
|
|
856
|
-
"rightPt",
|
|
857
|
-
"bottomPt",
|
|
858
|
-
"leftPt"
|
|
859
|
-
],
|
|
860
|
-
additionalProperties: false
|
|
861
|
-
},
|
|
862
|
-
SectionDescriptor: {
|
|
863
|
-
type: "object",
|
|
864
|
-
properties: {
|
|
865
|
-
pageSize: { $ref: "#/$defs/PageSize" },
|
|
866
|
-
margins: { $ref: "#/$defs/Margins" },
|
|
867
|
-
breakType: {
|
|
868
|
-
type: "string",
|
|
869
|
-
enum: [
|
|
870
|
-
"nextPage",
|
|
871
|
-
"continuous",
|
|
872
|
-
"evenPage",
|
|
873
|
-
"oddPage"
|
|
874
|
-
]
|
|
875
|
-
},
|
|
876
|
-
headers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
877
|
-
footers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
878
|
-
watermarks: { $ref: "#/$defs/ContentPageFurniture" },
|
|
879
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
880
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
881
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
882
|
-
kind: {
|
|
883
|
-
type: "string",
|
|
884
|
-
const: "section"
|
|
885
|
-
}
|
|
886
|
-
},
|
|
887
|
-
required: [
|
|
888
|
-
"pageSize",
|
|
889
|
-
"margins",
|
|
890
|
-
"kind"
|
|
891
|
-
],
|
|
892
|
-
additionalProperties: false
|
|
893
|
-
},
|
|
894
|
-
ContentPageFurniture: {
|
|
895
|
-
type: "object",
|
|
896
|
-
properties: {
|
|
897
|
-
default: {
|
|
898
|
-
type: "array",
|
|
899
|
-
items: { $ref: "#/$defs/ContentBlock" }
|
|
900
|
-
},
|
|
901
|
-
even: {
|
|
902
|
-
type: "array",
|
|
903
|
-
items: { $ref: "#/$defs/ContentBlock" }
|
|
904
|
-
},
|
|
905
|
-
first: {
|
|
906
|
-
type: "array",
|
|
907
|
-
items: { $ref: "#/$defs/ContentBlock" }
|
|
908
|
-
}
|
|
909
|
-
},
|
|
910
|
-
additionalProperties: false
|
|
911
|
-
},
|
|
912
|
-
SlideDescriptor: {
|
|
913
|
-
type: "object",
|
|
914
|
-
properties: {
|
|
915
|
-
size: { $ref: "#/$defs/PageSize" },
|
|
916
|
-
notes: { type: "string" },
|
|
917
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
918
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
919
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
920
|
-
kind: {
|
|
921
|
-
type: "string",
|
|
922
|
-
const: "slide"
|
|
923
|
-
}
|
|
924
|
-
},
|
|
925
|
-
required: [
|
|
926
|
-
"size",
|
|
927
|
-
"notes",
|
|
928
|
-
"kind"
|
|
929
|
-
],
|
|
930
|
-
additionalProperties: false
|
|
931
|
-
},
|
|
932
|
-
SheetDescriptor: {
|
|
933
|
-
type: "object",
|
|
934
|
-
properties: {
|
|
935
|
-
name: { type: "string" },
|
|
936
|
-
cells: {
|
|
937
|
-
type: "array",
|
|
938
|
-
items: { $ref: "#/$defs/ContentSheetCell" }
|
|
939
|
-
},
|
|
940
|
-
columns: {
|
|
941
|
-
type: "array",
|
|
942
|
-
items: { $ref: "#/$defs/ContentSheetColumn" }
|
|
943
|
-
},
|
|
944
|
-
rows: {
|
|
945
|
-
type: "array",
|
|
946
|
-
items: { $ref: "#/$defs/ContentSheetRow" }
|
|
947
|
-
},
|
|
948
|
-
printSettings: { $ref: "#/$defs/ContentSheetPrintSettings" },
|
|
949
|
-
dataValidations: {
|
|
950
|
-
type: "array",
|
|
951
|
-
items: { $ref: "#/$defs/ContentSheetDataValidation" }
|
|
952
|
-
},
|
|
953
|
-
conditionalFormats: {
|
|
954
|
-
type: "array",
|
|
955
|
-
items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
|
|
956
|
-
},
|
|
957
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
958
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
959
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
960
|
-
kind: {
|
|
961
|
-
type: "string",
|
|
962
|
-
const: "sheet"
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
required: [
|
|
966
|
-
"name",
|
|
967
|
-
"cells",
|
|
968
|
-
"columns",
|
|
969
|
-
"rows",
|
|
970
|
-
"printSettings",
|
|
971
|
-
"kind"
|
|
972
|
-
],
|
|
973
|
-
additionalProperties: false
|
|
974
|
-
},
|
|
975
|
-
DrawPageDescriptor: {
|
|
976
|
-
type: "object",
|
|
977
|
-
properties: {
|
|
978
|
-
size: { $ref: "#/$defs/PageSize" },
|
|
979
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
980
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
981
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
982
|
-
kind: {
|
|
983
|
-
type: "string",
|
|
984
|
-
const: "drawPage"
|
|
985
|
-
}
|
|
986
|
-
},
|
|
987
|
-
required: ["size", "kind"],
|
|
988
|
-
additionalProperties: false
|
|
989
|
-
},
|
|
990
|
-
ShapeDescriptor: {
|
|
991
|
-
type: "object",
|
|
992
|
-
properties: {
|
|
993
|
-
name: { type: "string" },
|
|
994
|
-
frame: { $ref: "#/$defs/Box" },
|
|
995
|
-
rotationDeg: { type: "number" },
|
|
996
|
-
insetLeftPt: {
|
|
997
|
-
type: "number",
|
|
998
|
-
minimum: 0
|
|
999
|
-
},
|
|
1000
|
-
insetTopPt: {
|
|
1001
|
-
type: "number",
|
|
1002
|
-
minimum: 0
|
|
1003
|
-
},
|
|
1004
|
-
insetRightPt: {
|
|
1005
|
-
type: "number",
|
|
1006
|
-
minimum: 0
|
|
1007
|
-
},
|
|
1008
|
-
insetBottomPt: {
|
|
1009
|
-
type: "number",
|
|
1010
|
-
minimum: 0
|
|
1011
|
-
},
|
|
1012
|
-
fontScale: {
|
|
1013
|
-
type: "number",
|
|
1014
|
-
exclusiveMinimum: 0
|
|
1015
|
-
},
|
|
1016
|
-
lineSpacingReduction: {
|
|
1017
|
-
type: "number",
|
|
1018
|
-
minimum: 0
|
|
1019
|
-
},
|
|
1020
|
-
paintOrder: { type: "number" },
|
|
1021
|
-
readingOrder: { type: "number" },
|
|
1022
|
-
sourcePath: { type: "string" },
|
|
1023
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1024
|
-
frames: {
|
|
1025
|
-
type: "array",
|
|
1026
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1027
|
-
},
|
|
1028
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1029
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1030
|
-
},
|
|
1031
|
-
required: [
|
|
1032
|
-
"frame",
|
|
1033
|
-
"insetLeftPt",
|
|
1034
|
-
"insetTopPt",
|
|
1035
|
-
"insetRightPt",
|
|
1036
|
-
"insetBottomPt"
|
|
1037
|
-
],
|
|
1038
|
-
additionalProperties: false
|
|
1039
|
-
},
|
|
1040
|
-
HeadingParagraph: {
|
|
1041
|
-
type: "object",
|
|
1042
|
-
properties: {
|
|
1043
|
-
kind: {
|
|
1044
|
-
type: "string",
|
|
1045
|
-
const: "paragraph"
|
|
1046
|
-
},
|
|
1047
|
-
runs: {
|
|
1048
|
-
type: "array",
|
|
1049
|
-
items: { $ref: "#/$defs/ContentRun" }
|
|
1050
|
-
},
|
|
1051
|
-
constructs: {
|
|
1052
|
-
type: "array",
|
|
1053
|
-
items: { $ref: "#/$defs/RunConstructExtent" }
|
|
1054
|
-
},
|
|
1055
|
-
styleId: { type: "string" },
|
|
1056
|
-
codeLanguage: { type: "string" },
|
|
1057
|
-
preformatted: { type: "boolean" },
|
|
1058
|
-
headingLevel: {
|
|
1059
|
-
type: "integer",
|
|
1060
|
-
exclusiveMinimum: 0,
|
|
1061
|
-
maximum: MAX_SAFE_INTEGER
|
|
1062
|
-
},
|
|
1063
|
-
alignment: { $ref: "#/$defs/Alignment" },
|
|
1064
|
-
list: { $ref: "#/$defs/ContentListMembership" },
|
|
1065
|
-
spacingBeforePt: { type: "number" },
|
|
1066
|
-
spacingAfterPt: { type: "number" },
|
|
1067
|
-
lineSpacing: {
|
|
1068
|
-
type: "number",
|
|
1069
|
-
exclusiveMinimum: 0
|
|
1070
|
-
},
|
|
1071
|
-
indentLeftPt: { type: "number" },
|
|
1072
|
-
indentRightPt: { type: "number" },
|
|
1073
|
-
indentFirstLinePt: { type: "number" },
|
|
1074
|
-
direction: {
|
|
1075
|
-
type: "string",
|
|
1076
|
-
enum: ["ltr", "rtl"]
|
|
1077
|
-
},
|
|
1078
|
-
pageBreakBefore: { type: "boolean" },
|
|
1079
|
-
pageBreakAfter: { type: "boolean" },
|
|
1080
|
-
borders: { $ref: "#/$defs/ContentParagraphBorders" },
|
|
1081
|
-
sourcePath: { type: "string" },
|
|
1082
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1083
|
-
frames: {
|
|
1084
|
-
type: "array",
|
|
1085
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1086
|
-
},
|
|
1087
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1088
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1089
|
-
},
|
|
1090
|
-
required: [
|
|
1091
|
-
"kind",
|
|
1092
|
-
"runs",
|
|
1093
|
-
"headingLevel"
|
|
1094
|
-
],
|
|
1095
|
-
additionalProperties: false
|
|
1096
|
-
},
|
|
1097
|
-
ListParagraph: {
|
|
1098
|
-
type: "object",
|
|
1099
|
-
properties: {
|
|
1100
|
-
kind: {
|
|
1101
|
-
type: "string",
|
|
1102
|
-
const: "paragraph"
|
|
1103
|
-
},
|
|
1104
|
-
runs: {
|
|
1105
|
-
type: "array",
|
|
1106
|
-
items: { $ref: "#/$defs/ContentRun" }
|
|
1107
|
-
},
|
|
1108
|
-
constructs: {
|
|
1109
|
-
type: "array",
|
|
1110
|
-
items: { $ref: "#/$defs/RunConstructExtent" }
|
|
1111
|
-
},
|
|
1112
|
-
styleId: { type: "string" },
|
|
1113
|
-
codeLanguage: { type: "string" },
|
|
1114
|
-
preformatted: { type: "boolean" },
|
|
1115
|
-
headingLevel: {
|
|
1116
|
-
type: "integer",
|
|
1117
|
-
exclusiveMinimum: 0,
|
|
1118
|
-
maximum: MAX_SAFE_INTEGER
|
|
1119
|
-
},
|
|
1120
|
-
alignment: { $ref: "#/$defs/Alignment" },
|
|
1121
|
-
list: { $ref: "#/$defs/ContentListMembership" },
|
|
1122
|
-
spacingBeforePt: { type: "number" },
|
|
1123
|
-
spacingAfterPt: { type: "number" },
|
|
1124
|
-
lineSpacing: {
|
|
1125
|
-
type: "number",
|
|
1126
|
-
exclusiveMinimum: 0
|
|
1127
|
-
},
|
|
1128
|
-
indentLeftPt: { type: "number" },
|
|
1129
|
-
indentRightPt: { type: "number" },
|
|
1130
|
-
indentFirstLinePt: { type: "number" },
|
|
1131
|
-
direction: {
|
|
1132
|
-
type: "string",
|
|
1133
|
-
enum: ["ltr", "rtl"]
|
|
1134
|
-
},
|
|
1135
|
-
pageBreakBefore: { type: "boolean" },
|
|
1136
|
-
pageBreakAfter: { type: "boolean" },
|
|
1137
|
-
borders: { $ref: "#/$defs/ContentParagraphBorders" },
|
|
1138
|
-
sourcePath: { type: "string" },
|
|
1139
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1140
|
-
frames: {
|
|
1141
|
-
type: "array",
|
|
1142
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1143
|
-
},
|
|
1144
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1145
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1146
|
-
},
|
|
1147
|
-
required: [
|
|
1148
|
-
"kind",
|
|
1149
|
-
"runs",
|
|
1150
|
-
"list"
|
|
1151
|
-
],
|
|
1152
|
-
additionalProperties: false
|
|
1153
|
-
},
|
|
1154
|
-
ContentFont: {
|
|
1155
|
-
type: "object",
|
|
1156
|
-
properties: {
|
|
1157
|
-
bold: { type: "boolean" },
|
|
1158
|
-
italic: { type: "boolean" },
|
|
1159
|
-
underline: { type: "boolean" },
|
|
1160
|
-
strike: { type: "boolean" },
|
|
1161
|
-
fontFamily: { type: "string" },
|
|
1162
|
-
sizePt: {
|
|
1163
|
-
type: "number",
|
|
1164
|
-
exclusiveMinimum: 0
|
|
1165
|
-
},
|
|
1166
|
-
color: { $ref: "#/$defs/Color" }
|
|
1167
|
-
},
|
|
1168
|
-
additionalProperties: false
|
|
1169
|
-
},
|
|
1170
|
-
ContentSheetCell: {
|
|
1171
|
-
type: "object",
|
|
1172
|
-
properties: {
|
|
1173
|
-
row: {
|
|
1174
|
-
type: "integer",
|
|
1175
|
-
minimum: 0,
|
|
1176
|
-
maximum: MAX_SAFE_INTEGER
|
|
1177
|
-
},
|
|
1178
|
-
column: {
|
|
1179
|
-
type: "integer",
|
|
1180
|
-
minimum: 0,
|
|
1181
|
-
maximum: MAX_SAFE_INTEGER
|
|
1182
|
-
},
|
|
1183
|
-
value: { $ref: "#/$defs/ContentCellValue" },
|
|
1184
|
-
formula: { type: "string" },
|
|
1185
|
-
displayText: { type: "string" },
|
|
1186
|
-
numberFormatCode: { type: "string" },
|
|
1187
|
-
font: { $ref: "#/$defs/ContentFont" },
|
|
1188
|
-
runs: {
|
|
1189
|
-
type: "array",
|
|
1190
|
-
items: { $ref: "#/$defs/ContentRun" }
|
|
1191
|
-
},
|
|
1192
|
-
colSpan: {
|
|
1193
|
-
type: "integer",
|
|
1194
|
-
exclusiveMinimum: 0,
|
|
1195
|
-
maximum: MAX_SAFE_INTEGER
|
|
1196
|
-
},
|
|
1197
|
-
rowSpan: {
|
|
1198
|
-
type: "integer",
|
|
1199
|
-
exclusiveMinimum: 0,
|
|
1200
|
-
maximum: MAX_SAFE_INTEGER
|
|
1201
|
-
},
|
|
1202
|
-
background: { $ref: "#/$defs/ContentCellFill" },
|
|
1203
|
-
borders: { $ref: "#/$defs/ContentCellBorders" },
|
|
1204
|
-
alignment: { $ref: "#/$defs/Alignment" },
|
|
1205
|
-
verticalAlignment: {
|
|
1206
|
-
type: "string",
|
|
1207
|
-
enum: [
|
|
1208
|
-
"top",
|
|
1209
|
-
"middle",
|
|
1210
|
-
"bottom"
|
|
1211
|
-
]
|
|
1212
|
-
},
|
|
1213
|
-
comment: { $ref: "#/$defs/ContentSheetCellComment" },
|
|
1214
|
-
sourcePath: { type: "string" },
|
|
1215
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1216
|
-
frames: {
|
|
1217
|
-
type: "array",
|
|
1218
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1219
|
-
},
|
|
1220
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1221
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1222
|
-
},
|
|
1223
|
-
required: [
|
|
1224
|
-
"row",
|
|
1225
|
-
"column",
|
|
1226
|
-
"value",
|
|
1227
|
-
"displayText"
|
|
1228
|
-
],
|
|
1229
|
-
additionalProperties: false
|
|
1230
|
-
},
|
|
1231
|
-
ContentCellValue: { oneOf: [
|
|
1232
|
-
{
|
|
1233
|
-
type: "object",
|
|
1234
|
-
properties: {
|
|
1235
|
-
kind: {
|
|
1236
|
-
type: "string",
|
|
1237
|
-
const: "number"
|
|
1238
|
-
},
|
|
1239
|
-
value: { type: "number" },
|
|
1240
|
-
exactValue: {
|
|
1241
|
-
type: "string",
|
|
1242
|
-
pattern: "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
|
-
required: ["kind", "value"],
|
|
1246
|
-
additionalProperties: false
|
|
1247
|
-
},
|
|
1248
|
-
{
|
|
1249
|
-
type: "object",
|
|
1250
|
-
properties: {
|
|
1251
|
-
kind: {
|
|
1252
|
-
type: "string",
|
|
1253
|
-
const: "percentage"
|
|
1254
|
-
},
|
|
1255
|
-
value: { type: "number" },
|
|
1256
|
-
exactValue: {
|
|
1257
|
-
type: "string",
|
|
1258
|
-
pattern: "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
|
|
1259
|
-
}
|
|
1260
|
-
},
|
|
1261
|
-
required: ["kind", "value"],
|
|
1262
|
-
additionalProperties: false
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
type: "object",
|
|
1266
|
-
properties: {
|
|
1267
|
-
kind: {
|
|
1268
|
-
type: "string",
|
|
1269
|
-
const: "currency"
|
|
1270
|
-
},
|
|
1271
|
-
value: { type: "number" },
|
|
1272
|
-
currency: { type: "string" },
|
|
1273
|
-
exactValue: {
|
|
1274
|
-
type: "string",
|
|
1275
|
-
pattern: "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
|
|
1276
|
-
}
|
|
1277
|
-
},
|
|
1278
|
-
required: ["kind", "value"],
|
|
1279
|
-
additionalProperties: false
|
|
1280
|
-
},
|
|
1281
|
-
{
|
|
1282
|
-
type: "object",
|
|
1283
|
-
properties: {
|
|
1284
|
-
kind: {
|
|
1285
|
-
type: "string",
|
|
1286
|
-
const: "boolean"
|
|
1287
|
-
},
|
|
1288
|
-
value: { type: "boolean" }
|
|
1289
|
-
},
|
|
1290
|
-
required: ["kind", "value"],
|
|
1291
|
-
additionalProperties: false
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
type: "object",
|
|
1295
|
-
properties: {
|
|
1296
|
-
kind: {
|
|
1297
|
-
type: "string",
|
|
1298
|
-
const: "date"
|
|
1299
|
-
},
|
|
1300
|
-
value: { type: "string" }
|
|
1301
|
-
},
|
|
1302
|
-
required: ["kind", "value"],
|
|
1303
|
-
additionalProperties: false
|
|
1304
|
-
},
|
|
1305
|
-
{
|
|
1306
|
-
type: "object",
|
|
1307
|
-
properties: {
|
|
1308
|
-
kind: {
|
|
1309
|
-
type: "string",
|
|
1310
|
-
const: "time"
|
|
1311
|
-
},
|
|
1312
|
-
value: { type: "string" }
|
|
1313
|
-
},
|
|
1314
|
-
required: ["kind", "value"],
|
|
1315
|
-
additionalProperties: false
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
type: "object",
|
|
1319
|
-
properties: {
|
|
1320
|
-
kind: {
|
|
1321
|
-
type: "string",
|
|
1322
|
-
const: "dateTime"
|
|
1323
|
-
},
|
|
1324
|
-
value: { type: "string" }
|
|
1325
|
-
},
|
|
1326
|
-
required: ["kind", "value"],
|
|
1327
|
-
additionalProperties: false
|
|
1328
|
-
},
|
|
1329
|
-
{
|
|
1330
|
-
type: "object",
|
|
1331
|
-
properties: {
|
|
1332
|
-
kind: {
|
|
1333
|
-
type: "string",
|
|
1334
|
-
const: "string"
|
|
1335
|
-
},
|
|
1336
|
-
value: { type: "string" }
|
|
1337
|
-
},
|
|
1338
|
-
required: ["kind", "value"],
|
|
1339
|
-
additionalProperties: false
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
type: "object",
|
|
1343
|
-
properties: {
|
|
1344
|
-
kind: {
|
|
1345
|
-
type: "string",
|
|
1346
|
-
const: "error"
|
|
1347
|
-
},
|
|
1348
|
-
value: { type: "string" }
|
|
1349
|
-
},
|
|
1350
|
-
required: ["kind", "value"],
|
|
1351
|
-
additionalProperties: false
|
|
1352
|
-
},
|
|
1353
|
-
{
|
|
1354
|
-
type: "object",
|
|
1355
|
-
properties: { kind: {
|
|
1356
|
-
type: "string",
|
|
1357
|
-
const: "empty"
|
|
1358
|
-
} },
|
|
1359
|
-
required: ["kind"],
|
|
1360
|
-
additionalProperties: false
|
|
38
|
+
const DEFS_IN_ORDER = [
|
|
39
|
+
DEFS_BLOCKS,
|
|
40
|
+
DEFS_SHEET,
|
|
41
|
+
DEFS_VECTOR,
|
|
42
|
+
DEFS_TREE,
|
|
43
|
+
{
|
|
44
|
+
get MathMlAttribute() {
|
|
45
|
+
return cacheMathMlDef(this, "MathMlAttribute");
|
|
46
|
+
},
|
|
47
|
+
get MathMlElement() {
|
|
48
|
+
return cacheMathMlDef(this, "MathMlElement");
|
|
49
|
+
},
|
|
50
|
+
get MathMlNode() {
|
|
51
|
+
return cacheMathMlDef(this, "MathMlNode");
|
|
1361
52
|
}
|
|
1362
|
-
] },
|
|
1363
|
-
ContentSheetCellComment: {
|
|
1364
|
-
type: "object",
|
|
1365
|
-
properties: {
|
|
1366
|
-
text: { type: "string" },
|
|
1367
|
-
author: { type: "string" },
|
|
1368
|
-
createdAt: { type: "string" },
|
|
1369
|
-
replies: {
|
|
1370
|
-
type: "array",
|
|
1371
|
-
items: {
|
|
1372
|
-
type: "object",
|
|
1373
|
-
properties: {
|
|
1374
|
-
text: { type: "string" },
|
|
1375
|
-
author: { type: "string" }
|
|
1376
|
-
},
|
|
1377
|
-
required: ["text"],
|
|
1378
|
-
additionalProperties: false
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
},
|
|
1382
|
-
required: ["text"],
|
|
1383
|
-
additionalProperties: false
|
|
1384
|
-
},
|
|
1385
|
-
ContentSheetColumn: {
|
|
1386
|
-
type: "object",
|
|
1387
|
-
properties: {
|
|
1388
|
-
index: {
|
|
1389
|
-
type: "integer",
|
|
1390
|
-
minimum: 0,
|
|
1391
|
-
maximum: MAX_SAFE_INTEGER
|
|
1392
|
-
},
|
|
1393
|
-
widthPt: {
|
|
1394
|
-
type: "number",
|
|
1395
|
-
exclusiveMinimum: 0
|
|
1396
|
-
},
|
|
1397
|
-
hidden: { type: "boolean" }
|
|
1398
|
-
},
|
|
1399
|
-
required: ["index"],
|
|
1400
|
-
additionalProperties: false
|
|
1401
|
-
},
|
|
1402
|
-
ContentSheetRow: {
|
|
1403
|
-
type: "object",
|
|
1404
|
-
properties: {
|
|
1405
|
-
index: {
|
|
1406
|
-
type: "integer",
|
|
1407
|
-
minimum: 0,
|
|
1408
|
-
maximum: MAX_SAFE_INTEGER
|
|
1409
|
-
},
|
|
1410
|
-
heightPt: {
|
|
1411
|
-
type: "number",
|
|
1412
|
-
exclusiveMinimum: 0
|
|
1413
|
-
},
|
|
1414
|
-
hidden: { type: "boolean" }
|
|
1415
|
-
},
|
|
1416
|
-
required: ["index"],
|
|
1417
|
-
additionalProperties: false
|
|
1418
|
-
},
|
|
1419
|
-
ContentSheetPrintSettings: {
|
|
1420
|
-
type: "object",
|
|
1421
|
-
properties: {
|
|
1422
|
-
pageSize: { $ref: "#/$defs/PageSize" },
|
|
1423
|
-
margins: { $ref: "#/$defs/Margins" },
|
|
1424
|
-
printRange: { $ref: "#/$defs/ContentSheetPrintRange" },
|
|
1425
|
-
scalePercent: {
|
|
1426
|
-
type: "number",
|
|
1427
|
-
exclusiveMinimum: 0
|
|
1428
|
-
},
|
|
1429
|
-
fitToPages: {
|
|
1430
|
-
type: "object",
|
|
1431
|
-
properties: {
|
|
1432
|
-
width: {
|
|
1433
|
-
type: "integer",
|
|
1434
|
-
exclusiveMinimum: 0,
|
|
1435
|
-
maximum: MAX_SAFE_INTEGER
|
|
1436
|
-
},
|
|
1437
|
-
height: {
|
|
1438
|
-
type: "integer",
|
|
1439
|
-
exclusiveMinimum: 0,
|
|
1440
|
-
maximum: MAX_SAFE_INTEGER
|
|
1441
|
-
}
|
|
1442
|
-
},
|
|
1443
|
-
required: ["width", "height"],
|
|
1444
|
-
additionalProperties: false
|
|
1445
|
-
},
|
|
1446
|
-
repeatRows: { $ref: "#/$defs/ContentSheetRepeatRange" },
|
|
1447
|
-
repeatColumns: { $ref: "#/$defs/ContentSheetRepeatRange" },
|
|
1448
|
-
gridlines: { type: "boolean" },
|
|
1449
|
-
headers: { type: "boolean" },
|
|
1450
|
-
pageOrder: {
|
|
1451
|
-
type: "string",
|
|
1452
|
-
enum: ["downThenOver", "overThenDown"]
|
|
1453
|
-
},
|
|
1454
|
-
manualBreaks: {
|
|
1455
|
-
type: "object",
|
|
1456
|
-
properties: {
|
|
1457
|
-
rows: {
|
|
1458
|
-
type: "array",
|
|
1459
|
-
items: {
|
|
1460
|
-
type: "integer",
|
|
1461
|
-
minimum: 0,
|
|
1462
|
-
maximum: MAX_SAFE_INTEGER
|
|
1463
|
-
}
|
|
1464
|
-
},
|
|
1465
|
-
columns: {
|
|
1466
|
-
type: "array",
|
|
1467
|
-
items: {
|
|
1468
|
-
type: "integer",
|
|
1469
|
-
minimum: 0,
|
|
1470
|
-
maximum: MAX_SAFE_INTEGER
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
},
|
|
1474
|
-
required: ["rows", "columns"],
|
|
1475
|
-
additionalProperties: false
|
|
1476
|
-
}
|
|
1477
|
-
},
|
|
1478
|
-
required: [
|
|
1479
|
-
"pageSize",
|
|
1480
|
-
"margins",
|
|
1481
|
-
"gridlines",
|
|
1482
|
-
"headers",
|
|
1483
|
-
"pageOrder"
|
|
1484
|
-
],
|
|
1485
|
-
additionalProperties: false
|
|
1486
|
-
},
|
|
1487
|
-
ContentSheetPrintRange: {
|
|
1488
|
-
type: "object",
|
|
1489
|
-
properties: {
|
|
1490
|
-
startRow: {
|
|
1491
|
-
type: "integer",
|
|
1492
|
-
minimum: 0,
|
|
1493
|
-
maximum: MAX_SAFE_INTEGER
|
|
1494
|
-
},
|
|
1495
|
-
startColumn: {
|
|
1496
|
-
type: "integer",
|
|
1497
|
-
minimum: 0,
|
|
1498
|
-
maximum: MAX_SAFE_INTEGER
|
|
1499
|
-
},
|
|
1500
|
-
endRow: {
|
|
1501
|
-
type: "integer",
|
|
1502
|
-
minimum: 0,
|
|
1503
|
-
maximum: MAX_SAFE_INTEGER
|
|
1504
|
-
},
|
|
1505
|
-
endColumn: {
|
|
1506
|
-
type: "integer",
|
|
1507
|
-
minimum: 0,
|
|
1508
|
-
maximum: MAX_SAFE_INTEGER
|
|
1509
|
-
}
|
|
1510
|
-
},
|
|
1511
|
-
required: [
|
|
1512
|
-
"startRow",
|
|
1513
|
-
"startColumn",
|
|
1514
|
-
"endRow",
|
|
1515
|
-
"endColumn"
|
|
1516
|
-
],
|
|
1517
|
-
additionalProperties: false
|
|
1518
|
-
},
|
|
1519
|
-
ContentSheetRepeatRange: {
|
|
1520
|
-
type: "object",
|
|
1521
|
-
properties: {
|
|
1522
|
-
start: {
|
|
1523
|
-
type: "integer",
|
|
1524
|
-
minimum: 0,
|
|
1525
|
-
maximum: MAX_SAFE_INTEGER
|
|
1526
|
-
},
|
|
1527
|
-
end: {
|
|
1528
|
-
type: "integer",
|
|
1529
|
-
minimum: 0,
|
|
1530
|
-
maximum: MAX_SAFE_INTEGER
|
|
1531
|
-
}
|
|
1532
|
-
},
|
|
1533
|
-
required: ["start", "end"],
|
|
1534
|
-
additionalProperties: false
|
|
1535
|
-
},
|
|
1536
|
-
ContentSheetRange: {
|
|
1537
|
-
type: "object",
|
|
1538
|
-
properties: {
|
|
1539
|
-
startRow: {
|
|
1540
|
-
type: "integer",
|
|
1541
|
-
minimum: 0,
|
|
1542
|
-
maximum: MAX_SAFE_INTEGER
|
|
1543
|
-
},
|
|
1544
|
-
startColumn: {
|
|
1545
|
-
type: "integer",
|
|
1546
|
-
minimum: 0,
|
|
1547
|
-
maximum: MAX_SAFE_INTEGER
|
|
1548
|
-
},
|
|
1549
|
-
endRow: {
|
|
1550
|
-
type: "integer",
|
|
1551
|
-
minimum: 0,
|
|
1552
|
-
maximum: MAX_SAFE_INTEGER
|
|
1553
|
-
},
|
|
1554
|
-
endColumn: {
|
|
1555
|
-
type: "integer",
|
|
1556
|
-
minimum: 0,
|
|
1557
|
-
maximum: MAX_SAFE_INTEGER
|
|
1558
|
-
}
|
|
1559
|
-
},
|
|
1560
|
-
required: [
|
|
1561
|
-
"startRow",
|
|
1562
|
-
"startColumn",
|
|
1563
|
-
"endRow",
|
|
1564
|
-
"endColumn"
|
|
1565
|
-
],
|
|
1566
|
-
additionalProperties: false
|
|
1567
|
-
},
|
|
1568
|
-
SheetRuleOperator: {
|
|
1569
|
-
type: "string",
|
|
1570
|
-
enum: [
|
|
1571
|
-
"between",
|
|
1572
|
-
"notBetween",
|
|
1573
|
-
"equal",
|
|
1574
|
-
"notEqual",
|
|
1575
|
-
"greaterThan",
|
|
1576
|
-
"greaterThanOrEqual",
|
|
1577
|
-
"lessThan",
|
|
1578
|
-
"lessThanOrEqual"
|
|
1579
|
-
]
|
|
1580
|
-
},
|
|
1581
|
-
ContentSheetDataValidation: {
|
|
1582
|
-
type: "object",
|
|
1583
|
-
properties: {
|
|
1584
|
-
ranges: {
|
|
1585
|
-
type: "array",
|
|
1586
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1587
|
-
},
|
|
1588
|
-
type: {
|
|
1589
|
-
type: "string",
|
|
1590
|
-
enum: [
|
|
1591
|
-
"whole",
|
|
1592
|
-
"decimal",
|
|
1593
|
-
"list",
|
|
1594
|
-
"date",
|
|
1595
|
-
"time",
|
|
1596
|
-
"textLength",
|
|
1597
|
-
"custom"
|
|
1598
|
-
]
|
|
1599
|
-
},
|
|
1600
|
-
operator: { $ref: "#/$defs/SheetRuleOperator" },
|
|
1601
|
-
formula1: { type: "string" },
|
|
1602
|
-
formula2: { type: "string" },
|
|
1603
|
-
allowBlank: { type: "boolean" },
|
|
1604
|
-
showInputMessage: { type: "boolean" },
|
|
1605
|
-
promptTitle: { type: "string" },
|
|
1606
|
-
prompt: { type: "string" },
|
|
1607
|
-
showErrorMessage: { type: "boolean" },
|
|
1608
|
-
errorStyle: {
|
|
1609
|
-
type: "string",
|
|
1610
|
-
enum: [
|
|
1611
|
-
"stop",
|
|
1612
|
-
"warning",
|
|
1613
|
-
"information"
|
|
1614
|
-
]
|
|
1615
|
-
},
|
|
1616
|
-
errorTitle: { type: "string" },
|
|
1617
|
-
error: { type: "string" },
|
|
1618
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
1619
|
-
},
|
|
1620
|
-
required: ["ranges", "type"],
|
|
1621
|
-
additionalProperties: false
|
|
1622
|
-
},
|
|
1623
|
-
ContentSheetConditionalFormatStyle: {
|
|
1624
|
-
type: "object",
|
|
1625
|
-
properties: {
|
|
1626
|
-
textColor: { $ref: "#/$defs/Color" },
|
|
1627
|
-
background: { $ref: "#/$defs/Color" },
|
|
1628
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
1629
|
-
},
|
|
1630
|
-
additionalProperties: false
|
|
1631
53
|
},
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
"percent",
|
|
1640
|
-
"max",
|
|
1641
|
-
"min",
|
|
1642
|
-
"formula",
|
|
1643
|
-
"percentile"
|
|
1644
|
-
]
|
|
1645
|
-
},
|
|
1646
|
-
value: { type: "string" }
|
|
1647
|
-
},
|
|
1648
|
-
required: ["type"],
|
|
1649
|
-
additionalProperties: false
|
|
1650
|
-
},
|
|
1651
|
-
ContentSheetConditionalFormat: { oneOf: [
|
|
1652
|
-
{
|
|
1653
|
-
type: "object",
|
|
1654
|
-
properties: {
|
|
1655
|
-
type: {
|
|
1656
|
-
type: "string",
|
|
1657
|
-
const: "cellIs"
|
|
1658
|
-
},
|
|
1659
|
-
ranges: {
|
|
1660
|
-
type: "array",
|
|
1661
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1662
|
-
},
|
|
1663
|
-
priority: {
|
|
1664
|
-
type: "integer",
|
|
1665
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1666
|
-
maximum: MAX_SAFE_INTEGER
|
|
1667
|
-
},
|
|
1668
|
-
stopIfTrue: { type: "boolean" },
|
|
1669
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1670
|
-
operator: { $ref: "#/$defs/SheetRuleOperator" },
|
|
1671
|
-
formula1: { type: "string" },
|
|
1672
|
-
formula2: { type: "string" },
|
|
1673
|
-
style: { $ref: "#/$defs/ContentSheetConditionalFormatStyle" }
|
|
1674
|
-
},
|
|
1675
|
-
required: [
|
|
1676
|
-
"type",
|
|
1677
|
-
"ranges",
|
|
1678
|
-
"operator",
|
|
1679
|
-
"formula1"
|
|
1680
|
-
],
|
|
1681
|
-
additionalProperties: false
|
|
1682
|
-
},
|
|
1683
|
-
{
|
|
1684
|
-
type: "object",
|
|
1685
|
-
properties: {
|
|
1686
|
-
type: {
|
|
1687
|
-
type: "string",
|
|
1688
|
-
enum: [
|
|
1689
|
-
"containsText",
|
|
1690
|
-
"notContainsText",
|
|
1691
|
-
"beginsWith",
|
|
1692
|
-
"endsWith"
|
|
1693
|
-
]
|
|
1694
|
-
},
|
|
1695
|
-
ranges: {
|
|
1696
|
-
type: "array",
|
|
1697
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1698
|
-
},
|
|
1699
|
-
priority: {
|
|
1700
|
-
type: "integer",
|
|
1701
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1702
|
-
maximum: MAX_SAFE_INTEGER
|
|
1703
|
-
},
|
|
1704
|
-
stopIfTrue: { type: "boolean" },
|
|
1705
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1706
|
-
text: { type: "string" },
|
|
1707
|
-
style: { $ref: "#/$defs/ContentSheetConditionalFormatStyle" }
|
|
1708
|
-
},
|
|
1709
|
-
required: [
|
|
1710
|
-
"type",
|
|
1711
|
-
"ranges",
|
|
1712
|
-
"text"
|
|
1713
|
-
],
|
|
1714
|
-
additionalProperties: false
|
|
1715
|
-
},
|
|
1716
|
-
{
|
|
1717
|
-
type: "object",
|
|
1718
|
-
properties: {
|
|
1719
|
-
type: {
|
|
1720
|
-
type: "string",
|
|
1721
|
-
enum: [
|
|
1722
|
-
"containsBlanks",
|
|
1723
|
-
"notContainsBlanks",
|
|
1724
|
-
"containsErrors",
|
|
1725
|
-
"notContainsErrors",
|
|
1726
|
-
"uniqueValues",
|
|
1727
|
-
"duplicateValues"
|
|
1728
|
-
]
|
|
1729
|
-
},
|
|
1730
|
-
ranges: {
|
|
1731
|
-
type: "array",
|
|
1732
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1733
|
-
},
|
|
1734
|
-
priority: {
|
|
1735
|
-
type: "integer",
|
|
1736
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1737
|
-
maximum: MAX_SAFE_INTEGER
|
|
1738
|
-
},
|
|
1739
|
-
stopIfTrue: { type: "boolean" },
|
|
1740
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1741
|
-
style: { $ref: "#/$defs/ContentSheetConditionalFormatStyle" }
|
|
1742
|
-
},
|
|
1743
|
-
required: ["type", "ranges"],
|
|
1744
|
-
additionalProperties: false
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
type: "object",
|
|
1748
|
-
properties: {
|
|
1749
|
-
type: {
|
|
1750
|
-
type: "string",
|
|
1751
|
-
const: "top10"
|
|
1752
|
-
},
|
|
1753
|
-
ranges: {
|
|
1754
|
-
type: "array",
|
|
1755
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1756
|
-
},
|
|
1757
|
-
priority: {
|
|
1758
|
-
type: "integer",
|
|
1759
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1760
|
-
maximum: MAX_SAFE_INTEGER
|
|
1761
|
-
},
|
|
1762
|
-
stopIfTrue: { type: "boolean" },
|
|
1763
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1764
|
-
rank: {
|
|
1765
|
-
type: "number",
|
|
1766
|
-
exclusiveMinimum: 0
|
|
1767
|
-
},
|
|
1768
|
-
percent: { type: "boolean" },
|
|
1769
|
-
bottom: { type: "boolean" },
|
|
1770
|
-
style: { $ref: "#/$defs/ContentSheetConditionalFormatStyle" }
|
|
1771
|
-
},
|
|
1772
|
-
required: [
|
|
1773
|
-
"type",
|
|
1774
|
-
"ranges",
|
|
1775
|
-
"rank"
|
|
1776
|
-
],
|
|
1777
|
-
additionalProperties: false
|
|
1778
|
-
},
|
|
1779
|
-
{
|
|
1780
|
-
type: "object",
|
|
1781
|
-
properties: {
|
|
1782
|
-
type: {
|
|
1783
|
-
type: "string",
|
|
1784
|
-
const: "aboveAverage"
|
|
1785
|
-
},
|
|
1786
|
-
ranges: {
|
|
1787
|
-
type: "array",
|
|
1788
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1789
|
-
},
|
|
1790
|
-
priority: {
|
|
1791
|
-
type: "integer",
|
|
1792
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1793
|
-
maximum: MAX_SAFE_INTEGER
|
|
1794
|
-
},
|
|
1795
|
-
stopIfTrue: { type: "boolean" },
|
|
1796
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1797
|
-
aboveAverage: { type: "boolean" },
|
|
1798
|
-
equalAverage: { type: "boolean" },
|
|
1799
|
-
stdDev: {
|
|
1800
|
-
type: "integer",
|
|
1801
|
-
exclusiveMinimum: 0,
|
|
1802
|
-
maximum: MAX_SAFE_INTEGER
|
|
1803
|
-
},
|
|
1804
|
-
style: { $ref: "#/$defs/ContentSheetConditionalFormatStyle" }
|
|
1805
|
-
},
|
|
1806
|
-
required: ["type", "ranges"],
|
|
1807
|
-
additionalProperties: false
|
|
1808
|
-
},
|
|
1809
|
-
{
|
|
1810
|
-
type: "object",
|
|
1811
|
-
properties: {
|
|
1812
|
-
type: {
|
|
1813
|
-
type: "string",
|
|
1814
|
-
const: "timePeriod"
|
|
1815
|
-
},
|
|
1816
|
-
ranges: {
|
|
1817
|
-
type: "array",
|
|
1818
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1819
|
-
},
|
|
1820
|
-
priority: {
|
|
1821
|
-
type: "integer",
|
|
1822
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1823
|
-
maximum: MAX_SAFE_INTEGER
|
|
1824
|
-
},
|
|
1825
|
-
stopIfTrue: { type: "boolean" },
|
|
1826
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1827
|
-
timePeriod: {
|
|
1828
|
-
type: "string",
|
|
1829
|
-
enum: [
|
|
1830
|
-
"yesterday",
|
|
1831
|
-
"today",
|
|
1832
|
-
"tomorrow",
|
|
1833
|
-
"last7Days",
|
|
1834
|
-
"thisMonth",
|
|
1835
|
-
"lastMonth",
|
|
1836
|
-
"nextMonth",
|
|
1837
|
-
"thisWeek",
|
|
1838
|
-
"lastWeek",
|
|
1839
|
-
"nextWeek",
|
|
1840
|
-
"thisYear",
|
|
1841
|
-
"lastYear",
|
|
1842
|
-
"nextYear"
|
|
1843
|
-
]
|
|
1844
|
-
},
|
|
1845
|
-
style: { $ref: "#/$defs/ContentSheetConditionalFormatStyle" }
|
|
1846
|
-
},
|
|
1847
|
-
required: [
|
|
1848
|
-
"type",
|
|
1849
|
-
"ranges",
|
|
1850
|
-
"timePeriod"
|
|
1851
|
-
],
|
|
1852
|
-
additionalProperties: false
|
|
1853
|
-
},
|
|
1854
|
-
{
|
|
1855
|
-
type: "object",
|
|
1856
|
-
properties: {
|
|
1857
|
-
type: {
|
|
1858
|
-
type: "string",
|
|
1859
|
-
const: "colorScale"
|
|
1860
|
-
},
|
|
1861
|
-
ranges: {
|
|
1862
|
-
type: "array",
|
|
1863
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1864
|
-
},
|
|
1865
|
-
priority: {
|
|
1866
|
-
type: "integer",
|
|
1867
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1868
|
-
maximum: MAX_SAFE_INTEGER
|
|
1869
|
-
},
|
|
1870
|
-
stopIfTrue: { type: "boolean" },
|
|
1871
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1872
|
-
stops: {
|
|
1873
|
-
minItems: 2,
|
|
1874
|
-
maxItems: 3,
|
|
1875
|
-
type: "array",
|
|
1876
|
-
items: {
|
|
1877
|
-
type: "object",
|
|
1878
|
-
properties: {
|
|
1879
|
-
value: { $ref: "#/$defs/ContentSheetConditionalFormatValue" },
|
|
1880
|
-
color: { $ref: "#/$defs/Color" }
|
|
1881
|
-
},
|
|
1882
|
-
required: ["value", "color"],
|
|
1883
|
-
additionalProperties: false
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
},
|
|
1887
|
-
required: [
|
|
1888
|
-
"type",
|
|
1889
|
-
"ranges",
|
|
1890
|
-
"stops"
|
|
1891
|
-
],
|
|
1892
|
-
additionalProperties: false
|
|
1893
|
-
},
|
|
1894
|
-
{
|
|
1895
|
-
type: "object",
|
|
1896
|
-
properties: {
|
|
1897
|
-
type: {
|
|
1898
|
-
type: "string",
|
|
1899
|
-
const: "dataBar"
|
|
1900
|
-
},
|
|
1901
|
-
ranges: {
|
|
1902
|
-
type: "array",
|
|
1903
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1904
|
-
},
|
|
1905
|
-
priority: {
|
|
1906
|
-
type: "integer",
|
|
1907
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1908
|
-
maximum: MAX_SAFE_INTEGER
|
|
1909
|
-
},
|
|
1910
|
-
stopIfTrue: { type: "boolean" },
|
|
1911
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1912
|
-
min: { $ref: "#/$defs/ContentSheetConditionalFormatValue" },
|
|
1913
|
-
max: { $ref: "#/$defs/ContentSheetConditionalFormatValue" },
|
|
1914
|
-
color: { $ref: "#/$defs/Color" },
|
|
1915
|
-
showValue: { type: "boolean" }
|
|
1916
|
-
},
|
|
1917
|
-
required: [
|
|
1918
|
-
"type",
|
|
1919
|
-
"ranges",
|
|
1920
|
-
"min",
|
|
1921
|
-
"max",
|
|
1922
|
-
"color"
|
|
1923
|
-
],
|
|
1924
|
-
additionalProperties: false
|
|
1925
|
-
},
|
|
1926
|
-
{
|
|
1927
|
-
type: "object",
|
|
1928
|
-
properties: {
|
|
1929
|
-
type: {
|
|
1930
|
-
type: "string",
|
|
1931
|
-
const: "iconSet"
|
|
1932
|
-
},
|
|
1933
|
-
ranges: {
|
|
1934
|
-
type: "array",
|
|
1935
|
-
items: { $ref: "#/$defs/ContentSheetRange" }
|
|
1936
|
-
},
|
|
1937
|
-
priority: {
|
|
1938
|
-
type: "integer",
|
|
1939
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
1940
|
-
maximum: MAX_SAFE_INTEGER
|
|
1941
|
-
},
|
|
1942
|
-
stopIfTrue: { type: "boolean" },
|
|
1943
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
1944
|
-
iconSetType: { type: "string" },
|
|
1945
|
-
thresholds: {
|
|
1946
|
-
type: "array",
|
|
1947
|
-
items: { $ref: "#/$defs/ContentSheetConditionalFormatValue" }
|
|
1948
|
-
},
|
|
1949
|
-
reverse: { type: "boolean" },
|
|
1950
|
-
showValue: { type: "boolean" }
|
|
1951
|
-
},
|
|
1952
|
-
required: [
|
|
1953
|
-
"type",
|
|
1954
|
-
"ranges",
|
|
1955
|
-
"iconSetType",
|
|
1956
|
-
"thresholds"
|
|
1957
|
-
],
|
|
1958
|
-
additionalProperties: false
|
|
1959
|
-
}
|
|
1960
|
-
] },
|
|
1961
|
-
ContentSheetImage: {
|
|
1962
|
-
type: "object",
|
|
1963
|
-
properties: {
|
|
1964
|
-
kind: {
|
|
1965
|
-
type: "string",
|
|
1966
|
-
const: "image"
|
|
1967
|
-
},
|
|
1968
|
-
format: {
|
|
1969
|
-
type: "string",
|
|
1970
|
-
enum: [
|
|
1971
|
-
"png",
|
|
1972
|
-
"jpeg",
|
|
1973
|
-
"svg",
|
|
1974
|
-
"gif"
|
|
1975
|
-
]
|
|
1976
|
-
},
|
|
1977
|
-
base64: { type: "string" },
|
|
1978
|
-
widthPt: {
|
|
1979
|
-
type: "number",
|
|
1980
|
-
exclusiveMinimum: 0
|
|
1981
|
-
},
|
|
1982
|
-
heightPt: {
|
|
1983
|
-
type: "number",
|
|
1984
|
-
exclusiveMinimum: 0
|
|
1985
|
-
},
|
|
1986
|
-
altText: { type: "string" },
|
|
1987
|
-
original: { $ref: "#/$defs/ContentImageOriginal" },
|
|
1988
|
-
anchorRunIndex: {
|
|
1989
|
-
type: "integer",
|
|
1990
|
-
minimum: 0,
|
|
1991
|
-
maximum: MAX_SAFE_INTEGER
|
|
1992
|
-
},
|
|
1993
|
-
anchorOffset: {
|
|
1994
|
-
type: "integer",
|
|
1995
|
-
minimum: 0,
|
|
1996
|
-
maximum: MAX_SAFE_INTEGER
|
|
1997
|
-
},
|
|
1998
|
-
caption: { type: "string" },
|
|
1999
|
-
floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
|
|
2000
|
-
sourcePath: { type: "string" },
|
|
2001
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
2002
|
-
frames: {
|
|
2003
|
-
type: "array",
|
|
2004
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2005
|
-
},
|
|
2006
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2007
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
2008
|
-
anchorRow: {
|
|
2009
|
-
type: "integer",
|
|
2010
|
-
minimum: 0,
|
|
2011
|
-
maximum: MAX_SAFE_INTEGER
|
|
2012
|
-
},
|
|
2013
|
-
anchorColumn: {
|
|
2014
|
-
type: "integer",
|
|
2015
|
-
minimum: 0,
|
|
2016
|
-
maximum: MAX_SAFE_INTEGER
|
|
2017
|
-
},
|
|
2018
|
-
offsetXPt: { type: "number" },
|
|
2019
|
-
offsetYPt: { type: "number" }
|
|
2020
|
-
},
|
|
2021
|
-
required: [
|
|
2022
|
-
"kind",
|
|
2023
|
-
"format",
|
|
2024
|
-
"base64",
|
|
2025
|
-
"widthPt",
|
|
2026
|
-
"heightPt",
|
|
2027
|
-
"anchorRow",
|
|
2028
|
-
"anchorColumn",
|
|
2029
|
-
"offsetXPt",
|
|
2030
|
-
"offsetYPt"
|
|
2031
|
-
],
|
|
2032
|
-
additionalProperties: false
|
|
2033
|
-
},
|
|
2034
|
-
ContentStrokeDash: {
|
|
2035
|
-
type: "object",
|
|
2036
|
-
properties: {
|
|
2037
|
-
dots1: {
|
|
2038
|
-
type: "integer",
|
|
2039
|
-
exclusiveMinimum: 0,
|
|
2040
|
-
maximum: MAX_SAFE_INTEGER
|
|
2041
|
-
},
|
|
2042
|
-
dots1LengthPt: {
|
|
2043
|
-
type: "number",
|
|
2044
|
-
exclusiveMinimum: 0
|
|
2045
|
-
},
|
|
2046
|
-
dots2: {
|
|
2047
|
-
type: "integer",
|
|
2048
|
-
exclusiveMinimum: 0,
|
|
2049
|
-
maximum: MAX_SAFE_INTEGER
|
|
2050
|
-
},
|
|
2051
|
-
dots2LengthPt: {
|
|
2052
|
-
type: "number",
|
|
2053
|
-
exclusiveMinimum: 0
|
|
2054
|
-
},
|
|
2055
|
-
distancePt: {
|
|
2056
|
-
type: "number",
|
|
2057
|
-
minimum: 0
|
|
2058
|
-
}
|
|
2059
|
-
},
|
|
2060
|
-
required: [
|
|
2061
|
-
"dots1",
|
|
2062
|
-
"dots1LengthPt",
|
|
2063
|
-
"distancePt"
|
|
2064
|
-
],
|
|
2065
|
-
additionalProperties: false
|
|
2066
|
-
},
|
|
2067
|
-
ContentStroke: {
|
|
2068
|
-
type: "object",
|
|
2069
|
-
properties: {
|
|
2070
|
-
color: { $ref: "#/$defs/Color" },
|
|
2071
|
-
widthPt: {
|
|
2072
|
-
type: "number",
|
|
2073
|
-
exclusiveMinimum: 0
|
|
2074
|
-
},
|
|
2075
|
-
style: { $ref: "#/$defs/ContentStrokeStyle" },
|
|
2076
|
-
opacity: {
|
|
2077
|
-
type: "number",
|
|
2078
|
-
minimum: 0,
|
|
2079
|
-
maximum: 1
|
|
2080
|
-
},
|
|
2081
|
-
dashPattern: { $ref: "#/$defs/ContentStrokeDash" }
|
|
2082
|
-
},
|
|
2083
|
-
required: ["color", "widthPt"],
|
|
2084
|
-
additionalProperties: false
|
|
2085
|
-
},
|
|
2086
|
-
ContentGradientStyle: {
|
|
2087
|
-
type: "string",
|
|
2088
|
-
enum: [
|
|
2089
|
-
"linear",
|
|
2090
|
-
"axial",
|
|
2091
|
-
"radial",
|
|
2092
|
-
"ellipsoid",
|
|
2093
|
-
"square",
|
|
2094
|
-
"rectangular"
|
|
2095
|
-
]
|
|
2096
|
-
},
|
|
2097
|
-
ContentGradientFill: {
|
|
2098
|
-
type: "object",
|
|
2099
|
-
properties: {
|
|
2100
|
-
kind: {
|
|
2101
|
-
type: "string",
|
|
2102
|
-
const: "gradient"
|
|
2103
|
-
},
|
|
2104
|
-
style: { $ref: "#/$defs/ContentGradientStyle" },
|
|
2105
|
-
startColor: { $ref: "#/$defs/Color" },
|
|
2106
|
-
endColor: { $ref: "#/$defs/Color" },
|
|
2107
|
-
angleDeg: { type: "number" }
|
|
2108
|
-
},
|
|
2109
|
-
required: [
|
|
2110
|
-
"kind",
|
|
2111
|
-
"style",
|
|
2112
|
-
"startColor",
|
|
2113
|
-
"endColor"
|
|
2114
|
-
],
|
|
2115
|
-
additionalProperties: false
|
|
2116
|
-
},
|
|
2117
|
-
ContentHatchStyle: {
|
|
2118
|
-
type: "string",
|
|
2119
|
-
enum: [
|
|
2120
|
-
"single",
|
|
2121
|
-
"double",
|
|
2122
|
-
"triple"
|
|
2123
|
-
]
|
|
2124
|
-
},
|
|
2125
|
-
ContentHatchFill: {
|
|
2126
|
-
type: "object",
|
|
2127
|
-
properties: {
|
|
2128
|
-
kind: {
|
|
2129
|
-
type: "string",
|
|
2130
|
-
const: "hatch"
|
|
2131
|
-
},
|
|
2132
|
-
style: { $ref: "#/$defs/ContentHatchStyle" },
|
|
2133
|
-
color: { $ref: "#/$defs/Color" },
|
|
2134
|
-
distancePt: {
|
|
2135
|
-
type: "number",
|
|
2136
|
-
minimum: 0
|
|
2137
|
-
},
|
|
2138
|
-
rotationDeg: { type: "number" }
|
|
2139
|
-
},
|
|
2140
|
-
required: [
|
|
2141
|
-
"kind",
|
|
2142
|
-
"style",
|
|
2143
|
-
"color",
|
|
2144
|
-
"distancePt"
|
|
2145
|
-
],
|
|
2146
|
-
additionalProperties: false
|
|
2147
|
-
},
|
|
2148
|
-
ContentBitmapFill: {
|
|
2149
|
-
type: "object",
|
|
2150
|
-
properties: {
|
|
2151
|
-
kind: {
|
|
2152
|
-
type: "string",
|
|
2153
|
-
const: "bitmap"
|
|
2154
|
-
},
|
|
2155
|
-
format: {
|
|
2156
|
-
type: "string",
|
|
2157
|
-
enum: [
|
|
2158
|
-
"png",
|
|
2159
|
-
"jpeg",
|
|
2160
|
-
"svg",
|
|
2161
|
-
"gif"
|
|
2162
|
-
]
|
|
2163
|
-
},
|
|
2164
|
-
base64: { type: "string" }
|
|
2165
|
-
},
|
|
2166
|
-
required: [
|
|
2167
|
-
"kind",
|
|
2168
|
-
"format",
|
|
2169
|
-
"base64"
|
|
2170
|
-
],
|
|
2171
|
-
additionalProperties: false
|
|
2172
|
-
},
|
|
2173
|
-
ContentFillPattern: { oneOf: [
|
|
2174
|
-
{ $ref: "#/$defs/ContentGradientFill" },
|
|
2175
|
-
{ $ref: "#/$defs/ContentHatchFill" },
|
|
2176
|
-
{ $ref: "#/$defs/ContentBitmapFill" }
|
|
2177
|
-
] },
|
|
2178
|
-
ContentPathPoint: {
|
|
2179
|
-
type: "object",
|
|
2180
|
-
properties: {
|
|
2181
|
-
xPt: { type: "number" },
|
|
2182
|
-
yPt: { type: "number" }
|
|
2183
|
-
},
|
|
2184
|
-
required: ["xPt", "yPt"],
|
|
2185
|
-
additionalProperties: false
|
|
2186
|
-
},
|
|
2187
|
-
ContentPathSegment: { oneOf: [{
|
|
2188
|
-
type: "object",
|
|
2189
|
-
properties: {
|
|
2190
|
-
kind: {
|
|
2191
|
-
type: "string",
|
|
2192
|
-
const: "line"
|
|
2193
|
-
},
|
|
2194
|
-
to: { $ref: "#/$defs/ContentPathPoint" }
|
|
2195
|
-
},
|
|
2196
|
-
required: ["kind", "to"],
|
|
2197
|
-
additionalProperties: false
|
|
2198
|
-
}, {
|
|
2199
|
-
type: "object",
|
|
2200
|
-
properties: {
|
|
2201
|
-
kind: {
|
|
2202
|
-
type: "string",
|
|
2203
|
-
const: "cubic"
|
|
2204
|
-
},
|
|
2205
|
-
control1: { $ref: "#/$defs/ContentPathPoint" },
|
|
2206
|
-
control2: { $ref: "#/$defs/ContentPathPoint" },
|
|
2207
|
-
to: { $ref: "#/$defs/ContentPathPoint" }
|
|
2208
|
-
},
|
|
2209
|
-
required: [
|
|
2210
|
-
"kind",
|
|
2211
|
-
"control1",
|
|
2212
|
-
"control2",
|
|
2213
|
-
"to"
|
|
2214
|
-
],
|
|
2215
|
-
additionalProperties: false
|
|
2216
|
-
}] },
|
|
2217
|
-
ContentSubpath: {
|
|
2218
|
-
type: "object",
|
|
2219
|
-
properties: {
|
|
2220
|
-
start: { $ref: "#/$defs/ContentPathPoint" },
|
|
2221
|
-
segments: {
|
|
2222
|
-
type: "array",
|
|
2223
|
-
items: { $ref: "#/$defs/ContentPathSegment" }
|
|
2224
|
-
},
|
|
2225
|
-
closed: { type: "boolean" }
|
|
2226
|
-
},
|
|
2227
|
-
required: [
|
|
2228
|
-
"start",
|
|
2229
|
-
"segments",
|
|
2230
|
-
"closed"
|
|
2231
|
-
],
|
|
2232
|
-
additionalProperties: false
|
|
2233
|
-
},
|
|
2234
|
-
ContentVector: { oneOf: [
|
|
2235
|
-
{
|
|
2236
|
-
type: "object",
|
|
2237
|
-
properties: {
|
|
2238
|
-
kind: {
|
|
2239
|
-
type: "string",
|
|
2240
|
-
const: "rect"
|
|
2241
|
-
},
|
|
2242
|
-
frame: { $ref: "#/$defs/Box" },
|
|
2243
|
-
rotationDeg: { type: "number" },
|
|
2244
|
-
fill: { $ref: "#/$defs/Color" },
|
|
2245
|
-
fillPattern: { $ref: "#/$defs/ContentFillPattern" },
|
|
2246
|
-
fillOpacity: {
|
|
2247
|
-
type: "number",
|
|
2248
|
-
minimum: 0,
|
|
2249
|
-
maximum: 1
|
|
2250
|
-
},
|
|
2251
|
-
stroke: { $ref: "#/$defs/ContentStroke" },
|
|
2252
|
-
paintOrder: { type: "number" },
|
|
2253
|
-
sourcePath: { type: "string" },
|
|
2254
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
2255
|
-
frames: {
|
|
2256
|
-
type: "array",
|
|
2257
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2258
|
-
},
|
|
2259
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2260
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2261
|
-
},
|
|
2262
|
-
required: ["kind", "frame"],
|
|
2263
|
-
additionalProperties: false
|
|
2264
|
-
},
|
|
2265
|
-
{
|
|
2266
|
-
type: "object",
|
|
2267
|
-
properties: {
|
|
2268
|
-
kind: {
|
|
2269
|
-
type: "string",
|
|
2270
|
-
const: "ellipse"
|
|
2271
|
-
},
|
|
2272
|
-
frame: { $ref: "#/$defs/Box" },
|
|
2273
|
-
rotationDeg: { type: "number" },
|
|
2274
|
-
fill: { $ref: "#/$defs/Color" },
|
|
2275
|
-
fillPattern: { $ref: "#/$defs/ContentFillPattern" },
|
|
2276
|
-
fillOpacity: {
|
|
2277
|
-
type: "number",
|
|
2278
|
-
minimum: 0,
|
|
2279
|
-
maximum: 1
|
|
2280
|
-
},
|
|
2281
|
-
stroke: { $ref: "#/$defs/ContentStroke" },
|
|
2282
|
-
paintOrder: { type: "number" },
|
|
2283
|
-
sourcePath: { type: "string" },
|
|
2284
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
2285
|
-
frames: {
|
|
2286
|
-
type: "array",
|
|
2287
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2288
|
-
},
|
|
2289
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2290
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2291
|
-
},
|
|
2292
|
-
required: ["kind", "frame"],
|
|
2293
|
-
additionalProperties: false
|
|
2294
|
-
},
|
|
2295
|
-
{
|
|
2296
|
-
type: "object",
|
|
2297
|
-
properties: {
|
|
2298
|
-
kind: {
|
|
2299
|
-
type: "string",
|
|
2300
|
-
const: "line"
|
|
2301
|
-
},
|
|
2302
|
-
from: { $ref: "#/$defs/ContentPathPoint" },
|
|
2303
|
-
to: { $ref: "#/$defs/ContentPathPoint" },
|
|
2304
|
-
stroke: { $ref: "#/$defs/ContentStroke" },
|
|
2305
|
-
paintOrder: { type: "number" },
|
|
2306
|
-
sourcePath: { type: "string" },
|
|
2307
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
2308
|
-
frames: {
|
|
2309
|
-
type: "array",
|
|
2310
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2311
|
-
},
|
|
2312
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2313
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2314
|
-
},
|
|
2315
|
-
required: [
|
|
2316
|
-
"kind",
|
|
2317
|
-
"from",
|
|
2318
|
-
"to",
|
|
2319
|
-
"stroke"
|
|
2320
|
-
],
|
|
2321
|
-
additionalProperties: false
|
|
2322
|
-
},
|
|
2323
|
-
{
|
|
2324
|
-
type: "object",
|
|
2325
|
-
properties: {
|
|
2326
|
-
kind: {
|
|
2327
|
-
type: "string",
|
|
2328
|
-
const: "path"
|
|
2329
|
-
},
|
|
2330
|
-
frame: { $ref: "#/$defs/Box" },
|
|
2331
|
-
rotationDeg: { type: "number" },
|
|
2332
|
-
subpaths: {
|
|
2333
|
-
type: "array",
|
|
2334
|
-
items: { $ref: "#/$defs/ContentSubpath" }
|
|
2335
|
-
},
|
|
2336
|
-
fill: { $ref: "#/$defs/Color" },
|
|
2337
|
-
fillPattern: { $ref: "#/$defs/ContentFillPattern" },
|
|
2338
|
-
fillOpacity: {
|
|
2339
|
-
type: "number",
|
|
2340
|
-
minimum: 0,
|
|
2341
|
-
maximum: 1
|
|
2342
|
-
},
|
|
2343
|
-
fillRule: {
|
|
2344
|
-
type: "string",
|
|
2345
|
-
enum: ["nonzero", "evenodd"]
|
|
2346
|
-
},
|
|
2347
|
-
stroke: { $ref: "#/$defs/ContentStroke" },
|
|
2348
|
-
paintOrder: { type: "number" },
|
|
2349
|
-
sourcePath: { type: "string" },
|
|
2350
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
2351
|
-
frames: {
|
|
2352
|
-
type: "array",
|
|
2353
|
-
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2354
|
-
},
|
|
2355
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2356
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2357
|
-
},
|
|
2358
|
-
required: [
|
|
2359
|
-
"kind",
|
|
2360
|
-
"frame",
|
|
2361
|
-
"subpaths"
|
|
2362
|
-
],
|
|
2363
|
-
additionalProperties: false
|
|
2364
|
-
}
|
|
2365
|
-
] },
|
|
2366
|
-
ContentEmbeddedObject: {
|
|
2367
|
-
type: "object",
|
|
2368
|
-
properties: {
|
|
2369
|
-
objectKind: {
|
|
2370
|
-
type: "string",
|
|
2371
|
-
enum: EMBEDDED_OBJECT_KINDS
|
|
2372
|
-
},
|
|
2373
|
-
document: { $ref: CONTENT_DOCUMENT_URI },
|
|
2374
|
-
frame: { $ref: "#/$defs/Box" },
|
|
2375
|
-
anchorRow: {
|
|
2376
|
-
type: "integer",
|
|
2377
|
-
minimum: 0,
|
|
2378
|
-
maximum: MAX_SAFE_INTEGER
|
|
2379
|
-
},
|
|
2380
|
-
anchorColumn: {
|
|
2381
|
-
type: "integer",
|
|
2382
|
-
minimum: 0,
|
|
2383
|
-
maximum: MAX_SAFE_INTEGER
|
|
2384
|
-
},
|
|
2385
|
-
offsetXPt: { type: "number" },
|
|
2386
|
-
offsetYPt: { type: "number" },
|
|
2387
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2388
|
-
},
|
|
2389
|
-
required: [
|
|
2390
|
-
"objectKind",
|
|
2391
|
-
"document",
|
|
2392
|
-
"frame"
|
|
2393
|
-
],
|
|
2394
|
-
additionalProperties: false
|
|
2395
|
-
},
|
|
2396
|
-
SectionGroup: {
|
|
2397
|
-
type: "object",
|
|
2398
|
-
properties: {
|
|
2399
|
-
node: { $ref: "#/$defs/SectionDescriptor" },
|
|
2400
|
-
style: { type: "string" },
|
|
2401
|
-
children: {
|
|
2402
|
-
type: "array",
|
|
2403
|
-
items: { oneOf: [
|
|
2404
|
-
{ $ref: "#/$defs/HeadingGroup" },
|
|
2405
|
-
{ $ref: "#/$defs/ListGroup" },
|
|
2406
|
-
{ $ref: "#/$defs/SectionConstructGroup" },
|
|
2407
|
-
{ $ref: "#/$defs/TreeBlockLeaf" }
|
|
2408
|
-
] }
|
|
2409
|
-
}
|
|
2410
|
-
},
|
|
2411
|
-
required: ["node", "children"],
|
|
2412
|
-
additionalProperties: false
|
|
2413
|
-
},
|
|
2414
|
-
HeadingGroup: {
|
|
2415
|
-
type: "object",
|
|
2416
|
-
properties: {
|
|
2417
|
-
node: { $ref: "#/$defs/HeadingParagraph" },
|
|
2418
|
-
style: { type: "string" },
|
|
2419
|
-
children: {
|
|
2420
|
-
type: "array",
|
|
2421
|
-
items: { oneOf: [
|
|
2422
|
-
{ $ref: "#/$defs/HeadingGroup" },
|
|
2423
|
-
{ $ref: "#/$defs/ListGroup" },
|
|
2424
|
-
{ $ref: "#/$defs/SectionConstructGroup" },
|
|
2425
|
-
{ $ref: "#/$defs/TreeBlockLeaf" }
|
|
2426
|
-
] }
|
|
2427
|
-
}
|
|
2428
|
-
},
|
|
2429
|
-
required: ["node", "children"],
|
|
2430
|
-
additionalProperties: false
|
|
2431
|
-
},
|
|
2432
|
-
ListGroup: {
|
|
2433
|
-
type: "object",
|
|
2434
|
-
properties: {
|
|
2435
|
-
node: { $ref: "#/$defs/ListParagraph" },
|
|
2436
|
-
style: { type: "string" },
|
|
2437
|
-
children: {
|
|
2438
|
-
type: "array",
|
|
2439
|
-
items: { oneOf: [
|
|
2440
|
-
{ $ref: "#/$defs/ListGroup" },
|
|
2441
|
-
{ $ref: "#/$defs/ShapeConstructGroup" },
|
|
2442
|
-
{ $ref: "#/$defs/TreeBlockLeaf" }
|
|
2443
|
-
] }
|
|
2444
|
-
}
|
|
2445
|
-
},
|
|
2446
|
-
required: ["node", "children"],
|
|
2447
|
-
additionalProperties: false
|
|
2448
|
-
},
|
|
2449
|
-
SlideGroup: {
|
|
2450
|
-
type: "object",
|
|
2451
|
-
properties: {
|
|
2452
|
-
node: { $ref: "#/$defs/SlideDescriptor" },
|
|
2453
|
-
style: { type: "string" },
|
|
2454
|
-
children: {
|
|
2455
|
-
type: "array",
|
|
2456
|
-
items: { $ref: "#/$defs/ShapeGroup" }
|
|
2457
|
-
}
|
|
2458
|
-
},
|
|
2459
|
-
required: ["node", "children"],
|
|
2460
|
-
additionalProperties: false
|
|
2461
|
-
},
|
|
2462
|
-
ShapeGroup: {
|
|
2463
|
-
type: "object",
|
|
2464
|
-
properties: {
|
|
2465
|
-
node: { $ref: "#/$defs/ShapeDescriptor" },
|
|
2466
|
-
style: { type: "string" },
|
|
2467
|
-
children: {
|
|
2468
|
-
type: "array",
|
|
2469
|
-
items: { oneOf: [
|
|
2470
|
-
{ $ref: "#/$defs/ListGroup" },
|
|
2471
|
-
{ $ref: "#/$defs/ShapeConstructGroup" },
|
|
2472
|
-
{ $ref: "#/$defs/TreeBlockLeaf" }
|
|
2473
|
-
] }
|
|
2474
|
-
}
|
|
2475
|
-
},
|
|
2476
|
-
required: ["node", "children"],
|
|
2477
|
-
additionalProperties: false
|
|
2478
|
-
},
|
|
2479
|
-
SheetGroup: {
|
|
2480
|
-
type: "object",
|
|
2481
|
-
properties: {
|
|
2482
|
-
node: { $ref: "#/$defs/SheetDescriptor" },
|
|
2483
|
-
style: { type: "string" },
|
|
2484
|
-
children: {
|
|
2485
|
-
type: "array",
|
|
2486
|
-
items: { oneOf: [{ $ref: "#/$defs/ContentSheetImage" }, { $ref: "#/$defs/ContentEmbeddedObject" }] }
|
|
2487
|
-
}
|
|
2488
|
-
},
|
|
2489
|
-
required: ["node", "children"],
|
|
2490
|
-
additionalProperties: false
|
|
2491
|
-
},
|
|
2492
|
-
DrawPageGroup: {
|
|
2493
|
-
type: "object",
|
|
2494
|
-
properties: {
|
|
2495
|
-
node: { $ref: "#/$defs/DrawPageDescriptor" },
|
|
2496
|
-
style: { type: "string" },
|
|
2497
|
-
children: {
|
|
2498
|
-
type: "array",
|
|
2499
|
-
items: { oneOf: [{ $ref: "#/$defs/ShapeGroup" }, { $ref: "#/$defs/ContentVector" }] }
|
|
2500
|
-
}
|
|
2501
|
-
},
|
|
2502
|
-
required: ["node", "children"],
|
|
2503
|
-
additionalProperties: false
|
|
2504
|
-
},
|
|
2505
|
-
SectionConstructGroup: {
|
|
2506
|
-
type: "object",
|
|
2507
|
-
properties: {
|
|
2508
|
-
node: { $ref: "#/$defs/ConstructDescriptor" },
|
|
2509
|
-
style: { type: "string" },
|
|
2510
|
-
children: {
|
|
2511
|
-
type: "array",
|
|
2512
|
-
items: { oneOf: [
|
|
2513
|
-
{ $ref: "#/$defs/HeadingGroup" },
|
|
2514
|
-
{ $ref: "#/$defs/ListGroup" },
|
|
2515
|
-
{ $ref: "#/$defs/SectionConstructGroup" },
|
|
2516
|
-
{ $ref: "#/$defs/TreeBlockLeaf" }
|
|
2517
|
-
] }
|
|
2518
|
-
}
|
|
2519
|
-
},
|
|
2520
|
-
required: ["node", "children"],
|
|
2521
|
-
additionalProperties: false
|
|
2522
|
-
},
|
|
2523
|
-
ShapeConstructGroup: {
|
|
2524
|
-
type: "object",
|
|
2525
|
-
properties: {
|
|
2526
|
-
node: { $ref: "#/$defs/ConstructDescriptor" },
|
|
2527
|
-
style: { type: "string" },
|
|
2528
|
-
children: {
|
|
2529
|
-
type: "array",
|
|
2530
|
-
items: { oneOf: [
|
|
2531
|
-
{ $ref: "#/$defs/ListGroup" },
|
|
2532
|
-
{ $ref: "#/$defs/ShapeConstructGroup" },
|
|
2533
|
-
{ $ref: "#/$defs/TreeBlockLeaf" }
|
|
2534
|
-
] }
|
|
2535
|
-
}
|
|
2536
|
-
},
|
|
2537
|
-
required: ["node", "children"],
|
|
2538
|
-
additionalProperties: false
|
|
2539
|
-
},
|
|
2540
|
-
ContentControlDescriptor: {
|
|
2541
|
-
type: "object",
|
|
2542
|
-
properties: {
|
|
2543
|
-
kind: {
|
|
2544
|
-
type: "string",
|
|
2545
|
-
const: "contentControl"
|
|
2546
|
-
},
|
|
2547
|
-
controlType: {
|
|
2548
|
-
type: "string",
|
|
2549
|
-
enum: [
|
|
2550
|
-
"richText",
|
|
2551
|
-
"plainText",
|
|
2552
|
-
"checkbox",
|
|
2553
|
-
"dropDown",
|
|
2554
|
-
"comboBox",
|
|
2555
|
-
"date",
|
|
2556
|
-
"picture",
|
|
2557
|
-
"repeatingSection",
|
|
2558
|
-
"button",
|
|
2559
|
-
"index",
|
|
2560
|
-
"group"
|
|
2561
|
-
]
|
|
2562
|
-
},
|
|
2563
|
-
tag: { type: "string" },
|
|
2564
|
-
alias: { type: "string" },
|
|
2565
|
-
lock: {
|
|
2566
|
-
type: "string",
|
|
2567
|
-
enum: [
|
|
2568
|
-
"content",
|
|
2569
|
-
"container",
|
|
2570
|
-
"both"
|
|
2571
|
-
]
|
|
2572
|
-
},
|
|
2573
|
-
value: { type: "string" },
|
|
2574
|
-
checked: { type: "boolean" },
|
|
2575
|
-
options: {
|
|
2576
|
-
type: "array",
|
|
2577
|
-
items: { type: "string" }
|
|
2578
|
-
},
|
|
2579
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2580
|
-
},
|
|
2581
|
-
required: ["kind", "controlType"],
|
|
2582
|
-
additionalProperties: false
|
|
2583
|
-
},
|
|
2584
|
-
FieldDescriptor: {
|
|
2585
|
-
type: "object",
|
|
2586
|
-
properties: {
|
|
2587
|
-
kind: {
|
|
2588
|
-
type: "string",
|
|
2589
|
-
const: "field"
|
|
2590
|
-
},
|
|
2591
|
-
instruction: { type: "string" },
|
|
2592
|
-
cachedResult: { type: "string" },
|
|
2593
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2594
|
-
},
|
|
2595
|
-
required: ["kind", "instruction"],
|
|
2596
|
-
additionalProperties: false
|
|
2597
|
-
},
|
|
2598
|
-
AnchorDescriptor: {
|
|
2599
|
-
type: "object",
|
|
2600
|
-
properties: {
|
|
2601
|
-
kind: {
|
|
2602
|
-
type: "string",
|
|
2603
|
-
const: "anchor"
|
|
2604
|
-
},
|
|
2605
|
-
anchorType: {
|
|
2606
|
-
type: "string",
|
|
2607
|
-
enum: [
|
|
2608
|
-
"bookmark",
|
|
2609
|
-
"footnote",
|
|
2610
|
-
"endnote",
|
|
2611
|
-
"comment"
|
|
2612
|
-
]
|
|
2613
|
-
},
|
|
2614
|
-
name: { type: "string" },
|
|
2615
|
-
definition: { type: "string" },
|
|
2616
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2617
|
-
},
|
|
2618
|
-
required: [
|
|
2619
|
-
"kind",
|
|
2620
|
-
"anchorType",
|
|
2621
|
-
"name"
|
|
2622
|
-
],
|
|
2623
|
-
additionalProperties: false
|
|
2624
|
-
},
|
|
2625
|
-
LinkTarget: { oneOf: [{
|
|
2626
|
-
type: "object",
|
|
2627
|
-
properties: {
|
|
2628
|
-
kind: {
|
|
2629
|
-
type: "string",
|
|
2630
|
-
const: "external"
|
|
2631
|
-
},
|
|
2632
|
-
uri: { type: "string" }
|
|
2633
|
-
},
|
|
2634
|
-
required: ["kind", "uri"],
|
|
2635
|
-
additionalProperties: false
|
|
2636
|
-
}, {
|
|
2637
|
-
type: "object",
|
|
2638
|
-
properties: {
|
|
2639
|
-
kind: {
|
|
2640
|
-
type: "string",
|
|
2641
|
-
const: "internal"
|
|
2642
|
-
},
|
|
2643
|
-
anchor: { type: "string" }
|
|
2644
|
-
},
|
|
2645
|
-
required: ["kind", "anchor"],
|
|
2646
|
-
additionalProperties: false
|
|
2647
|
-
}] },
|
|
2648
|
-
LinkDescriptor: {
|
|
2649
|
-
type: "object",
|
|
2650
|
-
properties: {
|
|
2651
|
-
kind: {
|
|
2652
|
-
type: "string",
|
|
2653
|
-
const: "link"
|
|
2654
|
-
},
|
|
2655
|
-
target: { $ref: "#/$defs/LinkTarget" },
|
|
2656
|
-
title: { type: "string" },
|
|
2657
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2658
|
-
},
|
|
2659
|
-
required: ["kind", "target"],
|
|
2660
|
-
additionalProperties: false
|
|
2661
|
-
},
|
|
2662
|
-
ProvenanceDescriptor: {
|
|
2663
|
-
type: "object",
|
|
2664
|
-
properties: {
|
|
2665
|
-
kind: {
|
|
2666
|
-
type: "string",
|
|
2667
|
-
const: "provenance"
|
|
2668
|
-
},
|
|
2669
|
-
change: {
|
|
2670
|
-
type: "string",
|
|
2671
|
-
enum: [
|
|
2672
|
-
"insertion",
|
|
2673
|
-
"deletion",
|
|
2674
|
-
"moveFrom",
|
|
2675
|
-
"moveTo",
|
|
2676
|
-
"formatChange"
|
|
2677
|
-
]
|
|
2678
|
-
},
|
|
2679
|
-
author: { type: "string" },
|
|
2680
|
-
dateIso: { type: "string" },
|
|
2681
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2682
|
-
},
|
|
2683
|
-
required: ["kind", "change"],
|
|
2684
|
-
additionalProperties: false
|
|
2685
|
-
},
|
|
2686
|
-
DivisionSource: {
|
|
2687
|
-
type: "object",
|
|
2688
|
-
properties: {
|
|
2689
|
-
href: { type: "string" },
|
|
2690
|
-
sectionName: { type: "string" }
|
|
2691
|
-
},
|
|
2692
|
-
required: ["href"],
|
|
2693
|
-
additionalProperties: false
|
|
2694
|
-
},
|
|
2695
|
-
DivisionDescriptor: {
|
|
2696
|
-
type: "object",
|
|
2697
|
-
properties: {
|
|
2698
|
-
kind: {
|
|
2699
|
-
type: "string",
|
|
2700
|
-
const: "division"
|
|
2701
|
-
},
|
|
2702
|
-
name: { type: "string" },
|
|
2703
|
-
columnCount: {
|
|
2704
|
-
type: "integer",
|
|
2705
|
-
exclusiveMinimum: 0,
|
|
2706
|
-
maximum: MAX_SAFE_INTEGER
|
|
2707
|
-
},
|
|
2708
|
-
protected: { type: "boolean" },
|
|
2709
|
-
linked: { $ref: "#/$defs/DivisionSource" },
|
|
2710
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2711
|
-
},
|
|
2712
|
-
required: ["kind"],
|
|
2713
|
-
additionalProperties: false
|
|
2714
|
-
},
|
|
2715
|
-
ConstructDescriptor: { oneOf: [
|
|
2716
|
-
{ $ref: "#/$defs/ContentControlDescriptor" },
|
|
2717
|
-
{ $ref: "#/$defs/FieldDescriptor" },
|
|
2718
|
-
{ $ref: "#/$defs/AnchorDescriptor" },
|
|
2719
|
-
{ $ref: "#/$defs/LinkDescriptor" },
|
|
2720
|
-
{ $ref: "#/$defs/ProvenanceDescriptor" },
|
|
2721
|
-
{ $ref: "#/$defs/DivisionDescriptor" }
|
|
2722
|
-
] },
|
|
2723
|
-
StyleParagraphProperties: {
|
|
2724
|
-
type: "object",
|
|
2725
|
-
properties: {
|
|
2726
|
-
alignment: { $ref: "#/$defs/Alignment" },
|
|
2727
|
-
list: { $ref: "#/$defs/ContentListMembership" },
|
|
2728
|
-
spacingBeforePt: { type: "number" },
|
|
2729
|
-
spacingAfterPt: { type: "number" },
|
|
2730
|
-
lineSpacing: {
|
|
2731
|
-
type: "number",
|
|
2732
|
-
exclusiveMinimum: 0
|
|
2733
|
-
},
|
|
2734
|
-
indentLeftPt: { type: "number" },
|
|
2735
|
-
indentFirstLinePt: { type: "number" },
|
|
2736
|
-
pageBreakBefore: { type: "boolean" },
|
|
2737
|
-
pageBreakAfter: { type: "boolean" }
|
|
2738
|
-
},
|
|
2739
|
-
additionalProperties: false
|
|
2740
|
-
},
|
|
2741
|
-
StyleRunProperties: {
|
|
2742
|
-
type: "object",
|
|
2743
|
-
properties: {
|
|
2744
|
-
bold: { type: "boolean" },
|
|
2745
|
-
italic: { type: "boolean" },
|
|
2746
|
-
underline: { type: "boolean" },
|
|
2747
|
-
strike: { type: "boolean" },
|
|
2748
|
-
fontFamily: { type: "string" },
|
|
2749
|
-
sizePt: {
|
|
2750
|
-
type: "number",
|
|
2751
|
-
exclusiveMinimum: 0
|
|
2752
|
-
},
|
|
2753
|
-
color: { $ref: "#/$defs/Color" }
|
|
2754
|
-
},
|
|
2755
|
-
additionalProperties: false
|
|
2756
|
-
},
|
|
2757
|
-
StyleEntry: {
|
|
2758
|
-
type: "object",
|
|
2759
|
-
properties: {
|
|
2760
|
-
paragraph: { $ref: "#/$defs/StyleParagraphProperties" },
|
|
2761
|
-
run: { $ref: "#/$defs/StyleRunProperties" }
|
|
2762
|
-
},
|
|
2763
|
-
additionalProperties: false
|
|
2764
|
-
},
|
|
2765
|
-
DefinitionEntry: {
|
|
2766
|
-
type: "object",
|
|
2767
|
-
properties: { kind: { type: "string" } },
|
|
2768
|
-
required: ["kind"],
|
|
2769
|
-
additionalProperties: {}
|
|
2770
|
-
},
|
|
2771
|
-
get MathMlAttribute() {
|
|
2772
|
-
return cacheMathMlDef("MathMlAttribute");
|
|
2773
|
-
},
|
|
2774
|
-
get MathMlElement() {
|
|
2775
|
-
return cacheMathMlDef("MathMlElement");
|
|
2776
|
-
},
|
|
2777
|
-
get MathMlNode() {
|
|
2778
|
-
return cacheMathMlDef("MathMlNode");
|
|
2779
|
-
},
|
|
2780
|
-
ContentFormula: {
|
|
2781
|
-
type: "object",
|
|
2782
|
-
properties: {
|
|
2783
|
-
mathml: {
|
|
2784
|
-
type: "array",
|
|
2785
|
-
items: { $ref: "#/$defs/MathMlNode" }
|
|
2786
|
-
},
|
|
2787
|
-
starMath: { type: "string" },
|
|
2788
|
-
presentation: { $ref: "#/$defs/MathPresentation" },
|
|
2789
|
-
content: { $ref: "#/$defs/MathExpression" },
|
|
2790
|
-
provenance: { $ref: "#/$defs/MathProvenance" },
|
|
2791
|
-
source: { $ref: "#/$defs/SourceResidue" },
|
|
2792
|
-
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2793
|
-
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2794
|
-
},
|
|
2795
|
-
required: ["mathml"],
|
|
2796
|
-
additionalProperties: false
|
|
2797
|
-
},
|
|
2798
|
-
ExactRational: {
|
|
2799
|
-
type: "object",
|
|
2800
|
-
properties: {
|
|
2801
|
-
numerator: {
|
|
2802
|
-
type: "string",
|
|
2803
|
-
pattern: "^(0|-?[1-9]\\d*)$"
|
|
2804
|
-
},
|
|
2805
|
-
denominator: {
|
|
2806
|
-
type: "string",
|
|
2807
|
-
pattern: "^[1-9]\\d*$"
|
|
2808
|
-
}
|
|
2809
|
-
},
|
|
2810
|
-
required: ["numerator", "denominator"],
|
|
2811
|
-
additionalProperties: false
|
|
2812
|
-
},
|
|
2813
|
-
DimensionVector: {
|
|
2814
|
-
type: "object",
|
|
2815
|
-
propertyNames: {
|
|
2816
|
-
type: "string",
|
|
2817
|
-
enum: [...SI_BASE_DIMENSIONS]
|
|
2818
|
-
},
|
|
2819
|
-
additionalProperties: {
|
|
2820
|
-
type: "integer",
|
|
2821
|
-
minimum: -MAX_SAFE_INTEGER,
|
|
2822
|
-
maximum: MAX_SAFE_INTEGER
|
|
2823
|
-
}
|
|
2824
|
-
},
|
|
2825
|
-
MathPresentation: {
|
|
2826
|
-
type: "object",
|
|
2827
|
-
properties: { latex: { type: "string" } },
|
|
2828
|
-
required: ["latex"],
|
|
2829
|
-
additionalProperties: false
|
|
2830
|
-
},
|
|
2831
|
-
MathProvenance: {
|
|
2832
|
-
type: "object",
|
|
2833
|
-
properties: {
|
|
2834
|
-
source: { type: "string" },
|
|
2835
|
-
pageRef: { type: "string" },
|
|
2836
|
-
editTrail: {
|
|
2837
|
-
type: "array",
|
|
2838
|
-
items: { type: "string" }
|
|
2839
|
-
}
|
|
2840
|
-
},
|
|
2841
|
-
required: ["source", "editTrail"],
|
|
2842
|
-
additionalProperties: false
|
|
2843
|
-
},
|
|
2844
|
-
MathUncertainty: {
|
|
2845
|
-
type: "object",
|
|
2846
|
-
properties: {
|
|
2847
|
-
magnitude: { $ref: "#/$defs/ExactRational" },
|
|
2848
|
-
unit: { type: "string" },
|
|
2849
|
-
coverageFactor: {
|
|
2850
|
-
type: "number",
|
|
2851
|
-
exclusiveMinimum: 0
|
|
2852
|
-
}
|
|
2853
|
-
},
|
|
2854
|
-
required: ["magnitude"],
|
|
2855
|
-
additionalProperties: false
|
|
2856
|
-
},
|
|
2857
|
-
MathSymbolEntry: {
|
|
2858
|
-
type: "object",
|
|
2859
|
-
properties: {
|
|
2860
|
-
glyph: { type: "string" },
|
|
2861
|
-
scope: { type: "string" },
|
|
2862
|
-
id: { type: "string" },
|
|
2863
|
-
quantityKind: { type: "string" },
|
|
2864
|
-
preferredUnit: { type: "string" },
|
|
2865
|
-
definitionSource: { type: "string" }
|
|
2866
|
-
},
|
|
2867
|
-
required: [
|
|
2868
|
-
"glyph",
|
|
2869
|
-
"scope",
|
|
2870
|
-
"id"
|
|
2871
|
-
],
|
|
2872
|
-
additionalProperties: false
|
|
2873
|
-
},
|
|
2874
|
-
MathUnit: {
|
|
2875
|
-
type: "object",
|
|
2876
|
-
properties: {
|
|
2877
|
-
id: { type: "string" },
|
|
2878
|
-
symbol: { type: "string" },
|
|
2879
|
-
name: { type: "string" },
|
|
2880
|
-
dimension: { $ref: "#/$defs/DimensionVector" },
|
|
2881
|
-
factorToSi: { $ref: "#/$defs/ExactRational" },
|
|
2882
|
-
offsetToSi: { $ref: "#/$defs/ExactRational" },
|
|
2883
|
-
context: { type: "string" }
|
|
2884
|
-
},
|
|
2885
|
-
required: [
|
|
2886
|
-
"id",
|
|
2887
|
-
"symbol",
|
|
2888
|
-
"dimension",
|
|
2889
|
-
"factorToSi"
|
|
2890
|
-
],
|
|
2891
|
-
additionalProperties: false
|
|
2892
|
-
},
|
|
2893
|
-
MathNormalisationContext: {
|
|
2894
|
-
type: "object",
|
|
2895
|
-
properties: {
|
|
2896
|
-
id: { type: "string" },
|
|
2897
|
-
bases: {
|
|
2898
|
-
type: "array",
|
|
2899
|
-
items: {
|
|
2900
|
-
type: "object",
|
|
2901
|
-
properties: {
|
|
2902
|
-
unit: { type: "string" },
|
|
2903
|
-
value: { $ref: "#/$defs/ExactRational" }
|
|
2904
|
-
},
|
|
2905
|
-
required: ["unit", "value"],
|
|
2906
|
-
additionalProperties: false
|
|
2907
|
-
}
|
|
2908
|
-
}
|
|
2909
|
-
},
|
|
2910
|
-
required: ["id", "bases"],
|
|
2911
|
-
additionalProperties: false
|
|
2912
|
-
},
|
|
2913
|
-
TreeEmbeddedFont: {
|
|
2914
|
-
type: "object",
|
|
2915
|
-
properties: {
|
|
2916
|
-
family: { type: "string" },
|
|
2917
|
-
bold: { type: "boolean" },
|
|
2918
|
-
italic: { type: "boolean" },
|
|
2919
|
-
base64: { type: "string" }
|
|
2920
|
-
},
|
|
2921
|
-
required: [
|
|
2922
|
-
"family",
|
|
2923
|
-
"bold",
|
|
2924
|
-
"italic",
|
|
2925
|
-
"base64"
|
|
2926
|
-
],
|
|
2927
|
-
additionalProperties: false
|
|
2928
|
-
},
|
|
2929
|
-
SymbolTable: {
|
|
2930
|
-
type: "object",
|
|
2931
|
-
properties: {
|
|
2932
|
-
symbols: {
|
|
2933
|
-
type: "array",
|
|
2934
|
-
items: { $ref: "#/$defs/MathSymbolEntry" }
|
|
2935
|
-
},
|
|
2936
|
-
units: {
|
|
2937
|
-
type: "array",
|
|
2938
|
-
items: { $ref: "#/$defs/MathUnit" }
|
|
2939
|
-
},
|
|
2940
|
-
contexts: {
|
|
2941
|
-
type: "array",
|
|
2942
|
-
items: { $ref: "#/$defs/MathNormalisationContext" }
|
|
2943
|
-
}
|
|
2944
|
-
},
|
|
2945
|
-
required: ["symbols", "units"],
|
|
2946
|
-
additionalProperties: false
|
|
2947
|
-
},
|
|
2948
|
-
MathNum: {
|
|
2949
|
-
type: "object",
|
|
2950
|
-
properties: {
|
|
2951
|
-
kind: {
|
|
2952
|
-
type: "string",
|
|
2953
|
-
const: "num"
|
|
2954
|
-
},
|
|
2955
|
-
numerator: {
|
|
2956
|
-
type: "string",
|
|
2957
|
-
pattern: "^(0|-?[1-9]\\d*)$"
|
|
2958
|
-
},
|
|
2959
|
-
denominator: {
|
|
2960
|
-
type: "string",
|
|
2961
|
-
pattern: "^[1-9]\\d*$"
|
|
2962
|
-
}
|
|
2963
|
-
},
|
|
2964
|
-
required: [
|
|
2965
|
-
"kind",
|
|
2966
|
-
"numerator",
|
|
2967
|
-
"denominator"
|
|
2968
|
-
],
|
|
2969
|
-
additionalProperties: false
|
|
2970
|
-
},
|
|
2971
|
-
MathQty: {
|
|
2972
|
-
type: "object",
|
|
2973
|
-
properties: {
|
|
2974
|
-
kind: {
|
|
2975
|
-
type: "string",
|
|
2976
|
-
const: "qty"
|
|
2977
|
-
},
|
|
2978
|
-
value: { $ref: "#/$defs/ExactRational" },
|
|
2979
|
-
unit: { type: "string" },
|
|
2980
|
-
uncertainty: { $ref: "#/$defs/MathUncertainty" }
|
|
2981
|
-
},
|
|
2982
|
-
required: [
|
|
2983
|
-
"kind",
|
|
2984
|
-
"value",
|
|
2985
|
-
"unit"
|
|
2986
|
-
],
|
|
2987
|
-
additionalProperties: false
|
|
2988
|
-
},
|
|
2989
|
-
MathSym: {
|
|
2990
|
-
type: "object",
|
|
2991
|
-
properties: {
|
|
2992
|
-
kind: {
|
|
2993
|
-
type: "string",
|
|
2994
|
-
const: "sym"
|
|
2995
|
-
},
|
|
2996
|
-
id: { type: "string" }
|
|
2997
|
-
},
|
|
2998
|
-
required: ["kind", "id"],
|
|
2999
|
-
additionalProperties: false
|
|
3000
|
-
},
|
|
3001
|
-
MathApp: {
|
|
3002
|
-
type: "object",
|
|
3003
|
-
properties: {
|
|
3004
|
-
kind: {
|
|
3005
|
-
type: "string",
|
|
3006
|
-
const: "app"
|
|
3007
|
-
},
|
|
3008
|
-
operator: { type: "string" },
|
|
3009
|
-
args: {
|
|
3010
|
-
type: "array",
|
|
3011
|
-
items: { $ref: "#/$defs/MathExpression" }
|
|
3012
|
-
}
|
|
3013
|
-
},
|
|
3014
|
-
required: [
|
|
3015
|
-
"kind",
|
|
3016
|
-
"operator",
|
|
3017
|
-
"args"
|
|
3018
|
-
],
|
|
3019
|
-
additionalProperties: false
|
|
3020
|
-
},
|
|
3021
|
-
MathSum: mathBinderDef("sum"),
|
|
3022
|
-
MathProd: mathBinderDef("prod"),
|
|
3023
|
-
MathMatrix: {
|
|
3024
|
-
type: "object",
|
|
3025
|
-
properties: {
|
|
3026
|
-
kind: {
|
|
3027
|
-
type: "string",
|
|
3028
|
-
const: "matrix"
|
|
3029
|
-
},
|
|
3030
|
-
rows: {
|
|
3031
|
-
type: "array",
|
|
3032
|
-
items: {
|
|
3033
|
-
type: "array",
|
|
3034
|
-
items: { $ref: "#/$defs/MathExpression" }
|
|
3035
|
-
}
|
|
3036
|
-
}
|
|
3037
|
-
},
|
|
3038
|
-
required: ["kind", "rows"],
|
|
3039
|
-
additionalProperties: false
|
|
3040
|
-
},
|
|
3041
|
-
MathUnparsed: {
|
|
3042
|
-
type: "object",
|
|
3043
|
-
properties: {
|
|
3044
|
-
kind: {
|
|
3045
|
-
type: "string",
|
|
3046
|
-
const: "unparsed"
|
|
3047
|
-
},
|
|
3048
|
-
latex: { type: "string" }
|
|
3049
|
-
},
|
|
3050
|
-
required: ["kind", "latex"],
|
|
3051
|
-
additionalProperties: false
|
|
3052
|
-
},
|
|
3053
|
-
MathExpression: { oneOf: [
|
|
3054
|
-
{ $ref: "#/$defs/MathNum" },
|
|
3055
|
-
{ $ref: "#/$defs/MathQty" },
|
|
3056
|
-
{ $ref: "#/$defs/MathSym" },
|
|
3057
|
-
{ $ref: "#/$defs/MathApp" },
|
|
3058
|
-
{ $ref: "#/$defs/MathSum" },
|
|
3059
|
-
{ $ref: "#/$defs/MathProd" },
|
|
3060
|
-
{ $ref: "#/$defs/MathMatrix" },
|
|
3061
|
-
{ $ref: "#/$defs/MathUnparsed" }
|
|
3062
|
-
] }
|
|
3063
|
-
};
|
|
54
|
+
DEFS_MATH
|
|
55
|
+
];
|
|
56
|
+
const CONTENT_DEFS = (() => {
|
|
57
|
+
const merged = {};
|
|
58
|
+
for (const part of DEFS_IN_ORDER) Object.defineProperties(merged, Object.getOwnPropertyDescriptors(part));
|
|
59
|
+
return merged;
|
|
60
|
+
})();
|
|
3064
61
|
//#endregion
|
|
3065
|
-
export { CONTENT_DEFS
|
|
62
|
+
export { CONTENT_DEFS };
|