@tsparticles/interaction-external-push 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.
package/browser/Pusher.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ExternalInteractorBase, getRangeValue, itemFromArray, } from "@tsparticles/engine";
|
|
2
2
|
import { Push } from "./Options/Classes/Push.js";
|
|
3
|
+
const pushMode = "push";
|
|
3
4
|
export class Pusher extends ExternalInteractorBase {
|
|
4
5
|
constructor(container) {
|
|
5
6
|
super(container);
|
|
6
7
|
this.handleClickMode = (mode) => {
|
|
7
|
-
if (mode !==
|
|
8
|
+
if (mode !== pushMode) {
|
|
8
9
|
return;
|
|
9
10
|
}
|
|
10
11
|
const container = this.container, options = container.actualOptions, pushOptions = options.interactivity.modes.push;
|
package/cjs/Pusher.js
CHANGED
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Pusher = void 0;
|
|
4
4
|
const engine_1 = require("@tsparticles/engine");
|
|
5
5
|
const Push_js_1 = require("./Options/Classes/Push.js");
|
|
6
|
+
const pushMode = "push";
|
|
6
7
|
class Pusher extends engine_1.ExternalInteractorBase {
|
|
7
8
|
constructor(container) {
|
|
8
9
|
super(container);
|
|
9
10
|
this.handleClickMode = (mode) => {
|
|
10
|
-
if (mode !==
|
|
11
|
+
if (mode !== pushMode) {
|
|
11
12
|
return;
|
|
12
13
|
}
|
|
13
14
|
const container = this.container, options = container.actualOptions, pushOptions = options.interactivity.modes.push;
|
package/esm/Pusher.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ExternalInteractorBase, getRangeValue, itemFromArray, } from "@tsparticles/engine";
|
|
2
2
|
import { Push } from "./Options/Classes/Push.js";
|
|
3
|
+
const pushMode = "push";
|
|
3
4
|
export class Pusher extends ExternalInteractorBase {
|
|
4
5
|
constructor(container) {
|
|
5
6
|
super(container);
|
|
6
7
|
this.handleClickMode = (mode) => {
|
|
7
|
-
if (mode !==
|
|
8
|
+
if (mode !== pushMode) {
|
|
8
9
|
return;
|
|
9
10
|
}
|
|
10
11
|
const container = this.container, options = container.actualOptions, pushOptions = options.interactivity.modes.push;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/interaction-external-push",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.4",
|
|
4
4
|
"description": "tsParticles push 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
|
-
"
|
|
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.
|
|
90
|
+
"@tsparticles/engine": "^3.0.0-beta.4"
|
|
91
91
|
},
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"access": "public"
|