tsparticles 2.1.2 → 2.1.3
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/package.json +11 -11
- package/report.html +2 -2
- package/tsparticles.bundle.js +3 -13
- package/tsparticles.bundle.min.js +2 -2
- package/tsparticles.js +1 -1
- package/tsparticles.min.js +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
|
-
* v2.1.
|
|
7
|
+
* v2.1.3
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -7554,7 +7554,6 @@ class InteractionManager {
|
|
|
7554
7554
|
|
|
7555
7555
|
this.externalInteractors = [];
|
|
7556
7556
|
this.particleInteractors = [];
|
|
7557
|
-
this.init();
|
|
7558
7557
|
}
|
|
7559
7558
|
|
|
7560
7559
|
async externalInteract(delta) {
|
|
@@ -8648,6 +8647,7 @@ class Particles {
|
|
|
8648
8647
|
}
|
|
8649
8648
|
}
|
|
8650
8649
|
|
|
8650
|
+
this.interactionManager.init();
|
|
8651
8651
|
container.pathGenerator.init(container);
|
|
8652
8652
|
}
|
|
8653
8653
|
|
|
@@ -15901,11 +15901,7 @@ class Linker extends ParticlesInteractorBase {
|
|
|
15901
15901
|
clear() {}
|
|
15902
15902
|
|
|
15903
15903
|
init() {
|
|
15904
|
-
|
|
15905
|
-
|
|
15906
|
-
if (!((_a = this.linkContainer) === null || _a === void 0 ? void 0 : _a.particles)) {
|
|
15907
|
-
this.linkContainer.particles.linksColors = new Map();
|
|
15908
|
-
}
|
|
15904
|
+
this.linkContainer.particles.linksColors = new Map();
|
|
15909
15905
|
}
|
|
15910
15906
|
|
|
15911
15907
|
async interact(p1) {
|
|
@@ -15962,12 +15958,6 @@ class Linker extends ParticlesInteractorBase {
|
|
|
15962
15958
|
reset() {}
|
|
15963
15959
|
|
|
15964
15960
|
setColor(p1) {
|
|
15965
|
-
var _a, _b;
|
|
15966
|
-
|
|
15967
|
-
if (!((_b = (_a = this.linkContainer) === null || _a === void 0 ? void 0 : _a.particles) === null || _b === void 0 ? void 0 : _b.linksColors)) {
|
|
15968
|
-
this.linkContainer.particles.linksColors = new Map();
|
|
15969
|
-
}
|
|
15970
|
-
|
|
15971
15961
|
const container = this.linkContainer,
|
|
15972
15962
|
linksOptions = p1.options.links;
|
|
15973
15963
|
let linkColor = linksOptions.id === undefined ? container.particles.linksColor : container.particles.linksColors.get(linksOptions.id);
|