@rive-app/webgl2-advanced 2.29.1 → 2.29.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl2-advanced",
3
- "version": "2.29.1",
3
+ "version": "2.29.3",
4
4
  "description": "Rive's webgl2 low-level canvas based web api.",
5
5
  "main": "webgl2_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -925,13 +925,14 @@ export declare class ViewModelInstanceEnum extends ViewModelInstanceValue {
925
925
  export declare class ViewModelInstanceList extends ViewModelInstanceValue {
926
926
  get size(): number;
927
927
  addInstance(vmi: ViewModelInstance): void;
928
+ addInstanceAt(vmi: ViewModelInstance, index: number): boolean;
928
929
  removeInstance(vmi: ViewModelInstance): void;
929
930
  removeInstanceAt(index: number): void;
930
931
  instanceAt(index: number): ViewModelInstance;
931
932
  swap(a: number, b: number): ViewModelInstance;
932
933
  }
933
934
  export declare class ViewModelInstanceAssetImage extends ViewModelInstanceValue {
934
- value(image: ImageInternal):void;
935
+ value(image: ImageInternal | null):void;
935
936
  }
936
937
 
937
938
  export declare class ViewModelInstance {
@@ -421,7 +421,7 @@ function Oa(a, b) {
421
421
  return Na(c, a, b);
422
422
  }));
423
423
  }
424
- var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
424
+ var Pa, Qa, Ua = {522359:(a, b, c, d, e) => {
425
425
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
426
426
  return 0;
427
427
  }
@@ -484,11 +484,11 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
484
484
  }
485
485
  window.h.Da += 1;
486
486
  return 1;
487
- }, 524505:() => {
487
+ }, 524537:() => {
488
488
  "undefined" !== typeof window.h && (window.h.Va.map(function(a) {
489
489
  document.removeEventListener(a, window.h.unlock, !0);
490
490
  }), --window.h.Da, 0 === window.h.Da && delete window.h);
491
- }, 524809:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 524913:() => {
491
+ }, 524841:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 524945:() => {
492
492
  try {
493
493
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
494
494
  a.close();
@@ -496,7 +496,7 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
496
496
  } catch (c) {
497
497
  return 0;
498
498
  }
499
- }, 525084:(a, b, c, d, e, f) => {
499
+ }, 525116:(a, b, c, d, e, f) => {
500
500
  if ("undefined" === typeof window.h) {
501
501
  return -1;
502
502
  }
@@ -542,7 +542,7 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
542
542
  a == window.h.I.Ba && g.Z.connect(g.J.destination);
543
543
  g.mb = f;
544
544
  return window.h.oc(g);
545
- }, 527961:a => window.h.va(a).J.sampleRate, 528034:a => {
545
+ }, 527993:a => window.h.va(a).J.sampleRate, 528066:a => {
546
546
  a = window.h.va(a);
547
547
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
548
548
  }, a.Z.disconnect(), a.Z = void 0);
@@ -550,13 +550,13 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
550
550
  a.J.close();
551
551
  a.J = void 0;
552
552
  a.mb = void 0;
553
- }, 528434:a => {
553
+ }, 528466:a => {
554
554
  window.h.yb(a);
555
- }, 528484:a => {
555
+ }, 528516:a => {
556
556
  a = window.h.va(a);
557
557
  a.J.resume();
558
558
  a.state = window.h.ja.ub;
559
- }, 528623:a => {
559
+ }, 528655:a => {
560
560
  a = window.h.va(a);
561
561
  a.J.suspend();
562
562
  a.state = window.h.ja.stopped;
@@ -3480,8 +3480,8 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
3480
3480
  k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
3481
3481
  k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
3482
3482
  k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
3483
- k.___start_em_js = 519572;
3484
- k.___stop_em_js = 522327;
3483
+ k.___start_em_js = 519604;
3484
+ k.___stop_em_js = 522359;
3485
3485
  var Zd;
3486
3486
  Ha = function $d() {
3487
3487
  Zd || ae();