@rendley/sdk 1.5.3 → 1.7.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/dist/Engine.d.ts +20 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +187 -55
- package/dist/modules/clip/ClipStyle.d.ts +7 -5
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +31 -13
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +27 -10
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +71 -37
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +44 -12
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +29 -12
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +55 -2
- package/dist/modules/clip/clips/text/TextClip.d.ts +29 -12
- package/dist/modules/clip/clips/text/TextStyle.d.ts +95 -6
- package/dist/modules/clip/clips/video/VideoClip.d.ts +40 -18
- package/dist/modules/display/Display.d.ts +3 -3
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +20 -1
- package/dist/modules/filter/Effect.d.ts +50 -1
- package/dist/modules/filter/Filter.d.ts +3 -3
- package/dist/modules/filter/MaskFilter.d.ts +46 -0
- package/dist/modules/layer/Layer.d.ts +7 -5
- package/dist/modules/library/Library.d.ts +3 -1
- package/dist/modules/library/Subtitles.d.ts +2 -2
- package/dist/modules/{subtitleManager → subtitles}/SubtitleManager.d.ts +86 -86
- package/dist/modules/timeline/Timeline.d.ts +8 -1
- package/dist/modules/undo/UndoManager.d.ts +35 -0
- package/dist/modules/undo/UndoManager.types.d.ts +292 -0
- package/dist/modules/undo/index.d.ts +2 -0
- package/dist/types/clip.types.d.ts +1 -1
- package/dist/utils/animation/animation.d.ts +3 -3
- package/package.json +1 -1
- /package/dist/modules/{subtitleManager → subtitles}/index.d.ts +0 -0
|
@@ -2,8 +2,9 @@ import * as PIXI from "pixi.js";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { ExportOptions } from '../../Engine';
|
|
4
4
|
import { ClipStyle } from "./ClipStyle";
|
|
5
|
-
import { Effect, Filter } from "../filter";
|
|
6
|
-
import {
|
|
5
|
+
import { Effect, EffectSchema, Filter, FilterSchema } from "../filter";
|
|
6
|
+
import { MaskFilter, MaskFilterSchema, MaskWrapModeEnum } from "../filter/MaskFilter";
|
|
7
|
+
import { WrapModeEnum } from '../../types/clip.types';
|
|
7
8
|
export declare enum ClipState {
|
|
8
9
|
Idle = 0,
|
|
9
10
|
Preloading = 1,
|
|
@@ -15,6 +16,10 @@ export declare enum AnimationTypeEnum {
|
|
|
15
16
|
OUT = "out",
|
|
16
17
|
LOOP = "loop"
|
|
17
18
|
}
|
|
19
|
+
export interface MaskOptions {
|
|
20
|
+
hideMaskClip?: boolean;
|
|
21
|
+
wrapMode?: MaskWrapModeEnum;
|
|
22
|
+
}
|
|
18
23
|
export interface ClipOptions<K extends ClipStyle = ClipStyle> {
|
|
19
24
|
type?: string;
|
|
20
25
|
id?: string;
|
|
@@ -25,9 +30,10 @@ export interface ClipOptions<K extends ClipStyle = ClipStyle> {
|
|
|
25
30
|
duration?: number;
|
|
26
31
|
leftTrim?: number;
|
|
27
32
|
rightTrim?: number;
|
|
28
|
-
filters?:
|
|
29
|
-
effects?:
|
|
33
|
+
filters?: z.infer<typeof FilterSchema>[];
|
|
34
|
+
effects?: z.infer<typeof EffectSchema>[];
|
|
30
35
|
style?: Partial<ReturnType<K["serialize"]>>;
|
|
36
|
+
isVisible?: boolean;
|
|
31
37
|
}
|
|
32
38
|
export declare const AnimationClassSchema: z.ZodObject<{
|
|
33
39
|
animationDataIn: z.ZodOptional<z.ZodObject<{
|
|
@@ -61,9 +67,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
61
67
|
relativeProperty?: string | undefined;
|
|
62
68
|
}>, "many">;
|
|
63
69
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
property: string;
|
|
65
70
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
66
71
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
72
|
+
property: string;
|
|
67
73
|
keyframes: {
|
|
68
74
|
time: number;
|
|
69
75
|
value: string | number;
|
|
@@ -88,9 +94,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
88
94
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
89
95
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
90
96
|
propertyAnimations: {
|
|
91
|
-
property: string;
|
|
92
97
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
93
98
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
99
|
+
property: string;
|
|
94
100
|
keyframes: {
|
|
95
101
|
time: number;
|
|
96
102
|
value: string | number;
|
|
@@ -153,9 +159,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
153
159
|
relativeProperty?: string | undefined;
|
|
154
160
|
}>, "many">;
|
|
155
161
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
property: string;
|
|
157
162
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
158
163
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
164
|
+
property: string;
|
|
159
165
|
keyframes: {
|
|
160
166
|
time: number;
|
|
161
167
|
value: string | number;
|
|
@@ -180,9 +186,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
180
186
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
181
187
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
182
188
|
propertyAnimations: {
|
|
183
|
-
property: string;
|
|
184
189
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
185
190
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
191
|
+
property: string;
|
|
186
192
|
keyframes: {
|
|
187
193
|
time: number;
|
|
188
194
|
value: string | number;
|
|
@@ -245,9 +251,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
245
251
|
relativeProperty?: string | undefined;
|
|
246
252
|
}>, "many">;
|
|
247
253
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
property: string;
|
|
249
254
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
250
255
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
256
|
+
property: string;
|
|
251
257
|
keyframes: {
|
|
252
258
|
time: number;
|
|
253
259
|
value: string | number;
|
|
@@ -272,9 +278,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
272
278
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
273
279
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
274
280
|
propertyAnimations: {
|
|
275
|
-
property: string;
|
|
276
281
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
277
282
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
283
|
+
property: string;
|
|
278
284
|
keyframes: {
|
|
279
285
|
time: number;
|
|
280
286
|
value: string | number;
|
|
@@ -316,9 +322,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
316
322
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
317
323
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
318
324
|
propertyAnimations: {
|
|
319
|
-
property: string;
|
|
320
325
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
321
326
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
327
|
+
property: string;
|
|
322
328
|
keyframes: {
|
|
323
329
|
time: number;
|
|
324
330
|
value: string | number;
|
|
@@ -336,9 +342,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
336
342
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
337
343
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
338
344
|
propertyAnimations: {
|
|
339
|
-
property: string;
|
|
340
345
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
341
346
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
347
|
+
property: string;
|
|
342
348
|
keyframes: {
|
|
343
349
|
time: number;
|
|
344
350
|
value: string | number;
|
|
@@ -356,9 +362,9 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
356
362
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
357
363
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
358
364
|
propertyAnimations: {
|
|
359
|
-
property: string;
|
|
360
365
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
361
366
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
367
|
+
property: string;
|
|
362
368
|
keyframes: {
|
|
363
369
|
time: number;
|
|
364
370
|
value: string | number;
|
|
@@ -462,20 +468,67 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
462
468
|
lutUrl: string;
|
|
463
469
|
}>;
|
|
464
470
|
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
id: string;
|
|
465
472
|
options: {
|
|
466
473
|
lutUrl: string;
|
|
467
474
|
};
|
|
468
|
-
id: string;
|
|
469
475
|
sourceId: string;
|
|
470
476
|
}, {
|
|
477
|
+
id: string;
|
|
471
478
|
options: {
|
|
472
479
|
lutUrl: string;
|
|
473
480
|
};
|
|
481
|
+
sourceId: string;
|
|
482
|
+
}>, "many">;
|
|
483
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
sourceId: z.ZodString;
|
|
486
|
+
options: z.ZodObject<{
|
|
487
|
+
fragmentSrc: z.ZodOptional<z.ZodString>;
|
|
488
|
+
uniforms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
489
|
+
textureWidth: z.ZodNumber;
|
|
490
|
+
textureHeight: z.ZodNumber;
|
|
491
|
+
frameWidth: z.ZodNumber;
|
|
492
|
+
frameHeight: z.ZodNumber;
|
|
493
|
+
}, "strip", z.ZodTypeAny, {
|
|
494
|
+
textureWidth: number;
|
|
495
|
+
textureHeight: number;
|
|
496
|
+
frameWidth: number;
|
|
497
|
+
frameHeight: number;
|
|
498
|
+
fragmentSrc?: string | undefined;
|
|
499
|
+
uniforms?: Record<string, unknown> | undefined;
|
|
500
|
+
}, {
|
|
501
|
+
textureWidth: number;
|
|
502
|
+
textureHeight: number;
|
|
503
|
+
frameWidth: number;
|
|
504
|
+
frameHeight: number;
|
|
505
|
+
fragmentSrc?: string | undefined;
|
|
506
|
+
uniforms?: Record<string, unknown> | undefined;
|
|
507
|
+
}>;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
id: string;
|
|
510
|
+
options: {
|
|
511
|
+
textureWidth: number;
|
|
512
|
+
textureHeight: number;
|
|
513
|
+
frameWidth: number;
|
|
514
|
+
frameHeight: number;
|
|
515
|
+
fragmentSrc?: string | undefined;
|
|
516
|
+
uniforms?: Record<string, unknown> | undefined;
|
|
517
|
+
};
|
|
518
|
+
sourceId: string;
|
|
519
|
+
}, {
|
|
474
520
|
id: string;
|
|
521
|
+
options: {
|
|
522
|
+
textureWidth: number;
|
|
523
|
+
textureHeight: number;
|
|
524
|
+
frameWidth: number;
|
|
525
|
+
frameHeight: number;
|
|
526
|
+
fragmentSrc?: string | undefined;
|
|
527
|
+
uniforms?: Record<string, unknown> | undefined;
|
|
528
|
+
};
|
|
475
529
|
sourceId: string;
|
|
476
530
|
}>, "many">;
|
|
477
|
-
|
|
478
|
-
warpMode: z.ZodNativeEnum<typeof WarpModeEnum>;
|
|
531
|
+
wrapMode: z.ZodOptional<z.ZodNativeEnum<typeof WrapModeEnum>>;
|
|
479
532
|
style: z.ZodUnknown;
|
|
480
533
|
text: z.ZodOptional<z.ZodString>;
|
|
481
534
|
animationController: z.ZodOptional<z.ZodObject<{
|
|
@@ -510,9 +563,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
510
563
|
relativeProperty?: string | undefined;
|
|
511
564
|
}>, "many">;
|
|
512
565
|
}, "strip", z.ZodTypeAny, {
|
|
513
|
-
property: string;
|
|
514
566
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
515
567
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
568
|
+
property: string;
|
|
516
569
|
keyframes: {
|
|
517
570
|
time: number;
|
|
518
571
|
value: string | number;
|
|
@@ -537,9 +590,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
537
590
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
538
591
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
539
592
|
propertyAnimations: {
|
|
540
|
-
property: string;
|
|
541
593
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
542
594
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
595
|
+
property: string;
|
|
543
596
|
keyframes: {
|
|
544
597
|
time: number;
|
|
545
598
|
value: string | number;
|
|
@@ -602,9 +655,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
602
655
|
relativeProperty?: string | undefined;
|
|
603
656
|
}>, "many">;
|
|
604
657
|
}, "strip", z.ZodTypeAny, {
|
|
605
|
-
property: string;
|
|
606
658
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
607
659
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
660
|
+
property: string;
|
|
608
661
|
keyframes: {
|
|
609
662
|
time: number;
|
|
610
663
|
value: string | number;
|
|
@@ -629,9 +682,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
629
682
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
630
683
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
631
684
|
propertyAnimations: {
|
|
632
|
-
property: string;
|
|
633
685
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
634
686
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
687
|
+
property: string;
|
|
635
688
|
keyframes: {
|
|
636
689
|
time: number;
|
|
637
690
|
value: string | number;
|
|
@@ -694,9 +747,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
694
747
|
relativeProperty?: string | undefined;
|
|
695
748
|
}>, "many">;
|
|
696
749
|
}, "strip", z.ZodTypeAny, {
|
|
697
|
-
property: string;
|
|
698
750
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
699
751
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
752
|
+
property: string;
|
|
700
753
|
keyframes: {
|
|
701
754
|
time: number;
|
|
702
755
|
value: string | number;
|
|
@@ -721,9 +774,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
721
774
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
722
775
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
723
776
|
propertyAnimations: {
|
|
724
|
-
property: string;
|
|
725
777
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
726
778
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
779
|
+
property: string;
|
|
727
780
|
keyframes: {
|
|
728
781
|
time: number;
|
|
729
782
|
value: string | number;
|
|
@@ -765,9 +818,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
765
818
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
766
819
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
767
820
|
propertyAnimations: {
|
|
768
|
-
property: string;
|
|
769
821
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
770
822
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
823
|
+
property: string;
|
|
771
824
|
keyframes: {
|
|
772
825
|
time: number;
|
|
773
826
|
value: string | number;
|
|
@@ -785,9 +838,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
785
838
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
786
839
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
787
840
|
propertyAnimations: {
|
|
788
|
-
property: string;
|
|
789
841
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
790
842
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
843
|
+
property: string;
|
|
791
844
|
keyframes: {
|
|
792
845
|
time: number;
|
|
793
846
|
value: string | number;
|
|
@@ -805,9 +858,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
805
858
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
806
859
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
807
860
|
propertyAnimations: {
|
|
808
|
-
property: string;
|
|
809
861
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
810
862
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
863
|
+
property: string;
|
|
811
864
|
keyframes: {
|
|
812
865
|
time: number;
|
|
813
866
|
value: string | number;
|
|
@@ -891,25 +944,51 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
891
944
|
loopSmoothing?: number | undefined;
|
|
892
945
|
}>>;
|
|
893
946
|
customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
|
|
947
|
+
isVisible: z.ZodDefault<z.ZodBoolean>;
|
|
948
|
+
clipMasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
949
|
+
id: z.ZodString;
|
|
950
|
+
clipId: z.ZodString;
|
|
951
|
+
wrapMode: z.ZodDefault<z.ZodNativeEnum<typeof MaskWrapModeEnum>>;
|
|
952
|
+
}, "strict", z.ZodTypeAny, {
|
|
953
|
+
id: string;
|
|
954
|
+
clipId: string;
|
|
955
|
+
wrapMode: MaskWrapModeEnum;
|
|
956
|
+
}, {
|
|
957
|
+
id: string;
|
|
958
|
+
clipId: string;
|
|
959
|
+
wrapMode?: MaskWrapModeEnum | undefined;
|
|
960
|
+
}>, "many">>;
|
|
894
961
|
}, "strip", z.ZodTypeAny, {
|
|
895
962
|
type: string;
|
|
896
963
|
id: string;
|
|
964
|
+
duration: number;
|
|
965
|
+
subtitlesOffset: number;
|
|
966
|
+
startTime: number;
|
|
967
|
+
leftTrim: number;
|
|
968
|
+
rightTrim: number;
|
|
897
969
|
filters: {
|
|
970
|
+
id: string;
|
|
898
971
|
options: {
|
|
899
972
|
lutUrl: string;
|
|
900
973
|
};
|
|
974
|
+
sourceId: string;
|
|
975
|
+
}[];
|
|
976
|
+
effects: {
|
|
901
977
|
id: string;
|
|
978
|
+
options: {
|
|
979
|
+
textureWidth: number;
|
|
980
|
+
textureHeight: number;
|
|
981
|
+
frameWidth: number;
|
|
982
|
+
frameHeight: number;
|
|
983
|
+
fragmentSrc?: string | undefined;
|
|
984
|
+
uniforms?: Record<string, unknown> | undefined;
|
|
985
|
+
};
|
|
902
986
|
sourceId: string;
|
|
903
987
|
}[];
|
|
904
|
-
|
|
905
|
-
subtitlesOffset: number;
|
|
906
|
-
startTime: number;
|
|
907
|
-
duration: number;
|
|
908
|
-
leftTrim: number;
|
|
909
|
-
rightTrim: number;
|
|
910
|
-
warpMode: WarpModeEnum;
|
|
988
|
+
isVisible: boolean;
|
|
911
989
|
mediaDataId?: string | undefined;
|
|
912
990
|
subtitlesId?: string | undefined;
|
|
991
|
+
wrapMode?: WrapModeEnum | undefined;
|
|
913
992
|
style?: unknown;
|
|
914
993
|
text?: string | undefined;
|
|
915
994
|
animationController?: {
|
|
@@ -918,9 +997,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
918
997
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
919
998
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
920
999
|
propertyAnimations: {
|
|
921
|
-
property: string;
|
|
922
1000
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
923
1001
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1002
|
+
property: string;
|
|
924
1003
|
keyframes: {
|
|
925
1004
|
time: number;
|
|
926
1005
|
value: string | number;
|
|
@@ -938,9 +1017,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
938
1017
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
939
1018
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
940
1019
|
propertyAnimations: {
|
|
941
|
-
property: string;
|
|
942
1020
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
943
1021
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1022
|
+
property: string;
|
|
944
1023
|
keyframes: {
|
|
945
1024
|
time: number;
|
|
946
1025
|
value: string | number;
|
|
@@ -958,9 +1037,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
958
1037
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
959
1038
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
960
1039
|
propertyAnimations: {
|
|
961
|
-
property: string;
|
|
962
1040
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
963
1041
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1042
|
+
property: string;
|
|
964
1043
|
keyframes: {
|
|
965
1044
|
time: number;
|
|
966
1045
|
value: string | number;
|
|
@@ -979,25 +1058,41 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
979
1058
|
loopSmoothing?: number | undefined;
|
|
980
1059
|
} | undefined;
|
|
981
1060
|
customData?: [string, unknown][] | undefined;
|
|
1061
|
+
clipMasks?: {
|
|
1062
|
+
id: string;
|
|
1063
|
+
clipId: string;
|
|
1064
|
+
wrapMode: MaskWrapModeEnum;
|
|
1065
|
+
}[] | undefined;
|
|
982
1066
|
}, {
|
|
983
1067
|
type: string;
|
|
984
1068
|
id: string;
|
|
1069
|
+
duration: number;
|
|
1070
|
+
subtitlesOffset: number;
|
|
1071
|
+
startTime: number;
|
|
1072
|
+
leftTrim: number;
|
|
1073
|
+
rightTrim: number;
|
|
985
1074
|
filters: {
|
|
1075
|
+
id: string;
|
|
986
1076
|
options: {
|
|
987
1077
|
lutUrl: string;
|
|
988
1078
|
};
|
|
1079
|
+
sourceId: string;
|
|
1080
|
+
}[];
|
|
1081
|
+
effects: {
|
|
989
1082
|
id: string;
|
|
1083
|
+
options: {
|
|
1084
|
+
textureWidth: number;
|
|
1085
|
+
textureHeight: number;
|
|
1086
|
+
frameWidth: number;
|
|
1087
|
+
frameHeight: number;
|
|
1088
|
+
fragmentSrc?: string | undefined;
|
|
1089
|
+
uniforms?: Record<string, unknown> | undefined;
|
|
1090
|
+
};
|
|
990
1091
|
sourceId: string;
|
|
991
1092
|
}[];
|
|
992
|
-
effects: unknown[];
|
|
993
|
-
subtitlesOffset: number;
|
|
994
|
-
startTime: number;
|
|
995
|
-
duration: number;
|
|
996
|
-
leftTrim: number;
|
|
997
|
-
rightTrim: number;
|
|
998
|
-
warpMode: WarpModeEnum;
|
|
999
1093
|
mediaDataId?: string | undefined;
|
|
1000
1094
|
subtitlesId?: string | undefined;
|
|
1095
|
+
wrapMode?: WrapModeEnum | undefined;
|
|
1001
1096
|
style?: unknown;
|
|
1002
1097
|
text?: string | undefined;
|
|
1003
1098
|
animationController?: {
|
|
@@ -1067,6 +1162,12 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1067
1162
|
loopSmoothing?: number | undefined;
|
|
1068
1163
|
} | undefined;
|
|
1069
1164
|
customData?: [string, unknown][] | undefined;
|
|
1165
|
+
isVisible?: boolean | undefined;
|
|
1166
|
+
clipMasks?: {
|
|
1167
|
+
id: string;
|
|
1168
|
+
clipId: string;
|
|
1169
|
+
wrapMode?: MaskWrapModeEnum | undefined;
|
|
1170
|
+
}[] | undefined;
|
|
1070
1171
|
}>;
|
|
1071
1172
|
export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipStyle = ClipStyle> {
|
|
1072
1173
|
id: string;
|
|
@@ -1076,7 +1177,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1076
1177
|
protected rightTrim: number;
|
|
1077
1178
|
protected filters: Filter[];
|
|
1078
1179
|
protected effects: Effect[];
|
|
1079
|
-
protected
|
|
1180
|
+
protected wrapMode: WrapModeEnum;
|
|
1080
1181
|
protected isBuffering: boolean;
|
|
1081
1182
|
protected mediaDataId?: string;
|
|
1082
1183
|
protected subtitlesId?: string;
|
|
@@ -1084,12 +1185,16 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1084
1185
|
protected type: string;
|
|
1085
1186
|
protected hasTransition: boolean;
|
|
1086
1187
|
protected customData?: Map<string, unknown>;
|
|
1188
|
+
protected maskFilters: MaskFilter[];
|
|
1189
|
+
protected maskTargetClipIds: string[];
|
|
1190
|
+
protected isVisible: boolean;
|
|
1087
1191
|
sprite: T;
|
|
1088
1192
|
style: K;
|
|
1089
1193
|
state: ClipState;
|
|
1194
|
+
protected clipMasksLazyDeserialize: z.infer<typeof MaskFilterSchema>[];
|
|
1090
1195
|
private AnimationClass;
|
|
1091
1196
|
readonly animationController: InstanceType<typeof this.AnimationClass>;
|
|
1092
|
-
constructor(options: ClipOptions
|
|
1197
|
+
constructor(options: ClipOptions);
|
|
1093
1198
|
init(layerId: string): Promise<void>;
|
|
1094
1199
|
resetAllAnimationProperties(): void;
|
|
1095
1200
|
protected setAnimationPropertyValue(property: string, value: any): void;
|
|
@@ -1112,6 +1217,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1112
1217
|
getTrimmedDuration(): number;
|
|
1113
1218
|
getFilters(): Filter[];
|
|
1114
1219
|
getEffects(): Effect[];
|
|
1220
|
+
getMasks(): MaskFilter[];
|
|
1115
1221
|
moveBy(amount: number): void;
|
|
1116
1222
|
getType(): string;
|
|
1117
1223
|
generateNewId(): void;
|
|
@@ -1140,37 +1246,58 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1140
1246
|
setSubtitles(subtitlesId: string, offset?: number): void;
|
|
1141
1247
|
removeSubtitles(): void;
|
|
1142
1248
|
getSubtitlesId(): string | undefined;
|
|
1249
|
+
setSubtitlesId(subtitlesId: string): void;
|
|
1143
1250
|
getSubtitlesOffset(): number;
|
|
1144
1251
|
setSubtitlesOffset(offset: number): void;
|
|
1145
1252
|
render(currentTime: number): null;
|
|
1146
1253
|
private processUpdate;
|
|
1147
1254
|
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
1255
|
+
private addMaskTarget;
|
|
1256
|
+
private removeMaskTarget;
|
|
1257
|
+
protected maskTextureUpdated(): void;
|
|
1258
|
+
protected maskSpriteUpdated(): void;
|
|
1259
|
+
addClipMask(clip: Clip, options?: MaskOptions): MaskFilter | undefined;
|
|
1260
|
+
removeClipMask(clip: Clip): void;
|
|
1261
|
+
setVisible(visible: boolean): void;
|
|
1262
|
+
getVisible(): boolean;
|
|
1148
1263
|
private updatePIXIFilters;
|
|
1149
1264
|
hasSprite(): boolean;
|
|
1150
1265
|
update(currentTime: number): void;
|
|
1151
1266
|
preload(currentTime: number): void;
|
|
1152
1267
|
offload(): void;
|
|
1153
1268
|
clone(): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
|
|
1154
|
-
protected
|
|
1269
|
+
protected postRendererInit(): void;
|
|
1155
1270
|
serialize(): {
|
|
1156
1271
|
type: string;
|
|
1157
1272
|
id: string;
|
|
1273
|
+
duration: number;
|
|
1274
|
+
subtitlesOffset: number;
|
|
1275
|
+
startTime: number;
|
|
1276
|
+
leftTrim: number;
|
|
1277
|
+
rightTrim: number;
|
|
1158
1278
|
filters: {
|
|
1279
|
+
id: string;
|
|
1159
1280
|
options: {
|
|
1160
1281
|
lutUrl: string;
|
|
1161
1282
|
};
|
|
1283
|
+
sourceId: string;
|
|
1284
|
+
}[];
|
|
1285
|
+
effects: {
|
|
1162
1286
|
id: string;
|
|
1287
|
+
options: {
|
|
1288
|
+
textureWidth: number;
|
|
1289
|
+
textureHeight: number;
|
|
1290
|
+
frameWidth: number;
|
|
1291
|
+
frameHeight: number;
|
|
1292
|
+
fragmentSrc?: string | undefined;
|
|
1293
|
+
uniforms?: Record<string, unknown> | undefined;
|
|
1294
|
+
};
|
|
1163
1295
|
sourceId: string;
|
|
1164
1296
|
}[];
|
|
1165
|
-
|
|
1166
|
-
subtitlesOffset: number;
|
|
1167
|
-
startTime: number;
|
|
1168
|
-
duration: number;
|
|
1169
|
-
leftTrim: number;
|
|
1170
|
-
rightTrim: number;
|
|
1171
|
-
warpMode: WarpModeEnum;
|
|
1297
|
+
isVisible: boolean;
|
|
1172
1298
|
mediaDataId?: string | undefined;
|
|
1173
1299
|
subtitlesId?: string | undefined;
|
|
1300
|
+
wrapMode?: WrapModeEnum | undefined;
|
|
1174
1301
|
style?: unknown;
|
|
1175
1302
|
text?: string | undefined;
|
|
1176
1303
|
animationController?: {
|
|
@@ -1179,9 +1306,9 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1179
1306
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1180
1307
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1181
1308
|
propertyAnimations: {
|
|
1182
|
-
property: string;
|
|
1183
1309
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1184
1310
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1311
|
+
property: string;
|
|
1185
1312
|
keyframes: {
|
|
1186
1313
|
time: number;
|
|
1187
1314
|
value: string | number;
|
|
@@ -1199,9 +1326,9 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1199
1326
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1200
1327
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1201
1328
|
propertyAnimations: {
|
|
1202
|
-
property: string;
|
|
1203
1329
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1204
1330
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1331
|
+
property: string;
|
|
1205
1332
|
keyframes: {
|
|
1206
1333
|
time: number;
|
|
1207
1334
|
value: string | number;
|
|
@@ -1219,9 +1346,9 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1219
1346
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1220
1347
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1221
1348
|
propertyAnimations: {
|
|
1222
|
-
property: string;
|
|
1223
1349
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1224
1350
|
outOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
1351
|
+
property: string;
|
|
1225
1352
|
keyframes: {
|
|
1226
1353
|
time: number;
|
|
1227
1354
|
value: string | number;
|
|
@@ -1240,6 +1367,11 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1240
1367
|
loopSmoothing?: number | undefined;
|
|
1241
1368
|
} | undefined;
|
|
1242
1369
|
customData?: [string, unknown][] | undefined;
|
|
1370
|
+
clipMasks?: {
|
|
1371
|
+
id: string;
|
|
1372
|
+
clipId: string;
|
|
1373
|
+
wrapMode: MaskWrapModeEnum;
|
|
1374
|
+
}[] | undefined;
|
|
1243
1375
|
};
|
|
1244
1376
|
protected postDeserialize(validatedData: z.infer<typeof ClipSchema>): void;
|
|
1245
1377
|
static deserialize(data: object): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
|
|
@@ -13,7 +13,7 @@ export interface ClipStyleOptions {
|
|
|
13
13
|
cornerRadius?: [number, number, number, number];
|
|
14
14
|
relativeCornerRadius?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const ClipStyleSchema: z.ZodObject<{
|
|
17
17
|
clipId: z.ZodString;
|
|
18
18
|
mediaDataId: z.ZodOptional<z.ZodString>;
|
|
19
19
|
alpha: z.ZodNumber;
|
|
@@ -61,14 +61,15 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
61
61
|
protected cornerRadius: number[];
|
|
62
62
|
protected relativeCornerRadius: boolean;
|
|
63
63
|
protected sprite: T | null;
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
protected clipId: string;
|
|
65
|
+
protected mediaDataId: string | undefined;
|
|
66
66
|
protected mask: PIXI.Graphics | null;
|
|
67
67
|
protected animationPositionOffset: [number, number];
|
|
68
68
|
protected animationScaleMultiplier: [number, number];
|
|
69
69
|
protected animationRotationOffset: number;
|
|
70
70
|
protected animationAlphaMultiplier: number;
|
|
71
71
|
private lastCornerRadius;
|
|
72
|
+
private lastCornerSize;
|
|
72
73
|
private lastCornerScale;
|
|
73
74
|
private lastRelativeCornerRadius;
|
|
74
75
|
constructor(options: ClipStyleOptions);
|
|
@@ -77,6 +78,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
77
78
|
replaceMediaDataId(mediaDataId: string): void;
|
|
78
79
|
setCornerRadius(radii: number | [number, number, number, number], relative?: boolean): void;
|
|
79
80
|
getCornerRadius(): number[];
|
|
81
|
+
getCornerRadiusRelative(): boolean;
|
|
80
82
|
setScale(scaleX: number, scaleY: number): void;
|
|
81
83
|
getScale(): [number, number];
|
|
82
84
|
setAnimationScaleMultiplier(multiplierX: number, multiplierY: number): void;
|
|
@@ -101,8 +103,8 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
101
103
|
getZIndex(): number;
|
|
102
104
|
load(sprite: T): void;
|
|
103
105
|
update(sprite: T): void;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
protected setCornerRadiusOnSprite(sprite: T): void;
|
|
107
|
+
protected updateMask(sprite: T): void;
|
|
106
108
|
protected emitUpdateEvent(property: string, value: unknown): boolean;
|
|
107
109
|
destroy(): void;
|
|
108
110
|
serialize(): {
|