@tsparticles/all 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 +37 -37
- package/package.json +40 -40
- package/report.html +23 -5
- package/tsparticles.all.bundle.js +6 -5
- package/tsparticles.all.bundle.min.js +1 -1
- package/tsparticles.all.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.all.js +1 -1
- package/tsparticles.all.min.js.LICENSE.txt +1 -1
|
@@ -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')
|
|
@@ -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
|
|
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 =
|
|
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.
|
|
4992
|
+
return "3.0.0-beta.2";
|
|
4992
4993
|
}
|
|
4993
4994
|
addConfig(nameOrConfig, config) {
|
|
4994
4995
|
if (isString(nameOrConfig)) {
|
|
@@ -16632,7 +16633,7 @@ async function loadPerlinNoisePath(engine, refresh = true) {
|
|
|
16632
16633
|
};
|
|
16633
16634
|
}
|
|
16634
16635
|
} catch (e) {
|
|
16635
|
-
console.warn("An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/
|
|
16636
|
+
console.warn("An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/tsparticles/tsparticles", e);
|
|
16636
16637
|
}
|
|
16637
16638
|
})();
|
|
16638
16639
|
;// CONCATENATED MODULE: ../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDrawStroke.js
|