@rendley/sdk 1.9.8 → 1.10.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 +8 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/background-timer/background-timer-worker.d.ts +5 -0
- package/dist/modules/background-timer/background-timer.d.ts +9 -0
- package/dist/modules/background-timer/backround-timer.types.d.ts +15 -0
- package/dist/modules/clip/Clip.d.ts +6 -3
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +1 -1
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +1 -1
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +1 -1
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +116 -36
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +1 -1
- package/dist/modules/clip/clips/text/TextClip.d.ts +1 -1
- package/dist/modules/clip/clips/video/VideoClip.d.ts +1 -1
- package/dist/modules/ffmpeg/FFmpeg.d.ts +1 -1
- package/dist/modules/layer/Layer.d.ts +5 -5
- package/dist/modules/library/Library.d.ts +5 -5
- package/dist/modules/library/MediaData.d.ts +3 -3
- package/dist/modules/renderer/Renderer.d.ts +4 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +4 -4
- package/dist/modules/timeline/Timeline.d.ts +7 -7
- package/dist/modules/transition/Transition.d.ts +3 -3
- package/dist/types/clip.types.d.ts +2 -5
- package/dist/utils/compareVersions/compareVersions.d.ts +1 -0
- package/dist/utils/timer/performanceTimer.d.ts +3 -0
- package/package.json +1 -1
package/dist/Engine.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as PIXI from "pixi.js";
|
|
2
|
+
import { BackgroundTimer } from "./modules/background-timer/background-timer";
|
|
2
3
|
import { CustomClip } from "./modules/clip/clips/custom/CustomClip";
|
|
3
4
|
import { Display, DisplayOptions } from "./modules/display/Display";
|
|
4
5
|
import { EventEmitter } from "./modules/event-emitter";
|
|
@@ -46,7 +47,7 @@ type CustomClipConstructor<T extends CustomClip = CustomClip> = {
|
|
|
46
47
|
};
|
|
47
48
|
export declare class Engine {
|
|
48
49
|
private static instance?;
|
|
49
|
-
static readonly currentVersion
|
|
50
|
+
static readonly currentVersion: string;
|
|
50
51
|
static projectVersion: string;
|
|
51
52
|
private static queuedDeserializeData;
|
|
52
53
|
private static isDeserializing;
|
|
@@ -68,6 +69,7 @@ export declare class Engine {
|
|
|
68
69
|
private isDestroying;
|
|
69
70
|
private createdAt;
|
|
70
71
|
private readonly renderer;
|
|
72
|
+
private readonly backgroundTimer;
|
|
71
73
|
private constructor();
|
|
72
74
|
static getInstance(): Engine;
|
|
73
75
|
hasInstance(): boolean;
|
|
@@ -76,6 +78,7 @@ export declare class Engine {
|
|
|
76
78
|
init(options: EngineOptions): Promise<void>;
|
|
77
79
|
private getLicenseCredentials;
|
|
78
80
|
destroy(everything?: boolean): Promise<void>;
|
|
81
|
+
getBackgroundTimer(): BackgroundTimer;
|
|
79
82
|
getProjectId(): string;
|
|
80
83
|
setProjectId(id: string): Promise<void>;
|
|
81
84
|
getDisplay(): Display;
|
|
@@ -107,6 +110,7 @@ export declare class Engine {
|
|
|
107
110
|
callStaticCustomClipMethod(typeEnum: string, methodName: string, ...args: any[]): any;
|
|
108
111
|
createCustomClipInstance<T extends CustomClip = CustomClip>(typeEnum: string, ...args: any[]): T;
|
|
109
112
|
hasCustomClipType(typeEnum: string): boolean;
|
|
113
|
+
reset(): void;
|
|
110
114
|
serialize(): {
|
|
111
115
|
display: {
|
|
112
116
|
width: number;
|
|
@@ -119,9 +123,9 @@ export declare class Engine {
|
|
|
119
123
|
layers: {
|
|
120
124
|
id: string;
|
|
121
125
|
transitions: {
|
|
126
|
+
type: "transition";
|
|
122
127
|
name: string;
|
|
123
128
|
id: string;
|
|
124
|
-
type: "transition";
|
|
125
129
|
startClipId: string;
|
|
126
130
|
endClipId: string;
|
|
127
131
|
inDuration: number;
|
|
@@ -147,8 +151,8 @@ export declare class Engine {
|
|
|
147
151
|
}[];
|
|
148
152
|
}[];
|
|
149
153
|
media: {
|
|
150
|
-
id: string;
|
|
151
154
|
type: string;
|
|
155
|
+
id: string;
|
|
152
156
|
filename: string;
|
|
153
157
|
permanentUrl?: string | undefined;
|
|
154
158
|
hash?: string | undefined;
|
|
@@ -161,7 +165,7 @@ export declare class Engine {
|
|
|
161
165
|
projectId?: string | undefined;
|
|
162
166
|
subtitlesManager?: {
|
|
163
167
|
scale: number;
|
|
164
|
-
textMode: "
|
|
168
|
+
textMode: "full" | "partial";
|
|
165
169
|
highlightAnimation: import("./modules/subtitles").HighlightAnimationEnum;
|
|
166
170
|
highlightAnimationSpeed: number;
|
|
167
171
|
mainTextStyle: {
|