@rive-app/webgl 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
|
@@ -4109,7 +4109,7 @@ Ie();
|
|
|
4109
4109
|
/* 2 */
|
|
4110
4110
|
/***/ ((module) => {
|
|
4111
4111
|
|
|
4112
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.15.
|
|
4112
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.15.2","description":"Rive\'s webgl 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.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
4113
4113
|
|
|
4114
4114
|
/***/ }),
|
|
4115
4115
|
/* 3 */
|
|
@@ -5532,6 +5532,15 @@ var AudioManager = /** @class */ (function (_super) {
|
|
|
5532
5532
|
return AudioManager;
|
|
5533
5533
|
}(EventManager));
|
|
5534
5534
|
var audioManager = new AudioManager();
|
|
5535
|
+
var FakeResizeObserver = /** @class */ (function () {
|
|
5536
|
+
function FakeResizeObserver() {
|
|
5537
|
+
}
|
|
5538
|
+
FakeResizeObserver.prototype.observe = function () { };
|
|
5539
|
+
FakeResizeObserver.prototype.unobserve = function () { };
|
|
5540
|
+
FakeResizeObserver.prototype.disconnect = function () { };
|
|
5541
|
+
return FakeResizeObserver;
|
|
5542
|
+
}());
|
|
5543
|
+
var MyResizeObserver = globalThis.ResizeObserver || FakeResizeObserver;
|
|
5535
5544
|
/**
|
|
5536
5545
|
* This class takes care of any observers that will be attached to an animation.
|
|
5537
5546
|
* It should be treated as a singleton because observers are much more performant
|
|
@@ -5557,7 +5566,7 @@ var ObjectObservers = /** @class */ (function () {
|
|
|
5557
5566
|
this._onObserved = function (entries) {
|
|
5558
5567
|
entries.forEach(_this._onObservedEntry);
|
|
5559
5568
|
};
|
|
5560
|
-
this._resizeObserver = new
|
|
5569
|
+
this._resizeObserver = new MyResizeObserver(this._onObserved);
|
|
5561
5570
|
}
|
|
5562
5571
|
// Adds an observable element
|
|
5563
5572
|
ObjectObservers.prototype.add = function (element, onResize) {
|