@rive-app/webgl-single 1.1.3 → 1.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-single",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Rive's webgl based web api with bundled wasm.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.d.ts CHANGED
@@ -182,6 +182,12 @@ export interface RiveParameters {
182
182
  layout?: Layout;
183
183
  autoplay?: boolean;
184
184
  useOffscreenRenderer?: boolean;
185
+ /**
186
+ * Turn off Rive Listeners. This means state machines that have Listeners
187
+ * will not be invoked, and also, no event listeners pertaining to Listeners
188
+ * will be attached to the <canvas> element
189
+ */
190
+ shouldDisableRiveListeners?: boolean;
185
191
  onLoad?: EventCallback;
186
192
  onLoadError?: EventCallback;
187
193
  onPlay?: EventCallback;
@@ -226,6 +232,7 @@ export interface RiveLoadParameters {
226
232
  animations?: string | string[];
227
233
  stateMachines?: string | string[];
228
234
  useOffscreenRenderer?: boolean;
235
+ shouldDisableRiveListeners?: boolean;
229
236
  }
230
237
  export interface RiveResetParameters {
231
238
  artboard?: string;
@@ -261,12 +268,14 @@ export declare class Rive {
261
268
  private taskQueue;
262
269
  private animator;
263
270
  private static readonly missingErrorMessage;
271
+ private shouldDisableRiveListeners;
264
272
  durations: number[];
265
273
  frameTimes: number[];
266
274
  frameCount: number;
267
275
  constructor(params: RiveParameters);
268
276
  static new(params: RiveParameters): Rive;
269
277
  private init;
278
+ private setupRiveListeners;
270
279
  private initData;
271
280
  private initArtboard;
272
281
  drawFrame(): void;