@tsparticles/interaction-external-pause 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.
|
|
7
|
+
* v3.0.0-beta.4
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -98,11 +98,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
98
98
|
var engine_root_window_ = __webpack_require__(533);
|
|
99
99
|
;// CONCATENATED MODULE: ./dist/browser/Pauser.js
|
|
100
100
|
|
|
101
|
+
const pauseMode = "pause";
|
|
101
102
|
class Pauser extends engine_root_window_.ExternalInteractorBase {
|
|
102
103
|
constructor(container) {
|
|
103
104
|
super(container);
|
|
104
105
|
this.handleClickMode = mode => {
|
|
105
|
-
if (mode !==
|
|
106
|
+
if (mode !== pauseMode) {
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
109
|
const container = this.container;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Pause External Interaction v3.0.0-beta.
|
|
1
|
+
/*! tsParticles Pause External Interaction v3.0.0-beta.4 by Matteo Bruni */
|
package/umd/Pauser.js
CHANGED
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Pauser = void 0;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
|
+
const pauseMode = "pause";
|
|
14
15
|
class Pauser extends engine_1.ExternalInteractorBase {
|
|
15
16
|
constructor(container) {
|
|
16
17
|
super(container);
|
|
17
18
|
this.handleClickMode = (mode) => {
|
|
18
|
-
if (mode !==
|
|
19
|
+
if (mode !== pauseMode) {
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
21
22
|
const container = this.container;
|