@rendley/sdk 1.9.8 → 1.10.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/dist/Engine.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as PIXI from "pixi.js";
2
+ import { BackgroundTimer } from "./modules/background-timer/background-timer";
2
3
  import { CustomClip } from "./modules/clip/clips/custom/CustomClip";
3
4
  import { Display, DisplayOptions } from "./modules/display/Display";
4
5
  import { EventEmitter } from "./modules/event-emitter";
@@ -46,7 +47,7 @@ type CustomClipConstructor<T extends CustomClip = CustomClip> = {
46
47
  };
47
48
  export declare class Engine {
48
49
  private static instance?;
49
- static readonly currentVersion = "0.1.2";
50
+ static readonly currentVersion: string;
50
51
  static projectVersion: string;
51
52
  private static queuedDeserializeData;
52
53
  private static isDeserializing;
@@ -68,6 +69,7 @@ export declare class Engine {
68
69
  private isDestroying;
69
70
  private createdAt;
70
71
  private readonly renderer;
72
+ private readonly backgroundTimer;
71
73
  private constructor();
72
74
  static getInstance(): Engine;
73
75
  hasInstance(): boolean;
@@ -76,6 +78,7 @@ export declare class Engine {
76
78
  init(options: EngineOptions): Promise<void>;
77
79
  private getLicenseCredentials;
78
80
  destroy(everything?: boolean): Promise<void>;
81
+ getBackgroundTimer(): BackgroundTimer;
79
82
  getProjectId(): string;
80
83
  setProjectId(id: string): Promise<void>;
81
84
  getDisplay(): Display;
@@ -107,6 +110,7 @@ export declare class Engine {
107
110
  callStaticCustomClipMethod(typeEnum: string, methodName: string, ...args: any[]): any;
108
111
  createCustomClipInstance<T extends CustomClip = CustomClip>(typeEnum: string, ...args: any[]): T;
109
112
  hasCustomClipType(typeEnum: string): boolean;
113
+ reset(): void;
110
114
  serialize(): {
111
115
  display: {
112
116
  width: number;
@@ -119,9 +123,9 @@ export declare class Engine {
119
123
  layers: {
120
124
  id: string;
121
125
  transitions: {
126
+ type: "transition";
122
127
  name: string;
123
128
  id: string;
124
- type: "transition";
125
129
  startClipId: string;
126
130
  endClipId: string;
127
131
  inDuration: number;
@@ -147,8 +151,8 @@ export declare class Engine {
147
151
  }[];
148
152
  }[];
149
153
  media: {
150
- id: string;
151
154
  type: string;
155
+ id: string;
152
156
  filename: string;
153
157
  permanentUrl?: string | undefined;
154
158
  hash?: string | undefined;
@@ -161,7 +165,7 @@ export declare class Engine {
161
165
  projectId?: string | undefined;
162
166
  subtitlesManager?: {
163
167
  scale: number;
164
- textMode: "partial" | "full";
168
+ textMode: "full" | "partial";
165
169
  highlightAnimation: import("./modules/subtitles").HighlightAnimationEnum;
166
170
  highlightAnimationSpeed: number;
167
171
  mainTextStyle: {