@rendley/sdk 1.11.9 → 1.11.11

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.
@@ -7,7 +7,9 @@ export declare enum BuiltInAdjustmentEffectPropertiesEnum {
7
7
  GAMMA = "gamma",
8
8
  GREEN = "green",
9
9
  RED = "red",
10
- SATURATION = "saturation"
10
+ SATURATION = "saturation",
11
+ HUE = "hue",
12
+ VIBRANCE = "vibrance"
11
13
  }
12
14
  export declare class BuiltInAdjustmentEffect extends EffectBase {
13
15
  constructor(properties: Map<string, any>);
@@ -7,6 +7,7 @@ export declare enum EventsEnum {
7
7
  TIME = "time",
8
8
  RENDER_COMPLETED = "render:completed",
9
9
  RENDER_ERROR = "render:error",
10
+ RENDER_CANCELED = "render:canceled",
10
11
  LAYER_ADDED = "layer:added",
11
12
  LAYER_REMOVED = "layer:removed",
12
13
  LAYER_UPDATED = "layer:updated",
@@ -73,6 +74,7 @@ export type EventPayloadMap = {
73
74
  };
74
75
  [EventsEnum.TIME]: number;
75
76
  [EventsEnum.RENDER_COMPLETED]: undefined;
77
+ [EventsEnum.RENDER_CANCELED]: undefined;
76
78
  [EventsEnum.RENDER_ERROR]: {
77
79
  name: string;
78
80
  message: string;
@@ -2,12 +2,22 @@ import { ExportOptions, ExportResult } from ".";
2
2
  export declare class Renderer {
3
3
  private rendering;
4
4
  private isBackgrounded;
5
+ private isCanceled;
5
6
  private watermarkSprite;
7
+ private audioWorker;
6
8
  constructor();
7
9
  destroy(): void;
8
10
  private visibilityChangeHandler;
9
11
  private residentTimeout;
10
12
  isRendering(): boolean;
13
+ /**
14
+ * Cancels the current render.
15
+ *
16
+ * Returns a promise that is resolved when the render is canceled or times out (10 seconds).
17
+ * If the render is not currently running, the promise is resolved immediately.
18
+ * If the render times out, the promise is rejected with an error.
19
+ */
20
+ cancelExport(): Promise<void>;
11
21
  private generateAudioMixWorker;
12
22
  private generateAudioMix;
13
23
  private glClientWaitAsync;
@@ -129,6 +129,7 @@ export declare class Timeline {
129
129
  isPlaying: boolean;
130
130
  private justStartedPlaying;
131
131
  private isDestroyed;
132
+ private animationFrameHandler;
132
133
  constructor();
133
134
  init(): Promise<void>;
134
135
  reset(): void;
@@ -164,7 +165,7 @@ export declare class Timeline {
164
165
  setFps(fps: number): void;
165
166
  getFitDuration(): number;
166
167
  render(): Promise<void>;
167
- loadSerializedData(data: object): void;
168
+ loadSerializedData(data: object): Promise<void>;
168
169
  serialize(): {
169
170
  startTime: number;
170
171
  fps: number;
@@ -0,0 +1 @@
1
+ export declare function createMediaHash(data: Uint8Array): Promise<string>;
package/package.json CHANGED
@@ -1,83 +1,83 @@
1
- {
2
- "name": "@rendley/sdk",
3
- "version": "1.11.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-filters": "^5.3.0",
78
- "pixi.js": "7.4.0",
79
- "unplugin-preprocessor-directives": "^1.0.3",
80
- "uuid": "9.0.1",
81
- "zod": "3.22.4"
82
- }
83
- }
1
+ {
2
+ "name": "@rendley/sdk",
3
+ "version": "1.11.11",
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-filters": "^5.3.0",
78
+ "pixi.js": "7.4.0",
79
+ "unplugin-preprocessor-directives": "^1.0.3",
80
+ "uuid": "9.0.1",
81
+ "zod": "3.22.4"
82
+ }
83
+ }
@@ -1 +0,0 @@
1
- export declare function createSHA256Hash(data: Uint8Array): Promise<string>;