@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
@@ -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/esm/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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/configs",
3
- "version": "4.0.0-beta.11",
3
+ "version": "4.0.0-beta.15",
4
4
  "description": "tsParticles demo configurations",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -95,10 +95,17 @@
95
95
  "require": "./cjs/index.js",
96
96
  "default": "./esm/index.js"
97
97
  },
98
+ "./lazy": {
99
+ "types": "./types/index.lazy.d.ts",
100
+ "browser": "./browser/index.lazy.js",
101
+ "import": "./esm/index.lazy.js",
102
+ "require": "./cjs/index.lazy.js",
103
+ "default": "./esm/index.lazy.js"
104
+ },
98
105
  "./package.json": "./package.json"
99
106
  },
100
107
  "peerDependencies": {
101
- "@tsparticles/engine": "4.0.0-beta.11"
108
+ "@tsparticles/engine": "4.0.0-beta.15"
102
109
  },
103
110
  "publishConfig": {
104
111
  "access": "public"