@rendley/sdk 1.0.7 → 1.1.1

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
@@ -1,4 +1,5 @@
1
1
  import * as PIXI from "pixi.js";
2
+ import { CustomClip } from "./modules/clip/clips/custom/CustomClip";
2
3
  import { Display, DisplayOptions } from "./modules/display/Display";
3
4
  import { EventEmitter } from "./modules/event-emitter";
4
5
  import { FontRegistry } from "./modules/font-registry";
@@ -13,6 +14,9 @@ export interface EngineOptions {
13
14
  display?: DisplayOptions;
14
15
  license?: EngineLicense;
15
16
  }
17
+ type CustomClipConstructor<T extends CustomClip = CustomClip> = {
18
+ new (...args: any[]): T;
19
+ };
16
20
  export declare class Engine {
17
21
  display: Display;
18
22
  timeline: Timeline;
@@ -44,11 +48,16 @@ export declare class Engine {
44
48
  getClipsIdsForPoint(x: number, y: number): null;
45
49
  setSubtitles(subtitlesId: string, offset: number): void;
46
50
  shouldSplitAudio(): boolean;
51
+ customClipTypes: Map<string, CustomClipConstructor>;
52
+ registerCustomClip<T extends CustomClip = CustomClip>(classType: CustomClipConstructor<T>, typeEnum: string): void;
53
+ callStaticCustomClipMethod(typeEnum: string, methodName: string, ...args: any[]): any;
54
+ createCustomClipInstance<T extends CustomClip = CustomClip>(typeEnum: string, ...args: any[]): T;
55
+ hasCustomClipType(typeEnum: string): boolean;
47
56
  serialize(): {
48
57
  display: {
49
58
  width: number;
50
- backgroundColor: string;
51
59
  height: number;
60
+ backgroundColor: string;
52
61
  };
53
62
  timeline: {
54
63
  startTime: number;
@@ -57,28 +66,7 @@ export declare class Engine {
57
66
  id: string;
58
67
  isEnabled: boolean;
59
68
  isMuted: boolean;
60
- clips: {
61
- type: string;
62
- id: string;
63
- duration: number;
64
- filters: {
65
- options: {
66
- lutUrl: string;
67
- };
68
- id: string;
69
- sourceId: string;
70
- }[];
71
- effects: unknown[];
72
- subtitlesOffset: number;
73
- startTime: number;
74
- leftTrim: number;
75
- rightTrim: number;
76
- warpMode: import("./types").WarpModeEnum;
77
- mediaDataId?: string | undefined;
78
- subtitlesId?: string | undefined;
79
- style?: unknown;
80
- text?: string | undefined;
81
- }[];
69
+ clips: any[];
82
70
  transitions: {
83
71
  name: string;
84
72
  type: "transition";