@tsparticles/interaction-external-connect 3.0.0-beta.3 → 3.0.0-beta.5
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/browser/Connector.js +2 -1
- package/cjs/Connector.js +2 -1
- package/esm/Connector.js +2 -1
- package/package.json +3 -3
- package/report.html +4 -22
- package/tsparticles.interaction.external.connect.js +3 -2
- package/tsparticles.interaction.external.connect.min.js.LICENSE.txt +1 -1
- package/umd/Connector.js +2 -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.5
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -180,6 +180,7 @@ function drawConnection(container, p1, p2) {
|
|
|
180
180
|
|
|
181
181
|
|
|
182
182
|
|
|
183
|
+
const connectMode = "connect";
|
|
183
184
|
class Connector extends engine_root_window_.ExternalInteractorBase {
|
|
184
185
|
constructor(container) {
|
|
185
186
|
super(container);
|
|
@@ -227,7 +228,7 @@ class Connector extends engine_root_window_.ExternalInteractorBase {
|
|
|
227
228
|
if (!(events.onHover.enable && mouse.position)) {
|
|
228
229
|
return false;
|
|
229
230
|
}
|
|
230
|
-
return (0,engine_root_window_.isInArray)(
|
|
231
|
+
return (0,engine_root_window_.isInArray)(connectMode, events.onHover.mode);
|
|
231
232
|
}
|
|
232
233
|
loadModeOptions(options, ...sources) {
|
|
233
234
|
if (!options.connect) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Connect External Interaction v3.0.0-beta.
|
|
1
|
+
/*! tsParticles Connect External Interaction v3.0.0-beta.5 by Matteo Bruni */
|
package/umd/Connector.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
14
|
const Connect_js_1 = require("./Options/Classes/Connect.js");
|
|
15
15
|
const Utils_js_1 = require("./Utils.js");
|
|
16
|
+
const connectMode = "connect";
|
|
16
17
|
class Connector extends engine_1.ExternalInteractorBase {
|
|
17
18
|
constructor(container) {
|
|
18
19
|
super(container);
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
if (!(events.onHover.enable && mouse.position)) {
|
|
58
59
|
return false;
|
|
59
60
|
}
|
|
60
|
-
return (0, engine_1.isInArray)(
|
|
61
|
+
return (0, engine_1.isInArray)(connectMode, events.onHover.mode);
|
|
61
62
|
}
|
|
62
63
|
loadModeOptions(options, ...sources) {
|
|
63
64
|
if (!options.connect) {
|