@tsparticles/preset-hyperspace 4.0.0-alpha.2 → 4.0.0-alpha.5
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/126.min.js +1 -0
- package/182.min.js +1 -0
- package/204.min.js +1 -0
- package/22.min.js +1 -0
- package/231.min.js +1 -0
- package/270.min.js +1 -0
- package/278.min.js +1 -0
- package/28.min.js +1 -0
- package/3.min.js +1 -0
- package/302.min.js +1 -0
- package/316.min.js +1 -0
- package/337.min.js +1 -0
- package/356.min.js +1 -0
- package/382.min.js +1 -0
- package/406.min.js +1 -0
- package/430.min.js +1 -0
- package/47.min.js +1 -2
- package/508.min.js +1 -0
- package/523.min.js +1 -0
- package/530.min.js +1 -0
- package/596.min.js +1 -0
- package/608.min.js +1 -0
- package/646.min.js +1 -0
- package/691.min.js +1 -0
- package/730.min.js +1 -0
- package/731.min.js +1 -0
- package/78.min.js +1 -0
- package/801.min.js +1 -0
- package/819.min.js +1 -0
- package/830.min.js +1 -0
- package/834.min.js +1 -0
- package/844.min.js +1 -0
- package/85.min.js +1 -0
- package/922.min.js +1 -0
- package/930.min.js +1 -0
- package/955.min.js +1 -0
- package/964.min.js +1 -0
- package/988.min.js +1 -0
- package/991.min.js +1 -0
- package/README.md +9 -2
- package/browser/index.js +20 -7
- package/browser/options.js +5 -2
- package/cjs/index.js +20 -7
- package/cjs/options.js +5 -2
- package/dist_browser_options_js.js +2 -2
- package/esm/index.js +20 -7
- package/esm/options.js +5 -2
- package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_1_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-40dd7e.js → node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_1_node_modules_tspartic-99f284.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_1_node_modules_tspartic-a8bf09.js +70 -0
- package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-486a11.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-815c1c.js +100 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-9a4af1.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-c7125a.js +100 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-e8ed4a.js +50 -0
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--7ee633.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-8932d7.js} +7 -7
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--082572.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-a0aea9.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-1179c3.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--d17710.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-1737bf.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tsparticles_plug-908f96.js +120 -0
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tsparticles_plug-d6e6b1.js +70 -0
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugin-move_b-aa7108.js +30 -0
- package/{node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-9b6d65.js → node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugin-move_b-c23e73.js} +5 -5
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_1_node_modules_tsparticles_plugin-r-0f881a.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--8050b3.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_1_node_modules_tsparticles_plugin-r-ae3d6b.js} +7 -7
- package/{node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-5cc589.js → node_modules_pnpm_tsparticles_plugin-trail_4_0_0-beta_1_node_modules_tsparticles_plugin-trail-0b9144.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-beta_1_node_modules_tsparticles_plugin-trail-0c61d3.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-beta_1_node_modules_tsparticles_plugin-trail-5493e2.js +50 -0
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-2a85dc.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_1_node_modules_tsparticles_shape-circle-07826a.js} +12 -12
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-d95142.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_1_node_modules_tsparticles_shape-circle-c2187f.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-fill-color_4_0_0-beta_1_node_modules_tsparticles_update-75868d.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-fill-color_4_0_0-beta_1_node_modules_tsparticles_update-7cca03.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_1_node_modules_tsparticles_updater-life-0d5869.js +70 -0
- package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-ef30bd.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_1_node_modules_tsparticles_updater-life-3af196.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_1_node_modules_tsparticles_updater-o-138fb5.js +30 -0
- package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--35fbab.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_1_node_modules_tsparticles_updater-o-8a311f.js} +7 -7
- package/{node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticles_update-04964a.js → node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_1_node_modules_tsparticles_updater-265a6a.js} +7 -7
- package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-7c3e56.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_1_node_modules_tsparticles_updater-size-124f3f.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_1_node_modules_tsparticles_updater-size-cbf46f.js +30 -0
- package/package.json +8 -7
- package/report.html +84 -29
- package/tsparticles.preset.hyperspace.bundle.js +336 -324
- package/tsparticles.preset.hyperspace.bundle.min.js +2 -2
- package/tsparticles.preset.hyperspace.js +45 -23
- package/tsparticles.preset.hyperspace.min.js +2 -2
- package/types/options.d.ts +5 -2
- package/umd/index.js +20 -7
- package/umd/options.js +5 -2
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_1_node_modules_tsparticles_engine_bro-0bb20b.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_p-168eb1.js +30 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_p-c5a6f7.js +210 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tspartic-d557a0.js +50 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugi-2dea06.js +40 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_1_node_modules_tsparticles-a5ec2f.js +80 -0
- package/121.min.js +0 -2
- package/121.min.js.LICENSE.txt +0 -1
- package/142.min.js +0 -2
- package/142.min.js.LICENSE.txt +0 -1
- package/158.min.js +0 -2
- package/158.min.js.LICENSE.txt +0 -1
- package/196.min.js +0 -2
- package/196.min.js.LICENSE.txt +0 -1
- package/2.min.js +0 -2
- package/2.min.js.LICENSE.txt +0 -1
- package/202.min.js +0 -2
- package/202.min.js.LICENSE.txt +0 -1
- package/294.min.js +0 -2
- package/294.min.js.LICENSE.txt +0 -1
- package/30.min.js +0 -2
- package/30.min.js.LICENSE.txt +0 -1
- package/309.min.js +0 -2
- package/309.min.js.LICENSE.txt +0 -1
- package/352.min.js +0 -2
- package/352.min.js.LICENSE.txt +0 -1
- package/413.min.js +0 -2
- package/413.min.js.LICENSE.txt +0 -1
- package/414.min.js +0 -2
- package/414.min.js.LICENSE.txt +0 -1
- package/420.min.js +0 -2
- package/420.min.js.LICENSE.txt +0 -1
- package/425.min.js +0 -2
- package/425.min.js.LICENSE.txt +0 -1
- package/426.min.js +0 -2
- package/426.min.js.LICENSE.txt +0 -1
- package/429.min.js +0 -2
- package/429.min.js.LICENSE.txt +0 -1
- package/440.min.js +0 -2
- package/440.min.js.LICENSE.txt +0 -1
- package/464.min.js +0 -2
- package/464.min.js.LICENSE.txt +0 -1
- package/47.min.js.LICENSE.txt +0 -1
- package/488.min.js +0 -2
- package/488.min.js.LICENSE.txt +0 -1
- package/500.min.js +0 -2
- package/500.min.js.LICENSE.txt +0 -1
- package/505.min.js +0 -2
- package/505.min.js.LICENSE.txt +0 -1
- package/56.min.js +0 -2
- package/56.min.js.LICENSE.txt +0 -1
- package/60.min.js +0 -2
- package/60.min.js.LICENSE.txt +0 -1
- package/668.min.js +0 -2
- package/668.min.js.LICENSE.txt +0 -1
- package/684.min.js +0 -2
- package/684.min.js.LICENSE.txt +0 -1
- package/685.min.js +0 -2
- package/685.min.js.LICENSE.txt +0 -1
- package/688.min.js +0 -2
- package/688.min.js.LICENSE.txt +0 -1
- package/726.min.js +0 -2
- package/726.min.js.LICENSE.txt +0 -1
- package/778.min.js +0 -2
- package/778.min.js.LICENSE.txt +0 -1
- package/792.min.js +0 -2
- package/792.min.js.LICENSE.txt +0 -1
- package/847.min.js +0 -2
- package/847.min.js.LICENSE.txt +0 -1
- package/864.min.js +0 -2
- package/864.min.js.LICENSE.txt +0 -1
- package/909.min.js +0 -2
- package/909.min.js.LICENSE.txt +0 -1
- package/926.min.js +0 -2
- package/926.min.js.LICENSE.txt +0 -1
- package/933.min.js +0 -2
- package/933.min.js.LICENSE.txt +0 -1
- package/949.min.js +0 -2
- package/949.min.js.LICENSE.txt +0 -1
- package/990.min.js +0 -2
- package/990.min.js.LICENSE.txt +0 -1
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_5_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee.js +0 -40
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-80d7f0.js +0 -70
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-051d5b.js +0 -50
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-9414b7.js +0 -90
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-b376d4.js +0 -90
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-db7965.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--175cc6.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-4ef54e.js +0 -120
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-c0445f.js +0 -70
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--3fa544.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-d221e1.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-de3f95.js +0 -50
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-a17be7.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-e3e3ae.js +0 -70
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--4bc1f3.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-547e88.js +0 -30
- package/tsparticles.preset.hyperspace.bundle.min.js.LICENSE.txt +0 -1
- package/tsparticles.preset.hyperspace.min.js.LICENSE.txt +0 -1
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_5_node_modules_tsparticles_engine_br-85ef38.js +0 -90
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-302925.js +0 -200
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-4cf04b.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparti-98de40.js +0 -50
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticle-f9a455.js +0 -80
|
@@ -0,0 +1,210 @@
|
|
|
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.5
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_p-c5a6f7"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js"
|
|
21
|
+
/*!**************************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js ***!
|
|
23
|
+
\**************************************************************************************************************************************************/
|
|
24
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
+
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersInteractor: () => (/* binding */ EmittersInteractor)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_plugin_interactivity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/plugin-interactivity */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/index.js\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Options/Classes/Emitter.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js\");\n/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/constants.js\");\n\n\n\n\nconst emittersMode = \"emitters\";\nclass EmittersInteractor extends _tsparticles_plugin_interactivity__WEBPACK_IMPORTED_MODULE_0__.ExternalInteractorBase {\n handleClickMode;\n maxDistance;\n _instancesManager;\n constructor(instancesManager, container) {\n super(container);\n this._instancesManager = instancesManager;\n this.maxDistance = 0;\n this.handleClickMode = (mode, interactivityData) => {\n const container = this.container, options = container.actualOptions, modeEmitters = options.interactivity.modes.emitters;\n if (!modeEmitters || mode !== emittersMode) {\n return;\n }\n let emittersModeOptions;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.isArray)(modeEmitters.value)) {\n const minLength = 0, modeEmittersCount = modeEmitters.value.length;\n if (modeEmittersCount > minLength && modeEmitters.random.enable) {\n emittersModeOptions = [];\n const usedIndexes = new Set();\n for (let i = 0; i < modeEmitters.random.count; i++) {\n const idx = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.arrayRandomIndex)(modeEmitters.value);\n if (usedIndexes.has(idx) && usedIndexes.size < modeEmittersCount) {\n i--;\n continue;\n }\n usedIndexes.add(idx);\n const selectedOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.itemFromArray)(modeEmitters.value, idx);\n if (!selectedOptions) {\n continue;\n }\n emittersModeOptions.push(selectedOptions);\n }\n }\n else {\n emittersModeOptions = modeEmitters.value;\n }\n }\n else {\n emittersModeOptions = modeEmitters.value;\n }\n const emittersOptions = emittersModeOptions, ePosition = interactivityData.mouse.clickPosition;\n void (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.executeOnSingleOrMultiple)(emittersOptions, async (emitter) => {\n await this._instancesManager.addEmitter(this.container, emitter, ePosition);\n });\n };\n }\n clear() {\n }\n init() {\n }\n interact(_interactivityData, delta) {\n for (const emitter of this._instancesManager.getArray(this.container)) {\n emitter.update(delta);\n }\n }\n isEnabled(interactivityData, particle) {\n const container = this.container, options = container.actualOptions, mouse = interactivityData.mouse, events = (particle?.interactivity ?? options.interactivity).events;\n if (!mouse.clickPosition || !events.onClick.enable) {\n return false;\n }\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.isInArray)(emittersMode, events.onClick.mode);\n }\n loadModeOptions(options, ...sources) {\n options.emitters = {\n random: _constants_js__WEBPACK_IMPORTED_MODULE_3__.defaultRandomOptions,\n value: [],\n };\n for (const source of sources) {\n if (!source?.emitters) {\n continue;\n }\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.isArray)(source.emitters)) {\n for (const emitter of source.emitters) {\n const tmp = new _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_2__.Emitter();\n tmp.load(emitter);\n options.emitters.value.push(tmp);\n }\n }\n else if (\"value\" in source.emitters) {\n const emitterModeOptions = source.emitters;\n options.emitters.random.enable = emitterModeOptions.random?.enable ?? options.emitters.random.enable;\n options.emitters.random.count = emitterModeOptions.random?.count ?? options.emitters.random.count;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.isArray)(emitterModeOptions.value)) {\n for (const emitter of emitterModeOptions.value) {\n const tmp = new _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_2__.Emitter();\n tmp.load(emitter);\n options.emitters.value.push(tmp);\n }\n }\n else {\n const tmp = new _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_2__.Emitter();\n tmp.load(emitterModeOptions.value);\n options.emitters.value.push(tmp);\n }\n }\n else {\n const tmp = new _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_2__.Emitter();\n tmp.load(source.emitters);\n options.emitters.value.push(tmp);\n }\n }\n }\n removeEmitter(emitter) {\n const index = this._instancesManager.getArray(this.container).indexOf(emitter), minIndex = 0, deleteCount = 1;\n if (index >= minIndex) {\n this._instancesManager.getArray(this.container).splice(index, deleteCount);\n }\n }\n reset() {\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js"
|
|
31
|
+
/*!*******************************************************************************************************************************************************!*\
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js ***!
|
|
33
|
+
\*******************************************************************************************************************************************************/
|
|
34
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
+
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Emitter: () => (/* binding */ Emitter)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _EmitterLife_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EmitterLife.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js\");\n/* harmony import */ var _EmitterRate_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EmitterRate.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js\");\n/* harmony import */ var _EmitterShape_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmitterShape.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js\");\n/* harmony import */ var _EmitterSize_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EmitterSize.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js\");\n/* harmony import */ var _EmitterSpawn_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./EmitterSpawn.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js\");\n\n\n\n\n\n\nclass Emitter {\n autoPlay;\n direction;\n domId;\n fill;\n life;\n name;\n particles;\n position;\n rate;\n shape;\n size;\n spawn;\n spawnFillColor;\n spawnStrokeColor;\n startCount;\n constructor() {\n this.autoPlay = true;\n this.fill = true;\n this.life = new _EmitterLife_js__WEBPACK_IMPORTED_MODULE_1__.EmitterLife();\n this.rate = new _EmitterRate_js__WEBPACK_IMPORTED_MODULE_2__.EmitterRate();\n this.shape = new _EmitterShape_js__WEBPACK_IMPORTED_MODULE_3__.EmitterShape();\n this.spawn = new _EmitterSpawn_js__WEBPACK_IMPORTED_MODULE_5__.EmitterSpawn();\n this.startCount = 0;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.autoPlay !== undefined) {\n this.autoPlay = data.autoPlay;\n }\n if (data.size !== undefined) {\n this.size ??= new _EmitterSize_js__WEBPACK_IMPORTED_MODULE_4__.EmitterSize();\n this.size.load(data.size);\n }\n if (data.direction !== undefined) {\n this.direction = data.direction;\n }\n this.domId = data.domId;\n if (data.fill !== undefined) {\n this.fill = data.fill;\n }\n this.life.load(data.life);\n this.name = data.name;\n this.particles = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(data.particles, particles => {\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, particles);\n });\n this.rate.load(data.rate);\n this.shape.load(data.shape);\n this.spawn.load(data.spawn);\n if (data.position !== undefined) {\n this.position = {};\n if (data.position.x !== undefined) {\n this.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.position.x);\n }\n if (data.position.y !== undefined) {\n this.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.position.y);\n }\n }\n if (data.spawnFillColor !== undefined) {\n this.spawnFillColor ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor();\n this.spawnFillColor.load(data.spawnFillColor);\n }\n if (data.spawnStrokeColor !== undefined) {\n this.spawnStrokeColor ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor();\n this.spawnStrokeColor.load(data.spawnStrokeColor);\n }\n if (data.startCount !== undefined) {\n this.startCount = data.startCount;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js"
|
|
41
|
+
/*!***********************************************************************************************************************************************************!*\
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js ***!
|
|
43
|
+
\***********************************************************************************************************************************************************/
|
|
44
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
|
+
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterLife: () => (/* binding */ EmitterLife)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterLife {\n count;\n delay;\n duration;\n wait;\n constructor() {\n this.wait = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n if (data.delay !== undefined) {\n this.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.delay);\n }\n if (data.duration !== undefined) {\n this.duration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.duration);\n }\n if (data.wait !== undefined) {\n this.wait = data.wait;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ },
|
|
49
|
+
|
|
50
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js"
|
|
51
|
+
/*!***********************************************************************************************************************************************************!*\
|
|
52
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js ***!
|
|
53
|
+
\***********************************************************************************************************************************************************/
|
|
54
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
55
|
+
|
|
56
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterRate: () => (/* binding */ EmitterRate)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterRate {\n delay;\n quantity;\n constructor() {\n this.quantity = 1;\n this.delay = 0.1;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.quantity !== undefined) {\n this.quantity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.quantity);\n }\n if (data.delay !== undefined) {\n this.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.delay);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js?\n}");
|
|
57
|
+
|
|
58
|
+
/***/ },
|
|
59
|
+
|
|
60
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js"
|
|
61
|
+
/*!************************************************************************************************************************************************************!*\
|
|
62
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js ***!
|
|
63
|
+
\************************************************************************************************************************************************************/
|
|
64
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
65
|
+
|
|
66
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShape: () => (/* binding */ EmitterShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _EmitterShapeReplace_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EmitterShapeReplace.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js\");\n\n\nclass EmitterShape {\n options;\n replace;\n type;\n constructor() {\n this.options = {};\n this.replace = new _EmitterShapeReplace_js__WEBPACK_IMPORTED_MODULE_1__.EmitterShapeReplace();\n this.type = \"square\";\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.options !== undefined) {\n this.options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, data.options ?? {});\n }\n this.replace.load(data.replace);\n if (data.type !== undefined) {\n this.type = data.type;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js?\n}");
|
|
67
|
+
|
|
68
|
+
/***/ },
|
|
69
|
+
|
|
70
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js"
|
|
71
|
+
/*!*******************************************************************************************************************************************************************!*\
|
|
72
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js ***!
|
|
73
|
+
\*******************************************************************************************************************************************************************/
|
|
74
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
75
|
+
|
|
76
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeReplace: () => (/* binding */ EmitterShapeReplace)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterShapeReplace {\n color;\n opacity;\n constructor() {\n this.color = false;\n this.opacity = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.color !== undefined) {\n this.color = data.color;\n }\n if (data.opacity !== undefined) {\n this.opacity = data.opacity;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js?\n}");
|
|
77
|
+
|
|
78
|
+
/***/ },
|
|
79
|
+
|
|
80
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js"
|
|
81
|
+
/*!***********************************************************************************************************************************************************!*\
|
|
82
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js ***!
|
|
83
|
+
\***********************************************************************************************************************************************************/
|
|
84
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
85
|
+
|
|
86
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterSize: () => (/* binding */ EmitterSize)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterSize {\n height;\n mode;\n width;\n constructor() {\n this.mode = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.PixelMode.percent;\n this.height = 0;\n this.width = 0;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.mode !== undefined) {\n this.mode = data.mode;\n }\n if (data.height !== undefined) {\n this.height = data.height;\n }\n if (data.width !== undefined) {\n this.width = data.width;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js?\n}");
|
|
87
|
+
|
|
88
|
+
/***/ },
|
|
89
|
+
|
|
90
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js"
|
|
91
|
+
/*!************************************************************************************************************************************************************!*\
|
|
92
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js ***!
|
|
93
|
+
\************************************************************************************************************************************************************/
|
|
94
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95
|
+
|
|
96
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterSpawn: () => (/* binding */ EmitterSpawn)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterSpawn {\n fill;\n stroke;\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.fill) {\n this.fill ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Fill();\n this.fill.load(data.fill);\n }\n if (data.stroke) {\n this.stroke ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Stroke();\n this.stroke.load(data.stroke);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js?\n}");
|
|
97
|
+
|
|
98
|
+
/***/ },
|
|
99
|
+
|
|
100
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/constants.js"
|
|
101
|
+
/*!*****************************************************************************************************************************************!*\
|
|
102
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/constants.js ***!
|
|
103
|
+
\*****************************************************************************************************************************************/
|
|
104
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
105
|
+
|
|
106
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ defaultRandomOptions: () => (/* binding */ defaultRandomOptions)\n/* harmony export */ });\nconst defaultRandomOptions = {\n count: 1,\n enable: true,\n};\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/constants.js?\n}");
|
|
107
|
+
|
|
108
|
+
/***/ },
|
|
109
|
+
|
|
110
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ExternalInteractorBase.js"
|
|
111
|
+
/*!****************************************************************************************************************************************************************************!*\
|
|
112
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ExternalInteractorBase.js ***!
|
|
113
|
+
\****************************************************************************************************************************************************************************/
|
|
114
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
115
|
+
|
|
116
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ExternalInteractorBase: () => (/* binding */ ExternalInteractorBase)\n/* harmony export */ });\n/* harmony import */ var _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Enums/InteractorType.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractorType.js\");\n\nclass ExternalInteractorBase {\n type = _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_0__.InteractorType.external;\n container;\n constructor(container) {\n this.container = container;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ExternalInteractorBase.js?\n}");
|
|
117
|
+
|
|
118
|
+
/***/ },
|
|
119
|
+
|
|
120
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ParticlesInteractorBase.js"
|
|
121
|
+
/*!*****************************************************************************************************************************************************************************!*\
|
|
122
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ParticlesInteractorBase.js ***!
|
|
123
|
+
\*****************************************************************************************************************************************************************************/
|
|
124
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
125
|
+
|
|
126
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ParticlesInteractorBase: () => (/* binding */ ParticlesInteractorBase)\n/* harmony export */ });\n/* harmony import */ var _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Enums/InteractorType.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractorType.js\");\n\nclass ParticlesInteractorBase {\n type = _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_0__.InteractorType.particles;\n container;\n constructor(container) {\n this.container = container;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ParticlesInteractorBase.js?\n}");
|
|
127
|
+
|
|
128
|
+
/***/ },
|
|
129
|
+
|
|
130
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/DivType.js"
|
|
131
|
+
/*!*******************************************************************************************************************************************************!*\
|
|
132
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/DivType.js ***!
|
|
133
|
+
\*******************************************************************************************************************************************************/
|
|
134
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
135
|
+
|
|
136
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DivType: () => (/* binding */ DivType)\n/* harmony export */ });\nvar DivType;\n(function (DivType) {\n DivType[\"circle\"] = \"circle\";\n DivType[\"rectangle\"] = \"rectangle\";\n})(DivType || (DivType = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/DivType.js?\n}");
|
|
137
|
+
|
|
138
|
+
/***/ },
|
|
139
|
+
|
|
140
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractivityDetect.js"
|
|
141
|
+
/*!*******************************************************************************************************************************************************************!*\
|
|
142
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractivityDetect.js ***!
|
|
143
|
+
\*******************************************************************************************************************************************************************/
|
|
144
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
145
|
+
|
|
146
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ InteractivityDetect: () => (/* binding */ InteractivityDetect)\n/* harmony export */ });\nvar InteractivityDetect;\n(function (InteractivityDetect) {\n InteractivityDetect[\"canvas\"] = \"canvas\";\n InteractivityDetect[\"parent\"] = \"parent\";\n InteractivityDetect[\"window\"] = \"window\";\n})(InteractivityDetect || (InteractivityDetect = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractivityDetect.js?\n}");
|
|
147
|
+
|
|
148
|
+
/***/ },
|
|
149
|
+
|
|
150
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractorType.js"
|
|
151
|
+
/*!**************************************************************************************************************************************************************!*\
|
|
152
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractorType.js ***!
|
|
153
|
+
\**************************************************************************************************************************************************************/
|
|
154
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
155
|
+
|
|
156
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ InteractorType: () => (/* binding */ InteractorType)\n/* harmony export */ });\nvar InteractorType;\n(function (InteractorType) {\n InteractorType[\"external\"] = \"external\";\n InteractorType[\"particles\"] = \"particles\";\n})(InteractorType || (InteractorType = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractorType.js?\n}");
|
|
157
|
+
|
|
158
|
+
/***/ },
|
|
159
|
+
|
|
160
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityConstants.js"
|
|
161
|
+
/*!****************************************************************************************************************************************************************!*\
|
|
162
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityConstants.js ***!
|
|
163
|
+
\****************************************************************************************************************************************************************/
|
|
164
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
165
|
+
|
|
166
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ clickEvent: () => (/* binding */ clickEvent),\n/* harmony export */ mouseDownEvent: () => (/* binding */ mouseDownEvent),\n/* harmony export */ mouseLeaveEvent: () => (/* binding */ mouseLeaveEvent),\n/* harmony export */ mouseMoveEvent: () => (/* binding */ mouseMoveEvent),\n/* harmony export */ mouseUpEvent: () => (/* binding */ mouseUpEvent),\n/* harmony export */ touchCancelEvent: () => (/* binding */ touchCancelEvent),\n/* harmony export */ touchEndEvent: () => (/* binding */ touchEndEvent),\n/* harmony export */ touchMoveEvent: () => (/* binding */ touchMoveEvent),\n/* harmony export */ touchStartEvent: () => (/* binding */ touchStartEvent)\n/* harmony export */ });\nconst clickEvent = \"click\", mouseDownEvent = \"pointerdown\", mouseUpEvent = \"pointerup\", mouseLeaveEvent = \"pointerleave\", mouseMoveEvent = \"pointermove\", touchStartEvent = \"touchstart\", touchEndEvent = \"touchend\", touchMoveEvent = \"touchmove\", touchCancelEvent = \"touchcancel\";\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityConstants.js?\n}");
|
|
167
|
+
|
|
168
|
+
/***/ },
|
|
169
|
+
|
|
170
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Events/DivEvent.js"
|
|
171
|
+
/*!*************************************************************************************************************************************************************************!*\
|
|
172
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Events/DivEvent.js ***!
|
|
173
|
+
\*************************************************************************************************************************************************************************/
|
|
174
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
175
|
+
|
|
176
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DivEvent: () => (/* binding */ DivEvent)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _Enums_DivType_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Enums/DivType.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/DivType.js\");\n\n\nclass DivEvent {\n enable;\n mode;\n selectors;\n type;\n constructor() {\n this.selectors = [];\n this.enable = false;\n this.mode = [];\n this.type = _Enums_DivType_js__WEBPACK_IMPORTED_MODULE_1__.DivType.circle;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.selectors !== undefined) {\n this.selectors = data.selectors;\n }\n if (data.enable !== undefined) {\n this.enable = data.enable;\n }\n if (data.mode !== undefined) {\n this.mode = data.mode;\n }\n if (data.type !== undefined) {\n this.type = data.type;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Events/DivEvent.js?\n}");
|
|
177
|
+
|
|
178
|
+
/***/ },
|
|
179
|
+
|
|
180
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Modes/Modes.js"
|
|
181
|
+
/*!*********************************************************************************************************************************************************************!*\
|
|
182
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Modes/Modes.js ***!
|
|
183
|
+
\*********************************************************************************************************************************************************************/
|
|
184
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
185
|
+
|
|
186
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Modes: () => (/* binding */ Modes)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass Modes {\n _container;\n _pluginManager;\n constructor(pluginManager, container) {\n this._pluginManager = pluginManager;\n this._container = container;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (!this._container) {\n return;\n }\n const interactors = this._pluginManager.interactors?.get(this._container);\n if (!interactors) {\n return;\n }\n for (const interactor of interactors) {\n if (!interactor.loadModeOptions) {\n continue;\n }\n interactor.loadModeOptions(this, data);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Modes/Modes.js?\n}");
|
|
187
|
+
|
|
188
|
+
/***/ },
|
|
189
|
+
|
|
190
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/index.js"
|
|
191
|
+
/*!***********************************************************************************************************************************************!*\
|
|
192
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/index.js ***!
|
|
193
|
+
\***********************************************************************************************************************************************/
|
|
194
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
195
|
+
|
|
196
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DivEvent: () => (/* reexport safe */ _Options_Classes_Events_DivEvent_js__WEBPACK_IMPORTED_MODULE_8__.DivEvent),\n/* harmony export */ DivType: () => (/* reexport safe */ _Enums_DivType_js__WEBPACK_IMPORTED_MODULE_4__.DivType),\n/* harmony export */ ExternalInteractorBase: () => (/* reexport safe */ _BaseClasses_ExternalInteractorBase_js__WEBPACK_IMPORTED_MODULE_1__.ExternalInteractorBase),\n/* harmony export */ InteractivityDetect: () => (/* reexport safe */ _Enums_InteractivityDetect_js__WEBPACK_IMPORTED_MODULE_5__.InteractivityDetect),\n/* harmony export */ InteractorType: () => (/* reexport safe */ _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_6__.InteractorType),\n/* harmony export */ Modes: () => (/* reexport safe */ _Options_Classes_Modes_Modes_js__WEBPACK_IMPORTED_MODULE_9__.Modes),\n/* harmony export */ ParticlesInteractorBase: () => (/* reexport safe */ _BaseClasses_ParticlesInteractorBase_js__WEBPACK_IMPORTED_MODULE_2__.ParticlesInteractorBase),\n/* harmony export */ clickEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.clickEvent),\n/* harmony export */ divMode: () => (/* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_7__.divMode),\n/* harmony export */ divModeExecute: () => (/* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_7__.divModeExecute),\n/* harmony export */ ensureInteractivityPluginLoaded: () => (/* binding */ ensureInteractivityPluginLoaded),\n/* harmony export */ isDivModeEnabled: () => (/* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_7__.isDivModeEnabled),\n/* harmony export */ loadInteractivityPlugin: () => (/* binding */ loadInteractivityPlugin),\n/* harmony export */ mouseDownEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.mouseDownEvent),\n/* harmony export */ mouseLeaveEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.mouseLeaveEvent),\n/* harmony export */ mouseMoveEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.mouseMoveEvent),\n/* harmony export */ mouseUpEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.mouseUpEvent),\n/* harmony export */ singleDivModeExecute: () => (/* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_7__.singleDivModeExecute),\n/* harmony export */ touchCancelEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.touchCancelEvent),\n/* harmony export */ touchEndEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.touchEndEvent),\n/* harmony export */ touchMoveEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.touchMoveEvent),\n/* harmony export */ touchStartEvent: () => (/* reexport safe */ _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__.touchStartEvent)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _BaseClasses_ExternalInteractorBase_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClasses/ExternalInteractorBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ExternalInteractorBase.js\");\n/* harmony import */ var _BaseClasses_ParticlesInteractorBase_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseClasses/ParticlesInteractorBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/BaseClasses/ParticlesInteractorBase.js\");\n/* harmony import */ var _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractivityConstants.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityConstants.js\");\n/* harmony import */ var _Enums_DivType_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Enums/DivType.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/DivType.js\");\n/* harmony import */ var _Enums_InteractivityDetect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Enums/InteractivityDetect.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractivityDetect.js\");\n/* harmony import */ var _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Enums/InteractorType.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractorType.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/utils.js\");\n/* harmony import */ var _Options_Classes_Events_DivEvent_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Options/Classes/Events/DivEvent.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Events/DivEvent.js\");\n/* harmony import */ var _Options_Classes_Modes_Modes_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Options/Classes/Modes/Modes.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Modes/Modes.js\");\n\nasync function loadInteractivityPlugin(engine) {\n engine.checkVersion(\"4.0.0-beta.1\");\n await engine.pluginManager.register(async (e) => {\n const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager, { InteractivityPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tsparticles_plug-d6e6b1\").then(__webpack_require__.bind(__webpack_require__, /*! ./InteractivityPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityPlugin.js\"));\n interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));\n interactivityPluginManager.initializers.interactors ??= new Map();\n interactivityPluginManager.interactors ??= new Map();\n interactivityPluginManager.addInteractor = (name, interactorInitializer) => {\n interactivityPluginManager.initializers.interactors ??= new Map();\n interactivityPluginManager.initializers.interactors.set(name, interactorInitializer);\n };\n interactivityPluginManager.getInteractors = async (container, force = false) => {\n interactivityPluginManager.interactors ??= new Map();\n interactivityPluginManager.initializers.interactors ??= new Map();\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getItemsFromInitializer)(container, interactivityPluginManager.interactors, interactivityPluginManager.initializers.interactors, force);\n };\n interactivityPluginManager.setOnClickHandler = (callback) => {\n const { items } = interactivityEngine;\n if (!items.length) {\n throw new Error(\"Click handlers can only be set after calling tsParticles.load()\");\n }\n items.forEach(item => {\n const interactivityContainer = item;\n interactivityContainer.addClickHandler?.(callback);\n });\n };\n });\n}\nfunction ensureInteractivityPluginLoaded(e) {\n if (!e.pluginManager.addInteractor) {\n throw new Error(\"tsParticles Interactivity Plugin is not loaded\");\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/index.js?\n}");
|
|
197
|
+
|
|
198
|
+
/***/ },
|
|
199
|
+
|
|
200
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/utils.js"
|
|
201
|
+
/*!***********************************************************************************************************************************************!*\
|
|
202
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/utils.js ***!
|
|
203
|
+
\***********************************************************************************************************************************************/
|
|
204
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
205
|
+
|
|
206
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ divMode: () => (/* binding */ divMode),\n/* harmony export */ divModeExecute: () => (/* binding */ divModeExecute),\n/* harmony export */ isDivModeEnabled: () => (/* binding */ isDivModeEnabled),\n/* harmony export */ singleDivModeExecute: () => (/* binding */ singleDivModeExecute)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nfunction checkSelector(element, selectors) {\n const res = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(selectors, selector => {\n return element.matches(selector);\n });\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(res) ? res.some(t => t) : res;\n}\nfunction isDivModeEnabled(mode, divs) {\n return !!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.findItemFromSingleOrMultiple)(divs, t => t.enable && (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isInArray)(mode, t.mode));\n}\nfunction divModeExecute(mode, divs, callback) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(divs, div => {\n const divMode = div.mode, divEnabled = div.enable;\n if (divEnabled && (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isInArray)(mode, divMode)) {\n singleDivModeExecute(div, callback);\n }\n });\n}\nfunction singleDivModeExecute(div, callback) {\n const selectors = div.selectors;\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(selectors, selector => {\n callback(selector, div);\n });\n}\nfunction divMode(divs, element) {\n if (!element || !divs) {\n return;\n }\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.findItemFromSingleOrMultiple)(divs, div => {\n return checkSelector(element, div.selectors);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/utils.js?\n}");
|
|
207
|
+
|
|
208
|
+
/***/ }
|
|
209
|
+
|
|
210
|
+
}]);
|
|
@@ -0,0 +1,50 @@
|
|
|
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.5
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tspartic-d557a0"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractionManager.js"
|
|
21
|
+
/*!************************************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractionManager.js ***!
|
|
23
|
+
\************************************************************************************************************************************************************/
|
|
24
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
+
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ InteractionManager: () => (/* binding */ InteractionManager)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InteractivityConstants.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityConstants.js\");\n/* harmony import */ var _InteractivityEventListeners_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InteractivityEventListeners.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityEventListeners.js\");\n/* harmony import */ var _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Enums/InteractorType.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractorType.js\");\n\n\n\n\nconst clickRadius = 1, touchEndLengthOffset = 1, minCoordinate = 0;\nclass InteractionManager {\n container;\n interactivityData;\n _clickHandlers;\n _eventListeners;\n _externalInteractors;\n _interactors;\n _intersectionObserver;\n _particleInteractors;\n _pluginManager;\n constructor(pluginManager, container) {\n this.container = container;\n this._pluginManager = pluginManager;\n this._interactors = [];\n this._externalInteractors = [];\n this._particleInteractors = [];\n this._clickHandlers = new Map();\n this._eventListeners = new _InteractivityEventListeners_js__WEBPACK_IMPORTED_MODULE_2__.InteractivityEventListeners(container, this);\n this.interactivityData = {\n mouse: {\n clicking: false,\n inside: false,\n },\n };\n this._intersectionObserver = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.safeIntersectionObserver)(entries => {\n this._intersectionManager(entries);\n });\n }\n addClickHandler(callback) {\n const { container, interactivityData } = this;\n if (container.destroyed) {\n return;\n }\n const el = interactivityData.element;\n if (!el) {\n return;\n }\n const clickOrTouchHandler = (e, pos, radius) => {\n if (container.destroyed) {\n return;\n }\n const pxRatio = container.retina.pixelRatio, posRetina = {\n x: pos.x * pxRatio,\n y: pos.y * pxRatio,\n }, particles = container.particles.grid.queryCircle(posRetina, radius * pxRatio);\n callback(e, particles);\n }, clickHandler = (e) => {\n if (container.destroyed) {\n return;\n }\n const mouseEvent = e, pos = {\n x: mouseEvent.offsetX,\n y: mouseEvent.offsetY,\n };\n clickOrTouchHandler(e, pos, clickRadius);\n }, touchStartHandler = () => {\n if (container.destroyed) {\n return;\n }\n touched = true;\n touchMoved = false;\n }, touchMoveHandler = () => {\n if (container.destroyed) {\n return;\n }\n touchMoved = true;\n }, touchEndHandler = (e) => {\n if (container.destroyed) {\n return;\n }\n if (touched && !touchMoved) {\n const touchEvent = e, lastTouch = touchEvent.touches[touchEvent.touches.length - touchEndLengthOffset];\n if (!lastTouch) {\n return;\n }\n const element = container.canvas.element, canvasRect = element ? element.getBoundingClientRect() : undefined, pos = {\n x: lastTouch.clientX - (canvasRect ? canvasRect.left : minCoordinate),\n y: lastTouch.clientY - (canvasRect ? canvasRect.top : minCoordinate),\n };\n clickOrTouchHandler(e, pos, Math.max(lastTouch.radiusX, lastTouch.radiusY));\n }\n touched = false;\n touchMoved = false;\n }, touchCancelHandler = () => {\n if (container.destroyed) {\n return;\n }\n touched = false;\n touchMoved = false;\n };\n let touched = false, touchMoved = false;\n this._clickHandlers.set(_InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.clickEvent, clickHandler);\n this._clickHandlers.set(_InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchStartEvent, touchStartHandler);\n this._clickHandlers.set(_InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchMoveEvent, touchMoveHandler);\n this._clickHandlers.set(_InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchEndEvent, touchEndHandler);\n this._clickHandlers.set(_InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchCancelEvent, touchCancelHandler);\n for (const [key, handler] of this._clickHandlers) {\n el.addEventListener(key, handler);\n }\n }\n addListeners() {\n this._eventListeners.addListeners();\n }\n clearClickHandlers() {\n const { container, interactivityData } = this;\n if (container.destroyed) {\n return;\n }\n for (const [key, handler] of this._clickHandlers) {\n interactivityData.element?.removeEventListener(key, handler);\n }\n this._clickHandlers.clear();\n }\n externalInteract(delta) {\n for (const interactor of this._externalInteractors) {\n const { interactivityData } = this;\n if (interactor.isEnabled(interactivityData)) {\n interactor.interact(interactivityData, delta);\n }\n }\n }\n handleClickMode(mode) {\n if (this.container.destroyed) {\n return;\n }\n const { interactivityData } = this;\n for (const interactor of this._externalInteractors) {\n interactor.handleClickMode?.(mode, interactivityData);\n }\n }\n init() {\n this._eventListeners.init();\n for (const interactor of this._interactors) {\n switch (interactor.type) {\n case _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_3__.InteractorType.external:\n this._externalInteractors.push(interactor);\n break;\n case _Enums_InteractorType_js__WEBPACK_IMPORTED_MODULE_3__.InteractorType.particles:\n this._particleInteractors.push(interactor);\n break;\n }\n interactor.init();\n }\n }\n async initInteractors() {\n const interactors = await this._pluginManager.getInteractors?.(this.container, true);\n if (!interactors) {\n return;\n }\n this._interactors = interactors;\n this._externalInteractors = [];\n this._particleInteractors = [];\n }\n particlesInteract(particle, delta) {\n const { interactivityData } = this;\n for (const interactor of this._externalInteractors) {\n interactor.clear(particle, delta);\n }\n for (const interactor of this._particleInteractors) {\n if (interactor.isEnabled(particle, interactivityData)) {\n interactor.interact(particle, interactivityData, delta);\n }\n }\n }\n removeListeners() {\n this._eventListeners.removeListeners();\n }\n reset(particle) {\n const { interactivityData } = this;\n for (const interactor of this._externalInteractors) {\n if (interactor.isEnabled(interactivityData)) {\n interactor.reset(interactivityData, particle);\n }\n }\n for (const interactor of this._particleInteractors) {\n if (interactor.isEnabled(particle, interactivityData)) {\n interactor.reset(interactivityData, particle);\n }\n }\n }\n startObserving() {\n const { interactivityData } = this;\n if (interactivityData.element instanceof HTMLElement && this._intersectionObserver) {\n this._intersectionObserver.observe(interactivityData.element);\n }\n }\n stopObserving() {\n const { interactivityData } = this;\n if (interactivityData.element instanceof HTMLElement && this._intersectionObserver) {\n this._intersectionObserver.unobserve(interactivityData.element);\n }\n }\n updateMaxDistance() {\n let maxTotalDistance = 0;\n for (const interactor of this._interactors) {\n if (interactor.maxDistance > maxTotalDistance) {\n maxTotalDistance = interactor.maxDistance;\n }\n }\n const container = this.container;\n container.particles.grid.setCellSize(maxTotalDistance * container.retina.pixelRatio);\n }\n _intersectionManager = entries => {\n const { container } = this;\n if (container.destroyed || !container.actualOptions.pauseOnOutsideViewport) {\n return;\n }\n for (const entry of entries) {\n if (entry.target !== this.interactivityData.element) {\n continue;\n }\n if (entry.isIntersecting) {\n container.play();\n }\n else {\n container.pause();\n }\n }\n };\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractionManager.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityEventListeners.js"
|
|
31
|
+
/*!*********************************************************************************************************************************************************************!*\
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityEventListeners.js ***!
|
|
33
|
+
\*********************************************************************************************************************************************************************/
|
|
34
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
+
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ InteractivityEventListeners: () => (/* binding */ InteractivityEventListeners)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InteractivityConstants.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityConstants.js\");\n/* harmony import */ var _Enums_InteractivityDetect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums/InteractivityDetect.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Enums/InteractivityDetect.js\");\n\n\n\nconst touchDelay = 500;\nclass InteractivityEventListeners {\n _canPush = true;\n _clickPositionPlugins;\n _container;\n _handlers;\n _interactionManager;\n _touches;\n constructor(container, interactionManager) {\n this._container = container;\n this._clickPositionPlugins = [];\n this._interactionManager = interactionManager;\n this._touches = new Map();\n this._handlers = {\n mouseDown: () => {\n this._mouseDown();\n },\n mouseLeave: () => {\n this._mouseTouchFinish();\n },\n mouseMove: (e) => {\n this._mouseTouchMove(e);\n },\n mouseUp: (e) => {\n this._mouseTouchClick(e);\n },\n touchStart: (e) => {\n this._touchStart(e);\n },\n touchMove: (e) => {\n this._mouseTouchMove(e);\n },\n touchEnd: (e) => {\n this._touchEnd(e);\n },\n touchCancel: (e) => {\n this._touchEnd(e);\n },\n touchEndClick: (e) => {\n this._touchEndClick(e);\n },\n visibilityChange: () => {\n this._handleVisibilityChange();\n },\n };\n }\n addListeners() {\n this._manageListeners(true);\n }\n init() {\n this._clickPositionPlugins.length = 0;\n for (const plugin of this._container.plugins.filter(p => !!p.clickPositionValid)) {\n this._clickPositionPlugins.push(plugin);\n }\n }\n removeListeners() {\n this._manageListeners(false);\n }\n _doMouseTouchClick = e => {\n const container = this._container, interactionManager = this._interactionManager, options = container.actualOptions;\n if (this._canPush) {\n const mouseInteractivity = interactionManager.interactivityData.mouse, mousePos = mouseInteractivity.position;\n if (!mousePos) {\n return;\n }\n mouseInteractivity.clickPosition = { ...mousePos };\n mouseInteractivity.clickTime = performance.now();\n const onClick = options.interactivity?.events.onClick;\n if (!onClick?.mode) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(onClick.mode, mode => {\n interactionManager.handleClickMode(mode);\n });\n }\n if (e.type === \"touchend\") {\n setTimeout(() => {\n this._mouseTouchFinish();\n }, touchDelay);\n }\n };\n _handleVisibilityChange = () => {\n this._mouseTouchFinish();\n };\n _manageInteractivityListeners = add => {\n const handlers = this._handlers, container = this._container, interactionManager = this._interactionManager, options = container.actualOptions, interactivityEl = interactionManager.interactivityData.element;\n if (!interactivityEl) {\n return;\n }\n const html = interactivityEl, canvas = container.canvas;\n canvas.setPointerEvents(html === canvas.element ? \"initial\" : \"none\");\n if (add && !(options.interactivity?.events.onHover.enable || options.interactivity?.events.onClick.enable)) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseMoveEvent, handlers.mouseMove, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchStartEvent, handlers.touchStart, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchMoveEvent, handlers.touchMove, add);\n if (add) {\n if (options.interactivity?.events.onClick.enable) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchEndEvent, handlers.touchEndClick, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseUpEvent, handlers.mouseUp, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseDownEvent, handlers.mouseDown, add);\n }\n else {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchEndEvent, handlers.touchEnd, add);\n }\n }\n else {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchEndEvent, handlers.touchEndClick, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseUpEvent, handlers.mouseUp, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseDownEvent, handlers.mouseDown, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchEndEvent, handlers.touchEnd, add);\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseLeaveEvent, handlers.mouseLeave, add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(interactivityEl, _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.touchCancelEvent, handlers.touchCancel, add);\n };\n _manageListeners = add => {\n const handlers = this._handlers, container = this._container, interactionManager = this._interactionManager, options = container.actualOptions, detectType = options.interactivity?.detectsOn, canvasEl = container.canvas.element;\n if (detectType === _Enums_InteractivityDetect_js__WEBPACK_IMPORTED_MODULE_2__.InteractivityDetect.window) {\n interactionManager.interactivityData.element = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.safeDocument)();\n }\n else if (detectType === _Enums_InteractivityDetect_js__WEBPACK_IMPORTED_MODULE_2__.InteractivityDetect.parent && canvasEl) {\n interactionManager.interactivityData.element = canvasEl.parentElement ?? canvasEl.parentNode;\n }\n else {\n interactionManager.interactivityData.element = canvasEl;\n }\n this._manageInteractivityListeners(add);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.manageListener)(document, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.visibilityChangeEvent, handlers.visibilityChange, add, false);\n };\n _mouseDown = () => {\n const { interactivityData } = this._interactionManager, { mouse } = interactivityData;\n mouse.clicking = true;\n mouse.downPosition = mouse.position;\n };\n _mouseTouchClick = e => {\n const container = this._container, interactionManager = this._interactionManager, options = container.actualOptions, { mouse } = interactionManager.interactivityData;\n mouse.inside = true;\n let handled = false;\n const mousePosition = mouse.position;\n if (!mousePosition || !options.interactivity?.events.onClick.enable) {\n return;\n }\n for (const plugin of this._clickPositionPlugins) {\n handled = plugin.clickPositionValid?.(mousePosition) ?? false;\n if (handled) {\n break;\n }\n }\n if (!handled) {\n this._doMouseTouchClick(e);\n }\n mouse.clicking = false;\n };\n _mouseTouchFinish = () => {\n const { interactivityData } = this._interactionManager, { mouse } = interactivityData;\n delete mouse.position;\n delete mouse.clickPosition;\n delete mouse.downPosition;\n interactivityData.status = _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseLeaveEvent;\n mouse.inside = false;\n mouse.clicking = false;\n };\n _mouseTouchMove = e => {\n const container = this._container, interactionManager = this._interactionManager, options = container.actualOptions, interactivity = interactionManager.interactivityData, canvasEl = container.canvas.element;\n if (!interactivity.element) {\n return;\n }\n interactivity.mouse.inside = true;\n let pos;\n if (e.type.startsWith(\"pointer\")) {\n this._canPush = true;\n const mouseEvent = e;\n if (interactivity.element === (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.safeDocument)()) {\n if (canvasEl) {\n const clientRect = canvasEl.getBoundingClientRect();\n pos = {\n x: mouseEvent.clientX - clientRect.left,\n y: mouseEvent.clientY - clientRect.top,\n };\n }\n }\n else if (options.interactivity?.detectsOn === _Enums_InteractivityDetect_js__WEBPACK_IMPORTED_MODULE_2__.InteractivityDetect.parent) {\n const source = mouseEvent.target, target = mouseEvent.currentTarget;\n if (canvasEl) {\n const sourceRect = source.getBoundingClientRect(), targetRect = target.getBoundingClientRect(), canvasRect = canvasEl.getBoundingClientRect();\n pos = {\n x: mouseEvent.offsetX + _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.double * sourceRect.left - (targetRect.left + canvasRect.left),\n y: mouseEvent.offsetY + _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.double * sourceRect.top - (targetRect.top + canvasRect.top),\n };\n }\n else {\n pos = {\n x: mouseEvent.offsetX,\n y: mouseEvent.offsetY,\n };\n }\n }\n else if (mouseEvent.target === canvasEl) {\n pos = {\n x: mouseEvent.offsetX,\n y: mouseEvent.offsetY,\n };\n }\n }\n else {\n this._canPush = e.type !== \"touchmove\";\n if (canvasEl) {\n const touchEvent = e, lastTouch = touchEvent.touches[touchEvent.touches.length - _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.lengthOffset], canvasRect = canvasEl.getBoundingClientRect();\n if (!lastTouch) {\n return;\n }\n pos = {\n x: lastTouch.clientX - canvasRect.left,\n y: lastTouch.clientY - canvasRect.top,\n };\n }\n }\n const pxRatio = container.retina.pixelRatio;\n if (pos) {\n pos.x *= pxRatio;\n pos.y *= pxRatio;\n }\n interactivity.mouse.position = pos;\n interactivity.status = _InteractivityConstants_js__WEBPACK_IMPORTED_MODULE_1__.mouseMoveEvent;\n };\n _touchEnd = e => {\n const evt = e, touches = Array.from(evt.changedTouches);\n for (const touch of touches) {\n this._touches.delete(touch.identifier);\n }\n this._mouseTouchFinish();\n };\n _touchEndClick = e => {\n const evt = e, touches = Array.from(evt.changedTouches);\n for (const touch of touches) {\n this._touches.delete(touch.identifier);\n }\n this._mouseTouchClick(e);\n };\n _touchStart = e => {\n const evt = e, touches = Array.from(evt.changedTouches);\n for (const touch of touches) {\n this._touches.set(touch.identifier, performance.now());\n }\n this._mouseTouchMove(e);\n };\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityEventListeners.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityPluginInstance.js"
|
|
41
|
+
/*!*********************************************************************************************************************************************************************!*\
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityPluginInstance.js ***!
|
|
43
|
+
\*********************************************************************************************************************************************************************/
|
|
44
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
|
+
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ InteractivityPluginInstance: () => (/* binding */ InteractivityPluginInstance)\n/* harmony export */ });\n/* harmony import */ var _InteractionManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InteractionManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractionManager.js\");\n/* harmony import */ var _Options_Classes_Interactivity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Interactivity.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/Options/Classes/Interactivity.js\");\n\n\nclass InteractivityPluginInstance {\n interactionManager;\n _container;\n _pluginManager;\n constructor(pluginManager, container) {\n this._container = container;\n this._pluginManager = pluginManager;\n this.interactionManager = new _InteractionManager_js__WEBPACK_IMPORTED_MODULE_0__.InteractionManager(pluginManager, container);\n this._container.addClickHandler = (callback) => {\n this.interactionManager.addClickHandler(callback);\n };\n }\n addClickHandler(callback) {\n this.interactionManager.addClickHandler(callback);\n }\n clearClickHandlers() {\n this.interactionManager.clearClickHandlers();\n }\n destroy() {\n this.clearClickHandlers();\n this._pluginManager.interactors?.delete(this._container);\n }\n particleCreated(particle) {\n const interactivityParticle = particle, interactivity = new _Options_Classes_Interactivity_js__WEBPACK_IMPORTED_MODULE_1__.Interactivity(this._pluginManager, this._container);\n interactivity.load(this._container.actualOptions.interactivity);\n interactivity.load(interactivityParticle.options.interactivity);\n interactivityParticle.interactivity = interactivity;\n }\n particleReset(particle) {\n this.interactionManager.reset(particle);\n }\n postParticleUpdate(particle, delta) {\n this.interactionManager.particlesInteract(particle, delta);\n }\n postUpdate(delta) {\n this.interactionManager.externalInteract(delta);\n this.interactionManager.updateMaxDistance();\n }\n async preInit() {\n await this.interactionManager.initInteractors();\n this.interactionManager.init();\n }\n async redrawInit() {\n await this.interactionManager.initInteractors();\n this.interactionManager.init();\n }\n start() {\n this.interactionManager.addListeners();\n this.interactionManager.startObserving();\n return Promise.resolve();\n }\n stop() {\n this.interactionManager.removeListeners();\n this.interactionManager.stopObserving();\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-beta.1/node_modules/@tsparticles/plugin-interactivity/browser/InteractivityPluginInstance.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ }
|
|
49
|
+
|
|
50
|
+
}]);
|
|
@@ -0,0 +1,40 @@
|
|
|
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.5
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugi-2dea06"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/MovePluginInstance.js"
|
|
21
|
+
/*!******************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/MovePluginInstance.js ***!
|
|
23
|
+
\******************************************************************************************************************************************/
|
|
24
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
+
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ MovePluginInstance: () => (/* binding */ MovePluginInstance)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/Utils.js\");\n\n\nconst defaultSizeFactor = 1, defaultDeltaFactor = 1;\nclass MovePluginInstance {\n availablePathGenerators;\n pathGenerators;\n _container;\n _pluginManager;\n constructor(pluginManager, container) {\n this._pluginManager = pluginManager;\n this._container = container;\n this.availablePathGenerators = new Map();\n this.pathGenerators = new Map();\n }\n destroy() {\n this.availablePathGenerators = new Map();\n this.pathGenerators = new Map();\n }\n isEnabled(particle) {\n return !particle.destroyed && particle.options.move.enable;\n }\n particleCreated(particle) {\n const options = particle.options, moveOptions = options.move, gravityOptions = moveOptions.gravity, pathOptions = moveOptions.path;\n particle.moveDecay = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.decayOffset - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(moveOptions.decay);\n particle.pathDelay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(pathOptions.delay.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n if (pathOptions.generator) {\n let pathGenerator = this.pathGenerators.get(pathOptions.generator);\n if (!pathGenerator) {\n pathGenerator = this.availablePathGenerators.get(pathOptions.generator);\n if (pathGenerator) {\n this.pathGenerators.set(pathOptions.generator, pathGenerator);\n pathGenerator.init();\n }\n }\n particle.pathGenerator = pathGenerator;\n }\n particle.gravity = {\n enable: gravityOptions.enable,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(gravityOptions.acceleration),\n inverse: gravityOptions.inverse,\n };\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.initSpin)(this._container, particle);\n }\n particleDestroyed(particle) {\n const pathGenerator = particle.pathGenerator;\n pathGenerator?.reset(particle);\n }\n particleUpdate(particle, delta) {\n const particleOptions = particle.options, moveOptions = particleOptions.move;\n if (!moveOptions.enable) {\n return;\n }\n const container = this._container, pxRatio = container.retina.pixelRatio, slowFactor = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getProximitySpeedFactor)(particle), reduceFactor = container.retina.reduceFactor, baseSpeed = particle.retina.moveSpeed, moveDrift = particle.retina.moveDrift, maxSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particleOptions.size.value) * pxRatio, sizeFactor = moveOptions.size ? particle.getRadius() / maxSize : defaultSizeFactor, deltaFactor = delta.factor || defaultDeltaFactor, moveSpeed = baseSpeed * sizeFactor * slowFactor * deltaFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half, maxSpeed = particle.retina.maxSpeed;\n if (moveOptions.spin.enable) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.spin)(container, particle, moveSpeed, reduceFactor);\n }\n else {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.move)(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta);\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.applyDistance)(particle);\n }\n preInit() {\n return this._init();\n }\n redrawInit() {\n return this._init();\n }\n update() {\n for (const pathGenerator of this.pathGenerators.values()) {\n pathGenerator.update();\n }\n }\n async _init() {\n const availablePathGenerators = await this._pluginManager.getPathGenerators?.(this._container, true);\n if (!availablePathGenerators) {\n return;\n }\n this.availablePathGenerators = availablePathGenerators;\n this.pathGenerators = new Map();\n for (const pathGenerator of this.pathGenerators.values()) {\n pathGenerator.init();\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/MovePluginInstance.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/Utils.js"
|
|
31
|
+
/*!*****************************************************************************************************************************!*\
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/Utils.js ***!
|
|
33
|
+
\*****************************************************************************************************************************/
|
|
34
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
+
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ applyDistance: () => (/* binding */ applyDistance),\n/* harmony export */ applyPath: () => (/* binding */ applyPath),\n/* harmony export */ getProximitySpeedFactor: () => (/* binding */ getProximitySpeedFactor),\n/* harmony export */ initSpin: () => (/* binding */ initSpin),\n/* harmony export */ move: () => (/* binding */ move),\n/* harmony export */ spin: () => (/* binding */ spin)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.1/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst minVelocity = 0, identity = 1, moveSpeedFactor = 60, minSpinRadius = 0, spinFactor = 0.01, defaultPathDelay = 0, noDecay = 1;\nfunction applyDistance(particle) {\n const initialPosition = particle.initialPosition, { dx, dy } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(initialPosition, particle.position), dxFixed = Math.abs(dx), dyFixed = Math.abs(dy), { maxDistance } = particle.retina, hDistance = maxDistance.horizontal, vDistance = maxDistance.vertical;\n if (!hDistance && !vDistance) {\n return;\n }\n const hasHDistance = (hDistance && dxFixed >= hDistance) ?? false, hasVDistance = (vDistance && dyFixed >= vDistance) ?? false;\n if ((hasHDistance || hasVDistance) && !particle.misplaced) {\n particle.misplaced = (!!hDistance && dxFixed > hDistance) || (!!vDistance && dyFixed > vDistance);\n if (hDistance) {\n particle.velocity.x = particle.velocity.y * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half - particle.velocity.x;\n }\n if (vDistance) {\n particle.velocity.y = particle.velocity.x * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half - particle.velocity.y;\n }\n }\n else if ((!hDistance || dxFixed < hDistance) && (!vDistance || dyFixed < vDistance) && particle.misplaced) {\n particle.misplaced = false;\n }\n else if (particle.misplaced) {\n const pos = particle.position, vel = particle.velocity;\n if (hDistance &&\n ((pos.x < initialPosition.x && vel.x < minVelocity) || (pos.x > initialPosition.x && vel.x > minVelocity))) {\n vel.x *= -(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n if (vDistance &&\n ((pos.y < initialPosition.y && vel.y < minVelocity) || (pos.y > initialPosition.y && vel.y > minVelocity))) {\n vel.y *= -(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n}\nfunction move(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta) {\n applyPath(particle, delta);\n const gravityOptions = particle.gravity, gravityFactor = gravityOptions?.enable && gravityOptions.inverse ? -identity : identity;\n if (moveDrift && moveSpeed) {\n particle.velocity.x += (moveDrift * delta.factor) / (moveSpeedFactor * moveSpeed);\n }\n if (gravityOptions?.enable && moveSpeed) {\n particle.velocity.y +=\n (gravityFactor * (gravityOptions.acceleration * delta.factor)) / (moveSpeedFactor * moveSpeed);\n }\n const decay = particle.moveDecay;\n particle.velocity.multTo(decay ?? noDecay);\n const velocity = particle.velocity.mult(moveSpeed);\n if (gravityOptions?.enable &&\n maxSpeed > minVelocity &&\n ((!gravityOptions.inverse && velocity.y >= minVelocity && velocity.y >= maxSpeed) ||\n (gravityOptions.inverse && velocity.y <= minVelocity && velocity.y <= -maxSpeed))) {\n velocity.y = gravityFactor * maxSpeed;\n if (moveSpeed) {\n particle.velocity.y = velocity.y / moveSpeed;\n }\n }\n const zIndexOptions = particle.options.zIndex, zVelocityFactor = (identity - particle.zIndexFactor) ** zIndexOptions.velocityRate;\n velocity.multTo(zVelocityFactor);\n velocity.multTo(reduceFactor);\n const { position } = particle;\n position.addTo(velocity);\n if (moveOptions.vibrate) {\n position.x += Math.sin(position.x * Math.cos(position.y)) * reduceFactor;\n position.y += Math.cos(position.y * Math.sin(position.x)) * reduceFactor;\n }\n}\nfunction spin(container, particle, moveSpeed, reduceFactor) {\n if (!particle.spin) {\n return;\n }\n const spinClockwise = particle.spin.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise, updateFunc = {\n x: spinClockwise ? Math.cos : Math.sin,\n y: spinClockwise ? Math.sin : Math.cos,\n };\n particle.position.x =\n particle.spin.center.x + particle.spin.radius * updateFunc.x(particle.spin.angle) * reduceFactor;\n particle.position.y =\n particle.spin.center.y + particle.spin.radius * updateFunc.y(particle.spin.angle) * reduceFactor;\n particle.spin.radius += particle.spin.acceleration * reduceFactor;\n const maxCanvasSize = Math.max(container.canvas.size.width, container.canvas.size.height), halfMaxSize = maxCanvasSize * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half;\n if (particle.spin.radius > halfMaxSize) {\n particle.spin.radius = halfMaxSize;\n particle.spin.acceleration *= -identity;\n }\n else if (particle.spin.radius < minSpinRadius) {\n particle.spin.radius = minSpinRadius;\n particle.spin.acceleration *= -identity;\n }\n particle.spin.angle += moveSpeed * spinFactor * (identity - particle.spin.radius / maxCanvasSize);\n}\nfunction applyPath(particle, delta) {\n const particlesOptions = particle.options, pathOptions = particlesOptions.move.path, pathEnabled = pathOptions.enable;\n if (!pathEnabled) {\n return;\n }\n const pathDelay = particle.pathDelay ?? defaultPathDelay;\n if (particle.lastPathTime <= pathDelay) {\n particle.lastPathTime += delta.value;\n return;\n }\n const path = particle.pathGenerator?.generate(particle, delta);\n if (path) {\n particle.velocity.addTo(path);\n }\n if (pathOptions.clamp) {\n particle.velocity.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.clamp)(particle.velocity.x, -identity, identity);\n particle.velocity.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.clamp)(particle.velocity.y, -identity, identity);\n }\n particle.lastPathTime -= pathDelay;\n}\nfunction getProximitySpeedFactor(particle) {\n return particle.slow.inRange ? particle.slow.factor : identity;\n}\nfunction initSpin(container, particle) {\n const options = particle.options, spinOptions = options.move.spin;\n if (!spinOptions.enable) {\n return;\n }\n const spinPos = spinOptions.position ?? { x: 50, y: 50 }, spinFactor = 0.01, spinCenter = {\n x: spinPos.x * spinFactor * container.canvas.size.width,\n y: spinPos.y * spinFactor * container.canvas.size.height,\n }, pos = particle.getPosition(), distance = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistance)(pos, spinCenter), spinAcceleration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(spinOptions.acceleration);\n particle.retina.spinAcceleration = spinAcceleration * container.retina.pixelRatio;\n particle.spin = {\n center: spinCenter,\n direction: particle.velocity.x >= minVelocity ? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.counterClockwise,\n angle: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI,\n radius: distance,\n acceleration: particle.retina.spinAcceleration,\n };\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/Utils.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ }
|
|
39
|
+
|
|
40
|
+
}]);
|