@tsparticles/interaction-external-parallax 4.0.0-alpha.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/411.min.js +2 -0
- package/411.min.js.LICENSE.txt +1 -0
- package/LICENSE +21 -0
- package/README.md +76 -0
- package/browser/Options/Classes/Parallax.js +18 -0
- package/browser/Options/Classes/ParallaxOptions.js +1 -0
- package/browser/Options/Interfaces/IParallax.js +1 -0
- package/browser/Parallaxer.js +52 -0
- package/browser/Types.js +1 -0
- package/browser/index.js +12 -0
- package/browser/package.json +1 -0
- package/cjs/Options/Classes/Parallax.js +18 -0
- package/cjs/Options/Classes/ParallaxOptions.js +1 -0
- package/cjs/Options/Interfaces/IParallax.js +1 -0
- package/cjs/Parallaxer.js +52 -0
- package/cjs/Types.js +1 -0
- package/cjs/index.js +12 -0
- package/cjs/package.json +1 -0
- package/dist_browser_Parallaxer_js.js +30 -0
- package/esm/Options/Classes/Parallax.js +18 -0
- package/esm/Options/Classes/ParallaxOptions.js +1 -0
- package/esm/Options/Interfaces/IParallax.js +1 -0
- package/esm/Parallaxer.js +52 -0
- package/esm/Types.js +1 -0
- package/esm/index.js +12 -0
- package/esm/package.json +1 -0
- package/package.json +97 -0
- package/report.html +40 -0
- package/tsparticles.interaction.external.parallax.js +355 -0
- package/tsparticles.interaction.external.parallax.min.js +2 -0
- package/tsparticles.interaction.external.parallax.min.js.LICENSE.txt +1 -0
- package/types/Options/Classes/Parallax.d.ts +8 -0
- package/types/Options/Classes/ParallaxOptions.d.ts +7 -0
- package/types/Options/Interfaces/IParallax.d.ts +4 -0
- package/types/Parallaxer.d.ts +13 -0
- package/types/Types.d.ts +13 -0
- package/types/index.d.ts +4 -0
- package/umd/Options/Classes/Parallax.js +32 -0
- package/umd/Options/Classes/ParallaxOptions.js +12 -0
- package/umd/Options/Interfaces/IParallax.js +12 -0
- package/umd/Parallaxer.js +66 -0
- package/umd/Types.js +12 -0
- package/umd/index.js +62 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Author : Matteo Bruni
|
|
3
|
+
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
+
* Demo / Generator : https://particles.js.org/
|
|
5
|
+
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
+
* How to use? : Check the GitHub README
|
|
7
|
+
* v4.0.0-alpha.4
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
11
|
+
* This devtool is neither made for production nor for readable output files.
|
|
12
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
13
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
14
|
+
* or disable the default devtool with "devtool: false".
|
|
15
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
16
|
+
*/
|
|
17
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
18
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
19
|
+
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/plugin-interactivity"));
|
|
20
|
+
else if(typeof define === 'function' && define.amd)
|
|
21
|
+
define(["@tsparticles/engine", "@tsparticles/plugin-interactivity"], factory);
|
|
22
|
+
else {
|
|
23
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/plugin-interactivity")) : factory(root["window"], root["window"]);
|
|
24
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
25
|
+
}
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_interactivity__) => {
|
|
27
|
+
return /******/ (() => { // webpackBootstrap
|
|
28
|
+
/******/ "use strict";
|
|
29
|
+
/******/ var __webpack_modules__ = ({
|
|
30
|
+
|
|
31
|
+
/***/ "./dist/browser/Options/Classes/Parallax.js"
|
|
32
|
+
/*!**************************************************!*\
|
|
33
|
+
!*** ./dist/browser/Options/Classes/Parallax.js ***!
|
|
34
|
+
\**************************************************/
|
|
35
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36
|
+
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Parallax: () => (/* binding */ Parallax)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nclass Parallax {\n constructor() {\n this.force = 2;\n this.smooth = 10;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.force !== undefined) {\n this.force = data.force;\n }\n if (data.smooth !== undefined) {\n this.smooth = data.smooth;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/interaction-external-parallax/./dist/browser/Options/Classes/Parallax.js?\n}");
|
|
38
|
+
|
|
39
|
+
/***/ },
|
|
40
|
+
|
|
41
|
+
/***/ "./dist/browser/index.js"
|
|
42
|
+
/*!*******************************!*\
|
|
43
|
+
!*** ./dist/browser/index.js ***!
|
|
44
|
+
\*******************************/
|
|
45
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
46
|
+
|
|
47
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Parallax: () => (/* reexport safe */ _Options_Classes_Parallax_js__WEBPACK_IMPORTED_MODULE_0__.Parallax),\n/* harmony export */ loadExternalParallaxInteraction: () => (/* binding */ loadExternalParallaxInteraction)\n/* harmony export */ });\n/* harmony import */ var _Options_Classes_Parallax_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Options/Classes/Parallax.js */ \"./dist/browser/Options/Classes/Parallax.js\");\nfunction loadExternalParallaxInteraction(engine) {\n engine.checkVersion(\"4.0.0-alpha.4\");\n engine.register(async e => {\n const {\n loadInteractivityPlugin\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-interactivity */ \"@tsparticles/plugin-interactivity\", 19));\n loadInteractivityPlugin(e);\n e.addInteractor?.(\"externalParallax\", async container => {\n const {\n Parallaxer\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_Parallaxer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Parallaxer.js */ \"./dist/browser/Parallaxer.js\"));\n return new Parallaxer(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/interaction-external-parallax/./dist/browser/index.js?\n}");
|
|
48
|
+
|
|
49
|
+
/***/ },
|
|
50
|
+
|
|
51
|
+
/***/ "@tsparticles/engine"
|
|
52
|
+
/*!*********************************************************************************************************************************!*\
|
|
53
|
+
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
54
|
+
\*********************************************************************************************************************************/
|
|
55
|
+
(module) {
|
|
56
|
+
|
|
57
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
58
|
+
|
|
59
|
+
/***/ },
|
|
60
|
+
|
|
61
|
+
/***/ "@tsparticles/plugin-interactivity"
|
|
62
|
+
/*!***************************************************************************************************************************************************************************!*\
|
|
63
|
+
!*** external {"commonjs":"@tsparticles/plugin-interactivity","commonjs2":"@tsparticles/plugin-interactivity","amd":"@tsparticles/plugin-interactivity","root":"window"} ***!
|
|
64
|
+
\***************************************************************************************************************************************************************************/
|
|
65
|
+
(module) {
|
|
66
|
+
|
|
67
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_interactivity__;
|
|
68
|
+
|
|
69
|
+
/***/ }
|
|
70
|
+
|
|
71
|
+
/******/ });
|
|
72
|
+
/************************************************************************/
|
|
73
|
+
/******/ // The module cache
|
|
74
|
+
/******/ var __webpack_module_cache__ = {};
|
|
75
|
+
/******/
|
|
76
|
+
/******/ // The require function
|
|
77
|
+
/******/ function __webpack_require__(moduleId) {
|
|
78
|
+
/******/ // Check if module is in cache
|
|
79
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
80
|
+
/******/ if (cachedModule !== undefined) {
|
|
81
|
+
/******/ return cachedModule.exports;
|
|
82
|
+
/******/ }
|
|
83
|
+
/******/ // Check if module exists (development only)
|
|
84
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
85
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
86
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
87
|
+
/******/ throw e;
|
|
88
|
+
/******/ }
|
|
89
|
+
/******/ // Create a new module (and put it into the cache)
|
|
90
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
91
|
+
/******/ // no module.id needed
|
|
92
|
+
/******/ // no module.loaded needed
|
|
93
|
+
/******/ exports: {}
|
|
94
|
+
/******/ };
|
|
95
|
+
/******/
|
|
96
|
+
/******/ // Execute the module function
|
|
97
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
98
|
+
/******/
|
|
99
|
+
/******/ // Return the exports of the module
|
|
100
|
+
/******/ return module.exports;
|
|
101
|
+
/******/ }
|
|
102
|
+
/******/
|
|
103
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
104
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
105
|
+
/******/
|
|
106
|
+
/************************************************************************/
|
|
107
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
108
|
+
/******/ (() => {
|
|
109
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
110
|
+
/******/ var leafPrototypes;
|
|
111
|
+
/******/ // create a fake namespace object
|
|
112
|
+
/******/ // mode & 1: value is a module id, require it
|
|
113
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
114
|
+
/******/ // mode & 4: return value when already ns object
|
|
115
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
116
|
+
/******/ // mode & 8|1: behave like require
|
|
117
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
118
|
+
/******/ if(mode & 1) value = this(value);
|
|
119
|
+
/******/ if(mode & 8) return value;
|
|
120
|
+
/******/ if(typeof value === 'object' && value) {
|
|
121
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
122
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
123
|
+
/******/ }
|
|
124
|
+
/******/ var ns = Object.create(null);
|
|
125
|
+
/******/ __webpack_require__.r(ns);
|
|
126
|
+
/******/ var def = {};
|
|
127
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
128
|
+
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
129
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
130
|
+
/******/ }
|
|
131
|
+
/******/ def['default'] = () => (value);
|
|
132
|
+
/******/ __webpack_require__.d(ns, def);
|
|
133
|
+
/******/ return ns;
|
|
134
|
+
/******/ };
|
|
135
|
+
/******/ })();
|
|
136
|
+
/******/
|
|
137
|
+
/******/ /* webpack/runtime/define property getters */
|
|
138
|
+
/******/ (() => {
|
|
139
|
+
/******/ // define getter functions for harmony exports
|
|
140
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
141
|
+
/******/ for(var key in definition) {
|
|
142
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
143
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
144
|
+
/******/ }
|
|
145
|
+
/******/ }
|
|
146
|
+
/******/ };
|
|
147
|
+
/******/ })();
|
|
148
|
+
/******/
|
|
149
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
150
|
+
/******/ (() => {
|
|
151
|
+
/******/ __webpack_require__.f = {};
|
|
152
|
+
/******/ // This file contains only the entry chunk.
|
|
153
|
+
/******/ // The chunk loading function for additional chunks
|
|
154
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
155
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
156
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
157
|
+
/******/ return promises;
|
|
158
|
+
/******/ }, []));
|
|
159
|
+
/******/ };
|
|
160
|
+
/******/ })();
|
|
161
|
+
/******/
|
|
162
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
163
|
+
/******/ (() => {
|
|
164
|
+
/******/ // This function allow to reference async chunks
|
|
165
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
166
|
+
/******/ // return url for filenames based on template
|
|
167
|
+
/******/ return "" + chunkId + ".js";
|
|
168
|
+
/******/ };
|
|
169
|
+
/******/ })();
|
|
170
|
+
/******/
|
|
171
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
172
|
+
/******/ (() => {
|
|
173
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
174
|
+
/******/ })();
|
|
175
|
+
/******/
|
|
176
|
+
/******/ /* webpack/runtime/load script */
|
|
177
|
+
/******/ (() => {
|
|
178
|
+
/******/ var inProgress = {};
|
|
179
|
+
/******/ var dataWebpackPrefix = "@tsparticles/interaction-external-parallax:";
|
|
180
|
+
/******/ // loadScript function to load a script via script tag
|
|
181
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
182
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
183
|
+
/******/ var script, needAttach;
|
|
184
|
+
/******/ if(key !== undefined) {
|
|
185
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
186
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
187
|
+
/******/ var s = scripts[i];
|
|
188
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
189
|
+
/******/ }
|
|
190
|
+
/******/ }
|
|
191
|
+
/******/ if(!script) {
|
|
192
|
+
/******/ needAttach = true;
|
|
193
|
+
/******/ script = document.createElement('script');
|
|
194
|
+
/******/
|
|
195
|
+
/******/ script.charset = 'utf-8';
|
|
196
|
+
/******/ if (__webpack_require__.nc) {
|
|
197
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
198
|
+
/******/ }
|
|
199
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
200
|
+
/******/
|
|
201
|
+
/******/ script.src = url;
|
|
202
|
+
/******/ }
|
|
203
|
+
/******/ inProgress[url] = [done];
|
|
204
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
205
|
+
/******/ // avoid mem leaks in IE.
|
|
206
|
+
/******/ script.onerror = script.onload = null;
|
|
207
|
+
/******/ clearTimeout(timeout);
|
|
208
|
+
/******/ var doneFns = inProgress[url];
|
|
209
|
+
/******/ delete inProgress[url];
|
|
210
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
211
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
212
|
+
/******/ if(prev) return prev(event);
|
|
213
|
+
/******/ }
|
|
214
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
215
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
216
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
217
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
218
|
+
/******/ };
|
|
219
|
+
/******/ })();
|
|
220
|
+
/******/
|
|
221
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
222
|
+
/******/ (() => {
|
|
223
|
+
/******/ // define __esModule on exports
|
|
224
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
225
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
226
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
227
|
+
/******/ }
|
|
228
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
229
|
+
/******/ };
|
|
230
|
+
/******/ })();
|
|
231
|
+
/******/
|
|
232
|
+
/******/ /* webpack/runtime/publicPath */
|
|
233
|
+
/******/ (() => {
|
|
234
|
+
/******/ var scriptUrl;
|
|
235
|
+
/******/ if (globalThis.importScripts) scriptUrl = globalThis.location + "";
|
|
236
|
+
/******/ var document = globalThis.document;
|
|
237
|
+
/******/ if (!scriptUrl && document) {
|
|
238
|
+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
239
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
240
|
+
/******/ if (!scriptUrl) {
|
|
241
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
242
|
+
/******/ if(scripts.length) {
|
|
243
|
+
/******/ var i = scripts.length - 1;
|
|
244
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
245
|
+
/******/ }
|
|
246
|
+
/******/ }
|
|
247
|
+
/******/ }
|
|
248
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
249
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
250
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
251
|
+
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
252
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
253
|
+
/******/ })();
|
|
254
|
+
/******/
|
|
255
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
256
|
+
/******/ (() => {
|
|
257
|
+
/******/ // no baseURI
|
|
258
|
+
/******/
|
|
259
|
+
/******/ // object to store loaded and loading chunks
|
|
260
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
261
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
262
|
+
/******/ var installedChunks = {
|
|
263
|
+
/******/ "tsparticles.interaction.external.parallax": 0
|
|
264
|
+
/******/ };
|
|
265
|
+
/******/
|
|
266
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
267
|
+
/******/ // JSONP chunk loading for javascript
|
|
268
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
269
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
270
|
+
/******/
|
|
271
|
+
/******/ // a Promise means "currently loading".
|
|
272
|
+
/******/ if(installedChunkData) {
|
|
273
|
+
/******/ promises.push(installedChunkData[2]);
|
|
274
|
+
/******/ } else {
|
|
275
|
+
/******/ if(true) { // all chunks have JS
|
|
276
|
+
/******/ // setup Promise in chunk cache
|
|
277
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
278
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
279
|
+
/******/
|
|
280
|
+
/******/ // start chunk loading
|
|
281
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
282
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
283
|
+
/******/ var error = new Error();
|
|
284
|
+
/******/ var loadingEnded = (event) => {
|
|
285
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
286
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
287
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
288
|
+
/******/ if(installedChunkData) {
|
|
289
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
290
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
291
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
292
|
+
/******/ error.name = 'ChunkLoadError';
|
|
293
|
+
/******/ error.type = errorType;
|
|
294
|
+
/******/ error.request = realSrc;
|
|
295
|
+
/******/ installedChunkData[1](error);
|
|
296
|
+
/******/ }
|
|
297
|
+
/******/ }
|
|
298
|
+
/******/ };
|
|
299
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
300
|
+
/******/ }
|
|
301
|
+
/******/ }
|
|
302
|
+
/******/ }
|
|
303
|
+
/******/ };
|
|
304
|
+
/******/
|
|
305
|
+
/******/ // no prefetching
|
|
306
|
+
/******/
|
|
307
|
+
/******/ // no preloaded
|
|
308
|
+
/******/
|
|
309
|
+
/******/ // no HMR
|
|
310
|
+
/******/
|
|
311
|
+
/******/ // no HMR manifest
|
|
312
|
+
/******/
|
|
313
|
+
/******/ // no on chunks loaded
|
|
314
|
+
/******/
|
|
315
|
+
/******/ // install a JSONP callback for chunk loading
|
|
316
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
317
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
318
|
+
/******/ // add "moreModules" to the modules object,
|
|
319
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
320
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
321
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
322
|
+
/******/ for(moduleId in moreModules) {
|
|
323
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
324
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
325
|
+
/******/ }
|
|
326
|
+
/******/ }
|
|
327
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
328
|
+
/******/ }
|
|
329
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
330
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
331
|
+
/******/ chunkId = chunkIds[i];
|
|
332
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
333
|
+
/******/ installedChunks[chunkId][0]();
|
|
334
|
+
/******/ }
|
|
335
|
+
/******/ installedChunks[chunkId] = 0;
|
|
336
|
+
/******/ }
|
|
337
|
+
/******/
|
|
338
|
+
/******/ }
|
|
339
|
+
/******/
|
|
340
|
+
/******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_interaction_external_parallax"] = this["webpackChunk_tsparticles_interaction_external_parallax"] || [];
|
|
341
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
342
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
343
|
+
/******/ })();
|
|
344
|
+
/******/
|
|
345
|
+
/************************************************************************/
|
|
346
|
+
/******/
|
|
347
|
+
/******/ // startup
|
|
348
|
+
/******/ // Load entry module and return exports
|
|
349
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
350
|
+
/******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
|
|
351
|
+
/******/
|
|
352
|
+
/******/ return __webpack_exports__;
|
|
353
|
+
/******/ })()
|
|
354
|
+
;
|
|
355
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see tsparticles.interaction.external.parallax.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/plugin-interactivity"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/plugin-interactivity"],t);else{var r="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/plugin-interactivity")):t(e.window,e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,((e,t)=>(()=>{var r,o,a,i,n={303(t){t.exports=e},702(e){e.exports=t},950(e,t,r){r.d(t,{k:()=>a});var o=r(303);class a{constructor(){this.force=2,this.smooth=10}load(e){(0,o.isNull)(e)||(void 0!==e.force&&(this.force=e.force),void 0!==e.smooth&&(this.smooth=e.smooth))}}}},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return n[e](r,r.exports,s),r.exports}s.m=n,o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var a=Object.create(null);s.r(a);var i={};r=r||[null,o({}),o([]),o(o)];for(var n=2&t&&e;("object"==typeof n||"function"==typeof n)&&!~r.indexOf(n);n=o(n))Object.getOwnPropertyNames(n).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(a,i),a},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>e+".min.js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a={},i="@tsparticles/interaction-external-parallax:",s.l=(e,t,r,o)=>{if(a[e])a[e].push(t);else{var n,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),p=0;p<c.length;p++){var u=c[p];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==i+r){n=u;break}}n||(l=!0,(n=document.createElement("script")).charset="utf-8",s.nc&&n.setAttribute("nonce",s.nc),n.setAttribute("data-webpack",i+r),n.src=e),a[e]=[t];var f=(t,r)=>{n.onerror=n.onload=null,clearTimeout(d);var o=a[e];if(delete a[e],n.parentNode&&n.parentNode.removeChild(n),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=f.bind(null,n.onerror),n.onload=f.bind(null,n.onload),l&&document.head.appendChild(n)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={207:0};s.f.j=(t,r)=>{var o=s.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(((r,a)=>o=e[t]=[r,a]));r.push(o[2]=a);var i=s.p+s.u(t),n=new Error;s.l(i,(r=>{if(s.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;n.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",n.name="ChunkLoadError",n.type=a,n.request=i,o[1](n)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,a,[i,n,l]=r,c=0;if(i.some((t=>0!==e[t]))){for(o in n)s.o(n,o)&&(s.m[o]=n[o]);if(l)l(s)}for(t&&t(r);c<i.length;c++)a=i[c],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=this.webpackChunk_tsparticles_interaction_external_parallax=this.webpackChunk_tsparticles_interaction_external_parallax||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var c={};s.r(c),s.d(c,{Parallax:()=>p.k,loadExternalParallaxInteraction:()=>u});var p=s(950);function u(e){e.checkVersion("4.0.0-alpha.4"),e.register((async e=>{const{loadInteractivityPlugin:t}=await Promise.resolve().then(s.t.bind(s,702,19));t(e),e.addInteractor?.("externalParallax",(async e=>{const{Parallaxer:t}=await s.e(411).then(s.bind(s,411));return new t(e)}))}))}return c})()));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Parallax External Interaction v4.0.0-alpha.4 by Matteo Bruni */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IOptionLoader, type RecursivePartial } from "@tsparticles/engine";
|
|
2
|
+
import type { IParallax } from "../Interfaces/IParallax.js";
|
|
3
|
+
export declare class Parallax implements IParallax, IOptionLoader<IParallax> {
|
|
4
|
+
force: number;
|
|
5
|
+
smooth: number;
|
|
6
|
+
constructor();
|
|
7
|
+
load(data?: RecursivePartial<IParallax>): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExternalInteractorBase, type IInteractivityData, type IModes, type InteractivityParticle, type Modes } from "@tsparticles/plugin-interactivity";
|
|
2
|
+
import type { IParallaxMode, ParallaxContainer, ParallaxMode } from "./Types.js";
|
|
3
|
+
import { type RecursivePartial } from "@tsparticles/engine";
|
|
4
|
+
export declare class Parallaxer extends ExternalInteractorBase<ParallaxContainer> {
|
|
5
|
+
constructor(container: ParallaxContainer);
|
|
6
|
+
clear(): void;
|
|
7
|
+
init(): void;
|
|
8
|
+
interact(interactivityData: IInteractivityData): void;
|
|
9
|
+
isEnabled(interactivityData: IInteractivityData, particle?: InteractivityParticle): boolean;
|
|
10
|
+
loadModeOptions(options: Modes & ParallaxMode, ...sources: RecursivePartial<(IModes & IParallaxMode) | undefined>[]): void;
|
|
11
|
+
reset(): void;
|
|
12
|
+
private _parallaxInteract;
|
|
13
|
+
}
|
package/types/Types.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IParallax } from "./Options/Interfaces/IParallax.js";
|
|
2
|
+
import type { InteractivityContainer } from "@tsparticles/plugin-interactivity";
|
|
3
|
+
import type { Parallax } from "./Options/Classes/Parallax.js";
|
|
4
|
+
import type { ParallaxOptions } from "./Options/Classes/ParallaxOptions.js";
|
|
5
|
+
export interface IParallaxMode {
|
|
6
|
+
parallax: IParallax;
|
|
7
|
+
}
|
|
8
|
+
export interface ParallaxMode {
|
|
9
|
+
parallax?: Parallax;
|
|
10
|
+
}
|
|
11
|
+
export type ParallaxContainer = InteractivityContainer & {
|
|
12
|
+
actualOptions: ParallaxOptions;
|
|
13
|
+
};
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "@tsparticles/engine"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Parallax = void 0;
|
|
13
|
+
const engine_1 = require("@tsparticles/engine");
|
|
14
|
+
class Parallax {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.force = 2;
|
|
17
|
+
this.smooth = 10;
|
|
18
|
+
}
|
|
19
|
+
load(data) {
|
|
20
|
+
if ((0, engine_1.isNull)(data)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (data.force !== undefined) {
|
|
24
|
+
this.force = data.force;
|
|
25
|
+
}
|
|
26
|
+
if (data.smooth !== undefined) {
|
|
27
|
+
this.smooth = data.smooth;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Parallax = Parallax;
|
|
32
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "@tsparticles/plugin-interactivity", "@tsparticles/engine", "./Options/Classes/Parallax.js"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Parallaxer = void 0;
|
|
13
|
+
const plugin_interactivity_1 = require("@tsparticles/plugin-interactivity");
|
|
14
|
+
const engine_1 = require("@tsparticles/engine");
|
|
15
|
+
const Parallax_js_1 = require("./Options/Classes/Parallax.js");
|
|
16
|
+
const parallaxMode = "parallax";
|
|
17
|
+
class Parallaxer extends plugin_interactivity_1.ExternalInteractorBase {
|
|
18
|
+
constructor(container) {
|
|
19
|
+
super(container);
|
|
20
|
+
}
|
|
21
|
+
clear() {
|
|
22
|
+
}
|
|
23
|
+
init() {
|
|
24
|
+
}
|
|
25
|
+
interact(interactivityData) {
|
|
26
|
+
for (const particle of this.container.particles.filter(p => this.isEnabled(interactivityData, p))) {
|
|
27
|
+
this._parallaxInteract(interactivityData, particle);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
isEnabled(interactivityData, particle) {
|
|
31
|
+
const container = this.container, mouse = interactivityData.mouse, events = (particle?.interactivity ?? container.actualOptions.interactivity)?.events;
|
|
32
|
+
return !!events?.onHover.enable && !!mouse.position && (0, engine_1.isInArray)(parallaxMode, events.onHover.mode);
|
|
33
|
+
}
|
|
34
|
+
loadModeOptions(options, ...sources) {
|
|
35
|
+
options.parallax ??= new Parallax_js_1.Parallax();
|
|
36
|
+
for (const source of sources) {
|
|
37
|
+
options.parallax.load(source?.parallax);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
reset() {
|
|
41
|
+
}
|
|
42
|
+
_parallaxInteract(interactivityData, particle) {
|
|
43
|
+
if (!this.isEnabled(interactivityData, particle)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const container = this.container, options = container.actualOptions, parallaxOptions = options.interactivity?.modes.parallax;
|
|
47
|
+
if (!parallaxOptions) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const parallaxForce = parallaxOptions.force, mousePos = interactivityData.mouse.position;
|
|
51
|
+
if (!mousePos) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const canvasSize = container.canvas.size, canvasCenter = {
|
|
55
|
+
x: canvasSize.width * engine_1.half,
|
|
56
|
+
y: canvasSize.height * engine_1.half,
|
|
57
|
+
}, parallaxSmooth = parallaxOptions.smooth, factor = particle.getRadius() / parallaxForce, centerDistance = {
|
|
58
|
+
x: (mousePos.x - canvasCenter.x) * factor,
|
|
59
|
+
y: (mousePos.y - canvasCenter.y) * factor,
|
|
60
|
+
}, { offset } = particle;
|
|
61
|
+
offset.x += (centerDistance.x - offset.x) / parallaxSmooth;
|
|
62
|
+
offset.y += (centerDistance.y - offset.y) / parallaxSmooth;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.Parallaxer = Parallaxer;
|
|
66
|
+
});
|
package/umd/Types.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|
package/umd/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
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 () {
|
|
18
|
+
var ownKeys = function(o) {
|
|
19
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
20
|
+
var ar = [];
|
|
21
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
22
|
+
return ar;
|
|
23
|
+
};
|
|
24
|
+
return ownKeys(o);
|
|
25
|
+
};
|
|
26
|
+
return function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
34
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
35
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
36
|
+
};
|
|
37
|
+
(function (factory) {
|
|
38
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
39
|
+
var v = factory(require, exports);
|
|
40
|
+
if (v !== undefined) module.exports = v;
|
|
41
|
+
}
|
|
42
|
+
else if (typeof define === "function" && define.amd) {
|
|
43
|
+
define(["require", "exports", "./Options/Classes/Parallax.js"], factory);
|
|
44
|
+
}
|
|
45
|
+
})(function (require, exports) {
|
|
46
|
+
"use strict";
|
|
47
|
+
var __syncRequire = typeof module === "object" && typeof module.exports === "object";
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.loadExternalParallaxInteraction = loadExternalParallaxInteraction;
|
|
50
|
+
function loadExternalParallaxInteraction(engine) {
|
|
51
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
52
|
+
engine.register(async (e) => {
|
|
53
|
+
const { loadInteractivityPlugin } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-interactivity"))) : new Promise((resolve_1, reject_1) => { require(["@tsparticles/plugin-interactivity"], resolve_1, reject_1); }).then(__importStar));
|
|
54
|
+
loadInteractivityPlugin(e);
|
|
55
|
+
e.addInteractor?.("externalParallax", async (container) => {
|
|
56
|
+
const { Parallaxer } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./Parallaxer.js"))) : new Promise((resolve_2, reject_2) => { require(["./Parallaxer.js"], resolve_2, reject_2); }).then(__importStar));
|
|
57
|
+
return new Parallaxer(container);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
__exportStar(require("./Options/Classes/Parallax.js"), exports);
|
|
62
|
+
});
|