@rendley/sdk 1.0.5 → 1.0.7
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 +9 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +7 -6
- package/dist/modules/clip/ClipStyle.d.ts +17 -11
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +4 -0
- package/dist/modules/clip/clips/index.d.ts +1 -0
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +1 -1
- package/dist/modules/clip/clips/shape/ShapeSprite.d.ts +9 -3
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +28 -7
- package/dist/modules/clip/clips/subtitles/SubtitlesClip.d.ts +10 -0
- package/dist/modules/clip/clips/text/TextClip.d.ts +1 -1
- package/dist/modules/clip/clips/text/TextStyle.d.ts +3 -2
- package/dist/modules/clip/clips/video/VideoClip.d.ts +3 -0
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +6 -0
- package/dist/modules/layer/Layer.d.ts +7 -7
- package/dist/modules/library/Library.d.ts +23 -17
- package/dist/modules/library/MediaData.d.ts +5 -4
- package/dist/modules/library/Subtitles.d.ts +23 -2
- package/dist/modules/subtitleManager/SubtitleManager.d.ts +0 -1
- package/dist/modules/timeline/Timeline.d.ts +11 -9
- package/dist/types/clip.types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { Clip } from "../clip";
|
|
2
|
+
import { AudioClip, Clip } from "../clip";
|
|
3
3
|
import { Layer } from "../layer";
|
|
4
4
|
export declare const TimelineSchema: z.ZodObject<{
|
|
5
5
|
startTime: z.ZodNumber;
|
|
@@ -42,7 +42,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
42
42
|
sourceId: string;
|
|
43
43
|
}>, "many">;
|
|
44
44
|
effects: z.ZodArray<z.ZodUnknown, "many">;
|
|
45
|
-
warpMode: z.ZodNativeEnum<typeof import(
|
|
45
|
+
warpMode: z.ZodNativeEnum<typeof import('../../types').WarpModeEnum>;
|
|
46
46
|
style: z.ZodUnknown;
|
|
47
47
|
text: z.ZodOptional<z.ZodString>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -61,7 +61,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
61
61
|
startTime: number;
|
|
62
62
|
leftTrim: number;
|
|
63
63
|
rightTrim: number;
|
|
64
|
-
warpMode: import(
|
|
64
|
+
warpMode: import('../../types').WarpModeEnum;
|
|
65
65
|
mediaDataId?: string | undefined;
|
|
66
66
|
subtitlesId?: string | undefined;
|
|
67
67
|
style?: unknown;
|
|
@@ -82,7 +82,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
82
82
|
startTime: number;
|
|
83
83
|
leftTrim: number;
|
|
84
84
|
rightTrim: number;
|
|
85
|
-
warpMode: import(
|
|
85
|
+
warpMode: import('../../types').WarpModeEnum;
|
|
86
86
|
mediaDataId?: string | undefined;
|
|
87
87
|
subtitlesId?: string | undefined;
|
|
88
88
|
style?: unknown;
|
|
@@ -136,7 +136,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
136
136
|
startTime: number;
|
|
137
137
|
leftTrim: number;
|
|
138
138
|
rightTrim: number;
|
|
139
|
-
warpMode: import(
|
|
139
|
+
warpMode: import('../../types').WarpModeEnum;
|
|
140
140
|
mediaDataId?: string | undefined;
|
|
141
141
|
subtitlesId?: string | undefined;
|
|
142
142
|
style?: unknown;
|
|
@@ -172,7 +172,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
172
172
|
startTime: number;
|
|
173
173
|
leftTrim: number;
|
|
174
174
|
rightTrim: number;
|
|
175
|
-
warpMode: import(
|
|
175
|
+
warpMode: import('../../types').WarpModeEnum;
|
|
176
176
|
mediaDataId?: string | undefined;
|
|
177
177
|
subtitlesId?: string | undefined;
|
|
178
178
|
style?: unknown;
|
|
@@ -212,7 +212,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
212
212
|
startTime: number;
|
|
213
213
|
leftTrim: number;
|
|
214
214
|
rightTrim: number;
|
|
215
|
-
warpMode: import(
|
|
215
|
+
warpMode: import('../../types').WarpModeEnum;
|
|
216
216
|
mediaDataId?: string | undefined;
|
|
217
217
|
subtitlesId?: string | undefined;
|
|
218
218
|
style?: unknown;
|
|
@@ -252,7 +252,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
252
252
|
startTime: number;
|
|
253
253
|
leftTrim: number;
|
|
254
254
|
rightTrim: number;
|
|
255
|
-
warpMode: import(
|
|
255
|
+
warpMode: import('../../types').WarpModeEnum;
|
|
256
256
|
mediaDataId?: string | undefined;
|
|
257
257
|
subtitlesId?: string | undefined;
|
|
258
258
|
style?: unknown;
|
|
@@ -287,6 +287,7 @@ export declare class Timeline {
|
|
|
287
287
|
}): Layer;
|
|
288
288
|
getLayerById(layerId: string): Layer | undefined;
|
|
289
289
|
getLayerByClipId(clipId: string): Layer | undefined;
|
|
290
|
+
getLayerIdx(layerId: string): number;
|
|
290
291
|
getClipById(clipId: string): Clip | undefined;
|
|
291
292
|
getClipsByMediaId(mediaId: string): Clip[];
|
|
292
293
|
getClipsBySubtitlesId(subtitlesId: string): Clip[];
|
|
@@ -300,6 +301,7 @@ export declare class Timeline {
|
|
|
300
301
|
removeClip(clipId: string): boolean;
|
|
301
302
|
removeLayer(layerId: string): boolean;
|
|
302
303
|
moveClipToLayer(clipId: string, newLayerId: string): Promise<void>;
|
|
304
|
+
extractAudio(clip: string | Clip): AudioClip | undefined;
|
|
303
305
|
alignTime(time: number, roundUp?: boolean): number;
|
|
304
306
|
adjustClipsLayout(): void;
|
|
305
307
|
getFitDuration(): number;
|
|
@@ -327,7 +329,7 @@ export declare class Timeline {
|
|
|
327
329
|
startTime: number;
|
|
328
330
|
leftTrim: number;
|
|
329
331
|
rightTrim: number;
|
|
330
|
-
warpMode: import(
|
|
332
|
+
warpMode: import('../../types').WarpModeEnum;
|
|
331
333
|
mediaDataId?: string | undefined;
|
|
332
334
|
subtitlesId?: string | undefined;
|
|
333
335
|
style?: unknown;
|
|
@@ -7,11 +7,12 @@ export declare enum ClipTypeEnum {
|
|
|
7
7
|
TEXT = "text",
|
|
8
8
|
SHAPE = "shape",
|
|
9
9
|
LOTTIE = "lottie",
|
|
10
|
+
SUBTITLES = "subtitles",
|
|
10
11
|
AV = "av",
|
|
11
12
|
COLOR = "color",
|
|
12
13
|
GRADIENT = "gradient"
|
|
13
14
|
}
|
|
14
|
-
export declare enum
|
|
15
|
+
export declare enum WarpModeEnum {
|
|
15
16
|
CLAMP = "clamp",
|
|
16
17
|
REPEAT = "repeat",
|
|
17
18
|
PING_PONG = "ping_ping",
|