@rive-app/webgl-single 1.0.103 → 1.0.104
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 +6 -3
- package/rive.js.map +1 -1
package/package.json
CHANGED
package/rive.js
CHANGED
|
@@ -167,7 +167,7 @@ if(h.preInit)for("function"==typeof h.preInit&&(h.preInit=[h.preInit]);0<h.preIn
|
|
|
167
167
|
/* 2 */
|
|
168
168
|
/***/ ((module) => {
|
|
169
169
|
|
|
170
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.
|
|
170
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.104","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}}');
|
|
171
171
|
|
|
172
172
|
/***/ }),
|
|
173
173
|
/* 3 */
|
|
@@ -1546,14 +1546,17 @@ var Rive = /** @class */ (function () {
|
|
|
1546
1546
|
* Rive class
|
|
1547
1547
|
*/
|
|
1548
1548
|
Rive.prototype.cleanup = function () {
|
|
1549
|
+
var _a, _b;
|
|
1549
1550
|
// Stop the renderer if it hasn't already been stopped.
|
|
1550
1551
|
this.stopRendering();
|
|
1551
1552
|
// Clean up any artboard, animation or state machine instances.
|
|
1552
1553
|
this.cleanupInstances();
|
|
1553
1554
|
// Delete the renderer
|
|
1554
|
-
this.renderer.delete();
|
|
1555
|
+
(_a = this.renderer) === null || _a === void 0 ? void 0 : _a.delete();
|
|
1556
|
+
this.renderer = null;
|
|
1555
1557
|
// Delete the rive file
|
|
1556
|
-
this.file.delete();
|
|
1558
|
+
(_b = this.file) === null || _b === void 0 ? void 0 : _b.delete();
|
|
1559
|
+
this.file = null;
|
|
1557
1560
|
};
|
|
1558
1561
|
/**
|
|
1559
1562
|
* Cleans up any Wasm-generated objects that need to be manually destroyed:
|