@rendley/sdk 1.3.0 → 1.4.1
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 +31 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/classes.d.ts +1 -0
- package/dist/libs/ffmpeg/const.d.ts +2 -1
- package/dist/modules/clip/Clip.d.ts +12 -0
- package/dist/modules/clip/ClipStyle.d.ts +4 -0
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +103 -5
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +1 -0
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +1 -0
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +1 -0
- package/dist/modules/clip/clips/text/TextClip.d.ts +1 -1
- package/dist/modules/clip/clips/text/TextStyle.d.ts +5 -3
- package/dist/modules/clip/clips/video/VideoClip.d.ts +104 -6
- package/dist/modules/layer/Layer.d.ts +21 -10
- package/dist/modules/library/Library.d.ts +6 -0
- package/dist/modules/library/MediaData.d.ts +12 -0
- package/dist/modules/settings/Settings.d.ts +29 -0
- package/dist/modules/settings/index.d.ts +1 -0
- package/dist/modules/storage/StorageProviderBase.d.ts +1 -0
- package/dist/modules/subtitleManager/SubtitleManager.d.ts +15 -14
- package/dist/modules/timeline/Timeline.d.ts +22 -12
- package/dist/utils/animation/animation.d.ts +2 -0
- package/dist/utils/cachedAccess/cachedAccess.d.ts +18 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
fontSize?: number | undefined;
|
|
20
20
|
color?: string | undefined;
|
|
21
|
-
fontWeight?: "
|
|
21
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
22
22
|
fontFamily?: string | undefined;
|
|
23
23
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
24
24
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -27,7 +27,7 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
27
27
|
}, {
|
|
28
28
|
fontSize?: number | undefined;
|
|
29
29
|
color?: string | undefined;
|
|
30
|
-
fontWeight?: "
|
|
30
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
31
31
|
fontFamily?: string | undefined;
|
|
32
32
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
33
33
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -47,7 +47,7 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
color?: string | undefined;
|
|
49
49
|
fontSize?: number | undefined;
|
|
50
|
-
fontWeight?: "
|
|
50
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
51
51
|
fontFamily?: string | undefined;
|
|
52
52
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
53
53
|
backgroundColor?: string | undefined;
|
|
@@ -57,7 +57,7 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
57
57
|
}, {
|
|
58
58
|
color?: string | undefined;
|
|
59
59
|
fontSize?: number | undefined;
|
|
60
|
-
fontWeight?: "
|
|
60
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
61
61
|
fontFamily?: string | undefined;
|
|
62
62
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
63
63
|
backgroundColor?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
fontSize?: number | undefined;
|
|
87
87
|
color?: string | undefined;
|
|
88
|
-
fontWeight?: "
|
|
88
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
89
89
|
fontFamily?: string | undefined;
|
|
90
90
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
91
91
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -94,7 +94,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
94
94
|
}, {
|
|
95
95
|
fontSize?: number | undefined;
|
|
96
96
|
color?: string | undefined;
|
|
97
|
-
fontWeight?: "
|
|
97
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
98
98
|
fontFamily?: string | undefined;
|
|
99
99
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
100
100
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -114,7 +114,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
color?: string | undefined;
|
|
116
116
|
fontSize?: number | undefined;
|
|
117
|
-
fontWeight?: "
|
|
117
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
118
118
|
fontFamily?: string | undefined;
|
|
119
119
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
120
120
|
backgroundColor?: string | undefined;
|
|
@@ -124,7 +124,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
124
124
|
}, {
|
|
125
125
|
color?: string | undefined;
|
|
126
126
|
fontSize?: number | undefined;
|
|
127
|
-
fontWeight?: "
|
|
127
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
128
128
|
fontFamily?: string | undefined;
|
|
129
129
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
130
130
|
backgroundColor?: string | undefined;
|
|
@@ -139,7 +139,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
139
139
|
mainTextStyle: {
|
|
140
140
|
fontSize?: number | undefined;
|
|
141
141
|
color?: string | undefined;
|
|
142
|
-
fontWeight?: "
|
|
142
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
143
143
|
fontFamily?: string | undefined;
|
|
144
144
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
145
145
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -149,7 +149,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
149
149
|
highlightTextStyle: {
|
|
150
150
|
color?: string | undefined;
|
|
151
151
|
fontSize?: number | undefined;
|
|
152
|
-
fontWeight?: "
|
|
152
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
153
153
|
fontFamily?: string | undefined;
|
|
154
154
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
155
155
|
backgroundColor?: string | undefined;
|
|
@@ -164,7 +164,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
164
164
|
mainTextStyle: {
|
|
165
165
|
fontSize?: number | undefined;
|
|
166
166
|
color?: string | undefined;
|
|
167
|
-
fontWeight?: "
|
|
167
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
168
168
|
fontFamily?: string | undefined;
|
|
169
169
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
170
170
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -174,7 +174,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
174
174
|
highlightTextStyle: {
|
|
175
175
|
color?: string | undefined;
|
|
176
176
|
fontSize?: number | undefined;
|
|
177
|
-
fontWeight?: "
|
|
177
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
178
178
|
fontFamily?: string | undefined;
|
|
179
179
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
180
180
|
backgroundColor?: string | undefined;
|
|
@@ -197,6 +197,7 @@ export declare class SubtitlesManager {
|
|
|
197
197
|
private wordTween;
|
|
198
198
|
private backgroundColor;
|
|
199
199
|
private backgroundPadding;
|
|
200
|
+
private wordWrapWidth;
|
|
200
201
|
private getInitialTweenValue;
|
|
201
202
|
constructor();
|
|
202
203
|
init(): void;
|
|
@@ -220,7 +221,7 @@ export declare class SubtitlesManager {
|
|
|
220
221
|
mainTextStyle: {
|
|
221
222
|
fontSize?: number | undefined;
|
|
222
223
|
color?: string | undefined;
|
|
223
|
-
fontWeight?: "
|
|
224
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
224
225
|
fontFamily?: string | undefined;
|
|
225
226
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
226
227
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -230,7 +231,7 @@ export declare class SubtitlesManager {
|
|
|
230
231
|
highlightTextStyle: {
|
|
231
232
|
color?: string | undefined;
|
|
232
233
|
fontSize?: number | undefined;
|
|
233
|
-
fontWeight?: "
|
|
234
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
234
235
|
fontFamily?: string | undefined;
|
|
235
236
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
236
237
|
backgroundColor?: string | undefined;
|
|
@@ -6,8 +6,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
6
6
|
fps: z.ZodNumber;
|
|
7
7
|
layers: z.ZodArray<z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
muted: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
volume: z.ZodOptional<z.ZodNumber>;
|
|
11
12
|
clips: z.ZodArray<z.ZodAny, "many">;
|
|
12
13
|
transitions: z.ZodArray<z.ZodObject<{
|
|
13
14
|
id: z.ZodString;
|
|
@@ -39,8 +40,6 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
39
40
|
}>, "many">;
|
|
40
41
|
}, "strip", z.ZodTypeAny, {
|
|
41
42
|
id: string;
|
|
42
|
-
isEnabled: boolean;
|
|
43
|
-
isMuted: boolean;
|
|
44
43
|
clips: any[];
|
|
45
44
|
transitions: {
|
|
46
45
|
name: string;
|
|
@@ -52,10 +51,11 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
52
51
|
outDuration: number;
|
|
53
52
|
transitionSrc: string;
|
|
54
53
|
}[];
|
|
54
|
+
visible?: boolean | undefined;
|
|
55
|
+
muted?: boolean | undefined;
|
|
56
|
+
volume?: number | undefined;
|
|
55
57
|
}, {
|
|
56
58
|
id: string;
|
|
57
|
-
isEnabled: boolean;
|
|
58
|
-
isMuted: boolean;
|
|
59
59
|
clips: any[];
|
|
60
60
|
transitions: {
|
|
61
61
|
name: string;
|
|
@@ -67,14 +67,16 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
67
67
|
outDuration: number;
|
|
68
68
|
transitionSrc: string;
|
|
69
69
|
}[];
|
|
70
|
+
visible?: boolean | undefined;
|
|
71
|
+
muted?: boolean | undefined;
|
|
72
|
+
volume?: number | undefined;
|
|
70
73
|
}>, "many">;
|
|
74
|
+
fitDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
71
75
|
}, "strip", z.ZodTypeAny, {
|
|
72
76
|
startTime: number;
|
|
73
77
|
fps: number;
|
|
74
78
|
layers: {
|
|
75
79
|
id: string;
|
|
76
|
-
isEnabled: boolean;
|
|
77
|
-
isMuted: boolean;
|
|
78
80
|
clips: any[];
|
|
79
81
|
transitions: {
|
|
80
82
|
name: string;
|
|
@@ -86,14 +88,16 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
86
88
|
outDuration: number;
|
|
87
89
|
transitionSrc: string;
|
|
88
90
|
}[];
|
|
91
|
+
visible?: boolean | undefined;
|
|
92
|
+
muted?: boolean | undefined;
|
|
93
|
+
volume?: number | undefined;
|
|
89
94
|
}[];
|
|
95
|
+
fitDuration: number;
|
|
90
96
|
}, {
|
|
91
97
|
startTime: number;
|
|
92
98
|
fps: number;
|
|
93
99
|
layers: {
|
|
94
100
|
id: string;
|
|
95
|
-
isEnabled: boolean;
|
|
96
|
-
isMuted: boolean;
|
|
97
101
|
clips: any[];
|
|
98
102
|
transitions: {
|
|
99
103
|
name: string;
|
|
@@ -105,7 +109,11 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
105
109
|
outDuration: number;
|
|
106
110
|
transitionSrc: string;
|
|
107
111
|
}[];
|
|
112
|
+
visible?: boolean | undefined;
|
|
113
|
+
muted?: boolean | undefined;
|
|
114
|
+
volume?: number | undefined;
|
|
108
115
|
}[];
|
|
116
|
+
fitDuration?: number | undefined;
|
|
109
117
|
}>;
|
|
110
118
|
export declare class Timeline {
|
|
111
119
|
private startTime;
|
|
@@ -149,8 +157,6 @@ export declare class Timeline {
|
|
|
149
157
|
fps: number;
|
|
150
158
|
layers: {
|
|
151
159
|
id: string;
|
|
152
|
-
isEnabled: boolean;
|
|
153
|
-
isMuted: boolean;
|
|
154
160
|
clips: any[];
|
|
155
161
|
transitions: {
|
|
156
162
|
name: string;
|
|
@@ -162,7 +168,11 @@ export declare class Timeline {
|
|
|
162
168
|
outDuration: number;
|
|
163
169
|
transitionSrc: string;
|
|
164
170
|
}[];
|
|
171
|
+
visible?: boolean | undefined;
|
|
172
|
+
muted?: boolean | undefined;
|
|
173
|
+
volume?: number | undefined;
|
|
165
174
|
}[];
|
|
175
|
+
fitDuration: number;
|
|
166
176
|
};
|
|
167
177
|
static deserialize(data: object): Timeline;
|
|
168
178
|
}
|
|
@@ -234,11 +234,13 @@ export declare class AnimationController {
|
|
|
234
234
|
private startTime;
|
|
235
235
|
private endTime;
|
|
236
236
|
private duration;
|
|
237
|
+
private animatedProperties;
|
|
237
238
|
constructor(setCallback: SetCallbackType, getCallback: GetCallbackType);
|
|
238
239
|
loadFromUrl(url: string): Promise<this>;
|
|
239
240
|
loadFromAnimationData(data: AnimationData): this;
|
|
240
241
|
private initialize;
|
|
241
242
|
isLoaded(): boolean;
|
|
243
|
+
getAnimatedProperties(): Set<string>;
|
|
242
244
|
getAnimationData(): AnimationData;
|
|
243
245
|
setSpeed(speed: number): this;
|
|
244
246
|
getSpeed(): number | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Clip } from '../../modules/clip';
|
|
2
|
+
export declare class CachedAccess {
|
|
3
|
+
private static instance;
|
|
4
|
+
static getInstance(): CachedAccess;
|
|
5
|
+
private constructor();
|
|
6
|
+
private readonly clipIdToLayerId;
|
|
7
|
+
private readonly clipIdToClip;
|
|
8
|
+
private readonly mediaIdToClips;
|
|
9
|
+
private readonly subtitlesIdToClips;
|
|
10
|
+
setClipInfo(clipId: string, layerId: string, clip: Clip): void;
|
|
11
|
+
updateSubtitlesIdToClips(subtitlesIdOld: string | undefined, subtitlesId: string | undefined, clip: Clip): void;
|
|
12
|
+
updateClipIdToLayerId(oldLayerId: string, newLayerId: string, clipId: string): void;
|
|
13
|
+
removeClipInfo(clipId: string): void;
|
|
14
|
+
layerIdFromClipId(clipId: string): string | undefined;
|
|
15
|
+
clipFromClipId(clipId: string): Clip | undefined;
|
|
16
|
+
clipsFromMediaId(mediaId: string): Clip[];
|
|
17
|
+
clipsFromSubtitlesId(subtitlesId: string): Clip[];
|
|
18
|
+
}
|