@rive-app/canvas 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/canvas",
3
- "version": "2.31.3",
3
+ "version": "2.31.5",
4
4
  "description": "Rive's canvas 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
@@ -747,7 +747,7 @@ function Xa(a, b) {
747
747
  return Wa(c, a, b);
748
748
  }));
749
749
  }
750
- var Ya, Za, cb = {461560:(a, b, c, d, e) => {
750
+ var Ya, Za, cb = {461592:(a, b, c, d, e) => {
751
751
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
752
752
  return 0;
753
753
  }
@@ -810,11 +810,11 @@ var Ya, Za, cb = {461560:(a, b, c, d, e) => {
810
810
  }
811
811
  window.h.Aa += 1;
812
812
  return 1;
813
- }, 463738:() => {
813
+ }, 463770:() => {
814
814
  "undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
815
815
  document.removeEventListener(a, window.h.unlock, !0);
816
816
  }), --window.h.Aa, 0 === window.h.Aa && delete window.h);
817
- }, 464042:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 464146:() => {
817
+ }, 464074:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 464178:() => {
818
818
  try {
819
819
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
820
820
  a.close();
@@ -822,7 +822,7 @@ var Ya, Za, cb = {461560:(a, b, c, d, e) => {
822
822
  } catch (c) {
823
823
  return 0;
824
824
  }
825
- }, 464317:(a, b, c, d, e, f) => {
825
+ }, 464349:(a, b, c, d, e, f) => {
826
826
  if ("undefined" === typeof window.h) {
827
827
  return -1;
828
828
  }
@@ -868,7 +868,7 @@ var Ya, Za, cb = {461560:(a, b, c, d, e) => {
868
868
  a == window.h.I.ya && g.Z.connect(g.J.destination);
869
869
  g.qb = f;
870
870
  return window.h.yc(g);
871
- }, 467194:a => window.h.ra(a).J.sampleRate, 467267:a => {
871
+ }, 467226:a => window.h.ra(a).J.sampleRate, 467299:a => {
872
872
  a = window.h.ra(a);
873
873
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
874
874
  }, a.Z.disconnect(), a.Z = void 0);
@@ -876,13 +876,13 @@ var Ya, Za, cb = {461560:(a, b, c, d, e) => {
876
876
  a.J.close();
877
877
  a.J = void 0;
878
878
  a.qb = void 0;
879
- }, 467667:a => {
879
+ }, 467699:a => {
880
880
  window.h.Cb(a);
881
- }, 467717:a => {
881
+ }, 467749:a => {
882
882
  a = window.h.ra(a);
883
883
  a.J.resume();
884
884
  a.state = window.h.ga.yb;
885
- }, 467856:a => {
885
+ }, 467888:a => {
886
886
  a = window.h.ra(a);
887
887
  a.J.suspend();
888
888
  a.state = window.h.ga.stopped;
@@ -3370,7 +3370,7 @@ $d();
3370
3370
  /* 2 */
3371
3371
  /***/ ((module) => {
3372
3372
 
3373
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.31.3","description":"Rive\'s canvas 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.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3373
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.31.5","description":"Rive\'s canvas 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.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3374
3374
 
3375
3375
  /***/ }),
3376
3376
  /* 3 */
@@ -5843,7 +5843,7 @@ var Rive = /** @class */ (function () {
5843
5843
  type: EventType.Load,
5844
5844
  data: (_a = this.src) !== null && _a !== void 0 ? _a : "buffer",
5845
5845
  });
5846
- // Only initialize paused state machines after the load event has been fired
5846
+ // Only initialize paused state machines after the load event has been fired
5847
5847
  // to allow users to initialize inputs and view models before the first advance
5848
5848
  this.animator.advanceIfPaused();
5849
5849
  // Flag ready for playback commands and clear the task queue; this order