@rive-app/webgl2-advanced 2.37.7 → 2.37.8

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.37.7",
3
+ "version": "2.37.8",
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
@@ -877,6 +877,23 @@ export declare class StateMachineInstance {
877
877
  */
878
878
  pointerExit(x: number, y: number, id: number): void;
879
879
 
880
+ /**
881
+ * Returns true if this state machine has any focus nodes registered in its focus tree.
882
+ * Since the focus tree is unified across nested artboards, this covers the full scene.
883
+ * Use this to gate whether tab/focus traversal DOM listeners should be attached.
884
+ */
885
+ hasFocusNodes(): boolean;
886
+
887
+ /**
888
+ * Move focus to the next focusable node in the focus tree via the state machine's focus manager.
889
+ */
890
+ focusNext(): boolean;
891
+
892
+ /**
893
+ * Move focus to the previous focusable node in the focus tree via the state machine's focus manager.
894
+ */
895
+ focusPrevious(): boolean;
896
+
880
897
  /**
881
898
  * Deletes the underlying instance created via the WASM. It's important to clean up this instance
882
899
  * when no longer in use
@@ -418,7 +418,7 @@ function Na(a, b) {
418
418
  return Ma(c, a, b);
419
419
  }));
420
420
  }
421
- var Oa, Pa, Ta = {569208:(a, b, c, d, e) => {
421
+ var Oa, Pa, Ta = {569016:(a, b, c, d, e) => {
422
422
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
423
423
  return 0;
424
424
  }
@@ -481,11 +481,11 @@ var Oa, Pa, Ta = {569208:(a, b, c, d, e) => {
481
481
  }
482
482
  window.h.Ea += 1;
483
483
  return 1;
484
- }, 571386:() => {
484
+ }, 571194:() => {
485
485
  "undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
486
486
  document.removeEventListener(a, window.h.unlock, !0);
487
487
  }), --window.h.Ea, 0 === window.h.Ea && delete window.h);
488
- }, 571690:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 571794:() => {
488
+ }, 571498:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 571602:() => {
489
489
  try {
490
490
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
491
491
  a.close();
@@ -493,7 +493,7 @@ var Oa, Pa, Ta = {569208:(a, b, c, d, e) => {
493
493
  } catch (c) {
494
494
  return 0;
495
495
  }
496
- }, 571965:(a, b, c, d, e, f) => {
496
+ }, 571773:(a, b, c, d, e, f) => {
497
497
  if ("undefined" === typeof window.h) {
498
498
  return -1;
499
499
  }
@@ -539,7 +539,7 @@ var Oa, Pa, Ta = {569208:(a, b, c, d, e) => {
539
539
  a == window.h.I.Ba && g.Y.connect(g.K.destination);
540
540
  g.nb = f;
541
541
  return window.h.mc(g);
542
- }, 574842:a => window.h.sa(a).K.sampleRate, 574915:a => {
542
+ }, 574650:a => window.h.sa(a).K.sampleRate, 574723:a => {
543
543
  a = window.h.sa(a);
544
544
  void 0 !== a.Y && (a.Y.onaudioprocess = function() {
545
545
  }, a.Y.disconnect(), a.Y = void 0);
@@ -547,13 +547,13 @@ var Oa, Pa, Ta = {569208:(a, b, c, d, e) => {
547
547
  a.K.close();
548
548
  a.K = void 0;
549
549
  a.nb = void 0;
550
- }, 575315:a => {
550
+ }, 575123:a => {
551
551
  window.h.yb(a);
552
- }, 575365:a => {
552
+ }, 575173:a => {
553
553
  a = window.h.sa(a);
554
554
  a.K.resume();
555
555
  a.state = window.h.ha.ub;
556
- }, 575504:a => {
556
+ }, 575312:a => {
557
557
  a = window.h.sa(a);
558
558
  a.K.suspend();
559
559
  a.state = window.h.ha.stopped;