@rendley/sdk 1.9.0 → 1.9.2
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/LICENSE +48 -48
- package/README.md +40 -40
- package/dist/Engine.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- 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/renderer/Renderer.d.ts +1 -0
- package/dist/modules/transcode/TranscodeProviderBase.d.ts +32 -0
- package/dist/modules/transcode/index.d.ts +1 -0
- package/package.json +81 -81
|
@@ -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 = {
|
|
@@ -0,0 +1,32 @@
|
|
|
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 supportsOutput(outputType: SupportType): boolean;
|
|
30
|
+
abstract supportsURLs(): boolean;
|
|
31
|
+
abstract transcode(source: Uint8Array | URL, mediaMetadata: MediaMetadata, outputType: SupportType, control: Control, progressCallback?: (progressInfo: ProgressInfo) => void): Promise<TranscodeResult>;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TranscodeProviderBase";
|
package/package.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rendley/sdk",
|
|
3
|
-
"version": "1.9.
|
|
4
|
-
"license": "LICENSE",
|
|
5
|
-
"author": "Onix Technologies",
|
|
6
|
-
"homepage": "https://rendley.com",
|
|
7
|
-
"description": "A Video Editing SDK that works completely in the browser.",
|
|
8
|
-
"type": "module",
|
|
9
|
-
"keywords": [
|
|
10
|
-
"video editing sdk",
|
|
11
|
-
"javascript video sdk",
|
|
12
|
-
"typescript video sdk",
|
|
13
|
-
"video api",
|
|
14
|
-
"video processing",
|
|
15
|
-
"ffmpeg",
|
|
16
|
-
"video",
|
|
17
|
-
"web codecs",
|
|
18
|
-
"video editor"
|
|
19
|
-
],
|
|
20
|
-
"main": "./dist/index.cjs",
|
|
21
|
-
"module": "./dist/index.js",
|
|
22
|
-
"typings": "./dist/index.d.ts",
|
|
23
|
-
"files": [
|
|
24
|
-
"dist"
|
|
25
|
-
],
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"registry": "https://registry.npmjs.org/",
|
|
28
|
-
"access": "public"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build:docs": "typedoc",
|
|
32
|
-
"build": "tsc && vite build --mode development",
|
|
33
|
-
"build:watch": "tsc && vite build --watch --mode development",
|
|
34
|
-
"build:production": "tsc && vite build --mode production && npm run obfuscate",
|
|
35
|
-
"obfuscate": "node ./plugins/obfuscate.js",
|
|
36
|
-
"test": "jest",
|
|
37
|
-
"lint": "eslint --ext .ts,.tsx src --fix",
|
|
38
|
-
"format": "prettier --write 'src/**/*.{ts,tsx}'",
|
|
39
|
-
"patch": "patch-package"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.23.7",
|
|
43
|
-
"@babel/preset-env": "7.23.7",
|
|
44
|
-
"@babel/preset-typescript": "7.23.3",
|
|
45
|
-
"@types/crypto-js": "4.2.2",
|
|
46
|
-
"@types/emscripten": "1.39.10",
|
|
47
|
-
"@types/eventemitter3": "2.0.2",
|
|
48
|
-
"@types/gradient-parser": "0.1.5",
|
|
49
|
-
"@types/jest": "29.5.11",
|
|
50
|
-
"@types/node": "20.10.6",
|
|
51
|
-
"@types/uuid": "9.0.8",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "6.17.0",
|
|
53
|
-
"@typescript-eslint/parser": "6.17.0",
|
|
54
|
-
"babel-jest": "29.7.0",
|
|
55
|
-
"eslint": "8.56.0",
|
|
56
|
-
"eslint-plugin-import": "2.29.1",
|
|
57
|
-
"javascript-obfuscator": "4.1.0",
|
|
58
|
-
"jest": "29.7.0",
|
|
59
|
-
"patch-package": "8.0.0",
|
|
60
|
-
"postinstall-postinstall": "2.1.0",
|
|
61
|
-
"prettier": "3.1.1",
|
|
62
|
-
"ts-jest": "29.1.1",
|
|
63
|
-
"typedoc": "0.27.2",
|
|
64
|
-
"typedoc-plugin-markdown": "4.3.1",
|
|
65
|
-
"typescript": "5.3.3",
|
|
66
|
-
"vite": "^5.4.9",
|
|
67
|
-
"vite-plugin-dts": "3.7.2"
|
|
68
|
-
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"@pixi/gif": "2.1.1",
|
|
71
|
-
"@tweenjs/tween.js": "23.1.2",
|
|
72
|
-
"bodymovin": "4.13.0",
|
|
73
|
-
"crypto-js": "4.2.0",
|
|
74
|
-
"eventemitter3": "5.0.1",
|
|
75
|
-
"gradient-parser": "1.0.2",
|
|
76
|
-
"lottie-web": "5.12.2",
|
|
77
|
-
"pixi.js": "7.4.0",
|
|
78
|
-
"uuid": "9.0.1",
|
|
79
|
-
"zod": "3.22.4"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rendley/sdk",
|
|
3
|
+
"version": "1.9.2",
|
|
4
|
+
"license": "LICENSE",
|
|
5
|
+
"author": "Onix Technologies",
|
|
6
|
+
"homepage": "https://rendley.com",
|
|
7
|
+
"description": "A Video Editing SDK that works completely in the browser.",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"video editing sdk",
|
|
11
|
+
"javascript video sdk",
|
|
12
|
+
"typescript video sdk",
|
|
13
|
+
"video api",
|
|
14
|
+
"video processing",
|
|
15
|
+
"ffmpeg",
|
|
16
|
+
"video",
|
|
17
|
+
"web codecs",
|
|
18
|
+
"video editor"
|
|
19
|
+
],
|
|
20
|
+
"main": "./dist/index.cjs",
|
|
21
|
+
"module": "./dist/index.js",
|
|
22
|
+
"typings": "./dist/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"registry": "https://registry.npmjs.org/",
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build:docs": "typedoc",
|
|
32
|
+
"build": "tsc && vite build --mode development",
|
|
33
|
+
"build:watch": "tsc && vite build --watch --mode development",
|
|
34
|
+
"build:production": "tsc && vite build --mode production && npm run obfuscate",
|
|
35
|
+
"obfuscate": "node ./plugins/obfuscate.js",
|
|
36
|
+
"test": "jest",
|
|
37
|
+
"lint": "eslint --ext .ts,.tsx src --fix",
|
|
38
|
+
"format": "prettier --write 'src/**/*.{ts,tsx}'",
|
|
39
|
+
"patch": "patch-package"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "7.23.7",
|
|
43
|
+
"@babel/preset-env": "7.23.7",
|
|
44
|
+
"@babel/preset-typescript": "7.23.3",
|
|
45
|
+
"@types/crypto-js": "4.2.2",
|
|
46
|
+
"@types/emscripten": "1.39.10",
|
|
47
|
+
"@types/eventemitter3": "2.0.2",
|
|
48
|
+
"@types/gradient-parser": "0.1.5",
|
|
49
|
+
"@types/jest": "29.5.11",
|
|
50
|
+
"@types/node": "20.10.6",
|
|
51
|
+
"@types/uuid": "9.0.8",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "6.17.0",
|
|
53
|
+
"@typescript-eslint/parser": "6.17.0",
|
|
54
|
+
"babel-jest": "29.7.0",
|
|
55
|
+
"eslint": "8.56.0",
|
|
56
|
+
"eslint-plugin-import": "2.29.1",
|
|
57
|
+
"javascript-obfuscator": "4.1.0",
|
|
58
|
+
"jest": "29.7.0",
|
|
59
|
+
"patch-package": "8.0.0",
|
|
60
|
+
"postinstall-postinstall": "2.1.0",
|
|
61
|
+
"prettier": "3.1.1",
|
|
62
|
+
"ts-jest": "29.1.1",
|
|
63
|
+
"typedoc": "0.27.2",
|
|
64
|
+
"typedoc-plugin-markdown": "4.3.1",
|
|
65
|
+
"typescript": "5.3.3",
|
|
66
|
+
"vite": "^5.4.9",
|
|
67
|
+
"vite-plugin-dts": "3.7.2"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@pixi/gif": "2.1.1",
|
|
71
|
+
"@tweenjs/tween.js": "23.1.2",
|
|
72
|
+
"bodymovin": "4.13.0",
|
|
73
|
+
"crypto-js": "4.2.0",
|
|
74
|
+
"eventemitter3": "5.0.1",
|
|
75
|
+
"gradient-parser": "1.0.2",
|
|
76
|
+
"lottie-web": "5.12.2",
|
|
77
|
+
"pixi.js": "7.4.0",
|
|
78
|
+
"uuid": "9.0.1",
|
|
79
|
+
"zod": "3.22.4"
|
|
80
|
+
}
|
|
81
|
+
}
|