@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
package/dist/Engine.d.ts
CHANGED
|
@@ -4,14 +4,29 @@ import { Display, DisplayOptions } from "./modules/display/Display";
|
|
|
4
4
|
import { EventEmitter } from "./modules/event-emitter";
|
|
5
5
|
import { FontRegistry } from "./modules/font-registry";
|
|
6
6
|
import { Library } from "./modules/library";
|
|
7
|
+
import { Settings } from "./modules/settings";
|
|
7
8
|
import { StorageProviderBase } from "./modules/storage";
|
|
8
9
|
import { StorageController } from "./modules/storage/StorageController";
|
|
9
10
|
import { SubtitlesManager } from "./modules/subtitleManager";
|
|
10
11
|
import { Timeline } from "./modules/timeline/Timeline";
|
|
12
|
+
export declare enum ExportVideoType {
|
|
13
|
+
VIDEO_ONLY = "video_only",
|
|
14
|
+
AUDIO_ONLY = "audio_only",
|
|
15
|
+
VIDEO_AUDIO = "video_audio"
|
|
16
|
+
}
|
|
11
17
|
interface EngineLicense {
|
|
12
18
|
licenseName: string;
|
|
13
19
|
licenseKey: string;
|
|
14
20
|
}
|
|
21
|
+
interface ExportResult {
|
|
22
|
+
blob: Blob;
|
|
23
|
+
extension: "aac" | "mp4";
|
|
24
|
+
}
|
|
25
|
+
interface ExportOptions {
|
|
26
|
+
type?: ExportVideoType;
|
|
27
|
+
from?: number;
|
|
28
|
+
to?: number;
|
|
29
|
+
}
|
|
15
30
|
export interface EngineOptions {
|
|
16
31
|
display?: DisplayOptions;
|
|
17
32
|
license?: EngineLicense;
|
|
@@ -28,6 +43,7 @@ export declare class Engine {
|
|
|
28
43
|
private fontRegistry;
|
|
29
44
|
private subtitlesManager;
|
|
30
45
|
private storageController;
|
|
46
|
+
private settings;
|
|
31
47
|
readonly events: EventEmitter;
|
|
32
48
|
private initialized;
|
|
33
49
|
private rendering;
|
|
@@ -43,23 +59,25 @@ export declare class Engine {
|
|
|
43
59
|
getDisplay(): Display;
|
|
44
60
|
getTimeline(): Timeline;
|
|
45
61
|
getLibrary(): Library;
|
|
62
|
+
getSettings(): Settings;
|
|
46
63
|
getFontRegistry(): FontRegistry;
|
|
47
64
|
getSubtitlesManager(): SubtitlesManager;
|
|
48
65
|
getStorageController(): StorageController;
|
|
49
66
|
isInitialized(): boolean;
|
|
50
67
|
isRendering(): boolean;
|
|
51
68
|
private generateMix;
|
|
52
|
-
export(
|
|
69
|
+
export(payload?: ExportOptions): Promise<ExportResult>;
|
|
53
70
|
play(): Promise<void>;
|
|
54
71
|
pause(): Promise<void>;
|
|
55
72
|
stop(): Promise<void>;
|
|
56
73
|
seek(value: number): Promise<void>;
|
|
57
74
|
getRenderer(): import("./modules/display/renderer/PixiRenderer").PixiRenderer;
|
|
58
75
|
getRendererStage(): PIXI.Container<PIXI.DisplayObject> | null;
|
|
59
|
-
getClipById(clipId: string): import("
|
|
76
|
+
getClipById(clipId: string): import("./modules/clip").Clip<PIXI.Sprite, import("./modules/clip").ClipStyle<PIXI.Sprite>> | undefined;
|
|
60
77
|
getClipsIdsForPoint(x: number, y: number): null;
|
|
61
78
|
setSubtitles(subtitlesId: string, offset: number): void;
|
|
62
79
|
shouldSplitAudio(): boolean;
|
|
80
|
+
getFrameAsBase64Image(time?: number, mimeType?: "image/jpeg" | "image/webp" | "image/png", quality?: number): Promise<string>;
|
|
63
81
|
customClipTypes: Map<string, CustomClipConstructor>;
|
|
64
82
|
registerCustomClip<T extends CustomClip = CustomClip>(classType: CustomClipConstructor<T>, typeEnum: string): void;
|
|
65
83
|
callStaticCustomClipMethod(typeEnum: string, methodName: string, ...args: any[]): any;
|
|
@@ -76,8 +94,6 @@ export declare class Engine {
|
|
|
76
94
|
fps: number;
|
|
77
95
|
layers: {
|
|
78
96
|
id: string;
|
|
79
|
-
isEnabled: boolean;
|
|
80
|
-
isMuted: boolean;
|
|
81
97
|
clips: any[];
|
|
82
98
|
transitions: {
|
|
83
99
|
name: string;
|
|
@@ -89,7 +105,11 @@ export declare class Engine {
|
|
|
89
105
|
outDuration: number;
|
|
90
106
|
transitionSrc: string;
|
|
91
107
|
}[];
|
|
108
|
+
visible?: boolean | undefined;
|
|
109
|
+
muted?: boolean | undefined;
|
|
110
|
+
volume?: number | undefined;
|
|
92
111
|
}[];
|
|
112
|
+
fitDuration: number;
|
|
93
113
|
};
|
|
94
114
|
library: {
|
|
95
115
|
subtitles: {
|
|
@@ -109,6 +129,7 @@ export declare class Engine {
|
|
|
109
129
|
permanentUrl?: string | undefined;
|
|
110
130
|
hash?: string | undefined;
|
|
111
131
|
mimeType?: string | undefined;
|
|
132
|
+
customData?: [string, unknown][] | undefined;
|
|
112
133
|
}[];
|
|
113
134
|
};
|
|
114
135
|
subtitlesManager: {
|
|
@@ -118,7 +139,7 @@ export declare class Engine {
|
|
|
118
139
|
mainTextStyle: {
|
|
119
140
|
fontSize?: number | undefined;
|
|
120
141
|
color?: string | undefined;
|
|
121
|
-
fontWeight?: "
|
|
142
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
122
143
|
fontFamily?: string | undefined;
|
|
123
144
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
124
145
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -128,7 +149,7 @@ export declare class Engine {
|
|
|
128
149
|
highlightTextStyle: {
|
|
129
150
|
color?: string | undefined;
|
|
130
151
|
fontSize?: number | undefined;
|
|
131
|
-
fontWeight?: "
|
|
152
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
132
153
|
fontFamily?: string | undefined;
|
|
133
154
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
134
155
|
backgroundColor?: string | undefined;
|
|
@@ -139,6 +160,10 @@ export declare class Engine {
|
|
|
139
160
|
};
|
|
140
161
|
version?: string | undefined;
|
|
141
162
|
projectId?: string | undefined;
|
|
163
|
+
settings?: {
|
|
164
|
+
preferredDecodingAcceleration: import("./modules/settings").PreferredAcceleration;
|
|
165
|
+
preferredEncodingAcceleration: import("./modules/settings").PreferredAcceleration;
|
|
166
|
+
} | undefined;
|
|
142
167
|
};
|
|
143
168
|
static deserialize(data: object): Promise<Engine | undefined>;
|
|
144
169
|
}
|