@rive-app/canvas-advanced 2.37.1 → 2.37.3

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.
@@ -733,7 +733,7 @@ function Za(a, b) {
733
733
  return Ya(c, a, b);
734
734
  }));
735
735
  }
736
- var $a, ab, eb = {479810:(a, b, c, d, e) => {
736
+ var $a, ab, eb = {479986:(a, b, c, d, e) => {
737
737
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
738
738
  return 0;
739
739
  }
@@ -796,11 +796,11 @@ var $a, ab, eb = {479810:(a, b, c, d, e) => {
796
796
  }
797
797
  window.h.za += 1;
798
798
  return 1;
799
- }, 481988:() => {
799
+ }, 482164:() => {
800
800
  "undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
801
801
  document.removeEventListener(a, window.h.unlock, !0);
802
802
  }), --window.h.za, 0 === window.h.za && delete window.h);
803
- }, 482292:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 482396:() => {
803
+ }, 482468:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 482572:() => {
804
804
  try {
805
805
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
806
806
  a.close();
@@ -808,7 +808,7 @@ var $a, ab, eb = {479810:(a, b, c, d, e) => {
808
808
  } catch (c) {
809
809
  return 0;
810
810
  }
811
- }, 482567:(a, b, c, d, e, f) => {
811
+ }, 482743:(a, b, c, d, e, f) => {
812
812
  if ("undefined" === typeof window.h) {
813
813
  return -1;
814
814
  }
@@ -854,7 +854,7 @@ var $a, ab, eb = {479810:(a, b, c, d, e) => {
854
854
  a == window.h.J.xa && g.Z.connect(g.L.destination);
855
855
  g.pb = f;
856
856
  return window.h.sc(g);
857
- }, 485444:a => window.h.qa(a).L.sampleRate, 485517:a => {
857
+ }, 485620:a => window.h.qa(a).L.sampleRate, 485693:a => {
858
858
  a = window.h.qa(a);
859
859
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
860
860
  }, a.Z.disconnect(), a.Z = void 0);
@@ -862,13 +862,13 @@ var $a, ab, eb = {479810:(a, b, c, d, e) => {
862
862
  a.L.close();
863
863
  a.L = void 0;
864
864
  a.pb = void 0;
865
- }, 485917:a => {
865
+ }, 486093:a => {
866
866
  window.h.Ab(a);
867
- }, 485967:a => {
867
+ }, 486143:a => {
868
868
  a = window.h.qa(a);
869
869
  a.L.resume();
870
870
  a.state = window.h.ga.wb;
871
- }, 486106:a => {
871
+ }, 486282:a => {
872
872
  a = window.h.qa(a);
873
873
  a.L.suspend();
874
874
  a.state = window.h.ga.stopped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-advanced",
3
- "version": "2.37.1",
3
+ "version": "2.37.3",
4
4
  "description": "Rive's lightweight low-level canvas based web api.",
5
5
  "main": "canvas_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -1,5 +1,6 @@
1
1
  interface RiveOptions {
2
2
  locateFile(file: string): string;
3
+ wasmBinary?: ArrayBuffer;
3
4
  }
4
5
 
5
6
  declare function Rive(options?: RiveOptions): Promise<RiveCanvas>;
Binary file