mage-engine 3.24.0 → 3.24.1
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/dist/mage.js +18 -2
- package/package.json +1 -1
package/dist/mage.js
CHANGED
|
@@ -56880,7 +56880,13 @@ var Physics$1 = new Physics();let Scene = /*#__PURE__*/function () {
|
|
|
56880
56880
|
key: "remove",
|
|
56881
56881
|
value: function remove(body) {
|
|
56882
56882
|
this.scene.remove(body);
|
|
56883
|
-
Universe$1.remove(body.uuid);
|
|
56883
|
+
Universe$1.remove(body.uuid); // Remove the element from the elements array
|
|
56884
|
+
|
|
56885
|
+
const index = this.elements.findIndex(e => e.hasBody() && e.getBody().uuid === body.uuid);
|
|
56886
|
+
|
|
56887
|
+
if (index !== -1) {
|
|
56888
|
+
this.elements.splice(index, 1);
|
|
56889
|
+
}
|
|
56884
56890
|
}
|
|
56885
56891
|
}, {
|
|
56886
56892
|
key: "setClearColor",
|
|
@@ -58213,7 +58219,7 @@ function applyMiddleware() {
|
|
|
58213
58219
|
|
|
58214
58220
|
var thunk = createThunkMiddleware();
|
|
58215
58221
|
thunk.withExtraArgument = createThunkMiddleware;var name = "mage-engine";
|
|
58216
|
-
var version$1 = "3.24.
|
|
58222
|
+
var version$1 = "3.24.1";
|
|
58217
58223
|
var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
|
|
58218
58224
|
var main = "dist/mage.js";
|
|
58219
58225
|
var author$1 = {
|
|
@@ -87421,6 +87427,11 @@ var Proton = three_proton_min.exports;const PARTICLE_EMITTER_TYPES = {
|
|
|
87421
87427
|
}, {
|
|
87422
87428
|
key: "dispose",
|
|
87423
87429
|
value: function dispose() {
|
|
87430
|
+
if (this.holder) {
|
|
87431
|
+
this.holder.dispose();
|
|
87432
|
+
this.holder = undefined;
|
|
87433
|
+
}
|
|
87434
|
+
|
|
87424
87435
|
_get(_getPrototypeOf(ParticleEmitter.prototype), "dispose", this).call(this);
|
|
87425
87436
|
}
|
|
87426
87437
|
}, {
|
|
@@ -88123,6 +88134,11 @@ let Fountain = /*#__PURE__*/function (_ProtonParticleEmitte) {
|
|
|
88123
88134
|
}, {
|
|
88124
88135
|
key: "dispose",
|
|
88125
88136
|
value: function dispose() {
|
|
88137
|
+
if (this.holder) {
|
|
88138
|
+
this.holder.dispose();
|
|
88139
|
+
this.holder = undefined;
|
|
88140
|
+
}
|
|
88141
|
+
|
|
88126
88142
|
_get(_getPrototypeOf(ParticleEmitterGroup.prototype), "dispose", this).call(this);
|
|
88127
88143
|
|
|
88128
88144
|
this.system.forEach(emitter => emitter.dispose());
|