remotion 4.0.499 → 4.0.501
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/dist/cjs/AbsoluteFill.d.ts +237 -1
- package/dist/cjs/AbsoluteFill.js +40 -103
- package/dist/cjs/AbsoluteFillElement.d.ts +3 -0
- package/dist/cjs/AbsoluteFillElement.js +111 -0
- package/dist/cjs/Composition.js +2 -1
- package/dist/cjs/CompositionManager.d.ts +0 -1
- package/dist/cjs/Folder.js +2 -1
- package/dist/cjs/HtmlInCanvas.d.ts +84 -3
- package/dist/cjs/HtmlInCanvas.js +30 -2
- package/dist/cjs/Img.d.ts +84 -11
- package/dist/cjs/Img.js +16 -5
- package/dist/cjs/Interactive.d.ts +211 -6
- package/dist/cjs/Interactive.js +33 -11
- package/dist/cjs/Sequence.d.ts +4 -0
- package/dist/cjs/Sequence.js +30 -13
- package/dist/cjs/TimelineContext.d.ts +0 -1
- package/dist/cjs/TimelineContext.js +1 -4
- package/dist/cjs/animated-image/AnimatedImage.d.ts +82 -1
- package/dist/cjs/animated-image/AnimatedImage.js +13 -2
- package/dist/cjs/animated-image/props.d.ts +2 -2
- package/dist/cjs/audio/AudioForPreview.d.ts +0 -1
- package/dist/cjs/audio/AudioForPreview.js +1 -1
- package/dist/cjs/audio/html5-audio.d.ts +2 -2
- package/dist/cjs/audio/html5-audio.js +2 -2
- package/dist/cjs/canvas-image/CanvasImage.d.ts +83 -3
- package/dist/cjs/canvas-image/CanvasImage.js +13 -2
- package/dist/cjs/canvas-image/props.d.ts +6 -7
- package/dist/cjs/effects/Solid.d.ts +84 -3
- package/dist/cjs/effects/Solid.js +13 -2
- package/dist/cjs/enable-sequence-stack-traces.d.ts +4 -0
- package/dist/cjs/enable-sequence-stack-traces.js +16 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/interactivity-schema.d.ts +420 -1
- package/dist/cjs/interactivity-schema.js +122 -1
- package/dist/cjs/internals.d.ts +211 -2
- package/dist/cjs/internals.js +7 -0
- package/dist/cjs/no-react.d.ts +81 -0
- package/dist/cjs/sequence-crop.d.ts +20 -0
- package/dist/cjs/sequence-crop.js +59 -0
- package/dist/cjs/series/index.js +4 -4
- package/dist/cjs/static-file.js +10 -0
- package/dist/cjs/truncate-src-for-label.js +5 -1
- package/dist/cjs/use-crop-style.d.ts +6 -0
- package/dist/cjs/use-crop-style.js +19 -0
- package/dist/cjs/use-media-in-timeline.d.ts +0 -1
- package/dist/cjs/use-media-in-timeline.js +1 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/OffthreadVideo.js +6 -6
- package/dist/cjs/video/html5-video.d.ts +2 -2
- package/dist/cjs/video/html5-video.js +5 -5
- package/dist/cjs/video/props.d.ts +1 -1
- package/dist/cjs/with-interactivity-schema.js +22 -12
- package/dist/esm/index.mjs +2453 -2022
- package/dist/esm/no-react.mjs +111 -0
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -132,11 +132,25 @@ export type ArrayFieldSchema = {
|
|
|
132
132
|
description?: string;
|
|
133
133
|
keyframable?: false;
|
|
134
134
|
};
|
|
135
|
-
export type
|
|
135
|
+
export type CaptionsFieldSchema = {
|
|
136
|
+
type: 'remotion-captions';
|
|
137
|
+
default: readonly unknown[] | undefined;
|
|
138
|
+
description?: string;
|
|
139
|
+
keyframable: false;
|
|
140
|
+
};
|
|
141
|
+
export type VisibleFieldSchema = NumberFieldSchema | BooleanFieldSchema | RotationCssFieldSchema | RotationDegreesFieldSchema | TranslateFieldSchema | TransformOriginFieldSchema | ScaleFieldSchema | UvCoordinateFieldSchema | ColorFieldSchema | TextContentFieldSchema | FontFamilyFieldSchema | AssetFieldSchema | ArrayFieldSchema | CaptionsFieldSchema | EnumFieldSchema;
|
|
136
142
|
export type InteractivitySchemaField = VisibleFieldSchema | HiddenFieldSchema;
|
|
137
143
|
export type InteractivitySchema = {
|
|
138
144
|
[key: string]: InteractivitySchemaField;
|
|
139
145
|
};
|
|
146
|
+
export declare const captionsSchema: {
|
|
147
|
+
readonly captions: {
|
|
148
|
+
readonly type: "remotion-captions";
|
|
149
|
+
readonly default: undefined;
|
|
150
|
+
readonly description: "Captions";
|
|
151
|
+
readonly keyframable: false;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
140
154
|
export type InteractivitySchemaKeysRecord<S extends InteractivitySchema> = Record<keyof S, unknown>;
|
|
141
155
|
export declare const transformSchema: {
|
|
142
156
|
readonly 'style.transformOrigin': {
|
|
@@ -321,6 +335,49 @@ export declare const borderSchema: {
|
|
|
321
335
|
readonly description: "Border color";
|
|
322
336
|
};
|
|
323
337
|
};
|
|
338
|
+
export declare const borderRadiusSchema: {
|
|
339
|
+
readonly 'style.borderRadius': {
|
|
340
|
+
readonly type: "number";
|
|
341
|
+
readonly default: 0;
|
|
342
|
+
readonly min: 0;
|
|
343
|
+
readonly step: 1;
|
|
344
|
+
readonly description: "Border radius";
|
|
345
|
+
readonly hiddenFromList: false;
|
|
346
|
+
readonly keyframable: true;
|
|
347
|
+
};
|
|
348
|
+
readonly 'style.borderTopLeftRadius': {
|
|
349
|
+
readonly type: "number";
|
|
350
|
+
readonly default: 0;
|
|
351
|
+
readonly min: 0;
|
|
352
|
+
readonly step: 1;
|
|
353
|
+
readonly description: "Top left radius";
|
|
354
|
+
readonly hiddenFromList: false;
|
|
355
|
+
};
|
|
356
|
+
readonly 'style.borderTopRightRadius': {
|
|
357
|
+
readonly type: "number";
|
|
358
|
+
readonly default: 0;
|
|
359
|
+
readonly min: 0;
|
|
360
|
+
readonly step: 1;
|
|
361
|
+
readonly description: "Top right radius";
|
|
362
|
+
readonly hiddenFromList: false;
|
|
363
|
+
};
|
|
364
|
+
readonly 'style.borderBottomRightRadius': {
|
|
365
|
+
readonly type: "number";
|
|
366
|
+
readonly default: 0;
|
|
367
|
+
readonly min: 0;
|
|
368
|
+
readonly step: 1;
|
|
369
|
+
readonly description: "Bottom right radius";
|
|
370
|
+
readonly hiddenFromList: false;
|
|
371
|
+
};
|
|
372
|
+
readonly 'style.borderBottomLeftRadius': {
|
|
373
|
+
readonly type: "number";
|
|
374
|
+
readonly default: 0;
|
|
375
|
+
readonly min: 0;
|
|
376
|
+
readonly step: 1;
|
|
377
|
+
readonly description: "Bottom left radius";
|
|
378
|
+
readonly hiddenFromList: false;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
324
381
|
export declare const backgroundSchema: {
|
|
325
382
|
readonly 'style.backgroundColor': {
|
|
326
383
|
readonly type: "color";
|
|
@@ -328,6 +385,41 @@ export declare const backgroundSchema: {
|
|
|
328
385
|
readonly description: "Color";
|
|
329
386
|
};
|
|
330
387
|
};
|
|
388
|
+
export declare const svgStrokeSchema: {
|
|
389
|
+
readonly stroke: {
|
|
390
|
+
readonly type: "color";
|
|
391
|
+
readonly default: "none";
|
|
392
|
+
readonly description: "Stroke";
|
|
393
|
+
};
|
|
394
|
+
readonly strokeWidth: {
|
|
395
|
+
readonly type: "number";
|
|
396
|
+
readonly default: 1;
|
|
397
|
+
readonly description: "Stroke width";
|
|
398
|
+
readonly min: 0;
|
|
399
|
+
readonly step: 1;
|
|
400
|
+
readonly hiddenFromList: false;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
export declare const svgPaintSchema: {
|
|
404
|
+
readonly stroke: {
|
|
405
|
+
readonly type: "color";
|
|
406
|
+
readonly default: "none";
|
|
407
|
+
readonly description: "Stroke";
|
|
408
|
+
};
|
|
409
|
+
readonly strokeWidth: {
|
|
410
|
+
readonly type: "number";
|
|
411
|
+
readonly default: 1;
|
|
412
|
+
readonly description: "Stroke width";
|
|
413
|
+
readonly min: 0;
|
|
414
|
+
readonly step: 1;
|
|
415
|
+
readonly hiddenFromList: false;
|
|
416
|
+
};
|
|
417
|
+
readonly fill: {
|
|
418
|
+
readonly type: "color";
|
|
419
|
+
readonly default: undefined;
|
|
420
|
+
readonly description: "Fill";
|
|
421
|
+
};
|
|
422
|
+
};
|
|
331
423
|
export declare const textContentSchema: {
|
|
332
424
|
readonly children: {
|
|
333
425
|
readonly type: "text-content";
|
|
@@ -374,6 +466,90 @@ export declare const sequencePremountSchema: {
|
|
|
374
466
|
readonly keyframable: false;
|
|
375
467
|
};
|
|
376
468
|
};
|
|
469
|
+
export declare const cropSchema: {
|
|
470
|
+
readonly cropLeft: {
|
|
471
|
+
readonly type: "number";
|
|
472
|
+
readonly default: 0;
|
|
473
|
+
readonly description: "Crop left";
|
|
474
|
+
readonly min: 0;
|
|
475
|
+
readonly max: 1;
|
|
476
|
+
readonly step: 0.01;
|
|
477
|
+
readonly hiddenFromList: false;
|
|
478
|
+
readonly keyframable: true;
|
|
479
|
+
};
|
|
480
|
+
readonly cropRight: {
|
|
481
|
+
readonly type: "number";
|
|
482
|
+
readonly default: 0;
|
|
483
|
+
readonly description: "Crop right";
|
|
484
|
+
readonly min: 0;
|
|
485
|
+
readonly max: 1;
|
|
486
|
+
readonly step: 0.01;
|
|
487
|
+
readonly hiddenFromList: false;
|
|
488
|
+
readonly keyframable: true;
|
|
489
|
+
};
|
|
490
|
+
readonly cropTop: {
|
|
491
|
+
readonly type: "number";
|
|
492
|
+
readonly default: 0;
|
|
493
|
+
readonly description: "Crop top";
|
|
494
|
+
readonly min: 0;
|
|
495
|
+
readonly max: 1;
|
|
496
|
+
readonly step: 0.01;
|
|
497
|
+
readonly hiddenFromList: false;
|
|
498
|
+
readonly keyframable: true;
|
|
499
|
+
};
|
|
500
|
+
readonly cropBottom: {
|
|
501
|
+
readonly type: "number";
|
|
502
|
+
readonly default: 0;
|
|
503
|
+
readonly description: "Crop bottom";
|
|
504
|
+
readonly min: 0;
|
|
505
|
+
readonly max: 1;
|
|
506
|
+
readonly step: 0.01;
|
|
507
|
+
readonly hiddenFromList: false;
|
|
508
|
+
readonly keyframable: true;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
export declare const sequenceCropSchema: {
|
|
512
|
+
readonly cropLeft: {
|
|
513
|
+
readonly type: "number";
|
|
514
|
+
readonly default: 0;
|
|
515
|
+
readonly description: "Crop left";
|
|
516
|
+
readonly min: 0;
|
|
517
|
+
readonly max: 1;
|
|
518
|
+
readonly step: 0.01;
|
|
519
|
+
readonly hiddenFromList: false;
|
|
520
|
+
readonly keyframable: true;
|
|
521
|
+
};
|
|
522
|
+
readonly cropRight: {
|
|
523
|
+
readonly type: "number";
|
|
524
|
+
readonly default: 0;
|
|
525
|
+
readonly description: "Crop right";
|
|
526
|
+
readonly min: 0;
|
|
527
|
+
readonly max: 1;
|
|
528
|
+
readonly step: 0.01;
|
|
529
|
+
readonly hiddenFromList: false;
|
|
530
|
+
readonly keyframable: true;
|
|
531
|
+
};
|
|
532
|
+
readonly cropTop: {
|
|
533
|
+
readonly type: "number";
|
|
534
|
+
readonly default: 0;
|
|
535
|
+
readonly description: "Crop top";
|
|
536
|
+
readonly min: 0;
|
|
537
|
+
readonly max: 1;
|
|
538
|
+
readonly step: 0.01;
|
|
539
|
+
readonly hiddenFromList: false;
|
|
540
|
+
readonly keyframable: true;
|
|
541
|
+
};
|
|
542
|
+
readonly cropBottom: {
|
|
543
|
+
readonly type: "number";
|
|
544
|
+
readonly default: 0;
|
|
545
|
+
readonly description: "Crop bottom";
|
|
546
|
+
readonly min: 0;
|
|
547
|
+
readonly max: 1;
|
|
548
|
+
readonly step: 0.01;
|
|
549
|
+
readonly hiddenFromList: false;
|
|
550
|
+
readonly keyframable: true;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
377
553
|
export declare const sequenceStyleSchema: {
|
|
378
554
|
readonly 'style.transformOrigin': {
|
|
379
555
|
readonly type: "transform-origin";
|
|
@@ -440,6 +616,47 @@ export declare const sequenceStyleSchema: {
|
|
|
440
616
|
readonly default: undefined;
|
|
441
617
|
readonly description: "Border color";
|
|
442
618
|
};
|
|
619
|
+
readonly 'style.borderRadius': {
|
|
620
|
+
readonly type: "number";
|
|
621
|
+
readonly default: 0;
|
|
622
|
+
readonly min: 0;
|
|
623
|
+
readonly step: 1;
|
|
624
|
+
readonly description: "Border radius";
|
|
625
|
+
readonly hiddenFromList: false;
|
|
626
|
+
readonly keyframable: true;
|
|
627
|
+
};
|
|
628
|
+
readonly 'style.borderTopLeftRadius': {
|
|
629
|
+
readonly type: "number";
|
|
630
|
+
readonly default: 0;
|
|
631
|
+
readonly min: 0;
|
|
632
|
+
readonly step: 1;
|
|
633
|
+
readonly description: "Top left radius";
|
|
634
|
+
readonly hiddenFromList: false;
|
|
635
|
+
};
|
|
636
|
+
readonly 'style.borderTopRightRadius': {
|
|
637
|
+
readonly type: "number";
|
|
638
|
+
readonly default: 0;
|
|
639
|
+
readonly min: 0;
|
|
640
|
+
readonly step: 1;
|
|
641
|
+
readonly description: "Top right radius";
|
|
642
|
+
readonly hiddenFromList: false;
|
|
643
|
+
};
|
|
644
|
+
readonly 'style.borderBottomRightRadius': {
|
|
645
|
+
readonly type: "number";
|
|
646
|
+
readonly default: 0;
|
|
647
|
+
readonly min: 0;
|
|
648
|
+
readonly step: 1;
|
|
649
|
+
readonly description: "Bottom right radius";
|
|
650
|
+
readonly hiddenFromList: false;
|
|
651
|
+
};
|
|
652
|
+
readonly 'style.borderBottomLeftRadius': {
|
|
653
|
+
readonly type: "number";
|
|
654
|
+
readonly default: 0;
|
|
655
|
+
readonly min: 0;
|
|
656
|
+
readonly step: 1;
|
|
657
|
+
readonly description: "Bottom left radius";
|
|
658
|
+
readonly hiddenFromList: false;
|
|
659
|
+
};
|
|
443
660
|
readonly 'style.backgroundColor': {
|
|
444
661
|
readonly type: "color";
|
|
445
662
|
readonly default: "transparent";
|
|
@@ -462,6 +679,46 @@ export declare const sequenceStyleSchema: {
|
|
|
462
679
|
readonly hiddenFromList: true;
|
|
463
680
|
readonly keyframable: false;
|
|
464
681
|
};
|
|
682
|
+
readonly cropLeft: {
|
|
683
|
+
readonly type: "number";
|
|
684
|
+
readonly default: 0;
|
|
685
|
+
readonly description: "Crop left";
|
|
686
|
+
readonly min: 0;
|
|
687
|
+
readonly max: 1;
|
|
688
|
+
readonly step: 0.01;
|
|
689
|
+
readonly hiddenFromList: false;
|
|
690
|
+
readonly keyframable: true;
|
|
691
|
+
};
|
|
692
|
+
readonly cropRight: {
|
|
693
|
+
readonly type: "number";
|
|
694
|
+
readonly default: 0;
|
|
695
|
+
readonly description: "Crop right";
|
|
696
|
+
readonly min: 0;
|
|
697
|
+
readonly max: 1;
|
|
698
|
+
readonly step: 0.01;
|
|
699
|
+
readonly hiddenFromList: false;
|
|
700
|
+
readonly keyframable: true;
|
|
701
|
+
};
|
|
702
|
+
readonly cropTop: {
|
|
703
|
+
readonly type: "number";
|
|
704
|
+
readonly default: 0;
|
|
705
|
+
readonly description: "Crop top";
|
|
706
|
+
readonly min: 0;
|
|
707
|
+
readonly max: 1;
|
|
708
|
+
readonly step: 0.01;
|
|
709
|
+
readonly hiddenFromList: false;
|
|
710
|
+
readonly keyframable: true;
|
|
711
|
+
};
|
|
712
|
+
readonly cropBottom: {
|
|
713
|
+
readonly type: "number";
|
|
714
|
+
readonly default: 0;
|
|
715
|
+
readonly description: "Crop bottom";
|
|
716
|
+
readonly min: 0;
|
|
717
|
+
readonly max: 1;
|
|
718
|
+
readonly step: 0.01;
|
|
719
|
+
readonly hiddenFromList: false;
|
|
720
|
+
readonly keyframable: true;
|
|
721
|
+
};
|
|
465
722
|
};
|
|
466
723
|
export declare const hiddenField: InteractivitySchemaField;
|
|
467
724
|
export declare const sequenceNameField: InteractivitySchemaField;
|
|
@@ -626,6 +883,47 @@ export declare const sequenceSchema: {
|
|
|
626
883
|
readonly default: undefined;
|
|
627
884
|
readonly description: "Border color";
|
|
628
885
|
};
|
|
886
|
+
readonly 'style.borderRadius': {
|
|
887
|
+
readonly type: "number";
|
|
888
|
+
readonly default: 0;
|
|
889
|
+
readonly min: 0;
|
|
890
|
+
readonly step: 1;
|
|
891
|
+
readonly description: "Border radius";
|
|
892
|
+
readonly hiddenFromList: false;
|
|
893
|
+
readonly keyframable: true;
|
|
894
|
+
};
|
|
895
|
+
readonly 'style.borderTopLeftRadius': {
|
|
896
|
+
readonly type: "number";
|
|
897
|
+
readonly default: 0;
|
|
898
|
+
readonly min: 0;
|
|
899
|
+
readonly step: 1;
|
|
900
|
+
readonly description: "Top left radius";
|
|
901
|
+
readonly hiddenFromList: false;
|
|
902
|
+
};
|
|
903
|
+
readonly 'style.borderTopRightRadius': {
|
|
904
|
+
readonly type: "number";
|
|
905
|
+
readonly default: 0;
|
|
906
|
+
readonly min: 0;
|
|
907
|
+
readonly step: 1;
|
|
908
|
+
readonly description: "Top right radius";
|
|
909
|
+
readonly hiddenFromList: false;
|
|
910
|
+
};
|
|
911
|
+
readonly 'style.borderBottomRightRadius': {
|
|
912
|
+
readonly type: "number";
|
|
913
|
+
readonly default: 0;
|
|
914
|
+
readonly min: 0;
|
|
915
|
+
readonly step: 1;
|
|
916
|
+
readonly description: "Bottom right radius";
|
|
917
|
+
readonly hiddenFromList: false;
|
|
918
|
+
};
|
|
919
|
+
readonly 'style.borderBottomLeftRadius': {
|
|
920
|
+
readonly type: "number";
|
|
921
|
+
readonly default: 0;
|
|
922
|
+
readonly min: 0;
|
|
923
|
+
readonly step: 1;
|
|
924
|
+
readonly description: "Bottom left radius";
|
|
925
|
+
readonly hiddenFromList: false;
|
|
926
|
+
};
|
|
629
927
|
readonly 'style.backgroundColor': {
|
|
630
928
|
readonly type: "color";
|
|
631
929
|
readonly default: "transparent";
|
|
@@ -648,6 +946,46 @@ export declare const sequenceSchema: {
|
|
|
648
946
|
readonly hiddenFromList: true;
|
|
649
947
|
readonly keyframable: false;
|
|
650
948
|
};
|
|
949
|
+
readonly cropLeft: {
|
|
950
|
+
readonly type: "number";
|
|
951
|
+
readonly default: 0;
|
|
952
|
+
readonly description: "Crop left";
|
|
953
|
+
readonly min: 0;
|
|
954
|
+
readonly max: 1;
|
|
955
|
+
readonly step: 0.01;
|
|
956
|
+
readonly hiddenFromList: false;
|
|
957
|
+
readonly keyframable: true;
|
|
958
|
+
};
|
|
959
|
+
readonly cropRight: {
|
|
960
|
+
readonly type: "number";
|
|
961
|
+
readonly default: 0;
|
|
962
|
+
readonly description: "Crop right";
|
|
963
|
+
readonly min: 0;
|
|
964
|
+
readonly max: 1;
|
|
965
|
+
readonly step: 0.01;
|
|
966
|
+
readonly hiddenFromList: false;
|
|
967
|
+
readonly keyframable: true;
|
|
968
|
+
};
|
|
969
|
+
readonly cropTop: {
|
|
970
|
+
readonly type: "number";
|
|
971
|
+
readonly default: 0;
|
|
972
|
+
readonly description: "Crop top";
|
|
973
|
+
readonly min: 0;
|
|
974
|
+
readonly max: 1;
|
|
975
|
+
readonly step: 0.01;
|
|
976
|
+
readonly hiddenFromList: false;
|
|
977
|
+
readonly keyframable: true;
|
|
978
|
+
};
|
|
979
|
+
readonly cropBottom: {
|
|
980
|
+
readonly type: "number";
|
|
981
|
+
readonly default: 0;
|
|
982
|
+
readonly description: "Crop bottom";
|
|
983
|
+
readonly min: 0;
|
|
984
|
+
readonly max: 1;
|
|
985
|
+
readonly step: 0.01;
|
|
986
|
+
readonly hiddenFromList: false;
|
|
987
|
+
readonly keyframable: true;
|
|
988
|
+
};
|
|
651
989
|
};
|
|
652
990
|
readonly none: {};
|
|
653
991
|
};
|
|
@@ -773,6 +1111,47 @@ export declare const sequenceSchemaWithoutFrom: {
|
|
|
773
1111
|
readonly default: undefined;
|
|
774
1112
|
readonly description: "Border color";
|
|
775
1113
|
};
|
|
1114
|
+
readonly 'style.borderRadius': {
|
|
1115
|
+
readonly type: "number";
|
|
1116
|
+
readonly default: 0;
|
|
1117
|
+
readonly min: 0;
|
|
1118
|
+
readonly step: 1;
|
|
1119
|
+
readonly description: "Border radius";
|
|
1120
|
+
readonly hiddenFromList: false;
|
|
1121
|
+
readonly keyframable: true;
|
|
1122
|
+
};
|
|
1123
|
+
readonly 'style.borderTopLeftRadius': {
|
|
1124
|
+
readonly type: "number";
|
|
1125
|
+
readonly default: 0;
|
|
1126
|
+
readonly min: 0;
|
|
1127
|
+
readonly step: 1;
|
|
1128
|
+
readonly description: "Top left radius";
|
|
1129
|
+
readonly hiddenFromList: false;
|
|
1130
|
+
};
|
|
1131
|
+
readonly 'style.borderTopRightRadius': {
|
|
1132
|
+
readonly type: "number";
|
|
1133
|
+
readonly default: 0;
|
|
1134
|
+
readonly min: 0;
|
|
1135
|
+
readonly step: 1;
|
|
1136
|
+
readonly description: "Top right radius";
|
|
1137
|
+
readonly hiddenFromList: false;
|
|
1138
|
+
};
|
|
1139
|
+
readonly 'style.borderBottomRightRadius': {
|
|
1140
|
+
readonly type: "number";
|
|
1141
|
+
readonly default: 0;
|
|
1142
|
+
readonly min: 0;
|
|
1143
|
+
readonly step: 1;
|
|
1144
|
+
readonly description: "Bottom right radius";
|
|
1145
|
+
readonly hiddenFromList: false;
|
|
1146
|
+
};
|
|
1147
|
+
readonly 'style.borderBottomLeftRadius': {
|
|
1148
|
+
readonly type: "number";
|
|
1149
|
+
readonly default: 0;
|
|
1150
|
+
readonly min: 0;
|
|
1151
|
+
readonly step: 1;
|
|
1152
|
+
readonly description: "Bottom left radius";
|
|
1153
|
+
readonly hiddenFromList: false;
|
|
1154
|
+
};
|
|
776
1155
|
readonly 'style.backgroundColor': {
|
|
777
1156
|
readonly type: "color";
|
|
778
1157
|
readonly default: "transparent";
|
|
@@ -795,6 +1174,46 @@ export declare const sequenceSchemaWithoutFrom: {
|
|
|
795
1174
|
readonly hiddenFromList: true;
|
|
796
1175
|
readonly keyframable: false;
|
|
797
1176
|
};
|
|
1177
|
+
readonly cropLeft: {
|
|
1178
|
+
readonly type: "number";
|
|
1179
|
+
readonly default: 0;
|
|
1180
|
+
readonly description: "Crop left";
|
|
1181
|
+
readonly min: 0;
|
|
1182
|
+
readonly max: 1;
|
|
1183
|
+
readonly step: 0.01;
|
|
1184
|
+
readonly hiddenFromList: false;
|
|
1185
|
+
readonly keyframable: true;
|
|
1186
|
+
};
|
|
1187
|
+
readonly cropRight: {
|
|
1188
|
+
readonly type: "number";
|
|
1189
|
+
readonly default: 0;
|
|
1190
|
+
readonly description: "Crop right";
|
|
1191
|
+
readonly min: 0;
|
|
1192
|
+
readonly max: 1;
|
|
1193
|
+
readonly step: 0.01;
|
|
1194
|
+
readonly hiddenFromList: false;
|
|
1195
|
+
readonly keyframable: true;
|
|
1196
|
+
};
|
|
1197
|
+
readonly cropTop: {
|
|
1198
|
+
readonly type: "number";
|
|
1199
|
+
readonly default: 0;
|
|
1200
|
+
readonly description: "Crop top";
|
|
1201
|
+
readonly min: 0;
|
|
1202
|
+
readonly max: 1;
|
|
1203
|
+
readonly step: 0.01;
|
|
1204
|
+
readonly hiddenFromList: false;
|
|
1205
|
+
readonly keyframable: true;
|
|
1206
|
+
};
|
|
1207
|
+
readonly cropBottom: {
|
|
1208
|
+
readonly type: "number";
|
|
1209
|
+
readonly default: 0;
|
|
1210
|
+
readonly description: "Crop bottom";
|
|
1211
|
+
readonly min: 0;
|
|
1212
|
+
readonly max: 1;
|
|
1213
|
+
readonly step: 0.01;
|
|
1214
|
+
readonly hiddenFromList: false;
|
|
1215
|
+
readonly keyframable: true;
|
|
1216
|
+
};
|
|
798
1217
|
};
|
|
799
1218
|
readonly none: {};
|
|
800
1219
|
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.baseSchemaWithoutFrom = exports.sequenceSchema = exports.baseSchema = exports.freezeField = exports.trimBeforeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.premountSchema = exports.textContentSchema = exports.backgroundSchema = exports.borderSchema = exports.textSchema = exports.sequenceVisualStyleSchema = exports.transformSchema = void 0;
|
|
3
|
+
exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.baseSchemaWithoutFrom = exports.sequenceSchema = exports.baseSchema = exports.freezeField = exports.trimBeforeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequenceCropSchema = exports.cropSchema = exports.sequencePremountSchema = exports.premountSchema = exports.textContentSchema = exports.svgPaintSchema = exports.svgStrokeSchema = exports.backgroundSchema = exports.borderRadiusSchema = exports.borderSchema = exports.textSchema = exports.sequenceVisualStyleSchema = exports.transformSchema = exports.captionsSchema = void 0;
|
|
4
|
+
exports.captionsSchema = {
|
|
5
|
+
captions: {
|
|
6
|
+
type: 'remotion-captions',
|
|
7
|
+
default: undefined,
|
|
8
|
+
description: 'Captions',
|
|
9
|
+
keyframable: false,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
4
12
|
exports.transformSchema = {
|
|
5
13
|
'style.transformOrigin': {
|
|
6
14
|
type: 'transform-origin',
|
|
@@ -149,6 +157,49 @@ exports.borderSchema = {
|
|
|
149
157
|
description: 'Border color',
|
|
150
158
|
},
|
|
151
159
|
};
|
|
160
|
+
exports.borderRadiusSchema = {
|
|
161
|
+
'style.borderRadius': {
|
|
162
|
+
type: 'number',
|
|
163
|
+
default: 0,
|
|
164
|
+
min: 0,
|
|
165
|
+
step: 1,
|
|
166
|
+
description: 'Border radius',
|
|
167
|
+
hiddenFromList: false,
|
|
168
|
+
keyframable: true,
|
|
169
|
+
},
|
|
170
|
+
'style.borderTopLeftRadius': {
|
|
171
|
+
type: 'number',
|
|
172
|
+
default: 0,
|
|
173
|
+
min: 0,
|
|
174
|
+
step: 1,
|
|
175
|
+
description: 'Top left radius',
|
|
176
|
+
hiddenFromList: false,
|
|
177
|
+
},
|
|
178
|
+
'style.borderTopRightRadius': {
|
|
179
|
+
type: 'number',
|
|
180
|
+
default: 0,
|
|
181
|
+
min: 0,
|
|
182
|
+
step: 1,
|
|
183
|
+
description: 'Top right radius',
|
|
184
|
+
hiddenFromList: false,
|
|
185
|
+
},
|
|
186
|
+
'style.borderBottomRightRadius': {
|
|
187
|
+
type: 'number',
|
|
188
|
+
default: 0,
|
|
189
|
+
min: 0,
|
|
190
|
+
step: 1,
|
|
191
|
+
description: 'Bottom right radius',
|
|
192
|
+
hiddenFromList: false,
|
|
193
|
+
},
|
|
194
|
+
'style.borderBottomLeftRadius': {
|
|
195
|
+
type: 'number',
|
|
196
|
+
default: 0,
|
|
197
|
+
min: 0,
|
|
198
|
+
step: 1,
|
|
199
|
+
description: 'Bottom left radius',
|
|
200
|
+
hiddenFromList: false,
|
|
201
|
+
},
|
|
202
|
+
};
|
|
152
203
|
exports.backgroundSchema = {
|
|
153
204
|
'style.backgroundColor': {
|
|
154
205
|
type: 'color',
|
|
@@ -157,6 +208,31 @@ exports.backgroundSchema = {
|
|
|
157
208
|
description: 'Color',
|
|
158
209
|
},
|
|
159
210
|
};
|
|
211
|
+
exports.svgStrokeSchema = {
|
|
212
|
+
stroke: {
|
|
213
|
+
type: 'color',
|
|
214
|
+
// `none` is the SVG initial value of stroke.
|
|
215
|
+
default: 'none',
|
|
216
|
+
description: 'Stroke',
|
|
217
|
+
},
|
|
218
|
+
strokeWidth: {
|
|
219
|
+
type: 'number',
|
|
220
|
+
// `1` is the SVG initial value of stroke-width.
|
|
221
|
+
default: 1,
|
|
222
|
+
description: 'Stroke width',
|
|
223
|
+
min: 0,
|
|
224
|
+
step: 1,
|
|
225
|
+
hiddenFromList: false,
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
exports.svgPaintSchema = {
|
|
229
|
+
fill: {
|
|
230
|
+
type: 'color',
|
|
231
|
+
default: undefined,
|
|
232
|
+
description: 'Fill',
|
|
233
|
+
},
|
|
234
|
+
...exports.svgStrokeSchema,
|
|
235
|
+
};
|
|
160
236
|
exports.textContentSchema = {
|
|
161
237
|
children: {
|
|
162
238
|
type: 'text-content',
|
|
@@ -187,10 +263,55 @@ exports.premountSchema = {
|
|
|
187
263
|
exports.sequencePremountSchema = {
|
|
188
264
|
...exports.premountSchema,
|
|
189
265
|
};
|
|
266
|
+
exports.cropSchema = {
|
|
267
|
+
cropLeft: {
|
|
268
|
+
type: 'number',
|
|
269
|
+
default: 0,
|
|
270
|
+
description: 'Crop left',
|
|
271
|
+
min: 0,
|
|
272
|
+
max: 1,
|
|
273
|
+
step: 0.01,
|
|
274
|
+
hiddenFromList: false,
|
|
275
|
+
keyframable: true,
|
|
276
|
+
},
|
|
277
|
+
cropRight: {
|
|
278
|
+
type: 'number',
|
|
279
|
+
default: 0,
|
|
280
|
+
description: 'Crop right',
|
|
281
|
+
min: 0,
|
|
282
|
+
max: 1,
|
|
283
|
+
step: 0.01,
|
|
284
|
+
hiddenFromList: false,
|
|
285
|
+
keyframable: true,
|
|
286
|
+
},
|
|
287
|
+
cropTop: {
|
|
288
|
+
type: 'number',
|
|
289
|
+
default: 0,
|
|
290
|
+
description: 'Crop top',
|
|
291
|
+
min: 0,
|
|
292
|
+
max: 1,
|
|
293
|
+
step: 0.01,
|
|
294
|
+
hiddenFromList: false,
|
|
295
|
+
keyframable: true,
|
|
296
|
+
},
|
|
297
|
+
cropBottom: {
|
|
298
|
+
type: 'number',
|
|
299
|
+
default: 0,
|
|
300
|
+
description: 'Crop bottom',
|
|
301
|
+
min: 0,
|
|
302
|
+
max: 1,
|
|
303
|
+
step: 0.01,
|
|
304
|
+
hiddenFromList: false,
|
|
305
|
+
keyframable: true,
|
|
306
|
+
},
|
|
307
|
+
};
|
|
308
|
+
exports.sequenceCropSchema = exports.cropSchema;
|
|
190
309
|
exports.sequenceStyleSchema = {
|
|
310
|
+
...exports.sequenceCropSchema,
|
|
191
311
|
...exports.transformSchema,
|
|
192
312
|
...exports.backgroundSchema,
|
|
193
313
|
...exports.borderSchema,
|
|
314
|
+
...exports.borderRadiusSchema,
|
|
194
315
|
...exports.sequencePremountSchema,
|
|
195
316
|
};
|
|
196
317
|
exports.hiddenField = {
|