@rive-app/webgl 2.31.3 → 2.31.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",
3
- "version": "2.31.3",
3
+ "version": "2.31.5",
4
4
  "description": "Rive's webgl based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as rc from "./rive_advanced.mjs";
2
- import { FinalizableTarget } from "./utils";
3
2
  export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => Boolean;
4
3
  export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
5
4
  /**
@@ -307,7 +306,7 @@ export interface RiveFileParameters {
307
306
  onLoad?: EventCallback;
308
307
  onLoadError?: EventCallback;
309
308
  }
310
- export declare class RiveFile implements FinalizableTarget {
309
+ export declare class RiveFile implements rc.FinalizableTarget {
311
310
  private static readonly missingErrorMessage;
312
311
  private static readonly fileLoadErrorMessage;
313
312
  private src;
package/rive.js CHANGED
@@ -408,7 +408,7 @@ function Qa(a, b) {
408
408
  return Pa(c, a, b);
409
409
  }));
410
410
  }
411
- var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
411
+ var Ra, Sa, Wa = {716584:(a, b, c, d, e) => {
412
412
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
413
413
  return 0;
414
414
  }
@@ -471,11 +471,11 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
471
471
  }
472
472
  window.h.Ea += 1;
473
473
  return 1;
474
- }, 718746:() => {
474
+ }, 718762:() => {
475
475
  "undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
476
476
  document.removeEventListener(a, window.h.unlock, !0);
477
477
  }), --window.h.Ea, 0 === window.h.Ea && delete window.h);
478
- }, 719050:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 719154:() => {
478
+ }, 719066:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 719170:() => {
479
479
  try {
480
480
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
481
481
  a.close();
@@ -483,7 +483,7 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
483
483
  } catch (c) {
484
484
  return 0;
485
485
  }
486
- }, 719325:(a, b, c, d, e, f) => {
486
+ }, 719341:(a, b, c, d, e, f) => {
487
487
  if ("undefined" === typeof window.h) {
488
488
  return -1;
489
489
  }
@@ -529,7 +529,7 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
529
529
  a == window.h.H.Ca && g.X.connect(g.I.destination);
530
530
  g.mb = f;
531
531
  return window.h.nc(g);
532
- }, 722202:a => window.h.ta(a).I.sampleRate, 722275:a => {
532
+ }, 722218:a => window.h.ta(a).I.sampleRate, 722291:a => {
533
533
  a = window.h.ta(a);
534
534
  void 0 !== a.X && (a.X.onaudioprocess = function() {
535
535
  }, a.X.disconnect(), a.X = void 0);
@@ -537,13 +537,13 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
537
537
  a.I.close();
538
538
  a.I = void 0;
539
539
  a.mb = void 0;
540
- }, 722675:a => {
540
+ }, 722691:a => {
541
541
  window.h.xb(a);
542
- }, 722725:a => {
542
+ }, 722741:a => {
543
543
  a = window.h.ta(a);
544
544
  a.I.resume();
545
545
  a.state = window.h.ha.tb;
546
- }, 722864:a => {
546
+ }, 722880:a => {
547
547
  a = window.h.ta(a);
548
548
  a.I.suspend();
549
549
  a.state = window.h.ha.stopped;
@@ -4065,7 +4065,7 @@ Je();
4065
4065
  /* 2 */
4066
4066
  /***/ ((module) => {
4067
4067
 
4068
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.31.3","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
4068
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.31.5","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
4069
4069
 
4070
4070
  /***/ }),
4071
4071
  /* 3 */
@@ -6538,7 +6538,7 @@ var Rive = /** @class */ (function () {
6538
6538
  type: EventType.Load,
6539
6539
  data: (_a = this.src) !== null && _a !== void 0 ? _a : "buffer",
6540
6540
  });
6541
- // Only initialize paused state machines after the load event has been fired
6541
+ // Only initialize paused state machines after the load event has been fired
6542
6542
  // to allow users to initialize inputs and view models before the first advance
6543
6543
  this.animator.advanceIfPaused();
6544
6544
  // Flag ready for playback commands and clear the task queue; this order