@compact-design/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +373 -0
- package/README.md +86 -0
- package/dist/constants.d.ts +2 -0
- package/dist/generated-schema.d.ts +1666 -0
- package/dist/index.cjs +8800 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +8778 -0
- package/dist/lint.d.ts +10 -0
- package/dist/normalize.d.ts +4 -0
- package/dist/parser.d.ts +1 -0
- package/dist/patch.d.ts +6 -0
- package/dist/references.d.ts +6 -0
- package/dist/schema-validation.d.ts +2 -0
- package/dist/schema.d.ts +1 -0
- package/dist/types.d.ts +257 -0
- package/dist/validate.d.ts +2 -0
- package/package.json +55 -0
|
@@ -0,0 +1,1666 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
3
|
+
readonly $id: "https://compact-design-json.dev/schema.json";
|
|
4
|
+
readonly title: "Compact Design JSON";
|
|
5
|
+
readonly description: "The current public input language for the Compact Design JSON to Figma plugin.";
|
|
6
|
+
readonly type: "object";
|
|
7
|
+
readonly additionalProperties: false;
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly $schema: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
};
|
|
12
|
+
readonly canvas: {
|
|
13
|
+
readonly $ref: "#/$defs/canvas";
|
|
14
|
+
};
|
|
15
|
+
readonly canvases: {
|
|
16
|
+
readonly type: "array";
|
|
17
|
+
readonly minItems: 1;
|
|
18
|
+
readonly items: {
|
|
19
|
+
readonly $ref: "#/$defs/responsiveCanvas";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly nodes: {
|
|
23
|
+
readonly $ref: "#/$defs/nodes";
|
|
24
|
+
};
|
|
25
|
+
readonly variables: {
|
|
26
|
+
readonly type: "array";
|
|
27
|
+
readonly items: {
|
|
28
|
+
readonly $ref: "#/$defs/variableCollection";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly styles: {
|
|
32
|
+
readonly type: "array";
|
|
33
|
+
readonly items: {
|
|
34
|
+
readonly $ref: "#/$defs/style";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly patch: {
|
|
38
|
+
readonly $ref: "#/$defs/patchRoot";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly oneOf: readonly [{
|
|
42
|
+
readonly required: readonly ["canvas"];
|
|
43
|
+
readonly not: {
|
|
44
|
+
readonly anyOf: readonly [{
|
|
45
|
+
readonly required: readonly ["canvases"];
|
|
46
|
+
}, {
|
|
47
|
+
readonly required: readonly ["patch"];
|
|
48
|
+
}];
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
readonly required: readonly ["canvases"];
|
|
52
|
+
readonly not: {
|
|
53
|
+
readonly anyOf: readonly [{
|
|
54
|
+
readonly required: readonly ["canvas"];
|
|
55
|
+
}, {
|
|
56
|
+
readonly required: readonly ["patch"];
|
|
57
|
+
}];
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
readonly required: readonly ["patch"];
|
|
61
|
+
readonly not: {
|
|
62
|
+
readonly anyOf: readonly [{
|
|
63
|
+
readonly required: readonly ["canvas"];
|
|
64
|
+
}, {
|
|
65
|
+
readonly required: readonly ["canvases"];
|
|
66
|
+
}];
|
|
67
|
+
};
|
|
68
|
+
}];
|
|
69
|
+
readonly $defs: {
|
|
70
|
+
readonly positiveNumber: {
|
|
71
|
+
readonly type: "number";
|
|
72
|
+
readonly exclusiveMinimum: 0;
|
|
73
|
+
};
|
|
74
|
+
readonly nonNegativeNumber: {
|
|
75
|
+
readonly type: "number";
|
|
76
|
+
readonly minimum: 0;
|
|
77
|
+
};
|
|
78
|
+
readonly nullablePositiveNumber: {
|
|
79
|
+
readonly type: readonly ["number", "null"];
|
|
80
|
+
readonly exclusiveMinimum: 0;
|
|
81
|
+
};
|
|
82
|
+
readonly hexColor: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$";
|
|
85
|
+
};
|
|
86
|
+
readonly color: {
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly additionalProperties: false;
|
|
89
|
+
readonly required: readonly ["r", "g", "b"];
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly r: {
|
|
92
|
+
readonly type: "number";
|
|
93
|
+
readonly minimum: 0;
|
|
94
|
+
readonly maximum: 255;
|
|
95
|
+
};
|
|
96
|
+
readonly g: {
|
|
97
|
+
readonly type: "number";
|
|
98
|
+
readonly minimum: 0;
|
|
99
|
+
readonly maximum: 255;
|
|
100
|
+
};
|
|
101
|
+
readonly b: {
|
|
102
|
+
readonly type: "number";
|
|
103
|
+
readonly minimum: 0;
|
|
104
|
+
readonly maximum: 255;
|
|
105
|
+
};
|
|
106
|
+
readonly a: {
|
|
107
|
+
readonly type: "number";
|
|
108
|
+
readonly minimum: 0;
|
|
109
|
+
readonly maximum: 1;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly vector: {
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
readonly additionalProperties: false;
|
|
116
|
+
readonly required: readonly ["x", "y"];
|
|
117
|
+
readonly properties: {
|
|
118
|
+
readonly x: {
|
|
119
|
+
readonly type: "number";
|
|
120
|
+
};
|
|
121
|
+
readonly y: {
|
|
122
|
+
readonly type: "number";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly transform: {
|
|
127
|
+
readonly type: "array";
|
|
128
|
+
readonly minItems: 2;
|
|
129
|
+
readonly maxItems: 2;
|
|
130
|
+
readonly items: {
|
|
131
|
+
readonly type: "array";
|
|
132
|
+
readonly minItems: 3;
|
|
133
|
+
readonly maxItems: 3;
|
|
134
|
+
readonly items: {
|
|
135
|
+
readonly type: "number";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly gradientStop: {
|
|
140
|
+
readonly type: "object";
|
|
141
|
+
readonly additionalProperties: false;
|
|
142
|
+
readonly required: readonly ["at", "color"];
|
|
143
|
+
readonly properties: {
|
|
144
|
+
readonly at: {
|
|
145
|
+
readonly type: "number";
|
|
146
|
+
readonly minimum: 0;
|
|
147
|
+
readonly maximum: 1;
|
|
148
|
+
};
|
|
149
|
+
readonly color: {
|
|
150
|
+
readonly oneOf: readonly [{
|
|
151
|
+
readonly $ref: "#/$defs/hexColor";
|
|
152
|
+
}, {
|
|
153
|
+
readonly $ref: "#/$defs/color";
|
|
154
|
+
}];
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly imagePaint: {
|
|
159
|
+
readonly type: "object";
|
|
160
|
+
readonly additionalProperties: false;
|
|
161
|
+
readonly required: readonly ["image"];
|
|
162
|
+
readonly properties: {
|
|
163
|
+
readonly image: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly anyOf: readonly [{
|
|
166
|
+
readonly pattern: "^https://";
|
|
167
|
+
}, {
|
|
168
|
+
readonly pattern: "^file:[^/].+";
|
|
169
|
+
}, {
|
|
170
|
+
readonly pattern: "^data:image/(png|jpeg|gif|webp);base64,";
|
|
171
|
+
}];
|
|
172
|
+
};
|
|
173
|
+
readonly fit: {
|
|
174
|
+
readonly enum: readonly ["COVER", "CONTAIN", "CROP", "TILE", "FILL", "FIT"];
|
|
175
|
+
};
|
|
176
|
+
readonly opacity: {
|
|
177
|
+
readonly type: "number";
|
|
178
|
+
readonly minimum: 0;
|
|
179
|
+
readonly maximum: 1;
|
|
180
|
+
};
|
|
181
|
+
readonly transform: {
|
|
182
|
+
readonly $ref: "#/$defs/transform";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly gradientPaint: {
|
|
187
|
+
readonly type: "object";
|
|
188
|
+
readonly additionalProperties: false;
|
|
189
|
+
readonly required: readonly ["gradient", "stops"];
|
|
190
|
+
readonly properties: {
|
|
191
|
+
readonly gradient: {
|
|
192
|
+
readonly enum: readonly ["LINEAR", "RADIAL", "ANGULAR", "DIAMOND"];
|
|
193
|
+
};
|
|
194
|
+
readonly angle: {
|
|
195
|
+
readonly type: "number";
|
|
196
|
+
};
|
|
197
|
+
readonly transform: {
|
|
198
|
+
readonly $ref: "#/$defs/transform";
|
|
199
|
+
};
|
|
200
|
+
readonly stops: {
|
|
201
|
+
readonly type: "array";
|
|
202
|
+
readonly minItems: 2;
|
|
203
|
+
readonly items: {
|
|
204
|
+
readonly $ref: "#/$defs/gradientStop";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
readonly opacity: {
|
|
208
|
+
readonly type: "number";
|
|
209
|
+
readonly minimum: 0;
|
|
210
|
+
readonly maximum: 1;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly solidPaint: {
|
|
215
|
+
readonly type: "object";
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
readonly required: readonly ["type", "color"];
|
|
218
|
+
readonly properties: {
|
|
219
|
+
readonly type: {
|
|
220
|
+
readonly const: "SOLID";
|
|
221
|
+
};
|
|
222
|
+
readonly color: {
|
|
223
|
+
readonly $ref: "#/$defs/color";
|
|
224
|
+
};
|
|
225
|
+
readonly opacity: {
|
|
226
|
+
readonly type: "number";
|
|
227
|
+
readonly minimum: 0;
|
|
228
|
+
readonly maximum: 1;
|
|
229
|
+
};
|
|
230
|
+
readonly visible: {
|
|
231
|
+
readonly type: "boolean";
|
|
232
|
+
};
|
|
233
|
+
readonly blendMode: {
|
|
234
|
+
readonly type: "string";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
readonly nativeGradientStop: {
|
|
239
|
+
readonly type: "object";
|
|
240
|
+
readonly additionalProperties: false;
|
|
241
|
+
readonly required: readonly ["position", "color"];
|
|
242
|
+
readonly properties: {
|
|
243
|
+
readonly position: {
|
|
244
|
+
readonly type: "number";
|
|
245
|
+
readonly minimum: 0;
|
|
246
|
+
readonly maximum: 1;
|
|
247
|
+
};
|
|
248
|
+
readonly color: {
|
|
249
|
+
readonly $ref: "#/$defs/color";
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
readonly nativeGradientPaint: {
|
|
254
|
+
readonly type: "object";
|
|
255
|
+
readonly additionalProperties: false;
|
|
256
|
+
readonly required: readonly ["type", "gradientStops"];
|
|
257
|
+
readonly properties: {
|
|
258
|
+
readonly type: {
|
|
259
|
+
readonly enum: readonly ["GRADIENT_LINEAR", "GRADIENT_RADIAL", "GRADIENT_ANGULAR", "GRADIENT_DIAMOND"];
|
|
260
|
+
};
|
|
261
|
+
readonly gradientTransform: {
|
|
262
|
+
readonly $ref: "#/$defs/transform";
|
|
263
|
+
};
|
|
264
|
+
readonly gradientStops: {
|
|
265
|
+
readonly type: "array";
|
|
266
|
+
readonly minItems: 2;
|
|
267
|
+
readonly items: {
|
|
268
|
+
readonly $ref: "#/$defs/nativeGradientStop";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
readonly opacity: {
|
|
272
|
+
readonly type: "number";
|
|
273
|
+
readonly minimum: 0;
|
|
274
|
+
readonly maximum: 1;
|
|
275
|
+
};
|
|
276
|
+
readonly visible: {
|
|
277
|
+
readonly type: "boolean";
|
|
278
|
+
};
|
|
279
|
+
readonly blendMode: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
readonly paint: {
|
|
285
|
+
readonly oneOf: readonly [{
|
|
286
|
+
readonly $ref: "#/$defs/hexColor";
|
|
287
|
+
}, {
|
|
288
|
+
readonly $ref: "#/$defs/imagePaint";
|
|
289
|
+
}, {
|
|
290
|
+
readonly $ref: "#/$defs/gradientPaint";
|
|
291
|
+
}, {
|
|
292
|
+
readonly $ref: "#/$defs/solidPaint";
|
|
293
|
+
}, {
|
|
294
|
+
readonly $ref: "#/$defs/nativeGradientPaint";
|
|
295
|
+
}];
|
|
296
|
+
};
|
|
297
|
+
readonly font: {
|
|
298
|
+
readonly type: "object";
|
|
299
|
+
readonly additionalProperties: false;
|
|
300
|
+
readonly properties: {
|
|
301
|
+
readonly family: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly minLength: 1;
|
|
304
|
+
};
|
|
305
|
+
readonly style: {
|
|
306
|
+
readonly type: "string";
|
|
307
|
+
readonly minLength: 1;
|
|
308
|
+
};
|
|
309
|
+
readonly size: {
|
|
310
|
+
readonly $ref: "#/$defs/positiveNumber";
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
readonly letterSpacing: {
|
|
315
|
+
readonly type: "object";
|
|
316
|
+
readonly additionalProperties: false;
|
|
317
|
+
readonly required: readonly ["unit", "value"];
|
|
318
|
+
readonly properties: {
|
|
319
|
+
readonly unit: {
|
|
320
|
+
readonly enum: readonly ["PIXELS", "PERCENT"];
|
|
321
|
+
};
|
|
322
|
+
readonly value: {
|
|
323
|
+
readonly type: "number";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly lineHeightObject: {
|
|
328
|
+
readonly type: "object";
|
|
329
|
+
readonly additionalProperties: false;
|
|
330
|
+
readonly required: readonly ["unit"];
|
|
331
|
+
readonly properties: {
|
|
332
|
+
readonly unit: {
|
|
333
|
+
readonly enum: readonly ["PIXELS", "PERCENT", "AUTO"];
|
|
334
|
+
};
|
|
335
|
+
readonly value: {
|
|
336
|
+
readonly type: "number";
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
readonly allOf: readonly [{
|
|
340
|
+
readonly if: {
|
|
341
|
+
readonly properties: {
|
|
342
|
+
readonly unit: {
|
|
343
|
+
readonly const: "AUTO";
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly then: {
|
|
348
|
+
readonly not: {
|
|
349
|
+
readonly required: readonly ["value"];
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly else: {
|
|
353
|
+
readonly required: readonly ["value"];
|
|
354
|
+
};
|
|
355
|
+
}];
|
|
356
|
+
};
|
|
357
|
+
readonly textRun: {
|
|
358
|
+
readonly type: "object";
|
|
359
|
+
readonly additionalProperties: false;
|
|
360
|
+
readonly properties: {
|
|
361
|
+
readonly text: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
};
|
|
364
|
+
readonly start: {
|
|
365
|
+
readonly type: "integer";
|
|
366
|
+
readonly minimum: 0;
|
|
367
|
+
};
|
|
368
|
+
readonly end: {
|
|
369
|
+
readonly type: "integer";
|
|
370
|
+
readonly minimum: 0;
|
|
371
|
+
};
|
|
372
|
+
readonly font: {
|
|
373
|
+
readonly $ref: "#/$defs/font";
|
|
374
|
+
};
|
|
375
|
+
readonly fill: {
|
|
376
|
+
readonly $ref: "#/$defs/paint";
|
|
377
|
+
};
|
|
378
|
+
readonly letterSpacing: {
|
|
379
|
+
readonly $ref: "#/$defs/letterSpacing";
|
|
380
|
+
};
|
|
381
|
+
readonly textDecoration: {
|
|
382
|
+
readonly enum: readonly ["NONE", "UNDERLINE", "STRIKETHROUGH"];
|
|
383
|
+
};
|
|
384
|
+
readonly link: {
|
|
385
|
+
readonly type: "string";
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly anyOf: readonly [{
|
|
389
|
+
readonly required: readonly ["text"];
|
|
390
|
+
}, {
|
|
391
|
+
readonly required: readonly ["start", "end"];
|
|
392
|
+
}];
|
|
393
|
+
};
|
|
394
|
+
readonly padding: {
|
|
395
|
+
readonly type: "object";
|
|
396
|
+
readonly additionalProperties: false;
|
|
397
|
+
readonly properties: {
|
|
398
|
+
readonly left: {
|
|
399
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
400
|
+
};
|
|
401
|
+
readonly top: {
|
|
402
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
403
|
+
};
|
|
404
|
+
readonly right: {
|
|
405
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
406
|
+
};
|
|
407
|
+
readonly bottom: {
|
|
408
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
readonly layout: {
|
|
413
|
+
readonly type: "object";
|
|
414
|
+
readonly additionalProperties: false;
|
|
415
|
+
readonly required: readonly ["direction"];
|
|
416
|
+
readonly properties: {
|
|
417
|
+
readonly direction: {
|
|
418
|
+
readonly enum: readonly ["HORIZONTAL", "VERTICAL", "GRID"];
|
|
419
|
+
};
|
|
420
|
+
readonly itemSpacing: {
|
|
421
|
+
readonly type: "number";
|
|
422
|
+
};
|
|
423
|
+
readonly counterAxisSpacing: {
|
|
424
|
+
readonly type: "number";
|
|
425
|
+
};
|
|
426
|
+
readonly padding: {
|
|
427
|
+
readonly $ref: "#/$defs/padding";
|
|
428
|
+
};
|
|
429
|
+
readonly primaryAxisAlignItems: {
|
|
430
|
+
readonly enum: readonly ["MIN", "MAX", "CENTER", "SPACE_BETWEEN"];
|
|
431
|
+
};
|
|
432
|
+
readonly counterAxisAlignItems: {
|
|
433
|
+
readonly enum: readonly ["MIN", "MAX", "CENTER", "BASELINE", "STRETCH"];
|
|
434
|
+
};
|
|
435
|
+
readonly primaryAxisSizingMode: {
|
|
436
|
+
readonly enum: readonly ["FIXED", "HUG", "AUTO"];
|
|
437
|
+
};
|
|
438
|
+
readonly counterAxisSizingMode: {
|
|
439
|
+
readonly enum: readonly ["FIXED", "HUG", "AUTO"];
|
|
440
|
+
};
|
|
441
|
+
readonly wrap: {
|
|
442
|
+
readonly type: "boolean";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly constraints: {
|
|
447
|
+
readonly type: "object";
|
|
448
|
+
readonly additionalProperties: false;
|
|
449
|
+
readonly required: readonly ["horizontal", "vertical"];
|
|
450
|
+
readonly properties: {
|
|
451
|
+
readonly horizontal: {
|
|
452
|
+
readonly enum: readonly ["MIN", "CENTER", "MAX", "STRETCH", "SCALE"];
|
|
453
|
+
};
|
|
454
|
+
readonly vertical: {
|
|
455
|
+
readonly enum: readonly ["MIN", "CENTER", "MAX", "STRETCH", "SCALE"];
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly effect: {
|
|
460
|
+
readonly type: "object";
|
|
461
|
+
readonly additionalProperties: false;
|
|
462
|
+
readonly required: readonly ["type"];
|
|
463
|
+
readonly properties: {
|
|
464
|
+
readonly type: {
|
|
465
|
+
readonly enum: readonly ["DROP_SHADOW", "INNER_SHADOW", "LAYER_BLUR", "BACKGROUND_BLUR"];
|
|
466
|
+
};
|
|
467
|
+
readonly color: {
|
|
468
|
+
readonly oneOf: readonly [{
|
|
469
|
+
readonly $ref: "#/$defs/hexColor";
|
|
470
|
+
}, {
|
|
471
|
+
readonly $ref: "#/$defs/color";
|
|
472
|
+
}];
|
|
473
|
+
};
|
|
474
|
+
readonly offset: {
|
|
475
|
+
readonly $ref: "#/$defs/vector";
|
|
476
|
+
};
|
|
477
|
+
readonly blur: {
|
|
478
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
479
|
+
};
|
|
480
|
+
readonly radius: {
|
|
481
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
482
|
+
};
|
|
483
|
+
readonly spread: {
|
|
484
|
+
readonly type: "number";
|
|
485
|
+
};
|
|
486
|
+
readonly visible: {
|
|
487
|
+
readonly type: "boolean";
|
|
488
|
+
};
|
|
489
|
+
readonly blendMode: {
|
|
490
|
+
readonly type: "string";
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
readonly shadow: {
|
|
495
|
+
readonly type: "object";
|
|
496
|
+
readonly additionalProperties: false;
|
|
497
|
+
readonly properties: {
|
|
498
|
+
readonly x: {
|
|
499
|
+
readonly type: "number";
|
|
500
|
+
};
|
|
501
|
+
readonly y: {
|
|
502
|
+
readonly type: "number";
|
|
503
|
+
};
|
|
504
|
+
readonly blur: {
|
|
505
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
506
|
+
};
|
|
507
|
+
readonly spread: {
|
|
508
|
+
readonly type: "number";
|
|
509
|
+
};
|
|
510
|
+
readonly color: {
|
|
511
|
+
readonly $ref: "#/$defs/hexColor";
|
|
512
|
+
};
|
|
513
|
+
readonly inner: {
|
|
514
|
+
readonly type: "boolean";
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
readonly gridColor: {
|
|
519
|
+
readonly $ref: "#/$defs/color";
|
|
520
|
+
};
|
|
521
|
+
readonly grid: {
|
|
522
|
+
readonly oneOf: readonly [{
|
|
523
|
+
readonly type: "object";
|
|
524
|
+
readonly additionalProperties: false;
|
|
525
|
+
readonly required: readonly ["pattern", "sectionSize"];
|
|
526
|
+
readonly properties: {
|
|
527
|
+
readonly pattern: {
|
|
528
|
+
readonly const: "GRID";
|
|
529
|
+
};
|
|
530
|
+
readonly sectionSize: {
|
|
531
|
+
readonly $ref: "#/$defs/positiveNumber";
|
|
532
|
+
};
|
|
533
|
+
readonly color: {
|
|
534
|
+
readonly $ref: "#/$defs/gridColor";
|
|
535
|
+
};
|
|
536
|
+
readonly visible: {
|
|
537
|
+
readonly type: "boolean";
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
}, {
|
|
541
|
+
readonly type: "object";
|
|
542
|
+
readonly additionalProperties: false;
|
|
543
|
+
readonly required: readonly ["pattern", "alignment", "count", "gutterSize"];
|
|
544
|
+
readonly properties: {
|
|
545
|
+
readonly pattern: {
|
|
546
|
+
readonly enum: readonly ["COLUMNS", "ROWS"];
|
|
547
|
+
};
|
|
548
|
+
readonly alignment: {
|
|
549
|
+
readonly enum: readonly ["MIN", "MAX", "CENTER", "STRETCH"];
|
|
550
|
+
};
|
|
551
|
+
readonly count: {
|
|
552
|
+
readonly type: "integer";
|
|
553
|
+
readonly minimum: 1;
|
|
554
|
+
};
|
|
555
|
+
readonly gutterSize: {
|
|
556
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
557
|
+
};
|
|
558
|
+
readonly offset: {
|
|
559
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
560
|
+
};
|
|
561
|
+
readonly sectionSize: {
|
|
562
|
+
readonly $ref: "#/$defs/positiveNumber";
|
|
563
|
+
};
|
|
564
|
+
readonly color: {
|
|
565
|
+
readonly $ref: "#/$defs/gridColor";
|
|
566
|
+
};
|
|
567
|
+
readonly visible: {
|
|
568
|
+
readonly type: "boolean";
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
readonly allOf: readonly [{
|
|
572
|
+
readonly if: {
|
|
573
|
+
readonly properties: {
|
|
574
|
+
readonly alignment: {
|
|
575
|
+
readonly const: "STRETCH";
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
readonly then: {
|
|
580
|
+
readonly not: {
|
|
581
|
+
readonly required: readonly ["sectionSize"];
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
readonly else: {
|
|
585
|
+
readonly required: readonly ["sectionSize"];
|
|
586
|
+
};
|
|
587
|
+
}];
|
|
588
|
+
}];
|
|
589
|
+
};
|
|
590
|
+
readonly easing: {
|
|
591
|
+
readonly oneOf: readonly [{
|
|
592
|
+
readonly enum: readonly ["EASE_IN", "EASE_OUT", "EASE_IN_AND_OUT", "LINEAR", "EASE_IN_BACK", "EASE_OUT_BACK", "EASE_IN_AND_OUT_BACK", "GENTLE", "QUICK", "BOUNCY", "SLOW"];
|
|
593
|
+
}, {
|
|
594
|
+
readonly type: "object";
|
|
595
|
+
readonly required: readonly ["type"];
|
|
596
|
+
readonly properties: {
|
|
597
|
+
readonly type: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
};
|
|
600
|
+
readonly easingFunctionCubicBezier: {
|
|
601
|
+
readonly type: "object";
|
|
602
|
+
};
|
|
603
|
+
readonly easingFunctionSpring: {
|
|
604
|
+
readonly type: "object";
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
readonly additionalProperties: false;
|
|
608
|
+
}];
|
|
609
|
+
};
|
|
610
|
+
readonly transition: {
|
|
611
|
+
readonly type: "object";
|
|
612
|
+
readonly additionalProperties: false;
|
|
613
|
+
readonly required: readonly ["type"];
|
|
614
|
+
readonly properties: {
|
|
615
|
+
readonly type: {
|
|
616
|
+
readonly enum: readonly ["INSTANT", "DISSOLVE", "SMART_ANIMATE", "SCROLL_ANIMATE", "MOVE_IN", "MOVE_OUT", "PUSH", "SLIDE_IN", "SLIDE_OUT"];
|
|
617
|
+
};
|
|
618
|
+
readonly easing: {
|
|
619
|
+
readonly $ref: "#/$defs/easing";
|
|
620
|
+
};
|
|
621
|
+
readonly duration: {
|
|
622
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
623
|
+
};
|
|
624
|
+
readonly direction: {
|
|
625
|
+
readonly enum: readonly ["LEFT", "RIGHT", "TOP", "BOTTOM"];
|
|
626
|
+
};
|
|
627
|
+
readonly matchLayers: {
|
|
628
|
+
readonly type: "boolean";
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
readonly trigger: {
|
|
633
|
+
readonly type: "object";
|
|
634
|
+
readonly additionalProperties: false;
|
|
635
|
+
readonly required: readonly ["type"];
|
|
636
|
+
readonly properties: {
|
|
637
|
+
readonly type: {
|
|
638
|
+
readonly enum: readonly ["ON_CLICK", "ON_HOVER", "ON_PRESS", "ON_DRAG", "AFTER_TIMEOUT", "MOUSE_UP", "MOUSE_DOWN", "MOUSE_ENTER", "MOUSE_LEAVE", "ON_KEY_DOWN", "ON_MEDIA_HIT", "ON_MEDIA_END"];
|
|
639
|
+
};
|
|
640
|
+
readonly timeout: {
|
|
641
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
642
|
+
};
|
|
643
|
+
readonly delay: {
|
|
644
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
645
|
+
};
|
|
646
|
+
readonly deprecatedVersion: {
|
|
647
|
+
readonly type: "boolean";
|
|
648
|
+
};
|
|
649
|
+
readonly device: {
|
|
650
|
+
readonly enum: readonly ["KEYBOARD", "XBOX_ONE", "PS4", "SWITCH_PRO", "UNKNOWN_CONTROLLER"];
|
|
651
|
+
};
|
|
652
|
+
readonly keyCodes: {
|
|
653
|
+
readonly type: "array";
|
|
654
|
+
readonly items: {
|
|
655
|
+
readonly type: "integer";
|
|
656
|
+
readonly minimum: 0;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
readonly mediaHitTime: {
|
|
660
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
readonly variableData: {
|
|
665
|
+
readonly oneOf: readonly [{
|
|
666
|
+
readonly type: readonly ["boolean", "number", "string"];
|
|
667
|
+
}, {
|
|
668
|
+
readonly type: "object";
|
|
669
|
+
readonly additionalProperties: false;
|
|
670
|
+
readonly required: readonly ["variable"];
|
|
671
|
+
readonly properties: {
|
|
672
|
+
readonly variable: {
|
|
673
|
+
readonly type: "string";
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
}, {
|
|
677
|
+
readonly type: "object";
|
|
678
|
+
readonly additionalProperties: false;
|
|
679
|
+
readonly required: readonly ["function", "arguments"];
|
|
680
|
+
readonly properties: {
|
|
681
|
+
readonly function: {
|
|
682
|
+
readonly enum: readonly ["ADDITION", "SUBTRACTION", "MULTIPLICATION", "DIVISION", "EQUALS", "NOT_EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "GREATER_THAN", "GREATER_THAN_OR_EQUAL", "AND", "OR", "VAR_MODE_LOOKUP", "NEGATE", "NOT"];
|
|
683
|
+
};
|
|
684
|
+
readonly resolvedType: {
|
|
685
|
+
readonly enum: readonly ["BOOLEAN", "COLOR", "FLOAT", "STRING"];
|
|
686
|
+
};
|
|
687
|
+
readonly arguments: {
|
|
688
|
+
readonly type: "array";
|
|
689
|
+
readonly items: {
|
|
690
|
+
readonly $ref: "#/$defs/variableData";
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
}];
|
|
695
|
+
};
|
|
696
|
+
readonly prototypeAction: {
|
|
697
|
+
readonly oneOf: readonly [{
|
|
698
|
+
readonly type: "object";
|
|
699
|
+
readonly additionalProperties: false;
|
|
700
|
+
readonly required: readonly ["type", "destination"];
|
|
701
|
+
readonly properties: {
|
|
702
|
+
readonly type: {
|
|
703
|
+
readonly enum: readonly ["NAVIGATE", "SWAP", "OVERLAY", "SCROLL_TO", "CHANGE_TO"];
|
|
704
|
+
};
|
|
705
|
+
readonly destination: {
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
};
|
|
708
|
+
readonly transition: {
|
|
709
|
+
readonly $ref: "#/$defs/transition";
|
|
710
|
+
};
|
|
711
|
+
readonly overlayRelativePosition: {
|
|
712
|
+
readonly $ref: "#/$defs/vector";
|
|
713
|
+
};
|
|
714
|
+
readonly resetVideoPosition: {
|
|
715
|
+
readonly type: "boolean";
|
|
716
|
+
};
|
|
717
|
+
readonly resetScrollPosition: {
|
|
718
|
+
readonly type: "boolean";
|
|
719
|
+
};
|
|
720
|
+
readonly resetInteractiveComponents: {
|
|
721
|
+
readonly type: "boolean";
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
}, {
|
|
725
|
+
readonly type: "object";
|
|
726
|
+
readonly additionalProperties: false;
|
|
727
|
+
readonly required: readonly ["type"];
|
|
728
|
+
readonly properties: {
|
|
729
|
+
readonly type: {
|
|
730
|
+
readonly enum: readonly ["BACK", "CLOSE"];
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
}, {
|
|
734
|
+
readonly type: "object";
|
|
735
|
+
readonly additionalProperties: false;
|
|
736
|
+
readonly required: readonly ["type", "url"];
|
|
737
|
+
readonly properties: {
|
|
738
|
+
readonly type: {
|
|
739
|
+
readonly const: "URL";
|
|
740
|
+
};
|
|
741
|
+
readonly url: {
|
|
742
|
+
readonly type: "string";
|
|
743
|
+
readonly minLength: 1;
|
|
744
|
+
};
|
|
745
|
+
readonly openInNewTab: {
|
|
746
|
+
readonly type: "boolean";
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
}, {
|
|
750
|
+
readonly type: "object";
|
|
751
|
+
readonly additionalProperties: false;
|
|
752
|
+
readonly required: readonly ["type", "mediaAction"];
|
|
753
|
+
readonly properties: {
|
|
754
|
+
readonly type: {
|
|
755
|
+
readonly const: "UPDATE_MEDIA_RUNTIME";
|
|
756
|
+
};
|
|
757
|
+
readonly destination: {
|
|
758
|
+
readonly type: "string";
|
|
759
|
+
};
|
|
760
|
+
readonly mediaAction: {
|
|
761
|
+
readonly enum: readonly ["PLAY", "PAUSE", "TOGGLE_PLAY_PAUSE", "MUTE", "UNMUTE", "TOGGLE_MUTE_UNMUTE", "SKIP_FORWARD", "SKIP_BACKWARD", "SKIP_TO"];
|
|
762
|
+
};
|
|
763
|
+
readonly amountToSkip: {
|
|
764
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
765
|
+
};
|
|
766
|
+
readonly newTimestamp: {
|
|
767
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
}, {
|
|
771
|
+
readonly type: "object";
|
|
772
|
+
readonly additionalProperties: false;
|
|
773
|
+
readonly required: readonly ["type", "variable", "value"];
|
|
774
|
+
readonly properties: {
|
|
775
|
+
readonly type: {
|
|
776
|
+
readonly const: "SET_VARIABLE";
|
|
777
|
+
};
|
|
778
|
+
readonly variable: {
|
|
779
|
+
readonly type: "string";
|
|
780
|
+
};
|
|
781
|
+
readonly value: {
|
|
782
|
+
readonly $ref: "#/$defs/variableData";
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
}, {
|
|
786
|
+
readonly type: "object";
|
|
787
|
+
readonly additionalProperties: false;
|
|
788
|
+
readonly required: readonly ["type", "collection", "mode"];
|
|
789
|
+
readonly properties: {
|
|
790
|
+
readonly type: {
|
|
791
|
+
readonly const: "SET_VARIABLE_MODE";
|
|
792
|
+
};
|
|
793
|
+
readonly collection: {
|
|
794
|
+
readonly type: "string";
|
|
795
|
+
};
|
|
796
|
+
readonly mode: {
|
|
797
|
+
readonly type: "string";
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
}, {
|
|
801
|
+
readonly type: "object";
|
|
802
|
+
readonly additionalProperties: false;
|
|
803
|
+
readonly required: readonly ["type", "blocks"];
|
|
804
|
+
readonly properties: {
|
|
805
|
+
readonly type: {
|
|
806
|
+
readonly const: "CONDITIONAL";
|
|
807
|
+
};
|
|
808
|
+
readonly blocks: {
|
|
809
|
+
readonly type: "array";
|
|
810
|
+
readonly minItems: 1;
|
|
811
|
+
readonly items: {
|
|
812
|
+
readonly $ref: "#/$defs/conditionalBlock";
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
}];
|
|
817
|
+
};
|
|
818
|
+
readonly conditionalBlock: {
|
|
819
|
+
readonly type: "object";
|
|
820
|
+
readonly additionalProperties: false;
|
|
821
|
+
readonly required: readonly ["actions"];
|
|
822
|
+
readonly properties: {
|
|
823
|
+
readonly condition: {
|
|
824
|
+
readonly $ref: "#/$defs/variableData";
|
|
825
|
+
};
|
|
826
|
+
readonly actions: {
|
|
827
|
+
readonly type: "array";
|
|
828
|
+
readonly minItems: 1;
|
|
829
|
+
readonly items: {
|
|
830
|
+
readonly $ref: "#/$defs/prototypeAction";
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
readonly prototype: {
|
|
836
|
+
readonly type: "object";
|
|
837
|
+
readonly additionalProperties: false;
|
|
838
|
+
readonly required: readonly ["trigger", "actions"];
|
|
839
|
+
readonly properties: {
|
|
840
|
+
readonly trigger: {
|
|
841
|
+
readonly $ref: "#/$defs/trigger";
|
|
842
|
+
};
|
|
843
|
+
readonly actions: {
|
|
844
|
+
readonly type: "array";
|
|
845
|
+
readonly minItems: 1;
|
|
846
|
+
readonly items: {
|
|
847
|
+
readonly $ref: "#/$defs/prototypeAction";
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
readonly componentProperty: {
|
|
853
|
+
readonly type: "object";
|
|
854
|
+
readonly additionalProperties: false;
|
|
855
|
+
readonly required: readonly ["name", "type", "defaultValue"];
|
|
856
|
+
readonly properties: {
|
|
857
|
+
readonly name: {
|
|
858
|
+
readonly type: "string";
|
|
859
|
+
readonly minLength: 1;
|
|
860
|
+
};
|
|
861
|
+
readonly type: {
|
|
862
|
+
readonly enum: readonly ["TEXT", "BOOLEAN", "INSTANCE_SWAP"];
|
|
863
|
+
};
|
|
864
|
+
readonly defaultValue: {};
|
|
865
|
+
readonly options: {
|
|
866
|
+
readonly type: "object";
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
readonly vectorPath: {
|
|
871
|
+
readonly type: "object";
|
|
872
|
+
readonly additionalProperties: false;
|
|
873
|
+
readonly required: readonly ["data"];
|
|
874
|
+
readonly properties: {
|
|
875
|
+
readonly windingRule: {
|
|
876
|
+
readonly enum: readonly ["NONZERO", "EVENODD"];
|
|
877
|
+
};
|
|
878
|
+
readonly data: {
|
|
879
|
+
readonly type: "string";
|
|
880
|
+
readonly minLength: 1;
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
readonly node: {
|
|
885
|
+
readonly type: "object";
|
|
886
|
+
readonly additionalProperties: false;
|
|
887
|
+
readonly required: readonly ["w", "h"];
|
|
888
|
+
readonly properties: {
|
|
889
|
+
readonly id: {
|
|
890
|
+
readonly type: "string";
|
|
891
|
+
readonly minLength: 1;
|
|
892
|
+
};
|
|
893
|
+
readonly name: {
|
|
894
|
+
readonly type: "string";
|
|
895
|
+
};
|
|
896
|
+
readonly type: {
|
|
897
|
+
readonly enum: readonly ["FRAME", "GROUP", "RECTANGLE", "ELLIPSE", "ARC", "LINE", "POLYGON", "STAR", "SECTION", "SLICE", "TEXT", "SVG", "VECTOR", "COMPONENT", "COMPONENT_SET", "INSTANCE", "BOOLEAN_OPERATION"];
|
|
898
|
+
};
|
|
899
|
+
readonly x: {
|
|
900
|
+
readonly type: "number";
|
|
901
|
+
};
|
|
902
|
+
readonly y: {
|
|
903
|
+
readonly type: "number";
|
|
904
|
+
};
|
|
905
|
+
readonly w: {
|
|
906
|
+
readonly $ref: "#/$defs/positiveNumber";
|
|
907
|
+
};
|
|
908
|
+
readonly h: {
|
|
909
|
+
readonly $ref: "#/$defs/positiveNumber";
|
|
910
|
+
};
|
|
911
|
+
readonly coordinateMode: {
|
|
912
|
+
readonly enum: readonly ["RELATIVE", "ABSOLUTE"];
|
|
913
|
+
};
|
|
914
|
+
readonly rotation: {
|
|
915
|
+
readonly type: "number";
|
|
916
|
+
};
|
|
917
|
+
readonly fill: {
|
|
918
|
+
readonly $ref: "#/$defs/paint";
|
|
919
|
+
};
|
|
920
|
+
readonly fills: {
|
|
921
|
+
readonly type: "array";
|
|
922
|
+
readonly items: {
|
|
923
|
+
readonly $ref: "#/$defs/paint";
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
readonly stroke: {
|
|
927
|
+
readonly $ref: "#/$defs/paint";
|
|
928
|
+
};
|
|
929
|
+
readonly strokes: {
|
|
930
|
+
readonly type: "array";
|
|
931
|
+
readonly items: {
|
|
932
|
+
readonly $ref: "#/$defs/paint";
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
readonly strokeWeight: {
|
|
936
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
937
|
+
};
|
|
938
|
+
readonly strokeTopWeight: {
|
|
939
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
940
|
+
};
|
|
941
|
+
readonly strokeRightWeight: {
|
|
942
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
943
|
+
};
|
|
944
|
+
readonly strokeBottomWeight: {
|
|
945
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
946
|
+
};
|
|
947
|
+
readonly strokeLeftWeight: {
|
|
948
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
949
|
+
};
|
|
950
|
+
readonly strokeAlign: {
|
|
951
|
+
readonly enum: readonly ["CENTER", "INSIDE", "OUTSIDE"];
|
|
952
|
+
};
|
|
953
|
+
readonly strokeCap: {
|
|
954
|
+
readonly enum: readonly ["NONE", "ROUND", "SQUARE", "LINE_ARROW", "TRIANGLE_ARROW", "DIAMOND_FILLED", "CIRCLE_FILLED", "TRIANGLE_FILLED", "WASHI_TAPE_1", "WASHI_TAPE_2", "WASHI_TAPE_3", "WASHI_TAPE_4", "WASHI_TAPE_5", "WASHI_TAPE_6"];
|
|
955
|
+
};
|
|
956
|
+
readonly strokeJoin: {
|
|
957
|
+
readonly enum: readonly ["MITER", "BEVEL", "ROUND"];
|
|
958
|
+
};
|
|
959
|
+
readonly dashPattern: {
|
|
960
|
+
readonly type: "array";
|
|
961
|
+
readonly items: {
|
|
962
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
readonly cornerRadius: {
|
|
966
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
967
|
+
};
|
|
968
|
+
readonly cornerRadii: {
|
|
969
|
+
readonly type: "array";
|
|
970
|
+
readonly minItems: 4;
|
|
971
|
+
readonly maxItems: 4;
|
|
972
|
+
readonly items: {
|
|
973
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
readonly opacity: {
|
|
977
|
+
readonly type: "number";
|
|
978
|
+
readonly minimum: 0;
|
|
979
|
+
readonly maximum: 1;
|
|
980
|
+
};
|
|
981
|
+
readonly blendMode: {
|
|
982
|
+
readonly type: "string";
|
|
983
|
+
};
|
|
984
|
+
readonly visible: {
|
|
985
|
+
readonly type: "boolean";
|
|
986
|
+
};
|
|
987
|
+
readonly locked: {
|
|
988
|
+
readonly type: "boolean";
|
|
989
|
+
};
|
|
990
|
+
readonly isMask: {
|
|
991
|
+
readonly type: "boolean";
|
|
992
|
+
};
|
|
993
|
+
readonly clipsContent: {
|
|
994
|
+
readonly type: "boolean";
|
|
995
|
+
};
|
|
996
|
+
readonly effects: {
|
|
997
|
+
readonly type: "array";
|
|
998
|
+
readonly items: {
|
|
999
|
+
readonly $ref: "#/$defs/effect";
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
readonly elevation: {
|
|
1003
|
+
readonly enum: readonly ["NONE", "LOW", "MEDIUM", "HIGH", "FLOATING"];
|
|
1004
|
+
};
|
|
1005
|
+
readonly shadow: {
|
|
1006
|
+
readonly oneOf: readonly [{
|
|
1007
|
+
readonly $ref: "#/$defs/shadow";
|
|
1008
|
+
}, {
|
|
1009
|
+
readonly type: "array";
|
|
1010
|
+
readonly items: {
|
|
1011
|
+
readonly $ref: "#/$defs/shadow";
|
|
1012
|
+
};
|
|
1013
|
+
}];
|
|
1014
|
+
};
|
|
1015
|
+
readonly children: {
|
|
1016
|
+
readonly $ref: "#/$defs/nodes";
|
|
1017
|
+
};
|
|
1018
|
+
readonly layout: {
|
|
1019
|
+
readonly $ref: "#/$defs/layout";
|
|
1020
|
+
};
|
|
1021
|
+
readonly constraints: {
|
|
1022
|
+
readonly $ref: "#/$defs/constraints";
|
|
1023
|
+
};
|
|
1024
|
+
readonly layoutSizingHorizontal: {
|
|
1025
|
+
readonly enum: readonly ["FIXED", "HUG", "FILL"];
|
|
1026
|
+
};
|
|
1027
|
+
readonly layoutSizingVertical: {
|
|
1028
|
+
readonly enum: readonly ["FIXED", "HUG", "FILL"];
|
|
1029
|
+
};
|
|
1030
|
+
readonly layoutAlign: {
|
|
1031
|
+
readonly enum: readonly ["INHERIT", "STRETCH"];
|
|
1032
|
+
};
|
|
1033
|
+
readonly layoutGrow: {
|
|
1034
|
+
readonly type: "number";
|
|
1035
|
+
readonly minimum: 0;
|
|
1036
|
+
};
|
|
1037
|
+
readonly layoutPositioning: {
|
|
1038
|
+
readonly enum: readonly ["AUTO", "ABSOLUTE"];
|
|
1039
|
+
};
|
|
1040
|
+
readonly minWidth: {
|
|
1041
|
+
readonly $ref: "#/$defs/nullablePositiveNumber";
|
|
1042
|
+
};
|
|
1043
|
+
readonly maxWidth: {
|
|
1044
|
+
readonly $ref: "#/$defs/nullablePositiveNumber";
|
|
1045
|
+
};
|
|
1046
|
+
readonly minHeight: {
|
|
1047
|
+
readonly $ref: "#/$defs/nullablePositiveNumber";
|
|
1048
|
+
};
|
|
1049
|
+
readonly maxHeight: {
|
|
1050
|
+
readonly $ref: "#/$defs/nullablePositiveNumber";
|
|
1051
|
+
};
|
|
1052
|
+
readonly layoutGrids: {
|
|
1053
|
+
readonly type: "array";
|
|
1054
|
+
readonly items: {
|
|
1055
|
+
readonly $ref: "#/$defs/grid";
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
readonly text: {
|
|
1059
|
+
readonly type: "string";
|
|
1060
|
+
};
|
|
1061
|
+
readonly font: {
|
|
1062
|
+
readonly $ref: "#/$defs/font";
|
|
1063
|
+
};
|
|
1064
|
+
readonly lineHeight: {
|
|
1065
|
+
readonly oneOf: readonly [{
|
|
1066
|
+
readonly type: "number";
|
|
1067
|
+
readonly exclusiveMinimum: 0;
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly $ref: "#/$defs/lineHeightObject";
|
|
1070
|
+
}];
|
|
1071
|
+
};
|
|
1072
|
+
readonly letterSpacing: {
|
|
1073
|
+
readonly $ref: "#/$defs/letterSpacing";
|
|
1074
|
+
};
|
|
1075
|
+
readonly align: {
|
|
1076
|
+
readonly enum: readonly ["LEFT", "CENTER", "RIGHT", "JUSTIFIED"];
|
|
1077
|
+
};
|
|
1078
|
+
readonly verticalAlignment: {
|
|
1079
|
+
readonly enum: readonly ["TOP", "CENTER", "BOTTOM"];
|
|
1080
|
+
};
|
|
1081
|
+
readonly textDecoration: {
|
|
1082
|
+
readonly enum: readonly ["NONE", "UNDERLINE", "STRIKETHROUGH"];
|
|
1083
|
+
};
|
|
1084
|
+
readonly textCase: {
|
|
1085
|
+
readonly enum: readonly ["ORIGINAL", "UPPER", "LOWER", "TITLE", "SMALL_CAPS", "SMALL_CAPS_FORCED"];
|
|
1086
|
+
};
|
|
1087
|
+
readonly paragraphSpacing: {
|
|
1088
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
1089
|
+
};
|
|
1090
|
+
readonly paragraphIndent: {
|
|
1091
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
1092
|
+
};
|
|
1093
|
+
readonly listSpacing: {
|
|
1094
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
1095
|
+
};
|
|
1096
|
+
readonly hangingPunctuation: {
|
|
1097
|
+
readonly type: "boolean";
|
|
1098
|
+
};
|
|
1099
|
+
readonly hangingList: {
|
|
1100
|
+
readonly type: "boolean";
|
|
1101
|
+
};
|
|
1102
|
+
readonly textAutoResize: {
|
|
1103
|
+
readonly enum: readonly ["NONE", "WIDTH_AND_HEIGHT", "HEIGHT", "TRUNCATE"];
|
|
1104
|
+
};
|
|
1105
|
+
readonly textTruncation: {
|
|
1106
|
+
readonly enum: readonly ["DISABLED", "ENDING"];
|
|
1107
|
+
};
|
|
1108
|
+
readonly maxLines: {
|
|
1109
|
+
readonly type: readonly ["integer", "null"];
|
|
1110
|
+
readonly minimum: 1;
|
|
1111
|
+
};
|
|
1112
|
+
readonly runs: {
|
|
1113
|
+
readonly type: "array";
|
|
1114
|
+
readonly minItems: 1;
|
|
1115
|
+
readonly items: {
|
|
1116
|
+
readonly $ref: "#/$defs/textRun";
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
readonly pointCount: {
|
|
1120
|
+
readonly type: "integer";
|
|
1121
|
+
readonly minimum: 3;
|
|
1122
|
+
};
|
|
1123
|
+
readonly innerRadius: {
|
|
1124
|
+
readonly type: "number";
|
|
1125
|
+
readonly minimum: 0;
|
|
1126
|
+
readonly maximum: 1;
|
|
1127
|
+
};
|
|
1128
|
+
readonly startingAngle: {
|
|
1129
|
+
readonly type: "number";
|
|
1130
|
+
};
|
|
1131
|
+
readonly endingAngle: {
|
|
1132
|
+
readonly type: "number";
|
|
1133
|
+
};
|
|
1134
|
+
readonly innerRadiusRatio: {
|
|
1135
|
+
readonly type: "number";
|
|
1136
|
+
readonly minimum: 0;
|
|
1137
|
+
readonly maximum: 1;
|
|
1138
|
+
};
|
|
1139
|
+
readonly svg: {
|
|
1140
|
+
readonly type: "string";
|
|
1141
|
+
readonly minLength: 1;
|
|
1142
|
+
};
|
|
1143
|
+
readonly vectorPaths: {
|
|
1144
|
+
readonly type: "array";
|
|
1145
|
+
readonly minItems: 1;
|
|
1146
|
+
readonly items: {
|
|
1147
|
+
readonly $ref: "#/$defs/vectorPath";
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
readonly componentId: {
|
|
1151
|
+
readonly type: "string";
|
|
1152
|
+
readonly minLength: 1;
|
|
1153
|
+
};
|
|
1154
|
+
readonly componentProperties: {
|
|
1155
|
+
readonly type: "array";
|
|
1156
|
+
readonly items: {
|
|
1157
|
+
readonly $ref: "#/$defs/componentProperty";
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
readonly instanceProperties: {
|
|
1161
|
+
readonly type: "object";
|
|
1162
|
+
};
|
|
1163
|
+
readonly variantAxes: {
|
|
1164
|
+
readonly type: "object";
|
|
1165
|
+
readonly additionalProperties: {
|
|
1166
|
+
readonly type: "array";
|
|
1167
|
+
readonly minItems: 1;
|
|
1168
|
+
readonly items: {
|
|
1169
|
+
readonly type: "string";
|
|
1170
|
+
};
|
|
1171
|
+
readonly uniqueItems: true;
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
readonly variant: {
|
|
1175
|
+
readonly type: "object";
|
|
1176
|
+
readonly additionalProperties: {
|
|
1177
|
+
readonly type: "string";
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
readonly operation: {
|
|
1181
|
+
readonly enum: readonly ["UNION", "SUBTRACT", "INTERSECT", "EXCLUDE"];
|
|
1182
|
+
};
|
|
1183
|
+
readonly prototype: {
|
|
1184
|
+
readonly type: "array";
|
|
1185
|
+
readonly items: {
|
|
1186
|
+
readonly $ref: "#/$defs/prototype";
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
readonly overflowDirection: {
|
|
1190
|
+
readonly enum: readonly ["NONE", "HORIZONTAL_SCROLLING", "VERTICAL_SCROLLING", "HORIZONTAL_AND_VERTICAL_SCROLLING"];
|
|
1191
|
+
};
|
|
1192
|
+
readonly numberOfFixedChildren: {
|
|
1193
|
+
readonly type: "integer";
|
|
1194
|
+
readonly minimum: 0;
|
|
1195
|
+
};
|
|
1196
|
+
readonly styleRefs: {
|
|
1197
|
+
readonly type: "object";
|
|
1198
|
+
readonly additionalProperties: {
|
|
1199
|
+
readonly type: "string";
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
readonly bindings: {
|
|
1203
|
+
readonly type: "object";
|
|
1204
|
+
readonly additionalProperties: {
|
|
1205
|
+
readonly type: "string";
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
readonly variableModes: {
|
|
1209
|
+
readonly type: "object";
|
|
1210
|
+
readonly additionalProperties: {
|
|
1211
|
+
readonly type: "string";
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
readonly allOf: readonly [{
|
|
1216
|
+
readonly if: {
|
|
1217
|
+
readonly properties: {
|
|
1218
|
+
readonly type: {
|
|
1219
|
+
readonly const: "TEXT";
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
readonly required: readonly ["type"];
|
|
1223
|
+
};
|
|
1224
|
+
readonly then: {
|
|
1225
|
+
readonly anyOf: readonly [{
|
|
1226
|
+
readonly required: readonly ["text"];
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly required: readonly ["runs"];
|
|
1229
|
+
}];
|
|
1230
|
+
};
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly if: {
|
|
1233
|
+
readonly properties: {
|
|
1234
|
+
readonly type: {
|
|
1235
|
+
readonly const: "SVG";
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
readonly required: readonly ["type"];
|
|
1239
|
+
};
|
|
1240
|
+
readonly then: {
|
|
1241
|
+
readonly required: readonly ["svg"];
|
|
1242
|
+
};
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly if: {
|
|
1245
|
+
readonly properties: {
|
|
1246
|
+
readonly type: {
|
|
1247
|
+
readonly const: "VECTOR";
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
readonly required: readonly ["type"];
|
|
1251
|
+
};
|
|
1252
|
+
readonly then: {
|
|
1253
|
+
readonly required: readonly ["vectorPaths"];
|
|
1254
|
+
};
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly if: {
|
|
1257
|
+
readonly properties: {
|
|
1258
|
+
readonly type: {
|
|
1259
|
+
readonly const: "INSTANCE";
|
|
1260
|
+
};
|
|
1261
|
+
};
|
|
1262
|
+
readonly required: readonly ["type"];
|
|
1263
|
+
};
|
|
1264
|
+
readonly then: {
|
|
1265
|
+
readonly required: readonly ["componentId"];
|
|
1266
|
+
};
|
|
1267
|
+
}, {
|
|
1268
|
+
readonly if: {
|
|
1269
|
+
readonly properties: {
|
|
1270
|
+
readonly type: {
|
|
1271
|
+
readonly enum: readonly ["GROUP", "BOOLEAN_OPERATION", "COMPONENT_SET"];
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
readonly required: readonly ["type"];
|
|
1275
|
+
};
|
|
1276
|
+
readonly then: {
|
|
1277
|
+
readonly required: readonly ["children"];
|
|
1278
|
+
readonly properties: {
|
|
1279
|
+
readonly children: {
|
|
1280
|
+
readonly minItems: 1;
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
}, {
|
|
1285
|
+
readonly if: {
|
|
1286
|
+
readonly properties: {
|
|
1287
|
+
readonly type: {
|
|
1288
|
+
readonly const: "POLYGON";
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
readonly required: readonly ["type"];
|
|
1292
|
+
};
|
|
1293
|
+
readonly then: {
|
|
1294
|
+
readonly required: readonly ["pointCount"];
|
|
1295
|
+
};
|
|
1296
|
+
}, {
|
|
1297
|
+
readonly if: {
|
|
1298
|
+
readonly properties: {
|
|
1299
|
+
readonly type: {
|
|
1300
|
+
readonly const: "STAR";
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
readonly required: readonly ["type"];
|
|
1304
|
+
};
|
|
1305
|
+
readonly then: {
|
|
1306
|
+
readonly required: readonly ["pointCount", "innerRadius"];
|
|
1307
|
+
};
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly if: {
|
|
1310
|
+
readonly properties: {
|
|
1311
|
+
readonly type: {
|
|
1312
|
+
readonly const: "ARC";
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1315
|
+
readonly required: readonly ["type"];
|
|
1316
|
+
};
|
|
1317
|
+
readonly then: {
|
|
1318
|
+
readonly required: readonly ["startingAngle", "endingAngle", "innerRadiusRatio"];
|
|
1319
|
+
};
|
|
1320
|
+
}];
|
|
1321
|
+
};
|
|
1322
|
+
readonly nodes: {
|
|
1323
|
+
readonly type: "array";
|
|
1324
|
+
readonly items: {
|
|
1325
|
+
readonly $ref: "#/$defs/node";
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
readonly breakpoint: {
|
|
1329
|
+
readonly type: "object";
|
|
1330
|
+
readonly additionalProperties: false;
|
|
1331
|
+
readonly required: readonly ["name"];
|
|
1332
|
+
readonly properties: {
|
|
1333
|
+
readonly name: {
|
|
1334
|
+
readonly type: "string";
|
|
1335
|
+
readonly minLength: 1;
|
|
1336
|
+
};
|
|
1337
|
+
readonly minWidth: {
|
|
1338
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
1339
|
+
};
|
|
1340
|
+
readonly maxWidth: {
|
|
1341
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
1342
|
+
};
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
readonly canvas: {
|
|
1346
|
+
readonly type: "object";
|
|
1347
|
+
readonly additionalProperties: false;
|
|
1348
|
+
readonly required: readonly ["width", "height"];
|
|
1349
|
+
readonly properties: {
|
|
1350
|
+
readonly id: {
|
|
1351
|
+
readonly type: "string";
|
|
1352
|
+
};
|
|
1353
|
+
readonly name: {
|
|
1354
|
+
readonly type: "string";
|
|
1355
|
+
};
|
|
1356
|
+
readonly x: {
|
|
1357
|
+
readonly type: "number";
|
|
1358
|
+
};
|
|
1359
|
+
readonly y: {
|
|
1360
|
+
readonly type: "number";
|
|
1361
|
+
};
|
|
1362
|
+
readonly width: {
|
|
1363
|
+
readonly $ref: "#/$defs/positiveNumber";
|
|
1364
|
+
};
|
|
1365
|
+
readonly height: {
|
|
1366
|
+
readonly $ref: "#/$defs/positiveNumber";
|
|
1367
|
+
};
|
|
1368
|
+
readonly fill: {
|
|
1369
|
+
readonly $ref: "#/$defs/paint";
|
|
1370
|
+
};
|
|
1371
|
+
readonly cornerRadius: {
|
|
1372
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
1373
|
+
};
|
|
1374
|
+
readonly clipsContent: {
|
|
1375
|
+
readonly type: "boolean";
|
|
1376
|
+
};
|
|
1377
|
+
readonly breakpoint: {
|
|
1378
|
+
readonly $ref: "#/$defs/breakpoint";
|
|
1379
|
+
};
|
|
1380
|
+
readonly nodes: {
|
|
1381
|
+
readonly $ref: "#/$defs/nodes";
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1385
|
+
readonly responsiveCanvas: {
|
|
1386
|
+
readonly $ref: "#/$defs/canvas";
|
|
1387
|
+
};
|
|
1388
|
+
readonly tokenValue: {
|
|
1389
|
+
readonly oneOf: readonly [{
|
|
1390
|
+
readonly $ref: "#/$defs/color";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly type: "number";
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly type: "string";
|
|
1395
|
+
}, {
|
|
1396
|
+
readonly type: "boolean";
|
|
1397
|
+
}];
|
|
1398
|
+
};
|
|
1399
|
+
readonly variable: {
|
|
1400
|
+
readonly type: "object";
|
|
1401
|
+
readonly additionalProperties: false;
|
|
1402
|
+
readonly required: readonly ["name", "type"];
|
|
1403
|
+
readonly properties: {
|
|
1404
|
+
readonly id: {
|
|
1405
|
+
readonly type: "string";
|
|
1406
|
+
};
|
|
1407
|
+
readonly name: {
|
|
1408
|
+
readonly type: "string";
|
|
1409
|
+
readonly minLength: 1;
|
|
1410
|
+
};
|
|
1411
|
+
readonly type: {
|
|
1412
|
+
readonly enum: readonly ["COLOR", "FLOAT", "STRING", "BOOLEAN"];
|
|
1413
|
+
};
|
|
1414
|
+
readonly value: {
|
|
1415
|
+
readonly $ref: "#/$defs/tokenValue";
|
|
1416
|
+
};
|
|
1417
|
+
readonly values: {
|
|
1418
|
+
readonly type: "object";
|
|
1419
|
+
readonly minProperties: 1;
|
|
1420
|
+
readonly additionalProperties: {
|
|
1421
|
+
readonly $ref: "#/$defs/tokenValue";
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
readonly anyOf: readonly [{
|
|
1426
|
+
readonly required: readonly ["value"];
|
|
1427
|
+
}, {
|
|
1428
|
+
readonly required: readonly ["values"];
|
|
1429
|
+
}];
|
|
1430
|
+
readonly allOf: readonly [{
|
|
1431
|
+
readonly if: {
|
|
1432
|
+
readonly properties: {
|
|
1433
|
+
readonly type: {
|
|
1434
|
+
readonly const: "COLOR";
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
readonly then: {
|
|
1439
|
+
readonly properties: {
|
|
1440
|
+
readonly value: {
|
|
1441
|
+
readonly $ref: "#/$defs/color";
|
|
1442
|
+
};
|
|
1443
|
+
readonly values: {
|
|
1444
|
+
readonly type: "object";
|
|
1445
|
+
readonly additionalProperties: {
|
|
1446
|
+
readonly $ref: "#/$defs/color";
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly if: {
|
|
1453
|
+
readonly properties: {
|
|
1454
|
+
readonly type: {
|
|
1455
|
+
readonly const: "FLOAT";
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
readonly then: {
|
|
1460
|
+
readonly properties: {
|
|
1461
|
+
readonly value: {
|
|
1462
|
+
readonly type: "number";
|
|
1463
|
+
};
|
|
1464
|
+
readonly values: {
|
|
1465
|
+
readonly type: "object";
|
|
1466
|
+
readonly additionalProperties: {
|
|
1467
|
+
readonly type: "number";
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
}, {
|
|
1473
|
+
readonly if: {
|
|
1474
|
+
readonly properties: {
|
|
1475
|
+
readonly type: {
|
|
1476
|
+
readonly const: "STRING";
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
readonly then: {
|
|
1481
|
+
readonly properties: {
|
|
1482
|
+
readonly value: {
|
|
1483
|
+
readonly type: "string";
|
|
1484
|
+
};
|
|
1485
|
+
readonly values: {
|
|
1486
|
+
readonly type: "object";
|
|
1487
|
+
readonly additionalProperties: {
|
|
1488
|
+
readonly type: "string";
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
}, {
|
|
1494
|
+
readonly if: {
|
|
1495
|
+
readonly properties: {
|
|
1496
|
+
readonly type: {
|
|
1497
|
+
readonly const: "BOOLEAN";
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1501
|
+
readonly then: {
|
|
1502
|
+
readonly properties: {
|
|
1503
|
+
readonly value: {
|
|
1504
|
+
readonly type: "boolean";
|
|
1505
|
+
};
|
|
1506
|
+
readonly values: {
|
|
1507
|
+
readonly type: "object";
|
|
1508
|
+
readonly additionalProperties: {
|
|
1509
|
+
readonly type: "boolean";
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
}];
|
|
1515
|
+
};
|
|
1516
|
+
readonly variableCollection: {
|
|
1517
|
+
readonly type: "object";
|
|
1518
|
+
readonly additionalProperties: false;
|
|
1519
|
+
readonly required: readonly ["name", "items"];
|
|
1520
|
+
readonly properties: {
|
|
1521
|
+
readonly name: {
|
|
1522
|
+
readonly type: "string";
|
|
1523
|
+
readonly minLength: 1;
|
|
1524
|
+
};
|
|
1525
|
+
readonly modes: {
|
|
1526
|
+
readonly type: "array";
|
|
1527
|
+
readonly minItems: 1;
|
|
1528
|
+
readonly uniqueItems: true;
|
|
1529
|
+
readonly items: {
|
|
1530
|
+
readonly type: "string";
|
|
1531
|
+
readonly minLength: 1;
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
readonly items: {
|
|
1535
|
+
readonly type: "array";
|
|
1536
|
+
readonly items: {
|
|
1537
|
+
readonly $ref: "#/$defs/variable";
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
readonly paintStyle: {
|
|
1543
|
+
readonly type: "object";
|
|
1544
|
+
readonly additionalProperties: false;
|
|
1545
|
+
readonly required: readonly ["id", "name", "type", "paints"];
|
|
1546
|
+
readonly properties: {
|
|
1547
|
+
readonly id: {
|
|
1548
|
+
readonly type: "string";
|
|
1549
|
+
};
|
|
1550
|
+
readonly name: {
|
|
1551
|
+
readonly type: "string";
|
|
1552
|
+
};
|
|
1553
|
+
readonly type: {
|
|
1554
|
+
readonly const: "PAINT";
|
|
1555
|
+
};
|
|
1556
|
+
readonly paints: {
|
|
1557
|
+
readonly type: "array";
|
|
1558
|
+
readonly items: {
|
|
1559
|
+
readonly $ref: "#/$defs/paint";
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
};
|
|
1564
|
+
readonly textStyle: {
|
|
1565
|
+
readonly type: "object";
|
|
1566
|
+
readonly additionalProperties: false;
|
|
1567
|
+
readonly required: readonly ["id", "name", "type", "font"];
|
|
1568
|
+
readonly properties: {
|
|
1569
|
+
readonly id: {
|
|
1570
|
+
readonly type: "string";
|
|
1571
|
+
};
|
|
1572
|
+
readonly name: {
|
|
1573
|
+
readonly type: "string";
|
|
1574
|
+
};
|
|
1575
|
+
readonly type: {
|
|
1576
|
+
readonly const: "TEXT";
|
|
1577
|
+
};
|
|
1578
|
+
readonly font: {
|
|
1579
|
+
readonly $ref: "#/$defs/font";
|
|
1580
|
+
};
|
|
1581
|
+
readonly lineHeight: {
|
|
1582
|
+
readonly oneOf: readonly [{
|
|
1583
|
+
readonly type: "number";
|
|
1584
|
+
readonly exclusiveMinimum: 0;
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly $ref: "#/$defs/lineHeightObject";
|
|
1587
|
+
}];
|
|
1588
|
+
};
|
|
1589
|
+
readonly letterSpacing: {
|
|
1590
|
+
readonly $ref: "#/$defs/letterSpacing";
|
|
1591
|
+
};
|
|
1592
|
+
readonly paragraphSpacing: {
|
|
1593
|
+
readonly $ref: "#/$defs/nonNegativeNumber";
|
|
1594
|
+
};
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
readonly style: {
|
|
1598
|
+
readonly oneOf: readonly [{
|
|
1599
|
+
readonly $ref: "#/$defs/paintStyle";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly $ref: "#/$defs/textStyle";
|
|
1602
|
+
}];
|
|
1603
|
+
};
|
|
1604
|
+
readonly patchOperation: {
|
|
1605
|
+
readonly oneOf: readonly [{
|
|
1606
|
+
readonly type: "object";
|
|
1607
|
+
readonly additionalProperties: false;
|
|
1608
|
+
readonly required: readonly ["op", "id", "set"];
|
|
1609
|
+
readonly properties: {
|
|
1610
|
+
readonly op: {
|
|
1611
|
+
readonly const: "set";
|
|
1612
|
+
};
|
|
1613
|
+
readonly id: {
|
|
1614
|
+
readonly type: "string";
|
|
1615
|
+
};
|
|
1616
|
+
readonly set: {
|
|
1617
|
+
readonly type: "object";
|
|
1618
|
+
readonly minProperties: 1;
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
}, {
|
|
1622
|
+
readonly type: "object";
|
|
1623
|
+
readonly additionalProperties: false;
|
|
1624
|
+
readonly required: readonly ["op", "id"];
|
|
1625
|
+
readonly properties: {
|
|
1626
|
+
readonly op: {
|
|
1627
|
+
readonly const: "remove";
|
|
1628
|
+
};
|
|
1629
|
+
readonly id: {
|
|
1630
|
+
readonly type: "string";
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
}, {
|
|
1634
|
+
readonly type: "object";
|
|
1635
|
+
readonly additionalProperties: false;
|
|
1636
|
+
readonly required: readonly ["op", "parent", "node"];
|
|
1637
|
+
readonly properties: {
|
|
1638
|
+
readonly op: {
|
|
1639
|
+
readonly const: "append";
|
|
1640
|
+
};
|
|
1641
|
+
readonly parent: {
|
|
1642
|
+
readonly type: "string";
|
|
1643
|
+
};
|
|
1644
|
+
readonly node: {
|
|
1645
|
+
readonly $ref: "#/$defs/node";
|
|
1646
|
+
};
|
|
1647
|
+
};
|
|
1648
|
+
}];
|
|
1649
|
+
};
|
|
1650
|
+
readonly patchRoot: {
|
|
1651
|
+
readonly type: "object";
|
|
1652
|
+
readonly additionalProperties: false;
|
|
1653
|
+
readonly required: readonly ["operations"];
|
|
1654
|
+
readonly properties: {
|
|
1655
|
+
readonly operations: {
|
|
1656
|
+
readonly type: "array";
|
|
1657
|
+
readonly minItems: 1;
|
|
1658
|
+
readonly items: {
|
|
1659
|
+
readonly $ref: "#/$defs/patchOperation";
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
};
|
|
1666
|
+
export default _default;
|