@rendley/sdk 1.12.2 → 1.12.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/dist/Engine.d.ts +18 -17
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +8 -8
- package/dist/modules/clip/ClipStyle.d.ts +6 -6
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +5 -5
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +18 -17
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +21 -21
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +13 -13
- package/dist/modules/clip/clips/text/TextClip.d.ts +4 -4
- package/dist/modules/clip/clips/text/TextStyle.d.ts +19 -19
- package/dist/modules/clip/clips/video/VideoClip.d.ts +5 -5
- package/dist/modules/effect/Effect.d.ts +3 -3
- package/dist/modules/ffmpeg/types/FFmpeg.types.d.ts +2 -0
- package/dist/modules/filter/Filter.d.ts +3 -3
- package/dist/modules/filter/MaskFilter.d.ts +1 -1
- package/dist/modules/font-registry/FontRegistry.d.ts +9 -5
- package/dist/modules/layer/Layer.d.ts +5 -5
- package/dist/modules/library/EffectData.d.ts +6 -6
- package/dist/modules/library/Library.d.ts +61 -56
- package/dist/modules/library/Subtitles.d.ts +7 -7
- package/dist/modules/library/TransitionData.d.ts +6 -6
- package/dist/modules/subtitles/SubtitleManager.d.ts +26 -26
- package/dist/modules/timeline/Timeline.d.ts +14 -7
- package/dist/modules/transition/Transition.d.ts +3 -3
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ export declare const TextBlockSchema: z.ZodObject<{
|
|
|
5
5
|
duration: z.ZodNumber;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
text: string;
|
|
8
|
-
duration: number;
|
|
9
8
|
time: number;
|
|
9
|
+
duration: number;
|
|
10
10
|
}, {
|
|
11
11
|
text: string;
|
|
12
|
-
duration: number;
|
|
13
12
|
time: number;
|
|
13
|
+
duration: number;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const SubtitlesSchema: z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
@@ -22,12 +22,12 @@ export declare const SubtitlesSchema: z.ZodObject<{
|
|
|
22
22
|
duration: z.ZodNumber;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
text: string;
|
|
25
|
-
duration: number;
|
|
26
25
|
time: number;
|
|
26
|
+
duration: number;
|
|
27
27
|
}, {
|
|
28
28
|
text: string;
|
|
29
|
-
duration: number;
|
|
30
29
|
time: number;
|
|
30
|
+
duration: number;
|
|
31
31
|
}>, "many">;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
id: string;
|
|
@@ -35,8 +35,8 @@ export declare const SubtitlesSchema: z.ZodObject<{
|
|
|
35
35
|
language: string;
|
|
36
36
|
textBlocks: {
|
|
37
37
|
text: string;
|
|
38
|
-
duration: number;
|
|
39
38
|
time: number;
|
|
39
|
+
duration: number;
|
|
40
40
|
}[];
|
|
41
41
|
}, {
|
|
42
42
|
id: string;
|
|
@@ -44,8 +44,8 @@ export declare const SubtitlesSchema: z.ZodObject<{
|
|
|
44
44
|
language: string;
|
|
45
45
|
textBlocks: {
|
|
46
46
|
text: string;
|
|
47
|
-
duration: number;
|
|
48
47
|
time: number;
|
|
48
|
+
duration: number;
|
|
49
49
|
}[];
|
|
50
50
|
}>;
|
|
51
51
|
export interface TextBlock {
|
|
@@ -85,8 +85,8 @@ export declare class Subtitles {
|
|
|
85
85
|
language: string;
|
|
86
86
|
textBlocks: {
|
|
87
87
|
text: string;
|
|
88
|
-
duration: number;
|
|
89
88
|
time: number;
|
|
89
|
+
duration: number;
|
|
90
90
|
}[];
|
|
91
91
|
};
|
|
92
92
|
static deserialize(data: object): Subtitles;
|
|
@@ -56,8 +56,6 @@ export declare const TransitionDataSchema: z.ZodObject<{
|
|
|
56
56
|
}>, "many">>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
name: string;
|
|
59
|
-
id: string;
|
|
60
|
-
provider: string;
|
|
61
59
|
properties: {
|
|
62
60
|
type: import(".").PropertyDescriptionTypeEnum;
|
|
63
61
|
name: string;
|
|
@@ -65,6 +63,8 @@ export declare const TransitionDataSchema: z.ZodObject<{
|
|
|
65
63
|
label?: string | undefined;
|
|
66
64
|
description?: string | undefined;
|
|
67
65
|
}[];
|
|
66
|
+
id: string;
|
|
67
|
+
provider: string;
|
|
68
68
|
transitionSrc: string;
|
|
69
69
|
inputTextures?: {
|
|
70
70
|
name: string;
|
|
@@ -75,8 +75,6 @@ export declare const TransitionDataSchema: z.ZodObject<{
|
|
|
75
75
|
}[] | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
name: string;
|
|
78
|
-
id: string;
|
|
79
|
-
provider: string;
|
|
80
78
|
properties: {
|
|
81
79
|
type: import(".").PropertyDescriptionTypeEnum;
|
|
82
80
|
name: string;
|
|
@@ -84,6 +82,8 @@ export declare const TransitionDataSchema: z.ZodObject<{
|
|
|
84
82
|
label?: string | undefined;
|
|
85
83
|
description?: string | undefined;
|
|
86
84
|
}[];
|
|
85
|
+
id: string;
|
|
86
|
+
provider: string;
|
|
87
87
|
transitionSrc: string;
|
|
88
88
|
inputTextures?: {
|
|
89
89
|
name: string;
|
|
@@ -119,8 +119,6 @@ export declare class TransitionData {
|
|
|
119
119
|
getIsSerializable(): boolean;
|
|
120
120
|
serialize(): {
|
|
121
121
|
name: string;
|
|
122
|
-
id: string;
|
|
123
|
-
provider: string;
|
|
124
122
|
properties: {
|
|
125
123
|
type: import(".").PropertyDescriptionTypeEnum;
|
|
126
124
|
name: string;
|
|
@@ -128,6 +126,8 @@ export declare class TransitionData {
|
|
|
128
126
|
label?: string | undefined;
|
|
129
127
|
description?: string | undefined;
|
|
130
128
|
}[];
|
|
129
|
+
id: string;
|
|
130
|
+
provider: string;
|
|
131
131
|
transitionSrc: string;
|
|
132
132
|
inputTextures?: {
|
|
133
133
|
name: string;
|
|
@@ -21,6 +21,7 @@ declare const CommonTextStyleSchema: z.ZodObject<{
|
|
|
21
21
|
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
color: string;
|
|
24
|
+
padding: number;
|
|
24
25
|
fontSize: number;
|
|
25
26
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
26
27
|
fontFamily: string;
|
|
@@ -28,7 +29,6 @@ declare const CommonTextStyleSchema: z.ZodObject<{
|
|
|
28
29
|
backgroundColor: string;
|
|
29
30
|
strokeColor: string;
|
|
30
31
|
strokeThickness: number;
|
|
31
|
-
padding: number;
|
|
32
32
|
backgroundPadding: number;
|
|
33
33
|
backgroundCornerRadius: number;
|
|
34
34
|
}, {
|
|
@@ -46,6 +46,7 @@ declare const CommonTextStyleSchema: z.ZodObject<{
|
|
|
46
46
|
}>;
|
|
47
47
|
declare const MainTextStyleSchema: z.ZodObject<{
|
|
48
48
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
49
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
49
50
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
50
51
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
51
52
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -53,7 +54,6 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
53
54
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
54
55
|
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
55
56
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
56
|
-
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
57
57
|
backgroundPadding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
58
58
|
backgroundCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
59
59
|
wordWrapWidth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -61,6 +61,7 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
61
61
|
leading: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
62
62
|
}, "strip", z.ZodTypeAny, {
|
|
63
63
|
color: string;
|
|
64
|
+
padding: number;
|
|
64
65
|
fontSize: number;
|
|
65
66
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
66
67
|
fontFamily: string;
|
|
@@ -69,13 +70,13 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
69
70
|
strokeColor: string;
|
|
70
71
|
strokeThickness: number;
|
|
71
72
|
wordWrapWidth: number;
|
|
72
|
-
padding: number;
|
|
73
|
-
wordWrap: boolean;
|
|
74
73
|
backgroundPadding: number;
|
|
75
74
|
backgroundCornerRadius: number;
|
|
75
|
+
wordWrap: boolean;
|
|
76
76
|
leading: number;
|
|
77
77
|
}, {
|
|
78
78
|
color?: string | undefined;
|
|
79
|
+
padding?: number | undefined;
|
|
79
80
|
fontSize?: number | undefined;
|
|
80
81
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
81
82
|
fontFamily?: string | undefined;
|
|
@@ -83,7 +84,6 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
83
84
|
backgroundColor?: string | undefined;
|
|
84
85
|
strokeColor?: string | undefined;
|
|
85
86
|
strokeThickness?: number | undefined;
|
|
86
|
-
padding?: number | undefined;
|
|
87
87
|
backgroundPadding?: number | undefined;
|
|
88
88
|
backgroundCornerRadius?: number | undefined;
|
|
89
89
|
wordWrapWidth?: number | undefined;
|
|
@@ -92,6 +92,7 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
92
92
|
}>;
|
|
93
93
|
declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
94
94
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
95
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
95
96
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
96
97
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
97
98
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -99,11 +100,11 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
99
100
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
100
101
|
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
101
102
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
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
|
+
padding: number;
|
|
107
108
|
fontSize: number;
|
|
108
109
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
109
110
|
fontFamily: string;
|
|
@@ -111,11 +112,11 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
111
112
|
backgroundColor: string;
|
|
112
113
|
strokeColor: string;
|
|
113
114
|
strokeThickness: number;
|
|
114
|
-
padding: number;
|
|
115
115
|
backgroundPadding: number;
|
|
116
116
|
backgroundCornerRadius: number;
|
|
117
117
|
}, {
|
|
118
118
|
color?: string | undefined;
|
|
119
|
+
padding?: number | undefined;
|
|
119
120
|
fontSize?: number | undefined;
|
|
120
121
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
121
122
|
fontFamily?: string | undefined;
|
|
@@ -123,7 +124,6 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
123
124
|
backgroundColor?: string | undefined;
|
|
124
125
|
strokeColor?: string | undefined;
|
|
125
126
|
strokeThickness?: number | undefined;
|
|
126
|
-
padding?: number | undefined;
|
|
127
127
|
backgroundPadding?: number | undefined;
|
|
128
128
|
backgroundCornerRadius?: number | undefined;
|
|
129
129
|
}>;
|
|
@@ -138,6 +138,7 @@ 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
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
141
142
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
142
143
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
143
144
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -145,7 +146,6 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
145
146
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
146
147
|
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
147
148
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
148
|
-
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
149
149
|
backgroundPadding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
150
150
|
backgroundCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
151
151
|
wordWrapWidth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -153,6 +153,7 @@ 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
|
+
padding: number;
|
|
156
157
|
fontSize: number;
|
|
157
158
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
158
159
|
fontFamily: string;
|
|
@@ -161,13 +162,13 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
161
162
|
strokeColor: string;
|
|
162
163
|
strokeThickness: number;
|
|
163
164
|
wordWrapWidth: number;
|
|
164
|
-
padding: number;
|
|
165
|
-
wordWrap: boolean;
|
|
166
165
|
backgroundPadding: number;
|
|
167
166
|
backgroundCornerRadius: number;
|
|
167
|
+
wordWrap: boolean;
|
|
168
168
|
leading: number;
|
|
169
169
|
}, {
|
|
170
170
|
color?: string | undefined;
|
|
171
|
+
padding?: number | undefined;
|
|
171
172
|
fontSize?: number | undefined;
|
|
172
173
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
173
174
|
fontFamily?: string | undefined;
|
|
@@ -175,7 +176,6 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
175
176
|
backgroundColor?: string | undefined;
|
|
176
177
|
strokeColor?: string | undefined;
|
|
177
178
|
strokeThickness?: number | undefined;
|
|
178
|
-
padding?: number | undefined;
|
|
179
179
|
backgroundPadding?: number | undefined;
|
|
180
180
|
backgroundCornerRadius?: number | undefined;
|
|
181
181
|
wordWrapWidth?: number | undefined;
|
|
@@ -184,6 +184,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
184
184
|
}>;
|
|
185
185
|
highlightTextStyle: z.ZodObject<{
|
|
186
186
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
187
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
187
188
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
188
189
|
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
189
190
|
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -191,11 +192,11 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
191
192
|
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
192
193
|
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
193
194
|
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
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
|
+
padding: number;
|
|
199
200
|
fontSize: number;
|
|
200
201
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
201
202
|
fontFamily: string;
|
|
@@ -203,11 +204,11 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
203
204
|
backgroundColor: string;
|
|
204
205
|
strokeColor: string;
|
|
205
206
|
strokeThickness: number;
|
|
206
|
-
padding: number;
|
|
207
207
|
backgroundPadding: number;
|
|
208
208
|
backgroundCornerRadius: number;
|
|
209
209
|
}, {
|
|
210
210
|
color?: string | undefined;
|
|
211
|
+
padding?: number | undefined;
|
|
211
212
|
fontSize?: number | undefined;
|
|
212
213
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
213
214
|
fontFamily?: string | undefined;
|
|
@@ -215,7 +216,6 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
215
216
|
backgroundColor?: string | undefined;
|
|
216
217
|
strokeColor?: string | undefined;
|
|
217
218
|
strokeThickness?: number | undefined;
|
|
218
|
-
padding?: number | undefined;
|
|
219
219
|
backgroundPadding?: number | undefined;
|
|
220
220
|
backgroundCornerRadius?: number | undefined;
|
|
221
221
|
}>;
|
|
@@ -228,6 +228,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
228
228
|
highlightAnimationSpeed: number;
|
|
229
229
|
mainTextStyle: {
|
|
230
230
|
color: string;
|
|
231
|
+
padding: number;
|
|
231
232
|
fontSize: number;
|
|
232
233
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
233
234
|
fontFamily: string;
|
|
@@ -236,14 +237,14 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
236
237
|
strokeColor: string;
|
|
237
238
|
strokeThickness: number;
|
|
238
239
|
wordWrapWidth: number;
|
|
239
|
-
padding: number;
|
|
240
|
-
wordWrap: boolean;
|
|
241
240
|
backgroundPadding: number;
|
|
242
241
|
backgroundCornerRadius: number;
|
|
242
|
+
wordWrap: boolean;
|
|
243
243
|
leading: number;
|
|
244
244
|
};
|
|
245
245
|
highlightTextStyle: {
|
|
246
246
|
color: string;
|
|
247
|
+
padding: number;
|
|
247
248
|
fontSize: number;
|
|
248
249
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
249
250
|
fontFamily: string;
|
|
@@ -251,7 +252,6 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
251
252
|
backgroundColor: string;
|
|
252
253
|
strokeColor: string;
|
|
253
254
|
strokeThickness: number;
|
|
254
|
-
padding: number;
|
|
255
255
|
backgroundPadding: number;
|
|
256
256
|
backgroundCornerRadius: number;
|
|
257
257
|
};
|
|
@@ -262,6 +262,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
262
262
|
highlightAnimationSpeed: number;
|
|
263
263
|
mainTextStyle: {
|
|
264
264
|
color?: string | undefined;
|
|
265
|
+
padding?: number | undefined;
|
|
265
266
|
fontSize?: number | undefined;
|
|
266
267
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
267
268
|
fontFamily?: string | undefined;
|
|
@@ -269,7 +270,6 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
269
270
|
backgroundColor?: string | undefined;
|
|
270
271
|
strokeColor?: string | undefined;
|
|
271
272
|
strokeThickness?: number | undefined;
|
|
272
|
-
padding?: number | undefined;
|
|
273
273
|
backgroundPadding?: number | undefined;
|
|
274
274
|
backgroundCornerRadius?: number | undefined;
|
|
275
275
|
wordWrapWidth?: number | undefined;
|
|
@@ -278,6 +278,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
278
278
|
};
|
|
279
279
|
highlightTextStyle: {
|
|
280
280
|
color?: string | undefined;
|
|
281
|
+
padding?: number | undefined;
|
|
281
282
|
fontSize?: number | undefined;
|
|
282
283
|
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
283
284
|
fontFamily?: string | undefined;
|
|
@@ -285,7 +286,6 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
285
286
|
backgroundColor?: string | undefined;
|
|
286
287
|
strokeColor?: string | undefined;
|
|
287
288
|
strokeThickness?: number | undefined;
|
|
288
|
-
padding?: number | undefined;
|
|
289
289
|
backgroundPadding?: number | undefined;
|
|
290
290
|
backgroundCornerRadius?: number | undefined;
|
|
291
291
|
};
|
|
@@ -330,6 +330,7 @@ export declare class SubtitlesManager {
|
|
|
330
330
|
getTextMode(): "partial" | "full";
|
|
331
331
|
getMainTextStyle(): {
|
|
332
332
|
color: string;
|
|
333
|
+
padding: number;
|
|
333
334
|
fontSize: number;
|
|
334
335
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
335
336
|
fontFamily: string;
|
|
@@ -338,14 +339,14 @@ export declare class SubtitlesManager {
|
|
|
338
339
|
strokeColor: string;
|
|
339
340
|
strokeThickness: number;
|
|
340
341
|
wordWrapWidth: number;
|
|
341
|
-
padding: number;
|
|
342
|
-
wordWrap: boolean;
|
|
343
342
|
backgroundPadding: number;
|
|
344
343
|
backgroundCornerRadius: number;
|
|
344
|
+
wordWrap: boolean;
|
|
345
345
|
leading: number;
|
|
346
346
|
};
|
|
347
347
|
getHighlightTextStyle(): {
|
|
348
348
|
color: string;
|
|
349
|
+
padding: number;
|
|
349
350
|
fontSize: number;
|
|
350
351
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
351
352
|
fontFamily: string;
|
|
@@ -353,7 +354,6 @@ export declare class SubtitlesManager {
|
|
|
353
354
|
backgroundColor: string;
|
|
354
355
|
strokeColor: string;
|
|
355
356
|
strokeThickness: number;
|
|
356
|
-
padding: number;
|
|
357
357
|
backgroundPadding: number;
|
|
358
358
|
backgroundCornerRadius: number;
|
|
359
359
|
};
|
|
@@ -381,6 +381,7 @@ export declare class SubtitlesManager {
|
|
|
381
381
|
highlightAnimationSpeed: number;
|
|
382
382
|
mainTextStyle: {
|
|
383
383
|
color: string;
|
|
384
|
+
padding: number;
|
|
384
385
|
fontSize: number;
|
|
385
386
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
386
387
|
fontFamily: string;
|
|
@@ -389,14 +390,14 @@ export declare class SubtitlesManager {
|
|
|
389
390
|
strokeColor: string;
|
|
390
391
|
strokeThickness: number;
|
|
391
392
|
wordWrapWidth: number;
|
|
392
|
-
padding: number;
|
|
393
|
-
wordWrap: boolean;
|
|
394
393
|
backgroundPadding: number;
|
|
395
394
|
backgroundCornerRadius: number;
|
|
395
|
+
wordWrap: boolean;
|
|
396
396
|
leading: number;
|
|
397
397
|
};
|
|
398
398
|
highlightTextStyle: {
|
|
399
399
|
color: string;
|
|
400
|
+
padding: number;
|
|
400
401
|
fontSize: number;
|
|
401
402
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
402
403
|
fontFamily: string;
|
|
@@ -404,7 +405,6 @@ export declare class SubtitlesManager {
|
|
|
404
405
|
backgroundColor: string;
|
|
405
406
|
strokeColor: string;
|
|
406
407
|
strokeThickness: number;
|
|
407
|
-
padding: number;
|
|
408
408
|
backgroundPadding: number;
|
|
409
409
|
backgroundCornerRadius: number;
|
|
410
410
|
};
|
|
@@ -25,18 +25,18 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
25
25
|
provider: z.ZodString;
|
|
26
26
|
properties: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodAny], null>, "many">;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
properties: [string, any][];
|
|
28
29
|
id: string;
|
|
29
30
|
provider: string;
|
|
30
|
-
properties: [string, any][];
|
|
31
31
|
startClipId: string;
|
|
32
32
|
endClipId: string;
|
|
33
33
|
inDuration: number;
|
|
34
34
|
outDuration: number;
|
|
35
35
|
transitionId: string;
|
|
36
36
|
}, {
|
|
37
|
+
properties: [string, any][];
|
|
37
38
|
id: string;
|
|
38
39
|
provider: string;
|
|
39
|
-
properties: [string, any][];
|
|
40
40
|
startClipId: string;
|
|
41
41
|
endClipId: string;
|
|
42
42
|
inDuration: number;
|
|
@@ -46,9 +46,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
id: string;
|
|
48
48
|
transitions: {
|
|
49
|
+
properties: [string, any][];
|
|
49
50
|
id: string;
|
|
50
51
|
provider: string;
|
|
51
|
-
properties: [string, any][];
|
|
52
52
|
startClipId: string;
|
|
53
53
|
endClipId: string;
|
|
54
54
|
inDuration: number;
|
|
@@ -62,9 +62,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
62
62
|
}, {
|
|
63
63
|
id: string;
|
|
64
64
|
transitions: {
|
|
65
|
+
properties: [string, any][];
|
|
65
66
|
id: string;
|
|
66
67
|
provider: string;
|
|
67
|
-
properties: [string, any][];
|
|
68
68
|
startClipId: string;
|
|
69
69
|
endClipId: string;
|
|
70
70
|
inDuration: number;
|
|
@@ -77,15 +77,17 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
77
77
|
volume?: number | undefined;
|
|
78
78
|
}>, "many">;
|
|
79
79
|
fitDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
80
|
+
volume: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
80
81
|
}, "strip", z.ZodTypeAny, {
|
|
81
82
|
startTime: number;
|
|
83
|
+
volume: number;
|
|
82
84
|
fps: number;
|
|
83
85
|
layers: {
|
|
84
86
|
id: string;
|
|
85
87
|
transitions: {
|
|
88
|
+
properties: [string, any][];
|
|
86
89
|
id: string;
|
|
87
90
|
provider: string;
|
|
88
|
-
properties: [string, any][];
|
|
89
91
|
startClipId: string;
|
|
90
92
|
endClipId: string;
|
|
91
93
|
inDuration: number;
|
|
@@ -104,9 +106,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
104
106
|
layers: {
|
|
105
107
|
id: string;
|
|
106
108
|
transitions: {
|
|
109
|
+
properties: [string, any][];
|
|
107
110
|
id: string;
|
|
108
111
|
provider: string;
|
|
109
|
-
properties: [string, any][];
|
|
110
112
|
startClipId: string;
|
|
111
113
|
endClipId: string;
|
|
112
114
|
inDuration: number;
|
|
@@ -119,12 +121,14 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
119
121
|
volume?: number | undefined;
|
|
120
122
|
}[];
|
|
121
123
|
fitDuration?: number | undefined;
|
|
124
|
+
volume?: number | undefined;
|
|
122
125
|
}>;
|
|
123
126
|
export declare class Timeline {
|
|
124
127
|
private startTime;
|
|
125
128
|
layers: Record<string, Layer>;
|
|
126
129
|
layersOrder: string[];
|
|
127
130
|
fps: number;
|
|
131
|
+
volume: number;
|
|
128
132
|
currentTime: number;
|
|
129
133
|
isPlaying: boolean;
|
|
130
134
|
private justStartedPlaying;
|
|
@@ -146,6 +150,8 @@ export declare class Timeline {
|
|
|
146
150
|
getClipById(clipId: string): Clip | undefined;
|
|
147
151
|
getClipsByMediaId(mediaId: string): Clip[];
|
|
148
152
|
getClipsBySubtitlesId(subtitlesId: string): Clip[];
|
|
153
|
+
setVolume(volume: number): void;
|
|
154
|
+
getVolume(): number;
|
|
149
155
|
play(): Promise<void>;
|
|
150
156
|
pause(): void;
|
|
151
157
|
stop(): void;
|
|
@@ -170,13 +176,14 @@ export declare class Timeline {
|
|
|
170
176
|
loadSerializedData(data: object): Promise<void>;
|
|
171
177
|
serialize(): {
|
|
172
178
|
startTime: number;
|
|
179
|
+
volume: number;
|
|
173
180
|
fps: number;
|
|
174
181
|
layers: {
|
|
175
182
|
id: string;
|
|
176
183
|
transitions: {
|
|
184
|
+
properties: [string, any][];
|
|
177
185
|
id: string;
|
|
178
186
|
provider: string;
|
|
179
|
-
properties: [string, any][];
|
|
180
187
|
startClipId: string;
|
|
181
188
|
endClipId: string;
|
|
182
189
|
inDuration: number;
|
|
@@ -11,18 +11,18 @@ export declare const TransitionSchema: z.ZodObject<{
|
|
|
11
11
|
provider: z.ZodString;
|
|
12
12
|
properties: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodAny], null>, "many">;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
properties: [string, any][];
|
|
14
15
|
id: string;
|
|
15
16
|
provider: string;
|
|
16
|
-
properties: [string, any][];
|
|
17
17
|
startClipId: string;
|
|
18
18
|
endClipId: string;
|
|
19
19
|
inDuration: number;
|
|
20
20
|
outDuration: number;
|
|
21
21
|
transitionId: string;
|
|
22
22
|
}, {
|
|
23
|
+
properties: [string, any][];
|
|
23
24
|
id: string;
|
|
24
25
|
provider: string;
|
|
25
|
-
properties: [string, any][];
|
|
26
26
|
startClipId: string;
|
|
27
27
|
endClipId: string;
|
|
28
28
|
inDuration: number;
|
|
@@ -88,9 +88,9 @@ export declare class Transition {
|
|
|
88
88
|
destroy(): void;
|
|
89
89
|
update(currentTime: number): void;
|
|
90
90
|
serialize(): {
|
|
91
|
+
properties: [string, any][];
|
|
91
92
|
id: string;
|
|
92
93
|
provider: string;
|
|
93
|
-
properties: [string, any][];
|
|
94
94
|
startClipId: string;
|
|
95
95
|
endClipId: string;
|
|
96
96
|
inDuration: number;
|