@tsparticles/interaction-external-remove 3.0.0-beta.3 → 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.
- package/browser/Remover.js +2 -1
- package/cjs/Remover.js +2 -1
- package/esm/Remover.js +2 -1
- package/package.json +3 -3
- package/report.html +4 -22
- package/tsparticles.interaction.external.remove.js +3 -2
- package/tsparticles.interaction.external.remove.min.js.LICENSE.txt +1 -1
- package/umd/Remover.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.4
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -122,13 +122,14 @@ class Remove {
|
|
|
122
122
|
;// CONCATENATED MODULE: ./dist/browser/Remover.js
|
|
123
123
|
|
|
124
124
|
|
|
125
|
+
const removeMode = "remove";
|
|
125
126
|
class Remover extends engine_root_window_.ExternalInteractorBase {
|
|
126
127
|
constructor(container) {
|
|
127
128
|
super(container);
|
|
128
129
|
this.handleClickMode = mode => {
|
|
129
130
|
const container = this.container,
|
|
130
131
|
options = container.actualOptions;
|
|
131
|
-
if (!options.interactivity.modes.remove || mode !==
|
|
132
|
+
if (!options.interactivity.modes.remove || mode !== removeMode) {
|
|
132
133
|
return;
|
|
133
134
|
}
|
|
134
135
|
const removeNb = (0,engine_root_window_.getRangeValue)(options.interactivity.modes.remove.quantity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Remove External Interaction v3.0.0-beta.
|
|
1
|
+
/*! tsParticles Remove External Interaction v3.0.0-beta.4 by Matteo Bruni */
|
package/umd/Remover.js
CHANGED
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
exports.Remover = void 0;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
14
|
const Remove_js_1 = require("./Options/Classes/Remove.js");
|
|
15
|
+
const removeMode = "remove";
|
|
15
16
|
class Remover extends engine_1.ExternalInteractorBase {
|
|
16
17
|
constructor(container) {
|
|
17
18
|
super(container);
|
|
18
19
|
this.handleClickMode = (mode) => {
|
|
19
20
|
const container = this.container, options = container.actualOptions;
|
|
20
|
-
if (!options.interactivity.modes.remove || mode !==
|
|
21
|
+
if (!options.interactivity.modes.remove || mode !== removeMode) {
|
|
21
22
|
return;
|
|
22
23
|
}
|
|
23
24
|
const removeNb = (0, engine_1.getRangeValue)(options.interactivity.modes.remove.quantity);
|