@tsparticles/interaction-external-slow 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.
@@ -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.3
7
+ * v3.0.0-beta.5
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -118,6 +118,7 @@ class Slow {
118
118
  ;// CONCATENATED MODULE: ./dist/browser/Slower.js
119
119
 
120
120
 
121
+ const slowMode = "slow";
121
122
  class Slower extends engine_root_window_.ExternalInteractorBase {
122
123
  constructor(container) {
123
124
  super(container);
@@ -141,7 +142,7 @@ class Slower extends engine_root_window_.ExternalInteractorBase {
141
142
  const container = this.container,
142
143
  mouse = container.interactivity.mouse,
143
144
  events = (particle?.interactivity ?? container.actualOptions.interactivity).events;
144
- return events.onHover.enable && !!mouse.position && (0,engine_root_window_.isInArray)("slow", events.onHover.mode);
145
+ return events.onHover.enable && !!mouse.position && (0,engine_root_window_.isInArray)(slowMode, events.onHover.mode);
145
146
  }
146
147
  loadModeOptions(options, ...sources) {
147
148
  if (!options.slow) {
@@ -1 +1 @@
1
- /*! tsParticles Slow External Interaction v3.0.0-beta.3 by Matteo Bruni */
1
+ /*! tsParticles Slow External Interaction v3.0.0-beta.5 by Matteo Bruni */
package/umd/Slower.js CHANGED
@@ -12,6 +12,7 @@
12
12
  exports.Slower = void 0;
13
13
  const engine_1 = require("@tsparticles/engine");
14
14
  const Slow_js_1 = require("./Options/Classes/Slow.js");
15
+ const slowMode = "slow";
15
16
  class Slower extends engine_1.ExternalInteractorBase {
16
17
  constructor(container) {
17
18
  super(container);
@@ -33,7 +34,7 @@
33
34
  }
34
35
  isEnabled(particle) {
35
36
  const container = this.container, mouse = container.interactivity.mouse, events = (particle?.interactivity ?? container.actualOptions.interactivity).events;
36
- return events.onHover.enable && !!mouse.position && (0, engine_1.isInArray)("slow", events.onHover.mode);
37
+ return events.onHover.enable && !!mouse.position && (0, engine_1.isInArray)(slowMode, events.onHover.mode);
37
38
  }
38
39
  loadModeOptions(options, ...sources) {
39
40
  if (!options.slow) {