@tsparticles/preset-hyperspace 4.0.0-alpha.1 → 4.0.0-alpha.2
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/121.min.js +2 -0
- package/121.min.js.LICENSE.txt +1 -0
- package/142.min.js +2 -0
- package/142.min.js.LICENSE.txt +1 -0
- package/158.min.js +2 -0
- package/158.min.js.LICENSE.txt +1 -0
- package/196.min.js +2 -0
- package/196.min.js.LICENSE.txt +1 -0
- package/2.min.js +2 -0
- package/2.min.js.LICENSE.txt +1 -0
- package/{213.min.js → 202.min.js} +2 -2
- package/202.min.js.LICENSE.txt +1 -0
- package/294.min.js +2 -0
- package/294.min.js.LICENSE.txt +1 -0
- package/30.min.js +2 -0
- package/30.min.js.LICENSE.txt +1 -0
- package/309.min.js +2 -0
- package/309.min.js.LICENSE.txt +1 -0
- package/352.min.js +2 -0
- package/352.min.js.LICENSE.txt +1 -0
- package/413.min.js +2 -0
- package/413.min.js.LICENSE.txt +1 -0
- package/414.min.js +2 -0
- package/414.min.js.LICENSE.txt +1 -0
- package/420.min.js +2 -0
- package/420.min.js.LICENSE.txt +1 -0
- package/425.min.js +2 -0
- package/425.min.js.LICENSE.txt +1 -0
- package/426.min.js +2 -0
- package/426.min.js.LICENSE.txt +1 -0
- package/429.min.js +2 -0
- package/429.min.js.LICENSE.txt +1 -0
- package/440.min.js +2 -0
- package/440.min.js.LICENSE.txt +1 -0
- package/464.min.js +2 -0
- package/464.min.js.LICENSE.txt +1 -0
- package/{22.min.js → 47.min.js} +2 -2
- package/47.min.js.LICENSE.txt +1 -0
- package/488.min.js +2 -0
- package/488.min.js.LICENSE.txt +1 -0
- package/500.min.js +2 -0
- package/500.min.js.LICENSE.txt +1 -0
- package/505.min.js +2 -0
- package/505.min.js.LICENSE.txt +1 -0
- package/56.min.js +2 -0
- package/56.min.js.LICENSE.txt +1 -0
- package/60.min.js +2 -0
- package/60.min.js.LICENSE.txt +1 -0
- package/668.min.js +2 -0
- package/668.min.js.LICENSE.txt +1 -0
- package/684.min.js +2 -0
- package/684.min.js.LICENSE.txt +1 -0
- package/685.min.js +2 -0
- package/685.min.js.LICENSE.txt +1 -0
- package/688.min.js +2 -0
- package/688.min.js.LICENSE.txt +1 -0
- package/{481.min.js → 726.min.js} +2 -2
- package/726.min.js.LICENSE.txt +1 -0
- package/778.min.js +2 -0
- package/778.min.js.LICENSE.txt +1 -0
- package/{751.min.js → 792.min.js} +2 -2
- package/792.min.js.LICENSE.txt +1 -0
- package/{264.min.js → 847.min.js} +2 -2
- package/847.min.js.LICENSE.txt +1 -0
- package/864.min.js +2 -0
- package/864.min.js.LICENSE.txt +1 -0
- package/909.min.js +2 -0
- package/909.min.js.LICENSE.txt +1 -0
- package/926.min.js +1 -1
- package/926.min.js.LICENSE.txt +1 -1
- package/933.min.js +2 -0
- package/933.min.js.LICENSE.txt +1 -0
- package/949.min.js +2 -0
- package/949.min.js.LICENSE.txt +1 -0
- package/990.min.js +2 -0
- package/990.min.js.LICENSE.txt +1 -0
- package/browser/index.js +9 -8
- package/browser/options.js +0 -1
- package/cjs/index.js +9 -8
- package/cjs/options.js +0 -1
- package/dist_browser_options_js.js +2 -2
- package/esm/index.js +9 -8
- package/esm/options.js +0 -1
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_5_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee.js +40 -0
- package/{node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a.js → node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cafd8c.js → node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-40dd7e.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cf2f58.js → node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-80d7f0.js} +17 -17
- package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-6bd6f8.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-051d5b.js} +11 -11
- package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a.js} +5 -5
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-9414b7.js +90 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-b376d4.js +90 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-db7965.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--d06b2a.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--082572.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--91288b.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--7ee633.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--e141e9.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--175cc6.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--70976c.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--d17710.js} +5 -5
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-4ef54e.js +120 -0
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-c0445f.js +70 -0
- package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--60c9df.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--3fa544.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--732407.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--8050b3.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_2_node_modules_tsparticles_plugin-trai-a61828.js → node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-5cc589.js} +5 -5
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-d221e1.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-de3f95.js +50 -0
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-c98489.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-2a85dc.js} +8 -8
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-ce96e8.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-d95142.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-6ff909.js → node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-9b6d65.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-210bd6.js → node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-a17be7.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-dbf90f.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-e3e3ae.js} +17 -17
- package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-50f821.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-ef30bd.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--4e8c57.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--35fbab.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--ac14ff.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--4bc1f3.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticles_update-cd317f.js → node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticles_update-04964a.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-aaa117.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-547e88.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-53e0fe.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-7c3e56.js} +5 -5
- package/package.json +7 -7
- package/report.html +1 -1
- package/tsparticles.preset.hyperspace.bundle.js +197 -389
- package/tsparticles.preset.hyperspace.bundle.min.js +1 -1
- package/tsparticles.preset.hyperspace.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.hyperspace.js +4 -16
- package/tsparticles.preset.hyperspace.min.js +1 -1
- package/tsparticles.preset.hyperspace.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +0 -1
- package/umd/index.js +9 -8
- package/umd/options.js +1 -2
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_5_node_modules_tsparticles_engine_br-85ef38.js +90 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-302925.js +200 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-4cf04b.js +30 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparti-98de40.js +50 -0
- package/{vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticle-124574.js → vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticle-f9a455.js} +20 -20
- package/125.min.js +0 -2
- package/125.min.js.LICENSE.txt +0 -1
- package/157.min.js +0 -2
- package/157.min.js.LICENSE.txt +0 -1
- package/171.min.js +0 -2
- package/171.min.js.LICENSE.txt +0 -1
- package/213.min.js.LICENSE.txt +0 -1
- package/22.min.js.LICENSE.txt +0 -1
- package/226.min.js +0 -2
- package/226.min.js.LICENSE.txt +0 -1
- package/264.min.js.LICENSE.txt +0 -1
- package/267.min.js +0 -2
- package/267.min.js.LICENSE.txt +0 -1
- package/283.min.js +0 -2
- package/283.min.js.LICENSE.txt +0 -1
- package/313.min.js +0 -2
- package/313.min.js.LICENSE.txt +0 -1
- package/319.min.js +0 -2
- package/319.min.js.LICENSE.txt +0 -1
- package/349.min.js +0 -2
- package/349.min.js.LICENSE.txt +0 -1
- package/370.min.js +0 -2
- package/370.min.js.LICENSE.txt +0 -1
- package/397.min.js +0 -2
- package/397.min.js.LICENSE.txt +0 -1
- package/418.min.js +0 -2
- package/418.min.js.LICENSE.txt +0 -1
- package/453.min.js +0 -2
- package/453.min.js.LICENSE.txt +0 -1
- package/455.min.js +0 -2
- package/455.min.js.LICENSE.txt +0 -1
- package/459.min.js +0 -2
- package/459.min.js.LICENSE.txt +0 -1
- package/481.min.js.LICENSE.txt +0 -1
- package/49.min.js +0 -2
- package/49.min.js.LICENSE.txt +0 -1
- package/509.min.js +0 -2
- package/509.min.js.LICENSE.txt +0 -1
- package/633.min.js +0 -2
- package/633.min.js.LICENSE.txt +0 -1
- package/637.min.js +0 -2
- package/637.min.js.LICENSE.txt +0 -1
- package/669.min.js +0 -2
- package/669.min.js.LICENSE.txt +0 -1
- package/751.min.js.LICENSE.txt +0 -1
- package/802.min.js +0 -2
- package/802.min.js.LICENSE.txt +0 -1
- package/803.min.js +0 -2
- package/803.min.js.LICENSE.txt +0 -1
- package/819.min.js +0 -2
- package/819.min.js.LICENSE.txt +0 -1
- package/98.min.js +0 -2
- package/98.min.js.LICENSE.txt +0 -1
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_2_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb.js +0 -40
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_2_node_modules_tsparticles_plugin-trai-e79d1c.js +0 -60
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_2_node_modules_tsparticles_engine_br-9c0a0f.js +0 -100
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_-1e60b5.js +0 -110
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.2
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
\*********************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\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-alpha.5/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst options = {\n background: {\n color: \"#000000\"\n },\n particles: {\n number: {\n value: 100\n },\n color: {\n value: \"#ffffff\"\n },\n life: {\n count: 1,\n duration: {\n value: 5\n }\n },\n shape: {\n type: \"circle\"\n },\n opacity: {\n value: 1\n },\n size: {\n value: 3\n },\n move: {\n enable: true,\n speed: 10,\n decay: 0.005,\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.outside,\n straight: true,\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n },\n emitters: {\n position: {\n x: 50,\n y: 50\n },\n size: {\n width: 100,\n height: 100\n },\n rate: {\n quantity: 10,\n delay: 0.1\n }\n },\n trail: {\n enable: true,\n length: 15,\n fill: {\n color: \"#000000\"\n }\n }\n};\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/./dist/browser/options.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
package/esm/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
loadBasic(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const presetName = "hyperspace";
|
|
2
|
+
export async function loadHyperspacePreset(engine) {
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
|
+
const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadEmittersShapeSquare } = await import("@tsparticles/plugin-emitters-shape-square"), { loadTrailPlugin } = await import("@tsparticles/plugin-trail"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { options } = await import("./options.js");
|
|
5
|
+
await loadBasic(e);
|
|
6
|
+
await loadEmittersPlugin(e);
|
|
7
|
+
await loadEmittersShapeSquare(e);
|
|
8
|
+
await loadTrailPlugin(e);
|
|
9
|
+
await loadLifeUpdater(e);
|
|
9
10
|
e.addPreset(presetName, options);
|
|
10
11
|
});
|
|
11
12
|
}
|
package/esm/options.js
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
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.2
|
|
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([["node_modules_pnpm_tsparticles_basic_4_0_0-alpha_5_node_modules_tsparticles_basic_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.5/node_modules/@tsparticles/basic/browser/index.js"
|
|
21
|
+
/*!******************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.5/node_modules/@tsparticles/basic/browser/index.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 */ loadBasic: () => (/* binding */ loadBasic)\n/* harmony export */ });\nasync function loadBasic(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n const { loadHexColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--7ee633\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hex-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hex-color@4.0.0-alpha.5/node_modules/@tsparticles/plugin-hex-color/browser/index.js\")), { loadHslColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--d17710\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hsl-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hsl-color@4.0.0-alpha.5/node_modules/@tsparticles/plugin-hsl-color/browser/index.js\")), { loadRgbColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--8050b3\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-rgb-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-rgb-color@4.0.0-alpha.5/node_modules/@tsparticles/plugin-rgb-color/browser/index.js\")), { loadBaseMover } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/move-base */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js\")), { loadCircleShape } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-d95142\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/shape-circle */ \"../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.5/node_modules/@tsparticles/shape-circle/browser/index.js\")), { loadColorUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-9b6d65\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-color */ \"../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/browser/index.js\")), { loadOpacityUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--35fbab\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-opacity */ \"../../node_modules/.pnpm/@tsparticles+updater-opacity@4.0.0-alpha.5/node_modules/@tsparticles/updater-opacity/browser/index.js\")), { loadOutModesUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticles_update-04964a\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-out-modes */ \"../../node_modules/.pnpm/@tsparticles+updater-out-modes@4.0.0-alpha.5/node_modules/@tsparticles/updater-out-modes/browser/index.js\")), { loadSizeUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-7c3e56\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"../../node_modules/.pnpm/@tsparticles+updater-size@4.0.0-alpha.5/node_modules/@tsparticles/updater-size/browser/index.js\"));\n await loadHexColorPlugin(e);\n await loadHslColorPlugin(e);\n await loadRgbColorPlugin(e);\n await loadBaseMover(e);\n await loadCircleShape(e);\n await loadColorUpdater(e);\n await loadOpacityUpdater(e);\n await loadOutModesUpdater(e);\n await loadSizeUpdater(e);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.5/node_modules/@tsparticles/basic/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -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.2
|
|
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([["node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.js"
|
|
21
|
+
/*!******************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.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 */ BaseMover: () => (/* binding */ BaseMover)\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-alpha.5/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+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/Utils.js\");\n\n\nconst diffFactor = 2, defaultSizeFactor = 1, defaultDeltaFactor = 1;\nclass BaseMover {\n init(particle) {\n const options = particle.options, gravityOptions = options.move.gravity;\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)(particle);\n }\n isEnabled(particle) {\n return !particle.destroyed && particle.options.move.enable;\n }\n move(particle, delta) {\n const particleOptions = particle.options, moveOptions = particleOptions.move;\n if (!moveOptions.enable) {\n return;\n }\n const container = particle.container, pxRatio = container.retina.pixelRatio;\n particle.retina.moveSpeed ??= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(moveOptions.speed) * pxRatio;\n particle.retina.moveDrift ??= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(particle.options.move.drift) * pxRatio;\n const 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) / diffFactor, maxSpeed = particle.retina.maxSpeed ?? container.retina.maxSpeed;\n if (moveOptions.spin.enable) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.spin)(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}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/Utils.js"
|
|
31
|
+
/*!**************************************************************************************************************************!*\
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/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-alpha.5/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst minVelocity = 0, identity = 1, moveSpeedFactor = 60, minSpinRadius = 0, spinFactor = 0.01;\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);\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(particle, moveSpeed, reduceFactor) {\n const container = particle.container;\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 if (particle.lastPathTime <= particle.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 -= particle.pathDelay;\n}\nfunction getProximitySpeedFactor(particle) {\n return particle.slow.inRange ? particle.slow.factor : identity;\n}\nfunction initSpin(particle) {\n const container = particle.container, 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+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/Utils.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ }
|
|
39
|
+
|
|
40
|
+
}]);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.2
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
* or disable the default devtool with "devtool: false".
|
|
16
16
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
17
|
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_move-base_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js"
|
|
21
21
|
/*!**************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js ***!
|
|
23
23
|
\**************************************************************************************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBaseMover: () => (/* binding */ loadBaseMover)\n/* harmony export */ });\
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBaseMover: () => (/* binding */ loadBaseMover)\n/* harmony export */ });\nasync function loadBaseMover(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(e => {\n e.addMover(\"base\", async () => {\n const { BaseMover } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee\").then(__webpack_require__.bind(__webpack_require__, /*! ./BaseMover.js */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.js\"));\n return new BaseMover();\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.2
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
* or disable the default devtool with "devtool: false".
|
|
16
16
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
17
|
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-40dd7e"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/index.js"
|
|
21
21
|
/*!****************************************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/index.js ***!
|
|
23
23
|
\****************************************************************************************************************************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadEmittersShapeSquare: () => (/* binding */ loadEmittersShapeSquare)\n/* harmony export */ });\
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadEmittersShapeSquare: () => (/* binding */ loadEmittersShapeSquare)\n/* harmony export */ });\nasync function loadEmittersShapeSquare(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n if (!e.addEmitterShapeGenerator) {\n throw new Error(\"tsParticles emitters plugin missing or initialized after shapes\");\n }\n const { EmittersSquareShapeGenerator } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-80d7f0\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersSquareShapeGenerator.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShapeGenerator.js\"));\n e.addEmitterShapeGenerator(\"square\", new EmittersSquareShapeGenerator());\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/index.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.2
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -15,55 +15,55 @@
|
|
|
15
15
|
* or disable the default devtool with "devtool: false".
|
|
16
16
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
17
|
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-80d7f0"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js"
|
|
21
21
|
/*!******************************************************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js ***!
|
|
23
23
|
\******************************************************************************************************************************************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersSquareShape: () => (/* binding */ EmittersSquareShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/plugin-emitters */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersSquareShape: () => (/* binding */ EmittersSquareShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/plugin-emitters */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/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-alpha.5/node_modules/@tsparticles/engine/browser/index.js\");\n\n\nconst sides = 4;\nvar Sides;\n(function (Sides) {\n Sides[Sides[\"TopLeft\"] = 0] = \"TopLeft\";\n Sides[Sides[\"TopRight\"] = 1] = \"TopRight\";\n Sides[Sides[\"BottomRight\"] = 2] = \"BottomRight\";\n Sides[Sides[\"BottomLeft\"] = 3] = \"BottomLeft\";\n})(Sides || (Sides = {}));\nfunction randomSquareCoordinate(position, offset) {\n return position + offset * ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() - _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half);\n}\nclass EmittersSquareShape extends _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase {\n constructor(position, size, fill, options) {\n super(position, size, fill, options);\n }\n async init() {\n }\n randomPosition() {\n const fill = this.fill, position = this.position, size = this.size;\n if (fill) {\n return {\n position: {\n x: randomSquareCoordinate(position.x, size.width),\n y: randomSquareCoordinate(position.y, size.height),\n },\n };\n }\n else {\n const halfW = size.width * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half, halfH = size.height * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half, side = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() * sides), v = ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() - _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.double;\n switch (side) {\n case Sides.TopLeft:\n return {\n position: {\n x: position.x + v * halfW,\n y: position.y - halfH,\n },\n };\n case Sides.TopRight:\n return {\n position: {\n x: position.x - halfW,\n y: position.y + v * halfH,\n },\n };\n case Sides.BottomRight:\n return {\n position: {\n x: position.x + v * halfW,\n y: position.y + halfH,\n },\n };\n case Sides.BottomLeft:\n default:\n return {\n position: {\n x: position.x + halfW,\n y: position.y + v * halfH,\n },\n };\n }\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ },
|
|
29
29
|
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShapeGenerator.js"
|
|
31
31
|
/*!***************************************************************************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShapeGenerator.js ***!
|
|
33
33
|
\***************************************************************************************************************************************************************************************/
|
|
34
34
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
35
|
|
|
36
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersSquareShapeGenerator: () => (/* binding */ EmittersSquareShapeGenerator)\n/* harmony export */ });\n/* harmony import */ var _EmittersSquareShape_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmittersSquareShape.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersSquareShapeGenerator: () => (/* binding */ EmittersSquareShapeGenerator)\n/* harmony export */ });\n/* harmony import */ var _EmittersSquareShape_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmittersSquareShape.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js\");\n\nclass EmittersSquareShapeGenerator {\n generate(position, size, fill, options) {\n return new _EmittersSquareShape_js__WEBPACK_IMPORTED_MODULE_0__.EmittersSquareShape(position, size, fill, options);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShapeGenerator.js?\n}");
|
|
37
37
|
|
|
38
38
|
/***/ },
|
|
39
39
|
|
|
40
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js"
|
|
41
41
|
/*!*************************************************************************************************************************************************!*\
|
|
42
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js ***!
|
|
43
43
|
\*************************************************************************************************************************************************/
|
|
44
44
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
45
|
|
|
46
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js?\n}");
|
|
47
47
|
|
|
48
48
|
/***/ },
|
|
49
49
|
|
|
50
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
50
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js"
|
|
51
51
|
/*!*******************************************************************************************************************************************************!*\
|
|
52
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
52
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js ***!
|
|
53
53
|
\*******************************************************************************************************************************************************/
|
|
54
54
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
55
55
|
|
|
56
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
56
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js?\n}");
|
|
57
57
|
|
|
58
58
|
/***/ },
|
|
59
59
|
|
|
60
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
60
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js"
|
|
61
61
|
/*!**************************************************************************************************************************************!*\
|
|
62
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
62
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js ***!
|
|
63
63
|
\**************************************************************************************************************************************/
|
|
64
64
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
65
65
|
|
|
66
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
66
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js\");\n/* harmony import */ var _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/EmitterClickMode.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js\");\nasync function loadEmittersPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n const { loadInteractivityPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-4ef54e\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-interactivity */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-alpha.5/node_modules/@tsparticles/plugin-interactivity/browser/index.js\")), { ShapeManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a\").then(__webpack_require__.bind(__webpack_require__, /*! ./ShapeManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js\")), { EmittersInstancesManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-9414b7\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInstancesManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.js\")), { EmittersPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-b376d4\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersPlugin.js\")), instancesManager = new EmittersInstancesManager(e);\n await loadInteractivityPlugin(e);\n e.emitterShapeManager ??= new ShapeManager();\n e.addEmitterShapeGenerator ??= (name, generator) => {\n e.emitterShapeManager?.addShapeGenerator(name, generator);\n };\n e.addPlugin(new EmittersPlugin(instancesManager));\n e.addInteractor?.(\"externalEmitters\", async (container) => {\n const { EmittersInteractor } = await __webpack_require__.e(/*! import() */ \"vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-302925\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInteractor.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js\"));\n return new EmittersInteractor(instancesManager, container);\n });\n });\n}\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js?\n}");
|
|
67
67
|
|
|
68
68
|
/***/ }
|
|
69
69
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.2
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -15,35 +15,35 @@
|
|
|
15
15
|
* or disable the default devtool with "devtool: false".
|
|
16
16
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
17
|
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-051d5b"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js"
|
|
21
21
|
/*!*************************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js ***!
|
|
23
23
|
\*************************************************************************************************************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ },
|
|
29
29
|
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js"
|
|
31
31
|
/*!*******************************************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js ***!
|
|
33
33
|
\*******************************************************************************************************************************************************/
|
|
34
34
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
35
|
|
|
36
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js?\n}");
|
|
37
37
|
|
|
38
38
|
/***/ },
|
|
39
39
|
|
|
40
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js"
|
|
41
41
|
/*!**************************************************************************************************************************************!*\
|
|
42
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js ***!
|
|
43
43
|
\**************************************************************************************************************************************/
|
|
44
44
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
45
|
|
|
46
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js\");\n/* harmony import */ var _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/EmitterClickMode.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js\");\nasync function loadEmittersPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n const { loadInteractivityPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-4ef54e\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-interactivity */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-alpha.5/node_modules/@tsparticles/plugin-interactivity/browser/index.js\")), { ShapeManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a\").then(__webpack_require__.bind(__webpack_require__, /*! ./ShapeManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js\")), { EmittersInstancesManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-9414b7\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInstancesManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.js\")), { EmittersPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-b376d4\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersPlugin.js\")), instancesManager = new EmittersInstancesManager(e);\n await loadInteractivityPlugin(e);\n e.emitterShapeManager ??= new ShapeManager();\n e.addEmitterShapeGenerator ??= (name, generator) => {\n e.emitterShapeManager?.addShapeGenerator(name, generator);\n };\n e.addPlugin(new EmittersPlugin(instancesManager));\n e.addInteractor?.(\"externalEmitters\", async (container) => {\n const { EmittersInteractor } = await __webpack_require__.e(/*! import() */ \"vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-302925\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInteractor.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js\"));\n return new EmittersInteractor(instancesManager, container);\n });\n });\n}\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js?\n}");
|
|
47
47
|
|
|
48
48
|
/***/ }
|
|
49
49
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.2
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
* or disable the default devtool with "devtool: false".
|
|
16
16
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
17
|
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_hyperspace"] = this["webpackChunk_tsparticles_preset_hyperspace"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js"
|
|
21
21
|
/*!*********************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js ***!
|
|
23
23
|
\*********************************************************************************************************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ShapeManager: () => (/* binding */ ShapeManager)\n/* harmony export */ });\nconst
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ShapeManager: () => (/* binding */ ShapeManager)\n/* harmony export */ });\nconst shapeGenerators = new Map();\nclass ShapeManager {\n addShapeGenerator(name, generator) {\n if (!this.getShapeGenerator(name)) {\n shapeGenerators.set(name, generator);\n }\n }\n getShapeGenerator(name) {\n return shapeGenerators.get(name);\n }\n getSupportedShapeGenerators() {\n return shapeGenerators.keys();\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-hyperspace/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|