@rendley/sdk 1.11.18 → 1.12.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 +15 -12
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +15 -9
- package/dist/modules/clip/ClipStyle.d.ts +26 -0
- package/dist/modules/clip/clips/adjustment/AdjustmentClip.d.ts +27 -0
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +62 -22
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +3 -3
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +20 -20
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +9 -5
- package/dist/modules/clip/clips/text/TextClip.d.ts +3 -3
- package/dist/modules/clip/clips/text/TextStyle.d.ts +11 -7
- package/dist/modules/clip/clips/video/VideoClip.d.ts +45 -4
- package/dist/modules/effect/Effect.d.ts +3 -3
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +28 -0
- package/dist/modules/filter/Filter.d.ts +3 -3
- package/dist/modules/filter/MaskFilter.d.ts +1 -1
- package/dist/modules/layer/Layer.d.ts +2 -0
- package/dist/modules/library/Library.d.ts +32 -32
- package/dist/modules/library/Subtitles.d.ts +3 -0
- package/dist/modules/library/TransitionData.d.ts +3 -3
- package/dist/modules/renderer/Renderer.d.ts +1 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +21 -21
- package/dist/modules/timeline/Timeline.d.ts +2 -0
- package/dist/modules/transition/Transition.d.ts +1 -0
- package/dist/modules/undo/UndoManager.types.d.ts +49 -1
- package/dist/types/clip.types.d.ts +26 -0
- package/dist/utils/animation/animation.d.ts +2 -1
- package/package.json +1 -1
|
@@ -21,12 +21,12 @@ declare const CommonTextStyleSchema: z.ZodObject<{
|
|
|
21
21
|
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
color: string;
|
|
24
|
-
strokeColor: string;
|
|
25
24
|
fontSize: number;
|
|
26
25
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
27
26
|
fontFamily: string;
|
|
28
27
|
fontStyle: "normal" | "italic" | "oblique";
|
|
29
28
|
backgroundColor: string;
|
|
29
|
+
strokeColor: string;
|
|
30
30
|
strokeThickness: number;
|
|
31
31
|
padding: number;
|
|
32
32
|
backgroundPadding: number;
|
|
@@ -46,12 +46,12 @@ declare const CommonTextStyleSchema: z.ZodObject<{
|
|
|
46
46
|
}>;
|
|
47
47
|
declare const MainTextStyleSchema: z.ZodObject<{
|
|
48
48
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
49
|
-
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
50
49
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
51
50
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
52
51
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
53
52
|
fontStyle: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>>;
|
|
54
53
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
55
55
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
56
56
|
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
57
57
|
backgroundPadding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -61,12 +61,12 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
61
61
|
leading: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
62
62
|
}, "strip", z.ZodTypeAny, {
|
|
63
63
|
color: string;
|
|
64
|
-
strokeColor: string;
|
|
65
64
|
fontSize: number;
|
|
66
65
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
67
66
|
fontFamily: string;
|
|
68
67
|
fontStyle: "normal" | "italic" | "oblique";
|
|
69
68
|
backgroundColor: string;
|
|
69
|
+
strokeColor: string;
|
|
70
70
|
strokeThickness: number;
|
|
71
71
|
wordWrapWidth: number;
|
|
72
72
|
padding: number;
|
|
@@ -76,12 +76,12 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
76
76
|
leading: number;
|
|
77
77
|
}, {
|
|
78
78
|
color?: string | undefined;
|
|
79
|
-
strokeColor?: string | undefined;
|
|
80
79
|
fontSize?: number | undefined;
|
|
81
80
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
82
81
|
fontFamily?: string | undefined;
|
|
83
82
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
84
83
|
backgroundColor?: string | undefined;
|
|
84
|
+
strokeColor?: string | undefined;
|
|
85
85
|
strokeThickness?: number | undefined;
|
|
86
86
|
padding?: number | undefined;
|
|
87
87
|
backgroundPadding?: number | undefined;
|
|
@@ -92,36 +92,36 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
92
92
|
}>;
|
|
93
93
|
declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
94
94
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
95
|
-
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
96
95
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
97
96
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
98
97
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
99
98
|
fontStyle: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>>;
|
|
100
99
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
100
|
+
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
101
101
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
102
102
|
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
103
103
|
backgroundPadding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
104
104
|
backgroundCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
106
|
color: string;
|
|
107
|
-
strokeColor: string;
|
|
108
107
|
fontSize: number;
|
|
109
108
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
110
109
|
fontFamily: string;
|
|
111
110
|
fontStyle: "normal" | "italic" | "oblique";
|
|
112
111
|
backgroundColor: string;
|
|
112
|
+
strokeColor: string;
|
|
113
113
|
strokeThickness: number;
|
|
114
114
|
padding: number;
|
|
115
115
|
backgroundPadding: number;
|
|
116
116
|
backgroundCornerRadius: number;
|
|
117
117
|
}, {
|
|
118
118
|
color?: string | undefined;
|
|
119
|
-
strokeColor?: string | undefined;
|
|
120
119
|
fontSize?: number | undefined;
|
|
121
120
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
122
121
|
fontFamily?: string | undefined;
|
|
123
122
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
124
123
|
backgroundColor?: string | undefined;
|
|
124
|
+
strokeColor?: string | undefined;
|
|
125
125
|
strokeThickness?: number | undefined;
|
|
126
126
|
padding?: number | undefined;
|
|
127
127
|
backgroundPadding?: number | undefined;
|
|
@@ -138,12 +138,12 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
138
138
|
highlightAnimationSpeed: z.ZodNumber;
|
|
139
139
|
mainTextStyle: z.ZodObject<{
|
|
140
140
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
141
|
-
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
142
141
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
143
142
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
144
143
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
145
144
|
fontStyle: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>>;
|
|
146
145
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
146
|
+
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
147
147
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
148
148
|
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
149
149
|
backgroundPadding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -153,12 +153,12 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
153
153
|
leading: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
155
|
color: string;
|
|
156
|
-
strokeColor: string;
|
|
157
156
|
fontSize: number;
|
|
158
157
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
159
158
|
fontFamily: string;
|
|
160
159
|
fontStyle: "normal" | "italic" | "oblique";
|
|
161
160
|
backgroundColor: string;
|
|
161
|
+
strokeColor: string;
|
|
162
162
|
strokeThickness: number;
|
|
163
163
|
wordWrapWidth: number;
|
|
164
164
|
padding: number;
|
|
@@ -168,12 +168,12 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
168
168
|
leading: number;
|
|
169
169
|
}, {
|
|
170
170
|
color?: string | undefined;
|
|
171
|
-
strokeColor?: string | undefined;
|
|
172
171
|
fontSize?: number | undefined;
|
|
173
172
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
174
173
|
fontFamily?: string | undefined;
|
|
175
174
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
176
175
|
backgroundColor?: string | undefined;
|
|
176
|
+
strokeColor?: string | undefined;
|
|
177
177
|
strokeThickness?: number | undefined;
|
|
178
178
|
padding?: number | undefined;
|
|
179
179
|
backgroundPadding?: number | undefined;
|
|
@@ -184,36 +184,36 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
184
184
|
}>;
|
|
185
185
|
highlightTextStyle: z.ZodObject<{
|
|
186
186
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
187
|
-
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
188
187
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
189
188
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
190
189
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
191
190
|
fontStyle: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>>;
|
|
192
191
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
192
|
+
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
193
193
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
194
194
|
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
195
195
|
backgroundPadding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
196
196
|
backgroundCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
198
|
color: string;
|
|
199
|
-
strokeColor: string;
|
|
200
199
|
fontSize: number;
|
|
201
200
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
202
201
|
fontFamily: string;
|
|
203
202
|
fontStyle: "normal" | "italic" | "oblique";
|
|
204
203
|
backgroundColor: string;
|
|
204
|
+
strokeColor: string;
|
|
205
205
|
strokeThickness: number;
|
|
206
206
|
padding: number;
|
|
207
207
|
backgroundPadding: number;
|
|
208
208
|
backgroundCornerRadius: number;
|
|
209
209
|
}, {
|
|
210
210
|
color?: string | undefined;
|
|
211
|
-
strokeColor?: string | undefined;
|
|
212
211
|
fontSize?: number | undefined;
|
|
213
212
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
214
213
|
fontFamily?: string | undefined;
|
|
215
214
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
216
215
|
backgroundColor?: string | undefined;
|
|
216
|
+
strokeColor?: string | undefined;
|
|
217
217
|
strokeThickness?: number | undefined;
|
|
218
218
|
padding?: number | undefined;
|
|
219
219
|
backgroundPadding?: number | undefined;
|
|
@@ -228,12 +228,12 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
228
228
|
highlightAnimationSpeed: number;
|
|
229
229
|
mainTextStyle: {
|
|
230
230
|
color: string;
|
|
231
|
-
strokeColor: string;
|
|
232
231
|
fontSize: number;
|
|
233
232
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
234
233
|
fontFamily: string;
|
|
235
234
|
fontStyle: "normal" | "italic" | "oblique";
|
|
236
235
|
backgroundColor: string;
|
|
236
|
+
strokeColor: string;
|
|
237
237
|
strokeThickness: number;
|
|
238
238
|
wordWrapWidth: number;
|
|
239
239
|
padding: number;
|
|
@@ -244,12 +244,12 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
244
244
|
};
|
|
245
245
|
highlightTextStyle: {
|
|
246
246
|
color: string;
|
|
247
|
-
strokeColor: string;
|
|
248
247
|
fontSize: number;
|
|
249
248
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
250
249
|
fontFamily: string;
|
|
251
250
|
fontStyle: "normal" | "italic" | "oblique";
|
|
252
251
|
backgroundColor: string;
|
|
252
|
+
strokeColor: string;
|
|
253
253
|
strokeThickness: number;
|
|
254
254
|
padding: number;
|
|
255
255
|
backgroundPadding: number;
|
|
@@ -262,12 +262,12 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
262
262
|
highlightAnimationSpeed: number;
|
|
263
263
|
mainTextStyle: {
|
|
264
264
|
color?: string | undefined;
|
|
265
|
-
strokeColor?: string | undefined;
|
|
266
265
|
fontSize?: number | undefined;
|
|
267
266
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
268
267
|
fontFamily?: string | undefined;
|
|
269
268
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
270
269
|
backgroundColor?: string | undefined;
|
|
270
|
+
strokeColor?: string | undefined;
|
|
271
271
|
strokeThickness?: number | undefined;
|
|
272
272
|
padding?: number | undefined;
|
|
273
273
|
backgroundPadding?: number | undefined;
|
|
@@ -278,12 +278,12 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
278
278
|
};
|
|
279
279
|
highlightTextStyle: {
|
|
280
280
|
color?: string | undefined;
|
|
281
|
-
strokeColor?: string | undefined;
|
|
282
281
|
fontSize?: number | undefined;
|
|
283
282
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
284
283
|
fontFamily?: string | undefined;
|
|
285
284
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
286
285
|
backgroundColor?: string | undefined;
|
|
286
|
+
strokeColor?: string | undefined;
|
|
287
287
|
strokeThickness?: number | undefined;
|
|
288
288
|
padding?: number | undefined;
|
|
289
289
|
backgroundPadding?: number | undefined;
|
|
@@ -330,12 +330,12 @@ export declare class SubtitlesManager {
|
|
|
330
330
|
getTextMode(): "partial" | "full";
|
|
331
331
|
getMainTextStyle(): {
|
|
332
332
|
color: string;
|
|
333
|
-
strokeColor: string;
|
|
334
333
|
fontSize: number;
|
|
335
334
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
336
335
|
fontFamily: string;
|
|
337
336
|
fontStyle: "normal" | "italic" | "oblique";
|
|
338
337
|
backgroundColor: string;
|
|
338
|
+
strokeColor: string;
|
|
339
339
|
strokeThickness: number;
|
|
340
340
|
wordWrapWidth: number;
|
|
341
341
|
padding: number;
|
|
@@ -346,12 +346,12 @@ export declare class SubtitlesManager {
|
|
|
346
346
|
};
|
|
347
347
|
getHighlightTextStyle(): {
|
|
348
348
|
color: string;
|
|
349
|
-
strokeColor: string;
|
|
350
349
|
fontSize: number;
|
|
351
350
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
352
351
|
fontFamily: string;
|
|
353
352
|
fontStyle: "normal" | "italic" | "oblique";
|
|
354
353
|
backgroundColor: string;
|
|
354
|
+
strokeColor: string;
|
|
355
355
|
strokeThickness: number;
|
|
356
356
|
padding: number;
|
|
357
357
|
backgroundPadding: number;
|
|
@@ -381,12 +381,12 @@ export declare class SubtitlesManager {
|
|
|
381
381
|
highlightAnimationSpeed: number;
|
|
382
382
|
mainTextStyle: {
|
|
383
383
|
color: string;
|
|
384
|
-
strokeColor: string;
|
|
385
384
|
fontSize: number;
|
|
386
385
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
387
386
|
fontFamily: string;
|
|
388
387
|
fontStyle: "normal" | "italic" | "oblique";
|
|
389
388
|
backgroundColor: string;
|
|
389
|
+
strokeColor: string;
|
|
390
390
|
strokeThickness: number;
|
|
391
391
|
wordWrapWidth: number;
|
|
392
392
|
padding: number;
|
|
@@ -397,12 +397,12 @@ export declare class SubtitlesManager {
|
|
|
397
397
|
};
|
|
398
398
|
highlightTextStyle: {
|
|
399
399
|
color: string;
|
|
400
|
-
strokeColor: string;
|
|
401
400
|
fontSize: number;
|
|
402
401
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
403
402
|
fontFamily: string;
|
|
404
403
|
fontStyle: "normal" | "italic" | "oblique";
|
|
405
404
|
backgroundColor: string;
|
|
405
|
+
strokeColor: string;
|
|
406
406
|
strokeThickness: number;
|
|
407
407
|
padding: number;
|
|
408
408
|
backgroundPadding: number;
|
|
@@ -159,12 +159,14 @@ export declare class Timeline {
|
|
|
159
159
|
moveClipToLayer(clipId: string, newLayerId: string): Promise<void>;
|
|
160
160
|
extractAudio(clip: string | Clip): AudioClip | undefined;
|
|
161
161
|
alignTime(time: number, roundDirection?: AlignRoundEnum): number;
|
|
162
|
+
getFrameNumberFromTime(time: number, roundDirection?: AlignRoundEnum): number;
|
|
162
163
|
adjustClipsLayout(): void;
|
|
163
164
|
getFrameDuration(): number;
|
|
164
165
|
getFps(): number;
|
|
165
166
|
setFps(fps: number): void;
|
|
166
167
|
getFitDuration(): number;
|
|
167
168
|
render(): Promise<void>;
|
|
169
|
+
postRender(): void;
|
|
168
170
|
loadSerializedData(data: object): Promise<void>;
|
|
169
171
|
serialize(): {
|
|
170
172
|
startTime: number;
|
|
@@ -84,6 +84,7 @@ export declare class Transition {
|
|
|
84
84
|
onResize(width: number, height: number): void;
|
|
85
85
|
getTransitionProgress(currentTime: number): number;
|
|
86
86
|
render(currentTime: number): void;
|
|
87
|
+
postRender(currentTime: number): void;
|
|
87
88
|
destroy(): void;
|
|
88
89
|
update(currentTime: number): void;
|
|
89
90
|
serialize(): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlendModeEnum, WrapModeEnum } from '../../types';
|
|
1
|
+
import { BlendModeEnum, FadeCurveEnum, WrapModeEnum } from '../../types';
|
|
2
2
|
import { AnimationTypeEnum } from "../clip";
|
|
3
3
|
import { ShapeTypeEnum } from "../clip/clips/shape/types/Shape.types";
|
|
4
4
|
import { TextBlock } from "../library";
|
|
@@ -22,11 +22,20 @@ export declare enum UndoActionEnum {
|
|
|
22
22
|
CLIP_ANIMATION_SET_LOOP_SMOOTHING = "clip-animation-set-loop-smoothing",
|
|
23
23
|
CLIP_WRAP_MODE = "clip-wrap-mode",
|
|
24
24
|
CLIP_BLEND_MODE = "clip-blend-mode",
|
|
25
|
+
CLIP_MEDIA_VOLUME = "clip-media-volume",
|
|
26
|
+
CLIP_MEDIA_MUTE = "clip-media-mute",
|
|
27
|
+
CLIP_MEDIA_FADE_IN_DURATION = "clip-media-fade-in-volume",
|
|
28
|
+
CLIP_MEDIA_FADE_OUT_DURATION = "clip-media-fade-out-volume",
|
|
29
|
+
CLIP_MEDIA_FADE_IN_CURVE = "clip-media-fade-in-curve",
|
|
30
|
+
CLIP_MEDIA_FADE_OUT_CURVE = "clip-media-fade-out-curve",
|
|
31
|
+
CLIP_MEDIA_SPEED = "clip-media-speed",
|
|
32
|
+
CLIP_MEDIA_PERSERVE_PITCH = "clip-media-pitch",
|
|
25
33
|
CLIP_STYLE_POSITION = "clip-style-position",
|
|
26
34
|
CLIP_STYLE_SCALE = "clip-style-scale",
|
|
27
35
|
CLIP_STYLE_ROTATION = "clip-style-rotation",
|
|
28
36
|
CLIP_STYLE_ALPHA = "clip-style-alpha",
|
|
29
37
|
CLIP_STYLE_CORNER_RADIUS = "clip-style-corner-radius",
|
|
38
|
+
CLIP_STYLE_CROP = "clip-style-crop",
|
|
30
39
|
CLIP_TEXT_TEXT = "clip-text-text",
|
|
31
40
|
CLIP_TEXT_COLOR = "clip-text-color",
|
|
32
41
|
CLIP_TEXT_FONT_SIZE = "clip-text-font-size",
|
|
@@ -134,6 +143,41 @@ export type UndoActionMappings = {
|
|
|
134
143
|
clipId: string;
|
|
135
144
|
blendMode: BlendModeEnum;
|
|
136
145
|
};
|
|
146
|
+
[UndoActionEnum.CLIP_MEDIA_VOLUME]: {
|
|
147
|
+
clipId: string;
|
|
148
|
+
value: number;
|
|
149
|
+
};
|
|
150
|
+
[UndoActionEnum.CLIP_MEDIA_MUTE]: {
|
|
151
|
+
clipId: string;
|
|
152
|
+
value: boolean;
|
|
153
|
+
};
|
|
154
|
+
[UndoActionEnum.CLIP_MEDIA_FADE_IN_DURATION]: {
|
|
155
|
+
clipId: string;
|
|
156
|
+
value: number;
|
|
157
|
+
};
|
|
158
|
+
[UndoActionEnum.CLIP_MEDIA_FADE_OUT_DURATION]: {
|
|
159
|
+
clipId: string;
|
|
160
|
+
value: number;
|
|
161
|
+
};
|
|
162
|
+
[UndoActionEnum.CLIP_MEDIA_FADE_IN_CURVE]: {
|
|
163
|
+
clipId: string;
|
|
164
|
+
value: FadeCurveEnum;
|
|
165
|
+
};
|
|
166
|
+
[UndoActionEnum.CLIP_MEDIA_FADE_OUT_CURVE]: {
|
|
167
|
+
clipId: string;
|
|
168
|
+
value: FadeCurveEnum;
|
|
169
|
+
};
|
|
170
|
+
[UndoActionEnum.CLIP_MEDIA_SPEED]: {
|
|
171
|
+
clipId: string;
|
|
172
|
+
value: number;
|
|
173
|
+
startTime: number;
|
|
174
|
+
leftTrim: number;
|
|
175
|
+
rightTrim: number;
|
|
176
|
+
};
|
|
177
|
+
[UndoActionEnum.CLIP_MEDIA_PERSERVE_PITCH]: {
|
|
178
|
+
clipId: string;
|
|
179
|
+
value: boolean;
|
|
180
|
+
};
|
|
137
181
|
[UndoActionEnum.CLIP_STYLE_POSITION]: {
|
|
138
182
|
clipId: string;
|
|
139
183
|
value: [number, number];
|
|
@@ -155,6 +199,10 @@ export type UndoActionMappings = {
|
|
|
155
199
|
cornerRadius: number[];
|
|
156
200
|
relative: boolean;
|
|
157
201
|
};
|
|
202
|
+
[UndoActionEnum.CLIP_STYLE_CROP]: {
|
|
203
|
+
clipId: string;
|
|
204
|
+
value: number[];
|
|
205
|
+
};
|
|
158
206
|
[UndoActionEnum.CLIP_TEXT_TEXT]: {
|
|
159
207
|
clipId: string;
|
|
160
208
|
prevText: string;
|
|
@@ -9,6 +9,7 @@ export declare enum ClipTypeEnum {
|
|
|
9
9
|
SHAPE = "shape",
|
|
10
10
|
LOTTIE = "lottie",
|
|
11
11
|
SUBTITLES = "subtitles",
|
|
12
|
+
ADJUSTMENT = "adjustment",
|
|
12
13
|
PLACEHOLDER = "placeholder",
|
|
13
14
|
CUSTOM = "custom"
|
|
14
15
|
}
|
|
@@ -24,3 +25,28 @@ export declare enum BlendModeEnum {
|
|
|
24
25
|
SCREEN = "screen",
|
|
25
26
|
MULTIPLY = "multiply"
|
|
26
27
|
}
|
|
28
|
+
export declare enum FadeCurveEnum {
|
|
29
|
+
LINEAR = "tri",// triangular, linear slope (default)
|
|
30
|
+
QUARTER_SINE = "qsin",// quarter sine
|
|
31
|
+
HALF_SINE = "hsin",// half sine
|
|
32
|
+
EXP_SINE = "esin",// exponential sine
|
|
33
|
+
LOGARITHMIC = "log",// logarithmic
|
|
34
|
+
INVERSE_PARABOLA = "ipar",// inverted parabola
|
|
35
|
+
QUADRATIC = "qua",// quadratic
|
|
36
|
+
CUBIC = "cub",// cubic
|
|
37
|
+
SQUARE_ROOT = "squ",// square root
|
|
38
|
+
CUBIC_ROOT = "cbr",// cubic root
|
|
39
|
+
PARABOLA = "par",// parabola
|
|
40
|
+
EXPONENTIAL = "exp",// exponential
|
|
41
|
+
INV_QUARTER_SINE = "iqsin",// inverted quarter sine
|
|
42
|
+
INV_HALF_SINE = "ihsin",// inverted half sine
|
|
43
|
+
DOUBLE_EXP_SEAT = "dese",// double-exponential seat
|
|
44
|
+
DOUBLE_EXP_SIGMOID = "desi",// double-exponential sigmoid
|
|
45
|
+
LOGISTIC_SIGMOID = "losi",// logistic sigmoid
|
|
46
|
+
SINE_CARDINAL = "sinc",// sinc
|
|
47
|
+
INV_SINE_CARDINAL = "isinc",// inverted sinc
|
|
48
|
+
QUARTIC = "quat",// quartic
|
|
49
|
+
QUARTIC_ROOT = "quatr",// quartic root
|
|
50
|
+
SQUARE_QUARTER_SINE = "qsin2",// squared quarter sine
|
|
51
|
+
SQUARE_HALF_SINE = "hsin2"
|
|
52
|
+
}
|