@tsparticles/fireworks 3.0.0-beta.1 → 3.0.0-beta.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.
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v3.0.0-beta.1
7
+ * v3.0.0-beta.2
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -4191,8 +4191,9 @@ class Particles {
4191
4191
  return false;
4192
4192
  }
4193
4193
  particle.destroy(override);
4194
+ const zIdx = this._zArray.indexOf(particle);
4194
4195
  this._array.splice(index, 1);
4195
- this._zArray = this._zArray.splice(this._zArray.indexOf(particle), 1);
4196
+ this._zArray.splice(zIdx, 1);
4196
4197
  this.pool.push(particle);
4197
4198
  this._engine.dispatchEvent("particleRemoved", {
4198
4199
  container: this._container,
@@ -4299,7 +4300,7 @@ class Particles {
4299
4300
  this.addManualParticles();
4300
4301
  if (!handled) {
4301
4302
  const particlesOptions = options.particles,
4302
- groups = options.particles.groups;
4303
+ groups = particlesOptions.groups;
4303
4304
  for (const group in groups) {
4304
4305
  const groupOptions = groups[group];
4305
4306
  for (let i = this.count, j = 0; j < groupOptions.number?.value && i < particlesOptions.number.value; i++, j++) {
@@ -4988,7 +4989,7 @@ class Engine {
4988
4989
  return res;
4989
4990
  }
4990
4991
  get version() {
4991
- return "3.0.0-beta.1";
4992
+ return "3.0.0-beta.2";
4992
4993
  }
4993
4994
  addConfig(nameOrConfig, config) {
4994
4995
  if (isString(nameOrConfig)) {