alpha2 0.4.6 → 0.5.1
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 +5 -4
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/abort.d.ts +12 -0
- package/dist/abort.js +48 -0
- package/dist/active-clock.d.ts +35 -0
- package/dist/active-clock.js +99 -0
- package/dist/assets.d.ts +51 -22
- package/dist/assets.js +8 -12
- package/dist/audio-layout.d.ts +52 -74
- package/dist/audio-layout.js +114 -148
- package/dist/audio-timeline.d.ts +89 -117
- package/dist/audio-timeline.js +102 -118
- package/dist/audio-worker.d.ts +12 -21
- package/dist/audio-worker.js +8 -13
- package/dist/audio-worklet-processor.js +45 -58
- package/dist/audio-worklet.d.ts +45 -76
- package/dist/audio-worklet.js +44 -79
- package/dist/audio.d.ts +15 -23
- package/dist/audio.js +9 -13
- package/dist/builder.d.ts +45 -63
- package/dist/builder.js +49 -45
- package/dist/capabilities.d.ts +99 -16
- package/dist/capabilities.js +2 -2
- package/dist/captions.d.ts +45 -22
- package/dist/captions.js +60 -15
- package/dist/chroma-siting.d.ts +24 -41
- package/dist/chroma-siting.js +38 -71
- package/dist/containers.d.ts +41 -30
- package/dist/containers.js +59 -27
- package/dist/decoder-fallback.d.ts +13 -0
- package/dist/decoder-fallback.js +38 -0
- package/dist/decoder-order.d.ts +24 -39
- package/dist/decoder-order.js +28 -42
- package/dist/edit.d.ts +77 -154
- package/dist/edit.js +98 -180
- package/dist/effects.d.ts +125 -176
- package/dist/effects.js +7 -9
- package/dist/export-destination.d.ts +25 -41
- package/dist/export-destination.js +20 -32
- package/dist/export-failure.d.ts +34 -59
- package/dist/export-failure.js +54 -48
- package/dist/export-metrics.d.ts +116 -0
- package/dist/export-metrics.js +74 -0
- package/dist/export-retry.d.ts +46 -29
- package/dist/export-retry.js +86 -51
- package/dist/exporter.d.ts +67 -116
- package/dist/exporter.js +133 -133
- package/dist/extensions.d.ts +69 -115
- package/dist/extensions.js +55 -82
- package/dist/frame-intake.d.ts +92 -0
- package/dist/frame-intake.js +114 -0
- package/dist/frame-supply.d.ts +96 -162
- package/dist/frame-supply.js +181 -171
- package/dist/frames.d.ts +23 -0
- package/dist/frames.js +34 -0
- package/dist/generated/project-schema.d.ts +712 -485
- package/dist/generated/project-schema.js +55 -2
- package/dist/generated/project-shape.js +276 -16
- package/dist/geometry.d.ts +28 -34
- package/dist/geometry.js +18 -23
- package/dist/gpu-recovery.d.ts +92 -0
- package/dist/gpu-recovery.js +135 -0
- package/dist/hdr-frames.d.ts +82 -67
- package/dist/hdr-frames.js +112 -49
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/json-text.d.ts +13 -23
- package/dist/json-text.js +10 -20
- package/dist/layout-values.d.ts +14 -22
- package/dist/layout-values.js +18 -21
- package/dist/layout.d.ts +48 -63
- package/dist/layout.js +37 -37
- package/dist/loudness.d.ts +27 -32
- package/dist/loudness.js +19 -23
- package/dist/media.d.ts +85 -237
- package/dist/media.js +133 -287
- package/dist/mediabunny.d.ts +178 -246
- package/dist/mediabunny.js +781 -583
- package/dist/paint.d.ts +23 -0
- package/dist/paint.js +37 -0
- package/dist/physical-frames.d.ts +5 -17
- package/dist/physical-frames.js +4 -11
- package/dist/player.d.ts +56 -47
- package/dist/player.js +155 -40
- package/dist/presented-frames.d.ts +2 -7
- package/dist/presented-frames.js +3 -8
- package/dist/project.d.ts +74 -118
- package/dist/project.js +384 -445
- package/dist/rate-control.d.ts +9 -23
- package/dist/rate-control.js +7 -18
- package/dist/renderer-choice.d.ts +41 -0
- package/dist/renderer-choice.js +82 -0
- package/dist/repacked-bytes.d.ts +0 -2
- package/dist/repacked-bytes.js +2 -5
- package/dist/robustness.d.ts +25 -37
- package/dist/robustness.js +71 -54
- package/dist/sha256.d.ts +5 -13
- package/dist/sha256.js +9 -24
- package/dist/text.d.ts +97 -71
- package/dist/text.js +33 -70
- package/dist/video-frames.d.ts +7 -25
- package/dist/video-frames.js +12 -29
- package/dist/waveform.d.ts +5 -11
- package/dist/waveform.js +4 -9
- package/dist/worker-error.d.ts +5 -20
- package/dist/worker-error.js +8 -25
- package/dist/worker.d.ts +82 -95
- package/dist/worker.js +235 -143
- package/package.json +26 -2
- package/wasm/alpha2_audio_worklet.wasm +0 -0
- package/wasm/alpha2_extensions.d.ts +26 -47
- package/wasm/alpha2_extensions.js +26 -47
- package/wasm/alpha2_extensions_bg.wasm +0 -0
- package/wasm/alpha2_wasm.d.ts +501 -587
- package/wasm/alpha2_wasm.js +661 -616
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +22 -12
- package/wasm/rust-crate-licenses.md +2 -2
- package/wasm/snippets/{alpha2-wasm-c62e60c964e88a52 → alpha2-wasm-070d94113471ef0a}/inline1.js +1 -0
- package/wasm/snippets/alpha2-wasm-070d94113471ef0a/inline2.js +82 -0
- package/wasm/snippets/alpha2-wasm-c62e60c964e88a52/inline2.js +0 -52
- /package/wasm/snippets/{alpha2-wasm-c62e60c964e88a52 → alpha2-wasm-070d94113471ef0a}/inline0.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-c62e60c964e88a52 → alpha2-wasm-070d94113471ef0a}/inline3.js +0 -0
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
export const AUDIO_EFFECT_STATE_MARGIN_MS = 1100;
|
|
6
6
|
/** Mirrors `alpha2_model::CURRENT_SCHEMA_VERSION`. */
|
|
7
7
|
export const CURRENT_SCHEMA_VERSION = 1;
|
|
8
|
+
/** Mirrors `alpha2_model::MAX_ANIMATOR_SCALE`. */
|
|
9
|
+
export const MAX_ANIMATOR_SCALE = 10;
|
|
8
10
|
/** Mirrors `alpha2_model::MAX_AUDIO_DELAY_MS`. */
|
|
9
11
|
export const MAX_AUDIO_DELAY_MS = 120000;
|
|
10
12
|
/** Mirrors `alpha2_model::MAX_AUDIO_EFFECTS`. */
|
|
@@ -19,8 +21,14 @@ export const MAX_CAPTION_FILE_BYTES = 67108864;
|
|
|
19
21
|
export const MAX_CAPTION_FILE_CUES = 65536;
|
|
20
22
|
/** Mirrors `alpha2_model::MAX_CAPTION_FONT_SIZE`. */
|
|
21
23
|
export const MAX_CAPTION_FONT_SIZE = 0.25;
|
|
24
|
+
/** Mirrors `alpha2_model::MAX_CAPTION_NAME_BYTES`. */
|
|
25
|
+
export const MAX_CAPTION_NAME_BYTES = 64;
|
|
26
|
+
/** Mirrors `alpha2_model::MAX_CAPTION_STYLES`. */
|
|
27
|
+
export const MAX_CAPTION_STYLES = 32;
|
|
22
28
|
/** Mirrors `alpha2_model::MAX_CHAIN_EFFECTS`. */
|
|
23
29
|
export const MAX_CHAIN_EFFECTS = 16;
|
|
30
|
+
/** Mirrors `alpha2_model::MAX_CLASS_NAME_BYTES`. */
|
|
31
|
+
export const MAX_CLASS_NAME_BYTES = 64;
|
|
24
32
|
/** Mirrors `alpha2_model::MAX_CLIPS`. */
|
|
25
33
|
export const MAX_CLIPS = 100000;
|
|
26
34
|
/** Mirrors `alpha2_model::MAX_CLIPS_PER_TRACK`. */
|
|
@@ -99,6 +107,12 @@ export const MAX_POLYSTAR_POINTS = 100;
|
|
|
99
107
|
export const MAX_PROJECT_JSON_BYTES = 67108864;
|
|
100
108
|
/** Mirrors `alpha2_model::MAX_PROVIDER_DOCUMENT_BYTES`. */
|
|
101
109
|
export const MAX_PROVIDER_DOCUMENT_BYTES = 268435456;
|
|
110
|
+
/** Mirrors `alpha2_model::MAX_RANGE_INDEX`. */
|
|
111
|
+
export const MAX_RANGE_INDEX = 4096;
|
|
112
|
+
/** Mirrors `alpha2_model::MAX_RANGE_PERCENT`. */
|
|
113
|
+
export const MAX_RANGE_PERCENT = 200;
|
|
114
|
+
/** Mirrors `alpha2_model::MAX_RUN_CLASSES`. */
|
|
115
|
+
export const MAX_RUN_CLASSES = 8;
|
|
102
116
|
/** Mirrors `alpha2_model::MAX_SAMPLE_RATE`. */
|
|
103
117
|
export const MAX_SAMPLE_RATE = 96000;
|
|
104
118
|
/** Mirrors `alpha2_model::MAX_SEQUENCE_FRAMES`. */
|
|
@@ -109,14 +123,26 @@ export const MAX_SHAPE_DEPTH = 32;
|
|
|
109
123
|
export const MAX_SHAPE_ITEMS = 1024;
|
|
110
124
|
/** Mirrors `alpha2_model::MAX_SVG_DOCUMENT_BYTES`. */
|
|
111
125
|
export const MAX_SVG_DOCUMENT_BYTES = 33554432;
|
|
126
|
+
/** Mirrors `alpha2_model::MAX_TEXT_ANIMATORS`. */
|
|
127
|
+
export const MAX_TEXT_ANIMATORS = 8;
|
|
112
128
|
/** Mirrors `alpha2_model::MAX_TEXT_CONTENT_BYTES`. */
|
|
113
129
|
export const MAX_TEXT_CONTENT_BYTES = 4096;
|
|
114
130
|
/** Mirrors `alpha2_model::MAX_TEXT_GENERATOR_FONT_SIZE`. */
|
|
115
131
|
export const MAX_TEXT_GENERATOR_FONT_SIZE = 1;
|
|
116
|
-
/** Mirrors `alpha2_model::MAX_TEXT_OUTLINE_WIDTH`. */
|
|
117
|
-
export const MAX_TEXT_OUTLINE_WIDTH = 0.5;
|
|
118
132
|
/** Mirrors `alpha2_model::MAX_TEXT_PADDING`. */
|
|
119
133
|
export const MAX_TEXT_PADDING = 2;
|
|
134
|
+
/** Mirrors `alpha2_model::MAX_TEXT_RUNS`. */
|
|
135
|
+
export const MAX_TEXT_RUNS = 512;
|
|
136
|
+
/** Mirrors `alpha2_model::MAX_TEXT_SHADOWS`. */
|
|
137
|
+
export const MAX_TEXT_SHADOWS = 4;
|
|
138
|
+
/** Mirrors `alpha2_model::MAX_TEXT_SHADOW_BLUR`. */
|
|
139
|
+
export const MAX_TEXT_SHADOW_BLUR = 1;
|
|
140
|
+
/** Mirrors `alpha2_model::MAX_TEXT_SHADOW_OFFSET`. */
|
|
141
|
+
export const MAX_TEXT_SHADOW_OFFSET = 1;
|
|
142
|
+
/** Mirrors `alpha2_model::MAX_TEXT_STROKES`. */
|
|
143
|
+
export const MAX_TEXT_STROKES = 4;
|
|
144
|
+
/** Mirrors `alpha2_model::MAX_TEXT_STROKE_EXTENT`. */
|
|
145
|
+
export const MAX_TEXT_STROKE_EXTENT = 0.5;
|
|
120
146
|
/** Mirrors `alpha2_model::MAX_TRACKS`. */
|
|
121
147
|
export const MAX_TRACKS = 256;
|
|
122
148
|
/** Mirrors `alpha2_model::MAX_TRANSITIONS_PER_TRACK`. */
|
|
@@ -137,6 +163,8 @@ export const MIN_LEVEL_DB = -96;
|
|
|
137
163
|
export const MIN_LINE_HEIGHT = 0.5;
|
|
138
164
|
/** Mirrors `alpha2_model::MIN_POLYSTAR_POINTS`. */
|
|
139
165
|
export const MIN_POLYSTAR_POINTS = 3;
|
|
166
|
+
/** Mirrors `alpha2_model::MIN_RANGE_PERCENT`. */
|
|
167
|
+
export const MIN_RANGE_PERCENT = -100;
|
|
140
168
|
/** Mirrors `alpha2_model::MIN_SAMPLE_RATE`. */
|
|
141
169
|
export const MIN_SAMPLE_RATE = 8000;
|
|
142
170
|
/** Mirrors `alpha2_model::REVERB_DELAY_MS`. */
|
|
@@ -189,6 +217,7 @@ export const CLIP_BLEND_MODE_VALUES = [
|
|
|
189
217
|
"saturation",
|
|
190
218
|
"color",
|
|
191
219
|
"luminosity",
|
|
220
|
+
"plus_lighter",
|
|
192
221
|
];
|
|
193
222
|
/** Every {@link ColorMatrix}, in the model's order. */
|
|
194
223
|
export const COLOR_MATRIX_VALUES = [
|
|
@@ -307,6 +336,23 @@ export const POLYSTAR_KIND_VALUES = [
|
|
|
307
336
|
];
|
|
308
337
|
/** Every {@link Position}, in the model's order. */
|
|
309
338
|
export const POSITION_VALUES = ["relative", "absolute"];
|
|
339
|
+
/** Every {@link RangeShape}, in the model's order. */
|
|
340
|
+
export const RANGE_SHAPE_VALUES = [
|
|
341
|
+
"square",
|
|
342
|
+
"ramp_up",
|
|
343
|
+
"ramp_down",
|
|
344
|
+
"triangle",
|
|
345
|
+
"round",
|
|
346
|
+
"smooth",
|
|
347
|
+
];
|
|
348
|
+
/** Every {@link RangeUnits}, in the model's order. */
|
|
349
|
+
export const RANGE_UNITS_VALUES = ["percent", "index"];
|
|
350
|
+
/** Every {@link RunState}, in the model's order. */
|
|
351
|
+
export const RUN_STATE_VALUES = [
|
|
352
|
+
"upcoming",
|
|
353
|
+
"active",
|
|
354
|
+
"spoken",
|
|
355
|
+
];
|
|
310
356
|
/** Every {@link Spread}, in the model's order. */
|
|
311
357
|
export const SPREAD_VALUES = ["pad", "repeat", "reflect"];
|
|
312
358
|
/** Every {@link TextAlign}, in the model's order. */
|
|
@@ -315,6 +361,13 @@ export const TEXT_ALIGN_VALUES = [
|
|
|
315
361
|
"center",
|
|
316
362
|
"end",
|
|
317
363
|
];
|
|
364
|
+
/** Every {@link TextUnit}, in the model's order. */
|
|
365
|
+
export const TEXT_UNIT_VALUES = [
|
|
366
|
+
"characters",
|
|
367
|
+
"characters_excluding_spaces",
|
|
368
|
+
"words",
|
|
369
|
+
"lines",
|
|
370
|
+
];
|
|
318
371
|
/** Every {@link TrackKind}, in the model's order. */
|
|
319
372
|
export const TRACK_KIND_VALUES = [
|
|
320
373
|
"video",
|
|
@@ -222,6 +222,31 @@ export const PROJECT_SHAPE = {
|
|
|
222
222
|
},
|
|
223
223
|
],
|
|
224
224
|
},
|
|
225
|
+
Animated_Rgba: {
|
|
226
|
+
oneOf: [
|
|
227
|
+
{
|
|
228
|
+
additionalProperties: false,
|
|
229
|
+
properties: {
|
|
230
|
+
mode: { const: "constant", type: "string" },
|
|
231
|
+
value: { $ref: "#/$defs/Rgba" },
|
|
232
|
+
},
|
|
233
|
+
required: ["mode", "value"],
|
|
234
|
+
type: "object",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
additionalProperties: false,
|
|
238
|
+
properties: {
|
|
239
|
+
keyframes: {
|
|
240
|
+
items: { $ref: "#/$defs/Keyframe_Rgba" },
|
|
241
|
+
type: "array",
|
|
242
|
+
},
|
|
243
|
+
mode: { const: "keyframes", type: "string" },
|
|
244
|
+
},
|
|
245
|
+
required: ["mode", "keyframes"],
|
|
246
|
+
type: "object",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
225
250
|
Animated_Vec2: {
|
|
226
251
|
oneOf: [
|
|
227
252
|
{
|
|
@@ -343,6 +368,15 @@ export const PROJECT_SHAPE = {
|
|
|
343
368
|
AudioProperties: {
|
|
344
369
|
additionalProperties: false,
|
|
345
370
|
properties: {
|
|
371
|
+
channels: {
|
|
372
|
+
items: {
|
|
373
|
+
format: "uint32",
|
|
374
|
+
maximum: 4294967295,
|
|
375
|
+
minimum: 0,
|
|
376
|
+
type: "integer",
|
|
377
|
+
},
|
|
378
|
+
type: ["array", "null"],
|
|
379
|
+
},
|
|
346
380
|
effects: {
|
|
347
381
|
default: [],
|
|
348
382
|
items: { $ref: "#/$defs/AudioEffect" },
|
|
@@ -360,6 +394,13 @@ export const PROJECT_SHAPE = {
|
|
|
360
394
|
$ref: "#/$defs/Animated_float",
|
|
361
395
|
default: { mode: "constant", value: 0 },
|
|
362
396
|
},
|
|
397
|
+
preserve_pitch: { type: "boolean" },
|
|
398
|
+
stream: {
|
|
399
|
+
format: "uint32",
|
|
400
|
+
maximum: 4294967295,
|
|
401
|
+
minimum: 0,
|
|
402
|
+
type: ["integer", "null"],
|
|
403
|
+
},
|
|
363
404
|
},
|
|
364
405
|
type: "object",
|
|
365
406
|
},
|
|
@@ -398,7 +439,9 @@ export const PROJECT_SHAPE = {
|
|
|
398
439
|
CaptionCue: {
|
|
399
440
|
additionalProperties: false,
|
|
400
441
|
properties: {
|
|
401
|
-
|
|
442
|
+
speaker: { type: ["string", "null"] },
|
|
443
|
+
style: { type: ["string", "null"] },
|
|
444
|
+
text: { $ref: "#/$defs/TextContent" },
|
|
402
445
|
timeline_range: { $ref: "#/$defs/TimeRange" },
|
|
403
446
|
},
|
|
404
447
|
required: ["timeline_range", "text"],
|
|
@@ -414,16 +457,22 @@ export const PROJECT_SHAPE = {
|
|
|
414
457
|
align: "center",
|
|
415
458
|
anchor: { x: 0.5, y: 1 },
|
|
416
459
|
background: null,
|
|
417
|
-
|
|
460
|
+
fill: {
|
|
461
|
+
color: { alpha: 1, blue: 1, green: 1, red: 1 },
|
|
462
|
+
type: "solid",
|
|
463
|
+
},
|
|
418
464
|
font_size: 0.05,
|
|
419
465
|
font_weight: 400,
|
|
420
466
|
letter_spacing: 0,
|
|
421
467
|
line_height: 1.2,
|
|
422
468
|
max_width: 0.9,
|
|
423
|
-
outline: null,
|
|
424
469
|
position: { x: 0.5, y: 0.92 },
|
|
425
470
|
},
|
|
426
471
|
},
|
|
472
|
+
styles: {
|
|
473
|
+
additionalProperties: { $ref: "#/$defs/TextStylePatch" },
|
|
474
|
+
type: "object",
|
|
475
|
+
},
|
|
427
476
|
},
|
|
428
477
|
required: ["cues"],
|
|
429
478
|
type: "object",
|
|
@@ -495,6 +544,7 @@ export const PROJECT_SHAPE = {
|
|
|
495
544
|
{ const: "saturation", type: "string" },
|
|
496
545
|
{ const: "color", type: "string" },
|
|
497
546
|
{ const: "luminosity", type: "string" },
|
|
547
|
+
{ const: "plus_lighter", type: "string" },
|
|
498
548
|
],
|
|
499
549
|
},
|
|
500
550
|
ClipComposition: {
|
|
@@ -880,17 +930,19 @@ export const PROJECT_SHAPE = {
|
|
|
880
930
|
align: "center",
|
|
881
931
|
anchor: { x: 0.5, y: 1 },
|
|
882
932
|
background: null,
|
|
883
|
-
|
|
933
|
+
fill: {
|
|
934
|
+
color: { alpha: 1, blue: 1, green: 1, red: 1 },
|
|
935
|
+
type: "solid",
|
|
936
|
+
},
|
|
884
937
|
font_size: 0.05,
|
|
885
938
|
font_weight: 400,
|
|
886
939
|
letter_spacing: 0,
|
|
887
940
|
line_height: 1.2,
|
|
888
941
|
max_width: 0.9,
|
|
889
|
-
outline: null,
|
|
890
942
|
position: { x: 0.5, y: 0.92 },
|
|
891
943
|
},
|
|
892
944
|
},
|
|
893
|
-
text: {
|
|
945
|
+
text: { $ref: "#/$defs/TextContent" },
|
|
894
946
|
type: { const: "text", type: "string" },
|
|
895
947
|
},
|
|
896
948
|
required: ["type", "text"],
|
|
@@ -1063,6 +1115,16 @@ export const PROJECT_SHAPE = {
|
|
|
1063
1115
|
required: ["time", "value", "interpolation"],
|
|
1064
1116
|
type: "object",
|
|
1065
1117
|
},
|
|
1118
|
+
Keyframe_Rgba: {
|
|
1119
|
+
additionalProperties: false,
|
|
1120
|
+
properties: {
|
|
1121
|
+
interpolation: { $ref: "#/$defs/Interpolation" },
|
|
1122
|
+
time: { $ref: "#/$defs/MediaTime" },
|
|
1123
|
+
value: { $ref: "#/$defs/Rgba" },
|
|
1124
|
+
},
|
|
1125
|
+
required: ["time", "value", "interpolation"],
|
|
1126
|
+
type: "object",
|
|
1127
|
+
},
|
|
1066
1128
|
Keyframe_Vec2: {
|
|
1067
1129
|
additionalProperties: false,
|
|
1068
1130
|
properties: {
|
|
@@ -1147,11 +1209,11 @@ export const PROJECT_SHAPE = {
|
|
|
1147
1209
|
anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
|
|
1148
1210
|
},
|
|
1149
1211
|
children: { items: { $ref: "#/$defs/LayoutNode" }, type: "array" },
|
|
1150
|
-
color: { anyOf: [{ $ref: "#/$defs/Rgba" }, { type: "null" }] },
|
|
1151
1212
|
column_gap: {
|
|
1152
1213
|
anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
|
|
1153
1214
|
},
|
|
1154
1215
|
display: { anyOf: [{ $ref: "#/$defs/Display" }, { type: "null" }] },
|
|
1216
|
+
fill: { anyOf: [{ $ref: "#/$defs/Paint" }, { type: "null" }] },
|
|
1155
1217
|
flex_basis: {
|
|
1156
1218
|
anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
|
|
1157
1219
|
},
|
|
@@ -1232,7 +1294,6 @@ export const PROJECT_SHAPE = {
|
|
|
1232
1294
|
opacity: {
|
|
1233
1295
|
anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
|
|
1234
1296
|
},
|
|
1235
|
-
outline: { anyOf: [{ $ref: "#/$defs/TextOutline" }, { type: "null" }] },
|
|
1236
1297
|
overflow: { anyOf: [{ $ref: "#/$defs/Overflow" }, { type: "null" }] },
|
|
1237
1298
|
padding: {
|
|
1238
1299
|
anyOf: [{ $ref: "#/$defs/Animated_Insets" }, { type: "null" }],
|
|
@@ -1245,13 +1306,25 @@ export const PROJECT_SHAPE = {
|
|
|
1245
1306
|
anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
|
|
1246
1307
|
},
|
|
1247
1308
|
scale: { anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }] },
|
|
1309
|
+
shadows: {
|
|
1310
|
+
items: { $ref: "#/$defs/TextShadow" },
|
|
1311
|
+
type: ["array", "null"],
|
|
1312
|
+
},
|
|
1248
1313
|
shape: { anyOf: [{ $ref: "#/$defs/LayoutShape" }, { type: "null" }] },
|
|
1314
|
+
strokes: {
|
|
1315
|
+
items: { $ref: "#/$defs/TextStroke" },
|
|
1316
|
+
type: ["array", "null"],
|
|
1317
|
+
},
|
|
1249
1318
|
text: {
|
|
1250
1319
|
anyOf: [{ $ref: "#/$defs/Animated_string" }, { type: "null" }],
|
|
1251
1320
|
},
|
|
1252
1321
|
text_align: {
|
|
1253
1322
|
anyOf: [{ $ref: "#/$defs/TextAlign" }, { type: "null" }],
|
|
1254
1323
|
},
|
|
1324
|
+
text_animators: {
|
|
1325
|
+
items: { $ref: "#/$defs/TextAnimator" },
|
|
1326
|
+
type: "array",
|
|
1327
|
+
},
|
|
1255
1328
|
translate: {
|
|
1256
1329
|
anyOf: [{ $ref: "#/$defs/Animated_LayoutOffset" }, { type: "null" }],
|
|
1257
1330
|
},
|
|
@@ -1809,6 +1882,22 @@ export const PROJECT_SHAPE = {
|
|
|
1809
1882
|
},
|
|
1810
1883
|
],
|
|
1811
1884
|
},
|
|
1885
|
+
RangeShape: {
|
|
1886
|
+
oneOf: [
|
|
1887
|
+
{ const: "square", type: "string" },
|
|
1888
|
+
{ const: "ramp_up", type: "string" },
|
|
1889
|
+
{ const: "ramp_down", type: "string" },
|
|
1890
|
+
{ const: "triangle", type: "string" },
|
|
1891
|
+
{ const: "round", type: "string" },
|
|
1892
|
+
{ const: "smooth", type: "string" },
|
|
1893
|
+
],
|
|
1894
|
+
},
|
|
1895
|
+
RangeUnits: {
|
|
1896
|
+
oneOf: [
|
|
1897
|
+
{ const: "percent", type: "string" },
|
|
1898
|
+
{ const: "index", type: "string" },
|
|
1899
|
+
],
|
|
1900
|
+
},
|
|
1812
1901
|
Rgb: {
|
|
1813
1902
|
additionalProperties: false,
|
|
1814
1903
|
properties: {
|
|
@@ -1838,6 +1927,22 @@ export const PROJECT_SHAPE = {
|
|
|
1838
1927
|
},
|
|
1839
1928
|
],
|
|
1840
1929
|
},
|
|
1930
|
+
RunState: {
|
|
1931
|
+
oneOf: [
|
|
1932
|
+
{ const: "upcoming", type: "string" },
|
|
1933
|
+
{ const: "active", type: "string" },
|
|
1934
|
+
{ const: "spoken", type: "string" },
|
|
1935
|
+
],
|
|
1936
|
+
},
|
|
1937
|
+
RunTime: {
|
|
1938
|
+
additionalProperties: false,
|
|
1939
|
+
properties: {
|
|
1940
|
+
end: { $ref: "#/$defs/MediaTime" },
|
|
1941
|
+
start: { $ref: "#/$defs/MediaTime" },
|
|
1942
|
+
},
|
|
1943
|
+
required: ["start", "end"],
|
|
1944
|
+
type: "object",
|
|
1945
|
+
},
|
|
1841
1946
|
ShapeGeometry: {
|
|
1842
1947
|
oneOf: [
|
|
1843
1948
|
{
|
|
@@ -2130,6 +2235,38 @@ export const PROJECT_SHAPE = {
|
|
|
2130
2235
|
{ const: "end", type: "string" },
|
|
2131
2236
|
],
|
|
2132
2237
|
},
|
|
2238
|
+
TextAnimator: {
|
|
2239
|
+
additionalProperties: false,
|
|
2240
|
+
properties: {
|
|
2241
|
+
properties: { $ref: "#/$defs/TextAnimatorProperties", default: {} },
|
|
2242
|
+
selector: { $ref: "#/$defs/TextSelector" },
|
|
2243
|
+
},
|
|
2244
|
+
required: ["selector"],
|
|
2245
|
+
type: "object",
|
|
2246
|
+
},
|
|
2247
|
+
TextAnimatorProperties: {
|
|
2248
|
+
additionalProperties: false,
|
|
2249
|
+
properties: {
|
|
2250
|
+
fill: { anyOf: [{ $ref: "#/$defs/Animated_Rgba" }, { type: "null" }] },
|
|
2251
|
+
offset: {
|
|
2252
|
+
anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }],
|
|
2253
|
+
},
|
|
2254
|
+
opacity: {
|
|
2255
|
+
anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
|
|
2256
|
+
},
|
|
2257
|
+
rotation_degrees: {
|
|
2258
|
+
anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
|
|
2259
|
+
},
|
|
2260
|
+
scale: { anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }] },
|
|
2261
|
+
stroke: {
|
|
2262
|
+
anyOf: [{ $ref: "#/$defs/Animated_Rgba" }, { type: "null" }],
|
|
2263
|
+
},
|
|
2264
|
+
tracking: {
|
|
2265
|
+
anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
|
|
2266
|
+
},
|
|
2267
|
+
},
|
|
2268
|
+
type: "object",
|
|
2269
|
+
},
|
|
2133
2270
|
TextBackground: {
|
|
2134
2271
|
additionalProperties: false,
|
|
2135
2272
|
properties: {
|
|
@@ -2139,7 +2276,84 @@ export const PROJECT_SHAPE = {
|
|
|
2139
2276
|
required: ["color"],
|
|
2140
2277
|
type: "object",
|
|
2141
2278
|
},
|
|
2142
|
-
|
|
2279
|
+
TextContent: {
|
|
2280
|
+
anyOf: [
|
|
2281
|
+
{ type: "string" },
|
|
2282
|
+
{ items: { $ref: "#/$defs/TextRun" }, type: "array" },
|
|
2283
|
+
],
|
|
2284
|
+
},
|
|
2285
|
+
TextRun: {
|
|
2286
|
+
additionalProperties: false,
|
|
2287
|
+
properties: {
|
|
2288
|
+
class: { items: { type: "string" }, type: "array" },
|
|
2289
|
+
text: { type: "string" },
|
|
2290
|
+
time: { anyOf: [{ $ref: "#/$defs/RunTime" }, { type: "null" }] },
|
|
2291
|
+
},
|
|
2292
|
+
required: ["text"],
|
|
2293
|
+
type: "object",
|
|
2294
|
+
},
|
|
2295
|
+
TextSelector: {
|
|
2296
|
+
oneOf: [
|
|
2297
|
+
{
|
|
2298
|
+
additionalProperties: false,
|
|
2299
|
+
properties: {
|
|
2300
|
+
amount: {
|
|
2301
|
+
$ref: "#/$defs/Animated_float",
|
|
2302
|
+
default: { mode: "constant", value: 1 },
|
|
2303
|
+
},
|
|
2304
|
+
based_on: { $ref: "#/$defs/TextUnit", default: "characters" },
|
|
2305
|
+
end: {
|
|
2306
|
+
$ref: "#/$defs/Animated_float",
|
|
2307
|
+
default: { mode: "constant", value: 100 },
|
|
2308
|
+
},
|
|
2309
|
+
offset: {
|
|
2310
|
+
$ref: "#/$defs/Animated_float",
|
|
2311
|
+
default: { mode: "constant", value: 0 },
|
|
2312
|
+
},
|
|
2313
|
+
shape: { $ref: "#/$defs/RangeShape", default: "square" },
|
|
2314
|
+
start: {
|
|
2315
|
+
$ref: "#/$defs/Animated_float",
|
|
2316
|
+
default: { mode: "constant", value: 0 },
|
|
2317
|
+
},
|
|
2318
|
+
type: { const: "range", type: "string" },
|
|
2319
|
+
units: { $ref: "#/$defs/RangeUnits", default: "percent" },
|
|
2320
|
+
},
|
|
2321
|
+
required: ["type"],
|
|
2322
|
+
type: "object",
|
|
2323
|
+
},
|
|
2324
|
+
{
|
|
2325
|
+
additionalProperties: false,
|
|
2326
|
+
properties: {
|
|
2327
|
+
ramp: { $ref: "#/$defs/MediaTime", default: 0 },
|
|
2328
|
+
state: { $ref: "#/$defs/RunState" },
|
|
2329
|
+
sweep: { default: false, type: "boolean" },
|
|
2330
|
+
type: { const: "timing", type: "string" },
|
|
2331
|
+
},
|
|
2332
|
+
required: ["type", "state"],
|
|
2333
|
+
type: "object",
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
additionalProperties: false,
|
|
2337
|
+
properties: {
|
|
2338
|
+
class: { type: "string" },
|
|
2339
|
+
type: { const: "class", type: "string" },
|
|
2340
|
+
},
|
|
2341
|
+
required: ["type", "class"],
|
|
2342
|
+
type: "object",
|
|
2343
|
+
},
|
|
2344
|
+
],
|
|
2345
|
+
},
|
|
2346
|
+
TextShadow: {
|
|
2347
|
+
additionalProperties: false,
|
|
2348
|
+
properties: {
|
|
2349
|
+
blur: { default: 0, format: "float", type: "number" },
|
|
2350
|
+
color: { $ref: "#/$defs/Rgba" },
|
|
2351
|
+
offset: { $ref: "#/$defs/Vec2", default: { x: 0, y: 0 } },
|
|
2352
|
+
},
|
|
2353
|
+
required: ["color"],
|
|
2354
|
+
type: "object",
|
|
2355
|
+
},
|
|
2356
|
+
TextStroke: {
|
|
2143
2357
|
additionalProperties: false,
|
|
2144
2358
|
properties: {
|
|
2145
2359
|
color: { $ref: "#/$defs/Rgba" },
|
|
@@ -2153,13 +2367,17 @@ export const PROJECT_SHAPE = {
|
|
|
2153
2367
|
properties: {
|
|
2154
2368
|
align: { $ref: "#/$defs/TextAlign", default: "center" },
|
|
2155
2369
|
anchor: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 1 } },
|
|
2370
|
+
animators: { items: { $ref: "#/$defs/TextAnimator" }, type: "array" },
|
|
2156
2371
|
background: {
|
|
2157
2372
|
anyOf: [{ $ref: "#/$defs/TextBackground" }, { type: "null" }],
|
|
2158
2373
|
default: null,
|
|
2159
2374
|
},
|
|
2160
|
-
|
|
2161
|
-
$ref: "#/$defs/
|
|
2162
|
-
default: {
|
|
2375
|
+
fill: {
|
|
2376
|
+
$ref: "#/$defs/Paint",
|
|
2377
|
+
default: {
|
|
2378
|
+
color: { alpha: 1, blue: 1, green: 1, red: 1 },
|
|
2379
|
+
type: "solid",
|
|
2380
|
+
},
|
|
2163
2381
|
},
|
|
2164
2382
|
font_family: { type: ["string", "null"] },
|
|
2165
2383
|
font_size: { default: 0.05, format: "float", type: "number" },
|
|
@@ -2173,14 +2391,56 @@ export const PROJECT_SHAPE = {
|
|
|
2173
2391
|
letter_spacing: { default: 0, format: "float", type: "number" },
|
|
2174
2392
|
line_height: { default: 1.2, format: "float", type: "number" },
|
|
2175
2393
|
max_width: { default: 0.9, format: "float", type: "number" },
|
|
2176
|
-
outline: {
|
|
2177
|
-
anyOf: [{ $ref: "#/$defs/TextOutline" }, { type: "null" }],
|
|
2178
|
-
default: null,
|
|
2179
|
-
},
|
|
2180
2394
|
position: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 0.92 } },
|
|
2395
|
+
shadows: { items: { $ref: "#/$defs/TextShadow" }, type: "array" },
|
|
2396
|
+
strokes: { items: { $ref: "#/$defs/TextStroke" }, type: "array" },
|
|
2397
|
+
},
|
|
2398
|
+
type: "object",
|
|
2399
|
+
},
|
|
2400
|
+
TextStylePatch: {
|
|
2401
|
+
additionalProperties: false,
|
|
2402
|
+
properties: {
|
|
2403
|
+
align: { anyOf: [{ $ref: "#/$defs/TextAlign" }, { type: "null" }] },
|
|
2404
|
+
anchor: { anyOf: [{ $ref: "#/$defs/Vec2" }, { type: "null" }] },
|
|
2405
|
+
animators: {
|
|
2406
|
+
items: { $ref: "#/$defs/TextAnimator" },
|
|
2407
|
+
type: ["array", "null"],
|
|
2408
|
+
},
|
|
2409
|
+
background: {
|
|
2410
|
+
anyOf: [{ $ref: "#/$defs/TextBackground" }, { type: "null" }],
|
|
2411
|
+
},
|
|
2412
|
+
fill: { anyOf: [{ $ref: "#/$defs/Paint" }, { type: "null" }] },
|
|
2413
|
+
font_family: { type: ["string", "null"] },
|
|
2414
|
+
font_size: { format: "float", type: ["number", "null"] },
|
|
2415
|
+
font_weight: {
|
|
2416
|
+
format: "uint16",
|
|
2417
|
+
maximum: 65535,
|
|
2418
|
+
minimum: 0,
|
|
2419
|
+
type: ["integer", "null"],
|
|
2420
|
+
},
|
|
2421
|
+
letter_spacing: { format: "float", type: ["number", "null"] },
|
|
2422
|
+
line_height: { format: "float", type: ["number", "null"] },
|
|
2423
|
+
max_width: { format: "float", type: ["number", "null"] },
|
|
2424
|
+
position: { anyOf: [{ $ref: "#/$defs/Vec2" }, { type: "null" }] },
|
|
2425
|
+
shadows: {
|
|
2426
|
+
items: { $ref: "#/$defs/TextShadow" },
|
|
2427
|
+
type: ["array", "null"],
|
|
2428
|
+
},
|
|
2429
|
+
strokes: {
|
|
2430
|
+
items: { $ref: "#/$defs/TextStroke" },
|
|
2431
|
+
type: ["array", "null"],
|
|
2432
|
+
},
|
|
2181
2433
|
},
|
|
2182
2434
|
type: "object",
|
|
2183
2435
|
},
|
|
2436
|
+
TextUnit: {
|
|
2437
|
+
oneOf: [
|
|
2438
|
+
{ const: "characters", type: "string" },
|
|
2439
|
+
{ const: "characters_excluding_spaces", type: "string" },
|
|
2440
|
+
{ const: "words", type: "string" },
|
|
2441
|
+
{ const: "lines", type: "string" },
|
|
2442
|
+
],
|
|
2443
|
+
},
|
|
2184
2444
|
TimeMap: {
|
|
2185
2445
|
oneOf: [
|
|
2186
2446
|
{
|