@rive-app/canvas-advanced 2.31.2 → 2.31.4

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.
@@ -726,7 +726,7 @@ function Xa(a, b) {
726
726
  return Wa(c, a, b);
727
727
  }));
728
728
  }
729
- var Ya, Za, cb = {460492:(a, b, c, d, e) => {
729
+ var Ya, Za, cb = {461560:(a, b, c, d, e) => {
730
730
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
731
731
  return 0;
732
732
  }
@@ -789,11 +789,11 @@ var Ya, Za, cb = {460492:(a, b, c, d, e) => {
789
789
  }
790
790
  window.h.Aa += 1;
791
791
  return 1;
792
- }, 462670:() => {
792
+ }, 463738:() => {
793
793
  "undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
794
794
  document.removeEventListener(a, window.h.unlock, !0);
795
795
  }), --window.h.Aa, 0 === window.h.Aa && delete window.h);
796
- }, 462974:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 463078:() => {
796
+ }, 464042:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 464146:() => {
797
797
  try {
798
798
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
799
799
  a.close();
@@ -801,7 +801,7 @@ var Ya, Za, cb = {460492:(a, b, c, d, e) => {
801
801
  } catch (c) {
802
802
  return 0;
803
803
  }
804
- }, 463249:(a, b, c, d, e, f) => {
804
+ }, 464317:(a, b, c, d, e, f) => {
805
805
  if ("undefined" === typeof window.h) {
806
806
  return -1;
807
807
  }
@@ -847,7 +847,7 @@ var Ya, Za, cb = {460492:(a, b, c, d, e) => {
847
847
  a == window.h.I.ya && g.Z.connect(g.J.destination);
848
848
  g.qb = f;
849
849
  return window.h.yc(g);
850
- }, 466126:a => window.h.ra(a).J.sampleRate, 466199:a => {
850
+ }, 467194:a => window.h.ra(a).J.sampleRate, 467267:a => {
851
851
  a = window.h.ra(a);
852
852
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
853
853
  }, a.Z.disconnect(), a.Z = void 0);
@@ -855,13 +855,13 @@ var Ya, Za, cb = {460492:(a, b, c, d, e) => {
855
855
  a.J.close();
856
856
  a.J = void 0;
857
857
  a.qb = void 0;
858
- }, 466599:a => {
858
+ }, 467667:a => {
859
859
  window.h.Cb(a);
860
- }, 466649:a => {
860
+ }, 467717:a => {
861
861
  a = window.h.ra(a);
862
862
  a.J.resume();
863
863
  a.state = window.h.ga.yb;
864
- }, 466788:a => {
864
+ }, 467856:a => {
865
865
  a = window.h.ra(a);
866
866
  a.J.suspend();
867
867
  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.31.2",
3
+ "version": "2.31.4",
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
@@ -375,7 +375,7 @@ export declare class File {
375
375
  */
376
376
  enums(): DataEnum[];
377
377
 
378
- delete(): void;
378
+ unref(): void;
379
379
  }
380
380
 
381
381
  /**
@@ -932,10 +932,10 @@ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
932
932
  swap(a: number, b: number): ViewModelInstance;
933
933
  }
934
934
  export declare class ViewModelInstanceAssetImage extends ViewModelInstanceValue {
935
- value(image: ImageInternal | null):void;
935
+ value(image: ImageInternal | null): void;
936
936
  }
937
937
  export declare class ViewModelInstanceArtboard extends ViewModelInstanceValue {
938
- value(artboard: Artboard):void;
938
+ value(artboard: Artboard): void;
939
939
  }
940
940
 
941
941
  export declare class ViewModelInstance {
@@ -1171,7 +1171,6 @@ export declare class AudioAsset extends FileAsset {
1171
1171
  setAudioSource(audio: Audio): void;
1172
1172
  }
1173
1173
 
1174
-
1175
1174
  export declare class ImageAssetInternal extends FileAssetInternal {
1176
1175
  setRenderImage(image: ImageInternal): void;
1177
1176
  }
@@ -1200,3 +1199,7 @@ export declare class CustomFileAssetLoader extends FileAssetLoader {
1200
1199
  constructor({ loadContents }: { loadContents: Function });
1201
1200
  loadContents(asset: FileAsset, bytes: any): boolean;
1202
1201
  }
1202
+
1203
+ export interface FinalizableTarget {
1204
+ selfUnref: boolean;
1205
+ }
Binary file