@tsparticles/preset-fireworks 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/160.min.js +2 -0
- package/160.min.js.LICENSE.txt +1 -0
- package/184.min.js +2 -0
- package/184.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/{908.min.js → 263.min.js} +2 -2
- package/263.min.js.LICENSE.txt +1 -0
- package/294.min.js +2 -0
- package/294.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/470.min.js +2 -0
- package/470.min.js.LICENSE.txt +1 -0
- package/486.min.js +2 -0
- package/486.min.js.LICENSE.txt +1 -0
- package/488.min.js +1 -1
- package/488.min.js.LICENSE.txt +1 -1
- package/505.min.js +2 -0
- package/505.min.js.LICENSE.txt +1 -0
- package/538.min.js +2 -0
- package/538.min.js.LICENSE.txt +1 -0
- package/56.min.js +2 -0
- package/56.min.js.LICENSE.txt +1 -0
- package/{389.min.js → 564.min.js} +2 -2
- package/564.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/{541.min.js → 680.min.js} +2 -2
- package/680.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/736.min.js +2 -0
- package/736.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/802.min.js +1 -1
- package/802.min.js.LICENSE.txt +1 -1
- 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/888.min.js +2 -0
- package/888.min.js.LICENSE.txt +1 -0
- package/909.min.js +2 -0
- package/909.min.js.LICENSE.txt +1 -0
- package/919.min.js +2 -0
- package/919.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/947.min.js +2 -0
- package/947.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 +17 -16
- package/browser/options.js +0 -1
- package/cjs/index.js +17 -16
- package/cjs/options.js +0 -1
- package/dist_browser_options_js.js +2 -2
- package/esm/index.js +17 -16
- 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_effect-trail_4_0_0-alpha_5_node_modules_tsparticles_effect-trai-ad6390.js +30 -0
- package/{node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_2_node_modules_tsparticles_effect-trai-8c7216.js → node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_5_node_modules_tsparticles_effect-trai-f143f1.js} +5 -5
- 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-sounds_4_0_0-alpha_2_node_modules_tsparticles_plugin-sou-6e6a34.js → node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_5_node_modules_tsparticles_plugin-sou-522702.js} +5 -5
- 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_shape-line_4_0_0-alpha_2_node_modules_tsparticles_shape-line_br-01d607.js → node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_5_node_modules_tsparticles_shape-line_br-797f70.js} +5 -5
- package/{node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_2_node_modules_tsparticles_shape-line_br-eb7b65.js → node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_5_node_modules_tsparticles_shape-line_br-901c67.js} +8 -8
- 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-destroy_4_0_0-alpha_2_node_modules_tsparticles_updater--cef2d9.js → node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_5_node_modules_tsparticles_updater--6c351c.js} +26 -26
- package/{node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_2_node_modules_tsparticles_updater--f71d4c.js → node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_5_node_modules_tsparticles_updater--f90ba9.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-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-e97427.js → node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_5_node_modules_tsparticles_updater-r-9dd4f0.js} +11 -11
- package/{node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-0de212.js → node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_5_node_modules_tsparticles_updater-r-d70445.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/{node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-ca004c.js → node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_5_node_modules_tsparticles_upd-4e9e59.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-74b323.js → node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_5_node_modules_tsparticles_upd-7fb447.js} +5 -5
- package/package.json +15 -15
- package/report.html +1 -1
- package/tsparticles.preset.fireworks.bundle.js +197 -389
- package/tsparticles.preset.fireworks.bundle.min.js +1 -1
- package/tsparticles.preset.fireworks.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.fireworks.js +4 -16
- package/tsparticles.preset.fireworks.min.js +1 -1
- package/tsparticles.preset.fireworks.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +0 -1
- package/umd/index.js +17 -16
- package/umd/options.js +0 -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_plugin-sounds_4_0_0-alpha_2_node_modules_tsparticles_pl-a36589.js → vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_5_node_modules_tsparticles_pl-b29140.js} +37 -47
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_5_node_modules_tsparticles_pl-c6a2a0.js +40 -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/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/237.min.js +0 -2
- package/237.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/280.min.js +0 -2
- package/280.min.js.LICENSE.txt +0 -1
- package/283.min.js +0 -2
- package/283.min.js.LICENSE.txt +0 -1
- package/301.min.js +0 -2
- package/301.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/389.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/477.min.js +0 -2
- package/477.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/527.min.js +0 -2
- package/527.min.js.LICENSE.txt +0 -1
- package/541.min.js.LICENSE.txt +0 -1
- package/597.min.js +0 -2
- package/597.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/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/829.min.js +0 -2
- package/829.min.js.LICENSE.txt +0 -1
- package/890.min.js +0 -2
- package/890.min.js.LICENSE.txt +0 -1
- package/908.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_effect-trail_4_0_0-alpha_2_node_modules_tsparticles_effect-trai-3395e5.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/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
|
/*
|
|
@@ -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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_shape-circle_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-d95142"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.5/node_modules/@tsparticles/shape-circle/browser/index.js"
|
|
21
21
|
/*!********************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.5/node_modules/@tsparticles/shape-circle/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 */ loadCircleShape: () => (/* binding */ loadCircleShape)\n/* harmony export */ });\
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadCircleShape: () => (/* binding */ loadCircleShape)\n/* harmony export */ });\nasync function loadCircleShape(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n const { CircleDrawer } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-2a85dc\").then(__webpack_require__.bind(__webpack_require__, /*! ./CircleDrawer.js */ \"../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.5/node_modules/@tsparticles/shape-circle/browser/CircleDrawer.js\"));\n e.addShape(new CircleDrawer());\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.5/node_modules/@tsparticles/shape-circle/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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_shape-line_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_5_node_modules_tsparticles_shape-line_br-797f70"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/index.js"
|
|
21
21
|
/*!****************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/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 */ loadLineShape: () => (/* binding */ loadLineShape)\n/* harmony export */ });\
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadLineShape: () => (/* binding */ loadLineShape)\n/* harmony export */ });\nasync function loadLineShape(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n const { LineDrawer } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_5_node_modules_tsparticles_shape-line_br-901c67\").then(__webpack_require__.bind(__webpack_require__, /*! ./LineDrawer.js */ \"../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/LineDrawer.js\"));\n e.addShape(new LineDrawer());\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/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,25 +15,25 @@
|
|
|
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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_shape-line_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_5_node_modules_tsparticles_shape-line_br-901c67"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/LineDrawer.js"
|
|
21
21
|
/*!*********************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/LineDrawer.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 */ LineDrawer: () => (/* binding */ LineDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LineDrawer: () => (/* binding */ LineDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/Utils.js\");\n\nconst sides = 1;\nclass LineDrawer {\n constructor() {\n this.validTypes = [\"line\"];\n }\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.drawLine)(data);\n }\n getSidesCount() {\n return sides;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/LineDrawer.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ },
|
|
29
29
|
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/Utils.js"
|
|
31
31
|
/*!****************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/Utils.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 */ drawLine: () => (/* binding */ drawLine)\n/* harmony export */ });\nfunction drawLine(data) {\n const { context, particle, radius } = data, shapeData = particle.shapeData, centerY = 0;\n context.moveTo(-radius, centerY);\n context.lineTo(radius, centerY);\n context.lineCap = shapeData?.cap ?? \"butt\";\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawLine: () => (/* binding */ drawLine)\n/* harmony export */ });\nfunction drawLine(data) {\n const { context, particle, radius } = data, shapeData = particle.shapeData, centerY = 0;\n context.moveTo(-radius, centerY);\n context.lineTo(radius, centerY);\n context.lineCap = shapeData?.cap ?? \"butt\";\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+shape-line@4.0.0-alpha.5/node_modules/@tsparticles/shape-line/browser/Utils.js?\n}");
|
|
37
37
|
|
|
38
38
|
/***/ }
|
|
39
39
|
|
|
@@ -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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-color_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-9b6d65"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/browser/index.js"
|
|
21
21
|
/*!**********************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/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 */ loadColorUpdater: () => (/* binding */ loadColorUpdater)\n/* harmony export */ });\
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadColorUpdater: () => (/* binding */ loadColorUpdater)\n/* harmony export */ });\nasync function loadColorUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(e => {\n e.addParticleUpdater(\"color\", async (container) => {\n const { ColorUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-a17be7\").then(__webpack_require__.bind(__webpack_require__, /*! ./ColorUpdater.js */ \"../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js\"));\n return new ColorUpdater(e, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-color_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-a17be7"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js"
|
|
21
21
|
/*!*****************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/browser/ColorUpdater.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 */ ColorUpdater: () => (/* binding */ ColorUpdater)\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.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ColorUpdater: () => (/* binding */ ColorUpdater)\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\nclass ColorUpdater {\n constructor(engine, container) {\n this._container = container;\n this._engine = engine;\n }\n init(particle) {\n const hslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this._engine, particle.options.color, particle.id, particle.options.reduceDuplicates);\n if (hslColor) {\n particle.color = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(hslColor, particle.options.color.animation, this._container.retina.reduceFactor);\n }\n }\n isEnabled(particle) {\n const { h: hAnimation, s: sAnimation, l: lAnimation } = particle.options.color.animation, { color } = particle;\n return (!particle.destroyed &&\n !particle.spawning &&\n ((color?.h.value !== undefined && hAnimation.enable) ||\n (color?.s.value !== undefined && sAnimation.enable) ||\n (color?.l.value !== undefined && lAnimation.enable)));\n }\n update(particle, delta) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(particle.color, delta);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/browser/ColorUpdater.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,85 +15,85 @@
|
|
|
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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-destroy_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_5_node_modules_tsparticles_updater--6c351c"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/DestroyUpdater.js"
|
|
21
21
|
/*!***********************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/DestroyUpdater.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 */ DestroyUpdater: () => (/* binding */ DestroyUpdater)\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.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyUpdater: () => (/* binding */ DestroyUpdater)\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 _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Destroy.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Destroy.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums/DestroyMode.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Utils.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Utils.js\");\n\n\n\n\nclass DestroyUpdater {\n constructor(engine, container) {\n this.container = container;\n this.engine = engine;\n }\n init(particle) {\n const container = this.container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;\n if (!destroyOptions) {\n return;\n }\n particle.splitCount = 0;\n const destroyBoundsOptions = destroyOptions.bounds;\n particle.destroyBounds ??= {};\n const { bottom, left, right, top } = destroyBoundsOptions, { destroyBounds } = particle, canvasSize = container.canvas.size;\n if (bottom) {\n destroyBounds.bottom = ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(bottom) * canvasSize.height) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (left) {\n destroyBounds.left = ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(left) * canvasSize.width) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (right) {\n destroyBounds.right = ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(right) * canvasSize.width) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (top) {\n destroyBounds.top = ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(top) * canvasSize.height) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.destroy ??= new _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__.Destroy();\n for (const source of sources) {\n options.destroy.load(source?.destroy);\n }\n }\n particleDestroyed(particle, override) {\n if (override) {\n return;\n }\n const destroyOptions = particle.options.destroy;\n if (destroyOptions?.mode === _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.split) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_3__.split)(this.engine, this.container, particle);\n }\n }\n update(particle) {\n if (!this.isEnabled(particle)) {\n return;\n }\n const position = particle.getPosition(), bounds = particle.destroyBounds;\n if (!bounds) {\n return;\n }\n if ((bounds.bottom !== undefined && position.y >= bounds.bottom) ||\n (bounds.left !== undefined && position.x <= bounds.left) ||\n (bounds.right !== undefined && position.x >= bounds.right) ||\n (bounds.top !== undefined && position.y <= bounds.top)) {\n particle.destroy();\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/DestroyUpdater.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ },
|
|
29
29
|
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Enums/DestroyMode.js"
|
|
31
31
|
/*!**************************************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Enums/DestroyMode.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 */ DestroyMode: () => (/* binding */ DestroyMode)\n/* harmony export */ });\nvar DestroyMode;\n(function (DestroyMode) {\n DestroyMode[\"none\"] = \"none\";\n DestroyMode[\"split\"] = \"split\";\n})(DestroyMode || (DestroyMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyMode: () => (/* binding */ DestroyMode)\n/* harmony export */ });\nvar DestroyMode;\n(function (DestroyMode) {\n DestroyMode[\"none\"] = \"none\";\n DestroyMode[\"split\"] = \"split\";\n})(DestroyMode || (DestroyMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Enums/DestroyMode.js?\n}");
|
|
37
37
|
|
|
38
38
|
/***/ },
|
|
39
39
|
|
|
40
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Destroy.js"
|
|
41
41
|
/*!********************************************************************************************************************************************************!*\
|
|
42
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Destroy.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 */ Destroy: () => (/* binding */ Destroy)\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.
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Destroy: () => (/* binding */ Destroy)\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 _DestroyBounds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DestroyBounds.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/DestroyBounds.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Enums/DestroyMode.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Split_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Split.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Split.js\");\n\n\n\n\nclass Destroy {\n constructor() {\n this.bounds = new _DestroyBounds_js__WEBPACK_IMPORTED_MODULE_1__.DestroyBounds();\n this.mode = _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.none;\n this.split = new _Split_js__WEBPACK_IMPORTED_MODULE_3__.Split();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.mode) {\n this.mode = data.mode;\n }\n if (data.bounds) {\n this.bounds.load(data.bounds);\n }\n this.split.load(data.split);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Destroy.js?\n}");
|
|
47
47
|
|
|
48
48
|
/***/ },
|
|
49
49
|
|
|
50
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
50
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/DestroyBounds.js"
|
|
51
51
|
/*!**************************************************************************************************************************************************************!*\
|
|
52
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
52
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/DestroyBounds.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 */ DestroyBounds: () => (/* binding */ DestroyBounds)\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.
|
|
56
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyBounds: () => (/* binding */ DestroyBounds)\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\nclass DestroyBounds {\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.bottom !== undefined) {\n this.bottom = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.bottom);\n }\n if (data.left !== undefined) {\n this.left = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.left);\n }\n if (data.right !== undefined) {\n this.right = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.right);\n }\n if (data.top !== undefined) {\n this.top = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.top);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/DestroyBounds.js?\n}");
|
|
57
57
|
|
|
58
58
|
/***/ },
|
|
59
59
|
|
|
60
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
60
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Split.js"
|
|
61
61
|
/*!******************************************************************************************************************************************************!*\
|
|
62
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
62
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Split.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 */ Split: () => (/* binding */ Split)\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.
|
|
66
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Split: () => (/* binding */ Split)\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 _SplitFactor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SplitFactor.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitFactor.js\");\n/* harmony import */ var _SplitRate_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SplitRate.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitRate.js\");\n\n\n\nclass Split {\n constructor() {\n this.count = 1;\n this.factor = new _SplitFactor_js__WEBPACK_IMPORTED_MODULE_1__.SplitFactor();\n this.rate = new _SplitRate_js__WEBPACK_IMPORTED_MODULE_2__.SplitRate();\n this.sizeOffset = true;\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 = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OptionsColor.create(this.color, data.color);\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n this.factor.load(data.factor);\n this.rate.load(data.rate);\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 if (data.sizeOffset !== undefined) {\n this.sizeOffset = data.sizeOffset;\n }\n if (data.colorOffset) {\n this.colorOffset = this.colorOffset ?? {};\n if (data.colorOffset.h !== undefined) {\n this.colorOffset.h = data.colorOffset.h;\n }\n if (data.colorOffset.s !== undefined) {\n this.colorOffset.s = data.colorOffset.s;\n }\n if (data.colorOffset.l !== undefined) {\n this.colorOffset.l = data.colorOffset.l;\n }\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/Split.js?\n}");
|
|
67
67
|
|
|
68
68
|
/***/ },
|
|
69
69
|
|
|
70
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
70
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitFactor.js"
|
|
71
71
|
/*!************************************************************************************************************************************************************!*\
|
|
72
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
72
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitFactor.js ***!
|
|
73
73
|
\************************************************************************************************************************************************************/
|
|
74
74
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
75
75
|
|
|
76
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitFactor: () => (/* binding */ SplitFactor)\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.
|
|
76
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitFactor: () => (/* binding */ SplitFactor)\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\nclass SplitFactor extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.value = 3;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitFactor.js?\n}");
|
|
77
77
|
|
|
78
78
|
/***/ },
|
|
79
79
|
|
|
80
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
80
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitRate.js"
|
|
81
81
|
/*!**********************************************************************************************************************************************************!*\
|
|
82
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
82
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitRate.js ***!
|
|
83
83
|
\**********************************************************************************************************************************************************/
|
|
84
84
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
85
85
|
|
|
86
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitRate: () => (/* binding */ SplitRate)\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.
|
|
86
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitRate: () => (/* binding */ SplitRate)\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\nclass SplitRate extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.value = { min: 4, max: 9 };\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Options/Classes/SplitRate.js?\n}");
|
|
87
87
|
|
|
88
88
|
/***/ },
|
|
89
89
|
|
|
90
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
90
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Utils.js"
|
|
91
91
|
/*!**************************************************************************************************************************************!*\
|
|
92
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
92
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Utils.js ***!
|
|
93
93
|
\**************************************************************************************************************************************/
|
|
94
94
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95
95
|
|
|
96
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ split: () => (/* binding */ split)\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.
|
|
96
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ split: () => (/* binding */ split)\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 defaultOffset = 0, minDestroySize = 0.5, defaultSplitCount = 0, increment = 1, unbreakableTime = 500, minSplitCount = 0;\nfunction addSplitParticle(engine, container, parent, splitParticlesOptions) {\n const destroyOptions = parent.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split, options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadParticlesOptions)(engine, container, parent.options), factor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.factor.value), parentColor = parent.getFillColor();\n if (splitOptions.color) {\n options.color.load(splitOptions.color);\n }\n else if (splitOptions.colorOffset && parentColor) {\n options.color.load({\n value: {\n hsl: {\n h: parentColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.colorOffset.h ?? defaultOffset),\n s: parentColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.colorOffset.s ?? defaultOffset),\n l: parentColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.colorOffset.l ?? defaultOffset),\n },\n },\n });\n }\n else {\n options.color.load({\n value: {\n hsl: parent.getFillColor(),\n },\n });\n }\n options.move.load({\n center: {\n x: parent.position.x,\n y: parent.position.y,\n mode: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.PixelMode.precise,\n },\n });\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.size.value)) {\n options.size.value /= factor;\n }\n else {\n options.size.value.min /= factor;\n options.size.value.max /= factor;\n }\n options.load(splitParticlesOptions);\n const offset = splitOptions.sizeOffset ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(-parent.size.value, parent.size.value) : defaultOffset, position = {\n x: parent.position.x + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset),\n y: parent.position.y + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset),\n };\n return container.particles.addParticle(position, options, parent.group, (particle) => {\n if (particle.size.value < minDestroySize) {\n return false;\n }\n particle.velocity.length = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(parent.velocity.length, particle.velocity.length));\n particle.splitCount = (parent.splitCount ?? defaultSplitCount) + increment;\n particle.unbreakable = true;\n setTimeout(() => {\n particle.unbreakable = false;\n }, unbreakableTime);\n return true;\n });\n}\nfunction split(engine, container, particle) {\n const destroyOptions = particle.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split;\n if (splitOptions.count >= minSplitCount &&\n (particle.splitCount === undefined || particle.splitCount++ > splitOptions.count)) {\n return;\n }\n const rate = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.rate.value), particlesSplitOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(splitOptions.particles);\n for (let i = 0; i < rate; i++) {\n addSplitParticle(engine, container, particle, particlesSplitOptions);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/Utils.js?\n}");
|
|
97
97
|
|
|
98
98
|
/***/ }
|
|
99
99
|
|
|
@@ -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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-destroy_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_5_node_modules_tsparticles_updater--f90ba9"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/index.js"
|
|
21
21
|
/*!**************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/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 */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\nasync function loadDestroyUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(e => {\n e.addParticleUpdater(\"destroy\", async (container) => {\n const { DestroyUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_5_node_modules_tsparticles_updater--6c351c\").then(__webpack_require__.bind(__webpack_require__, /*! ./DestroyUpdater.js */ \"../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/browser/DestroyUpdater.js\"));\n return new DestroyUpdater(e, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-destroy@4.0.0-alpha.5/node_modules/@tsparticles/updater-destroy/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_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-life_4_0_0-
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-e3e3ae"],{
|
|
19
19
|
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js"
|
|
21
21
|
/*!**************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/LifeUpdater.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 */ LifeUpdater: () => (/* binding */ LifeUpdater)\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.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeUpdater: () => (/* binding */ LifeUpdater)\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 _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Life.js */ \"../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Utils.js */ \"../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Utils.js\");\n\n\n\nconst noTime = 0, identity = 1, infiniteValue = -1;\nclass LifeUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const container = this.container, particlesOptions = particle.options, lifeOptions = particlesOptions.life;\n if (!lifeOptions) {\n return;\n }\n particle.life = {\n delay: container.retina.reduceFactor\n ? (((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * (lifeOptions.delay.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)())) /\n container.retina.reduceFactor) *\n _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds\n : noTime,\n delayTime: noTime,\n duration: container.retina.reduceFactor\n ? (((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * (lifeOptions.duration.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)())) /\n container.retina.reduceFactor) *\n _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds\n : noTime,\n time: noTime,\n count: lifeOptions.count,\n };\n if (particle.life.duration <= noTime) {\n particle.life.duration = infiniteValue;\n }\n if (particle.life.count <= noTime) {\n particle.life.count = infiniteValue;\n }\n particle.spawning = particle.life.delay > noTime;\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.life ??= new _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__.Life();\n for (const source of sources) {\n options.life.load(source?.life);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.life) {\n return;\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__.updateLife)(particle, delta, this.container.canvas.size);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ },
|
|
29
29
|
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js"
|
|
31
31
|
/*!***********************************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.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 */ Life: () => (/* binding */ Life)\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.
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Life: () => (/* binding */ Life)\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 _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LifeDelay.js */ \"../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js\");\n/* harmony import */ var _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LifeDuration.js */ \"../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js\");\n\n\n\nclass Life {\n constructor() {\n this.count = 0;\n this.delay = new _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__.LifeDelay();\n this.duration = new _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__.LifeDuration();\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 this.delay.load(data.delay);\n this.duration.load(data.duration);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js?\n}");
|
|
37
37
|
|
|
38
38
|
/***/ },
|
|
39
39
|
|
|
40
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js"
|
|
41
41
|
/*!****************************************************************************************************************************************************!*\
|
|
42
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.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 */ LifeDelay: () => (/* binding */ LifeDelay)\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.
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeDelay: () => (/* binding */ LifeDelay)\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\nclass LifeDelay extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js?\n}");
|
|
47
47
|
|
|
48
48
|
/***/ },
|
|
49
49
|
|
|
50
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
50
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js"
|
|
51
51
|
/*!*******************************************************************************************************************************************************!*\
|
|
52
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
52
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.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 */ LifeDuration: () => (/* binding */ LifeDuration)\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.
|
|
56
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeDuration: () => (/* binding */ LifeDuration)\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\nclass LifeDuration extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js?\n}");
|
|
57
57
|
|
|
58
58
|
/***/ },
|
|
59
59
|
|
|
60
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
60
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Utils.js"
|
|
61
61
|
/*!********************************************************************************************************************************!*\
|
|
62
|
-
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.
|
|
62
|
+
!*** ../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Utils.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 */ updateLife: () => (/* binding */ updateLife)\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.
|
|
66
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ updateLife: () => (/* binding */ updateLife)\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 noTime = 0, infiniteValue = -1, noLife = 0, minCanvasSize = 0;\nfunction updateLife(particle, delta, canvasSize) {\n if (!particle.life) {\n return;\n }\n const life = particle.life;\n let justSpawned = false;\n if (particle.spawning) {\n life.delayTime += delta.value;\n if (life.delayTime >= particle.life.delay) {\n justSpawned = true;\n particle.spawning = false;\n life.delayTime = noTime;\n life.time = noTime;\n }\n else {\n return;\n }\n }\n if (life.duration === infiniteValue) {\n return;\n }\n if (justSpawned) {\n life.time = noTime;\n }\n else {\n life.time += delta.value;\n }\n if (life.time < life.duration) {\n return;\n }\n life.time = noTime;\n if (particle.life.count > noLife) {\n particle.life.count--;\n }\n if (particle.life.count === noLife) {\n particle.destroy();\n return;\n }\n const widthRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width), heightRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width);\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(widthRange);\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(heightRange);\n particle.spawning = true;\n life.delayTime = noTime;\n life.time = noTime;\n particle.reset();\n const lifeOptions = particle.options.life;\n if (lifeOptions) {\n life.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n life.duration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+updater-life@4.0.0-alpha.5/node_modules/@tsparticles/updater-life/browser/Utils.js?\n}");
|
|
67
67
|
|
|
68
68
|
/***/ }
|
|
69
69
|
|