@rive-app/webgl-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.
- package/package.json +1 -1
- package/rive.js +11 -2
- package/rive.js.map +1 -1
package/package.json
CHANGED
package/rive.js
CHANGED
|
@@ -4098,7 +4098,7 @@ Fe();
|
|
|
4098
4098
|
/* 2 */
|
|
4099
4099
|
/***/ ((module) => {
|
|
4100
4100
|
|
|
4101
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"2.15.
|
|
4101
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"2.15.2","description":"Rive\'s webgl based web api with bundled wasm.","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}}');
|
|
4102
4102
|
|
|
4103
4103
|
/***/ }),
|
|
4104
4104
|
/* 3 */
|
|
@@ -5521,6 +5521,15 @@ var AudioManager = /** @class */ (function (_super) {
|
|
|
5521
5521
|
return AudioManager;
|
|
5522
5522
|
}(EventManager));
|
|
5523
5523
|
var audioManager = new AudioManager();
|
|
5524
|
+
var FakeResizeObserver = /** @class */ (function () {
|
|
5525
|
+
function FakeResizeObserver() {
|
|
5526
|
+
}
|
|
5527
|
+
FakeResizeObserver.prototype.observe = function () { };
|
|
5528
|
+
FakeResizeObserver.prototype.unobserve = function () { };
|
|
5529
|
+
FakeResizeObserver.prototype.disconnect = function () { };
|
|
5530
|
+
return FakeResizeObserver;
|
|
5531
|
+
}());
|
|
5532
|
+
var MyResizeObserver = globalThis.ResizeObserver || FakeResizeObserver;
|
|
5524
5533
|
/**
|
|
5525
5534
|
* This class takes care of any observers that will be attached to an animation.
|
|
5526
5535
|
* It should be treated as a singleton because observers are much more performant
|
|
@@ -5546,7 +5555,7 @@ var ObjectObservers = /** @class */ (function () {
|
|
|
5546
5555
|
this._onObserved = function (entries) {
|
|
5547
5556
|
entries.forEach(_this._onObservedEntry);
|
|
5548
5557
|
};
|
|
5549
|
-
this._resizeObserver = new
|
|
5558
|
+
this._resizeObserver = new MyResizeObserver(this._onObserved);
|
|
5550
5559
|
}
|
|
5551
5560
|
// Adds an observable element
|
|
5552
5561
|
ObjectObservers.prototype.add = function (element, onResize) {
|