@tsparticles/configs 4.0.0-beta.11 → 4.0.0-beta.15

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.
Files changed (55) hide show
  1. package/browser/browser.js +3 -0
  2. package/browser/bundle.js +2 -0
  3. package/browser/c/chars.js +3 -0
  4. package/browser/c/confettiExplosions.js +151 -0
  5. package/browser/c/index.js +2 -0
  6. package/browser/d/destroyExplode.js +68 -0
  7. package/browser/d/index.js +2 -0
  8. package/browser/f/fireworks.js +3 -0
  9. package/browser/f/fireworks3.js +3 -0
  10. package/browser/index.lazy.js +71 -0
  11. package/browser/m/index.js +4 -0
  12. package/browser/m/mouseDestroy.js +61 -0
  13. package/browser/m/mouseDestroyExplode.js +84 -0
  14. package/cjs/browser.js +3 -0
  15. package/cjs/bundle.js +2 -0
  16. package/cjs/c/chars.js +3 -0
  17. package/cjs/c/confettiExplosions.js +151 -0
  18. package/cjs/c/index.js +2 -0
  19. package/cjs/d/destroyExplode.js +68 -0
  20. package/cjs/d/index.js +2 -0
  21. package/cjs/f/fireworks.js +3 -0
  22. package/cjs/f/fireworks3.js +3 -0
  23. package/cjs/index.lazy.js +71 -0
  24. package/cjs/m/index.js +4 -0
  25. package/cjs/m/mouseDestroy.js +61 -0
  26. package/cjs/m/mouseDestroyExplode.js +84 -0
  27. package/esm/browser.js +3 -0
  28. package/esm/bundle.js +2 -0
  29. package/esm/c/chars.js +3 -0
  30. package/esm/c/confettiExplosions.js +151 -0
  31. package/esm/c/index.js +2 -0
  32. package/esm/d/destroyExplode.js +68 -0
  33. package/esm/d/index.js +2 -0
  34. package/esm/f/fireworks.js +3 -0
  35. package/esm/f/fireworks3.js +3 -0
  36. package/esm/index.lazy.js +71 -0
  37. package/esm/m/index.js +4 -0
  38. package/esm/m/mouseDestroy.js +61 -0
  39. package/esm/m/mouseDestroyExplode.js +84 -0
  40. package/package.json +9 -2
  41. package/report.html +4949 -94
  42. package/tsparticles.configs.js +18694 -2272
  43. package/tsparticles.configs.min.js +1 -8
  44. package/types/browser.d.ts +1 -0
  45. package/types/c/confettiExplosions.d.ts +3 -0
  46. package/types/c/index.d.ts +1 -0
  47. package/types/d/destroyExplode.d.ts +3 -0
  48. package/types/d/index.d.ts +1 -0
  49. package/types/index.d.ts +4 -0
  50. package/types/index.lazy.d.ts +194 -0
  51. package/types/m/index.d.ts +2 -0
  52. package/types/m/mouseDestroy.d.ts +3 -0
  53. package/types/m/mouseDestroyExplode.d.ts +3 -0
  54. package/tsparticles.configs.bundle.js +0 -69
  55. package/tsparticles.configs.bundle.min.js +0 -1
package/cjs/c/index.js CHANGED
@@ -7,6 +7,7 @@ import collisionsAbsorb from "./collisionsAbsorb.js";
7
7
  import collisionsBounce from "./collisionsBounce.js";
8
8
  import collisionsDestroy from "./collisionsDestroy.js";
9
9
  import colorAnimation from "./colorAnimation.js";
10
+ import confettiExplosions from "./confettiExplosions.js";
10
11
  import connect from "./connect.js";
11
12
  import curlNoise from "./curlNoise.js";
