@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.
@@ -1,6 +1,7 @@
1
1
  import { ExternalInteractorBase, isInArray, } from "@tsparticles/engine";
2
2
  import { Connect } from "./Options/Classes/Connect.js";
3
3
  import { drawConnection } from "./Utils.js";
4
+ const connectMode = "connect";
4
5
  export class Connector extends ExternalInteractorBase {
5
6
  constructor(container) {
6
7
  super(container);
@@ -45,7 +46,7 @@ export class Connector extends ExternalInteractorBase {
45
46
  if (!(events.onHover.enable && mouse.position)) {
46
47
  return false;
47
48
  }
48
- return isInArray("connect", events.onHover.mode);
49
+ return isInArray(connectMode, events.onHover.mode);
49
50
  }
50
51
  loadModeOptions(options, ...sources) {
51
52
  if (!options.connect) {
package/cjs/Connector.js CHANGED
@@ -4,6 +4,7 @@ exports.Connector = void 0;
4
4
  const engine_1 = require("@tsparticles/engine");
5
5
  const Connect_js_1 = require("./Options/Classes/Connect.js");
6
6
  const Utils_js_1 = require("./Utils.js");
7
+ const connectMode = "connect";
7
8
  class Connector extends engine_1.ExternalInteractorBase {
8
9
  constructor(container) {
9
10
  super(container);
@@ -48,7 +49,7 @@ class Connector extends engine_1.ExternalInteractorBase {
48
49
  if (!(events.onHover.enable && mouse.position)) {
49
50
  return false;
50
51
  }
51
- return (0, engine_1.isInArray)("connect", events.onHover.mode);
52
+ return (0, engine_1.isInArray)(connectMode, events.onHover.mode);
52
53
  }
53
54
  loadModeOptions(options, ...sources) {
54
55
  if (!options.connect) {
package/esm/Connector.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ExternalInteractorBase, isInArray, } from "@tsparticles/engine";
2
2
  import { Connect } from "./Options/Classes/Connect.js";
3
3
  import { drawConnection } from "./Utils.js";
4
+ const connectMode = "connect";
4
5
  export class Connector extends ExternalInteractorBase {
5
6
  constructor(container) {
6
7
  super(container);
@@ -45,7 +46,7 @@ export class Connector extends ExternalInteractorBase {
45
46
  if (!(events.onHover.enable && mouse.position)) {
46
47
  return false;
47
48
  }
48
- return isInArray("connect", events.onHover.mode);
49
+ return isInArray(connectMode, events.onHover.mode);
49
50
  }
50
51
  loadModeOptions(options, ...sources) {
51
52
  if (!options.connect) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/interaction-external-connect",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "tsParticles connect external interaction",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -60,7 +60,7 @@
60
60
  "confettijs",
61
61
  "fireworksjs",
62
62
  "canvas-confetti",
63
- "@tsparticles/plugin",
63
+ "tsparticles-plugin",
64
64
  "@tsparticles/interaction"
65
65
  ],
66
66
  "author": "Matteo Bruni <matteo.bruni@me.com>",
@@ -87,7 +87,7 @@
87
87
  "./package.json": "./package.json"
88
88
  },
89
89
  "dependencies": {
90
- "@tsparticles/engine": "^3.0.0-beta.3"
90
+ "@tsparticles/engine": "^3.0.0-beta.5"
91
91
  },
92
92
  "publishConfig": {
93
93
  "access": "public"