@rendley/sdk 1.9.1 → 1.9.3
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 +6 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/types.d.ts +2 -0
- package/dist/modules/clip/clips/text/TextStyle.d.ts +3 -3
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +5 -1
- package/dist/modules/library/Library.d.ts +1 -0
- package/dist/modules/renderer/Renderer.d.ts +1 -0
- package/dist/modules/transcode/TranscodeProviderBase.d.ts +33 -0
- package/dist/modules/transcode/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -98,7 +98,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
98
98
|
strokeThickness: number;
|
|
99
99
|
padding: number[];
|
|
100
100
|
private isDirty;
|
|
101
|
-
protected animationColor: string
|
|
101
|
+
protected animationColor: string;
|
|
102
102
|
constructor(options: TextClipStyleOptions);
|
|
103
103
|
setDirty(): void;
|
|
104
104
|
setStrokeColor(strokeColor: string): void;
|
|
@@ -111,8 +111,8 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
111
111
|
setWordWrapWidth(wordWrapWidth: number | null): void;
|
|
112
112
|
setColor(color: string): void;
|
|
113
113
|
getColor(): string;
|
|
114
|
-
setAnimationColor(color: string
|
|
115
|
-
getAnimationColor(): string
|
|
114
|
+
setAnimationColor(color: string): void;
|
|
115
|
+
getAnimationColor(): string;
|
|
116
116
|
setFontWeight(fontWeight: TextStyleFontWeight): void;
|
|
117
117
|
getFontWeight(): "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
118
118
|
setFontFamily(fontFamily: string): void;
|
|
@@ -47,7 +47,8 @@ export declare enum EventsEnum {
|
|
|
47
47
|
UNDO_REDO_CHANGED = "undo:redo:changed",
|
|
48
48
|
UNDO_PERFORMED = "undo:performed",
|
|
49
49
|
REDO_PERFORMED = "redo:performed",
|
|
50
|
-
UNDO_PROCESS_CUSTOM = "undo:process:custom"
|
|
50
|
+
UNDO_PROCESS_CUSTOM = "undo:process:custom",
|
|
51
|
+
PROJECT_ID_CHANGED = "project:id:changed"
|
|
51
52
|
}
|
|
52
53
|
export type EventPayloadMap = {
|
|
53
54
|
[EventsEnum.READY]: undefined;
|
|
@@ -210,6 +211,9 @@ export type EventPayloadMap = {
|
|
|
210
211
|
undoRecord: UndoRecord;
|
|
211
212
|
redoGroup: UndoGroup;
|
|
212
213
|
};
|
|
214
|
+
[EventsEnum.PROJECT_ID_CHANGED]: {
|
|
215
|
+
projectId: string;
|
|
216
|
+
};
|
|
213
217
|
};
|
|
214
218
|
type EventEmitterValidEventType<T> = T extends undefined ? () => void : (payload: T) => void;
|
|
215
219
|
export type EventEmitterValidEventTypes = {
|
|
@@ -120,6 +120,7 @@ export declare class Library {
|
|
|
120
120
|
addSubtitles(subtitles: Subtitles): string;
|
|
121
121
|
removeSubtitles(id: string): void;
|
|
122
122
|
getSubtitlesById(id: string): Subtitles | undefined;
|
|
123
|
+
getSubtitlesIds(): string[];
|
|
123
124
|
serialize(): {
|
|
124
125
|
subtitles: {
|
|
125
126
|
id: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
|
|
2
|
+
export interface MediaMetadata {
|
|
3
|
+
mediaInfo?: MediaInfo;
|
|
4
|
+
mimeType?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TranscodeResult {
|
|
8
|
+
source: Uint8Array | URL;
|
|
9
|
+
mimeType?: string;
|
|
10
|
+
extension?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SupportType {
|
|
13
|
+
mimeType: string;
|
|
14
|
+
hasAlpha: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ProgressInfo {
|
|
17
|
+
state: string;
|
|
18
|
+
progress: number;
|
|
19
|
+
}
|
|
20
|
+
export declare enum ControlState {
|
|
21
|
+
RUN = "RUN",
|
|
22
|
+
CANCEL = "CANCEL"
|
|
23
|
+
}
|
|
24
|
+
export interface Control {
|
|
25
|
+
state: ControlState;
|
|
26
|
+
isRead: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare abstract class TranscodeProviderBase {
|
|
29
|
+
abstract supportsInput(mediaMetadata: MediaMetadata): Promise<boolean>;
|
|
30
|
+
abstract supportsOutput(outputType: SupportType): Promise<boolean>;
|
|
31
|
+
abstract supportsURLs(): Promise<boolean>;
|
|
32
|
+
abstract transcode(source: Uint8Array | URL, mediaMetadata: MediaMetadata, outputType: SupportType, control: Control, progressCallback?: (progressInfo: ProgressInfo) => void): Promise<TranscodeResult>;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TranscodeProviderBase";
|