12
13
  export default {
@@ -19,6 +20,7 @@ export default {
19
20
  collisionsBounce,
20
21
  collisionsDestroy,
21
22
  colorAnimation,
23
+ confettiExplosions,
22
24
  connect,
23
25
  curlNoise,
24
26
  };
@@ -0,0 +1,68 @@
1
+ const options = {
2
+ key: "destroyExplode",
3
+ name: "Destroy Explode",
4
+ particles: {
5
+ number: {
6
+ value: 80,
7
+ density: {
8
+ enable: true,
9
+ },
10
+ },
11
+ destroy: {
12
+ mode: "explode",
13
+ explode: {
14
+ maxSizeFactor: 5,
15
+ speed: 2,
16
+ },
17
+ },
18
+ paint: {
19
+ fill: {
20
+ color: {
21
+ value: ["#3998D0", "#2EB6AF", "#A9BD33", "#FEC73B", "#F89930", "#F45623", "#D62E32", "#EB586E", "#9952CF"],
22
+ },
23
+ enable: true,
24
+ },
25
+ stroke: {
26
+ width: 0,
27
+ },
28
+ },
29
+ shape: {
30
+ type: "circle",
31
+ },
32
+ opacity: {
33
+ value: 0.9,
34
+ },
35
+ size: {
36
+ value: {
37
+ min: 10,
38
+ max: 15,
39
+ },
40
+ },
41
+ collisions: {
42
+ enable: true,
43
+ mode: "destroy",
44
+ },
45
+ move: {
46
+ enable: true,
47
+ speed: 3,
48
+ outModes: "bounce",
49
+ },
50
+ },
51
+ interactivity: {
52
+ events: {
53
+ onClick: {
54
+ enable: true,
55
+ mode: "push",
56
+ },
57
+ },
58
+ modes: {
59
+ push: {
60
+ quantity: 1,
61
+ },
62
+ },
63
+ },
64
+ background: {
65
+ color: "#000000",
66
+ },
67
+ };
68
+ export default options;
package/cjs/d/index.js CHANGED
@@ -5,6 +5,7 @@ import delayOpacity from "./delayOpacity.js";
5
5
  import delaySize from "./delaySize.js";
6
6
  import delayStrokeColor from "./delayStrokeColor.js";
7
7
  import destroy from "./destroy.js";
8
+ import destroyExplode from "./destroyExplode.js";
8
9
  import disappearing from "./disappearing.js";
9
10
  import divEvents from "./divEvents.js";
10
11
  export default {
@@ -15,6 +16,7 @@ export default {
15
16
  delaySize,
16
17
  delayStrokeColor,
17
18
  destroy,
19
+ destroyExplode,
18
20
  disappearing,
19
21
  divEvents,
20
22
  };
@@ -176,6 +176,9 @@ const options = {
176
176
  },
177
177
  },
178
178
  paint: {
179
+ fill: {
180
+ enable: false,
181
+ },
179
182
  stroke: {
180
183
  color: {
181
184
  value: "#ffffff",
@@ -34,6 +34,9 @@ const thirdFactor = 3, third = identity / thirdFactor, options = {
34
34
  },
35
35
  particles: {
36
36
  paint: {
37
+ fill: {
38
+ enable: false,
39
+ },
37
40
  stroke: {
38
41
  color: {
39
42
  value: [
@@ -0,0 +1,71 @@
1
+ import { tsParticles } from "@tsparticles/engine/lazy";
2
+ import a from "./a/index.js";
3
+ import b from "./b/index.js";
4
+ import c from "./c/index.js";
5
+ import d from "./d/index.js";
6
+ import e from "./e/index.js";
7
+ import f from "./f/index.js";
8
+ import g from "./g/index.js";
9
+ import h from "./h/index.js";
10
+ import i from "./i/index.js";
11
+ import j from "./j/index.js";
12
+ import k from "./k/index.js";
13
+ import l from "./l/index.js";
14
+ import m from "./m/index.js";
15
+ import n from "./n/index.js";
16
+ import o from "./o/index.js";
17
+ import p from "./p/index.js";
18
+ import { palettes } from "./palettes.js";
19
+ import q from "./q/index.js";
20
+ import r from "./r/index.js";
21
+ import s from "./s/index.js";
22
+ import t from "./t/index.js";
23
+ import u from "./u/index.js";
24
+ import v from "./v/index.js";
25
+ import w from "./w/index.js";
26
+ import x from "./x/index.js";
27
+ import y from "./y/index.js";
28
+ import z from "./z/index.js";
29
+ for (const key of Object.keys(palettes)) {
30
+ const palette = palettes[key];
31
+ if (!palette) {
32
+ continue;
33
+ }
34
+ tsParticles.pluginManager.addPalette(key, palette);
35
+ }
36
+ const configs = {
37
+ ...a,
38
+ ...b,
39
+ ...c,
40
+ ...d,
41
+ ...e,
42
+ ...f,
43
+ ...g,
44
+ ...h,
45
+ ...i,
46
+ ...j,
47
+ ...k,
48
+ ...l,
49
+ ...m,
50
+ ...n,
51
+ ...o,
52
+ ...p,
53
+ ...q,
54
+ ...r,
55
+ ...s,
56
+ ...t,
57
+ ...u,
58
+ ...v,
59
+ ...w,
60
+ ...x,
61
+ ...y,
62
+ ...z,
63
+ };
64
+ for (const key of Object.keys(configs)) {
65
+ const config = configs[key];
66
+ if (!config) {
67
+ continue;
68
+ }
69
+ tsParticles.pluginManager.addConfig(config);
70
+ }
71
+ export default configs;
package/cjs/m/index.js CHANGED
@@ -5,6 +5,8 @@ import motionReduce from "./motionReduce.js";
5
5
  import mouseAttract from "./mouseAttract.js";
6
6
  import mouseBounce from "./mouseBounce.js";
7
7
  import mouseCannon from "./mouseCannon.js";
8
+ import mouseDestroy from "./mouseDestroy.js";
9
+ import mouseDestroyExplode from "./mouseDestroyExplode.js";
8
10
  import mouseDrag from "./mouseDrag.js";
9
11
  import mouseDragMomentum from "./mouseDragMomentum.js";
10
12
  import mouseFollow from "./mouseFollow.js";
@@ -26,6 +28,8 @@ export default {
26
28
  mouseAttract,
27
29
  mouseBounce,
28
30
  mouseCannon,
31
+ mouseDestroy,
32
+ mouseDestroyExplode,
29
33
  mouseDrag,
30
34
  mouseDragMomentum,
31
35
  mouseFollow,
@@ -0,0 +1,61 @@
1
+ const options = {
2
+ key: "mouseDestroy",
3
+ name: "Mouse Destroy",
4
+ particles: {
5
+ number: {
6
+ value: 120,
7
+ density: {
8
+ enable: true,
9
+ },
10
+ },
11
+ paint: {
12
+ fill: {
13
+ color: {
14
+ value: ["#7dd3fc", "#34d399", "#fbbf24", "#f97316", "#ef4444"],
15
+ },
16
+ enable: true,
17
+ },
18
+ },
19
+ shape: {
20
+ type: "circle",
21
+ },
22
+ opacity: {
23
+ value: 0.8,
24
+ },
25
+ size: {
26
+ value: {
27
+ min: 2,
28
+ max: 5,
29
+ },
30
+ },
31
+ move: {
32
+ enable: true,
33
+ speed: 1.8,
34
+ outModes: "bounce",
35
+ },
36
+ },
37
+ interactivity: {
38
+ events: {
39
+ onHover: {
40
+ enable: true,
41
+ mode: "destroy",
42
+ },
43
+ onClick: {
44
+ enable: true,
45
+ mode: "push",
46
+ },
47
+ },
48
+ modes: {
49
+ destroy: {
50
+ distance: 130,
51
+ },
52
+ push: {
53
+ quantity: 6,
54
+ },
55
+ },
56
+ },
57
+ background: {
58
+ color: "#05070b",
59
+ },
60
+ };
61
+ export default options;
@@ -0,0 +1,84 @@
1
+ const options = {
2
+ key: "mouseDestroyExplode",
3
+ name: "Mouse Destroy Explode Stress",
4
+ particles: {
5
+ number: {
6
+ value: 500,
7
+ },
8
+ destroy: {
9
+ mode: "explode",
10
+ explode: {
11
+ maxSizeFactor: 10,
12
+ speed: 2,
13
+ },
14
+ },
15
+ paint: {
16
+ fill: {
17
+ enable: false,
18
+ },
19
+ stroke: {
20
+ color: {
21
+ value: ["#60a5fa", "#22d3ee", "#22c55e", "#fde047", "#f97316", "#ef4444"],
22
+ },
23
+ width: 2,
24
+ },
25
+ },
26
+ shape: {
27
+ type: "circle",
28
+ },
29
+ opacity: {
30
+ value: 1,
31
+ },
32
+ size: {
33
+ value: {
34
+ min: 3,
35
+ max: 7,
36
+ },
37
+ },
38
+ move: {
39
+ enable: true,
40
+ speed: 4,
41
+ direction: "inside",
42
+ outModes: "destroy",
43
+ },
44
+ },
45
+ interactivity: {
46
+ events: {
47
+ onHover: {
48
+ enable: true,
49
+ mode: ["attract", "destroy", "repulse"],
50
+ },
51
+ },
52
+ modes: {
53
+ destroy: {
54
+ distance: 75,
55
+ },
56
+ repulse: {
57
+ distance: 75,
58
+ },
59
+ attract: {
60
+ distance: 1920,
61
+ speed: 7,
62
+ },
63
+ },
64
+ },
65
+ background: {
66
+ color: "#030712",
67
+ },
68
+ emitters: {
69
+ fill: false,
70
+ size: {
71
+ width: 100,
72
+ height: 100,
73
+ },
74
+ position: {
75
+ x: 50,
76
+ y: 50,
77
+ },
78
+ rate: {
79
+ delay: 0.1,
80
+ quantity: 20,
81
+ },
82
+ },
83
+ };
84
+ export default options;
package/esm/browser.js ADDED
@@ -0,0 +1,3 @@
1
+ const globalObject = globalThis;
2
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
3
+ export * from "./index.js";
package/esm/bundle.js CHANGED
@@ -1 +1,3 @@
1
1
  export * from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals ??= {};
package/esm/c/chars.js CHANGED
@@ -9,6 +9,9 @@ const options = {
9
9
  },
10
10
  },
11
11
  paint: {
12
+ fill: {
13
+ enable: false,
14
+ },
12
15
  stroke: {
13
16
  width: 1,
14
17
  color: { value: "#ffffff" },
@@ -0,0 +1,151 @@
1
+ const options = {
2
+ key: "confettiExplosions",
3
+ name: "Confetti Explosions",
4
+ background: {
5
+ color: "#1a1a2e",
6
+ },
7
+ fullScreen: {
8
+ enable: true,
9
+ zIndex: 100,
10
+ },
11
+ particles: {
12
+ paint: {
13
+ fill: {
14
+ enable: true,
15
+ color: {
16
+ value: [
17
+ "#FF0044",
18
+ "#FF4400",
19
+ "#FFCC00",
20
+ "#00CC44",
21
+ "#00AAFF",
22
+ "#AA00FF",
23
+ "#FF00AA",
24
+ "#00FFCC",
25
+ "#FF6600",
26
+ "#FFFFFF",
27
+ ],
28
+ },
29
+ },
30
+ },
31
+ number: {
32
+ value: 0,
33
+ density: {
34
+ enable: true,
35
+ },
36
+ },
37
+ shape: {
38
+ type: ["square", "circle"],
39
+ },
40
+ size: {
41
+ value: {
42
+ min: 3,
43
+ max: 5,
44
+ },
45
+ },
46
+ opacity: {
47
+ value: { min: 0, max: 1 },
48
+ animation: {
49
+ enable: true,
50
+ startValue: "max",
51
+ destroy: "min",
52
+ speed: 3,
53
+ },
54
+ },
55
+ move: {
56
+ angle: {
57
+ value: 45,
58
+ offset: 0,
59
+ },
60
+ drift: 0,
61
+ enable: true,
62
+ gravity: {
63
+ enable: true,
64
+ acceleration: 9.81,
65
+ },
66
+ speed: {
67
+ min: 15,
68
+ max: 25,
69
+ },
70
+ decay: 0.1,
71
+ random: true,
72
+ straight: false,
73
+ outModes: {
74
+ default: "destroy",
75
+ top: "none",
76
+ },
77
+ },
78
+ rotate: {
79
+ value: {
80
+ min: 0,
81
+ max: 360,
82
+ },
83
+ direction: "random",
84
+ move: true,
85
+ animation: {
86
+ enable: true,
87
+ speed: 60,
88
+ },
89
+ },
90
+ tilt: {
91
+ direction: "random",
92
+ enable: true,
93
+ value: {
94
+ min: 0,
95
+ max: 360,
96
+ },
97
+ animation: {
98
+ enable: true,
99
+ speed: 60,
100
+ },
101
+ },
102
+ roll: {
103
+ darken: {
104
+ enable: true,
105
+ value: 30,
106
+ },
107
+ enlighten: {
108
+ enable: true,
109
+ value: 30,
110
+ },
111
+ enable: true,
112
+ mode: "both",
113
+ speed: {
114
+ min: 15,
115
+ max: 25,
116
+ },
117
+ },
118
+ wobble: {
119
+ distance: 30,
120
+ enable: true,
121
+ move: true,
122
+ speed: {
123
+ min: -15,
124
+ max: 15,
125
+ },
126
+ },
127
+ },
128
+ emitters: {
129
+ name: "confetti",
130
+ size: {
131
+ width: 0,
132
+ height: 0,
133
+ },
134
+ rate: {
135
+ delay: 0,
136
+ quantity: 50,
137
+ },
138
+ life: {
139
+ count: 0,
140
+ duration: 0.1,
141
+ delay: 0.4,
142
+ },
143
+ },
144
+ motion: {
145
+ disable: true,
146
+ },
147
+ blend: {
148
+ mode: "source-over",
149
+ },
150
+ };
151
+ export default options;
package/esm/c/index.js CHANGED
@@ -7,6 +7,7 @@ import collisionsAbsorb from "./collisionsAbsorb.js";
7
7
  import collisionsBounce from "./collisionsBounce.js";
8
8
  import collisionsDestroy from "./collisionsDestroy.js";
9
9
  import colorAnimation from "./colorAnimation.js";
10
+ import confettiExplosions from "./confettiExplosions.js";
10
11
  import connect from "./connect.js";
11
12
  import curlNoise from "./curlNoise.js";
12
13
  export default {
@@ -19,6 +20,7 @@ export default {
19
20
  collisionsBounce,
20
21
  collisionsDestroy,
21
22
  colorAnimation,
23
+ confettiExplosions,
22
24
  connect,
23
25
  curlNoise,
24
26
  };
@@ -0,0 +1,68 @@
1
+ const options = {
2
+ key: "destroyExplode",
3
+ name: "Destroy Explode",
4
+ particles: {
5
+ number: {
6
+ value: 80,
7
+ density: {
8
+ enable: true,
9
+ },
10
+ },
11
+ destroy: {
12
+ mode: "explode",
13
+ explode: {
14
+ maxSizeFactor: 5,
15
+ speed: 2,
16
+ },
17
+ },
18
+ paint: {
19
+ fill: {
20
+ color: {
21
+ value: ["#3998D0", "#2EB6AF", "#A9BD33", "#FEC73B", "#F89930", "#F45623", "#D62E32", "#EB586E", "#9952CF"],
22
+ },
23
+ enable: true,
24
+ },
25
+ stroke: {
26
+ width: 0,
27
+ },
28
+ },
29
+ shape: {
30
+ type: "circle",
31
+ },
32
+ opacity: {
33
+ value: 0.9,
34
+ },
35
+ size: {
36
+ value: {
37
+ min: 10,
38
+ max: 15,
39
+ },
40
+ },
41
+ collisions: {
42
+ enable: true,
43
+ mode: "destroy",
44
+ },
45
+ move: {
46
+ enable: true,
47
+ speed: 3,
48
+ outModes: "bounce",
49
+ },
50
+ },
51
+ interactivity: {
52
+ events: {
53
+ onClick: {
54
+ enable: true,
55
+ mode: "push",
56
+ },
57
+ },
58
+ modes: {
59
+ push: {
60
+ quantity: 1,
61
+ },
62
+ },
63
+ },
64
+ background: {
65
+ color: "#000000",
66
+ },
67
+ };
68
+ export default options;
package/esm/d/index.js CHANGED
@@ -5,6 +5,7 @@ import delayOpacity from "./delayOpacity.js";
5
5
  import delaySize from "./delaySize.js";
6
6
  import delayStrokeColor from "./delayStrokeColor.js";
7
7
  import destroy from "./destroy.js";
8
+ import destroyExplode from "./destroyExplode.js";
8
9
  import disappearing from "./disappearing.js";
9
10
  import divEvents from "./divEvents.js";
10
11
  export default {
@@ -15,6 +16,7 @@ export default {
15
16
  delaySize,
16
17
  delayStrokeColor,
17
18
  destroy,
19
+ destroyExplode,
18
20
  disappearing,
19
21
  divEvents,
20
22
  };
@@ -176,6 +176,9 @@ const options = {
176
176
  },
177
177
  },
178
178
  paint: {
179
+ fill: {
180
+ enable: false,
181
+ },
179
182
  stroke: {
180
183
  color: {
181
184
  value: "#ffffff",
@@ -34,6 +34,9 @@ const thirdFactor = 3, third = identity / thirdFactor, options = {
34
34
  },
35
35
  particles: {
36
36
  paint: {
37
+ fill: {
38
+ enable: false,
39
+ },
37
40
  stroke: {
38
41
  color: {
39
42
  value: [