tsparticles 2.5.0 → 2.5.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/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
|
-
* v2.5.
|
|
7
|
+
* v2.5.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -3683,6 +3683,7 @@ class Particle {
|
|
|
3683
3683
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3684
3684
|
const container = this.container,
|
|
3685
3685
|
engine = this._engine;
|
|
3686
|
+
this.id = id;
|
|
3686
3687
|
this.group = group;
|
|
3687
3688
|
this.fill = true;
|
|
3688
3689
|
this.pathRotation = false;
|
|
@@ -3704,6 +3705,7 @@ class Particle {
|
|
|
3704
3705
|
{
|
|
3705
3706
|
reduceDuplicates
|
|
3706
3707
|
} = particlesOptions;
|
|
3708
|
+
console.log(this.id, container.particles.count, this.id % container.particles.count);
|
|
3707
3709
|
this.shape = itemFromSingleOrMultiple(shapeType, this.id, reduceDuplicates);
|
|
3708
3710
|
const shapeOptions = particlesOptions.shape;
|
|
3709
3711
|
if (overrideOptions && overrideOptions.shape && overrideOptions.shape.type) {
|