@rive-app/webgl2-advanced 2.27.1 → 2.27.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.27.1",
3
+ "version": "2.27.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
@@ -910,6 +910,14 @@ export declare class ViewModelInstanceEnum extends ViewModelInstanceValue {
910
910
  get values(): string[];
911
911
  }
912
912
 
913
+ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
914
+ get size(): number;
915
+ addInstance(vmi: ViewModelInstance): void;
916
+ removeInstance(vmi: ViewModelInstance): void;
917
+ removeInstanceAt(index: number): void;
918
+ instanceAt(index: number): ViewModelInstance;
919
+ }
920
+
913
921
  export declare class ViewModelInstance {
914
922
  get propertyCount(): number;
915
923
  number(path: string): ViewModelInstanceNumber;
@@ -918,6 +926,7 @@ export declare class ViewModelInstance {
918
926
  color(path: string): ViewModelInstanceColor;
919
927
  enum(path: string): ViewModelInstanceEnum;
920
928
  trigger(path: string): ViewModelInstanceTrigger;
929
+ list(path: string): ViewModelInstanceList;
921
930
  viewModel(path: string): ViewModelInstance;
922
931
  replaceViewModel(path: string, value: ViewModelInstance): boolean;
923
932
  incrementReferenceCount(): void;
@@ -421,7 +421,7 @@ function Oa(a, b) {
421
421
  return Na(c, a, b);
422
422
  }));
423
423
  }
424
- var Pa, Qa, Ua = {512815:(a, b, c, d, e) => {
424
+ var Pa, Qa, Ua = {517135:(a, b, c, d, e) => {
425
425
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
426
426
  return 0;
427
427
  }
@@ -484,9 +484,9 @@ var Pa, Qa, Ua = {512815:(a, b, c, d, e) => {
484
484
  }
485
485
  window.h.Da += 1;
486
486
  return 1;
487
- }, 514993:() => {
487
+ }, 519313:() => {
488
488
  "undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
489
- }, 515157:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 515261:() => {
489
+ }, 519477:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 519581:() => {
490
490
  try {
491
491
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
492
492
  a.close();
@@ -494,7 +494,7 @@ var Pa, Qa, Ua = {512815:(a, b, c, d, e) => {
494
494
  } catch (c) {
495
495
  return 0;
496
496
  }
497
- }, 515432:(a, b, c, d, e, f) => {
497
+ }, 519752:(a, b, c, d, e, f) => {
498
498
  if ("undefined" === typeof window.h) {
499
499
  return -1;
500
500
  }
@@ -540,7 +540,7 @@ var Pa, Qa, Ua = {512815:(a, b, c, d, e) => {
540
540
  a == window.h.I.Ba && g.Z.connect(g.J.destination);
541
541
  g.lb = f;
542
542
  return window.h.oc(g);
543
- }, 518309:a => window.h.va(a).J.sampleRate, 518382:a => {
543
+ }, 522629:a => window.h.va(a).J.sampleRate, 522702:a => {
544
544
  a = window.h.va(a);
545
545
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
546
546
  }, a.Z.disconnect(), a.Z = void 0);
@@ -548,13 +548,13 @@ var Pa, Qa, Ua = {512815:(a, b, c, d, e) => {
548
548
  a.J.close();
549
549
  a.J = void 0;
550
550
  a.lb = void 0;
551
- }, 518782:a => {
551
+ }, 523102:a => {
552
552
  window.h.yb(a);
553
- }, 518832:a => {
553
+ }, 523152:a => {
554
554
  a = window.h.va(a);
555
555
  a.J.resume();
556
556
  a.state = window.h.ja.tb;
557
- }, 518971:a => {
557
+ }, 523291:a => {
558
558
  a = window.h.va(a);
559
559
  a.J.suspend();
560
560
  a.state = window.h.ja.stopped;
@@ -3478,8 +3478,8 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
3478
3478
  k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
3479
3479
  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);
3480
3480
  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);
3481
- k.___start_em_js = 510060;
3482
- k.___stop_em_js = 512815;
3481
+ k.___start_em_js = 514380;
3482
+ k.___stop_em_js = 517135;
3483
3483
  var Zd;
3484
3484
  Ha = function $d() {
3485
3485
  Zd || ae();