@tsparticles/interaction-external-connect 3.0.0-beta.2 → 3.0.0-beta.4

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.
@@ -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.2
7
+ * v3.0.0-beta.4
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)("connect", events.onHover.mode);
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.2 by Matteo Bruni */
1
+ /*! tsParticles Connect External Interaction v3.0.0-beta.4 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)("connect", events.onHover.mode);
61
+ return (0, engine_1.isInArray)(connectMode, events.onHover.mode);
61
62
  }
62
63
  loadModeOptions(options, ...sources) {
63
64
  if (!options.connect) {