@rendley/sdk 1.0.2 → 1.0.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 CHANGED
@@ -10,7 +10,7 @@ interface EngineLicense {
10
10
  licenseKey: string;
11
11
  }
12
12
  export interface EngineOptions {
13
- display?: DisplayOptions;
13
+ display: DisplayOptions;
14
14
  license?: EngineLicense;
15
15
  }
16
16
  export declare class Engine {
@@ -25,10 +25,11 @@ export declare class Engine {
25
25
  private rendering;
26
26
  private license?;
27
27
  private constructor();
28
- static getInstance(options?: EngineOptions): Engine;
28
+ static getInstance(): Engine;
29
29
  getFFmpeg(): import("./libs/ffmpeg").FFmpeg;
30
- init(canvas: HTMLCanvasElement): Promise<void>;
30
+ init(options: EngineOptions): Promise<void>;
31
31
  destroy(): void;
32
+ getDisplay(): Display;
32
33
  isInitialized(): boolean;
33
34
  isRendering(): boolean;
34
35
  private generateMix;
@@ -57,12 +58,10 @@ export declare class Engine {
57
58
  isEnabled: boolean;
58
59
  isMuted: boolean;
59
60
  clips: {
60
- name: string;
61
61
  type: string;
62
62
  id: string;
63
63
  duration: number;
64
64
  filters: {
65
- name: string;
66
65
  options: {
67
66
  lutUrl: string;
68
67
  };
@@ -111,7 +110,6 @@ export declare class Engine {
111
110
  };
112
111
  version?: string | undefined;
113
112
  };
114
- updateInstance(data: object): Promise<void>;
115
- static deserialize(data: object): Engine;
113
+ static deserialize(data: object): Promise<Engine | undefined>;
116
114
  }
117
115
  export {};