@rive-app/webgl-advanced 2.34.3 → 2.35.0

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.34.3",
3
+ "version": "2.35.0",
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
@@ -395,10 +395,11 @@ export declare class File {
395
395
  * @returns BindableArtboard
396
396
  */
397
397
  internalBindableArtboardFromArtboard(artboard: Artboard): BindableArtboard;
398
+
398
399
  /**
399
- * Returns a new Artboard instance for the Artboard at the given index in the Rive file
400
- * @param index - Index of the Artboard in the file to create an Artboard instance for
400
+ * If the file has an audio asset, returns true
401
401
  */
402
+ get hasAudio(): boolean;
402
403
  }
403
404
 
404
405
  /**
Binary file
@@ -372,7 +372,7 @@ function Ra(a, b) {
372
372
  return Qa(c, a, b);
373
373
  }));
374
374
  }
375
- var Sa, Ta, Xa = {740562:(a, b, c, d, e) => {
375
+ var Sa, Ta, Xa = {740770:(a, b, c, d, e) => {
376
376
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
377
377
  return 0;
378
378
  }
@@ -435,11 +435,11 @@ var Sa, Ta, Xa = {740562:(a, b, c, d, e) => {
435
435
  }
436
436
  window.h.Ca += 1;
437
437
  return 1;
438
- }, 742740:() => {
438
+ }, 742948:() => {
439
439
  "undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
440
440
  document.removeEventListener(a, window.h.unlock, !0);
441
441
  }), --window.h.Ca, 0 === window.h.Ca && delete window.h);
442
- }, 743044:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 743148:() => {
442
+ }, 743252:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 743356:() => {
443
443
  try {
444
444
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
445
445
  a.close();
@@ -447,7 +447,7 @@ var Sa, Ta, Xa = {740562:(a, b, c, d, e) => {
447
447
  } catch (c) {
448
448
  return 0;
449
449
  }
450
- }, 743319:(a, b, c, d, e, f) => {
450
+ }, 743527:(a, b, c, d, e, f) => {
451
451
  if ("undefined" === typeof window.h) {
452
452
  return -1;
453
453
  }
@@ -493,7 +493,7 @@ var Sa, Ta, Xa = {740562:(a, b, c, d, e) => {
493
493
  a == window.h.H.Aa && g.W.connect(g.J.destination);
494
494
  g.kb = f;
495
495
  return window.h.fc(g);
496
- }, 746196:a => window.h.ra(a).J.sampleRate, 746269:a => {
496
+ }, 746404:a => window.h.ra(a).J.sampleRate, 746477:a => {
497
497
  a = window.h.ra(a);
498
498
  void 0 !== a.W && (a.W.onaudioprocess = function() {
499
499
  }, a.W.disconnect(), a.W = void 0);
@@ -501,13 +501,13 @@ var Sa, Ta, Xa = {740562:(a, b, c, d, e) => {
501
501
  a.J.close();
502
502
  a.J = void 0;
503
503
  a.kb = void 0;
504
- }, 746669:a => {
504
+ }, 746877:a => {
505
505
  window.h.ub(a);
506
- }, 746719:a => {
506
+ }, 746927:a => {
507
507
  a = window.h.ra(a);
508
508
  a.J.resume();
509
509
  a.state = window.h.ga.qb;
510
- }, 746858:a => {
510
+ }, 747066:a => {
511
511
  a = window.h.ra(a);
512
512
  a.J.suspend();
513
513
  a.state = window.h.ga.stopped;