@rendley/sdk 1.2.0 → 1.2.2
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/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +11 -1
- package/dist/modules/clip/ClipStyle.d.ts +6 -2
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +1 -0
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +19 -18
- package/dist/modules/clip/clips/gif/GifClip.d.ts +1 -0
- package/dist/modules/clip/clips/image/ImageClip.d.ts +1 -0
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +19 -18
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +19 -18
- package/dist/modules/clip/clips/text/TextClip.d.ts +25 -19
- package/dist/modules/clip/clips/video/VideoClip.d.ts +1 -0
- package/dist/modules/display/utils/WebCodecsVideoFrameResource.d.ts +3 -1
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +4 -0
- package/dist/modules/library/Library.d.ts +1 -0
- package/dist/modules/library/MediaData.d.ts +1 -1
- package/package.json +1 -1
|
@@ -308,6 +308,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
308
308
|
animationInDuration: z.ZodOptional<z.ZodNumber>;
|
|
309
309
|
animationOutDuration: z.ZodOptional<z.ZodNumber>;
|
|
310
310
|
animationLoopCount: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
loopSmoothing: z.ZodOptional<z.ZodNumber>;
|
|
311
312
|
}, "strip", z.ZodTypeAny, {
|
|
312
313
|
animationDataIn?: {
|
|
313
314
|
name: string;
|
|
@@ -372,6 +373,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
372
373
|
animationInDuration?: number | undefined;
|
|
373
374
|
animationOutDuration?: number | undefined;
|
|
374
375
|
animationLoopCount?: number | undefined;
|
|
376
|
+
loopSmoothing?: number | undefined;
|
|
375
377
|
}, {
|
|
376
378
|
animationDataIn?: {
|
|
377
379
|
name: string;
|
|
@@ -436,6 +438,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
436
438
|
animationInDuration?: number | undefined;
|
|
437
439
|
animationOutDuration?: number | undefined;
|
|
438
440
|
animationLoopCount?: number | undefined;
|
|
441
|
+
loopSmoothing?: number | undefined;
|
|
439
442
|
}>;
|
|
440
443
|
export declare const ClipSchema: z.ZodObject<{
|
|
441
444
|
id: z.ZodString;
|
|
@@ -754,6 +757,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
754
757
|
animationInDuration: z.ZodOptional<z.ZodNumber>;
|
|
755
758
|
animationOutDuration: z.ZodOptional<z.ZodNumber>;
|
|
756
759
|
animationLoopCount: z.ZodOptional<z.ZodNumber>;
|
|
760
|
+
loopSmoothing: z.ZodOptional<z.ZodNumber>;
|
|
757
761
|
}, "strip", z.ZodTypeAny, {
|
|
758
762
|
animationDataIn?: {
|
|
759
763
|
name: string;
|
|
@@ -818,6 +822,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
818
822
|
animationInDuration?: number | undefined;
|
|
819
823
|
animationOutDuration?: number | undefined;
|
|
820
824
|
animationLoopCount?: number | undefined;
|
|
825
|
+
loopSmoothing?: number | undefined;
|
|
821
826
|
}, {
|
|
822
827
|
animationDataIn?: {
|
|
823
828
|
name: string;
|
|
@@ -882,6 +887,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
882
887
|
animationInDuration?: number | undefined;
|
|
883
888
|
animationOutDuration?: number | undefined;
|
|
884
889
|
animationLoopCount?: number | undefined;
|
|
890
|
+
loopSmoothing?: number | undefined;
|
|
885
891
|
}>>;
|
|
886
892
|
}, "strip", z.ZodTypeAny, {
|
|
887
893
|
type: string;
|
|
@@ -968,6 +974,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
968
974
|
animationInDuration?: number | undefined;
|
|
969
975
|
animationOutDuration?: number | undefined;
|
|
970
976
|
animationLoopCount?: number | undefined;
|
|
977
|
+
loopSmoothing?: number | undefined;
|
|
971
978
|
} | undefined;
|
|
972
979
|
}, {
|
|
973
980
|
type: string;
|
|
@@ -1054,6 +1061,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1054
1061
|
animationInDuration?: number | undefined;
|
|
1055
1062
|
animationOutDuration?: number | undefined;
|
|
1056
1063
|
animationLoopCount?: number | undefined;
|
|
1064
|
+
loopSmoothing?: number | undefined;
|
|
1057
1065
|
} | undefined;
|
|
1058
1066
|
}>;
|
|
1059
1067
|
export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipStyle = ClipStyle> {
|
|
@@ -1075,7 +1083,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1075
1083
|
style: K;
|
|
1076
1084
|
state: ClipState;
|
|
1077
1085
|
private AnimationClass;
|
|
1078
|
-
animationController: InstanceType<typeof this.AnimationClass>;
|
|
1086
|
+
readonly animationController: InstanceType<typeof this.AnimationClass>;
|
|
1079
1087
|
constructor(options: ClipOptions<K>);
|
|
1080
1088
|
init(layerId: string): Promise<void>;
|
|
1081
1089
|
resetAllAnimationProperties(): void;
|
|
@@ -1125,6 +1133,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1125
1133
|
render(currentTime: number): null;
|
|
1126
1134
|
private processUpdate;
|
|
1127
1135
|
getSubtitleText(currentTime: number): string | undefined;
|
|
1136
|
+
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
1128
1137
|
private updatePIXIFilters;
|
|
1129
1138
|
hasSprite(): boolean;
|
|
1130
1139
|
update(currentTime: number): void;
|
|
@@ -1217,6 +1226,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1217
1226
|
animationInDuration?: number | undefined;
|
|
1218
1227
|
animationOutDuration?: number | undefined;
|
|
1219
1228
|
animationLoopCount?: number | undefined;
|
|
1229
|
+
loopSmoothing?: number | undefined;
|
|
1220
1230
|
} | undefined;
|
|
1221
1231
|
};
|
|
1222
1232
|
static deserialize(data: object): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
|
|
@@ -67,9 +67,11 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
67
67
|
protected animationPositionOffset: [number, number];
|
|
68
68
|
protected animationScaleMultiplier: [number, number];
|
|
69
69
|
protected animationRotationOffset: number;
|
|
70
|
+
protected animationAlphaMultiplier: number;
|
|
70
71
|
constructor(options: ClipStyleOptions);
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
positionToCenter(): void;
|
|
73
|
+
scaleDownToFit(): void;
|
|
74
|
+
replaceMediaDataId(mediaDataId: string): void;
|
|
73
75
|
setCornerRadius(radii: number | [number, number, number, number], relative?: boolean): void;
|
|
74
76
|
getCornerRadius(): number[];
|
|
75
77
|
setScale(scaleX: number, scaleY: number): void;
|
|
@@ -82,6 +84,8 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
82
84
|
getRawHeight(): number;
|
|
83
85
|
setAlpha(alpha: number): void;
|
|
84
86
|
getAlpha(): number;
|
|
87
|
+
setAnimationAlphaMultiplier(alpha: number): void;
|
|
88
|
+
getAnimationAlphaMultiplier(): number;
|
|
85
89
|
setRotation(rotation: number): void;
|
|
86
90
|
getRotation(): number;
|
|
87
91
|
setAnimationRotationOffset(rotation: number): void;
|
|
@@ -15,6 +15,7 @@ export declare class AudioClip extends Clip {
|
|
|
15
15
|
init(layerId: string): Promise<void>;
|
|
16
16
|
private getGlobalTimeToClipTime;
|
|
17
17
|
getIsProcessing(): boolean;
|
|
18
|
+
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
18
19
|
preload(currentTime: number): void;
|
|
19
20
|
addActionToQueue(action: string, params?: object): void;
|
|
20
21
|
processNextQueue(): void;
|
|
@@ -32,17 +32,17 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
32
32
|
animationController?: {
|
|
33
33
|
animationDataIn?: {
|
|
34
34
|
name: string;
|
|
35
|
-
inOutOfRange: import(
|
|
36
|
-
outOutOfRange: import(
|
|
35
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
36
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
37
37
|
propertyAnimations: {
|
|
38
38
|
property: string;
|
|
39
|
-
inOutOfRange: import(
|
|
40
|
-
outOutOfRange: import(
|
|
39
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
40
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
41
41
|
keyframes: {
|
|
42
42
|
time: number;
|
|
43
43
|
value: string | number;
|
|
44
|
-
easing: import(
|
|
45
|
-
space: import(
|
|
44
|
+
easing: import('../../../../index').EasingEnum;
|
|
45
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
46
46
|
relativeProperty?: string | undefined;
|
|
47
47
|
}[];
|
|
48
48
|
}[];
|
|
@@ -52,17 +52,17 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
52
52
|
} | undefined;
|
|
53
53
|
animationDataOut?: {
|
|
54
54
|
name: string;
|
|
55
|
-
inOutOfRange: import(
|
|
56
|
-
outOutOfRange: import(
|
|
55
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
56
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
57
57
|
propertyAnimations: {
|
|
58
58
|
property: string;
|
|
59
|
-
inOutOfRange: import(
|
|
60
|
-
outOutOfRange: import(
|
|
59
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
60
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
61
61
|
keyframes: {
|
|
62
62
|
time: number;
|
|
63
63
|
value: string | number;
|
|
64
|
-
easing: import(
|
|
65
|
-
space: import(
|
|
64
|
+
easing: import('../../../../index').EasingEnum;
|
|
65
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
66
66
|
relativeProperty?: string | undefined;
|
|
67
67
|
}[];
|
|
68
68
|
}[];
|
|
@@ -72,17 +72,17 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
72
72
|
} | undefined;
|
|
73
73
|
animationDataLoop?: {
|
|
74
74
|
name: string;
|
|
75
|
-
inOutOfRange: import(
|
|
76
|
-
outOutOfRange: import(
|
|
75
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
76
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
77
77
|
propertyAnimations: {
|
|
78
78
|
property: string;
|
|
79
|
-
inOutOfRange: import(
|
|
80
|
-
outOutOfRange: import(
|
|
79
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
80
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
81
81
|
keyframes: {
|
|
82
82
|
time: number;
|
|
83
83
|
value: string | number;
|
|
84
|
-
easing: import(
|
|
85
|
-
space: import(
|
|
84
|
+
easing: import('../../../../index').EasingEnum;
|
|
85
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
86
86
|
relativeProperty?: string | undefined;
|
|
87
87
|
}[];
|
|
88
88
|
}[];
|
|
@@ -93,6 +93,7 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
93
93
|
animationInDuration?: number | undefined;
|
|
94
94
|
animationOutDuration?: number | undefined;
|
|
95
95
|
animationLoopCount?: number | undefined;
|
|
96
|
+
loopSmoothing?: number | undefined;
|
|
96
97
|
} | undefined;
|
|
97
98
|
};
|
|
98
99
|
static deserialize(payload: object): CustomClip;
|
|
@@ -13,6 +13,7 @@ export declare class GifClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
|
|
|
13
13
|
constructor(options: GifClipOptions);
|
|
14
14
|
init(layerId: string): Promise<void>;
|
|
15
15
|
private getGlobalTimeToClipTime;
|
|
16
|
+
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
16
17
|
preload(currentTime: number): void;
|
|
17
18
|
private play;
|
|
18
19
|
private pause;
|
|
@@ -7,6 +7,7 @@ export interface ImageClipOptions extends ClipOptions<ClipStyle> {
|
|
|
7
7
|
export declare class ImageClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
|
|
8
8
|
constructor(options: ImageClipOptions);
|
|
9
9
|
init(layerId: string): Promise<void>;
|
|
10
|
+
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
10
11
|
preload(currentTime: number): void;
|
|
11
12
|
updateVisibility(currentTime: number): void;
|
|
12
13
|
update(currentTime: number): void;
|
|
@@ -95,17 +95,17 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
95
95
|
animationController?: {
|
|
96
96
|
animationDataIn?: {
|
|
97
97
|
name: string;
|
|
98
|
-
inOutOfRange: import("
|
|
99
|
-
outOutOfRange: import("
|
|
98
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
99
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
100
100
|
propertyAnimations: {
|
|
101
101
|
property: string;
|
|
102
|
-
inOutOfRange: import("
|
|
103
|
-
outOutOfRange: import("
|
|
102
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
103
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
104
104
|
keyframes: {
|
|
105
105
|
time: number;
|
|
106
106
|
value: string | number;
|
|
107
|
-
easing: import("
|
|
108
|
-
space: import("
|
|
107
|
+
easing: import("../../../..").EasingEnum;
|
|
108
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
109
109
|
relativeProperty?: string | undefined;
|
|
110
110
|
}[];
|
|
111
111
|
}[];
|
|
@@ -115,17 +115,17 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
115
115
|
} | undefined;
|
|
116
116
|
animationDataOut?: {
|
|
117
117
|
name: string;
|
|
118
|
-
inOutOfRange: import("
|
|
119
|
-
outOutOfRange: import("
|
|
118
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
119
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
120
120
|
propertyAnimations: {
|
|
121
121
|
property: string;
|
|
122
|
-
inOutOfRange: import("
|
|
123
|
-
outOutOfRange: import("
|
|
122
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
123
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
124
124
|
keyframes: {
|
|
125
125
|
time: number;
|
|
126
126
|
value: string | number;
|
|
127
|
-
easing: import("
|
|
128
|
-
space: import("
|
|
127
|
+
easing: import("../../../..").EasingEnum;
|
|
128
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
129
129
|
relativeProperty?: string | undefined;
|
|
130
130
|
}[];
|
|
131
131
|
}[];
|
|
@@ -135,17 +135,17 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
135
135
|
} | undefined;
|
|
136
136
|
animationDataLoop?: {
|
|
137
137
|
name: string;
|
|
138
|
-
inOutOfRange: import("
|
|
139
|
-
outOutOfRange: import("
|
|
138
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
139
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
140
140
|
propertyAnimations: {
|
|
141
141
|
property: string;
|
|
142
|
-
inOutOfRange: import("
|
|
143
|
-
outOutOfRange: import("
|
|
142
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
143
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
144
144
|
keyframes: {
|
|
145
145
|
time: number;
|
|
146
146
|
value: string | number;
|
|
147
|
-
easing: import("
|
|
148
|
-
space: import("
|
|
147
|
+
easing: import("../../../..").EasingEnum;
|
|
148
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
149
149
|
relativeProperty?: string | undefined;
|
|
150
150
|
}[];
|
|
151
151
|
}[];
|
|
@@ -156,6 +156,7 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
156
156
|
animationInDuration?: number | undefined;
|
|
157
157
|
animationOutDuration?: number | undefined;
|
|
158
158
|
animationLoopCount?: number | undefined;
|
|
159
|
+
loopSmoothing?: number | undefined;
|
|
159
160
|
} | undefined;
|
|
160
161
|
assetsUrl?: string | undefined;
|
|
161
162
|
propertiesUrl?: string | undefined;
|
|
@@ -39,17 +39,17 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
39
39
|
animationController?: {
|
|
40
40
|
animationDataIn?: {
|
|
41
41
|
name: string;
|
|
42
|
-
inOutOfRange: import("
|
|
43
|
-
outOutOfRange: import("
|
|
42
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
43
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
44
44
|
propertyAnimations: {
|
|
45
45
|
property: string;
|
|
46
|
-
inOutOfRange: import("
|
|
47
|
-
outOutOfRange: import("
|
|
46
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
47
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
48
48
|
keyframes: {
|
|
49
49
|
time: number;
|
|
50
50
|
value: string | number;
|
|
51
|
-
easing: import("
|
|
52
|
-
space: import("
|
|
51
|
+
easing: import("../../../..").EasingEnum;
|
|
52
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
53
53
|
relativeProperty?: string | undefined;
|
|
54
54
|
}[];
|
|
55
55
|
}[];
|
|
@@ -59,17 +59,17 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
59
59
|
} | undefined;
|
|
60
60
|
animationDataOut?: {
|
|
61
61
|
name: string;
|
|
62
|
-
inOutOfRange: import("
|
|
63
|
-
outOutOfRange: import("
|
|
62
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
63
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
64
64
|
propertyAnimations: {
|
|
65
65
|
property: string;
|
|
66
|
-
inOutOfRange: import("
|
|
67
|
-
outOutOfRange: import("
|
|
66
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
67
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
68
68
|
keyframes: {
|
|
69
69
|
time: number;
|
|
70
70
|
value: string | number;
|
|
71
|
-
easing: import("
|
|
72
|
-
space: import("
|
|
71
|
+
easing: import("../../../..").EasingEnum;
|
|
72
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
73
73
|
relativeProperty?: string | undefined;
|
|
74
74
|
}[];
|
|
75
75
|
}[];
|
|
@@ -79,17 +79,17 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
79
79
|
} | undefined;
|
|
80
80
|
animationDataLoop?: {
|
|
81
81
|
name: string;
|
|
82
|
-
inOutOfRange: import("
|
|
83
|
-
outOutOfRange: import("
|
|
82
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
83
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
84
84
|
propertyAnimations: {
|
|
85
85
|
property: string;
|
|
86
|
-
inOutOfRange: import("
|
|
87
|
-
outOutOfRange: import("
|
|
86
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
87
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
88
88
|
keyframes: {
|
|
89
89
|
time: number;
|
|
90
90
|
value: string | number;
|
|
91
|
-
easing: import("
|
|
92
|
-
space: import("
|
|
91
|
+
easing: import("../../../..").EasingEnum;
|
|
92
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
93
93
|
relativeProperty?: string | undefined;
|
|
94
94
|
}[];
|
|
95
95
|
}[];
|
|
@@ -100,6 +100,7 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
100
100
|
animationInDuration?: number | undefined;
|
|
101
101
|
animationOutDuration?: number | undefined;
|
|
102
102
|
animationLoopCount?: number | undefined;
|
|
103
|
+
loopSmoothing?: number | undefined;
|
|
103
104
|
} | undefined;
|
|
104
105
|
};
|
|
105
106
|
static deserialize(payload: object): ShapeClip;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextSprite } from "./TextSprite";
|
|
2
2
|
import { TextStyle } from "./TextStyle";
|
|
3
|
-
import { Clip, ClipOptions } from "../../Clip";
|
|
3
|
+
import { /*AnimationTypeEnum,*/ Clip, ClipOptions } from "../../Clip";
|
|
4
4
|
export interface TextClipOptions extends ClipOptions<TextStyle> {
|
|
5
5
|
text?: string;
|
|
6
6
|
}
|
|
@@ -9,9 +9,14 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
9
9
|
constructor(options: TextClipOptions);
|
|
10
10
|
getText(): string;
|
|
11
11
|
setText(text?: string): void;
|
|
12
|
+
setAnimationText(text: string): void;
|
|
12
13
|
seek(currentTime: number): void;
|
|
13
14
|
preload(currentTime: number): void;
|
|
14
15
|
update(currentTime: number): void;
|
|
16
|
+
protected setAnimationPropertyValue(property: string, value: any): void;
|
|
17
|
+
protected getAnimationPropertyValue(property: string): number | string;
|
|
18
|
+
protected resetAnimationPropertyValue(property: string): void;
|
|
19
|
+
resetAllAnimationProperties(): void;
|
|
15
20
|
offload(): void;
|
|
16
21
|
clone(): TextClip;
|
|
17
22
|
destroy(): void;
|
|
@@ -39,17 +44,17 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
39
44
|
animationController?: {
|
|
40
45
|
animationDataIn?: {
|
|
41
46
|
name: string;
|
|
42
|
-
inOutOfRange: import(
|
|
43
|
-
outOutOfRange: import(
|
|
47
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
48
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
44
49
|
propertyAnimations: {
|
|
45
50
|
property: string;
|
|
46
|
-
inOutOfRange: import(
|
|
47
|
-
outOutOfRange: import(
|
|
51
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
52
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
48
53
|
keyframes: {
|
|
49
54
|
time: number;
|
|
50
55
|
value: string | number;
|
|
51
|
-
easing: import(
|
|
52
|
-
space: import(
|
|
56
|
+
easing: import('../../../../index').EasingEnum;
|
|
57
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
53
58
|
relativeProperty?: string | undefined;
|
|
54
59
|
}[];
|
|
55
60
|
}[];
|
|
@@ -59,17 +64,17 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
59
64
|
} | undefined;
|
|
60
65
|
animationDataOut?: {
|
|
61
66
|
name: string;
|
|
62
|
-
inOutOfRange: import(
|
|
63
|
-
outOutOfRange: import(
|
|
67
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
68
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
64
69
|
propertyAnimations: {
|
|
65
70
|
property: string;
|
|
66
|
-
inOutOfRange: import(
|
|
67
|
-
outOutOfRange: import(
|
|
71
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
72
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
68
73
|
keyframes: {
|
|
69
74
|
time: number;
|
|
70
75
|
value: string | number;
|
|
71
|
-
easing: import(
|
|
72
|
-
space: import(
|
|
76
|
+
easing: import('../../../../index').EasingEnum;
|
|
77
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
73
78
|
relativeProperty?: string | undefined;
|
|
74
79
|
}[];
|
|
75
80
|
}[];
|
|
@@ -79,17 +84,17 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
79
84
|
} | undefined;
|
|
80
85
|
animationDataLoop?: {
|
|
81
86
|
name: string;
|
|
82
|
-
inOutOfRange: import(
|
|
83
|
-
outOutOfRange: import(
|
|
87
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
88
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
84
89
|
propertyAnimations: {
|
|
85
90
|
property: string;
|
|
86
|
-
inOutOfRange: import(
|
|
87
|
-
outOutOfRange: import(
|
|
91
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
92
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
88
93
|
keyframes: {
|
|
89
94
|
time: number;
|
|
90
95
|
value: string | number;
|
|
91
|
-
easing: import(
|
|
92
|
-
space: import(
|
|
96
|
+
easing: import('../../../../index').EasingEnum;
|
|
97
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
93
98
|
relativeProperty?: string | undefined;
|
|
94
99
|
}[];
|
|
95
100
|
}[];
|
|
@@ -100,6 +105,7 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
100
105
|
animationInDuration?: number | undefined;
|
|
101
106
|
animationOutDuration?: number | undefined;
|
|
102
107
|
animationLoopCount?: number | undefined;
|
|
108
|
+
loopSmoothing?: number | undefined;
|
|
103
109
|
} | undefined;
|
|
104
110
|
};
|
|
105
111
|
static deserialize(payload: object): TextClip;
|
|
@@ -21,6 +21,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
21
21
|
init(layerId: string): Promise<void>;
|
|
22
22
|
private getGlobalTimeToClipTime;
|
|
23
23
|
getIsProcessing(): boolean;
|
|
24
|
+
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
24
25
|
preload(currentTime: number): void;
|
|
25
26
|
addActionToQueue(action: string, params?: object): void;
|
|
26
27
|
processNextQueue(): void;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as PIXI from "pixi.js";
|
|
2
|
+
import { GLTexture } from "pixi.js";
|
|
2
3
|
declare class WebCodecsVideoFrameResource extends PIXI.Resource {
|
|
3
4
|
private frame;
|
|
4
|
-
upload(renderer: PIXI.Renderer, baseTexture: PIXI.BaseTexture<PIXI.Resource, PIXI.IAutoDetectOptions
|
|
5
|
+
upload(renderer: PIXI.Renderer, baseTexture: PIXI.BaseTexture<PIXI.Resource, PIXI.IAutoDetectOptions>, glTexture: GLTexture): boolean;
|
|
6
|
+
dispose(): void;
|
|
5
7
|
updateFrame(frame: VideoFrame): void;
|
|
6
8
|
}
|
|
7
9
|
export { WebCodecsVideoFrameResource };
|
|
@@ -27,6 +27,7 @@ export declare enum EventsEnum {
|
|
|
27
27
|
CLIP_EFFECT_REMOVED = "clip:effect:removed",
|
|
28
28
|
LIBRARY_ADDED = "library:added",
|
|
29
29
|
LIBRARY_REMOVED = "library:removed",
|
|
30
|
+
LIBRARY_REPLACED = "library:replaced",
|
|
30
31
|
LIBRARY_ERROR = "library:error",
|
|
31
32
|
LIBRARY_MEDIA_UPDATED = "library:media:updated",
|
|
32
33
|
LIBRARY_PROGRESS = "library:progress",
|
|
@@ -140,6 +141,9 @@ export type EventPayloadMap = {
|
|
|
140
141
|
[EventsEnum.LIBRARY_REMOVED]: {
|
|
141
142
|
mediaDataId: string;
|
|
142
143
|
};
|
|
144
|
+
[EventsEnum.LIBRARY_REPLACED]: {
|
|
145
|
+
mediaDataId: string;
|
|
146
|
+
};
|
|
143
147
|
[EventsEnum.LIBRARY_ERROR]: {
|
|
144
148
|
mediaDataId: string;
|
|
145
149
|
error: Error;
|
|
@@ -98,6 +98,7 @@ export declare class Library {
|
|
|
98
98
|
getMediaById(id: string): MediaData | undefined;
|
|
99
99
|
addMedia(file: File | string | Uint8Array, mimeType?: string): Promise<string | null>;
|
|
100
100
|
deleteMedia(id: string): Promise<void>;
|
|
101
|
+
replaceMedia(id: string, file: File | string | Uint8Array, mimeType?: string): Promise<boolean>;
|
|
101
102
|
addSubtitles(subtitles: Subtitles): string;
|
|
102
103
|
removeSubtitles(id: string): void;
|
|
103
104
|
getSubtitlesById(id: string): Subtitles | undefined;
|