@tsparticles/interaction-external-bounce 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/33.min.js +2 -0
- package/33.min.js.LICENSE.txt +1 -0
- package/409.min.js +2 -0
- package/409.min.js.LICENSE.txt +1 -0
- package/browser/Bouncer.js +6 -44
- package/browser/Utils.js +44 -0
- package/browser/index.js +4 -2
- package/cjs/Bouncer.js +28 -43
- package/cjs/Utils.js +49 -0
- package/cjs/index.js +16 -2
- package/dist_browser_Bouncer_js.js +30 -0
- package/dist_browser_Utils_js.js +30 -0
- package/esm/Bouncer.js +6 -44
- package/esm/Utils.js +44 -0
- package/esm/index.js +4 -2
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.interaction.external.bounce.js +251 -143
- package/tsparticles.interaction.external.bounce.min.js +1 -1
- package/tsparticles.interaction.external.bounce.min.js.LICENSE.txt +1 -1
- package/types/Bouncer.d.ts +0 -3
- package/types/Utils.d.ts +4 -0
- package/umd/Bouncer.js +29 -43
- package/umd/Utils.js +59 -0
- package/umd/index.js +18 -3
package/umd/index.js
CHANGED
@@ -9,6 +9,18 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
9
9
|
if (k2 === undefined) k2 = k;
|
10
10
|
o[k2] = m[k];
|
11
11
|
}));
|
12
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
13
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
14
|
+
}) : function(o, v) {
|
15
|
+
o["default"] = v;
|
16
|
+
});
|
17
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
18
|
+
if (mod && mod.__esModule) return mod;
|
19
|
+
var result = {};
|
20
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
21
|
+
__setModuleDefault(result, mod);
|
22
|
+
return result;
|
23
|
+
};
|
12
24
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
13
25
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
14
26
|
};
|
@@ -18,15 +30,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
30
|
if (v !== undefined) module.exports = v;
|
19
31
|
}
|
20
32
|
else if (typeof define === "function" && define.amd) {
|
21
|
-
define(["require", "exports", "./
|
33
|
+
define(["require", "exports", "./Options/Classes/Bounce.js", "./Options/Interfaces/IBounce.js"], factory);
|
22
34
|
}
|
23
35
|
})(function (require, exports) {
|
24
36
|
"use strict";
|
37
|
+
var __syncRequire = typeof module === "object" && typeof module.exports === "object";
|
25
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
39
|
exports.loadExternalBounceInteraction = void 0;
|
27
|
-
const Bouncer_js_1 = require("./Bouncer.js");
|
28
40
|
async function loadExternalBounceInteraction(engine, refresh = true) {
|
29
|
-
await engine.addInteractor("externalBounce", (container) =>
|
41
|
+
await engine.addInteractor("externalBounce", async (container) => {
|
42
|
+
const { Bouncer } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./Bouncer.js"))) : new Promise((resolve_1, reject_1) => { require(["./Bouncer.js"], resolve_1, reject_1); }).then(__importStar));
|
43
|
+
return new Bouncer(container);
|
44
|
+
}, refresh);
|
30
45
|
}
|
31
46
|
exports.loadExternalBounceInteraction = loadExternalBounceInteraction;
|
32
47
|
__exportStar(require("./Options/Classes/Bounce.js"), exports);
|