@tsparticles/preset-confetti-explosions 4.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/107.min.js +1 -0
- package/126.min.js +1 -0
- package/158.min.js +1 -0
- package/17.min.js +1 -0
- package/182.min.js +1 -0
- package/204.min.js +1 -0
- package/231.min.js +1 -0
- package/254.min.js +1 -0
- package/270.min.js +1 -0
- package/278.min.js +1 -0
- package/28.min.js +1 -0
- package/3.min.js +1 -0
- package/302.min.js +1 -0
- package/316.min.js +1 -0
- package/337.min.js +1 -0
- package/356.min.js +1 -0
- package/382.min.js +1 -0
- package/406.min.js +1 -0
- package/430.min.js +1 -0
- package/47.min.js +1 -0
- package/470.min.js +1 -0
- package/508.min.js +1 -0
- package/523.min.js +1 -0
- package/530.min.js +1 -0
- package/558.min.js +1 -0
- package/596.min.js +1 -0
- package/6.min.js +1 -0
- package/608.min.js +1 -0
- package/637.min.js +1 -0
- package/646.min.js +1 -0
- package/676.min.js +1 -0
- package/691.min.js +1 -0
- package/694.min.js +1 -0
- package/730.min.js +1 -0
- package/731.min.js +1 -0
- package/740.min.js +1 -0
- package/754.min.js +1 -0
- package/819.min.js +1 -0
- package/830.min.js +1 -0
- package/834.min.js +1 -0
- package/844.min.js +1 -0
- package/85.min.js +1 -0
- package/878.min.js +1 -0
- package/922.min.js +1 -0
- package/930.min.js +1 -0
- package/952.min.js +1 -0
- package/964.min.js +1 -0
- package/LICENSE +21 -0
- package/README.md +104 -0
- package/browser/bundle.js +2 -0
- package/browser/index.js +35 -0
- package/browser/options.js +129 -0
- package/browser/package.json +1 -0
- package/cjs/bundle.js +2 -0
- package/cjs/index.js +35 -0
- package/cjs/options.js +129 -0
- package/cjs/package.json +1 -0
- package/dist_browser_options_js.js +30 -0
- package/esm/bundle.js +2 -0
- package/esm/index.js +35 -0
- package/esm/options.js +129 -0
- package/esm/package.json +1 -0
- package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_1_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-486a11.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-815c1c.js +100 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-9a4af1.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-c7125a.js +100 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-e8ed4a.js +50 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-8932d7.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-a0aea9.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-1179c3.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-1737bf.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tsparticles_plug-908f96.js +120 -0
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tsparticles_plug-d6e6b1.js +70 -0
- package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-beta_1_node_modules_tsparticles_plugin-moti-0ff566.js +50 -0
- package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-beta_1_node_modules_tsparticles_plugin-moti-861f30.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-beta_1_node_modules_tsparticles_plugin-moti-899da2.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugin-move_b-aa7108.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugin-move_b-c23e73.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_1_node_modules_tsparticles_plugin-r-0f881a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_1_node_modules_tsparticles_plugin-r-ae3d6b.js +30 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_1_node_modules_tsparticles_shape-circle-07826a.js +40 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_1_node_modules_tsparticles_shape-circle-c2187f.js +30 -0
- package/node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_1_node_modules_tsparticles_shape-square-53c1de.js +40 -0
- package/node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_1_node_modules_tsparticles_shape-square-c4fdaa.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-fill-color_4_0_0-beta_1_node_modules_tsparticles_update-75868d.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-fill-color_4_0_0-beta_1_node_modules_tsparticles_update-7cca03.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_1_node_modules_tsparticles_updater-o-138fb5.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_1_node_modules_tsparticles_updater-o-8a311f.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_1_node_modules_tsparticles_updater-265a6a.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-roll_4_0_0-beta_1_node_modules_tsparticles_updater-roll-17906d.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-roll_4_0_0-beta_1_node_modules_tsparticles_updater-roll-2ae6b1.js +70 -0
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_1_node_modules_tsparticles_updater-ro-82c0df.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_1_node_modules_tsparticles_updater-ro-f03001.js +50 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_1_node_modules_tsparticles_updater-size-124f3f.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_1_node_modules_tsparticles_updater-size-cbf46f.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-tilt_4_0_0-beta_1_node_modules_tsparticles_updater-tilt-4d0524.js +60 -0
- package/node_modules_pnpm_tsparticles_updater-tilt_4_0_0-beta_1_node_modules_tsparticles_updater-tilt-e66f0d.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-wobble_4_0_0-beta_1_node_modules_tsparticles_updater-wo-30a54c.js +60 -0
- package/node_modules_pnpm_tsparticles_updater-wobble_4_0_0-beta_1_node_modules_tsparticles_updater-wo-e6d8f0.js +30 -0
- package/package.json +118 -0
- package/palettes_confetti_dist_browser_index_js.js +30 -0
- package/palettes_confetti_dist_browser_options_js.js +30 -0
- package/report.html +95 -0
- package/tsparticles.preset.confettiExplosions.bundle.js +957 -0
- package/tsparticles.preset.confettiExplosions.bundle.min.js +2 -0
- package/tsparticles.preset.confettiExplosions.js +437 -0
- package/tsparticles.preset.confettiExplosions.min.js +2 -0
- package/types/bundle.d.ts +2 -0
- package/types/index.d.ts +2 -0
- package/types/options.d.ts +2 -0
- package/umd/bundle.js +17 -0
- package/umd/index.js +82 -0
- package/umd/options.js +142 -0
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_1_node_modules_tsparticles_engine_bro-0bb20b.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_p-168eb1.js +30 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_p-c5a6f7.js +210 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tspartic-d557a0.js +50 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugi-2dea06.js +40 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_1_node_modules_tsparticles-a5ec2f.js +80 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export const options = {
|
|
2
|
+
palette: "confetti",
|
|
3
|
+
background: {
|
|
4
|
+
color: {
|
|
5
|
+
value: "",
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
fullScreen: {
|
|
9
|
+
enable: true,
|
|
10
|
+
zIndex: 100,
|
|
11
|
+
},
|
|
12
|
+
particles: {
|
|
13
|
+
number: {
|
|
14
|
+
value: 0,
|
|
15
|
+
density: {
|
|
16
|
+
enable: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
shape: {
|
|
20
|
+
type: ["square", "circle"],
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
value: {
|
|
24
|
+
min: 3,
|
|
25
|
+
max: 5,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
opacity: {
|
|
29
|
+
value: { min: 0, max: 1 },
|
|
30
|
+
animation: {
|
|
31
|
+
enable: true,
|
|
32
|
+
startValue: "max",
|
|
33
|
+
destroy: "min",
|
|
34
|
+
speed: 3,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
move: {
|
|
38
|
+
angle: {
|
|
39
|
+
value: 45,
|
|
40
|
+
offset: 0,
|
|
41
|
+
},
|
|
42
|
+
drift: 0,
|
|
43
|
+
enable: true,
|
|
44
|
+
gravity: {
|
|
45
|
+
enable: true,
|
|
46
|
+
acceleration: 9.81,
|
|
47
|
+
},
|
|
48
|
+
speed: {
|
|
49
|
+
min: 15,
|
|
50
|
+
max: 25,
|
|
51
|
+
},
|
|
52
|
+
decay: 0.1,
|
|
53
|
+
random: true,
|
|
54
|
+
straight: false,
|
|
55
|
+
outModes: {
|
|
56
|
+
default: "destroy",
|
|
57
|
+
top: "none",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
rotate: {
|
|
61
|
+
value: {
|
|
62
|
+
min: 0,
|
|
63
|
+
max: 360,
|
|
64
|
+
},
|
|
65
|
+
direction: "random",
|
|
66
|
+
move: true,
|
|
67
|
+
animation: {
|
|
68
|
+
enable: true,
|
|
69
|
+
speed: 60,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
tilt: {
|
|
73
|
+
direction: "random",
|
|
74
|
+
enable: true,
|
|
75
|
+
value: {
|
|
76
|
+
min: 0,
|
|
77
|
+
max: 360,
|
|
78
|
+
},
|
|
79
|
+
animation: {
|
|
80
|
+
enable: true,
|
|
81
|
+
speed: 60,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
roll: {
|
|
85
|
+
darken: {
|
|
86
|
+
enable: true,
|
|
87
|
+
value: 30,
|
|
88
|
+
},
|
|
89
|
+
enlighten: {
|
|
90
|
+
enable: true,
|
|
91
|
+
value: 30,
|
|
92
|
+
},
|
|
93
|
+
enable: true,
|
|
94
|
+
mode: "both",
|
|
95
|
+
speed: {
|
|
96
|
+
min: 15,
|
|
97
|
+
max: 25,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
wobble: {
|
|
101
|
+
distance: 30,
|
|
102
|
+
enable: true,
|
|
103
|
+
move: true,
|
|
104
|
+
speed: {
|
|
105
|
+
min: -15,
|
|
106
|
+
max: 15,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
emitters: {
|
|
111
|
+
name: "confetti",
|
|
112
|
+
size: {
|
|
113
|
+
width: 0,
|
|
114
|
+
height: 0,
|
|
115
|
+
},
|
|
116
|
+
rate: {
|
|
117
|
+
delay: 0,
|
|
118
|
+
quantity: 50,
|
|
119
|
+
},
|
|
120
|
+
life: {
|
|
121
|
+
count: 0,
|
|
122
|
+
duration: 0.1,
|
|
123
|
+
delay: 0.4,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
motion: {
|
|
127
|
+
disable: true,
|
|
128
|
+
},
|
|
129
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/cjs/bundle.js
ADDED
package/cjs/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const presetNames = ["confettiExplosions", "confett-explosions"];
|
|
2
|
+
export async function loadConfettiExplosionsPreset(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPlugin }, { loadInteractivityPlugin }, { loadMotionPlugin }, { loadRotateUpdater }, { loadSquareShape }, { loadTiltUpdater }, { loadWobbleUpdater }, { loadRollUpdater }, { loadConfettiPalette }, { options },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic"),
|
|
6
|
+
import("@tsparticles/plugin-emitters"),
|
|
7
|
+
import("@tsparticles/plugin-interactivity"),
|
|
8
|
+
import("@tsparticles/plugin-motion"),
|
|
9
|
+
import("@tsparticles/updater-rotate"),
|
|
10
|
+
import("@tsparticles/shape-square"),
|
|
11
|
+
import("@tsparticles/updater-tilt"),
|
|
12
|
+
import("@tsparticles/updater-wobble"),
|
|
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
|
+
(async () => {
|
|
21
|
+
await loadInteractivityPlugin(e);
|
|
22
|
+
await loadEmittersPlugin(e);
|
|
23
|
+
})(),
|
|
24
|
+
loadSquareShape(e),
|
|
25
|
+
loadMotionPlugin(e),
|
|
26
|
+
loadWobbleUpdater(e),
|
|
27
|
+
loadRollUpdater(e),
|
|
28
|
+
loadRotateUpdater(e),
|
|
29
|
+
loadTiltUpdater(e),
|
|
30
|
+
]);
|
|
31
|
+
presetNames.forEach(name => {
|
|
32
|
+
e.pluginManager.addPreset(name, options, false);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
package/cjs/options.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export const options = {
|
|
2
|
+
palette: "confetti",
|
|
3
|
+
background: {
|
|
4
|
+
color: {
|
|
5
|
+
value: "",
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
fullScreen: {
|
|
9
|
+
enable: true,
|
|
10
|
+
zIndex: 100,
|
|
11
|
+
},
|
|
12
|
+
particles: {
|
|
13
|
+
number: {
|
|
14
|
+
value: 0,
|
|
15
|
+
density: {
|
|
16
|
+
enable: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
shape: {
|
|
20
|
+
type: ["square", "circle"],
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
value: {
|
|
24
|
+
min: 3,
|
|
25
|
+
max: 5,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
opacity: {
|
|
29
|
+
value: { min: 0, max: 1 },
|
|
30
|
+
animation: {
|
|
31
|
+
enable: true,
|
|
32
|
+
startValue: "max",
|
|
33
|
+
destroy: "min",
|
|
34
|
+
speed: 3,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
move: {
|
|
38
|
+
angle: {
|
|
39
|
+
value: 45,
|
|
40
|
+
offset: 0,
|
|
41
|
+
},
|
|
42
|
+
drift: 0,
|
|
43
|
+
enable: true,
|
|
44
|
+
gravity: {
|
|
45
|
+
enable: true,
|
|
46
|
+
acceleration: 9.81,
|
|
47
|
+
},
|
|
48
|
+
speed: {
|
|
49
|
+
min: 15,
|
|
50
|
+
max: 25,
|
|
51
|
+
},
|
|
52
|
+
decay: 0.1,
|
|
53
|
+
random: true,
|
|
54
|
+
straight: false,
|
|
55
|
+
outModes: {
|
|
56
|
+
default: "destroy",
|
|
57
|
+
top: "none",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
rotate: {
|
|
61
|
+
value: {
|
|
62
|
+
min: 0,
|
|
63
|
+
max: 360,
|
|
64
|
+
},
|
|
65
|
+
direction: "random",
|
|
66
|
+
move: true,
|
|
67
|
+
animation: {
|
|
68
|
+
enable: true,
|
|
69
|
+
speed: 60,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
tilt: {
|
|
73
|
+
direction: "random",
|
|
74
|
+
enable: true,
|
|
75
|
+
value: {
|
|
76
|
+
min: 0,
|
|
77
|
+
max: 360,
|
|
78
|
+
},
|
|
79
|
+
animation: {
|
|
80
|
+
enable: true,
|
|
81
|
+
speed: 60,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
roll: {
|
|
85
|
+
darken: {
|
|
86
|
+
enable: true,
|
|
87
|
+
value: 30,
|
|
88
|
+
},
|
|
89
|
+
enlighten: {
|
|
90
|
+
enable: true,
|
|
91
|
+
value: 30,
|
|
92
|
+
},
|
|
93
|
+
enable: true,
|
|
94
|
+
mode: "both",
|
|
95
|
+
speed: {
|
|
96
|
+
min: 15,
|
|
97
|
+
max: 25,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
wobble: {
|
|
101
|
+
distance: 30,
|
|
102
|
+
enable: true,
|
|
103
|
+
move: true,
|
|
104
|
+
speed: {
|
|
105
|
+
min: -15,
|
|
106
|
+
max: 15,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
emitters: {
|
|
111
|
+
name: "confetti",
|
|
112
|
+
size: {
|
|
113
|
+
width: 0,
|
|
114
|
+
height: 0,
|
|
115
|
+
},
|
|
116
|
+
rate: {
|
|
117
|
+
delay: 0,
|
|
118
|
+
quantity: 50,
|
|
119
|
+
},
|
|
120
|
+
life: {
|
|
121
|
+
count: 0,
|
|
122
|
+
duration: 0.1,
|
|
123
|
+
delay: 0.4,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
motion: {
|
|
127
|
+
disable: true,
|
|
128
|
+
},
|
|
129
|
+
};
|
package/cjs/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Author : Matteo Bruni
|
|
3
|
+
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
+
* Demo / Generator : https://particles.js.org/
|
|
5
|
+
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
+
* How to use? : Check the GitHub README
|
|
7
|
+
* v4.0.0-alpha.5
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_confetti_explosions"] = this["webpackChunk_tsparticles_preset_confetti_explosions"] || []).push([["dist_browser_options_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "./dist/browser/options.js"
|
|
21
|
+
/*!*********************************!*\
|
|
22
|
+
!*** ./dist/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 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 density: {\n enable: true\n }\n },\n shape: {\n type: [\n \"square\",\n \"circle\"\n ]\n },\n size: {\n value: {\n min: 3,\n max: 5\n }\n },\n opacity: {\n value: {\n min: 0,\n max: 1\n },\n animation: {\n enable: true,\n startValue: \"max\",\n destroy: \"min\",\n speed: 3\n }\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: {\n min: 15,\n max: 25\n },\n decay: 0.1,\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 move: true,\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: 30\n },\n enlighten: {\n enable: true,\n value: 30\n },\n enable: true,\n mode: \"both\",\n speed: {\n min: 15,\n max: 25\n }\n },\n wobble: {\n distance: 30,\n enable: true,\n move: true,\n speed: {\n min: -15,\n max: 15\n }\n }\n },\n emitters: {\n name: \"confetti\",\n size: {\n width: 0,\n height: 0\n },\n rate: {\n delay: 0,\n quantity: 50\n },\n life: {\n count: 0,\n duration: 0.1,\n delay: 0.4\n }\n },\n motion: {\n disable: true\n }\n};\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti-explosions/./dist/browser/options.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
package/esm/bundle.js
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const presetNames = ["confettiExplosions", "confett-explosions"];
|
|
2
|
+
export async function loadConfettiExplosionsPreset(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPlugin }, { loadInteractivityPlugin }, { loadMotionPlugin }, { loadRotateUpdater }, { loadSquareShape }, { loadTiltUpdater }, { loadWobbleUpdater }, { loadRollUpdater }, { loadConfettiPalette }, { options },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic"),
|
|
6
|
+
import("@tsparticles/plugin-emitters"),
|
|
7
|
+
import("@tsparticles/plugin-interactivity"),
|
|
8
|
+
import("@tsparticles/plugin-motion"),
|
|
9
|
+
import("@tsparticles/updater-rotate"),
|
|
10
|
+
import("@tsparticles/shape-square"),
|
|
11
|
+
import("@tsparticles/updater-tilt"),
|
|
12
|
+
import("@tsparticles/updater-wobble"),
|
|
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
|
+
(async () => {
|
|
21
|
+
await loadInteractivityPlugin(e);
|
|
22
|
+
await loadEmittersPlugin(e);
|
|
23
|
+
})(),
|
|
24
|
+
loadSquareShape(e),
|
|
25
|
+
loadMotionPlugin(e),
|
|
26
|
+
loadWobbleUpdater(e),
|
|
27
|
+
loadRollUpdater(e),
|
|
28
|
+
loadRotateUpdater(e),
|
|
29
|
+
loadTiltUpdater(e),
|
|
30
|
+
]);
|
|
31
|
+
presetNames.forEach(name => {
|
|
32
|
+
e.pluginManager.addPreset(name, options, false);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
package/esm/options.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export const options = {
|
|
2
|
+
palette: "confetti",
|
|
3
|
+
background: {
|
|
4
|
+
color: {
|
|
5
|
+
value: "",
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
fullScreen: {
|
|
9
|
+
enable: true,
|
|
10
|
+
zIndex: 100,
|
|
11
|
+
},
|
|
12
|
+
particles: {
|
|
13
|
+
number: {
|
|
14
|
+
value: 0,
|
|
15
|
+
density: {
|
|
16
|
+
enable: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
shape: {
|
|
20
|
+
type: ["square", "circle"],
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
value: {
|
|
24
|
+
min: 3,
|
|
25
|
+
max: 5,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
opacity: {
|
|
29
|
+
value: { min: 0, max: 1 },
|
|
30
|
+
animation: {
|
|
31
|
+
enable: true,
|
|
32
|
+
startValue: "max",
|
|
33
|
+
destroy: "min",
|
|
34
|
+
speed: 3,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
move: {
|
|
38
|
+
angle: {
|
|
39
|
+
value: 45,
|
|
40
|
+
offset: 0,
|
|
41
|
+
},
|
|
42
|
+
drift: 0,
|
|
43
|
+
enable: true,
|
|
44
|
+
gravity: {
|
|
45
|
+
enable: true,
|
|
46
|
+
acceleration: 9.81,
|
|
47
|
+
},
|
|
48
|
+
speed: {
|
|
49
|
+
min: 15,
|
|
50
|
+
max: 25,
|
|
51
|
+
},
|
|
52
|
+
decay: 0.1,
|
|
53
|
+
random: true,
|
|
54
|
+
straight: false,
|
|
55
|
+
outModes: {
|
|
56
|
+
default: "destroy",
|
|
57
|
+
top: "none",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
rotate: {
|
|
61
|
+
value: {
|
|
62
|
+
min: 0,
|
|
63
|
+
max: 360,
|
|
64
|
+
},
|
|
65
|
+
direction: "random",
|
|
66
|
+
move: true,
|
|
67
|
+
animation: {
|
|
68
|
+
enable: true,
|
|
69
|
+
speed: 60,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
tilt: {
|
|
73
|
+
direction: "random",
|
|
74
|
+
enable: true,
|
|
75
|
+
value: {
|
|
76
|
+
min: 0,
|
|
77
|
+
max: 360,
|
|
78
|
+
},
|
|
79
|
+
animation: {
|
|
80
|
+
enable: true,
|
|
81
|
+
speed: 60,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
roll: {
|
|
85
|
+
darken: {
|
|
86
|
+
enable: true,
|
|
87
|
+
value: 30,
|
|
88
|
+
},
|
|
89
|
+
enlighten: {
|
|
90
|
+
enable: true,
|
|
91
|
+
value: 30,
|
|
92
|
+
},
|
|
93
|
+
enable: true,
|
|
94
|
+
mode: "both",
|
|
95
|
+
speed: {
|
|
96
|
+
min: 15,
|
|
97
|
+
max: 25,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
wobble: {
|
|
101
|
+
distance: 30,
|
|
102
|
+
enable: true,
|
|
103
|
+
move: true,
|
|
104
|
+
speed: {
|
|
105
|
+
min: -15,
|
|
106
|
+
max: 15,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
emitters: {
|
|
111
|
+
name: "confetti",
|
|
112
|
+
size: {
|
|
113
|
+
width: 0,
|
|
114
|
+
height: 0,
|
|
115
|
+
},
|
|
116
|
+
rate: {
|
|
117
|
+
delay: 0,
|
|
118
|
+
quantity: 50,
|
|
119
|
+
},
|
|
120
|
+
life: {
|
|
121
|
+
count: 0,
|
|
122
|
+
duration: 0.1,
|
|
123
|
+
delay: 0.4,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
motion: {
|
|
127
|
+
disable: true,
|
|
128
|
+
},
|
|
129
|
+
};
|
package/esm/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Author : Matteo Bruni
|
|
3
|
+
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
+
* Demo / Generator : https://particles.js.org/
|
|
5
|
+
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
+
* How to use? : Check the GitHub README
|
|
7
|
+
* v4.0.0-alpha.5
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_confetti_explosions"] = this["webpackChunk_tsparticles_preset_confetti_explosions"] || []).push([["node_modules_pnpm_tsparticles_basic_4_0_0-beta_1_node_modules_tsparticles_basic_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+basic@4.0.0-beta.1/node_modules/@tsparticles/basic/browser/index.js"
|
|
21
|
+
/*!*****************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+basic@4.0.0-beta.1/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.1\");\n await engine.pluginManager.register(async (e) => {\n const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadFillColorUpdater }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadSizeUpdater },] = await Promise.all([\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-8932d7\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hex-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hex-color@4.0.0-beta.1/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_1_node_modules_tsparticles_plugin-h-1737bf\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hsl-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hsl-color@4.0.0-beta.1/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_1_node_modules_tsparticles_plugin-r-ae3d6b\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-rgb-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-rgb-color@4.0.0-beta.1/node_modules/@tsparticles/plugin-rgb-color/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugin-move_b-aa7108\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-move */ \"../../node_modules/.pnpm/@tsparticles+plugin-move@4.0.0-beta.1/node_modules/@tsparticles/plugin-move/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_1_node_modules_tsparticles_shape-circle-c2187f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/shape-circle */ \"../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-beta.1/node_modules/@tsparticles/shape-circle/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-fill-color_4_0_0-beta_1_node_modules_tsparticles_update-7cca03\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-fill-color */ \"../../node_modules/.pnpm/@tsparticles+updater-fill-color@4.0.0-beta.1/node_modules/@tsparticles/updater-fill-color/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_1_node_modules_tsparticles_updater-o-8a311f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-opacity */ \"../../node_modules/.pnpm/@tsparticles+updater-opacity@4.0.0-beta.1/node_modules/@tsparticles/updater-opacity/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_1_node_modules_tsparticles_updater-265a6a\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-out-modes */ \"../../node_modules/.pnpm/@tsparticles+updater-out-modes@4.0.0-beta.1/node_modules/@tsparticles/updater-out-modes/browser/index.js\")),\n __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_1_node_modules_tsparticles_updater-size-124f3f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"../../node_modules/.pnpm/@tsparticles+updater-size@4.0.0-beta.1/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 loadFillColorUpdater(e),\n loadOpacityUpdater(e),\n loadOutModesUpdater(e),\n loadSizeUpdater(e),\n ]);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti-explosions/../../node_modules/.pnpm/@tsparticles+basic@4.0.0-beta.1/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-alpha.5
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_preset_confetti_explosions"] = this["webpackChunk_tsparticles_preset_confetti_explosions"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-486a11"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js"
|
|
21
|
+
/*!********************************************************************************************************************************************!*\
|
|
22
|
+
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.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 */ ShapeManager: () => (/* binding */ ShapeManager)\n/* harmony export */ });\nconst shapeGenerators = new Map();\nclass ShapeManager {\n addShapeGenerator(name, generator) {\n if (!this.getShapeGenerator(name)) {\n shapeGenerators.set(name, generator);\n }\n }\n getShapeGenerator(name) {\n return shapeGenerators.get(name);\n }\n getSupportedShapeGenerators() {\n return shapeGenerators.keys();\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti-explosions/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-beta.1/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|