@rive-app/webgl-advanced 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-advanced",
3
- "version": "2.31.3",
3
+ "version": "2.31.5",
4
4
  "description": "Rive's webgl low-level canvas based web api.",
5
5
  "main": "webgl_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -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
@@ -387,7 +387,7 @@ function Qa(a, b) {
387
387
  return Pa(c, a, b);
388
388
  }));
389
389
  }
390
- var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
390
+ var Ra, Sa, Wa = {716584:(a, b, c, d, e) => {
391
391
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
392
392
  return 0;
393
393
  }
@@ -450,11 +450,11 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
450
450
  }
451
451
  window.h.Ea += 1;
452
452
  return 1;
453
- }, 718746:() => {
453
+ }, 718762:() => {
454
454
  "undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
455
455
  document.removeEventListener(a, window.h.unlock, !0);
456
456
  }), --window.h.Ea, 0 === window.h.Ea && delete window.h);
457
- }, 719050:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 719154:() => {
457
+ }, 719066:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 719170:() => {
458
458
  try {
459
459
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
460
460
  a.close();
@@ -462,7 +462,7 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
462
462
  } catch (c) {
463
463
  return 0;
464
464
  }
465
- }, 719325:(a, b, c, d, e, f) => {
465
+ }, 719341:(a, b, c, d, e, f) => {
466
466
  if ("undefined" === typeof window.h) {
467
467
  return -1;
468
468
  }
@@ -508,7 +508,7 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
508
508
  a == window.h.H.Ca && g.X.connect(g.I.destination);
509
509
  g.mb = f;
510
510
  return window.h.nc(g);
511
- }, 722202:a => window.h.ta(a).I.sampleRate, 722275:a => {
511
+ }, 722218:a => window.h.ta(a).I.sampleRate, 722291:a => {
512
512
  a = window.h.ta(a);
513
513
  void 0 !== a.X && (a.X.onaudioprocess = function() {
514
514
  }, a.X.disconnect(), a.X = void 0);
@@ -516,13 +516,13 @@ var Ra, Sa, Wa = {716568:(a, b, c, d, e) => {
516
516
  a.I.close();
517
517
  a.I = void 0;
518
518
  a.mb = void 0;
519
- }, 722675:a => {
519
+ }, 722691:a => {
520
520
  window.h.xb(a);
521
- }, 722725:a => {
521
+ }, 722741:a => {
522
522
  a = window.h.ta(a);
523
523
  a.I.resume();
524
524
  a.state = window.h.ha.tb;
525
- }, 722864:a => {
525
+ }, 722880:a => {
526
526
  a = window.h.ta(a);
527
527
  a.I.suspend();
528
528
  a.state = window.h.ha.stopped;