@tsparticles/preset-confetti 4.0.0-alpha.4 → 4.0.0-beta.0
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/0.min.js +1 -0
- package/126.min.js +1 -0
- package/128.min.js +1 -0
- package/166.min.js +1 -0
- package/172.min.js +1 -0
- package/188.min.js +1 -0
- package/200.min.js +1 -0
- package/240.min.js +1 -1
- package/245.min.js +1 -0
- package/304.min.js +1 -0
- package/{323.min.js → 311.min.js} +1 -1
- package/313.min.js +1 -0
- package/326.min.js +1 -0
- package/358.min.js +1 -0
- package/361.min.js +1 -0
- package/392.min.js +1 -0
- package/404.min.js +1 -0
- package/432.min.js +1 -0
- package/467.min.js +1 -0
- package/48.min.js +1 -0
- package/480.min.js +1 -0
- package/499.min.js +1 -0
- package/508.min.js +1 -0
- package/592.min.js +1 -0
- package/600.min.js +1 -1
- package/619.min.js +1 -0
- package/63.min.js +1 -0
- package/632.min.js +1 -0
- package/659.min.js +1 -0
- package/672.min.js +1 -0
- package/700.min.js +1 -0
- package/714.min.js +1 -0
- package/719.min.js +1 -0
- package/72.min.js +1 -1
- package/74.min.js +1 -0
- package/750.min.js +1 -0
- package/76.min.js +1 -0
- package/778.min.js +1 -0
- package/{837.min.js → 784.min.js} +1 -1
- package/824.min.js +1 -0
- package/857.min.js +1 -0
- package/86.min.js +1 -0
- package/892.min.js +1 -0
- package/902.min.js +1 -0
- package/{551.min.js → 925.min.js} +1 -1
- package/957.min.js +1 -0
- package/990.min.js +1 -0
- package/README.md +61 -22
- package/browser/index.js +27 -12
- package/browser/options.js +8 -7
- package/cjs/index.js +27 -12
- package/cjs/options.js +8 -7
- package/dist_browser_options_js.js +2 -2
- package/esm/index.js +27 -12
- package/esm/options.js +8 -7
- package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/node_modules_pnpm_tsparticles_palette-confetti_4_0_0-beta_0_node_modules_tsparticles_palette--18177c.js +30 -0
- package/node_modules_pnpm_tsparticles_palette-confetti_4_0_0-beta_0_node_modules_tsparticles_palette--e88430.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +100 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +50 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--0e469e.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +100 -0
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-bd3833.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js} +7 -7
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-5a675f.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-060416.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-651bc0.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-2d5e3e.js +50 -0
- package/{node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_14_node_modules_tsparticles_plugin-mo-5df303.js → node_modules_pnpm_tsparticles_plugin-motion_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-56bbea.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-bf9b7c.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-3a792b.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-d9836d.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-2d40c5.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022.js} +7 -7
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-7552ae.js +40 -0
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_14_node_modules_tsparticles_shape-circ-365204.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7.js} +7 -7
- package/{node_modules_pnpm_tsparticles_shape-square_4_0_0-alpha_14_node_modules_tsparticles_shape-squa-a72ad2.js → node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-541147.js} +7 -7
- package/{node_modules_pnpm_tsparticles_shape-square_4_0_0-alpha_14_node_modules_tsparticles_shape-squa-baa6f9.js → node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-fd7ee9.js} +12 -12
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-9cea59.js +70 -0
- package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_14_node_modules_tsparticles_updater-li-b2cf28.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a724a4.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-8f9e09.js +30 -0
- package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_14_node_modules_tsparticles_updater-349756.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce.js} +7 -7
- package/{node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_14_node_modules_tsparticles_updat-54df0b.js → node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +30 -0
- package/{node_modules_pnpm_tsparticles_updater-roll_4_0_0-alpha_14_node_modules_tsparticles_updater-ro-3cd951.js → node_modules_pnpm_tsparticles_updater-roll_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-9a3afd.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-roll_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-afa94a.js +70 -0
- package/{node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_14_node_modules_tsparticles_updater--2bc889.js → node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-03eda6.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-6626aa.js +50 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +30 -0
- package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_14_node_modules_tsparticles_updater-si-9bb044.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js} +7 -7
- package/{node_modules_pnpm_tsparticles_updater-tilt_4_0_0-alpha_14_node_modules_tsparticles_updater-ti-706a43.js → node_modules_pnpm_tsparticles_updater-tilt_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-14b886.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-tilt_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a0ea75.js +60 -0
- package/node_modules_pnpm_tsparticles_updater-wobble_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-14499e.js +60 -0
- package/{node_modules_pnpm_tsparticles_updater-wobble_4_0_0-alpha_14_node_modules_tsparticles_updater--63e164.js → node_modules_pnpm_tsparticles_updater-wobble_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-5cc4d7.js} +7 -7
- package/package.json +12 -11
- package/report.html +84 -29
- package/tsparticles.preset.confetti.bundle.js +331 -321
- package/tsparticles.preset.confetti.bundle.min.js +2 -2
- package/tsparticles.preset.confetti.js +36 -26
- package/tsparticles.preset.confetti.min.js +2 -2
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +30 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-bet-5f2b78.js +40 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0-09fa1a.js +80 -0
- package/105.min.js +0 -1
- package/110.min.js +0 -1
- package/115.min.js +0 -1
- package/146.min.js +0 -1
- package/15.min.js +0 -1
- package/154.min.js +0 -1
- package/162.min.js +0 -1
- package/177.min.js +0 -1
- package/218.min.js +0 -1
- package/227.min.js +0 -1
- package/239.min.js +0 -1
- package/252.min.js +0 -1
- package/258.min.js +0 -1
- package/26.min.js +0 -1
- package/298.min.js +0 -1
- package/30.min.js +0 -1
- package/341.min.js +0 -1
- package/355.min.js +0 -1
- package/359.min.js +0 -1
- package/386.min.js +0 -1
- package/402.min.js +0 -1
- package/418.min.js +0 -1
- package/430.min.js +0 -1
- package/46.min.js +0 -1
- package/486.min.js +0 -1
- package/488.min.js +0 -1
- package/491.min.js +0 -1
- package/542.min.js +0 -1
- package/584.min.js +0 -1
- package/609.min.js +0 -1
- package/646.min.js +0 -1
- package/652.min.js +0 -1
- package/670.min.js +0 -1
- package/722.min.js +0 -1
- package/876.min.js +0 -1
- package/880.min.js +0 -1
- package/916.min.js +0 -1
- package/96.min.js +0 -1
- package/966.min.js +0 -1
- package/976.min.js +0 -1
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_14_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_14_node_modules_tsparticles_move-base_bro-0258ba.js +0 -30
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_14_node_modules_tsparticles_move-base_bro-5558e3.js +0 -40
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--01c506.js +0 -50
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--a27da9.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--da9aa3.js +0 -90
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--e12e29.js +0 -90
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-9b85f2.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tsparticles_pl-07239f.js +0 -120
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tsparticles_pl-20b658.js +0 -70
- package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_14_node_modules_tsparticles_plugin-mo-174ad3.js +0 -50
- package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_14_node_modules_tsparticles_plugin-mo-3aaaba.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-9d691b.js +0 -30
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_14_node_modules_tsparticles_shape-circ-21bd73.js +0 -40
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_14_node_modules_tsparticles_updater-c-a242d8.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_14_node_modules_tsparticles_updater-c-ed63c1.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_14_node_modules_tsparticles_updater-li-bdb0d6.js +0 -70
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_14_node_modules_tsparticles_updater-2e428a.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-roll_4_0_0-alpha_14_node_modules_tsparticles_updater-ro-76d86d.js +0 -70
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_14_node_modules_tsparticles_updater--9ebf81.js +0 -50
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_14_node_modules_tsparticles_updater-si-1784d7.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-tilt_4_0_0-alpha_14_node_modules_tsparticles_updater-ti-de42ce.js +0 -60
- package/node_modules_pnpm_tsparticles_updater-wobble_4_0_0-alpha_14_node_modules_tsparticles_updater--00df7a.js +0 -60
- package/umd/bundle.js +0 -17
- package/umd/index.js +0 -63
- package/umd/options.js +0 -141
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_14_node_modules_tsparticles_engine_b-f5db4e.js +0 -90
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles-2b5629.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles-88ac5e.js +0 -200
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tspart-261f0c.js +0 -50
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_14_node_modules_tsparticl-56603a.js +0 -80
package/browser/index.js
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
const presetName = "confetti";
|
|
2
2
|
export async function loadConfettiPreset(engine) {
|
|
3
|
-
await engine.register(async (e) => {
|
|
4
|
-
const { loadBasic }
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadMotionPlugin }, { loadRotateUpdater }, { loadSquareShape }, { loadTiltUpdater }, { loadWobbleUpdater }, { loadLifeUpdater }, { loadRollUpdater }, { loadConfettiPalette }, { options },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic"),
|
|
6
|
+
import("@tsparticles/plugin-emitters/plugin"),
|
|
7
|
+
import("@tsparticles/plugin-motion"),
|
|
8
|
+
import("@tsparticles/updater-rotate"),
|
|
9
|
+
import("@tsparticles/shape-square"),
|
|
10
|
+
import("@tsparticles/updater-tilt"),
|
|
11
|
+
import("@tsparticles/updater-wobble"),
|
|
12
|
+
import("@tsparticles/updater-life"),
|
|
13
|
+
import("@tsparticles/updater-roll"),
|
|
14
|
+
import("@tsparticles/palette-confetti"),
|
|
15
|
+
import("./options.js"),
|
|
16
|
+
]);
|
|
17
|
+
await Promise.all([
|
|
18
|
+
loadBasic(e),
|
|
19
|
+
loadConfettiPalette(e),
|
|
20
|
+
loadEmittersPluginSimple(e),
|
|
21
|
+
loadSquareShape(e),
|
|
22
|
+
loadMotionPlugin(e),
|
|
23
|
+
loadWobbleUpdater(e),
|
|
24
|
+
loadRollUpdater(e),
|
|
25
|
+
loadRotateUpdater(e),
|
|
26
|
+
loadTiltUpdater(e),
|
|
27
|
+
loadLifeUpdater(e),
|
|
28
|
+
]);
|
|
29
|
+
e.pluginManager.addPreset(presetName, options, false);
|
|
15
30
|
});
|
|
16
31
|
}
|
package/browser/options.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
const lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;
|
|
2
2
|
export const options = {
|
|
3
|
+
palette: "confetti",
|
|
4
|
+
background: {
|
|
5
|
+
color: {
|
|
6
|
+
value: "",
|
|
7
|
+
},
|
|
8
|
+
},
|
|
3
9
|
fullScreen: {
|
|
4
10
|
enable: true,
|
|
5
11
|
zIndex: 100,
|
|
6
12
|
},
|
|
7
|
-
fpsLimit: 120,
|
|
8
13
|
particles: {
|
|
9
14
|
number: {
|
|
10
15
|
value: 0,
|
|
11
16
|
},
|
|
12
|
-
color: {
|
|
13
|
-
value: ["#26ccff", "#a25afd", "#ff5e7e", "#88ff5a", "#fcff42", "#ffa62d", "#ff36ff"],
|
|
14
|
-
},
|
|
15
17
|
shape: {
|
|
16
18
|
type: ["square", "circle"],
|
|
17
19
|
},
|
|
@@ -54,8 +56,8 @@ export const options = {
|
|
|
54
56
|
random: true,
|
|
55
57
|
straight: false,
|
|
56
58
|
outModes: {
|
|
57
|
-
default: "
|
|
58
|
-
|
|
59
|
+
default: "destroy",
|
|
60
|
+
top: "none",
|
|
59
61
|
},
|
|
60
62
|
},
|
|
61
63
|
rotate: {
|
|
@@ -101,7 +103,6 @@ export const options = {
|
|
|
101
103
|
},
|
|
102
104
|
},
|
|
103
105
|
},
|
|
104
|
-
detectRetina: true,
|
|
105
106
|
motion: {
|
|
106
107
|
disable: true,
|
|
107
108
|
},
|
package/cjs/index.js
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
const presetName = "confetti";
|
|
2
2
|
export async function loadConfettiPreset(engine) {
|
|
3
|
-
await engine.register(async (e) => {
|
|
4
|
-
const { loadBasic }
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadMotionPlugin }, { loadRotateUpdater }, { loadSquareShape }, { loadTiltUpdater }, { loadWobbleUpdater }, { loadLifeUpdater }, { loadRollUpdater }, { loadConfettiPalette }, { options },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic"),
|
|
6
|
+
import("@tsparticles/plugin-emitters/plugin"),
|
|
7
|
+
import("@tsparticles/plugin-motion"),
|
|
8
|
+
import("@tsparticles/updater-rotate"),
|
|
9
|
+
import("@tsparticles/shape-square"),
|
|
10
|
+
import("@tsparticles/updater-tilt"),
|
|
11
|
+
import("@tsparticles/updater-wobble"),
|
|
12
|
+
import("@tsparticles/updater-life"),
|
|
13
|
+
import("@tsparticles/updater-roll"),
|
|
14
|
+
import("@tsparticles/palette-confetti"),
|
|
15
|
+
import("./options.js"),
|
|
16
|
+
]);
|
|
17
|
+
await Promise.all([
|
|
18
|
+
loadBasic(e),
|
|
19
|
+
loadConfettiPalette(e),
|
|
20
|
+
loadEmittersPluginSimple(e),
|
|
21
|
+
loadSquareShape(e),
|
|
22
|
+
loadMotionPlugin(e),
|
|
23
|
+
loadWobbleUpdater(e),
|
|
24
|
+
loadRollUpdater(e),
|
|
25
|
+
loadRotateUpdater(e),
|
|
26
|
+
loadTiltUpdater(e),
|
|
27
|
+
loadLifeUpdater(e),
|
|
28
|
+
]);
|
|
29
|
+
e.pluginManager.addPreset(presetName, options, false);
|
|
15
30
|
});
|
|
16
31
|
}
|
package/cjs/options.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
const lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;
|
|
2
2
|
export const options = {
|
|
3
|
+
palette: "confetti",
|
|
4
|
+
background: {
|
|
5
|
+
color: {
|
|
6
|
+
value: "",
|
|
7
|
+
},
|
|
8
|
+
},
|
|
3
9
|
fullScreen: {
|
|
4
10
|
enable: true,
|
|
5
11
|
zIndex: 100,
|
|
6
12
|
},
|
|
7
|
-
fpsLimit: 120,
|
|
8
13
|
particles: {
|
|
9
14
|
number: {
|
|
10
15
|
value: 0,
|
|
11
16
|
},
|
|
12
|
-
color: {
|
|
13
|
-
value: ["#26ccff", "#a25afd", "#ff5e7e", "#88ff5a", "#fcff42", "#ffa62d", "#ff36ff"],
|
|
14
|
-
},
|
|
15
17
|
shape: {
|
|
16
18
|
type: ["square", "circle"],
|
|
17
19
|
},
|
|
@@ -54,8 +56,8 @@ export const options = {
|
|
|
54
56
|
random: true,
|
|
55
57
|
straight: false,
|
|
56
58
|
outModes: {
|
|
57
|
-
default: "
|
|
58
|
-
|
|
59
|
+
default: "destroy",
|
|
60
|
+
top: "none",
|
|
59
61
|
},
|
|
60
62
|
},
|
|
61
63
|
rotate: {
|
|
@@ -101,7 +103,6 @@ export const options = {
|
|
|
101
103
|
},
|
|
102
104
|
},
|
|
103
105
|
},
|
|
104
|
-
detectRetina: true,
|
|
105
106
|
motion: {
|
|
106
107
|
disable: true,
|
|
107
108
|
},
|
|
@@ -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-
|
|
7
|
+
* v4.0.0-beta.0
|
|
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)\n/* harmony export */ });\nconst lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;\nconst options = {\n
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;\nconst options = {\n palette: \"confetti\",\n background: {\n color: {\n value: \"\"\n }\n },\n fullScreen: {\n enable: true,\n zIndex: 100\n },\n particles: {\n number: {\n value: 0\n },\n shape: {\n type: [\n \"square\",\n \"circle\"\n ]\n },\n opacity: {\n value: {\n min: 0,\n max: 1\n },\n animation: {\n enable: true,\n speed: 0.5,\n startValue: \"max\",\n destroy: \"min\"\n }\n },\n size: {\n value: 5\n },\n links: {\n enable: false\n },\n life: {\n duration: {\n sync: true,\n value: lifeDuration\n },\n count: 1\n },\n move: {\n angle: {\n value: 45,\n offset: 0\n },\n drift: 0,\n enable: true,\n gravity: {\n enable: true,\n acceleration: 9.81\n },\n speed: 45,\n decay: 0.1,\n direction: -90,\n random: true,\n straight: false,\n outModes: {\n default: \"destroy\",\n top: \"none\"\n }\n },\n rotate: {\n value: {\n min: 0,\n max: 360\n },\n direction: \"random\",\n animation: {\n enable: true,\n speed: 60\n }\n },\n tilt: {\n direction: \"random\",\n enable: true,\n value: {\n min: 0,\n max: 360\n },\n animation: {\n enable: true,\n speed: 60\n }\n },\n roll: {\n darken: {\n enable: true,\n value: 25\n },\n enable: true,\n speed: {\n min: 15,\n max: 25\n }\n },\n wobble: {\n distance: 30,\n enable: true,\n speed: {\n min: -15,\n max: 15\n }\n }\n },\n motion: {\n disable: true\n },\n emitters: {\n name: \"confetti\",\n startCount: 50,\n position: {\n x: 50,\n y: 50\n },\n size: {\n width: 0,\n height: 0\n },\n rate: {\n delay: 0,\n quantity: 0\n },\n life: {\n duration: 0.1,\n count: 1\n }\n }\n};\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/./dist/browser/options.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
package/esm/index.js
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
const presetName = "confetti";
|
|
2
2
|
export async function loadConfettiPreset(engine) {
|
|
3
|
-
await engine.register(async (e) => {
|
|
4
|
-
const { loadBasic }
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadMotionPlugin }, { loadRotateUpdater }, { loadSquareShape }, { loadTiltUpdater }, { loadWobbleUpdater }, { loadLifeUpdater }, { loadRollUpdater }, { loadConfettiPalette }, { options },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic"),
|
|
6
|
+
import("@tsparticles/plugin-emitters/plugin"),
|
|
7
|
+
import("@tsparticles/plugin-motion"),
|
|
8
|
+
import("@tsparticles/updater-rotate"),
|
|
9
|
+
import("@tsparticles/shape-square"),
|
|
10
|
+
import("@tsparticles/updater-tilt"),
|
|
11
|
+
import("@tsparticles/updater-wobble"),
|
|
12
|
+
import("@tsparticles/updater-life"),
|
|
13
|
+
import("@tsparticles/updater-roll"),
|
|
14
|
+
import("@tsparticles/palette-confetti"),
|
|
15
|
+
import("./options.js"),
|
|
16
|
+
]);
|
|
17
|
+
await Promise.all([
|
|
18
|
+
loadBasic(e),
|
|
19
|
+
loadConfettiPalette(e),
|
|
20
|
+
loadEmittersPluginSimple(e),
|
|
21
|
+
loadSquareShape(e),
|
|
22
|
+
loadMotionPlugin(e),
|
|
23
|
+
loadWobbleUpdater(e),
|
|
24
|
+
loadRollUpdater(e),
|
|
25
|
+
loadRotateUpdater(e),
|
|
26
|
+
loadTiltUpdater(e),
|
|
27
|
+
loadLifeUpdater(e),
|
|
28
|
+
]);
|
|
29
|
+
e.pluginManager.addPreset(presetName, options, false);
|
|
15
30
|
});
|
|
16
31
|
}
|
package/esm/options.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
const lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;
|
|
2
2
|
export const options = {
|
|
3
|
+
palette: "confetti",
|
|
4
|
+
background: {
|
|
5
|
+
color: {
|
|
6
|
+
value: "",
|
|
7
|
+
},
|
|
8
|
+
},
|
|
3
9
|
fullScreen: {
|
|
4
10
|
enable: true,
|
|
5
11
|
zIndex: 100,
|
|
6
12
|
},
|
|
7
|
-
fpsLimit: 120,
|
|
8
13
|
particles: {
|
|
9
14
|
number: {
|
|
10
15
|
value: 0,
|
|
11
16
|
},
|
|
12
|
-
color: {
|
|
13
|
-
value: ["#26ccff", "#a25afd", "#ff5e7e", "#88ff5a", "#fcff42", "#ffa62d", "#ff36ff"],
|
|
14
|
-
},
|
|
15
17
|
shape: {
|
|
16
18
|
type: ["square", "circle"],
|
|
17
19
|
},
|
|
@@ -54,8 +56,8 @@ export const options = {
|
|
|
54
56
|
random: true,
|
|
55
57
|
straight: false,
|
|
56
58
|
outModes: {
|
|
57
|
-
default: "
|
|
58
|
-
|
|
59
|
+
default: "destroy",
|
|
60
|
+
top: "none",
|
|
59
61
|
},
|
|
60
62
|
},
|
|
61
63
|
rotate: {
|
|
@@ -101,7 +103,6 @@ export const options = {
|
|
|
101
103
|
},
|
|
102
104
|
},
|
|
103
105
|
},
|
|
104
|
-
detectRetina: true,
|
|
105
106
|
motion: {
|
|
106
107
|
disable: true,
|
|
107
108
|
},
|
|
@@ -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-beta.0
|
|
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_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+basic@4.0.0-beta.11/node_modules/@tsparticles/basic/browser/index.js"
|
|
21
|
+
/*!******************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+basic@4.0.0-beta.11/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-beta.11\");\n await engine.pluginManager.register(async (e) => {\n const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadPaintUpdater }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadSizeUpdater },] = await Promise.all([\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hex-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hex-color@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/plugin-hex-color/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hsl-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hsl-color@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/plugin-hsl-color/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-rgb-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-rgb-color@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/plugin-rgb-color/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-move */ \"../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/plugin-move/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/shape-circle */ \"../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/shape-circle/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-paint */ \"../../node_modules/.pnpm/@tsparticles+updater-paint@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/updater-paint/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-opacity */ \"../../node_modules/.pnpm/@tsparticles+updater-opacity@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/updater-opacity/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-out-modes */ \"../../node_modules/.pnpm/@tsparticles+updater-out-modes@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/updater-out-modes/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"../../node_modules/.pnpm/@tsparticles+updater-size@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/updater-size/browser/index.js\")),\n ]);\n await Promise.all([\n loadHexColorPlugin(e),\n loadHslColorPlugin(e),\n loadRgbColorPlugin(e),\n loadMovePlugin(e),\n loadCircleShape(e),\n loadPaintUpdater(e),\n loadOpacityUpdater(e),\n loadOutModesUpdater(e),\n loadSizeUpdater(e),\n ]);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+basic@4.0.0-beta.11/node_modules/@tsparticles/basic/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -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-beta.0
|
|
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_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_palette-confetti_4_0_0-beta_0_node_modules_tsparticles_palette--18177c"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+palette-confetti@4.0.0-beta.0/node_modules/@tsparticles/palette-confetti/browser/options.js"
|
|
21
|
+
/*!*****************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+palette-confetti@4.0.0-beta.0/node_modules/@tsparticles/palette-confetti/browser/options.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 */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst options = {\n name: \"Confetti\",\n background: \"#1a1a2e\",\n blendMode: \"source-over\",\n colors: {\n fill: {\n enable: true,\n value: [\n \"#FF0044\",\n \"#FF4400\",\n \"#FFCC00\",\n \"#00CC44\",\n \"#00AAFF\",\n \"#AA00FF\",\n \"#FF00AA\",\n \"#00FFCC\",\n \"#FF6600\",\n \"#FFFFFF\",\n ],\n },\n },\n};\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+palette-confetti@4.0.0-beta.0/node_modules/@tsparticles/palette-confetti/browser/options.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -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-beta.0
|
|
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_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_palette-confetti_4_0_0-beta_0_node_modules_tsparticles_palette--e88430"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+palette-confetti@4.0.0-beta.0/node_modules/@tsparticles/palette-confetti/browser/index.js"
|
|
21
|
+
/*!***************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+palette-confetti@4.0.0-beta.0/node_modules/@tsparticles/palette-confetti/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 */ loadConfettiPalette: () => (/* binding */ loadConfettiPalette)\n/* harmony export */ });\nconst paletteName = \"confetti\";\nasync function loadConfettiPalette(engine) {\n await engine.pluginManager.register(async (e) => {\n const { options } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_palette-confetti_4_0_0-beta_0_node_modules_tsparticles_palette--18177c\").then(__webpack_require__.bind(__webpack_require__, /*! ./options.js */ \"../../node_modules/.pnpm/@tsparticles+palette-confetti@4.0.0-beta.0/node_modules/@tsparticles/palette-confetti/browser/options.js\"));\n e.pluginManager.addPalette(paletteName, options);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+palette-confetti@4.0.0-beta.0/node_modules/@tsparticles/palette-confetti/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,100 @@
|
|
|
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-beta.0
|
|
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_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.js"
|
|
21
|
+
/*!***************************************************************************************************************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.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 */ EmittersInstancesManager: () => (/* binding */ EmittersInstancesManager)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Emitter.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js\");\n\n\nconst defaultIndex = 0;\nclass EmittersInstancesManager {\n _containerArrays;\n _pluginManager;\n constructor(pluginManager) {\n this._containerArrays = new Map();\n this._pluginManager = pluginManager;\n }\n async addEmitter(container, options, position) {\n const emitterOptions = new _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__.Emitter();\n emitterOptions.load(options);\n const { EmitterInstance } = await __webpack_require__.e(/*! import() */ \"vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmitterInstance.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmitterInstance.js\")), emitter = new EmitterInstance(this._pluginManager, container, (emitter) => {\n this.removeEmitter(container, emitter);\n }, emitterOptions, position);\n await emitter.init();\n this.getArray(container).push(emitter);\n return emitter;\n }\n clear(container) {\n this.initContainer(container);\n this._containerArrays.set(container, []);\n }\n getArray(container) {\n this.initContainer(container);\n let array = this._containerArrays.get(container);\n if (!array) {\n array = [];\n this._containerArrays.set(container, array);\n }\n return array;\n }\n initContainer(container) {\n if (this._containerArrays.has(container)) {\n return;\n }\n this._containerArrays.set(container, []);\n container.getEmitter = (idxOrName) => {\n const array = this.getArray(container);\n return idxOrName === undefined || (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(idxOrName)\n ? array[idxOrName ?? defaultIndex]\n : array.find(t => t.name === idxOrName);\n };\n container.addEmitter = async (options, position) => this.addEmitter(container, options, position);\n container.removeEmitter = (idxOrName) => {\n const emitter = container.getEmitter?.(idxOrName);\n if (emitter) {\n this.removeEmitter(container, emitter);\n }\n };\n container.playEmitter = (idxOrName) => {\n const emitter = container.getEmitter?.(idxOrName);\n if (emitter) {\n emitter.externalPlay();\n }\n };\n container.pauseEmitter = (idxOrName) => {\n const emitter = container.getEmitter?.(idxOrName);\n if (emitter) {\n emitter.externalPause();\n }\n };\n }\n removeEmitter(container, emitter) {\n const index = this.getArray(container).indexOf(emitter), minIndex = 0, deleteCount = 1;\n if (index >= minIndex) {\n this.getArray(container).splice(index, deleteCount);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js"
|
|
31
|
+
/*!**************************************************************************************************************************************************************************************************************************************!*\
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js ***!
|
|
33
|
+
\**************************************************************************************************************************************************************************************************************************************/
|
|
34
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
+
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Emitter: () => (/* binding */ Emitter)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _EmitterLife_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EmitterLife.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js\");\n/* harmony import */ var _EmitterRate_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EmitterRate.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js\");\n/* harmony import */ var _EmitterShape_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmitterShape.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js\");\n/* harmony import */ var _EmitterSize_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EmitterSize.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js\");\n/* harmony import */ var _EmitterSpawn_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./EmitterSpawn.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js\");\n\n\n\n\n\n\nclass Emitter {\n autoPlay;\n direction;\n domId;\n fill;\n life;\n name;\n particles;\n position;\n rate;\n shape;\n size;\n spawn;\n spawnFillColor;\n spawnStrokeColor;\n startCount;\n constructor() {\n this.autoPlay = true;\n this.fill = true;\n this.life = new _EmitterLife_js__WEBPACK_IMPORTED_MODULE_1__.EmitterLife();\n this.rate = new _EmitterRate_js__WEBPACK_IMPORTED_MODULE_2__.EmitterRate();\n this.shape = new _EmitterShape_js__WEBPACK_IMPORTED_MODULE_3__.EmitterShape();\n this.spawn = new _EmitterSpawn_js__WEBPACK_IMPORTED_MODULE_5__.EmitterSpawn();\n this.startCount = 0;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.autoPlay !== undefined) {\n this.autoPlay = data.autoPlay;\n }\n if (data.size !== undefined) {\n this.size ??= new _EmitterSize_js__WEBPACK_IMPORTED_MODULE_4__.EmitterSize();\n this.size.load(data.size);\n }\n if (data.direction !== undefined) {\n this.direction = data.direction;\n }\n this.domId = data.domId;\n if (data.fill !== undefined) {\n this.fill = data.fill;\n }\n this.life.load(data.life);\n this.name = data.name;\n this.particles = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(data.particles, particles => {\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, particles);\n });\n this.rate.load(data.rate);\n this.shape.load(data.shape);\n this.spawn.load(data.spawn);\n if (data.position !== undefined) {\n this.position = {};\n if (data.position.x !== undefined) {\n this.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.position.x);\n }\n if (data.position.y !== undefined) {\n this.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.position.y);\n }\n }\n if (data.spawnFillColor !== undefined) {\n this.spawnFillColor ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor();\n this.spawnFillColor.load(data.spawnFillColor);\n }\n if (data.spawnStrokeColor !== undefined) {\n this.spawnStrokeColor ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor();\n this.spawnStrokeColor.load(data.spawnStrokeColor);\n }\n if (data.startCount !== undefined) {\n this.startCount = data.startCount;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js"
|
|
41
|
+
/*!******************************************************************************************************************************************************************************************************************************************!*\
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js ***!
|
|
43
|
+
\******************************************************************************************************************************************************************************************************************************************/
|
|
44
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
|
+
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterLife: () => (/* binding */ EmitterLife)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterLife {\n count;\n delay;\n duration;\n wait;\n constructor() {\n this.wait = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n if (data.delay !== undefined) {\n this.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.delay);\n }\n if (data.duration !== undefined) {\n this.duration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.duration);\n }\n if (data.wait !== undefined) {\n this.wait = data.wait;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ },
|
|
49
|
+
|
|
50
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js"
|
|
51
|
+
/*!******************************************************************************************************************************************************************************************************************************************!*\
|
|
52
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js ***!
|
|
53
|
+
\******************************************************************************************************************************************************************************************************************************************/
|
|
54
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
55
|
+
|
|
56
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterRate: () => (/* binding */ EmitterRate)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterRate {\n delay;\n quantity;\n constructor() {\n this.quantity = 1;\n this.delay = 0.1;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.quantity !== undefined) {\n this.quantity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.quantity);\n }\n if (data.delay !== undefined) {\n this.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.delay);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js?\n}");
|
|
57
|
+
|
|
58
|
+
/***/ },
|
|
59
|
+
|
|
60
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js"
|
|
61
|
+
/*!*******************************************************************************************************************************************************************************************************************************************!*\
|
|
62
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js ***!
|
|
63
|
+
\*******************************************************************************************************************************************************************************************************************************************/
|
|
64
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
65
|
+
|
|
66
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShape: () => (/* binding */ EmitterShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _EmitterShapeReplace_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EmitterShapeReplace.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js\");\n\n\nclass EmitterShape {\n options;\n replace;\n type;\n constructor() {\n this.options = {};\n this.replace = new _EmitterShapeReplace_js__WEBPACK_IMPORTED_MODULE_1__.EmitterShapeReplace();\n this.type = \"square\";\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.options !== undefined) {\n this.options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, data.options ?? {});\n }\n this.replace.load(data.replace);\n if (data.type !== undefined) {\n this.type = data.type;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js?\n}");
|
|
67
|
+
|
|
68
|
+
/***/ },
|
|
69
|
+
|
|
70
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js"
|
|
71
|
+
/*!**************************************************************************************************************************************************************************************************************************************************!*\
|
|
72
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js ***!
|
|
73
|
+
\**************************************************************************************************************************************************************************************************************************************************/
|
|
74
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
75
|
+
|
|
76
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeReplace: () => (/* binding */ EmitterShapeReplace)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterShapeReplace {\n color;\n opacity;\n constructor() {\n this.color = false;\n this.opacity = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.color !== undefined) {\n this.color = data.color;\n }\n if (data.opacity !== undefined) {\n this.opacity = data.opacity;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js?\n}");
|
|
77
|
+
|
|
78
|
+
/***/ },
|
|
79
|
+
|
|
80
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js"
|
|
81
|
+
/*!******************************************************************************************************************************************************************************************************************************************!*\
|
|
82
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js ***!
|
|
83
|
+
\******************************************************************************************************************************************************************************************************************************************/
|
|
84
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
85
|
+
|
|
86
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterSize: () => (/* binding */ EmitterSize)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterSize {\n height;\n mode;\n width;\n constructor() {\n this.mode = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.PixelMode.percent;\n this.height = 0;\n this.width = 0;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.mode !== undefined) {\n this.mode = data.mode;\n }\n if (data.height !== undefined) {\n this.height = data.height;\n }\n if (data.width !== undefined) {\n this.width = data.width;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js?\n}");
|
|
87
|
+
|
|
88
|
+
/***/ },
|
|
89
|
+
|
|
90
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js"
|
|
91
|
+
/*!*******************************************************************************************************************************************************************************************************************************************!*\
|
|
92
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js ***!
|
|
93
|
+
\*******************************************************************************************************************************************************************************************************************************************/
|
|
94
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95
|
+
|
|
96
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterSpawn: () => (/* binding */ EmitterSpawn)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-beta.11/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmitterSpawn {\n fill;\n stroke;\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.fill) {\n this.fill ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Fill();\n this.fill.load(data.fill);\n }\n if (data.stroke) {\n this.stroke ??= new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Stroke();\n this.stroke.load(data.stroke);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSpawn.js?\n}");
|
|
97
|
+
|
|
98
|
+
/***/ }
|
|
99
|
+
|
|
100
|
+
}]);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Author : Matteo Bruni
|
|
3
|
+
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
+
* Demo / Generator : https://particles.js.org/
|
|
5
|
+
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
+
* How to use? : Check the GitHub README
|
|
7
|
+
* v4.0.0-beta.0
|
|
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_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js"
|
|
21
|
+
/*!*******************************************************************************************************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.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 */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n fill;\n options;\n position;\n size;\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-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js"
|
|
31
|
+
/*!*************************************************************************************************************************************************************************************************************************************!*\
|
|
32
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.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 */ 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-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/plugin.js"
|
|
41
|
+
/*!*********************************************************************************************************************************************************************************************************************!*\
|
|
42
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/plugin.js ***!
|
|
43
|
+
\*********************************************************************************************************************************************************************************************************************/
|
|
44
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
|
+
|
|
46
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ 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 */ loadEmittersPluginSimple: () => (/* binding */ loadEmittersPluginSimple)\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-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/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-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js\");\nasync function loadEmittersPluginSimple(engine) {\n engine.checkVersion(\"4.0.0-beta.11\");\n await engine.pluginManager.register(async (e) => {\n const [{ addEmittersShapesManager }, { getEmittersInstancesManager }, { EmittersPlugin },] = await Promise.all([\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a\").then(__webpack_require__.bind(__webpack_require__, /*! ./addEmittersShapesManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/addEmittersShapesManager.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa\").then(__webpack_require__.bind(__webpack_require__, /*! ./getEmittersInstancesManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/getEmittersInstancesManager.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/EmittersPlugin.js\")),\n ]), instancesManager = await getEmittersInstancesManager(e);\n await addEmittersShapesManager(e);\n e.pluginManager.addPlugin(new EmittersPlugin(instancesManager));\n });\n}\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.11_@tsparticles+engine@4.0.0-beta.11_@tsparticl_911613e440bd8bdfdd857402e6017d72/node_modules/@tsparticles/plugin-emitters/browser/plugin.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ }
|
|
49
|
+
|
|
50
|
+
}]);
|