@rive-app/canvas 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/canvas",
3
- "version": "2.15.1",
3
+ "version": "2.15.2",
4
4
  "description": "Rive's canvas based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -3409,7 +3409,7 @@ Zd();
3409
3409
  /* 2 */
3410
3410
  /***/ ((module) => {
3411
3411
 
3412
- module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.15.1","description":"Rive\'s canvas 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)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3412
+ module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.15.2","description":"Rive\'s canvas 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)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3413
3413
 
3414
3414
  /***/ }),
3415
3415
  /* 3 */
@@ -4832,6 +4832,15 @@ var AudioManager = /** @class */ (function (_super) {
4832
4832
  return AudioManager;
4833
4833
  }(EventManager));
4834
4834
  var audioManager = new AudioManager();
4835
+ var FakeResizeObserver = /** @class */ (function () {
4836
+ function FakeResizeObserver() {
4837
+ }
4838
+ FakeResizeObserver.prototype.observe = function () { };
4839
+ FakeResizeObserver.prototype.unobserve = function () { };
4840
+ FakeResizeObserver.prototype.disconnect = function () { };
4841
+ return FakeResizeObserver;
4842
+ }());
4843
+ var MyResizeObserver = globalThis.ResizeObserver || FakeResizeObserver;
4835
4844
  /**
4836
4845
  * This class takes care of any observers that will be attached to an animation.
4837
4846
  * It should be treated as a singleton because observers are much more performant
@@ -4857,7 +4866,7 @@ var ObjectObservers = /** @class */ (function () {
4857
4866
  this._onObserved = function (entries) {
4858
4867
  entries.forEach(_this._onObservedEntry);
4859
4868
  };
4860
- this._resizeObserver = new ResizeObserver(this._onObserved);
4869
+ this._resizeObserver = new MyResizeObserver(this._onObserved);
4861
4870
  }
4862
4871
  // Adds an observable element
4863
4872
  ObjectObservers.prototype.add = function (element, onResize) {