alpha2 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/containers.d.ts +89 -0
- package/dist/containers.js +150 -0
- package/dist/effects.d.ts +12 -2
- package/dist/frame-supply.d.ts +5 -0
- package/dist/generated/project-schema.d.ts +564 -100
- package/dist/generated/project-schema.js +36 -0
- package/dist/generated/project-shape.js +345 -55
- package/dist/geometry.d.ts +98 -0
- package/dist/geometry.js +71 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/mediabunny.d.ts +33 -26
- package/dist/mediabunny.js +45 -14
- package/dist/player.d.ts +5 -0
- package/dist/project.d.ts +26 -2
- package/dist/project.js +358 -55
- package/dist/worker.js +1 -0
- package/package.json +9 -1
- package/wasm/alpha2_extensions_bg.wasm +0 -0
- package/wasm/alpha2_wasm.d.ts +116 -8
- package/wasm/alpha2_wasm.js +369 -34
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +16 -4
- /package/wasm/snippets/{alpha2-wasm-e7f44ec6b15db6c6 → alpha2-wasm-7f557ec9a60cc69b}/inline0.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-e7f44ec6b15db6c6 → alpha2-wasm-7f557ec9a60cc69b}/inline1.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-e7f44ec6b15db6c6 → alpha2-wasm-7f557ec9a60cc69b}/inline2.js +0 -0
|
@@ -37,6 +37,10 @@ export const MAX_COMPOSITION_DEPTH = 64;
|
|
|
37
37
|
export const MAX_COMPOSITION_NODES = 256;
|
|
38
38
|
/** Mirrors `alpha2_model::MAX_COMPRESSOR_RATIO`. */
|
|
39
39
|
export const MAX_COMPRESSOR_RATIO = 100;
|
|
40
|
+
/** Mirrors `alpha2_model::MAX_DASH_ENTRIES`. */
|
|
41
|
+
export const MAX_DASH_ENTRIES = 16;
|
|
42
|
+
/** Mirrors `alpha2_model::MAX_EFFECT_INPUTS`. */
|
|
43
|
+
export const MAX_EFFECT_INPUTS = 8;
|
|
40
44
|
/** Mirrors `alpha2_model::MAX_ENVELOPE_MS`. */
|
|
41
45
|
export const MAX_ENVELOPE_MS = 10000;
|
|
42
46
|
/** Mirrors `alpha2_model::MAX_EQ_BANDS`. */
|
|
@@ -69,6 +73,12 @@ export const MAX_LOOKAHEAD_MS = 100;
|
|
|
69
73
|
export const MAX_LOTTIE_DOCUMENT_BYTES = 16777216;
|
|
70
74
|
/** Mirrors `alpha2_model::MAX_MERGE_LAYERS`. */
|
|
71
75
|
export const MAX_MERGE_LAYERS = 32;
|
|
76
|
+
/** Mirrors `alpha2_model::MAX_PATH_SUBPATHS`. */
|
|
77
|
+
export const MAX_PATH_SUBPATHS = 256;
|
|
78
|
+
/** Mirrors `alpha2_model::MAX_PATH_VERTICES`. */
|
|
79
|
+
export const MAX_PATH_VERTICES = 4096;
|
|
80
|
+
/** Mirrors `alpha2_model::MAX_POLYSTAR_POINTS`. */
|
|
81
|
+
export const MAX_POLYSTAR_POINTS = 100;
|
|
72
82
|
/** Mirrors `alpha2_model::MAX_PROJECT_JSON_BYTES`. */
|
|
73
83
|
export const MAX_PROJECT_JSON_BYTES = 67108864;
|
|
74
84
|
/** Mirrors `alpha2_model::MAX_PROVIDER_DOCUMENT_BYTES`. */
|
|
@@ -77,6 +87,10 @@ export const MAX_PROVIDER_DOCUMENT_BYTES = 268435456;
|
|
|
77
87
|
export const MAX_SAMPLE_RATE = 96000;
|
|
78
88
|
/** Mirrors `alpha2_model::MAX_SEQUENCE_FRAMES`. */
|
|
79
89
|
export const MAX_SEQUENCE_FRAMES = 100000;
|
|
90
|
+
/** Mirrors `alpha2_model::MAX_SHAPE_DEPTH`. */
|
|
91
|
+
export const MAX_SHAPE_DEPTH = 32;
|
|
92
|
+
/** Mirrors `alpha2_model::MAX_SHAPE_ITEMS`. */
|
|
93
|
+
export const MAX_SHAPE_ITEMS = 1024;
|
|
80
94
|
/** Mirrors `alpha2_model::MAX_SVG_DOCUMENT_BYTES`. */
|
|
81
95
|
export const MAX_SVG_DOCUMENT_BYTES = 33554432;
|
|
82
96
|
/** Mirrors `alpha2_model::MAX_TEXT_CONTENT_BYTES`. */
|
|
@@ -101,6 +115,8 @@ export const MIN_HDR_PEAK_NITS = 100;
|
|
|
101
115
|
export const MIN_LEVEL_DB = -96;
|
|
102
116
|
/** Mirrors `alpha2_model::MIN_LINE_HEIGHT`. */
|
|
103
117
|
export const MIN_LINE_HEIGHT = 0.5;
|
|
118
|
+
/** Mirrors `alpha2_model::MIN_POLYSTAR_POINTS`. */
|
|
119
|
+
export const MIN_POLYSTAR_POINTS = 3;
|
|
104
120
|
/** Mirrors `alpha2_model::MIN_SAMPLE_RATE`. */
|
|
105
121
|
export const MIN_SAMPLE_RATE = 8000;
|
|
106
122
|
/** Mirrors `alpha2_model::REVERB_DELAY_MS`. */
|
|
@@ -169,8 +185,18 @@ export const FADE_SHAPE_VALUES = [
|
|
|
169
185
|
"linear",
|
|
170
186
|
"equal_power",
|
|
171
187
|
];
|
|
188
|
+
/** Every {@link FillRule}, in the model's order. */
|
|
189
|
+
export const FILL_RULE_VALUES = ["nonzero", "evenodd"];
|
|
172
190
|
/** Every {@link HdrSources}, in the model's order. */
|
|
173
191
|
export const HDR_SOURCES_VALUES = ["tone_map", "reject"];
|
|
192
|
+
/** Every {@link LineCap}, in the model's order. */
|
|
193
|
+
export const LINE_CAP_VALUES = ["butt", "round", "square"];
|
|
194
|
+
/** Every {@link LineJoin}, in the model's order. */
|
|
195
|
+
export const LINE_JOIN_VALUES = [
|
|
196
|
+
"miter",
|
|
197
|
+
"round",
|
|
198
|
+
"bevel",
|
|
199
|
+
];
|
|
174
200
|
/** Every {@link LinearPrimaries}, in the model's order. */
|
|
175
201
|
export const LINEAR_PRIMARIES_VALUES = [
|
|
176
202
|
"bt709",
|
|
@@ -208,6 +234,11 @@ export const MISSING_FRAMES_VALUES = [
|
|
|
208
234
|
"hold",
|
|
209
235
|
"blank",
|
|
210
236
|
];
|
|
237
|
+
/** Every {@link PolystarKind}, in the model's order. */
|
|
238
|
+
export const POLYSTAR_KIND_VALUES = [
|
|
239
|
+
"star",
|
|
240
|
+
"polygon",
|
|
241
|
+
];
|
|
211
242
|
/** Every {@link Spread}, in the model's order. */
|
|
212
243
|
export const SPREAD_VALUES = ["pad", "repeat", "reflect"];
|
|
213
244
|
/** Every {@link TextAlign}, in the model's order. */
|
|
@@ -229,3 +260,8 @@ export const TRANSFER_FUNCTION_VALUES = [
|
|
|
229
260
|
"pq",
|
|
230
261
|
"hlg",
|
|
231
262
|
];
|
|
263
|
+
/** Every {@link TrimMode}, in the model's order. */
|
|
264
|
+
export const TRIM_MODE_VALUES = [
|
|
265
|
+
"together",
|
|
266
|
+
"individually",
|
|
267
|
+
];
|
|
@@ -3,6 +3,31 @@
|
|
|
3
3
|
/** The project schema's shape rules, without its documentation. */
|
|
4
4
|
export const PROJECT_SHAPE = {
|
|
5
5
|
$defs: {
|
|
6
|
+
AnimatedPoint: {
|
|
7
|
+
oneOf: [
|
|
8
|
+
{
|
|
9
|
+
additionalProperties: false,
|
|
10
|
+
properties: {
|
|
11
|
+
mode: { const: "constant", type: "string" },
|
|
12
|
+
value: { $ref: "#/$defs/Vec2" },
|
|
13
|
+
},
|
|
14
|
+
required: ["mode", "value"],
|
|
15
|
+
type: "object",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
additionalProperties: false,
|
|
19
|
+
properties: {
|
|
20
|
+
keyframes: {
|
|
21
|
+
items: { $ref: "#/$defs/PointKeyframe" },
|
|
22
|
+
type: "array",
|
|
23
|
+
},
|
|
24
|
+
mode: { const: "keyframes", type: "string" },
|
|
25
|
+
},
|
|
26
|
+
required: ["mode", "keyframes"],
|
|
27
|
+
type: "object",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
6
31
|
Animated_EffectValue: {
|
|
7
32
|
oneOf: [
|
|
8
33
|
{
|
|
@@ -28,6 +53,56 @@ export const PROJECT_SHAPE = {
|
|
|
28
53
|
},
|
|
29
54
|
],
|
|
30
55
|
},
|
|
56
|
+
Animated_Paint: {
|
|
57
|
+
oneOf: [
|
|
58
|
+
{
|
|
59
|
+
additionalProperties: false,
|
|
60
|
+
properties: {
|
|
61
|
+
mode: { const: "constant", type: "string" },
|
|
62
|
+
value: { $ref: "#/$defs/Paint" },
|
|
63
|
+
},
|
|
64
|
+
required: ["mode", "value"],
|
|
65
|
+
type: "object",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
additionalProperties: false,
|
|
69
|
+
properties: {
|
|
70
|
+
keyframes: {
|
|
71
|
+
items: { $ref: "#/$defs/Keyframe_Paint" },
|
|
72
|
+
type: "array",
|
|
73
|
+
},
|
|
74
|
+
mode: { const: "keyframes", type: "string" },
|
|
75
|
+
},
|
|
76
|
+
required: ["mode", "keyframes"],
|
|
77
|
+
type: "object",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
Animated_Path: {
|
|
82
|
+
oneOf: [
|
|
83
|
+
{
|
|
84
|
+
additionalProperties: false,
|
|
85
|
+
properties: {
|
|
86
|
+
mode: { const: "constant", type: "string" },
|
|
87
|
+
value: { $ref: "#/$defs/Path" },
|
|
88
|
+
},
|
|
89
|
+
required: ["mode", "value"],
|
|
90
|
+
type: "object",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
additionalProperties: false,
|
|
94
|
+
properties: {
|
|
95
|
+
keyframes: {
|
|
96
|
+
items: { $ref: "#/$defs/Keyframe_Path" },
|
|
97
|
+
type: "array",
|
|
98
|
+
},
|
|
99
|
+
mode: { const: "keyframes", type: "string" },
|
|
100
|
+
},
|
|
101
|
+
required: ["mode", "keyframes"],
|
|
102
|
+
type: "object",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
31
106
|
Animated_Vec2: {
|
|
32
107
|
oneOf: [
|
|
33
108
|
{
|
|
@@ -352,6 +427,15 @@ export const PROJECT_SHAPE = {
|
|
|
352
427
|
required: ["id", "op"],
|
|
353
428
|
type: "object",
|
|
354
429
|
},
|
|
430
|
+
Dash: {
|
|
431
|
+
additionalProperties: false,
|
|
432
|
+
properties: {
|
|
433
|
+
offset: { $ref: "#/$defs/Animated_float" },
|
|
434
|
+
pattern: { items: { $ref: "#/$defs/Animated_float" }, type: "array" },
|
|
435
|
+
},
|
|
436
|
+
required: ["pattern"],
|
|
437
|
+
type: "object",
|
|
438
|
+
},
|
|
355
439
|
Ducking: {
|
|
356
440
|
additionalProperties: false,
|
|
357
441
|
properties: {
|
|
@@ -512,6 +596,12 @@ export const PROJECT_SHAPE = {
|
|
|
512
596
|
{ const: "equal_power", type: "string" },
|
|
513
597
|
],
|
|
514
598
|
},
|
|
599
|
+
FillRule: {
|
|
600
|
+
oneOf: [
|
|
601
|
+
{ const: "nonzero", type: "string" },
|
|
602
|
+
{ const: "evenodd", type: "string" },
|
|
603
|
+
],
|
|
604
|
+
},
|
|
515
605
|
FrameRate: {
|
|
516
606
|
additionalProperties: false,
|
|
517
607
|
properties: {
|
|
@@ -531,25 +621,6 @@ export const PROJECT_SHAPE = {
|
|
|
531
621
|
required: ["num", "den"],
|
|
532
622
|
type: "object",
|
|
533
623
|
},
|
|
534
|
-
GeneratedShape: {
|
|
535
|
-
oneOf: [
|
|
536
|
-
{
|
|
537
|
-
additionalProperties: false,
|
|
538
|
-
properties: {
|
|
539
|
-
corner_radius: { format: "float", type: "number" },
|
|
540
|
-
type: { const: "rectangle", type: "string" },
|
|
541
|
-
},
|
|
542
|
-
required: ["type"],
|
|
543
|
-
type: "object",
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
additionalProperties: false,
|
|
547
|
-
properties: { type: { const: "ellipse", type: "string" } },
|
|
548
|
-
required: ["type"],
|
|
549
|
-
type: "object",
|
|
550
|
-
},
|
|
551
|
-
],
|
|
552
|
-
},
|
|
553
624
|
Generator: {
|
|
554
625
|
oneOf: [
|
|
555
626
|
{
|
|
@@ -564,15 +635,10 @@ export const PROJECT_SHAPE = {
|
|
|
564
635
|
{
|
|
565
636
|
additionalProperties: false,
|
|
566
637
|
properties: {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
rotation_degrees: { format: "float", type: "number" },
|
|
570
|
-
shape: { $ref: "#/$defs/GeneratedShape" },
|
|
571
|
-
size: { $ref: "#/$defs/Vec2" },
|
|
572
|
-
stroke: { anyOf: [{ $ref: "#/$defs/Stroke" }, { type: "null" }] },
|
|
573
|
-
type: { const: "shape", type: "string" },
|
|
638
|
+
items: { items: { $ref: "#/$defs/ShapeItem" }, type: "array" },
|
|
639
|
+
type: { const: "shapes", type: "string" },
|
|
574
640
|
},
|
|
575
|
-
required: ["type", "
|
|
641
|
+
required: ["type", "items"],
|
|
576
642
|
type: "object",
|
|
577
643
|
},
|
|
578
644
|
{
|
|
@@ -640,6 +706,26 @@ export const PROJECT_SHAPE = {
|
|
|
640
706
|
required: ["time", "value", "interpolation"],
|
|
641
707
|
type: "object",
|
|
642
708
|
},
|
|
709
|
+
Keyframe_Paint: {
|
|
710
|
+
additionalProperties: false,
|
|
711
|
+
properties: {
|
|
712
|
+
interpolation: { $ref: "#/$defs/Interpolation" },
|
|
713
|
+
time: { $ref: "#/$defs/MediaTime" },
|
|
714
|
+
value: { $ref: "#/$defs/Paint" },
|
|
715
|
+
},
|
|
716
|
+
required: ["time", "value", "interpolation"],
|
|
717
|
+
type: "object",
|
|
718
|
+
},
|
|
719
|
+
Keyframe_Path: {
|
|
720
|
+
additionalProperties: false,
|
|
721
|
+
properties: {
|
|
722
|
+
interpolation: { $ref: "#/$defs/Interpolation" },
|
|
723
|
+
time: { $ref: "#/$defs/MediaTime" },
|
|
724
|
+
value: { $ref: "#/$defs/Path" },
|
|
725
|
+
},
|
|
726
|
+
required: ["time", "value", "interpolation"],
|
|
727
|
+
type: "object",
|
|
728
|
+
},
|
|
643
729
|
Keyframe_Vec2: {
|
|
644
730
|
additionalProperties: false,
|
|
645
731
|
properties: {
|
|
@@ -669,6 +755,20 @@ export const PROJECT_SHAPE = {
|
|
|
669
755
|
required: ["threshold", "release_ms"],
|
|
670
756
|
type: "object",
|
|
671
757
|
},
|
|
758
|
+
LineCap: {
|
|
759
|
+
oneOf: [
|
|
760
|
+
{ const: "butt", type: "string" },
|
|
761
|
+
{ const: "round", type: "string" },
|
|
762
|
+
{ const: "square", type: "string" },
|
|
763
|
+
],
|
|
764
|
+
},
|
|
765
|
+
LineJoin: {
|
|
766
|
+
oneOf: [
|
|
767
|
+
{ const: "miter", type: "string" },
|
|
768
|
+
{ const: "round", type: "string" },
|
|
769
|
+
{ const: "bevel", type: "string" },
|
|
770
|
+
],
|
|
771
|
+
},
|
|
672
772
|
LinearPrimaries: {
|
|
673
773
|
oneOf: [
|
|
674
774
|
{ const: "bt709", type: "string" },
|
|
@@ -691,25 +791,6 @@ export const PROJECT_SHAPE = {
|
|
|
691
791
|
{ const: "intersect", type: "string" },
|
|
692
792
|
],
|
|
693
793
|
},
|
|
694
|
-
MaskShape: {
|
|
695
|
-
oneOf: [
|
|
696
|
-
{
|
|
697
|
-
additionalProperties: false,
|
|
698
|
-
properties: {
|
|
699
|
-
corner_radius: { $ref: "#/$defs/Animated_float" },
|
|
700
|
-
type: { const: "rectangle", type: "string" },
|
|
701
|
-
},
|
|
702
|
-
required: ["type"],
|
|
703
|
-
type: "object",
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
additionalProperties: false,
|
|
707
|
-
properties: { type: { const: "ellipse", type: "string" } },
|
|
708
|
-
required: ["type"],
|
|
709
|
-
type: "object",
|
|
710
|
-
},
|
|
711
|
-
],
|
|
712
|
-
},
|
|
713
794
|
MasterAudio: {
|
|
714
795
|
additionalProperties: false,
|
|
715
796
|
properties: {
|
|
@@ -842,6 +923,12 @@ export const PROJECT_SHAPE = {
|
|
|
842
923
|
properties: {
|
|
843
924
|
effect: { $ref: "#/$defs/ClipEffect" },
|
|
844
925
|
input: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
|
|
926
|
+
inputs: {
|
|
927
|
+
additionalProperties: {
|
|
928
|
+
anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
|
|
929
|
+
},
|
|
930
|
+
type: "object",
|
|
931
|
+
},
|
|
845
932
|
type: { const: "effect", type: "string" },
|
|
846
933
|
},
|
|
847
934
|
required: ["type", "effect"],
|
|
@@ -980,6 +1067,42 @@ export const PROJECT_SHAPE = {
|
|
|
980
1067
|
},
|
|
981
1068
|
],
|
|
982
1069
|
},
|
|
1070
|
+
Path: {
|
|
1071
|
+
additionalProperties: false,
|
|
1072
|
+
properties: {
|
|
1073
|
+
subpaths: { items: { $ref: "#/$defs/Subpath" }, type: "array" },
|
|
1074
|
+
},
|
|
1075
|
+
required: ["subpaths"],
|
|
1076
|
+
type: "object",
|
|
1077
|
+
},
|
|
1078
|
+
PathVertex: {
|
|
1079
|
+
additionalProperties: false,
|
|
1080
|
+
properties: {
|
|
1081
|
+
in_tangent: { $ref: "#/$defs/Vec2" },
|
|
1082
|
+
out_tangent: { $ref: "#/$defs/Vec2" },
|
|
1083
|
+
point: { $ref: "#/$defs/Vec2" },
|
|
1084
|
+
},
|
|
1085
|
+
required: ["point"],
|
|
1086
|
+
type: "object",
|
|
1087
|
+
},
|
|
1088
|
+
PointKeyframe: {
|
|
1089
|
+
additionalProperties: false,
|
|
1090
|
+
properties: {
|
|
1091
|
+
in_tangent: { $ref: "#/$defs/Vec2" },
|
|
1092
|
+
interpolation: { $ref: "#/$defs/Interpolation" },
|
|
1093
|
+
out_tangent: { $ref: "#/$defs/Vec2" },
|
|
1094
|
+
time: { $ref: "#/$defs/MediaTime" },
|
|
1095
|
+
value: { $ref: "#/$defs/Vec2" },
|
|
1096
|
+
},
|
|
1097
|
+
required: ["time", "value", "interpolation"],
|
|
1098
|
+
type: "object",
|
|
1099
|
+
},
|
|
1100
|
+
PolystarKind: {
|
|
1101
|
+
oneOf: [
|
|
1102
|
+
{ const: "star", type: "string" },
|
|
1103
|
+
{ const: "polygon", type: "string" },
|
|
1104
|
+
],
|
|
1105
|
+
},
|
|
983
1106
|
ProjectId: { minLength: 1, type: "string" },
|
|
984
1107
|
ProjectSettings: {
|
|
985
1108
|
additionalProperties: false,
|
|
@@ -1082,18 +1205,179 @@ export const PROJECT_SHAPE = {
|
|
|
1082
1205
|
required: ["red", "green", "blue", "alpha"],
|
|
1083
1206
|
type: "object",
|
|
1084
1207
|
},
|
|
1208
|
+
ShapeGeometry: {
|
|
1209
|
+
oneOf: [
|
|
1210
|
+
{
|
|
1211
|
+
additionalProperties: false,
|
|
1212
|
+
properties: {
|
|
1213
|
+
center: { $ref: "#/$defs/AnimatedPoint" },
|
|
1214
|
+
corner_radius: { $ref: "#/$defs/Animated_float" },
|
|
1215
|
+
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1216
|
+
size: { $ref: "#/$defs/Animated_Vec2" },
|
|
1217
|
+
type: { const: "rectangle", type: "string" },
|
|
1218
|
+
},
|
|
1219
|
+
required: ["type", "center", "size"],
|
|
1220
|
+
type: "object",
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
additionalProperties: false,
|
|
1224
|
+
properties: {
|
|
1225
|
+
center: { $ref: "#/$defs/AnimatedPoint" },
|
|
1226
|
+
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1227
|
+
size: { $ref: "#/$defs/Animated_Vec2" },
|
|
1228
|
+
type: { const: "ellipse", type: "string" },
|
|
1229
|
+
},
|
|
1230
|
+
required: ["type", "center", "size"],
|
|
1231
|
+
type: "object",
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
additionalProperties: false,
|
|
1235
|
+
properties: {
|
|
1236
|
+
center: { $ref: "#/$defs/AnimatedPoint" },
|
|
1237
|
+
inner_radius: { $ref: "#/$defs/Animated_float" },
|
|
1238
|
+
inner_roundness: { $ref: "#/$defs/Animated_float" },
|
|
1239
|
+
kind: { $ref: "#/$defs/PolystarKind" },
|
|
1240
|
+
outer_radius: { $ref: "#/$defs/Animated_float" },
|
|
1241
|
+
outer_roundness: { $ref: "#/$defs/Animated_float" },
|
|
1242
|
+
points: { $ref: "#/$defs/Animated_float" },
|
|
1243
|
+
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1244
|
+
type: { const: "polystar", type: "string" },
|
|
1245
|
+
},
|
|
1246
|
+
required: ["type", "kind", "center", "points", "outer_radius"],
|
|
1247
|
+
type: "object",
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
additionalProperties: false,
|
|
1251
|
+
properties: {
|
|
1252
|
+
path: { $ref: "#/$defs/Animated_Path" },
|
|
1253
|
+
type: { const: "path", type: "string" },
|
|
1254
|
+
},
|
|
1255
|
+
required: ["type", "path"],
|
|
1256
|
+
type: "object",
|
|
1257
|
+
},
|
|
1258
|
+
],
|
|
1259
|
+
},
|
|
1260
|
+
ShapeItem: {
|
|
1261
|
+
oneOf: [
|
|
1262
|
+
{
|
|
1263
|
+
additionalProperties: false,
|
|
1264
|
+
properties: {
|
|
1265
|
+
items: { items: { $ref: "#/$defs/ShapeItem" }, type: "array" },
|
|
1266
|
+
transform: { $ref: "#/$defs/ShapeTransform" },
|
|
1267
|
+
type: { const: "group", type: "string" },
|
|
1268
|
+
},
|
|
1269
|
+
required: ["type", "items"],
|
|
1270
|
+
type: "object",
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
additionalProperties: false,
|
|
1274
|
+
properties: {
|
|
1275
|
+
center: { $ref: "#/$defs/AnimatedPoint" },
|
|
1276
|
+
corner_radius: { $ref: "#/$defs/Animated_float" },
|
|
1277
|
+
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1278
|
+
size: { $ref: "#/$defs/Animated_Vec2" },
|
|
1279
|
+
type: { const: "rectangle", type: "string" },
|
|
1280
|
+
},
|
|
1281
|
+
required: ["type", "center", "size"],
|
|
1282
|
+
type: "object",
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
additionalProperties: false,
|
|
1286
|
+
properties: {
|
|
1287
|
+
center: { $ref: "#/$defs/AnimatedPoint" },
|
|
1288
|
+
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1289
|
+
size: { $ref: "#/$defs/Animated_Vec2" },
|
|
1290
|
+
type: { const: "ellipse", type: "string" },
|
|
1291
|
+
},
|
|
1292
|
+
required: ["type", "center", "size"],
|
|
1293
|
+
type: "object",
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
additionalProperties: false,
|
|
1297
|
+
properties: {
|
|
1298
|
+
center: { $ref: "#/$defs/AnimatedPoint" },
|
|
1299
|
+
inner_radius: { $ref: "#/$defs/Animated_float" },
|
|
1300
|
+
inner_roundness: { $ref: "#/$defs/Animated_float" },
|
|
1301
|
+
kind: { $ref: "#/$defs/PolystarKind" },
|
|
1302
|
+
outer_radius: { $ref: "#/$defs/Animated_float" },
|
|
1303
|
+
outer_roundness: { $ref: "#/$defs/Animated_float" },
|
|
1304
|
+
points: { $ref: "#/$defs/Animated_float" },
|
|
1305
|
+
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1306
|
+
type: { const: "polystar", type: "string" },
|
|
1307
|
+
},
|
|
1308
|
+
required: ["type", "kind", "center", "points", "outer_radius"],
|
|
1309
|
+
type: "object",
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
additionalProperties: false,
|
|
1313
|
+
properties: {
|
|
1314
|
+
path: { $ref: "#/$defs/Animated_Path" },
|
|
1315
|
+
type: { const: "path", type: "string" },
|
|
1316
|
+
},
|
|
1317
|
+
required: ["type", "path"],
|
|
1318
|
+
type: "object",
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
additionalProperties: false,
|
|
1322
|
+
properties: {
|
|
1323
|
+
opacity: { $ref: "#/$defs/Animated_float" },
|
|
1324
|
+
paint: { $ref: "#/$defs/Animated_Paint" },
|
|
1325
|
+
rule: { $ref: "#/$defs/FillRule" },
|
|
1326
|
+
type: { const: "fill", type: "string" },
|
|
1327
|
+
},
|
|
1328
|
+
required: ["type", "paint"],
|
|
1329
|
+
type: "object",
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
additionalProperties: false,
|
|
1333
|
+
properties: {
|
|
1334
|
+
cap: { $ref: "#/$defs/LineCap" },
|
|
1335
|
+
dash: { anyOf: [{ $ref: "#/$defs/Dash" }, { type: "null" }] },
|
|
1336
|
+
join: { $ref: "#/$defs/LineJoin" },
|
|
1337
|
+
miter_limit: { format: "float", type: "number" },
|
|
1338
|
+
opacity: { $ref: "#/$defs/Animated_float" },
|
|
1339
|
+
paint: { $ref: "#/$defs/Animated_Paint" },
|
|
1340
|
+
type: { const: "stroke", type: "string" },
|
|
1341
|
+
width: { $ref: "#/$defs/Animated_float" },
|
|
1342
|
+
},
|
|
1343
|
+
required: ["type", "paint", "width"],
|
|
1344
|
+
type: "object",
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
additionalProperties: false,
|
|
1348
|
+
properties: {
|
|
1349
|
+
end: { $ref: "#/$defs/Animated_float" },
|
|
1350
|
+
mode: { $ref: "#/$defs/TrimMode" },
|
|
1351
|
+
offset: { $ref: "#/$defs/Animated_float" },
|
|
1352
|
+
start: { $ref: "#/$defs/Animated_float" },
|
|
1353
|
+
type: { const: "trim", type: "string" },
|
|
1354
|
+
},
|
|
1355
|
+
required: ["type", "start", "end"],
|
|
1356
|
+
type: "object",
|
|
1357
|
+
},
|
|
1358
|
+
],
|
|
1359
|
+
},
|
|
1085
1360
|
ShapeMask: {
|
|
1086
1361
|
additionalProperties: false,
|
|
1087
1362
|
properties: {
|
|
1088
|
-
center: { $ref: "#/$defs/Animated_Vec2" },
|
|
1089
1363
|
feather: { $ref: "#/$defs/Animated_float" },
|
|
1364
|
+
fill_rule: { $ref: "#/$defs/FillRule" },
|
|
1090
1365
|
invert: { type: "boolean" },
|
|
1091
1366
|
mode: { $ref: "#/$defs/MaskMode" },
|
|
1367
|
+
shape: { $ref: "#/$defs/ShapeGeometry" },
|
|
1368
|
+
},
|
|
1369
|
+
required: ["shape"],
|
|
1370
|
+
type: "object",
|
|
1371
|
+
},
|
|
1372
|
+
ShapeTransform: {
|
|
1373
|
+
additionalProperties: false,
|
|
1374
|
+
properties: {
|
|
1375
|
+
anchor: { $ref: "#/$defs/Animated_Vec2" },
|
|
1376
|
+
opacity: { $ref: "#/$defs/Animated_float" },
|
|
1377
|
+
position: { $ref: "#/$defs/AnimatedPoint" },
|
|
1092
1378
|
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1093
|
-
|
|
1094
|
-
size: { $ref: "#/$defs/Animated_Vec2" },
|
|
1379
|
+
scale: { $ref: "#/$defs/Animated_Vec2" },
|
|
1095
1380
|
},
|
|
1096
|
-
required: ["shape", "center", "size"],
|
|
1097
1381
|
type: "object",
|
|
1098
1382
|
},
|
|
1099
1383
|
SourceId: { minLength: 1, type: "string" },
|
|
@@ -1116,13 +1400,13 @@ export const PROJECT_SHAPE = {
|
|
|
1116
1400
|
},
|
|
1117
1401
|
type: "object",
|
|
1118
1402
|
},
|
|
1119
|
-
|
|
1403
|
+
Subpath: {
|
|
1120
1404
|
additionalProperties: false,
|
|
1121
1405
|
properties: {
|
|
1122
|
-
|
|
1123
|
-
|
|
1406
|
+
closed: { type: "boolean" },
|
|
1407
|
+
vertices: { items: { $ref: "#/$defs/PathVertex" }, type: "array" },
|
|
1124
1408
|
},
|
|
1125
|
-
required: ["
|
|
1409
|
+
required: ["vertices"],
|
|
1126
1410
|
type: "object",
|
|
1127
1411
|
},
|
|
1128
1412
|
TextAlign: {
|
|
@@ -1283,6 +1567,12 @@ export const PROJECT_SHAPE = {
|
|
|
1283
1567
|
{ const: "hlg", type: "string" },
|
|
1284
1568
|
],
|
|
1285
1569
|
},
|
|
1570
|
+
TrimMode: {
|
|
1571
|
+
oneOf: [
|
|
1572
|
+
{ const: "together", type: "string" },
|
|
1573
|
+
{ const: "individually", type: "string" },
|
|
1574
|
+
],
|
|
1575
|
+
},
|
|
1286
1576
|
Vec2: {
|
|
1287
1577
|
additionalProperties: false,
|
|
1288
1578
|
properties: {
|
|
@@ -1319,7 +1609,7 @@ export const PROJECT_SHAPE = {
|
|
|
1319
1609
|
properties: {
|
|
1320
1610
|
anchor: { $ref: "#/$defs/Vec2" },
|
|
1321
1611
|
opacity: { $ref: "#/$defs/Animated_float" },
|
|
1322
|
-
position: { $ref: "#/$defs/
|
|
1612
|
+
position: { $ref: "#/$defs/AnimatedPoint" },
|
|
1323
1613
|
rotation_degrees: { $ref: "#/$defs/Animated_float" },
|
|
1324
1614
|
scale: { $ref: "#/$defs/Animated_Vec2" },
|
|
1325
1615
|
},
|