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