@rendley/sdk 1.11.3 → 1.11.4
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/LICENSE +48 -48
- package/README.md +31 -31
- package/dist/Engine.d.ts +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +24 -24
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +6 -6
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +4 -4
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +10 -10
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +6 -6
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +4 -4
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +5 -5
- package/dist/modules/clip/clips/text/TextClip.d.ts +6 -6
- package/dist/modules/clip/clips/text/TextStyle.d.ts +9 -9
- package/dist/modules/clip/clips/video/VideoClip.d.ts +7 -6
- package/dist/modules/library/EffectData.d.ts +3 -3
- package/dist/modules/library/Library.d.ts +41 -41
- package/dist/modules/library/Subtitles.d.ts +7 -7
- package/dist/modules/library/TransitionData.d.ts +3 -3
- package/dist/modules/subtitles/SubtitleManager.d.ts +18 -18
- package/dist/modules/undo/UndoManager.types.d.ts +20 -0
- package/dist/utils/animation/animation.d.ts +1 -1
- package/package.json +83 -83
|
@@ -314,11 +314,15 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
314
314
|
inOutOfRange?: import('../../utils/animation/animation').OutOfRangeEnum | undefined;
|
|
315
315
|
outOutOfRange?: import('../../utils/animation/animation').OutOfRangeEnum | undefined;
|
|
316
316
|
}>>;
|
|
317
|
-
animationInDuration: z.ZodOptional<z.ZodNumber
|
|
318
|
-
animationOutDuration: z.ZodOptional<z.ZodNumber
|
|
319
|
-
animationLoopCount: z.ZodOptional<z.ZodNumber
|
|
320
|
-
loopSmoothing: z.ZodOptional<z.ZodNumber
|
|
317
|
+
animationInDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
318
|
+
animationOutDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
319
|
+
animationLoopCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
320
|
+
loopSmoothing: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
321
321
|
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
animationInDuration: number;
|
|
323
|
+
animationOutDuration: number;
|
|
324
|
+
animationLoopCount: number;
|
|
325
|
+
loopSmoothing: number;
|
|
322
326
|
animationDataIn?: {
|
|
323
327
|
name: string;
|
|
324
328
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
@@ -379,10 +383,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
379
383
|
offset?: number | undefined;
|
|
380
384
|
amplification?: number | undefined;
|
|
381
385
|
} | undefined;
|
|
382
|
-
animationInDuration?: number | undefined;
|
|
383
|
-
animationOutDuration?: number | undefined;
|
|
384
|
-
animationLoopCount?: number | undefined;
|
|
385
|
-
loopSmoothing?: number | undefined;
|
|
386
386
|
}, {
|
|
387
387
|
animationDataIn?: {
|
|
388
388
|
name: string;
|
|
@@ -759,11 +759,15 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
759
759
|
inOutOfRange?: import('../../utils/animation/animation').OutOfRangeEnum | undefined;
|
|
760
760
|
outOutOfRange?: import('../../utils/animation/animation').OutOfRangeEnum | undefined;
|
|
761
761
|
}>>;
|
|
762
|
-
animationInDuration: z.ZodOptional<z.ZodNumber
|
|
763
|
-
animationOutDuration: z.ZodOptional<z.ZodNumber
|
|
764
|
-
animationLoopCount: z.ZodOptional<z.ZodNumber
|
|
765
|
-
loopSmoothing: z.ZodOptional<z.ZodNumber
|
|
762
|
+
animationInDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
763
|
+
animationOutDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
764
|
+
animationLoopCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
765
|
+
loopSmoothing: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
766
766
|
}, "strip", z.ZodTypeAny, {
|
|
767
|
+
animationInDuration: number;
|
|
768
|
+
animationOutDuration: number;
|
|
769
|
+
animationLoopCount: number;
|
|
770
|
+
loopSmoothing: number;
|
|
767
771
|
animationDataIn?: {
|
|
768
772
|
name: string;
|
|
769
773
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
@@ -824,10 +828,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
824
828
|
offset?: number | undefined;
|
|
825
829
|
amplification?: number | undefined;
|
|
826
830
|
} | undefined;
|
|
827
|
-
animationInDuration?: number | undefined;
|
|
828
|
-
animationOutDuration?: number | undefined;
|
|
829
|
-
animationLoopCount?: number | undefined;
|
|
830
|
-
loopSmoothing?: number | undefined;
|
|
831
831
|
}, {
|
|
832
832
|
animationDataIn?: {
|
|
833
833
|
name: string;
|
|
@@ -932,6 +932,10 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
932
932
|
style?: unknown;
|
|
933
933
|
text?: string | undefined;
|
|
934
934
|
animationController?: {
|
|
935
|
+
animationInDuration: number;
|
|
936
|
+
animationOutDuration: number;
|
|
937
|
+
animationLoopCount: number;
|
|
938
|
+
loopSmoothing: number;
|
|
935
939
|
animationDataIn?: {
|
|
936
940
|
name: string;
|
|
937
941
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
@@ -992,10 +996,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
992
996
|
offset?: number | undefined;
|
|
993
997
|
amplification?: number | undefined;
|
|
994
998
|
} | undefined;
|
|
995
|
-
animationInDuration?: number | undefined;
|
|
996
|
-
animationOutDuration?: number | undefined;
|
|
997
|
-
animationLoopCount?: number | undefined;
|
|
998
|
-
loopSmoothing?: number | undefined;
|
|
999
999
|
} | undefined;
|
|
1000
1000
|
customData?: [string, unknown][] | undefined;
|
|
1001
1001
|
clipMasks?: {
|
|
@@ -1227,6 +1227,10 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1227
1227
|
style?: unknown;
|
|
1228
1228
|
text?: string | undefined;
|
|
1229
1229
|
animationController?: {
|
|
1230
|
+
animationInDuration: number;
|
|
1231
|
+
animationOutDuration: number;
|
|
1232
|
+
animationLoopCount: number;
|
|
1233
|
+
loopSmoothing: number;
|
|
1230
1234
|
animationDataIn?: {
|
|
1231
1235
|
name: string;
|
|
1232
1236
|
inOutOfRange: import('../../utils/animation/animation').OutOfRangeEnum;
|
|
@@ -1287,10 +1291,6 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1287
1291
|
offset?: number | undefined;
|
|
1288
1292
|
amplification?: number | undefined;
|
|
1289
1293
|
} | undefined;
|
|
1290
|
-
animationInDuration?: number | undefined;
|
|
1291
|
-
animationOutDuration?: number | undefined;
|
|
1292
|
-
animationLoopCount?: number | undefined;
|
|
1293
|
-
loopSmoothing?: number | undefined;
|
|
1294
1294
|
} | undefined;
|
|
1295
1295
|
customData?: [string, unknown][] | undefined;
|
|
1296
1296
|
clipMasks?: {
|
|
@@ -63,10 +63,13 @@ export declare class AudioClip extends Clip {
|
|
|
63
63
|
isVisible: boolean;
|
|
64
64
|
text?: string | undefined;
|
|
65
65
|
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
66
|
-
customData?: [string, unknown][] | undefined;
|
|
67
|
-
style?: unknown;
|
|
68
66
|
subtitlesId?: string | undefined;
|
|
67
|
+
style?: unknown;
|
|
69
68
|
animationController?: {
|
|
69
|
+
animationInDuration: number;
|
|
70
|
+
animationOutDuration: number;
|
|
71
|
+
animationLoopCount: number;
|
|
72
|
+
loopSmoothing: number;
|
|
70
73
|
animationDataIn?: {
|
|
71
74
|
name: string;
|
|
72
75
|
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
@@ -127,11 +130,8 @@ export declare class AudioClip extends Clip {
|
|
|
127
130
|
offset?: number | undefined;
|
|
128
131
|
amplification?: number | undefined;
|
|
129
132
|
} | undefined;
|
|
130
|
-
animationInDuration?: number | undefined;
|
|
131
|
-
animationOutDuration?: number | undefined;
|
|
132
|
-
animationLoopCount?: number | undefined;
|
|
133
|
-
loopSmoothing?: number | undefined;
|
|
134
133
|
} | undefined;
|
|
134
|
+
customData?: [string, unknown][] | undefined;
|
|
135
135
|
clipMasks?: {
|
|
136
136
|
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
137
137
|
id: string;
|
|
@@ -31,6 +31,10 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
31
31
|
style?: unknown;
|
|
32
32
|
text?: string | undefined;
|
|
33
33
|
animationController?: {
|
|
34
|
+
animationInDuration: number;
|
|
35
|
+
animationOutDuration: number;
|
|
36
|
+
animationLoopCount: number;
|
|
37
|
+
loopSmoothing: number;
|
|
34
38
|
animationDataIn?: {
|
|
35
39
|
name: string;
|
|
36
40
|
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
@@ -91,10 +95,6 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
91
95
|
offset?: number | undefined;
|
|
92
96
|
amplification?: number | undefined;
|
|
93
97
|
} | undefined;
|
|
94
|
-
animationInDuration?: number | undefined;
|
|
95
|
-
animationOutDuration?: number | undefined;
|
|
96
|
-
animationLoopCount?: number | undefined;
|
|
97
|
-
loopSmoothing?: number | undefined;
|
|
98
98
|
} | undefined;
|
|
99
99
|
customData?: [string, unknown][] | undefined;
|
|
100
100
|
clipMasks?: {
|
|
@@ -29,7 +29,7 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
|
|
|
29
29
|
color: string;
|
|
30
30
|
align: "left" | "center" | "right" | "justify";
|
|
31
31
|
fontSize: number;
|
|
32
|
-
fontWeight: "
|
|
32
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
33
33
|
fontFamily: string;
|
|
34
34
|
fontStyle: "normal" | "italic" | "oblique";
|
|
35
35
|
strokeThickness: number;
|
|
@@ -62,7 +62,7 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
|
|
|
62
62
|
fontSize?: number | undefined;
|
|
63
63
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
64
64
|
fontVariant?: "normal" | "small-caps" | undefined;
|
|
65
|
-
fontWeight?: "
|
|
65
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
66
66
|
letterSpacing?: number | undefined;
|
|
67
67
|
lineHeight?: number | undefined;
|
|
68
68
|
padding?: number | undefined;
|
|
@@ -92,7 +92,7 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
92
92
|
color: string;
|
|
93
93
|
align: "left" | "center" | "right" | "justify";
|
|
94
94
|
fontSize: number;
|
|
95
|
-
fontWeight: "
|
|
95
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
96
96
|
fontFamily: string;
|
|
97
97
|
fontStyle: "normal" | "italic" | "oblique";
|
|
98
98
|
strokeThickness: number;
|
|
@@ -138,7 +138,7 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
138
138
|
color: string;
|
|
139
139
|
align: "left" | "center" | "right" | "justify";
|
|
140
140
|
fontSize: number;
|
|
141
|
-
fontWeight: "
|
|
141
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
142
142
|
fontFamily: string;
|
|
143
143
|
fontStyle: "normal" | "italic" | "oblique";
|
|
144
144
|
strokeThickness: number;
|
|
@@ -160,11 +160,14 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
160
160
|
};
|
|
161
161
|
text?: string | undefined;
|
|
162
162
|
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
163
|
-
customData?: [string, unknown][] | undefined;
|
|
164
|
-
style?: unknown;
|
|
165
163
|
mediaDataId?: string | undefined;
|
|
166
164
|
subtitlesId?: string | undefined;
|
|
165
|
+
style?: unknown;
|
|
167
166
|
animationController?: {
|
|
167
|
+
animationInDuration: number;
|
|
168
|
+
animationOutDuration: number;
|
|
169
|
+
animationLoopCount: number;
|
|
170
|
+
loopSmoothing: number;
|
|
168
171
|
animationDataIn?: {
|
|
169
172
|
name: string;
|
|
170
173
|
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
@@ -225,11 +228,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
225
228
|
offset?: number | undefined;
|
|
226
229
|
amplification?: number | undefined;
|
|
227
230
|
} | undefined;
|
|
228
|
-
animationInDuration?: number | undefined;
|
|
229
|
-
animationOutDuration?: number | undefined;
|
|
230
|
-
animationLoopCount?: number | undefined;
|
|
231
|
-
loopSmoothing?: number | undefined;
|
|
232
231
|
} | undefined;
|
|
232
|
+
customData?: [string, unknown][] | undefined;
|
|
233
233
|
clipMasks?: {
|
|
234
234
|
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
235
235
|
id: string;
|
|
@@ -183,11 +183,14 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
183
183
|
dataUrl: string;
|
|
184
184
|
text?: string | undefined;
|
|
185
185
|
wrapMode?: WrapModeEnum | undefined;
|
|
186
|
-
customData?: [string, unknown][] | undefined;
|
|
187
|
-
style?: unknown;
|
|
188
186
|
mediaDataId?: string | undefined;
|
|
189
187
|
subtitlesId?: string | undefined;
|
|
188
|
+
style?: unknown;
|
|
190
189
|
animationController?: {
|
|
190
|
+
animationInDuration: number;
|
|
191
|
+
animationOutDuration: number;
|
|
192
|
+
animationLoopCount: number;
|
|
193
|
+
loopSmoothing: number;
|
|
191
194
|
animationDataIn?: {
|
|
192
195
|
name: string;
|
|
193
196
|
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
@@ -248,11 +251,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
248
251
|
offset?: number | undefined;
|
|
249
252
|
amplification?: number | undefined;
|
|
250
253
|
} | undefined;
|
|
251
|
-
animationInDuration?: number | undefined;
|
|
252
|
-
animationOutDuration?: number | undefined;
|
|
253
|
-
animationLoopCount?: number | undefined;
|
|
254
|
-
loopSmoothing?: number | undefined;
|
|
255
254
|
} | undefined;
|
|
255
|
+
customData?: [string, unknown][] | undefined;
|
|
256
256
|
clipMasks?: {
|
|
257
257
|
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
258
258
|
id: string;
|
|
@@ -34,6 +34,10 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
34
34
|
style?: unknown;
|
|
35
35
|
text?: string | undefined;
|
|
36
36
|
animationController?: {
|
|
37
|
+
animationInDuration: number;
|
|
38
|
+
animationOutDuration: number;
|
|
39
|
+
animationLoopCount: number;
|
|
40
|
+
loopSmoothing: number;
|
|
37
41
|
animationDataIn?: {
|
|
38
42
|
name: string;
|
|
39
43
|
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
@@ -94,10 +98,6 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
94
98
|
offset?: number | undefined;
|
|
95
99
|
amplification?: number | undefined;
|
|
96
100
|
} | undefined;
|
|
97
|
-
animationInDuration?: number | undefined;
|
|
98
|
-
animationOutDuration?: number | undefined;
|
|
99
|
-
animationLoopCount?: number | undefined;
|
|
100
|
-
loopSmoothing?: number | undefined;
|
|
101
101
|
} | undefined;
|
|
102
102
|
customData?: [string, unknown][] | undefined;
|
|
103
103
|
clipMasks?: {
|
|
@@ -18,13 +18,13 @@ interface ShapeClipStyleOptions extends ClipStyleOptions {
|
|
|
18
18
|
export declare const ShapeStyleSchema: z.ZodObject<{
|
|
19
19
|
width: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
alpha: z.ZodNumber;
|
|
21
|
-
|
|
21
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
clipId: z.ZodString;
|
|
23
|
+
mediaDataId: z.ZodOptional<z.ZodString>;
|
|
23
24
|
rotation: z.ZodNumber;
|
|
24
25
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
25
26
|
scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
26
27
|
zIndex: z.ZodNumber;
|
|
27
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
cornerRadius: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
29
29
|
relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30
30
|
shape: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof ShapeTypeEnum>>>;
|
|
@@ -49,8 +49,8 @@ export declare const ShapeStyleSchema: z.ZodObject<{
|
|
|
49
49
|
relativeCornerRadius: boolean;
|
|
50
50
|
hasFill: boolean;
|
|
51
51
|
width?: number | undefined;
|
|
52
|
-
mediaDataId?: string | undefined;
|
|
53
52
|
height?: number | undefined;
|
|
53
|
+
mediaDataId?: string | undefined;
|
|
54
54
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
55
55
|
fillColor?: string | undefined;
|
|
56
56
|
strokeColor?: string | undefined;
|
|
@@ -69,8 +69,8 @@ export declare const ShapeStyleSchema: z.ZodObject<{
|
|
|
69
69
|
scale: [number, number];
|
|
70
70
|
zIndex: number;
|
|
71
71
|
width?: number | undefined;
|
|
72
|
-
mediaDataId?: string | undefined;
|
|
73
72
|
height?: number | undefined;
|
|
73
|
+
mediaDataId?: string | undefined;
|
|
74
74
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
75
75
|
relativeCornerRadius?: boolean | undefined;
|
|
76
76
|
shape?: ShapeTypeEnum | undefined;
|
|
@@ -132,8 +132,8 @@ export declare class ShapeStyle extends ClipStyle<ShapeSprite> {
|
|
|
132
132
|
relativeCornerRadius: boolean;
|
|
133
133
|
hasFill: boolean;
|
|
134
134
|
width?: number | undefined;
|
|
135
|
-
mediaDataId?: string | undefined;
|
|
136
135
|
height?: number | undefined;
|
|
136
|
+
mediaDataId?: string | undefined;
|
|
137
137
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
138
138
|
fillColor?: string | undefined;
|
|
139
139
|
strokeColor?: string | undefined;
|
|
@@ -38,11 +38,14 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
38
38
|
effects: any[];
|
|
39
39
|
isVisible: boolean;
|
|
40
40
|
wrapMode?: import('../../../../index').WrapModeEnum | undefined;
|
|
41
|
-
customData?: [string, unknown][] | undefined;
|
|
42
|
-
style?: unknown;
|
|
43
41
|
mediaDataId?: string | undefined;
|
|
44
42
|
subtitlesId?: string | undefined;
|
|
43
|
+
style?: unknown;
|
|
45
44
|
animationController?: {
|
|
45
|
+
animationInDuration: number;
|
|
46
|
+
animationOutDuration: number;
|
|
47
|
+
animationLoopCount: number;
|
|
48
|
+
loopSmoothing: number;
|
|
46
49
|
animationDataIn?: {
|
|
47
50
|
name: string;
|
|
48
51
|
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
@@ -103,11 +106,8 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
103
106
|
offset?: number | undefined;
|
|
104
107
|
amplification?: number | undefined;
|
|
105
108
|
} | undefined;
|
|
106
|
-
animationInDuration?: number | undefined;
|
|
107
|
-
animationOutDuration?: number | undefined;
|
|
108
|
-
animationLoopCount?: number | undefined;
|
|
109
|
-
loopSmoothing?: number | undefined;
|
|
110
109
|
} | undefined;
|
|
110
|
+
customData?: [string, unknown][] | undefined;
|
|
111
111
|
clipMasks?: {
|
|
112
112
|
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
113
113
|
id: string;
|
|
@@ -18,13 +18,13 @@ interface TextClipStyleOptions extends ClipStyleOptions {
|
|
|
18
18
|
export declare const TextStyleSchema: z.ZodObject<{
|
|
19
19
|
width: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
alpha: z.ZodNumber;
|
|
21
|
-
|
|
21
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
clipId: z.ZodString;
|
|
23
|
+
mediaDataId: z.ZodOptional<z.ZodString>;
|
|
23
24
|
rotation: z.ZodNumber;
|
|
24
25
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
25
26
|
scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
26
27
|
zIndex: z.ZodNumber;
|
|
27
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
cornerRadius: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
29
29
|
relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30
30
|
fontSize: z.ZodNumber;
|
|
@@ -49,7 +49,7 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
49
49
|
relativeCornerRadius: boolean;
|
|
50
50
|
strokeColor: string;
|
|
51
51
|
fontSize: number;
|
|
52
|
-
fontWeight: "
|
|
52
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
53
53
|
fontFamily: string;
|
|
54
54
|
textAlign: "left" | "center" | "right" | "justify";
|
|
55
55
|
fontStyle: "normal" | "italic" | "oblique";
|
|
@@ -58,8 +58,8 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
58
58
|
wordWrapWidth: number | null;
|
|
59
59
|
padding: number[];
|
|
60
60
|
width?: number | undefined;
|
|
61
|
-
mediaDataId?: string | undefined;
|
|
62
61
|
height?: number | undefined;
|
|
62
|
+
mediaDataId?: string | undefined;
|
|
63
63
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
64
64
|
}, {
|
|
65
65
|
color: string;
|
|
@@ -70,14 +70,14 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
70
70
|
scale: [number, number];
|
|
71
71
|
zIndex: number;
|
|
72
72
|
fontSize: number;
|
|
73
|
-
fontWeight: "
|
|
73
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
74
74
|
fontFamily: string;
|
|
75
75
|
textAlign: "left" | "center" | "right" | "justify";
|
|
76
76
|
fontStyle: "normal" | "italic" | "oblique";
|
|
77
77
|
backgroundColor: string | null;
|
|
78
78
|
width?: number | undefined;
|
|
79
|
-
mediaDataId?: string | undefined;
|
|
80
79
|
height?: number | undefined;
|
|
80
|
+
mediaDataId?: string | undefined;
|
|
81
81
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
82
82
|
relativeCornerRadius?: boolean | undefined;
|
|
83
83
|
strokeColor?: string | undefined;
|
|
@@ -114,7 +114,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
114
114
|
setAnimationColor(color: string): void;
|
|
115
115
|
getAnimationColor(): string;
|
|
116
116
|
setFontWeight(fontWeight: TextStyleFontWeight): void;
|
|
117
|
-
getFontWeight(): "
|
|
117
|
+
getFontWeight(): "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
118
118
|
setFontFamily(fontFamily: string): void;
|
|
119
119
|
getFontFamily(): string;
|
|
120
120
|
setTextAlign(textAlign: TextStyleAlign): void;
|
|
@@ -137,7 +137,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
137
137
|
relativeCornerRadius: boolean;
|
|
138
138
|
strokeColor: string;
|
|
139
139
|
fontSize: number;
|
|
140
|
-
fontWeight: "
|
|
140
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
141
141
|
fontFamily: string;
|
|
142
142
|
textAlign: "left" | "center" | "right" | "justify";
|
|
143
143
|
fontStyle: "normal" | "italic" | "oblique";
|
|
@@ -146,8 +146,8 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
146
146
|
wordWrapWidth: number | null;
|
|
147
147
|
padding: number[];
|
|
148
148
|
width?: number | undefined;
|
|
149
|
-
mediaDataId?: string | undefined;
|
|
150
149
|
height?: number | undefined;
|
|
150
|
+
mediaDataId?: string | undefined;
|
|
151
151
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
152
152
|
};
|
|
153
153
|
static deserialize(payload: object): TextStyle;
|
|
@@ -23,6 +23,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
23
23
|
private frameQueue;
|
|
24
24
|
private isRendering;
|
|
25
25
|
private decoderFlushed;
|
|
26
|
+
private decoderFlushPromise;
|
|
26
27
|
private renderWithPlayer;
|
|
27
28
|
private callbacks;
|
|
28
29
|
constructor(options: VideoClipOptions);
|
|
@@ -86,10 +87,13 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
86
87
|
isVisible: boolean;
|
|
87
88
|
text?: string | undefined;
|
|
88
89
|
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
89
|
-
customData?: [string, unknown][] | undefined;
|
|
90
|
-
style?: unknown;
|
|
91
90
|
subtitlesId?: string | undefined;
|
|
91
|
+
style?: unknown;
|
|
92
92
|
animationController?: {
|
|
93
|
+
animationInDuration: number;
|
|
94
|
+
animationOutDuration: number;
|
|
95
|
+
animationLoopCount: number;
|
|
96
|
+
loopSmoothing: number;
|
|
93
97
|
animationDataIn?: {
|
|
94
98
|
name: string;
|
|
95
99
|
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
@@ -150,11 +154,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
150
154
|
offset?: number | undefined;
|
|
151
155
|
amplification?: number | undefined;
|
|
152
156
|
} | undefined;
|
|
153
|
-
animationInDuration?: number | undefined;
|
|
154
|
-
animationOutDuration?: number | undefined;
|
|
155
|
-
animationLoopCount?: number | undefined;
|
|
156
|
-
loopSmoothing?: number | undefined;
|
|
157
157
|
} | undefined;
|
|
158
|
+
customData?: [string, unknown][] | undefined;
|
|
158
159
|
clipMasks?: {
|
|
159
160
|
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
160
161
|
id: string;
|
|
@@ -58,7 +58,6 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
58
58
|
name: string;
|
|
59
59
|
id: string;
|
|
60
60
|
provider: string;
|
|
61
|
-
fragmentSrc: string;
|
|
62
61
|
properties: {
|
|
63
62
|
type: import("./types/Property.types").PropertyDescriptionTypeEnum;
|
|
64
63
|
name: string;
|
|
@@ -66,6 +65,7 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
66
65
|
label?: string | undefined;
|
|
67
66
|
description?: string | undefined;
|
|
68
67
|
}[];
|
|
68
|
+
fragmentSrc: string;
|
|
69
69
|
inputTextures?: {
|
|
70
70
|
name: string;
|
|
71
71
|
url: string;
|
|
@@ -77,7 +77,6 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
77
77
|
name: string;
|
|
78
78
|
id: string;
|
|
79
79
|
provider: string;
|
|
80
|
-
fragmentSrc: string;
|
|
81
80
|
properties: {
|
|
82
81
|
type: import("./types/Property.types").PropertyDescriptionTypeEnum;
|
|
83
82
|
name: string;
|
|
@@ -85,6 +84,7 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
85
84
|
label?: string | undefined;
|
|
86
85
|
description?: string | undefined;
|
|
87
86
|
}[];
|
|
87
|
+
fragmentSrc: string;
|
|
88
88
|
inputTextures?: {
|
|
89
89
|
name: string;
|
|
90
90
|
url: string;
|
|
@@ -121,7 +121,6 @@ export declare class EffectData {
|
|
|
121
121
|
name: string;
|
|
122
122
|
id: string;
|
|
123
123
|
provider: string;
|
|
124
|
-
fragmentSrc: string;
|
|
125
124
|
properties: {
|
|
126
125
|
type: import("./types/Property.types").PropertyDescriptionTypeEnum;
|
|
127
126
|
name: string;
|
|
@@ -129,6 +128,7 @@ export declare class EffectData {
|
|
|
129
128
|
label?: string | undefined;
|
|
130
129
|
description?: string | undefined;
|
|
131
130
|
}[];
|
|
131
|
+
fragmentSrc: string;
|
|
132
132
|
inputTextures?: {
|
|
133
133
|
name: string;
|
|
134
134
|
url: string;
|