@rendley/sdk 1.11.18 → 1.12.0
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 +15 -12
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +15 -9
- package/dist/modules/clip/ClipStyle.d.ts +26 -0
- package/dist/modules/clip/clips/adjustment/AdjustmentClip.d.ts +27 -0
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +62 -22
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +3 -3
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +20 -20
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +9 -5
- package/dist/modules/clip/clips/text/TextClip.d.ts +3 -3
- package/dist/modules/clip/clips/text/TextStyle.d.ts +11 -7
- package/dist/modules/clip/clips/video/VideoClip.d.ts +45 -4
- package/dist/modules/effect/Effect.d.ts +3 -3
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +28 -0
- package/dist/modules/filter/Filter.d.ts +3 -3
- package/dist/modules/filter/MaskFilter.d.ts +1 -1
- package/dist/modules/layer/Layer.d.ts +2 -0
- package/dist/modules/library/Library.d.ts +32 -32
- package/dist/modules/library/Subtitles.d.ts +3 -0
- package/dist/modules/library/TransitionData.d.ts +3 -3
- package/dist/modules/renderer/Renderer.d.ts +1 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +21 -21
- package/dist/modules/timeline/Timeline.d.ts +2 -0
- package/dist/modules/transition/Transition.d.ts +1 -0
- package/dist/modules/undo/UndoManager.types.d.ts +49 -1
- package/dist/types/clip.types.d.ts +26 -0
- package/dist/utils/animation/animation.d.ts +2 -1
- package/package.json +1 -1
package/dist/Engine.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export interface EngineOptions {
|
|
|
45
45
|
enableUndoRedo?: boolean;
|
|
46
46
|
forcedSettings?: Partial<z.infer<typeof SettingsSchema>>;
|
|
47
47
|
onSetupLibrary?: (data: LibrarySetupData) => Promise<void>;
|
|
48
|
+
dataHashFunction?: (data: Uint8Array) => Promise<string>;
|
|
48
49
|
}
|
|
49
50
|
type CustomClipConstructor<T extends CustomClip = CustomClip> = {
|
|
50
51
|
new (...args: any[]): T;
|
|
@@ -74,6 +75,7 @@ export declare class Engine {
|
|
|
74
75
|
private isDestroying;
|
|
75
76
|
private createdAt;
|
|
76
77
|
private onSetupLibrary?;
|
|
78
|
+
private dataHashFunction?;
|
|
77
79
|
private initOptions;
|
|
78
80
|
private ready;
|
|
79
81
|
private readonly renderer;
|
|
@@ -113,6 +115,7 @@ export declare class Engine {
|
|
|
113
115
|
getClipById(clipId: string): import(".").Clip<PIXI.Sprite, import(".").ClipStyle<PIXI.Sprite>> | undefined;
|
|
114
116
|
getClipsIdsForPoint(x: number, y: number): null;
|
|
115
117
|
setSubtitles(subtitlesId: string, offset: number): void;
|
|
118
|
+
getDataHashFunction(): ((data: Uint8Array) => Promise<string>) | undefined;
|
|
116
119
|
shouldSplitAudio(): boolean;
|
|
117
120
|
getFrameAsBase64Image(time?: number, mimeType?: "image/jpeg" | "image/webp" | "image/png", quality?: number): Promise<string>;
|
|
118
121
|
customClipTypes: Map<string, CustomClipConstructor>;
|
|
@@ -162,11 +165,16 @@ export declare class Engine {
|
|
|
162
165
|
time: number;
|
|
163
166
|
}[];
|
|
164
167
|
}[];
|
|
165
|
-
|
|
168
|
+
filters: {
|
|
169
|
+
name: string;
|
|
170
|
+
id: string;
|
|
171
|
+
provider: string;
|
|
172
|
+
lutUrl: string;
|
|
173
|
+
}[];
|
|
174
|
+
effects: {
|
|
166
175
|
name: string;
|
|
167
176
|
id: string;
|
|
168
177
|
provider: string;
|
|
169
|
-
transitionSrc: string;
|
|
170
178
|
properties: {
|
|
171
179
|
type: import("./modules/library").PropertyDescriptionTypeEnum;
|
|
172
180
|
name: string;
|
|
@@ -174,6 +182,7 @@ export declare class Engine {
|
|
|
174
182
|
label?: string | undefined;
|
|
175
183
|
description?: string | undefined;
|
|
176
184
|
}[];
|
|
185
|
+
fragmentSrc: string;
|
|
177
186
|
inputTextures?: {
|
|
178
187
|
name: string;
|
|
179
188
|
url: string;
|
|
@@ -182,13 +191,7 @@ export declare class Engine {
|
|
|
182
191
|
mipmap?: import("./modules/library").InputTextureMipmapMode | undefined;
|
|
183
192
|
}[] | undefined;
|
|
184
193
|
}[];
|
|
185
|
-
|
|
186
|
-
name: string;
|
|
187
|
-
id: string;
|
|
188
|
-
provider: string;
|
|
189
|
-
lutUrl: string;
|
|
190
|
-
}[];
|
|
191
|
-
effects: {
|
|
194
|
+
transitions: {
|
|
192
195
|
name: string;
|
|
193
196
|
id: string;
|
|
194
197
|
provider: string;
|
|
@@ -199,7 +202,7 @@ export declare class Engine {
|
|
|
199
202
|
label?: string | undefined;
|
|
200
203
|
description?: string | undefined;
|
|
201
204
|
}[];
|
|
202
|
-
|
|
205
|
+
transitionSrc: string;
|
|
203
206
|
inputTextures?: {
|
|
204
207
|
name: string;
|
|
205
208
|
url: string;
|
|
@@ -230,12 +233,12 @@ export declare class Engine {
|
|
|
230
233
|
highlightAnimationSpeed: number;
|
|
231
234
|
mainTextStyle: {
|
|
232
235
|
color: string;
|
|
233
|
-
strokeColor: string;
|
|
234
236
|
fontSize: number;
|
|
235
237
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
236
238
|
fontFamily: string;
|
|
237
239
|
fontStyle: "normal" | "italic" | "oblique";
|
|
238
240
|
backgroundColor: string;
|
|
241
|
+
strokeColor: string;
|
|
239
242
|
strokeThickness: number;
|
|
240
243
|
wordWrapWidth: number;
|
|
241
244
|
padding: number;
|
|
@@ -246,12 +249,12 @@ export declare class Engine {
|
|
|
246
249
|
};
|
|
247
250
|
highlightTextStyle: {
|
|
248
251
|
color: string;
|
|
249
|
-
strokeColor: string;
|
|
250
252
|
fontSize: number;
|
|
251
253
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
252
254
|
fontFamily: string;
|
|
253
255
|
fontStyle: "normal" | "italic" | "oblique";
|
|
254
256
|
backgroundColor: string;
|
|
257
|
+
strokeColor: string;
|
|
255
258
|
strokeThickness: number;
|
|
256
259
|
padding: number;
|
|
257
260
|
backgroundPadding: number;
|