tsparticles 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.
- package/README.md +10 -10
- package/package.json +13 -13
- package/report.html +23 -5
- package/tsparticles.bundle.js +5 -4
- package/tsparticles.bundle.min.js +1 -1
- package/tsparticles.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.js +1 -1
- package/tsparticles.min.js.LICENSE.txt +1 -1
package/tsparticles.bundle.js
CHANGED
|
@@ -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.
|
|
7
|
+
* v3.0.0-beta.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -4192,8 +4192,9 @@ class Particles {
|
|
|
4192
4192
|
return false;
|
|
4193
4193
|
}
|
|
4194
4194
|
particle.destroy(override);
|
|
4195
|
+
const zIdx = this._zArray.indexOf(particle);
|
|
4195
4196
|
this._array.splice(index, 1);
|
|
4196
|
-
this._zArray
|
|
4197
|
+
this._zArray.splice(zIdx, 1);
|
|
4197
4198
|
this.pool.push(particle);
|
|
4198
4199
|
this._engine.dispatchEvent("particleRemoved", {
|
|
4199
4200
|
container: this._container,
|
|
@@ -4300,7 +4301,7 @@ class Particles {
|
|
|
4300
4301
|
this.addManualParticles();
|
|
4301
4302
|
if (!handled) {
|
|
4302
4303
|
const particlesOptions = options.particles,
|
|
4303
|
-
groups =
|
|
4304
|
+
groups = particlesOptions.groups;
|
|
4304
4305
|
for (const group in groups) {
|
|
4305
4306
|
const groupOptions = groups[group];
|
|
4306
4307
|
for (let i = this.count, j = 0; j < groupOptions.number?.value && i < particlesOptions.number.value; i++, j++) {
|
|
@@ -4989,7 +4990,7 @@ class Engine {
|
|
|
4989
4990
|
return res;
|
|
4990
4991
|
}
|
|
4991
4992
|
get version() {
|
|
4992
|
-
return "3.0.0-beta.
|
|
4993
|
+
return "3.0.0-beta.2";
|
|
4993
4994
|
}
|
|
4994
4995
|
addConfig(nameOrConfig, config) {
|
|
4995
4996
|
if (isString(nameOrConfig)) {
|