@rive-app/canvas-single 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-single",
3
- "version": "2.15.1",
3
+ "version": "2.15.2",
4
4
  "description": "Rive's high-level canvas based web api all in one js file.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -3398,7 +3398,7 @@ Wd();
3398
3398
  /* 2 */
3399
3399
  /***/ ((module) => {
3400
3400
 
3401
- module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"2.15.1","description":"Rive\'s high-level canvas based web api all in one js file.","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.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3401
+ module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"2.15.2","description":"Rive\'s high-level canvas based web api all in one js file.","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.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3402
3402
 
3403
3403
  /***/ }),
3404
3404
  /* 3 */
@@ -4821,6 +4821,15 @@ var AudioManager = /** @class */ (function (_super) {
4821
4821
  return AudioManager;
4822
4822
  }(EventManager));
4823
4823
  var audioManager = new AudioManager();
4824
+ var FakeResizeObserver = /** @class */ (function () {
4825
+ function FakeResizeObserver() {
4826
+ }
4827
+ FakeResizeObserver.prototype.observe = function () { };
4828
+ FakeResizeObserver.prototype.unobserve = function () { };
4829
+ FakeResizeObserver.prototype.disconnect = function () { };
4830
+ return FakeResizeObserver;
4831
+ }());
4832
+ var MyResizeObserver = globalThis.ResizeObserver || FakeResizeObserver;
4824
4833
  /**
4825
4834
  * This class takes care of any observers that will be attached to an animation.
4826
4835
  * It should be treated as a singleton because observers are much more performant
@@ -4846,7 +4855,7 @@ var ObjectObservers = /** @class */ (function () {
4846
4855
  this._onObserved = function (entries) {
4847
4856
  entries.forEach(_this._onObservedEntry);
4848
4857
  };
4849
- this._resizeObserver = new ResizeObserver(this._onObserved);
4858
+ this._resizeObserver = new MyResizeObserver(this._onObserved);
4850
4859
  }
4851
4860
  // Adds an observable element
4852
4861
  ObjectObservers.prototype.add = function (element, onResize) {