@rive-app/webgl2 2.39.0 → 2.39.2

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",
3
- "version": "2.39.0",
3
+ "version": "2.39.2",
4
4
  "description": "Rive's webgl2 based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
@@ -30,7 +30,8 @@
30
30
  "rive.d.ts",
31
31
  "rive_advanced.mjs.d.ts",
32
32
  "runtimeLoader.d.ts",
33
- "utils"
33
+ "utils",
34
+ "semantics"
34
35
  ],
35
36
  "typings": "rive.d.ts",
36
37
  "dependencies": {},
package/rive.js CHANGED
@@ -777,7 +777,7 @@ function Ma(a, b) {
777
777
  return La(c, a, b);
778
778
  }));
779
779
  }
780
- var Na, Oa, Sa = {573535:(a, b, c, d, e) => {
780
+ var Na, Oa, Sa = {582863:(a, b, c, d, e) => {
781
781
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
782
782
  return 0;
783
783
  }
@@ -840,11 +840,11 @@ var Na, Oa, Sa = {573535:(a, b, c, d, e) => {
840
840
  }
841
841
  window.miniaudio.referenceCount += 1;
842
842
  return 1;
843
- }, 575713:() => {
843
+ }, 585041:() => {
844
844
  "undefined" !== typeof window.miniaudio && (window.miniaudio.unlock_event_types.map(function(a) {
845
845
  document.removeEventListener(a, window.miniaudio.unlock, !0);
846
846
  }), --window.miniaudio.referenceCount, 0 === window.miniaudio.referenceCount && delete window.miniaudio);
847
- }, 576017:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 576121:() => {
847
+ }, 585345:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 585449:() => {
848
848
  try {
849
849
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
850
850
  a.close();
@@ -852,7 +852,7 @@ var Na, Oa, Sa = {573535:(a, b, c, d, e) => {
852
852
  } catch (c) {
853
853
  return 0;
854
854
  }
855
- }, 576292:(a, b, c, d, e, f) => {
855
+ }, 585620:(a, b, c, d, e, f) => {
856
856
  if ("undefined" === typeof window.miniaudio) {
857
857
  return -1;
858
858
  }
@@ -898,7 +898,7 @@ var Na, Oa, Sa = {573535:(a, b, c, d, e) => {
898
898
  a == window.miniaudio.device_type.playback && g.V.connect(g.H.destination);
899
899
  g.gb = f;
900
900
  return window.miniaudio.track_device(g);
901
- }, 579169:a => window.miniaudio.get_device_by_index(a).H.sampleRate, 579242:a => {
901
+ }, 588497:a => window.miniaudio.get_device_by_index(a).H.sampleRate, 588570:a => {
902
902
  a = window.miniaudio.get_device_by_index(a);
903
903
  void 0 !== a.V && (a.V.onaudioprocess = function() {
904
904
  }, a.V.disconnect(), a.V = void 0);
@@ -906,13 +906,13 @@ var Na, Oa, Sa = {573535:(a, b, c, d, e) => {
906
906
  a.H.close();
907
907
  a.H = void 0;
908
908
  a.gb = void 0;
909
- }, 579642:a => {
909
+ }, 588970:a => {
910
910
  window.miniaudio.untrack_device_by_index(a);
911
- }, 579692:a => {
911
+ }, 589020:a => {
912
912
  a = window.miniaudio.get_device_by_index(a);
913
913
  a.H.resume();
914
914
  a.state = window.miniaudio.device_state.started;
915
- }, 579831:a => {
915
+ }, 589159:a => {
916
916
  a = window.miniaudio.get_device_by_index(a);
917
917
  a.H.suspend();
918
918
  a.state = window.miniaudio.device_state.stopped;
@@ -3921,7 +3921,7 @@ moduleRtn = ca;
3921
3921
  /* 5 */
3922
3922
  /***/ ((module) => {
3923
3923
 
3924
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.39.0","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3924
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.39.2","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils","semantics"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3925
3925
 
3926
3926
  /***/ }),
3927
3927
  /* 6 */
@@ -9101,8 +9101,14 @@ var Rive = /** @class */ (function () {
9101
9101
  this.animator.handleAdvancing(elapsedTime);
9102
9102
  // Poll focus state to see whether or not to blur or pull up a virtual keyboard for any change to a text input node.
9103
9103
  this.pollFocusState();
9104
- // Handle callbacks for view model property changes
9104
+ // Handle callbacks for main view model property changes
9105
9105
  (_b = this._viewModelInstance) === null || _b === void 0 ? void 0 : _b.handleCallbacks();
9106
+ // Handle callbacks for global view model property changes
9107
+ this._globalViewModelInstances.forEach(function (instance) {
9108
+ if (instance) {
9109
+ instance.handleCallbacks();
9110
+ }
9111
+ });
9106
9112
  };
9107
9113
  /**
9108
9114
  * Draw rendering loop; renders animation frames at the correct time interval.