@rive-app/webgl2 2.15.1 → 2.15.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/rive.js +11 -2
  3. package/rive.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl2",
3
- "version": "2.15.1",
3
+ "version": "2.15.2",
4
4
  "description": "Rive's webgl2 based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -3614,7 +3614,7 @@ be();
3614
3614
  /* 2 */
3615
3615
  /***/ ((module) => {
3616
3616
 
3617
- module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.15.1","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.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3617
+ module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.15.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.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3618
3618
 
3619
3619
  /***/ }),
3620
3620
  /* 3 */
@@ -5037,6 +5037,15 @@ var AudioManager = /** @class */ (function (_super) {
5037
5037
  return AudioManager;
5038
5038
  }(EventManager));
5039
5039
  var audioManager = new AudioManager();
5040
+ var FakeResizeObserver = /** @class */ (function () {
5041
+ function FakeResizeObserver() {
5042
+ }
5043
+ FakeResizeObserver.prototype.observe = function () { };
5044
+ FakeResizeObserver.prototype.unobserve = function () { };
5045
+ FakeResizeObserver.prototype.disconnect = function () { };
5046
+ return FakeResizeObserver;
5047
+ }());
5048
+ var MyResizeObserver = globalThis.ResizeObserver || FakeResizeObserver;
5040
5049
  /**
5041
5050
  * This class takes care of any observers that will be attached to an animation.
5042
5051
  * It should be treated as a singleton because observers are much more performant
@@ -5062,7 +5071,7 @@ var ObjectObservers = /** @class */ (function () {
5062
5071
  this._onObserved = function (entries) {
5063
5072
  entries.forEach(_this._onObservedEntry);
5064
5073
  };
5065
- this._resizeObserver = new ResizeObserver(this._onObserved);
5074
+ this._resizeObserver = new MyResizeObserver(this._onObserved);
5066
5075
  }
5067
5076
  // Adds an observable element
5068
5077
  ObjectObservers.prototype.add = function (element, onResize) {