@polotno/schema 0.9.1 → 0.11.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.
@@ -1,3111 +1 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "schemaVersion": {
6
- "default": 4,
7
- "description": "Schema version for compatibility / migration.",
8
- "type": "number"
9
- },
10
- "width": {
11
- "default": 1080,
12
- "description": "Canvas width in pixels.",
13
- "type": "number"
14
- },
15
- "height": {
16
- "default": 1080,
17
- "description": "Canvas height in pixels.",
18
- "type": "number"
19
- },
20
- "unit": {
21
- "default": "px",
22
- "description": "Unit type for print measurements.",
23
- "type": "string",
24
- "enum": [
25
- "px",
26
- "pt",
27
- "mm",
28
- "cm",
29
- "in"
30
- ]
31
- },
32
- "dpi": {
33
- "default": 72,
34
- "description": "Dots per inch for print calculations.",
35
- "type": "number"
36
- },
37
- "custom": {
38
- "description": "Custom data attached to the design."
39
- },
40
- "fonts": {
41
- "default": [],
42
- "description": "Fonts used in the design.",
43
- "type": "array",
44
- "items": {
45
- "type": "object",
46
- "properties": {
47
- "fontFamily": {
48
- "type": "string",
49
- "description": "Font family name."
50
- },
51
- "url": {
52
- "default": "",
53
- "description": "URL to load the font from (single-variant fonts).",
54
- "type": "string"
55
- },
56
- "styles": {
57
- "description": "Per-weight/style variants for multi-variant families.",
58
- "type": "array",
59
- "items": {
60
- "type": "object",
61
- "properties": {
62
- "src": {
63
- "type": "string",
64
- "description": "Font source, typically in CSS url() form."
65
- },
66
- "fontStyle": {
67
- "type": "string"
68
- },
69
- "fontWeight": {
70
- "type": "string"
71
- }
72
- },
73
- "required": [
74
- "src"
75
- ]
76
- }
77
- }
78
- },
79
- "required": [
80
- "fontFamily"
81
- ]
82
- }
83
- },
84
- "pages": {
85
- "default": [],
86
- "description": "Pages in the design.",
87
- "type": "array",
88
- "items": {
89
- "type": "object",
90
- "properties": {
91
- "id": {
92
- "type": "string",
93
- "description": "Unique identifier for the page."
94
- },
95
- "width": {
96
- "default": "auto",
97
- "description": "Page width in pixels or 'auto'.",
98
- "anyOf": [
99
- {
100
- "type": "number"
101
- },
102
- {
103
- "type": "string",
104
- "const": "auto"
105
- }
106
- ]
107
- },
108
- "height": {
109
- "default": "auto",
110
- "description": "Page height in pixels or 'auto'.",
111
- "anyOf": [
112
- {
113
- "type": "number"
114
- },
115
- {
116
- "type": "string",
117
- "const": "auto"
118
- }
119
- ]
120
- },
121
- "background": {
122
- "default": "white",
123
- "description": "Background color or image.",
124
- "type": "string"
125
- },
126
- "bleed": {
127
- "default": 0,
128
- "description": "Bleed area in pixels for print (all sides; base value for per-side overrides).",
129
- "type": "number"
130
- },
131
- "bleedTop": {
132
- "description": "Per-side bleed override (top), in pixels. Inherits `bleed` when omitted.",
133
- "type": "number"
134
- },
135
- "bleedRight": {
136
- "description": "Per-side bleed override (right), in pixels. Inherits `bleed` when omitted.",
137
- "type": "number"
138
- },
139
- "bleedBottom": {
140
- "description": "Per-side bleed override (bottom), in pixels. Inherits `bleed` when omitted.",
141
- "type": "number"
142
- },
143
- "bleedLeft": {
144
- "description": "Per-side bleed override (left), in pixels. Inherits `bleed` when omitted.",
145
- "type": "number"
146
- },
147
- "custom": {},
148
- "duration": {
149
- "default": 5000,
150
- "description": "Page duration in milliseconds.",
151
- "type": "number"
152
- },
153
- "children": {
154
- "default": [],
155
- "description": "Elements on this page.",
156
- "type": "array",
157
- "items": {
158
- "$ref": "#/$defs/__schema0"
159
- }
160
- }
161
- },
162
- "required": [
163
- "id"
164
- ]
165
- }
166
- },
167
- "audios": {
168
- "default": [],
169
- "description": "Audio tracks in the design.",
170
- "type": "array",
171
- "items": {
172
- "type": "object",
173
- "properties": {
174
- "id": {
175
- "type": "string",
176
- "description": "Unique identifier for the audio track."
177
- },
178
- "name": {
179
- "default": "",
180
- "description": "Display name shown on the timeline.",
181
- "type": "string"
182
- },
183
- "src": {
184
- "default": "",
185
- "description": "URL or data URI of the audio file.",
186
- "type": "string"
187
- },
188
- "duration": {
189
- "default": 0,
190
- "description": "Duration in milliseconds.",
191
- "type": "number"
192
- },
193
- "startTime": {
194
- "default": 0,
195
- "description": "Start offset (0-1).",
196
- "type": "number"
197
- },
198
- "endTime": {
199
- "default": 1,
200
- "description": "End offset (0-1).",
201
- "type": "number"
202
- },
203
- "volume": {
204
- "default": 1,
205
- "description": "Volume level (0-1).",
206
- "type": "number"
207
- },
208
- "delay": {
209
- "default": 0,
210
- "description": "Delay before playing, in milliseconds.",
211
- "type": "number"
212
- },
213
- "speed": {
214
- "default": 1,
215
- "description": "Playback speed multiplier (1 = normal).",
216
- "type": "number"
217
- },
218
- "custom": {}
219
- },
220
- "required": [
221
- "id"
222
- ]
223
- }
224
- }
225
- },
226
- "$defs": {
227
- "__schema0": {
228
- "oneOf": [
229
- {
230
- "type": "object",
231
- "properties": {
232
- "id": {
233
- "type": "string",
234
- "description": "Unique identifier for the element."
235
- },
236
- "type": {
237
- "type": "string",
238
- "const": "text",
239
- "description": "Element type identifier."
240
- },
241
- "name": {
242
- "default": "",
243
- "description": "Display name for the element.",
244
- "type": "string"
245
- },
246
- "custom": {
247
- "description": "Custom data attached to the element."
248
- },
249
- "x": {
250
- "default": 0,
251
- "description": "X position in pixels.",
252
- "type": "number"
253
- },
254
- "y": {
255
- "default": 0,
256
- "description": "Y position in pixels.",
257
- "type": "number"
258
- },
259
- "width": {
260
- "default": 100,
261
- "description": "Width in pixels.",
262
- "type": "number"
263
- },
264
- "height": {
265
- "default": 0,
266
- "description": "Height in pixels (0 until measured/rendered).",
267
- "type": "number"
268
- },
269
- "rotation": {
270
- "default": 0,
271
- "description": "Rotation angle in degrees.",
272
- "type": "number"
273
- },
274
- "opacity": {
275
- "default": 1,
276
- "description": "Opacity level (0-1).",
277
- "type": "number"
278
- },
279
- "blendMode": {
280
- "description": "How the element composites with the content beneath it. Omitted means normal.",
281
- "type": "string",
282
- "enum": [
283
- "normal",
284
- "multiply",
285
- "screen",
286
- "overlay",
287
- "darken",
288
- "lighten",
289
- "color-dodge",
290
- "color-burn",
291
- "hard-light",
292
- "soft-light",
293
- "difference",
294
- "exclusion",
295
- "hue",
296
- "saturation",
297
- "color",
298
- "luminosity"
299
- ]
300
- },
301
- "animations": {
302
- "default": [],
303
- "description": "Animation configurations.",
304
- "type": "array",
305
- "items": {
306
- "type": "object",
307
- "properties": {
308
- "delay": {
309
- "default": 0,
310
- "description": "Delay before the animation starts, in milliseconds.",
311
- "type": "number"
312
- },
313
- "duration": {
314
- "default": 500,
315
- "description": "Animation duration in milliseconds.",
316
- "type": "number"
317
- },
318
- "enabled": {
319
- "default": true,
320
- "description": "Whether the animation is enabled.",
321
- "type": "boolean"
322
- },
323
- "type": {
324
- "type": "string",
325
- "enum": [
326
- "enter",
327
- "exit",
328
- "loop"
329
- ],
330
- "description": "Animation phase."
331
- },
332
- "name": {
333
- "default": "none",
334
- "description": "Animation name identifier.",
335
- "type": "string"
336
- },
337
- "data": {
338
- "default": {},
339
- "description": "Animation-specific data."
340
- }
341
- },
342
- "required": [
343
- "type"
344
- ]
345
- }
346
- },
347
- "blurEnabled": {
348
- "default": false,
349
- "description": "Whether blur effect is enabled.",
350
- "type": "boolean"
351
- },
352
- "blurRadius": {
353
- "default": 10,
354
- "description": "Blur radius in pixels.",
355
- "type": "number"
356
- },
357
- "brightnessEnabled": {
358
- "default": false,
359
- "description": "Whether brightness effect is enabled.",
360
- "type": "boolean"
361
- },
362
- "brightness": {
363
- "default": 0,
364
- "description": "Brightness level (-1 to 1).",
365
- "type": "number"
366
- },
367
- "sepiaEnabled": {
368
- "default": false,
369
- "description": "Whether sepia effect is enabled.",
370
- "type": "boolean"
371
- },
372
- "grayscaleEnabled": {
373
- "default": false,
374
- "description": "Whether grayscale effect is enabled.",
375
- "type": "boolean"
376
- },
377
- "filters": {
378
- "default": {},
379
- "type": "object",
380
- "propertyNames": {
381
- "type": "string"
382
- },
383
- "additionalProperties": {
384
- "type": "object",
385
- "properties": {
386
- "intensity": {
387
- "default": 1,
388
- "description": "Filter intensity (-1 to 1).",
389
- "type": "number"
390
- }
391
- }
392
- },
393
- "description": "Applied image filters keyed by filter name."
394
- },
395
- "shadowEnabled": {
396
- "default": false,
397
- "description": "Whether shadow is enabled.",
398
- "type": "boolean"
399
- },
400
- "shadowBlur": {
401
- "default": 5,
402
- "description": "Shadow blur radius in pixels.",
403
- "type": "number"
404
- },
405
- "shadowOffsetX": {
406
- "default": 0,
407
- "description": "Shadow horizontal offset in pixels.",
408
- "type": "number"
409
- },
410
- "shadowOffsetY": {
411
- "default": 0,
412
- "description": "Shadow vertical offset in pixels.",
413
- "type": "number"
414
- },
415
- "shadowColor": {
416
- "default": "black",
417
- "description": "Shadow color.",
418
- "type": "string"
419
- },
420
- "shadowOpacity": {
421
- "default": 1,
422
- "description": "Shadow opacity (0-1).",
423
- "type": "number"
424
- },
425
- "visible": {
426
- "default": true,
427
- "description": "Whether the element is visible.",
428
- "type": "boolean"
429
- },
430
- "draggable": {
431
- "default": true,
432
- "description": "Whether the element can be dragged.",
433
- "type": "boolean"
434
- },
435
- "resizable": {
436
- "default": true,
437
- "description": "Whether the element can be resized.",
438
- "type": "boolean"
439
- },
440
- "selectable": {
441
- "default": true,
442
- "description": "Whether the element can be selected.",
443
- "type": "boolean"
444
- },
445
- "removable": {
446
- "default": true,
447
- "description": "Whether the element can be removed.",
448
- "type": "boolean"
449
- },
450
- "contentEditable": {
451
- "default": true,
452
- "description": "Whether the element content can be edited.",
453
- "type": "boolean"
454
- },
455
- "styleEditable": {
456
- "default": true,
457
- "description": "Whether the element style can be edited.",
458
- "type": "boolean"
459
- },
460
- "alwaysOnTop": {
461
- "default": false,
462
- "description": "Whether the element stays on top of others.",
463
- "type": "boolean"
464
- },
465
- "showInExport": {
466
- "default": true,
467
- "description": "Whether the element appears in exports.",
468
- "type": "boolean"
469
- },
470
- "text": {
471
- "default": "",
472
- "description": "Visible text shown on canvas.",
473
- "type": "string"
474
- },
475
- "placeholder": {
476
- "default": "",
477
- "description": "Placeholder text shown when empty.",
478
- "type": "string"
479
- },
480
- "fontSize": {
481
- "default": 14,
482
- "description": "Font size in pixels (minimum 1).",
483
- "type": "number"
484
- },
485
- "fontFamily": {
486
- "default": "Roboto",
487
- "description": "Font family name.",
488
- "type": "string"
489
- },
490
- "fontStyle": {
491
- "default": "normal",
492
- "description": "Font style: 'normal' or 'italic'.",
493
- "type": "string"
494
- },
495
- "fontWeight": {
496
- "default": "normal",
497
- "description": "Font weight: 'normal', 'bold', or numeric string.",
498
- "type": "string"
499
- },
500
- "textDecoration": {
501
- "default": "",
502
- "description": "Text decoration (e.g. underline, line-through).",
503
- "type": "string"
504
- },
505
- "textTransform": {
506
- "default": "none",
507
- "description": "Text transform: uppercase, lowercase, capitalize, none.",
508
- "type": "string"
509
- },
510
- "fill": {
511
- "default": "black",
512
- "description": "Text color.",
513
- "type": "string"
514
- },
515
- "align": {
516
- "default": "center",
517
- "description": "Horizontal alignment (commonly left | center | right | justify).",
518
- "type": "string"
519
- },
520
- "verticalAlign": {
521
- "default": "top",
522
- "description": "Vertical alignment: top, middle, bottom.",
523
- "type": "string"
524
- },
525
- "strokeWidth": {
526
- "default": 0,
527
- "description": "Stroke width in pixels.",
528
- "type": "number"
529
- },
530
- "stroke": {
531
- "default": "black",
532
- "description": "Stroke color.",
533
- "type": "string"
534
- },
535
- "strokeLineJoin": {
536
- "default": "round",
537
- "description": "Stroke corner join: round, miter, bevel.",
538
- "type": "string"
539
- },
540
- "lineHeight": {
541
- "default": 1.2,
542
- "description": "Line height multiplier or 'auto'.",
543
- "type": [
544
- "number",
545
- "string"
546
- ]
547
- },
548
- "letterSpacing": {
549
- "default": 0,
550
- "description": "Letter spacing as a fraction of font size.",
551
- "type": "number"
552
- },
553
- "backgroundEnabled": {
554
- "default": false,
555
- "description": "Whether the text background is enabled.",
556
- "type": "boolean"
557
- },
558
- "backgroundColor": {
559
- "default": "#7ED321",
560
- "description": "Text background color.",
561
- "type": "string"
562
- },
563
- "backgroundOpacity": {
564
- "default": 1,
565
- "description": "Text background opacity (0-1).",
566
- "type": "number"
567
- },
568
- "backgroundCornerRadius": {
569
- "default": 0.5,
570
- "description": "Text background corner radius.",
571
- "type": "number"
572
- },
573
- "backgroundPadding": {
574
- "default": 0.5,
575
- "description": "Text background padding.",
576
- "type": "number"
577
- },
578
- "borderColor": {
579
- "default": "black",
580
- "description": "Text box border color.",
581
- "type": "string"
582
- },
583
- "borderSize": {
584
- "default": 0,
585
- "description": "Text box border width in pixels.",
586
- "type": "number"
587
- },
588
- "curveEnabled": {
589
- "default": false,
590
- "description": "Whether the text curve effect is enabled.",
591
- "type": "boolean"
592
- },
593
- "curvePower": {
594
- "default": 0.5,
595
- "description": "Text curve power (-1 to 1, 0 = straight).",
596
- "type": "number"
597
- },
598
- "legacyBackground": {
599
- "description": "Internal compatibility flag stamped by the v2→v3 migration.",
600
- "type": "boolean"
601
- },
602
- "textOverflow": {
603
- "description": "What to do when the text does not fit: 'resize' | 'ellipsis' | 'fit'. Missing (or unknown) follows the global setting.",
604
- "type": "string"
605
- },
606
- "maxLines": {
607
- "description": "Line cap in every overflow mode; text past it ends in an ellipsis.",
608
- "type": "number"
609
- },
610
- "minFontSize": {
611
- "description": "Smallest size 'fit' may draw at, in pixels.",
612
- "type": "number"
613
- },
614
- "maxFontSize": {
615
- "description": "Largest size 'fit' may draw at, in pixels (defaults to fontSize). Above fontSize it grows text to fit.",
616
- "type": "number"
617
- }
618
- },
619
- "required": [
620
- "id",
621
- "type"
622
- ]
623
- },
624
- {
625
- "type": "object",
626
- "properties": {
627
- "id": {
628
- "type": "string",
629
- "description": "Unique identifier for the element."
630
- },
631
- "type": {
632
- "type": "string",
633
- "const": "image",
634
- "description": "Element type identifier."
635
- },
636
- "name": {
637
- "default": "",
638
- "description": "Display name for the element.",
639
- "type": "string"
640
- },
641
- "custom": {
642
- "description": "Custom data attached to the element."
643
- },
644
- "x": {
645
- "default": 0,
646
- "description": "X position in pixels.",
647
- "type": "number"
648
- },
649
- "y": {
650
- "default": 0,
651
- "description": "Y position in pixels.",
652
- "type": "number"
653
- },
654
- "width": {
655
- "default": 100,
656
- "description": "Width in pixels.",
657
- "type": "number"
658
- },
659
- "height": {
660
- "default": 100,
661
- "description": "Height in pixels.",
662
- "type": "number"
663
- },
664
- "rotation": {
665
- "default": 0,
666
- "description": "Rotation angle in degrees.",
667
- "type": "number"
668
- },
669
- "opacity": {
670
- "default": 1,
671
- "description": "Opacity level (0-1).",
672
- "type": "number"
673
- },
674
- "blendMode": {
675
- "description": "How the element composites with the content beneath it. Omitted means normal.",
676
- "type": "string",
677
- "enum": [
678
- "normal",
679
- "multiply",
680
- "screen",
681
- "overlay",
682
- "darken",
683
- "lighten",
684
- "color-dodge",
685
- "color-burn",
686
- "hard-light",
687
- "soft-light",
688
- "difference",
689
- "exclusion",
690
- "hue",
691
- "saturation",
692
- "color",
693
- "luminosity"
694
- ]
695
- },
696
- "animations": {
697
- "default": [],
698
- "description": "Animation configurations.",
699
- "type": "array",
700
- "items": {
701
- "type": "object",
702
- "properties": {
703
- "delay": {
704
- "default": 0,
705
- "description": "Delay before the animation starts, in milliseconds.",
706
- "type": "number"
707
- },
708
- "duration": {
709
- "default": 500,
710
- "description": "Animation duration in milliseconds.",
711
- "type": "number"
712
- },
713
- "enabled": {
714
- "default": true,
715
- "description": "Whether the animation is enabled.",
716
- "type": "boolean"
717
- },
718
- "type": {
719
- "type": "string",
720
- "enum": [
721
- "enter",
722
- "exit",
723
- "loop"
724
- ],
725
- "description": "Animation phase."
726
- },
727
- "name": {
728
- "default": "none",
729
- "description": "Animation name identifier.",
730
- "type": "string"
731
- },
732
- "data": {
733
- "default": {},
734
- "description": "Animation-specific data."
735
- }
736
- },
737
- "required": [
738
- "type"
739
- ]
740
- }
741
- },
742
- "blurEnabled": {
743
- "default": false,
744
- "description": "Whether blur effect is enabled.",
745
- "type": "boolean"
746
- },
747
- "blurRadius": {
748
- "default": 10,
749
- "description": "Blur radius in pixels.",
750
- "type": "number"
751
- },
752
- "brightnessEnabled": {
753
- "default": false,
754
- "description": "Whether brightness effect is enabled.",
755
- "type": "boolean"
756
- },
757
- "brightness": {
758
- "default": 0,
759
- "description": "Brightness level (-1 to 1).",
760
- "type": "number"
761
- },
762
- "sepiaEnabled": {
763
- "default": false,
764
- "description": "Whether sepia effect is enabled.",
765
- "type": "boolean"
766
- },
767
- "grayscaleEnabled": {
768
- "default": false,
769
- "description": "Whether grayscale effect is enabled.",
770
- "type": "boolean"
771
- },
772
- "filters": {
773
- "default": {},
774
- "type": "object",
775
- "propertyNames": {
776
- "type": "string"
777
- },
778
- "additionalProperties": {
779
- "type": "object",
780
- "properties": {
781
- "intensity": {
782
- "default": 1,
783
- "description": "Filter intensity (-1 to 1).",
784
- "type": "number"
785
- }
786
- }
787
- },
788
- "description": "Applied image filters keyed by filter name."
789
- },
790
- "shadowEnabled": {
791
- "default": false,
792
- "description": "Whether shadow is enabled.",
793
- "type": "boolean"
794
- },
795
- "shadowBlur": {
796
- "default": 5,
797
- "description": "Shadow blur radius in pixels.",
798
- "type": "number"
799
- },
800
- "shadowOffsetX": {
801
- "default": 0,
802
- "description": "Shadow horizontal offset in pixels.",
803
- "type": "number"
804
- },
805
- "shadowOffsetY": {
806
- "default": 0,
807
- "description": "Shadow vertical offset in pixels.",
808
- "type": "number"
809
- },
810
- "shadowColor": {
811
- "default": "black",
812
- "description": "Shadow color.",
813
- "type": "string"
814
- },
815
- "shadowOpacity": {
816
- "default": 1,
817
- "description": "Shadow opacity (0-1).",
818
- "type": "number"
819
- },
820
- "visible": {
821
- "default": true,
822
- "description": "Whether the element is visible.",
823
- "type": "boolean"
824
- },
825
- "draggable": {
826
- "default": true,
827
- "description": "Whether the element can be dragged.",
828
- "type": "boolean"
829
- },
830
- "resizable": {
831
- "default": true,
832
- "description": "Whether the element can be resized.",
833
- "type": "boolean"
834
- },
835
- "selectable": {
836
- "default": true,
837
- "description": "Whether the element can be selected.",
838
- "type": "boolean"
839
- },
840
- "removable": {
841
- "default": true,
842
- "description": "Whether the element can be removed.",
843
- "type": "boolean"
844
- },
845
- "contentEditable": {
846
- "default": true,
847
- "description": "Whether the element content can be edited.",
848
- "type": "boolean"
849
- },
850
- "styleEditable": {
851
- "default": true,
852
- "description": "Whether the element style can be edited.",
853
- "type": "boolean"
854
- },
855
- "alwaysOnTop": {
856
- "default": false,
857
- "description": "Whether the element stays on top of others.",
858
- "type": "boolean"
859
- },
860
- "showInExport": {
861
- "default": true,
862
- "description": "Whether the element appears in exports.",
863
- "type": "boolean"
864
- },
865
- "src": {
866
- "default": "",
867
- "description": "URL or data URI of the image file.",
868
- "type": "string"
869
- },
870
- "cropX": {
871
- "default": 0,
872
- "description": "Crop X offset as a fraction (0-1).",
873
- "type": "number"
874
- },
875
- "cropY": {
876
- "default": 0,
877
- "description": "Crop Y offset as a fraction (0-1).",
878
- "type": "number"
879
- },
880
- "cropWidth": {
881
- "default": 1,
882
- "description": "Crop width as a fraction (0-1).",
883
- "type": "number"
884
- },
885
- "cropHeight": {
886
- "default": 1,
887
- "description": "Crop height as a fraction (0-1).",
888
- "type": "number"
889
- },
890
- "cornerRadius": {
891
- "default": 0,
892
- "description": "Corner radius in pixels.",
893
- "type": "number"
894
- },
895
- "flipX": {
896
- "default": false,
897
- "description": "Whether the image is flipped horizontally.",
898
- "type": "boolean"
899
- },
900
- "flipY": {
901
- "default": false,
902
- "description": "Whether the image is flipped vertically.",
903
- "type": "boolean"
904
- },
905
- "clipSrc": {
906
- "default": "",
907
- "description": "URL or data URI for a clipping mask.",
908
- "type": "string"
909
- },
910
- "borderColor": {
911
- "default": "black",
912
- "description": "Border color.",
913
- "type": "string"
914
- },
915
- "borderSize": {
916
- "default": 0,
917
- "description": "Border width in pixels.",
918
- "type": "number"
919
- },
920
- "keepRatio": {
921
- "default": false,
922
- "description": "Whether to maintain aspect ratio when resizing.",
923
- "type": "boolean"
924
- },
925
- "stretchEnabled": {
926
- "default": false,
927
- "description": "Whether stretch mode is enabled.",
928
- "type": "boolean"
929
- }
930
- },
931
- "required": [
932
- "id",
933
- "type"
934
- ]
935
- },
936
- {
937
- "type": "object",
938
- "properties": {
939
- "id": {
940
- "type": "string",
941
- "description": "Unique identifier for the element."
942
- },
943
- "type": {
944
- "type": "string",
945
- "const": "svg",
946
- "description": "Element type identifier."
947
- },
948
- "name": {
949
- "default": "",
950
- "description": "Display name for the element.",
951
- "type": "string"
952
- },
953
- "custom": {
954
- "description": "Custom data attached to the element."
955
- },
956
- "x": {
957
- "default": 0,
958
- "description": "X position in pixels.",
959
- "type": "number"
960
- },
961
- "y": {
962
- "default": 0,
963
- "description": "Y position in pixels.",
964
- "type": "number"
965
- },
966
- "width": {
967
- "default": 100,
968
- "description": "Width in pixels.",
969
- "type": "number"
970
- },
971
- "height": {
972
- "default": 100,
973
- "description": "Height in pixels.",
974
- "type": "number"
975
- },
976
- "rotation": {
977
- "default": 0,
978
- "description": "Rotation angle in degrees.",
979
- "type": "number"
980
- },
981
- "opacity": {
982
- "default": 1,
983
- "description": "Opacity level (0-1).",
984
- "type": "number"
985
- },
986
- "blendMode": {
987
- "description": "How the element composites with the content beneath it. Omitted means normal.",
988
- "type": "string",
989
- "enum": [
990
- "normal",
991
- "multiply",
992
- "screen",
993
- "overlay",
994
- "darken",
995
- "lighten",
996
- "color-dodge",
997
- "color-burn",
998
- "hard-light",
999
- "soft-light",
1000
- "difference",
1001
- "exclusion",
1002
- "hue",
1003
- "saturation",
1004
- "color",
1005
- "luminosity"
1006
- ]
1007
- },
1008
- "animations": {
1009
- "default": [],
1010
- "description": "Animation configurations.",
1011
- "type": "array",
1012
- "items": {
1013
- "type": "object",
1014
- "properties": {
1015
- "delay": {
1016
- "default": 0,
1017
- "description": "Delay before the animation starts, in milliseconds.",
1018
- "type": "number"
1019
- },
1020
- "duration": {
1021
- "default": 500,
1022
- "description": "Animation duration in milliseconds.",
1023
- "type": "number"
1024
- },
1025
- "enabled": {
1026
- "default": true,
1027
- "description": "Whether the animation is enabled.",
1028
- "type": "boolean"
1029
- },
1030
- "type": {
1031
- "type": "string",
1032
- "enum": [
1033
- "enter",
1034
- "exit",
1035
- "loop"
1036
- ],
1037
- "description": "Animation phase."
1038
- },
1039
- "name": {
1040
- "default": "none",
1041
- "description": "Animation name identifier.",
1042
- "type": "string"
1043
- },
1044
- "data": {
1045
- "default": {},
1046
- "description": "Animation-specific data."
1047
- }
1048
- },
1049
- "required": [
1050
- "type"
1051
- ]
1052
- }
1053
- },
1054
- "blurEnabled": {
1055
- "default": false,
1056
- "description": "Whether blur effect is enabled.",
1057
- "type": "boolean"
1058
- },
1059
- "blurRadius": {
1060
- "default": 10,
1061
- "description": "Blur radius in pixels.",
1062
- "type": "number"
1063
- },
1064
- "brightnessEnabled": {
1065
- "default": false,
1066
- "description": "Whether brightness effect is enabled.",
1067
- "type": "boolean"
1068
- },
1069
- "brightness": {
1070
- "default": 0,
1071
- "description": "Brightness level (-1 to 1).",
1072
- "type": "number"
1073
- },
1074
- "sepiaEnabled": {
1075
- "default": false,
1076
- "description": "Whether sepia effect is enabled.",
1077
- "type": "boolean"
1078
- },
1079
- "grayscaleEnabled": {
1080
- "default": false,
1081
- "description": "Whether grayscale effect is enabled.",
1082
- "type": "boolean"
1083
- },
1084
- "filters": {
1085
- "default": {},
1086
- "type": "object",
1087
- "propertyNames": {
1088
- "type": "string"
1089
- },
1090
- "additionalProperties": {
1091
- "type": "object",
1092
- "properties": {
1093
- "intensity": {
1094
- "default": 1,
1095
- "description": "Filter intensity (-1 to 1).",
1096
- "type": "number"
1097
- }
1098
- }
1099
- },
1100
- "description": "Applied image filters keyed by filter name."
1101
- },
1102
- "shadowEnabled": {
1103
- "default": false,
1104
- "description": "Whether shadow is enabled.",
1105
- "type": "boolean"
1106
- },
1107
- "shadowBlur": {
1108
- "default": 5,
1109
- "description": "Shadow blur radius in pixels.",
1110
- "type": "number"
1111
- },
1112
- "shadowOffsetX": {
1113
- "default": 0,
1114
- "description": "Shadow horizontal offset in pixels.",
1115
- "type": "number"
1116
- },
1117
- "shadowOffsetY": {
1118
- "default": 0,
1119
- "description": "Shadow vertical offset in pixels.",
1120
- "type": "number"
1121
- },
1122
- "shadowColor": {
1123
- "default": "black",
1124
- "description": "Shadow color.",
1125
- "type": "string"
1126
- },
1127
- "shadowOpacity": {
1128
- "default": 1,
1129
- "description": "Shadow opacity (0-1).",
1130
- "type": "number"
1131
- },
1132
- "visible": {
1133
- "default": true,
1134
- "description": "Whether the element is visible.",
1135
- "type": "boolean"
1136
- },
1137
- "draggable": {
1138
- "default": true,
1139
- "description": "Whether the element can be dragged.",
1140
- "type": "boolean"
1141
- },
1142
- "resizable": {
1143
- "default": true,
1144
- "description": "Whether the element can be resized.",
1145
- "type": "boolean"
1146
- },
1147
- "selectable": {
1148
- "default": true,
1149
- "description": "Whether the element can be selected.",
1150
- "type": "boolean"
1151
- },
1152
- "removable": {
1153
- "default": true,
1154
- "description": "Whether the element can be removed.",
1155
- "type": "boolean"
1156
- },
1157
- "contentEditable": {
1158
- "default": true,
1159
- "description": "Whether the element content can be edited.",
1160
- "type": "boolean"
1161
- },
1162
- "styleEditable": {
1163
- "default": true,
1164
- "description": "Whether the element style can be edited.",
1165
- "type": "boolean"
1166
- },
1167
- "alwaysOnTop": {
1168
- "default": false,
1169
- "description": "Whether the element stays on top of others.",
1170
- "type": "boolean"
1171
- },
1172
- "showInExport": {
1173
- "default": true,
1174
- "description": "Whether the element appears in exports.",
1175
- "type": "boolean"
1176
- },
1177
- "src": {
1178
- "default": "",
1179
- "description": "URL or data URI of the SVG.",
1180
- "type": "string"
1181
- },
1182
- "maskSrc": {
1183
- "default": "",
1184
- "description": "URL or data URI for an SVG mask.",
1185
- "type": "string"
1186
- },
1187
- "cropX": {
1188
- "default": 0,
1189
- "description": "Crop X offset as a fraction (0-1).",
1190
- "type": "number"
1191
- },
1192
- "cropY": {
1193
- "default": 0,
1194
- "description": "Crop Y offset as a fraction (0-1).",
1195
- "type": "number"
1196
- },
1197
- "cropWidth": {
1198
- "default": 1,
1199
- "description": "Crop width as a fraction (0-1).",
1200
- "type": "number"
1201
- },
1202
- "cropHeight": {
1203
- "default": 1,
1204
- "description": "Crop height as a fraction (0-1).",
1205
- "type": "number"
1206
- },
1207
- "keepRatio": {
1208
- "default": true,
1209
- "description": "Whether to maintain aspect ratio when resizing.",
1210
- "type": "boolean"
1211
- },
1212
- "stretchEnabled": {
1213
- "default": true,
1214
- "description": "Whether stretch mode is enabled.",
1215
- "type": "boolean"
1216
- },
1217
- "flipX": {
1218
- "default": false,
1219
- "description": "Whether the image is flipped horizontally.",
1220
- "type": "boolean"
1221
- },
1222
- "flipY": {
1223
- "default": false,
1224
- "description": "Whether the image is flipped vertically.",
1225
- "type": "boolean"
1226
- },
1227
- "borderColor": {
1228
- "default": "black",
1229
- "description": "Border color.",
1230
- "type": "string"
1231
- },
1232
- "borderSize": {
1233
- "default": 0,
1234
- "description": "Border width in pixels.",
1235
- "type": "number"
1236
- },
1237
- "cornerRadius": {
1238
- "default": 0,
1239
- "description": "Corner radius in pixels.",
1240
- "type": "number"
1241
- },
1242
- "colorsReplace": {
1243
- "default": {},
1244
- "description": "Color replacement mappings (original → replacement).",
1245
- "type": "object",
1246
- "propertyNames": {
1247
- "type": "string"
1248
- },
1249
- "additionalProperties": {
1250
- "type": "string"
1251
- }
1252
- }
1253
- },
1254
- "required": [
1255
- "id",
1256
- "type"
1257
- ]
1258
- },
1259
- {
1260
- "type": "object",
1261
- "properties": {
1262
- "id": {
1263
- "type": "string",
1264
- "description": "Unique identifier for the element."
1265
- },
1266
- "type": {
1267
- "type": "string",
1268
- "const": "line",
1269
- "description": "Element type identifier."
1270
- },
1271
- "name": {
1272
- "default": "",
1273
- "description": "Display name for the element.",
1274
- "type": "string"
1275
- },
1276
- "custom": {
1277
- "description": "Custom data attached to the element."
1278
- },
1279
- "x": {
1280
- "default": 0,
1281
- "description": "X position in pixels.",
1282
- "type": "number"
1283
- },
1284
- "y": {
1285
- "default": 0,
1286
- "description": "Y position in pixels.",
1287
- "type": "number"
1288
- },
1289
- "width": {
1290
- "default": 400,
1291
- "description": "Width in pixels.",
1292
- "type": "number"
1293
- },
1294
- "height": {
1295
- "default": 10,
1296
- "description": "Height in pixels.",
1297
- "type": "number"
1298
- },
1299
- "rotation": {
1300
- "default": 0,
1301
- "description": "Rotation angle in degrees.",
1302
- "type": "number"
1303
- },
1304
- "opacity": {
1305
- "default": 1,
1306
- "description": "Opacity level (0-1).",
1307
- "type": "number"
1308
- },
1309
- "blendMode": {
1310
- "description": "How the element composites with the content beneath it. Omitted means normal.",
1311
- "type": "string",
1312
- "enum": [
1313
- "normal",
1314
- "multiply",
1315
- "screen",
1316
- "overlay",
1317
- "darken",
1318
- "lighten",
1319
- "color-dodge",
1320
- "color-burn",
1321
- "hard-light",
1322
- "soft-light",
1323
- "difference",
1324
- "exclusion",
1325
- "hue",
1326
- "saturation",
1327
- "color",
1328
- "luminosity"
1329
- ]
1330
- },
1331
- "animations": {
1332
- "default": [],
1333
- "description": "Animation configurations.",
1334
- "type": "array",
1335
- "items": {
1336
- "type": "object",
1337
- "properties": {
1338
- "delay": {
1339
- "default": 0,
1340
- "description": "Delay before the animation starts, in milliseconds.",
1341
- "type": "number"
1342
- },
1343
- "duration": {
1344
- "default": 500,
1345
- "description": "Animation duration in milliseconds.",
1346
- "type": "number"
1347
- },
1348
- "enabled": {
1349
- "default": true,
1350
- "description": "Whether the animation is enabled.",
1351
- "type": "boolean"
1352
- },
1353
- "type": {
1354
- "type": "string",
1355
- "enum": [
1356
- "enter",
1357
- "exit",
1358
- "loop"
1359
- ],
1360
- "description": "Animation phase."
1361
- },
1362
- "name": {
1363
- "default": "none",
1364
- "description": "Animation name identifier.",
1365
- "type": "string"
1366
- },
1367
- "data": {
1368
- "default": {},
1369
- "description": "Animation-specific data."
1370
- }
1371
- },
1372
- "required": [
1373
- "type"
1374
- ]
1375
- }
1376
- },
1377
- "blurEnabled": {
1378
- "default": false,
1379
- "description": "Whether blur effect is enabled.",
1380
- "type": "boolean"
1381
- },
1382
- "blurRadius": {
1383
- "default": 10,
1384
- "description": "Blur radius in pixels.",
1385
- "type": "number"
1386
- },
1387
- "brightnessEnabled": {
1388
- "default": false,
1389
- "description": "Whether brightness effect is enabled.",
1390
- "type": "boolean"
1391
- },
1392
- "brightness": {
1393
- "default": 0,
1394
- "description": "Brightness level (-1 to 1).",
1395
- "type": "number"
1396
- },
1397
- "sepiaEnabled": {
1398
- "default": false,
1399
- "description": "Whether sepia effect is enabled.",
1400
- "type": "boolean"
1401
- },
1402
- "grayscaleEnabled": {
1403
- "default": false,
1404
- "description": "Whether grayscale effect is enabled.",
1405
- "type": "boolean"
1406
- },
1407
- "filters": {
1408
- "default": {},
1409
- "type": "object",
1410
- "propertyNames": {
1411
- "type": "string"
1412
- },
1413
- "additionalProperties": {
1414
- "type": "object",
1415
- "properties": {
1416
- "intensity": {
1417
- "default": 1,
1418
- "description": "Filter intensity (-1 to 1).",
1419
- "type": "number"
1420
- }
1421
- }
1422
- },
1423
- "description": "Applied image filters keyed by filter name."
1424
- },
1425
- "shadowEnabled": {
1426
- "default": false,
1427
- "description": "Whether shadow is enabled.",
1428
- "type": "boolean"
1429
- },
1430
- "shadowBlur": {
1431
- "default": 5,
1432
- "description": "Shadow blur radius in pixels.",
1433
- "type": "number"
1434
- },
1435
- "shadowOffsetX": {
1436
- "default": 0,
1437
- "description": "Shadow horizontal offset in pixels.",
1438
- "type": "number"
1439
- },
1440
- "shadowOffsetY": {
1441
- "default": 0,
1442
- "description": "Shadow vertical offset in pixels.",
1443
- "type": "number"
1444
- },
1445
- "shadowColor": {
1446
- "default": "black",
1447
- "description": "Shadow color.",
1448
- "type": "string"
1449
- },
1450
- "shadowOpacity": {
1451
- "default": 1,
1452
- "description": "Shadow opacity (0-1).",
1453
- "type": "number"
1454
- },
1455
- "visible": {
1456
- "default": true,
1457
- "description": "Whether the element is visible.",
1458
- "type": "boolean"
1459
- },
1460
- "draggable": {
1461
- "default": true,
1462
- "description": "Whether the element can be dragged.",
1463
- "type": "boolean"
1464
- },
1465
- "resizable": {
1466
- "default": true,
1467
- "description": "Whether the element can be resized.",
1468
- "type": "boolean"
1469
- },
1470
- "selectable": {
1471
- "default": true,
1472
- "description": "Whether the element can be selected.",
1473
- "type": "boolean"
1474
- },
1475
- "removable": {
1476
- "default": true,
1477
- "description": "Whether the element can be removed.",
1478
- "type": "boolean"
1479
- },
1480
- "contentEditable": {
1481
- "default": true,
1482
- "description": "Whether the element content can be edited.",
1483
- "type": "boolean"
1484
- },
1485
- "styleEditable": {
1486
- "default": true,
1487
- "description": "Whether the element style can be edited.",
1488
- "type": "boolean"
1489
- },
1490
- "alwaysOnTop": {
1491
- "default": false,
1492
- "description": "Whether the element stays on top of others.",
1493
- "type": "boolean"
1494
- },
1495
- "showInExport": {
1496
- "default": true,
1497
- "description": "Whether the element appears in exports.",
1498
- "type": "boolean"
1499
- },
1500
- "color": {
1501
- "default": "black",
1502
- "description": "Line color.",
1503
- "type": "string"
1504
- },
1505
- "dash": {
1506
- "default": [],
1507
- "description": "Dash pattern array.",
1508
- "type": "array",
1509
- "items": {
1510
- "type": "number"
1511
- }
1512
- },
1513
- "startHead": {
1514
- "default": "",
1515
- "description": "Start arrow head: empty, arrow, circle, square, bar.",
1516
- "type": "string"
1517
- },
1518
- "endHead": {
1519
- "default": "",
1520
- "description": "End arrow head: empty, arrow, circle, square, bar.",
1521
- "type": "string"
1522
- }
1523
- },
1524
- "required": [
1525
- "id",
1526
- "type"
1527
- ]
1528
- },
1529
- {
1530
- "type": "object",
1531
- "properties": {
1532
- "id": {
1533
- "type": "string",
1534
- "description": "Unique identifier for the element."
1535
- },
1536
- "type": {
1537
- "type": "string",
1538
- "const": "figure",
1539
- "description": "Element type identifier."
1540
- },
1541
- "name": {
1542
- "default": "",
1543
- "description": "Display name for the element.",
1544
- "type": "string"
1545
- },
1546
- "custom": {
1547
- "description": "Custom data attached to the element."
1548
- },
1549
- "x": {
1550
- "default": 0,
1551
- "description": "X position in pixels.",
1552
- "type": "number"
1553
- },
1554
- "y": {
1555
- "default": 0,
1556
- "description": "Y position in pixels.",
1557
- "type": "number"
1558
- },
1559
- "width": {
1560
- "default": 100,
1561
- "description": "Width in pixels.",
1562
- "type": "number"
1563
- },
1564
- "height": {
1565
- "default": 100,
1566
- "description": "Height in pixels.",
1567
- "type": "number"
1568
- },
1569
- "rotation": {
1570
- "default": 0,
1571
- "description": "Rotation angle in degrees.",
1572
- "type": "number"
1573
- },
1574
- "opacity": {
1575
- "default": 1,
1576
- "description": "Opacity level (0-1).",
1577
- "type": "number"
1578
- },
1579
- "blendMode": {
1580
- "description": "How the element composites with the content beneath it. Omitted means normal.",
1581
- "type": "string",
1582
- "enum": [
1583
- "normal",
1584
- "multiply",
1585
- "screen",
1586
- "overlay",
1587
- "darken",
1588
- "lighten",
1589
- "color-dodge",
1590
- "color-burn",
1591
- "hard-light",
1592
- "soft-light",
1593
- "difference",
1594
- "exclusion",
1595
- "hue",
1596
- "saturation",
1597
- "color",
1598
- "luminosity"
1599
- ]
1600
- },
1601
- "animations": {
1602
- "default": [],
1603
- "description": "Animation configurations.",
1604
- "type": "array",
1605
- "items": {
1606
- "type": "object",
1607
- "properties": {
1608
- "delay": {
1609
- "default": 0,
1610
- "description": "Delay before the animation starts, in milliseconds.",
1611
- "type": "number"
1612
- },
1613
- "duration": {
1614
- "default": 500,
1615
- "description": "Animation duration in milliseconds.",
1616
- "type": "number"
1617
- },
1618
- "enabled": {
1619
- "default": true,
1620
- "description": "Whether the animation is enabled.",
1621
- "type": "boolean"
1622
- },
1623
- "type": {
1624
- "type": "string",
1625
- "enum": [
1626
- "enter",
1627
- "exit",
1628
- "loop"
1629
- ],
1630
- "description": "Animation phase."
1631
- },
1632
- "name": {
1633
- "default": "none",
1634
- "description": "Animation name identifier.",
1635
- "type": "string"
1636
- },
1637
- "data": {
1638
- "default": {},
1639
- "description": "Animation-specific data."
1640
- }
1641
- },
1642
- "required": [
1643
- "type"
1644
- ]
1645
- }
1646
- },
1647
- "blurEnabled": {
1648
- "default": false,
1649
- "description": "Whether blur effect is enabled.",
1650
- "type": "boolean"
1651
- },
1652
- "blurRadius": {
1653
- "default": 10,
1654
- "description": "Blur radius in pixels.",
1655
- "type": "number"
1656
- },
1657
- "brightnessEnabled": {
1658
- "default": false,
1659
- "description": "Whether brightness effect is enabled.",
1660
- "type": "boolean"
1661
- },
1662
- "brightness": {
1663
- "default": 0,
1664
- "description": "Brightness level (-1 to 1).",
1665
- "type": "number"
1666
- },
1667
- "sepiaEnabled": {
1668
- "default": false,
1669
- "description": "Whether sepia effect is enabled.",
1670
- "type": "boolean"
1671
- },
1672
- "grayscaleEnabled": {
1673
- "default": false,
1674
- "description": "Whether grayscale effect is enabled.",
1675
- "type": "boolean"
1676
- },
1677
- "filters": {
1678
- "default": {},
1679
- "type": "object",
1680
- "propertyNames": {
1681
- "type": "string"
1682
- },
1683
- "additionalProperties": {
1684
- "type": "object",
1685
- "properties": {
1686
- "intensity": {
1687
- "default": 1,
1688
- "description": "Filter intensity (-1 to 1).",
1689
- "type": "number"
1690
- }
1691
- }
1692
- },
1693
- "description": "Applied image filters keyed by filter name."
1694
- },
1695
- "shadowEnabled": {
1696
- "default": false,
1697
- "description": "Whether shadow is enabled.",
1698
- "type": "boolean"
1699
- },
1700
- "shadowBlur": {
1701
- "default": 5,
1702
- "description": "Shadow blur radius in pixels.",
1703
- "type": "number"
1704
- },
1705
- "shadowOffsetX": {
1706
- "default": 0,
1707
- "description": "Shadow horizontal offset in pixels.",
1708
- "type": "number"
1709
- },
1710
- "shadowOffsetY": {
1711
- "default": 0,
1712
- "description": "Shadow vertical offset in pixels.",
1713
- "type": "number"
1714
- },
1715
- "shadowColor": {
1716
- "default": "black",
1717
- "description": "Shadow color.",
1718
- "type": "string"
1719
- },
1720
- "shadowOpacity": {
1721
- "default": 1,
1722
- "description": "Shadow opacity (0-1).",
1723
- "type": "number"
1724
- },
1725
- "visible": {
1726
- "default": true,
1727
- "description": "Whether the element is visible.",
1728
- "type": "boolean"
1729
- },
1730
- "draggable": {
1731
- "default": true,
1732
- "description": "Whether the element can be dragged.",
1733
- "type": "boolean"
1734
- },
1735
- "resizable": {
1736
- "default": true,
1737
- "description": "Whether the element can be resized.",
1738
- "type": "boolean"
1739
- },
1740
- "selectable": {
1741
- "default": true,
1742
- "description": "Whether the element can be selected.",
1743
- "type": "boolean"
1744
- },
1745
- "removable": {
1746
- "default": true,
1747
- "description": "Whether the element can be removed.",
1748
- "type": "boolean"
1749
- },
1750
- "contentEditable": {
1751
- "default": true,
1752
- "description": "Whether the element content can be edited.",
1753
- "type": "boolean"
1754
- },
1755
- "styleEditable": {
1756
- "default": true,
1757
- "description": "Whether the element style can be edited.",
1758
- "type": "boolean"
1759
- },
1760
- "alwaysOnTop": {
1761
- "default": false,
1762
- "description": "Whether the element stays on top of others.",
1763
- "type": "boolean"
1764
- },
1765
- "showInExport": {
1766
- "default": true,
1767
- "description": "Whether the element appears in exports.",
1768
- "type": "boolean"
1769
- },
1770
- "subType": {
1771
- "default": "rect",
1772
- "description": "Figure subtype: rect, ellipse, triangle, etc.",
1773
- "type": "string"
1774
- },
1775
- "fill": {
1776
- "default": "rgb(0, 161, 255)",
1777
- "description": "Fill color.",
1778
- "type": "string"
1779
- },
1780
- "dash": {
1781
- "default": [],
1782
- "description": "Dash pattern array.",
1783
- "type": "array",
1784
- "items": {
1785
- "type": "number"
1786
- }
1787
- },
1788
- "strokeWidth": {
1789
- "default": 0,
1790
- "description": "Stroke width in pixels.",
1791
- "type": "number"
1792
- },
1793
- "stroke": {
1794
- "default": "rgba(98, 197, 255, 1)",
1795
- "description": "Stroke color.",
1796
- "type": "string"
1797
- },
1798
- "cornerRadius": {
1799
- "default": 0,
1800
- "description": "Corner radius in pixels.",
1801
- "type": "number"
1802
- }
1803
- },
1804
- "required": [
1805
- "id",
1806
- "type"
1807
- ]
1808
- },
1809
- {
1810
- "type": "object",
1811
- "properties": {
1812
- "id": {
1813
- "type": "string",
1814
- "description": "Unique identifier for the element."
1815
- },
1816
- "type": {
1817
- "type": "string",
1818
- "const": "gif",
1819
- "description": "Element type identifier."
1820
- },
1821
- "name": {
1822
- "default": "",
1823
- "description": "Display name for the element.",
1824
- "type": "string"
1825
- },
1826
- "custom": {
1827
- "description": "Custom data attached to the element."
1828
- },
1829
- "x": {
1830
- "default": 0,
1831
- "description": "X position in pixels.",
1832
- "type": "number"
1833
- },
1834
- "y": {
1835
- "default": 0,
1836
- "description": "Y position in pixels.",
1837
- "type": "number"
1838
- },
1839
- "width": {
1840
- "default": 100,
1841
- "description": "Width in pixels.",
1842
- "type": "number"
1843
- },
1844
- "height": {
1845
- "default": 100,
1846
- "description": "Height in pixels.",
1847
- "type": "number"
1848
- },
1849
- "rotation": {
1850
- "default": 0,
1851
- "description": "Rotation angle in degrees.",
1852
- "type": "number"
1853
- },
1854
- "opacity": {
1855
- "default": 1,
1856
- "description": "Opacity level (0-1).",
1857
- "type": "number"
1858
- },
1859
- "blendMode": {
1860
- "description": "How the element composites with the content beneath it. Omitted means normal.",
1861
- "type": "string",
1862
- "enum": [
1863
- "normal",
1864
- "multiply",
1865
- "screen",
1866
- "overlay",
1867
- "darken",
1868
- "lighten",
1869
- "color-dodge",
1870
- "color-burn",
1871
- "hard-light",
1872
- "soft-light",
1873
- "difference",
1874
- "exclusion",
1875
- "hue",
1876
- "saturation",
1877
- "color",
1878
- "luminosity"
1879
- ]
1880
- },
1881
- "animations": {
1882
- "default": [],
1883
- "description": "Animation configurations.",
1884
- "type": "array",
1885
- "items": {
1886
- "type": "object",
1887
- "properties": {
1888
- "delay": {
1889
- "default": 0,
1890
- "description": "Delay before the animation starts, in milliseconds.",
1891
- "type": "number"
1892
- },
1893
- "duration": {
1894
- "default": 500,
1895
- "description": "Animation duration in milliseconds.",
1896
- "type": "number"
1897
- },
1898
- "enabled": {
1899
- "default": true,
1900
- "description": "Whether the animation is enabled.",
1901
- "type": "boolean"
1902
- },
1903
- "type": {
1904
- "type": "string",
1905
- "enum": [
1906
- "enter",
1907
- "exit",
1908
- "loop"
1909
- ],
1910
- "description": "Animation phase."
1911
- },
1912
- "name": {
1913
- "default": "none",
1914
- "description": "Animation name identifier.",
1915
- "type": "string"
1916
- },
1917
- "data": {
1918
- "default": {},
1919
- "description": "Animation-specific data."
1920
- }
1921
- },
1922
- "required": [
1923
- "type"
1924
- ]
1925
- }
1926
- },
1927
- "blurEnabled": {
1928
- "default": false,
1929
- "description": "Whether blur effect is enabled.",
1930
- "type": "boolean"
1931
- },
1932
- "blurRadius": {
1933
- "default": 10,
1934
- "description": "Blur radius in pixels.",
1935
- "type": "number"
1936
- },
1937
- "brightnessEnabled": {
1938
- "default": false,
1939
- "description": "Whether brightness effect is enabled.",
1940
- "type": "boolean"
1941
- },
1942
- "brightness": {
1943
- "default": 0,
1944
- "description": "Brightness level (-1 to 1).",
1945
- "type": "number"
1946
- },
1947
- "sepiaEnabled": {
1948
- "default": false,
1949
- "description": "Whether sepia effect is enabled.",
1950
- "type": "boolean"
1951
- },
1952
- "grayscaleEnabled": {
1953
- "default": false,
1954
- "description": "Whether grayscale effect is enabled.",
1955
- "type": "boolean"
1956
- },
1957
- "filters": {
1958
- "default": {},
1959
- "type": "object",
1960
- "propertyNames": {
1961
- "type": "string"
1962
- },
1963
- "additionalProperties": {
1964
- "type": "object",
1965
- "properties": {
1966
- "intensity": {
1967
- "default": 1,
1968
- "description": "Filter intensity (-1 to 1).",
1969
- "type": "number"
1970
- }
1971
- }
1972
- },
1973
- "description": "Applied image filters keyed by filter name."
1974
- },
1975
- "shadowEnabled": {
1976
- "default": false,
1977
- "description": "Whether shadow is enabled.",
1978
- "type": "boolean"
1979
- },
1980
- "shadowBlur": {
1981
- "default": 5,
1982
- "description": "Shadow blur radius in pixels.",
1983
- "type": "number"
1984
- },
1985
- "shadowOffsetX": {
1986
- "default": 0,
1987
- "description": "Shadow horizontal offset in pixels.",
1988
- "type": "number"
1989
- },
1990
- "shadowOffsetY": {
1991
- "default": 0,
1992
- "description": "Shadow vertical offset in pixels.",
1993
- "type": "number"
1994
- },
1995
- "shadowColor": {
1996
- "default": "black",
1997
- "description": "Shadow color.",
1998
- "type": "string"
1999
- },
2000
- "shadowOpacity": {
2001
- "default": 1,
2002
- "description": "Shadow opacity (0-1).",
2003
- "type": "number"
2004
- },
2005
- "visible": {
2006
- "default": true,
2007
- "description": "Whether the element is visible.",
2008
- "type": "boolean"
2009
- },
2010
- "draggable": {
2011
- "default": true,
2012
- "description": "Whether the element can be dragged.",
2013
- "type": "boolean"
2014
- },
2015
- "resizable": {
2016
- "default": true,
2017
- "description": "Whether the element can be resized.",
2018
- "type": "boolean"
2019
- },
2020
- "selectable": {
2021
- "default": true,
2022
- "description": "Whether the element can be selected.",
2023
- "type": "boolean"
2024
- },
2025
- "removable": {
2026
- "default": true,
2027
- "description": "Whether the element can be removed.",
2028
- "type": "boolean"
2029
- },
2030
- "contentEditable": {
2031
- "default": true,
2032
- "description": "Whether the element content can be edited.",
2033
- "type": "boolean"
2034
- },
2035
- "styleEditable": {
2036
- "default": true,
2037
- "description": "Whether the element style can be edited.",
2038
- "type": "boolean"
2039
- },
2040
- "alwaysOnTop": {
2041
- "default": false,
2042
- "description": "Whether the element stays on top of others.",
2043
- "type": "boolean"
2044
- },
2045
- "showInExport": {
2046
- "default": true,
2047
- "description": "Whether the element appears in exports.",
2048
- "type": "boolean"
2049
- },
2050
- "src": {
2051
- "default": "",
2052
- "description": "URL or data URI of the image file.",
2053
- "type": "string"
2054
- },
2055
- "cropX": {
2056
- "default": 0,
2057
- "description": "Crop X offset as a fraction (0-1).",
2058
- "type": "number"
2059
- },
2060
- "cropY": {
2061
- "default": 0,
2062
- "description": "Crop Y offset as a fraction (0-1).",
2063
- "type": "number"
2064
- },
2065
- "cropWidth": {
2066
- "default": 1,
2067
- "description": "Crop width as a fraction (0-1).",
2068
- "type": "number"
2069
- },
2070
- "cropHeight": {
2071
- "default": 1,
2072
- "description": "Crop height as a fraction (0-1).",
2073
- "type": "number"
2074
- },
2075
- "cornerRadius": {
2076
- "default": 0,
2077
- "description": "Corner radius in pixels.",
2078
- "type": "number"
2079
- },
2080
- "flipX": {
2081
- "default": false,
2082
- "description": "Whether the image is flipped horizontally.",
2083
- "type": "boolean"
2084
- },
2085
- "flipY": {
2086
- "default": false,
2087
- "description": "Whether the image is flipped vertically.",
2088
- "type": "boolean"
2089
- },
2090
- "clipSrc": {
2091
- "default": "",
2092
- "description": "URL or data URI for a clipping mask.",
2093
- "type": "string"
2094
- },
2095
- "borderColor": {
2096
- "default": "black",
2097
- "description": "Border color.",
2098
- "type": "string"
2099
- },
2100
- "borderSize": {
2101
- "default": 0,
2102
- "description": "Border width in pixels.",
2103
- "type": "number"
2104
- },
2105
- "keepRatio": {
2106
- "default": true,
2107
- "description": "Whether to maintain aspect ratio when resizing.",
2108
- "type": "boolean"
2109
- },
2110
- "stretchEnabled": {
2111
- "default": false,
2112
- "description": "Whether stretch mode is enabled.",
2113
- "type": "boolean"
2114
- },
2115
- "duration": {
2116
- "default": 0,
2117
- "description": "GIF duration in milliseconds.",
2118
- "type": "number"
2119
- }
2120
- },
2121
- "required": [
2122
- "id",
2123
- "type"
2124
- ]
2125
- },
2126
- {
2127
- "type": "object",
2128
- "properties": {
2129
- "id": {
2130
- "type": "string",
2131
- "description": "Unique identifier for the element."
2132
- },
2133
- "type": {
2134
- "type": "string",
2135
- "const": "video",
2136
- "description": "Element type identifier."
2137
- },
2138
- "name": {
2139
- "default": "",
2140
- "description": "Display name for the element.",
2141
- "type": "string"
2142
- },
2143
- "custom": {
2144
- "description": "Custom data attached to the element."
2145
- },
2146
- "x": {
2147
- "default": 0,
2148
- "description": "X position in pixels.",
2149
- "type": "number"
2150
- },
2151
- "y": {
2152
- "default": 0,
2153
- "description": "Y position in pixels.",
2154
- "type": "number"
2155
- },
2156
- "width": {
2157
- "default": 100,
2158
- "description": "Width in pixels.",
2159
- "type": "number"
2160
- },
2161
- "height": {
2162
- "default": 100,
2163
- "description": "Height in pixels.",
2164
- "type": "number"
2165
- },
2166
- "rotation": {
2167
- "default": 0,
2168
- "description": "Rotation angle in degrees.",
2169
- "type": "number"
2170
- },
2171
- "opacity": {
2172
- "default": 1,
2173
- "description": "Opacity level (0-1).",
2174
- "type": "number"
2175
- },
2176
- "blendMode": {
2177
- "description": "How the element composites with the content beneath it. Omitted means normal.",
2178
- "type": "string",
2179
- "enum": [
2180
- "normal",
2181
- "multiply",
2182
- "screen",
2183
- "overlay",
2184
- "darken",
2185
- "lighten",
2186
- "color-dodge",
2187
- "color-burn",
2188
- "hard-light",
2189
- "soft-light",
2190
- "difference",
2191
- "exclusion",
2192
- "hue",
2193
- "saturation",
2194
- "color",
2195
- "luminosity"
2196
- ]
2197
- },
2198
- "animations": {
2199
- "default": [],
2200
- "description": "Animation configurations.",
2201
- "type": "array",
2202
- "items": {
2203
- "type": "object",
2204
- "properties": {
2205
- "delay": {
2206
- "default": 0,
2207
- "description": "Delay before the animation starts, in milliseconds.",
2208
- "type": "number"
2209
- },
2210
- "duration": {
2211
- "default": 500,
2212
- "description": "Animation duration in milliseconds.",
2213
- "type": "number"
2214
- },
2215
- "enabled": {
2216
- "default": true,
2217
- "description": "Whether the animation is enabled.",
2218
- "type": "boolean"
2219
- },
2220
- "type": {
2221
- "type": "string",
2222
- "enum": [
2223
- "enter",
2224
- "exit",
2225
- "loop"
2226
- ],
2227
- "description": "Animation phase."
2228
- },
2229
- "name": {
2230
- "default": "none",
2231
- "description": "Animation name identifier.",
2232
- "type": "string"
2233
- },
2234
- "data": {
2235
- "default": {},
2236
- "description": "Animation-specific data."
2237
- }
2238
- },
2239
- "required": [
2240
- "type"
2241
- ]
2242
- }
2243
- },
2244
- "blurEnabled": {
2245
- "default": false,
2246
- "description": "Whether blur effect is enabled.",
2247
- "type": "boolean"
2248
- },
2249
- "blurRadius": {
2250
- "default": 10,
2251
- "description": "Blur radius in pixels.",
2252
- "type": "number"
2253
- },
2254
- "brightnessEnabled": {
2255
- "default": false,
2256
- "description": "Whether brightness effect is enabled.",
2257
- "type": "boolean"
2258
- },
2259
- "brightness": {
2260
- "default": 0,
2261
- "description": "Brightness level (-1 to 1).",
2262
- "type": "number"
2263
- },
2264
- "sepiaEnabled": {
2265
- "default": false,
2266
- "description": "Whether sepia effect is enabled.",
2267
- "type": "boolean"
2268
- },
2269
- "grayscaleEnabled": {
2270
- "default": false,
2271
- "description": "Whether grayscale effect is enabled.",
2272
- "type": "boolean"
2273
- },
2274
- "filters": {
2275
- "default": {},
2276
- "type": "object",
2277
- "propertyNames": {
2278
- "type": "string"
2279
- },
2280
- "additionalProperties": {
2281
- "type": "object",
2282
- "properties": {
2283
- "intensity": {
2284
- "default": 1,
2285
- "description": "Filter intensity (-1 to 1).",
2286
- "type": "number"
2287
- }
2288
- }
2289
- },
2290
- "description": "Applied image filters keyed by filter name."
2291
- },
2292
- "shadowEnabled": {
2293
- "default": false,
2294
- "description": "Whether shadow is enabled.",
2295
- "type": "boolean"
2296
- },
2297
- "shadowBlur": {
2298
- "default": 5,
2299
- "description": "Shadow blur radius in pixels.",
2300
- "type": "number"
2301
- },
2302
- "shadowOffsetX": {
2303
- "default": 0,
2304
- "description": "Shadow horizontal offset in pixels.",
2305
- "type": "number"
2306
- },
2307
- "shadowOffsetY": {
2308
- "default": 0,
2309
- "description": "Shadow vertical offset in pixels.",
2310
- "type": "number"
2311
- },
2312
- "shadowColor": {
2313
- "default": "black",
2314
- "description": "Shadow color.",
2315
- "type": "string"
2316
- },
2317
- "shadowOpacity": {
2318
- "default": 1,
2319
- "description": "Shadow opacity (0-1).",
2320
- "type": "number"
2321
- },
2322
- "visible": {
2323
- "default": true,
2324
- "description": "Whether the element is visible.",
2325
- "type": "boolean"
2326
- },
2327
- "draggable": {
2328
- "default": true,
2329
- "description": "Whether the element can be dragged.",
2330
- "type": "boolean"
2331
- },
2332
- "resizable": {
2333
- "default": true,
2334
- "description": "Whether the element can be resized.",
2335
- "type": "boolean"
2336
- },
2337
- "selectable": {
2338
- "default": true,
2339
- "description": "Whether the element can be selected.",
2340
- "type": "boolean"
2341
- },
2342
- "removable": {
2343
- "default": true,
2344
- "description": "Whether the element can be removed.",
2345
- "type": "boolean"
2346
- },
2347
- "contentEditable": {
2348
- "default": true,
2349
- "description": "Whether the element content can be edited.",
2350
- "type": "boolean"
2351
- },
2352
- "styleEditable": {
2353
- "default": true,
2354
- "description": "Whether the element style can be edited.",
2355
- "type": "boolean"
2356
- },
2357
- "alwaysOnTop": {
2358
- "default": false,
2359
- "description": "Whether the element stays on top of others.",
2360
- "type": "boolean"
2361
- },
2362
- "showInExport": {
2363
- "default": true,
2364
- "description": "Whether the element appears in exports.",
2365
- "type": "boolean"
2366
- },
2367
- "src": {
2368
- "default": "",
2369
- "description": "URL or data URI of the image file.",
2370
- "type": "string"
2371
- },
2372
- "cropX": {
2373
- "default": 0,
2374
- "description": "Crop X offset as a fraction (0-1).",
2375
- "type": "number"
2376
- },
2377
- "cropY": {
2378
- "default": 0,
2379
- "description": "Crop Y offset as a fraction (0-1).",
2380
- "type": "number"
2381
- },
2382
- "cropWidth": {
2383
- "default": 1,
2384
- "description": "Crop width as a fraction (0-1).",
2385
- "type": "number"
2386
- },
2387
- "cropHeight": {
2388
- "default": 1,
2389
- "description": "Crop height as a fraction (0-1).",
2390
- "type": "number"
2391
- },
2392
- "cornerRadius": {
2393
- "default": 0,
2394
- "description": "Corner radius in pixels.",
2395
- "type": "number"
2396
- },
2397
- "flipX": {
2398
- "default": false,
2399
- "description": "Whether the image is flipped horizontally.",
2400
- "type": "boolean"
2401
- },
2402
- "flipY": {
2403
- "default": false,
2404
- "description": "Whether the image is flipped vertically.",
2405
- "type": "boolean"
2406
- },
2407
- "clipSrc": {
2408
- "default": "",
2409
- "description": "URL or data URI for a clipping mask.",
2410
- "type": "string"
2411
- },
2412
- "borderColor": {
2413
- "default": "black",
2414
- "description": "Border color.",
2415
- "type": "string"
2416
- },
2417
- "borderSize": {
2418
- "default": 0,
2419
- "description": "Border width in pixels.",
2420
- "type": "number"
2421
- },
2422
- "keepRatio": {
2423
- "default": false,
2424
- "description": "Whether to maintain aspect ratio when resizing.",
2425
- "type": "boolean"
2426
- },
2427
- "stretchEnabled": {
2428
- "default": false,
2429
- "description": "Whether stretch mode is enabled.",
2430
- "type": "boolean"
2431
- },
2432
- "duration": {
2433
- "default": 0,
2434
- "description": "Video duration in milliseconds.",
2435
- "type": "number"
2436
- },
2437
- "startTime": {
2438
- "default": 0,
2439
- "description": "Start offset (0-1).",
2440
- "type": "number"
2441
- },
2442
- "endTime": {
2443
- "default": 1,
2444
- "description": "End offset (0-1).",
2445
- "type": "number"
2446
- },
2447
- "volume": {
2448
- "default": 1,
2449
- "description": "Volume (0-1).",
2450
- "type": "number"
2451
- },
2452
- "speed": {
2453
- "default": 1,
2454
- "description": "Playback speed multiplier (1 = normal).",
2455
- "type": "number"
2456
- }
2457
- },
2458
- "required": [
2459
- "id",
2460
- "type"
2461
- ]
2462
- },
2463
- {
2464
- "type": "object",
2465
- "properties": {
2466
- "id": {
2467
- "type": "string",
2468
- "description": "Unique identifier for the element."
2469
- },
2470
- "type": {
2471
- "type": "string",
2472
- "const": "table",
2473
- "description": "Element type identifier."
2474
- },
2475
- "name": {
2476
- "default": "",
2477
- "description": "Display name for the element.",
2478
- "type": "string"
2479
- },
2480
- "custom": {
2481
- "description": "Custom data attached to the element."
2482
- },
2483
- "x": {
2484
- "default": 0,
2485
- "description": "X position in pixels.",
2486
- "type": "number"
2487
- },
2488
- "y": {
2489
- "default": 0,
2490
- "description": "Y position in pixels.",
2491
- "type": "number"
2492
- },
2493
- "width": {
2494
- "default": 300,
2495
- "description": "Width in pixels.",
2496
- "type": "number"
2497
- },
2498
- "height": {
2499
- "default": 200,
2500
- "description": "Height in pixels.",
2501
- "type": "number"
2502
- },
2503
- "rotation": {
2504
- "default": 0,
2505
- "description": "Rotation angle in degrees.",
2506
- "type": "number"
2507
- },
2508
- "opacity": {
2509
- "default": 1,
2510
- "description": "Opacity level (0-1).",
2511
- "type": "number"
2512
- },
2513
- "blendMode": {
2514
- "description": "How the element composites with the content beneath it. Omitted means normal.",
2515
- "type": "string",
2516
- "enum": [
2517
- "normal",
2518
- "multiply",
2519
- "screen",
2520
- "overlay",
2521
- "darken",
2522
- "lighten",
2523
- "color-dodge",
2524
- "color-burn",
2525
- "hard-light",
2526
- "soft-light",
2527
- "difference",
2528
- "exclusion",
2529
- "hue",
2530
- "saturation",
2531
- "color",
2532
- "luminosity"
2533
- ]
2534
- },
2535
- "animations": {
2536
- "default": [],
2537
- "description": "Animation configurations.",
2538
- "type": "array",
2539
- "items": {
2540
- "type": "object",
2541
- "properties": {
2542
- "delay": {
2543
- "default": 0,
2544
- "description": "Delay before the animation starts, in milliseconds.",
2545
- "type": "number"
2546
- },
2547
- "duration": {
2548
- "default": 500,
2549
- "description": "Animation duration in milliseconds.",
2550
- "type": "number"
2551
- },
2552
- "enabled": {
2553
- "default": true,
2554
- "description": "Whether the animation is enabled.",
2555
- "type": "boolean"
2556
- },
2557
- "type": {
2558
- "type": "string",
2559
- "enum": [
2560
- "enter",
2561
- "exit",
2562
- "loop"
2563
- ],
2564
- "description": "Animation phase."
2565
- },
2566
- "name": {
2567
- "default": "none",
2568
- "description": "Animation name identifier.",
2569
- "type": "string"
2570
- },
2571
- "data": {
2572
- "default": {},
2573
- "description": "Animation-specific data."
2574
- }
2575
- },
2576
- "required": [
2577
- "type"
2578
- ]
2579
- }
2580
- },
2581
- "visible": {
2582
- "default": true,
2583
- "description": "Whether the element is visible.",
2584
- "type": "boolean"
2585
- },
2586
- "draggable": {
2587
- "default": true,
2588
- "description": "Whether the element can be dragged.",
2589
- "type": "boolean"
2590
- },
2591
- "resizable": {
2592
- "default": true,
2593
- "description": "Whether the element can be resized.",
2594
- "type": "boolean"
2595
- },
2596
- "selectable": {
2597
- "default": true,
2598
- "description": "Whether the element can be selected.",
2599
- "type": "boolean"
2600
- },
2601
- "removable": {
2602
- "default": true,
2603
- "description": "Whether the element can be removed.",
2604
- "type": "boolean"
2605
- },
2606
- "contentEditable": {
2607
- "default": true,
2608
- "description": "Whether the element content can be edited.",
2609
- "type": "boolean"
2610
- },
2611
- "styleEditable": {
2612
- "default": true,
2613
- "description": "Whether the element style can be edited.",
2614
- "type": "boolean"
2615
- },
2616
- "alwaysOnTop": {
2617
- "default": false,
2618
- "description": "Whether the element stays on top of others.",
2619
- "type": "boolean"
2620
- },
2621
- "showInExport": {
2622
- "default": true,
2623
- "description": "Whether the element appears in exports.",
2624
- "type": "boolean"
2625
- },
2626
- "rows": {
2627
- "default": 3,
2628
- "description": "Number of rows.",
2629
- "type": "number"
2630
- },
2631
- "cols": {
2632
- "default": 3,
2633
- "description": "Number of columns.",
2634
- "type": "number"
2635
- },
2636
- "colWidths": {
2637
- "default": [],
2638
- "description": "Column width fractions (sum to 1).",
2639
- "type": "array",
2640
- "items": {
2641
- "type": "number"
2642
- }
2643
- },
2644
- "rowHeights": {
2645
- "default": [],
2646
- "description": "Row height fractions (sum to 1).",
2647
- "type": "array",
2648
- "items": {
2649
- "type": "number"
2650
- }
2651
- },
2652
- "cells": {
2653
- "default": [],
2654
- "description": "Flat cell array in row-major order.",
2655
- "type": "array",
2656
- "items": {
2657
- "type": "object",
2658
- "properties": {
2659
- "id": {
2660
- "type": "string",
2661
- "description": "Unique identifier for the cell."
2662
- },
2663
- "type": {
2664
- "default": "tablecell",
2665
- "description": "Cell type identifier.",
2666
- "type": "string",
2667
- "const": "tablecell"
2668
- },
2669
- "text": {
2670
- "default": "",
2671
- "description": "Visible text shown in the cell.",
2672
- "type": "string"
2673
- },
2674
- "opacity": {
2675
- "description": "Opacity level (0-1).",
2676
- "type": "number"
2677
- },
2678
- "rowSpan": {
2679
- "description": "Number of rows this cell spans.",
2680
- "type": "number"
2681
- },
2682
- "colSpan": {
2683
- "description": "Number of columns this cell spans.",
2684
- "type": "number"
2685
- },
2686
- "mergedInto": {
2687
- "description": "Id of the cell this one is merged into, if any.",
2688
- "type": "string"
2689
- },
2690
- "name": {
2691
- "description": "Display name for the cell.",
2692
- "type": "string"
2693
- },
2694
- "custom": {
2695
- "description": "Custom data attached to the cell."
2696
- },
2697
- "borders": {
2698
- "description": "Per-side border overrides for this cell.",
2699
- "type": "object",
2700
- "properties": {
2701
- "top": {
2702
- "description": "Top border override for this cell.",
2703
- "type": "object",
2704
- "properties": {
2705
- "color": {
2706
- "description": "Border color for this side.",
2707
- "type": "string"
2708
- },
2709
- "width": {
2710
- "description": "Border width in pixels for this side.",
2711
- "type": "number"
2712
- },
2713
- "style": {
2714
- "description": "Border style for this side.",
2715
- "type": "string",
2716
- "enum": [
2717
- "solid",
2718
- "dashed",
2719
- "dotted",
2720
- "none"
2721
- ]
2722
- }
2723
- }
2724
- },
2725
- "right": {
2726
- "description": "Right border override for this cell.",
2727
- "type": "object",
2728
- "properties": {
2729
- "color": {
2730
- "description": "Border color for this side.",
2731
- "type": "string"
2732
- },
2733
- "width": {
2734
- "description": "Border width in pixels for this side.",
2735
- "type": "number"
2736
- },
2737
- "style": {
2738
- "description": "Border style for this side.",
2739
- "type": "string",
2740
- "enum": [
2741
- "solid",
2742
- "dashed",
2743
- "dotted",
2744
- "none"
2745
- ]
2746
- }
2747
- }
2748
- },
2749
- "bottom": {
2750
- "description": "Bottom border override for this cell.",
2751
- "type": "object",
2752
- "properties": {
2753
- "color": {
2754
- "description": "Border color for this side.",
2755
- "type": "string"
2756
- },
2757
- "width": {
2758
- "description": "Border width in pixels for this side.",
2759
- "type": "number"
2760
- },
2761
- "style": {
2762
- "description": "Border style for this side.",
2763
- "type": "string",
2764
- "enum": [
2765
- "solid",
2766
- "dashed",
2767
- "dotted",
2768
- "none"
2769
- ]
2770
- }
2771
- }
2772
- },
2773
- "left": {
2774
- "description": "Left border override for this cell.",
2775
- "type": "object",
2776
- "properties": {
2777
- "color": {
2778
- "description": "Border color for this side.",
2779
- "type": "string"
2780
- },
2781
- "width": {
2782
- "description": "Border width in pixels for this side.",
2783
- "type": "number"
2784
- },
2785
- "style": {
2786
- "description": "Border style for this side.",
2787
- "type": "string",
2788
- "enum": [
2789
- "solid",
2790
- "dashed",
2791
- "dotted",
2792
- "none"
2793
- ]
2794
- }
2795
- }
2796
- }
2797
- }
2798
- },
2799
- "fontSize": {
2800
- "description": "Font size in pixels (inherits from the table when omitted, minimum 1).",
2801
- "type": "number"
2802
- },
2803
- "fontFamily": {
2804
- "description": "Font family name (inherits from the table when omitted).",
2805
- "type": "string"
2806
- },
2807
- "fontWeight": {
2808
- "description": "Font weight: 'normal', 'bold', or numeric string (inherits from the table when omitted).",
2809
- "type": "string"
2810
- },
2811
- "fontStyle": {
2812
- "description": "Font style: 'normal' or 'italic' (inherits from the table when omitted).",
2813
- "type": "string"
2814
- },
2815
- "textDecoration": {
2816
- "description": "Text decoration, e.g. underline, line-through (inherits from the table when omitted).",
2817
- "type": "string"
2818
- },
2819
- "textTransform": {
2820
- "description": "Text transform: uppercase, lowercase, capitalize, none (inherits from the table when omitted).",
2821
- "type": "string"
2822
- },
2823
- "fill": {
2824
- "description": "Text color (inherits from the table when omitted).",
2825
- "type": "string"
2826
- },
2827
- "align": {
2828
- "description": "Horizontal alignment: left, center, right, justify (inherits from the table when omitted).",
2829
- "type": "string"
2830
- },
2831
- "verticalAlign": {
2832
- "description": "Vertical alignment: top, middle, bottom (inherits from the table when omitted).",
2833
- "type": "string"
2834
- },
2835
- "lineHeight": {
2836
- "description": "Line height multiplier or 'auto' (inherits from the table when omitted).",
2837
- "type": [
2838
- "number",
2839
- "string"
2840
- ]
2841
- },
2842
- "letterSpacing": {
2843
- "description": "Letter spacing as a fraction of font size (inherits from the table when omitted).",
2844
- "type": "number"
2845
- },
2846
- "strokeWidth": {
2847
- "description": "Stroke width in pixels (inherits from the table when omitted).",
2848
- "type": "number"
2849
- },
2850
- "stroke": {
2851
- "description": "Stroke color (inherits from the table when omitted).",
2852
- "type": "string"
2853
- },
2854
- "cellBackground": {
2855
- "description": "Cell background color (inherits from the table when omitted).",
2856
- "type": "string"
2857
- },
2858
- "cellPadding": {
2859
- "description": "Cell padding in pixels (inherits from the table when omitted).",
2860
- "type": "number"
2861
- }
2862
- },
2863
- "required": [
2864
- "id"
2865
- ]
2866
- }
2867
- },
2868
- "borderColor": {
2869
- "default": "#000000",
2870
- "description": "Default border color for the table grid.",
2871
- "type": "string"
2872
- },
2873
- "borderWidth": {
2874
- "default": 1,
2875
- "description": "Default border width in pixels.",
2876
- "type": "number"
2877
- },
2878
- "borderStyle": {
2879
- "default": "solid",
2880
- "description": "Default border style.",
2881
- "type": "string",
2882
- "enum": [
2883
- "solid",
2884
- "dashed",
2885
- "dotted",
2886
- "none"
2887
- ]
2888
- },
2889
- "fontSize": {
2890
- "default": 30,
2891
- "description": "Default font size in pixels for cells (minimum 1).",
2892
- "type": "number"
2893
- },
2894
- "fontFamily": {
2895
- "default": "Roboto",
2896
- "description": "Default font family name for cells.",
2897
- "type": "string"
2898
- },
2899
- "fontWeight": {
2900
- "default": "normal",
2901
- "description": "Default font weight: 'normal', 'bold', or numeric string.",
2902
- "type": "string"
2903
- },
2904
- "fontStyle": {
2905
- "default": "normal",
2906
- "description": "Default font style: 'normal' or 'italic'.",
2907
- "type": "string"
2908
- },
2909
- "textDecoration": {
2910
- "default": "",
2911
- "description": "Default text decoration (e.g. underline, line-through).",
2912
- "type": "string"
2913
- },
2914
- "textTransform": {
2915
- "default": "none",
2916
- "description": "Default text transform: uppercase, lowercase, capitalize, none.",
2917
- "type": "string"
2918
- },
2919
- "fill": {
2920
- "default": "black",
2921
- "description": "Default text color for cells.",
2922
- "type": "string"
2923
- },
2924
- "align": {
2925
- "default": "center",
2926
- "description": "Default horizontal alignment: left, center, right, justify.",
2927
- "type": "string"
2928
- },
2929
- "verticalAlign": {
2930
- "default": "middle",
2931
- "description": "Default vertical alignment: top, middle, bottom.",
2932
- "type": "string"
2933
- },
2934
- "lineHeight": {
2935
- "default": 1.2,
2936
- "description": "Default line height multiplier or 'auto'.",
2937
- "type": [
2938
- "number",
2939
- "string"
2940
- ]
2941
- },
2942
- "letterSpacing": {
2943
- "default": 0,
2944
- "description": "Default letter spacing as a fraction of font size.",
2945
- "type": "number"
2946
- },
2947
- "strokeWidth": {
2948
- "default": 0,
2949
- "description": "Default stroke width in pixels.",
2950
- "type": "number"
2951
- },
2952
- "stroke": {
2953
- "default": "black",
2954
- "description": "Default stroke color.",
2955
- "type": "string"
2956
- },
2957
- "cellBackground": {
2958
- "default": "transparent",
2959
- "description": "Default cell background color.",
2960
- "type": "string"
2961
- },
2962
- "cellPadding": {
2963
- "default": 4,
2964
- "description": "Default cell padding in pixels.",
2965
- "type": "number"
2966
- }
2967
- },
2968
- "required": [
2969
- "id",
2970
- "type"
2971
- ]
2972
- },
2973
- {
2974
- "type": "object",
2975
- "properties": {
2976
- "id": {
2977
- "type": "string",
2978
- "description": "Unique identifier for the element."
2979
- },
2980
- "type": {
2981
- "type": "string",
2982
- "const": "group",
2983
- "description": "Element type identifier."
2984
- },
2985
- "name": {
2986
- "default": "",
2987
- "description": "Display name for the element.",
2988
- "type": "string"
2989
- },
2990
- "custom": {
2991
- "description": "Custom data attached to the element."
2992
- },
2993
- "opacity": {
2994
- "default": 1,
2995
- "description": "Opacity level (0-1).",
2996
- "type": "number"
2997
- },
2998
- "blendMode": {
2999
- "description": "How the group composites with the content beneath it. Omitted means pass-through: children blend with that content directly. Any other mode composites the children together first.",
3000
- "type": "string",
3001
- "enum": [
3002
- "pass-through",
3003
- "normal",
3004
- "multiply",
3005
- "screen",
3006
- "overlay",
3007
- "darken",
3008
- "lighten",
3009
- "color-dodge",
3010
- "color-burn",
3011
- "hard-light",
3012
- "soft-light",
3013
- "difference",
3014
- "exclusion",
3015
- "hue",
3016
- "saturation",
3017
- "color",
3018
- "luminosity"
3019
- ]
3020
- },
3021
- "visible": {
3022
- "default": true,
3023
- "description": "Whether the element is visible.",
3024
- "type": "boolean"
3025
- },
3026
- "selectable": {
3027
- "default": true,
3028
- "description": "Whether the element can be selected.",
3029
- "type": "boolean"
3030
- },
3031
- "removable": {
3032
- "default": true,
3033
- "description": "Whether the element can be removed.",
3034
- "type": "boolean"
3035
- },
3036
- "alwaysOnTop": {
3037
- "default": false,
3038
- "description": "Whether the element stays on top of others.",
3039
- "type": "boolean"
3040
- },
3041
- "showInExport": {
3042
- "default": true,
3043
- "description": "Whether the element appears in exports.",
3044
- "type": "boolean"
3045
- },
3046
- "animations": {
3047
- "default": [],
3048
- "description": "Animation configurations.",
3049
- "type": "array",
3050
- "items": {
3051
- "type": "object",
3052
- "properties": {
3053
- "delay": {
3054
- "default": 0,
3055
- "description": "Delay before the animation starts, in milliseconds.",
3056
- "type": "number"
3057
- },
3058
- "duration": {
3059
- "default": 500,
3060
- "description": "Animation duration in milliseconds.",
3061
- "type": "number"
3062
- },
3063
- "enabled": {
3064
- "default": true,
3065
- "description": "Whether the animation is enabled.",
3066
- "type": "boolean"
3067
- },
3068
- "type": {
3069
- "type": "string",
3070
- "enum": [
3071
- "enter",
3072
- "exit",
3073
- "loop"
3074
- ],
3075
- "description": "Animation phase."
3076
- },
3077
- "name": {
3078
- "default": "none",
3079
- "description": "Animation name identifier.",
3080
- "type": "string"
3081
- },
3082
- "data": {
3083
- "default": {},
3084
- "description": "Animation-specific data."
3085
- }
3086
- },
3087
- "required": [
3088
- "type"
3089
- ]
3090
- }
3091
- },
3092
- "children": {
3093
- "default": [],
3094
- "description": "Child elements in this group.",
3095
- "type": "array",
3096
- "items": {
3097
- "$ref": "#/$defs/__schema0"
3098
- }
3099
- }
3100
- },
3101
- "required": [
3102
- "id",
3103
- "type"
3104
- ]
3105
- }
3106
- ]
3107
- }
3108
- },
3109
- "$id": "https://schema.polotno.com/v1/design.schema.json",
3110
- "title": "Polotno Design"
3111
- }
1
+ {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":5,"description":"Schema version for compatibility / migration. A design without it counts as version 0, the oldest format, and is migrated on load, so write the current version in new JSON.","type":"number"},"width":{"default":1080,"description":"Canvas width in pixels.","type":"number"},"height":{"default":1080,"description":"Canvas height in pixels.","type":"number"},"unit":{"default":"px","description":"Unit type for print measurements.","type":"string","enum":["px","pt","mm","cm","in"]},"dpi":{"default":72,"description":"Dots per inch for print calculations.","type":"number"},"custom":{"description":"Custom data attached to the design."},"fonts":{"default":[],"description":"Fonts used in the design.","type":"array","items":{"type":"object","properties":{"fontFamily":{"type":"string","description":"Font family name."},"url":{"default":"","description":"URL to load the font from (single-variant fonts).","type":"string"},"styles":{"description":"Per-weight/style variants for multi-variant families.","type":"array","items":{"type":"object","properties":{"src":{"type":"string","description":"Font source, typically in CSS url() form."},"fontStyle":{"type":"string"},"fontWeight":{"type":"string"}},"required":["src"]}}},"required":["fontFamily"]}},"pages":{"default":[],"description":"Pages in the design.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the page."},"width":{"default":"auto","description":"Page width in pixels or 'auto'.","anyOf":[{"type":"number"},{"type":"string","const":"auto"}]},"height":{"default":"auto","description":"Page height in pixels or 'auto'.","anyOf":[{"type":"number"},{"type":"string","const":"auto"}]},"background":{"default":"white","description":"Background color or image.","type":"string"},"bleed":{"default":0,"description":"Bleed area in pixels for print (all sides; base value for per-side overrides).","type":"number"},"bleedTop":{"description":"Per-side bleed override (top), in pixels. Inherits `bleed` when omitted.","type":"number"},"bleedRight":{"description":"Per-side bleed override (right), in pixels. Inherits `bleed` when omitted.","type":"number"},"bleedBottom":{"description":"Per-side bleed override (bottom), in pixels. Inherits `bleed` when omitted.","type":"number"},"bleedLeft":{"description":"Per-side bleed override (left), in pixels. Inherits `bleed` when omitted.","type":"number"},"custom":{},"duration":{"default":5000,"description":"Page duration in milliseconds.","type":"number"},"children":{"default":[],"description":"Elements on this page.","type":"array","items":{"$ref":"#/$defs/__schema0"}}},"required":["id"]}},"audios":{"default":[],"description":"Audio tracks in the design.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the audio track."},"name":{"default":"","description":"Display name shown on the timeline.","type":"string"},"src":{"default":"","description":"URL or data URI of the audio file.","type":"string"},"duration":{"default":0,"description":"Duration in milliseconds.","type":"number"},"startTime":{"default":0,"description":"Start offset (0-1).","type":"number"},"endTime":{"default":1,"description":"End offset (0-1).","type":"number"},"volume":{"default":1,"description":"Volume level (0-1).","type":"number"},"delay":{"default":0,"description":"Delay before playing, in milliseconds.","type":"number"},"speed":{"default":1,"description":"Playback speed multiplier (1 = normal).","type":"number"},"custom":{}},"required":["id"]}}},"$defs":{"__schema0":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"text","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":100,"description":"Width in pixels.","type":"number"},"height":{"default":0,"description":"Height in pixels (0 until measured/rendered).","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"blurEnabled":{"default":false,"description":"Whether blur effect is enabled.","type":"boolean"},"blurRadius":{"default":10,"description":"Blur radius in pixels.","type":"number"},"brightnessEnabled":{"default":false,"description":"Whether brightness effect is enabled.","type":"boolean"},"brightness":{"default":0,"description":"Brightness level (-1 to 1).","type":"number"},"sepiaEnabled":{"default":false,"description":"Whether sepia effect is enabled.","type":"boolean"},"grayscaleEnabled":{"default":false,"description":"Whether grayscale effect is enabled.","type":"boolean"},"filters":{"default":{},"description":"Applied image filters keyed by filter name.","$ref":"#/$defs/Filters"},"shadowEnabled":{"default":false,"description":"Whether shadow is enabled.","type":"boolean"},"shadowBlur":{"default":5,"description":"Shadow blur radius in pixels.","type":"number"},"shadowOffsetX":{"default":0,"description":"Shadow horizontal offset in pixels.","type":"number"},"shadowOffsetY":{"default":0,"description":"Shadow vertical offset in pixels.","type":"number"},"shadowColor":{"default":"black","description":"Shadow color.","type":"string"},"shadowOpacity":{"default":1,"description":"Shadow opacity (0-1).","type":"number"},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"text":{"default":"","description":"Visible text shown on canvas.","type":"string"},"placeholder":{"default":"","description":"Placeholder text shown when empty.","type":"string"},"fontSize":{"default":14,"description":"Font size in pixels (minimum 1).","type":"number"},"fontFamily":{"default":"Roboto","description":"Font family name.","type":"string"},"fontStyle":{"default":"normal","description":"Font style: 'normal' or 'italic'.","type":"string"},"fontWeight":{"default":"normal","description":"Font weight: 'normal', 'bold', or numeric string.","type":"string"},"textDecoration":{"default":"","description":"Text decoration (e.g. underline, line-through).","type":"string"},"textTransform":{"default":"none","description":"Text transform: uppercase, lowercase, capitalize, none.","type":"string"},"fill":{"default":"black","description":"Text color.","type":"string"},"align":{"default":"center","description":"Horizontal alignment (commonly left | center | right | justify).","type":"string"},"verticalAlign":{"default":"top","description":"Vertical alignment: top, middle, bottom.","type":"string"},"strokeWidth":{"default":0,"description":"Stroke width in pixels.","type":"number"},"stroke":{"default":"black","description":"Stroke color.","type":"string"},"strokeLineJoin":{"default":"round","description":"Stroke corner join: round, miter, bevel.","type":"string"},"lineHeight":{"default":1.2,"description":"Line height multiplier or 'auto'.","type":["number","string"]},"letterSpacing":{"default":0,"description":"Letter spacing as a fraction of font size.","type":"number"},"backgroundEnabled":{"default":false,"description":"Whether the text background is enabled.","type":"boolean"},"backgroundColor":{"default":"#7ED321","description":"Text background color.","type":"string"},"backgroundOpacity":{"default":1,"description":"Text background opacity (0-1).","type":"number"},"backgroundCornerRadius":{"default":0.5,"description":"Text background corner radius.","type":"number"},"backgroundPadding":{"default":0.5,"description":"Text background padding.","type":"number"},"borderColor":{"default":"black","description":"Text box border color.","type":"string"},"borderSize":{"default":0,"description":"Text box border width in pixels.","type":"number"},"curveEnabled":{"default":false,"description":"Whether the text curve effect is enabled.","type":"boolean"},"curvePower":{"default":0.5,"description":"Text curve power (-1 to 1, 0 = straight).","type":"number"},"legacyBackground":{"description":"Internal compatibility flag stamped by the v2→v3 migration.","type":"boolean"},"textOverflow":{"description":"What to do when the text does not fit: 'resize' | 'ellipsis' | 'fit'. Missing (or unknown) follows the global setting.","type":"string"},"maxLines":{"description":"Line cap in every overflow mode; text past it ends in an ellipsis.","type":"number"},"minFontSize":{"description":"Smallest size 'fit' may draw at, in pixels.","type":"number"},"maxFontSize":{"description":"Largest size 'fit' may draw at, in pixels (defaults to fontSize). Above fontSize it grows text to fit.","type":"number"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"image","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":100,"description":"Width in pixels.","type":"number"},"height":{"default":100,"description":"Height in pixels.","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"blurEnabled":{"default":false,"description":"Whether blur effect is enabled.","type":"boolean"},"blurRadius":{"default":10,"description":"Blur radius in pixels.","type":"number"},"brightnessEnabled":{"default":false,"description":"Whether brightness effect is enabled.","type":"boolean"},"brightness":{"default":0,"description":"Brightness level (-1 to 1).","type":"number"},"sepiaEnabled":{"default":false,"description":"Whether sepia effect is enabled.","type":"boolean"},"grayscaleEnabled":{"default":false,"description":"Whether grayscale effect is enabled.","type":"boolean"},"filters":{"default":{},"description":"Applied image filters keyed by filter name.","$ref":"#/$defs/Filters"},"shadowEnabled":{"default":false,"description":"Whether shadow is enabled.","type":"boolean"},"shadowBlur":{"default":5,"description":"Shadow blur radius in pixels.","type":"number"},"shadowOffsetX":{"default":0,"description":"Shadow horizontal offset in pixels.","type":"number"},"shadowOffsetY":{"default":0,"description":"Shadow vertical offset in pixels.","type":"number"},"shadowColor":{"default":"black","description":"Shadow color.","type":"string"},"shadowOpacity":{"default":1,"description":"Shadow opacity (0-1).","type":"number"},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"src":{"default":"","description":"URL or data URI of the image file.","type":"string"},"cropX":{"default":0,"description":"Crop X offset as a fraction (0-1).","type":"number"},"cropY":{"default":0,"description":"Crop Y offset as a fraction (0-1).","type":"number"},"cropWidth":{"default":1,"description":"Crop width as a fraction (0-1).","type":"number"},"cropHeight":{"default":1,"description":"Crop height as a fraction (0-1).","type":"number"},"cornerRadius":{"default":0,"description":"Corner radius in pixels.","type":"number"},"flipX":{"default":false,"description":"Whether the image is flipped horizontally.","type":"boolean"},"flipY":{"default":false,"description":"Whether the image is flipped vertically.","type":"boolean"},"clipSrc":{"default":"","description":"URL or data URI for a clipping mask.","type":"string"},"borderColor":{"default":"black","description":"Border color.","type":"string"},"borderSize":{"default":0,"description":"Border width in pixels.","type":"number"},"keepRatio":{"default":false,"description":"Whether to maintain aspect ratio when resizing.","type":"boolean"},"stretchEnabled":{"default":false,"description":"Whether stretch mode is enabled.","type":"boolean"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"svg","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":100,"description":"Width in pixels.","type":"number"},"height":{"default":100,"description":"Height in pixels.","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"blurEnabled":{"default":false,"description":"Whether blur effect is enabled.","type":"boolean"},"blurRadius":{"default":10,"description":"Blur radius in pixels.","type":"number"},"brightnessEnabled":{"default":false,"description":"Whether brightness effect is enabled.","type":"boolean"},"brightness":{"default":0,"description":"Brightness level (-1 to 1).","type":"number"},"sepiaEnabled":{"default":false,"description":"Whether sepia effect is enabled.","type":"boolean"},"grayscaleEnabled":{"default":false,"description":"Whether grayscale effect is enabled.","type":"boolean"},"filters":{"default":{},"description":"Applied image filters keyed by filter name.","$ref":"#/$defs/Filters"},"shadowEnabled":{"default":false,"description":"Whether shadow is enabled.","type":"boolean"},"shadowBlur":{"default":5,"description":"Shadow blur radius in pixels.","type":"number"},"shadowOffsetX":{"default":0,"description":"Shadow horizontal offset in pixels.","type":"number"},"shadowOffsetY":{"default":0,"description":"Shadow vertical offset in pixels.","type":"number"},"shadowColor":{"default":"black","description":"Shadow color.","type":"string"},"shadowOpacity":{"default":1,"description":"Shadow opacity (0-1).","type":"number"},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"src":{"default":"","description":"URL or data URI of the SVG.","type":"string"},"maskSrc":{"default":"","description":"URL or data URI for an SVG mask.","type":"string"},"cropX":{"default":0,"description":"Crop X offset as a fraction (0-1).","type":"number"},"cropY":{"default":0,"description":"Crop Y offset as a fraction (0-1).","type":"number"},"cropWidth":{"default":1,"description":"Crop width as a fraction (0-1).","type":"number"},"cropHeight":{"default":1,"description":"Crop height as a fraction (0-1).","type":"number"},"keepRatio":{"default":true,"description":"Whether to maintain aspect ratio when resizing.","type":"boolean"},"stretchEnabled":{"default":true,"description":"Whether stretch mode is enabled.","type":"boolean"},"flipX":{"default":false,"description":"Whether the image is flipped horizontally.","type":"boolean"},"flipY":{"default":false,"description":"Whether the image is flipped vertically.","type":"boolean"},"borderColor":{"default":"black","description":"Border color.","type":"string"},"borderSize":{"default":0,"description":"Border width in pixels.","type":"number"},"cornerRadius":{"default":0,"description":"Corner radius in pixels.","type":"number"},"colorsReplace":{"default":{},"description":"Color replacement mappings (original → replacement).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"line","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":400,"description":"Width in pixels.","type":"number"},"height":{"default":10,"description":"Height in pixels.","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"blurEnabled":{"default":false,"description":"Whether blur effect is enabled.","type":"boolean"},"blurRadius":{"default":10,"description":"Blur radius in pixels.","type":"number"},"brightnessEnabled":{"default":false,"description":"Whether brightness effect is enabled.","type":"boolean"},"brightness":{"default":0,"description":"Brightness level (-1 to 1).","type":"number"},"sepiaEnabled":{"default":false,"description":"Whether sepia effect is enabled.","type":"boolean"},"grayscaleEnabled":{"default":false,"description":"Whether grayscale effect is enabled.","type":"boolean"},"filters":{"default":{},"description":"Applied image filters keyed by filter name.","$ref":"#/$defs/Filters"},"shadowEnabled":{"default":false,"description":"Whether shadow is enabled.","type":"boolean"},"shadowBlur":{"default":5,"description":"Shadow blur radius in pixels.","type":"number"},"shadowOffsetX":{"default":0,"description":"Shadow horizontal offset in pixels.","type":"number"},"shadowOffsetY":{"default":0,"description":"Shadow vertical offset in pixels.","type":"number"},"shadowColor":{"default":"black","description":"Shadow color.","type":"string"},"shadowOpacity":{"default":1,"description":"Shadow opacity (0-1).","type":"number"},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"color":{"default":"black","description":"Line color.","type":"string"},"dash":{"default":[],"description":"Dash pattern array.","type":"array","items":{"type":"number"}},"startHead":{"default":"","description":"Start arrow head: empty, arrow, circle, square, bar.","type":"string"},"endHead":{"default":"","description":"End arrow head: empty, arrow, circle, square, bar.","type":"string"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"figure","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":100,"description":"Width in pixels.","type":"number"},"height":{"default":100,"description":"Height in pixels.","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"blurEnabled":{"default":false,"description":"Whether blur effect is enabled.","type":"boolean"},"blurRadius":{"default":10,"description":"Blur radius in pixels.","type":"number"},"brightnessEnabled":{"default":false,"description":"Whether brightness effect is enabled.","type":"boolean"},"brightness":{"default":0,"description":"Brightness level (-1 to 1).","type":"number"},"sepiaEnabled":{"default":false,"description":"Whether sepia effect is enabled.","type":"boolean"},"grayscaleEnabled":{"default":false,"description":"Whether grayscale effect is enabled.","type":"boolean"},"filters":{"default":{},"description":"Applied image filters keyed by filter name.","$ref":"#/$defs/Filters"},"shadowEnabled":{"default":false,"description":"Whether shadow is enabled.","type":"boolean"},"shadowBlur":{"default":5,"description":"Shadow blur radius in pixels.","type":"number"},"shadowOffsetX":{"default":0,"description":"Shadow horizontal offset in pixels.","type":"number"},"shadowOffsetY":{"default":0,"description":"Shadow vertical offset in pixels.","type":"number"},"shadowColor":{"default":"black","description":"Shadow color.","type":"string"},"shadowOpacity":{"default":1,"description":"Shadow opacity (0-1).","type":"number"},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"subType":{"default":"rect","description":"Figure subtype: rect, ellipse, triangle, etc.","type":"string"},"fill":{"default":"rgb(0, 161, 255)","description":"Fill color.","type":"string"},"dash":{"default":[],"description":"Dash pattern array.","type":"array","items":{"type":"number"}},"strokeWidth":{"default":0,"description":"Stroke width in pixels.","type":"number"},"stroke":{"default":"rgba(98, 197, 255, 1)","description":"Stroke color.","type":"string"},"cornerRadius":{"default":0,"description":"Corner radius in pixels.","type":"number"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"gif","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":100,"description":"Width in pixels.","type":"number"},"height":{"default":100,"description":"Height in pixels.","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"blurEnabled":{"default":false,"description":"Whether blur effect is enabled.","type":"boolean"},"blurRadius":{"default":10,"description":"Blur radius in pixels.","type":"number"},"brightnessEnabled":{"default":false,"description":"Whether brightness effect is enabled.","type":"boolean"},"brightness":{"default":0,"description":"Brightness level (-1 to 1).","type":"number"},"sepiaEnabled":{"default":false,"description":"Whether sepia effect is enabled.","type":"boolean"},"grayscaleEnabled":{"default":false,"description":"Whether grayscale effect is enabled.","type":"boolean"},"filters":{"default":{},"description":"Applied image filters keyed by filter name.","$ref":"#/$defs/Filters"},"shadowEnabled":{"default":false,"description":"Whether shadow is enabled.","type":"boolean"},"shadowBlur":{"default":5,"description":"Shadow blur radius in pixels.","type":"number"},"shadowOffsetX":{"default":0,"description":"Shadow horizontal offset in pixels.","type":"number"},"shadowOffsetY":{"default":0,"description":"Shadow vertical offset in pixels.","type":"number"},"shadowColor":{"default":"black","description":"Shadow color.","type":"string"},"shadowOpacity":{"default":1,"description":"Shadow opacity (0-1).","type":"number"},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"src":{"default":"","description":"URL or data URI of the image file.","type":"string"},"cropX":{"default":0,"description":"Crop X offset as a fraction (0-1).","type":"number"},"cropY":{"default":0,"description":"Crop Y offset as a fraction (0-1).","type":"number"},"cropWidth":{"default":1,"description":"Crop width as a fraction (0-1).","type":"number"},"cropHeight":{"default":1,"description":"Crop height as a fraction (0-1).","type":"number"},"cornerRadius":{"default":0,"description":"Corner radius in pixels.","type":"number"},"flipX":{"default":false,"description":"Whether the image is flipped horizontally.","type":"boolean"},"flipY":{"default":false,"description":"Whether the image is flipped vertically.","type":"boolean"},"clipSrc":{"default":"","description":"URL or data URI for a clipping mask.","type":"string"},"borderColor":{"default":"black","description":"Border color.","type":"string"},"borderSize":{"default":0,"description":"Border width in pixels.","type":"number"},"keepRatio":{"default":true,"description":"Whether to maintain aspect ratio when resizing.","type":"boolean"},"stretchEnabled":{"default":false,"description":"Whether stretch mode is enabled.","type":"boolean"},"duration":{"default":0,"description":"GIF duration in milliseconds.","type":"number"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"video","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":100,"description":"Width in pixels.","type":"number"},"height":{"default":100,"description":"Height in pixels.","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"blurEnabled":{"default":false,"description":"Whether blur effect is enabled.","type":"boolean"},"blurRadius":{"default":10,"description":"Blur radius in pixels.","type":"number"},"brightnessEnabled":{"default":false,"description":"Whether brightness effect is enabled.","type":"boolean"},"brightness":{"default":0,"description":"Brightness level (-1 to 1).","type":"number"},"sepiaEnabled":{"default":false,"description":"Whether sepia effect is enabled.","type":"boolean"},"grayscaleEnabled":{"default":false,"description":"Whether grayscale effect is enabled.","type":"boolean"},"filters":{"default":{},"description":"Applied image filters keyed by filter name.","$ref":"#/$defs/Filters"},"shadowEnabled":{"default":false,"description":"Whether shadow is enabled.","type":"boolean"},"shadowBlur":{"default":5,"description":"Shadow blur radius in pixels.","type":"number"},"shadowOffsetX":{"default":0,"description":"Shadow horizontal offset in pixels.","type":"number"},"shadowOffsetY":{"default":0,"description":"Shadow vertical offset in pixels.","type":"number"},"shadowColor":{"default":"black","description":"Shadow color.","type":"string"},"shadowOpacity":{"default":1,"description":"Shadow opacity (0-1).","type":"number"},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"src":{"default":"","description":"URL or data URI of the image file.","type":"string"},"cropX":{"default":0,"description":"Crop X offset as a fraction (0-1).","type":"number"},"cropY":{"default":0,"description":"Crop Y offset as a fraction (0-1).","type":"number"},"cropWidth":{"default":1,"description":"Crop width as a fraction (0-1).","type":"number"},"cropHeight":{"default":1,"description":"Crop height as a fraction (0-1).","type":"number"},"cornerRadius":{"default":0,"description":"Corner radius in pixels.","type":"number"},"flipX":{"default":false,"description":"Whether the image is flipped horizontally.","type":"boolean"},"flipY":{"default":false,"description":"Whether the image is flipped vertically.","type":"boolean"},"clipSrc":{"default":"","description":"URL or data URI for a clipping mask.","type":"string"},"borderColor":{"default":"black","description":"Border color.","type":"string"},"borderSize":{"default":0,"description":"Border width in pixels.","type":"number"},"keepRatio":{"default":false,"description":"Whether to maintain aspect ratio when resizing.","type":"boolean"},"stretchEnabled":{"default":false,"description":"Whether stretch mode is enabled.","type":"boolean"},"duration":{"default":0,"description":"Video duration in milliseconds.","type":"number"},"startTime":{"default":0,"description":"Start offset (0-1).","type":"number"},"endTime":{"default":1,"description":"End offset (0-1).","type":"number"},"volume":{"default":1,"description":"Volume (0-1).","type":"number"},"speed":{"default":1,"description":"Playback speed multiplier (1 = normal).","type":"number"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"table","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"x":{"default":0,"description":"X position in pixels.","type":"number"},"y":{"default":0,"description":"Y position in pixels.","type":"number"},"width":{"default":300,"description":"Width in pixels.","type":"number"},"height":{"default":200,"description":"Height in pixels.","type":"number"},"rotation":{"default":0,"description":"Rotation angle in degrees.","type":"number"},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the element composites with the content beneath it. Omitted means normal.","$ref":"#/$defs/BlendMode"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"draggable":{"default":true,"description":"Whether the element can be dragged.","type":"boolean"},"resizable":{"default":true,"description":"Whether the element can be resized.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"contentEditable":{"default":true,"description":"Whether the element content can be edited.","type":"boolean"},"styleEditable":{"default":true,"description":"Whether the element style can be edited.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"rows":{"default":3,"description":"Number of rows.","type":"number"},"cols":{"default":3,"description":"Number of columns.","type":"number"},"colWidths":{"default":[],"description":"Column width fractions (sum to 1).","type":"array","items":{"type":"number"}},"rowHeights":{"default":[],"description":"Row height fractions (sum to 1).","type":"array","items":{"type":"number"}},"cells":{"default":[],"description":"Flat cell array in row-major order.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the cell."},"type":{"default":"tablecell","description":"Cell type identifier.","type":"string","const":"tablecell"},"text":{"default":"","description":"Visible text shown in the cell.","type":"string"},"opacity":{"description":"Opacity level (0-1).","type":"number"},"rowSpan":{"description":"Number of rows this cell spans.","type":"number"},"colSpan":{"description":"Number of columns this cell spans.","type":"number"},"mergedInto":{"description":"Id of the cell this one is merged into, if any.","type":"string"},"name":{"description":"Display name for the cell.","type":"string"},"custom":{"description":"Custom data attached to the cell."},"borders":{"description":"Per-side border overrides for this cell.","type":"object","properties":{"top":{"description":"Top border override for this cell.","$ref":"#/$defs/BorderSide"},"right":{"description":"Right border override for this cell.","$ref":"#/$defs/BorderSide"},"bottom":{"description":"Bottom border override for this cell.","$ref":"#/$defs/BorderSide"},"left":{"description":"Left border override for this cell.","$ref":"#/$defs/BorderSide"}}},"fontSize":{"description":"Font size in pixels (inherits from the table when omitted, minimum 1).","type":"number"},"fontFamily":{"description":"Font family name (inherits from the table when omitted).","type":"string"},"fontWeight":{"description":"Font weight: 'normal', 'bold', or numeric string (inherits from the table when omitted).","type":"string"},"fontStyle":{"description":"Font style: 'normal' or 'italic' (inherits from the table when omitted).","type":"string"},"textDecoration":{"description":"Text decoration, e.g. underline, line-through (inherits from the table when omitted).","type":"string"},"textTransform":{"description":"Text transform: uppercase, lowercase, capitalize, none (inherits from the table when omitted).","type":"string"},"fill":{"description":"Text color (inherits from the table when omitted).","type":"string"},"align":{"description":"Horizontal alignment: left, center, right, justify (inherits from the table when omitted).","type":"string"},"verticalAlign":{"description":"Vertical alignment: top, middle, bottom (inherits from the table when omitted).","type":"string"},"lineHeight":{"description":"Line height multiplier or 'auto' (inherits from the table when omitted).","type":["number","string"]},"letterSpacing":{"description":"Letter spacing as a fraction of font size (inherits from the table when omitted).","type":"number"},"strokeWidth":{"description":"Stroke width in pixels (inherits from the table when omitted).","type":"number"},"stroke":{"description":"Stroke color (inherits from the table when omitted).","type":"string"},"cellBackground":{"description":"Cell background color (inherits from the table when omitted).","type":"string"},"cellPadding":{"description":"Cell padding in pixels (inherits from the table when omitted).","type":"number"}},"required":["id"]}},"borderColor":{"default":"#000000","description":"Default border color for the table grid.","type":"string"},"borderWidth":{"default":1,"description":"Default border width in pixels.","type":"number"},"borderStyle":{"default":"solid","description":"Default border style.","type":"string","enum":["solid","dashed","dotted","none"]},"fontSize":{"default":30,"description":"Default font size in pixels for cells (minimum 1).","type":"number"},"fontFamily":{"default":"Roboto","description":"Default font family name for cells.","type":"string"},"fontWeight":{"default":"normal","description":"Default font weight: 'normal', 'bold', or numeric string.","type":"string"},"fontStyle":{"default":"normal","description":"Default font style: 'normal' or 'italic'.","type":"string"},"textDecoration":{"default":"","description":"Default text decoration (e.g. underline, line-through).","type":"string"},"textTransform":{"default":"none","description":"Default text transform: uppercase, lowercase, capitalize, none.","type":"string"},"fill":{"default":"black","description":"Default text color for cells.","type":"string"},"align":{"default":"center","description":"Default horizontal alignment: left, center, right, justify.","type":"string"},"verticalAlign":{"default":"middle","description":"Default vertical alignment: top, middle, bottom.","type":"string"},"lineHeight":{"default":1.2,"description":"Default line height multiplier or 'auto'.","type":["number","string"]},"letterSpacing":{"default":0,"description":"Default letter spacing as a fraction of font size.","type":"number"},"strokeWidth":{"default":0,"description":"Default stroke width in pixels.","type":"number"},"stroke":{"default":"black","description":"Default stroke color.","type":"string"},"cellBackground":{"default":"transparent","description":"Default cell background color.","type":"string"},"cellPadding":{"default":4,"description":"Default cell padding in pixels.","type":"number"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the element."},"type":{"type":"string","const":"group","description":"Element type identifier."},"name":{"default":"","description":"Display name for the element.","type":"string"},"custom":{"description":"Custom data attached to the element."},"opacity":{"default":1,"description":"Opacity level (0-1).","type":"number"},"blendMode":{"description":"How the group composites with the content beneath it. Omitted means pass-through: children blend with that content directly. Any other mode composites the children together first.","type":"string","enum":["pass-through","normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},"visible":{"default":true,"description":"Whether the element is visible.","type":"boolean"},"selectable":{"default":true,"description":"Whether the element can be selected.","type":"boolean"},"removable":{"default":true,"description":"Whether the element can be removed.","type":"boolean"},"alwaysOnTop":{"default":false,"description":"Whether the element stays on top of others.","type":"boolean"},"showInExport":{"default":true,"description":"Whether the element appears in exports.","type":"boolean"},"animations":{"default":[],"description":"The element's animations, at most one of each `type`, so an 'enter', an 'exit' and a 'loop' can play together. A group's animations play on top of its children's.","type":"array","items":{"$ref":"#/$defs/Animation"}},"children":{"default":[],"description":"Child elements in this group.","type":"array","items":{"$ref":"#/$defs/__schema0"}}},"required":["id","type"]}]},"BlendMode":{"type":"string","enum":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},"Animation":{"type":"object","properties":{"delay":{"default":0,"description":"Time in milliseconds, measured on the element's page, not on the whole design. On 'enter': how long after the page starts the element appears. It is hidden until then. On 'exit': how long before the page ends the element disappears. The exit finishes at that moment, and the element stays hidden after it. On 'loop': how long after the page starts the first cycle begins. It does not wait for the entrance, so a loop can be mid-cycle when the element appears. Until then the element is at rest. kenBurns ignores it, and letterWave also waits for an entrance that is a text preset to finish.","type":"number"},"duration":{"default":500,"description":"Time in milliseconds. On 'enter': how long the entrance plays, from its `delay`. On 'exit': how long the exit plays, up to the moment the element disappears. If the two together are longer than the element's time on the page, both play faster by the same factor to fit. On 'loop': the length of one cycle. Cycles repeat until the element disappears or the page ends. kenBurns ignores it and plays once across the element's whole time on the page. The default suits a transition of the whole element. Picking a preset in the editor sets a longer one: 1000 for lineRise, wordRise, wordFade, letterPop, wordBlur and lineWipe, 50 per letter from 1000 to 4000 for typewriter, 4000 for rotate, 2500 for float, 2000 for letterWave and glow, 1500 for blink and pulse, and 1000 for shake.","type":"number"},"enabled":{"default":true,"description":"Whether the animation plays. A disabled 'enter' or 'exit' also loses its `delay`, so the element is on the page from its start or to its end. To time an element with no transition, keep it enabled with the name 'none'.","type":"boolean"},"type":{"type":"string","enum":["enter","exit","loop"],"description":"Animation phase: 'enter' brings the element onto the page, 'exit' takes it off, and 'loop' repeats while it is there, also during the entrance and the exit."},"name":{"default":"none","description":"Preset to play. Which names are valid depends on `type`. On 'enter' and 'exit': 'none' | 'fade' | 'move' | 'zoom' | 'pop' | 'rise' | 'flip' | 'growTurn' | 'wipe' | 'blur' | 'count' | 'typewriter' | 'lineRise' | 'wordRise' | 'wordFade' | 'letterPop' | 'wordBlur' | 'lineWipe'. On 'loop': 'none' | 'rotate' | 'blink' | 'bounce' | 'pulse' | 'float' | 'shake' | 'glow' | 'kenBurns' | 'letterWave'. Use a name only on its own type: a fade on 'loop' plays once and leaves the element hidden. An unknown name passes validation, logs a console error and does not animate. none is a hard cut: the element still appears or disappears at its `delay`, with no transition, and `duration` is ignored. As entrances: fade fades in, move slides in along a straight line, zoom scales into place, pop grows into place and fades in over its first third, rise moves up into place while fading in, flip turns half round about its vertical center line from its mirrored back, growTurn turns into place from half size while fading in, wipe shows the element behind a travelling edge, blur comes into focus while fading in, and count counts the first number in the text up to its value, keeping the style of the text and the format of the number, such as its thousands separator. An exit plays the same preset backwards, except that move, rise, growTurn and wipe carry on the way they were going. Presets that scale keep the center of the element in place. The text presets play on each unit of the text in turn, and `duration` covers them all: typewriter shows letters, letterPop pops letters, wordRise, wordFade and wordBlur play rise, fade and blur on words, and lineRise and lineWipe play rise and wipe on lines. An exit runs from the last unit back to the first. As loops: rotate turns clockwise once per cycle, blink fades out and back, pulse grows a little and back, float lifts and settles, shake swings side to side and dies out within the cycle, glow swells and fades a halo around the element, letterWave bobs each letter in turn, and kenBurns zooms, and can pan, inside the frame of the element. bounce shrinks and grows back: the editor no longer offers it, so prefer pulse. Element limits: count, the text presets and letterWave are for 'text' elements. count plays nothing without a number in the text. Curved text or any other element plays a text preset whole, as its base preset: typewriter and wordFade as fade, lineRise and wordRise as rise, letterPop as pop, wordBlur as blur, lineWipe as wipe and letterWave as float. blur blurs only 'text', 'image', 'svg', 'video' and 'gif', and any other element only fades. glow plays nothing on 'table' and 'group'. kenBurns plays on the crop, so only on 'image', 'svg', 'video' and 'gif'. Every other preset plays on every element, groups included.","type":"string"},"data":{"default":{},"description":"Object of options for the preset in `name`. Every option is optional, and a preset not listed here takes none. `strength` is always a multiplier, default 1, and the editor offers 0.1 to 3. move: `direction` 'right' | 'left' | 'up' | 'down' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left', default 'right', the way the element travels on both 'enter' and 'exit'. `strength` 1 travels 20% of the shorter side of the page: it covers that distance, not the way to the edge of the page. zoom: `direction` 'in' | 'out', default 'in'. 'in' starts smaller and grows into place, 'out' starts larger and shrinks into place, and any other value plays as 'out'. `strength` 1 starts 25% away from full size. pop: `strength` 1 starts from nothing, and 0.5 from half size. rise: `strength` 1 travels 5% of the shorter side of the page. growTurn: `strength` 1 turns 180 degrees. wipe: `direction` 'right' | 'left' | 'up' | 'down', default 'right', the way its edge travels. blur: `strength` 1 adds 20 to `blurRadius` at its most blurred. count: `from`, a number, default 0, where the count starts on 'enter' and ends on 'exit'. bounce: `strength` 1 shrinks to a third of the size, and 0.5 to half. pulse: `strength` 1 grows 8%. float: `strength` 1 lifts 2% of the shorter side of the page. shake: `strength` 1 swings 1.5% of the shorter side of the page. letterWave: `strength` 1 lifts each letter 0.3 of its font size. glow: `strength` 1 spreads 2% of the shorter side of the page. It has no color option: it uses the element's `shadowColor` when `shadowEnabled` is true or `shadowColor` is not 'black', else its `fill` (`color` on a line), else black. So a `shadowColor` with `shadowEnabled` false glows in that color and shows no shadow at rest. kenBurns: `zoom` 'in' | 'out', default 'in'. 'in' narrows the saved crop, and 'out' widens to it. `direction` 'none' | 'right' | 'left' | 'up' | 'down', default 'none', the way the view pans. `strength` 1 narrows the crop by 15%. A design below `schemaVersion` 5, or with none, has its move `strength` rescaled on load to keep the fixed 200px those versions travelled."},"easing":{"description":"Timing curve: 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'backIn' | 'backOut' | 'backInOut'. Missing (or unknown) plays linear. Setting a preset in the editor writes its recommended curve: fade, move, zoom, blur, count, rise, flip, growTurn and wipe ease out on enter and ease in on exit, pop overshoots (backOut on enter, backIn on exit), blink and bounce ease in and out on each sweep, kenBurns eases in and out across the element's time, a text preset eases each of its letters, words or lines as the preset it plays, and every other animation is linear.","type":"string"}},"required":["type"]},"Filters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"intensity":{"default":1,"description":"Filter intensity (-1 to 1).","type":"number"}}}},"BorderSide":{"type":"object","properties":{"color":{"description":"Border color for this side.","type":"string"},"width":{"description":"Border width in pixels for this side.","type":"number"},"style":{"description":"Border style for this side.","type":"string","enum":["solid","dashed","dotted","none"]}}}},"$id":"https://schema.polotno.com/v1/design.schema.json","title":"Polotno Design"}