@tsparticles/configs 3.1.0 → 3.2.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.
Files changed (56) hide show
  1. package/browser/b/backgroundMask.js +6 -4
  2. package/browser/b/backgroundMaskImage.js +70 -0
  3. package/browser/b/index.js +2 -0
  4. package/browser/e/emitterSpawnColor.js +163 -0
  5. package/browser/e/index.js +2 -0
  6. package/browser/f/fireworks2.js +3 -0
  7. package/browser/m/index.js +4 -0
  8. package/browser/m/mouseParticle.js +50 -0
  9. package/browser/m/mouseParticle2.js +61 -0
  10. package/browser/r/reactSimple.js +1 -3
  11. package/cjs/b/backgroundMask.js +6 -4
  12. package/cjs/b/backgroundMaskImage.js +72 -0
  13. package/cjs/b/index.js +2 -0
  14. package/cjs/e/emitterSpawnColor.js +165 -0
  15. package/cjs/e/index.js +2 -0
  16. package/cjs/f/fireworks2.js +3 -0
  17. package/cjs/m/index.js +4 -0
  18. package/cjs/m/mouseParticle.js +52 -0
  19. package/cjs/m/mouseParticle2.js +63 -0
  20. package/cjs/r/reactSimple.js +1 -3
  21. package/esm/b/backgroundMask.js +6 -4
  22. package/esm/b/backgroundMaskImage.js +70 -0
  23. package/esm/b/index.js +2 -0
  24. package/esm/e/emitterSpawnColor.js +163 -0
  25. package/esm/e/index.js +2 -0
  26. package/esm/f/fireworks2.js +3 -0
  27. package/esm/m/index.js +4 -0
  28. package/esm/m/mouseParticle.js +50 -0
  29. package/esm/m/mouseParticle2.js +61 -0
  30. package/esm/r/reactSimple.js +1 -3
  31. package/package.json +2 -2
  32. package/report.html +3 -3
  33. package/tsparticles.configs.bundle.js +30 -4
  34. package/tsparticles.configs.bundle.min.js +1 -1
  35. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  36. package/tsparticles.configs.js +1793 -13305
  37. package/tsparticles.configs.min.js +1 -1
  38. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  39. package/types/b/backgroundMaskImage.d.ts +3 -0
  40. package/types/b/index.d.ts +1 -0
  41. package/types/e/emitterSpawnColor.d.ts +3 -0
  42. package/types/e/index.d.ts +1 -0
  43. package/types/index.d.ts +4 -0
  44. package/types/m/index.d.ts +2 -0
  45. package/types/m/mouseParticle.d.ts +3 -0
  46. package/types/m/mouseParticle2.d.ts +3 -0
  47. package/umd/b/backgroundMask.js +6 -4
  48. package/umd/b/backgroundMaskImage.js +82 -0
  49. package/umd/b/index.js +3 -1
  50. package/umd/e/emitterSpawnColor.js +175 -0
  51. package/umd/e/index.js +3 -1
  52. package/umd/f/fireworks2.js +3 -0
  53. package/umd/m/index.js +5 -1
  54. package/umd/m/mouseParticle.js +62 -0
  55. package/umd/m/mouseParticle2.js +73 -0
  56. package/umd/r/reactSimple.js +1 -3
@@ -62,10 +62,12 @@ const options = {
62
62
  backgroundMask: {
63
63
  enable: true,
64
64
  cover: {
65
- value: {
66
- r: 255,
67
- g: 255,
68
- b: 255,
65
+ color: {
66
+ value: {
67
+ r: 255,
68
+ g: 255,
69
+ b: 255,
70
+ },
69
71
  },
70
72
  },
71
73
  },
@@ -0,0 +1,70 @@
1
+ const options = {
2
+ key: "backgroundMaskImage",
3
+ name: "Background Mask Image",
4
+ particles: {
5
+ number: {
6
+ value: 100,
7
+ },
8
+ color: {
9
+ value: "#ffffff",
10
+ },
11
+ shape: {
12
+ type: "circle",
13
+ },
14
+ opacity: {
15
+ value: 1,
16
+ },
17
+ size: {
18
+ value: {
19
+ min: 10,
20
+ max: 50,
21
+ },
22
+ animation: {
23
+ enable: true,
24
+ speed: 25,
25
+ },
26
+ },
27
+ move: {
28
+ enable: true,
29
+ speed: 2,
30
+ direction: "none",
31
+ },
32
+ },
33
+ interactivity: {
34
+ events: {
35
+ onHover: {
36
+ enable: true,
37
+ mode: "bubble",
38
+ },
39
+ onClick: {
40
+ enable: true,
41
+ mode: "push",
42
+ },
43
+ },
44
+ modes: {
45
+ bubble: {
46
+ distance: 400,
47
+ size: 100,
48
+ duration: 2,
49
+ opacity: 1,
50
+ },
51
+ push: {
52
+ quantity: 4,
53
+ },
54
+ },
55
+ },
56
+ backgroundMask: {
57
+ enable: true,
58
+ cover: {
59
+ image: "https://particles.js.org/images/background2.jpg",
60
+ },
61
+ },
62
+ background: {
63
+ color: "#ffffff",
64
+ image: "url('https://particles.js.org/images/background3.jpg')",
65
+ position: "50% 50%",
66
+ repeat: "no-repeat",
67
+ size: "cover",
68
+ },
69
+ };
70
+ export default options;
@@ -1,10 +1,12 @@
1
1
  import backgroundMask from "./backgroundMask.js";
2
+ import backgroundMaskImage from "./backgroundMaskImage.js";
2
3
  import basic from "./basic.js";
3
4
  import big from "./big.js";
4
5
  import blackHole from "./blackHole.js";
5
6
  import bubble from "./bubble.js";
6
7
  export default {
7
8
  backgroundMask,
9
+ backgroundMaskImage,
8
10
  basic,
9
11
  big,
10
12
  blackHole,
@@ -0,0 +1,163 @@
1
+ const emitterRate = {
2
+ delay: 0.1,
3
+ quantity: 2,
4
+ }, options = {
5
+ key: "emitterSpawnColor",
6
+ name: "Emitter Spawn Color",
7
+ particles: {
8
+ opacity: {
9
+ value: 1,
10
+ },
11
+ size: {
12
+ value: 3,
13
+ },
14
+ life: {
15
+ count: 1,
16
+ duration: {
17
+ value: 5,
18
+ },
19
+ },
20
+ move: {
21
+ enable: true,
22
+ speed: 3,
23
+ outModes: {
24
+ default: "destroy",
25
+ },
26
+ },
27
+ },
28
+ background: {
29
+ color: "#000000",
30
+ },
31
+ emitters: [
32
+ {
33
+ position: {
34
+ x: 33,
35
+ y: 0,
36
+ },
37
+ rate: emitterRate,
38
+ particles: {
39
+ move: {
40
+ direction: "bottom-right",
41
+ },
42
+ },
43
+ spawnColor: {
44
+ value: "#ff0000",
45
+ animation: {
46
+ h: {
47
+ enable: true,
48
+ speed: 10,
49
+ },
50
+ },
51
+ },
52
+ },
53
+ {
54
+ position: {
55
+ x: 33,
56
+ y: 100,
57
+ },
58
+ rate: emitterRate,
59
+ particles: {
60
+ move: {
61
+ direction: "top-right",
62
+ },
63
+ },
64
+ spawnColor: {
65
+ value: "#ff0000",
66
+ animation: {
67
+ s: {
68
+ enable: true,
69
+ speed: 10,
70
+ offset: {
71
+ min: -10,
72
+ max: 10,
73
+ },
74
+ },
75
+ },
76
+ },
77
+ },
78
+ {
79
+ position: {
80
+ x: 100,
81
+ y: 0,
82
+ },
83
+ rate: emitterRate,
84
+ particles: {
85
+ move: {
86
+ direction: "bottom-left",
87
+ },
88
+ },
89
+ spawnColor: {
90
+ value: "#ff0000",
91
+ animation: {
92
+ l: {
93
+ enable: true,
94
+ speed: 10,
95
+ offset: {
96
+ min: -10,
97
+ max: 10,
98
+ },
99
+ },
100
+ },
101
+ },
102
+ },
103
+ {
104
+ position: {
105
+ x: 100,
106
+ y: 100,
107
+ },
108
+ rate: emitterRate,
109
+ particles: {
110
+ move: {
111
+ direction: "top-left",
112
+ },
113
+ },
114
+ spawnColor: {
115
+ value: "#ff0000",
116
+ animation: {
117
+ h: {
118
+ enable: true,
119
+ speed: 10,
120
+ },
121
+ s: {
122
+ enable: true,
123
+ speed: 10,
124
+ offset: {
125
+ min: -10,
126
+ max: 10,
127
+ },
128
+ },
129
+ },
130
+ },
131
+ },
132
+ {
133
+ position: {
134
+ x: 66,
135
+ y: 50,
136
+ },
137
+ rate: emitterRate,
138
+ particles: {
139
+ move: {
140
+ direction: "none",
141
+ },
142
+ },
143
+ spawnColor: {
144
+ value: "#ff0000",
145
+ animation: {
146
+ h: {
147
+ enable: true,
148
+ speed: 10,
149
+ },
150
+ l: {
151
+ enable: true,
152
+ speed: 10,
153
+ offset: {
154
+ min: -10,
155
+ max: 10,
156
+ },
157
+ },
158
+ },
159
+ },
160
+ },
161
+ ],
162
+ };
163
+ export default options;
@@ -7,6 +7,7 @@ import emitterImageShape from "./emitterImageShape.js";
7
7
  import emitterImages from "./emitterImages.js";
8
8
  import emitterPaths from "./emitterPaths.js";
9
9
  import emitterShapes from "./emitterShapes.js";
10
+ import emitterSpawnColor from "./emitterSpawnColor.js";
10
11
  import emitterTextShape from "./emitterTextShape.js";
11
12
  import emitterTextStrokeShape from "./emitterTextStrokeShape.js";
12
13
  export default {
@@ -19,6 +20,7 @@ export default {
19
20
  emitterImages,
20
21
  emitterPaths,
21
22
  emitterShapes,
23
+ emitterSpawnColor,
22
24
  emitterTextShape,
23
25
  emitterTextStrokeShape,
24
26
  };
@@ -13,6 +13,9 @@ const options = {
13
13
  },
14
14
  backgroundMask: {
15
15
  enable: true,
16
+ cover: {
17
+ color: "#000",
18
+ },
16
19
  },
17
20
  emitters: {
18
21
  direction: "top",
@@ -4,6 +4,8 @@ import motionReduce from "./motionReduce.js";
4
4
  import mouseAttract from "./mouseAttract.js";
5
5
  import mouseBounce from "./mouseBounce.js";
6
6
  import mouseFollow from "./mouseFollow.js";
7
+ import mouseParticle from "./mouseParticle.js";
8
+ import mouseParticle2 from "./mouseParticle2.js";
7
9
  import mouseTrail from "./mouseTrail.js";
8
10
  import mouseTrailNoise from "./mouseTrailNoise.js";
9
11
  import moveAngle from "./moveAngle.js";
@@ -19,6 +21,8 @@ export default {
19
21
  mouseAttract,
20
22
  mouseBounce,
21
23
  mouseFollow,
24
+ mouseParticle,
25
+ mouseParticle2,
22
26
  mouseTrail,
23
27
  mouseTrailNoise,
24
28
  moveAngle,
@@ -0,0 +1,50 @@
1
+ const options = {
2
+ key: "mouseParticle",
3
+ name: "Mouse Particle",
4
+ fullScreen: {
5
+ zIndex: 10000,
6
+ },
7
+ particles: {
8
+ number: {
9
+ value: 0,
10
+ },
11
+ color: {
12
+ value: ["#ff0000", "#00ff00", "#0000ff"],
13
+ animation: {
14
+ enable: true,
15
+ speed: 180,
16
+ sync: true,
17
+ },
18
+ },
19
+ effect: {
20
+ type: "trail",
21
+ options: {
22
+ trail: {
23
+ length: 10,
24
+ minWidth: 2,
25
+ },
26
+ },
27
+ },
28
+ shape: {
29
+ type: "circle",
30
+ },
31
+ size: {
32
+ value: 3,
33
+ },
34
+ },
35
+ interactivity: {
36
+ events: {
37
+ onHover: {
38
+ enable: true,
39
+ mode: "particle",
40
+ },
41
+ },
42
+ modes: {
43
+ particle: {
44
+ replaceCursor: true,
45
+ pauseOnStop: true,
46
+ },
47
+ },
48
+ },
49
+ };
50
+ export default options;
@@ -0,0 +1,61 @@
1
+ const options = {
2
+ key: "mouseParticle2",
3
+ name: "Mouse Particle 2",
4
+ background: {
5
+ color: "#000000",
6
+ },
7
+ particles: {
8
+ number: {
9
+ value: 80,
10
+ density: {
11
+ enable: true,
12
+ },
13
+ },
14
+ color: {
15
+ value: "#ff0000",
16
+ animation: {
17
+ enable: true,
18
+ speed: 20,
19
+ sync: true,
20
+ },
21
+ },
22
+ shape: {
23
+ type: "circle",
24
+ },
25
+ opacity: {
26
+ value: 0.5,
27
+ },
28
+ size: {
29
+ value: {
30
+ min: 1,
31
+ max: 3,
32
+ },
33
+ },
34
+ links: {
35
+ enable: true,
36
+ distance: 200,
37
+ color: "#ffffff",
38
+ opacity: 0.4,
39
+ width: 1,
40
+ },
41
+ move: {
42
+ enable: true,
43
+ speed: 6,
44
+ },
45
+ },
46
+ interactivity: {
47
+ events: {
48
+ onHover: {
49
+ enable: true,
50
+ mode: "particle",
51
+ },
52
+ },
53
+ modes: {
54
+ particle: {
55
+ replaceCursor: false,
56
+ pauseOnStop: false,
57
+ },
58
+ },
59
+ },
60
+ };
61
+ export default options;
@@ -107,9 +107,7 @@ const options = {
107
107
  },
108
108
  backgroundMask: {
109
109
  cover: {
110
- color: {
111
- value: "#fff",
112
- },
110
+ color: "#fff",
113
111
  opacity: 1,
114
112
  },
115
113
  enable: false,
@@ -64,10 +64,12 @@ const options = {
64
64
  backgroundMask: {
65
65
  enable: true,
66
66
  cover: {
67
- value: {
68
- r: 255,
69
- g: 255,
70
- b: 255,
67
+ color: {
68
+ value: {
69
+ r: 255,
70
+ g: 255,
71
+ b: 255,
72
+ },
71
73
  },
72
74
  },
73
75
  },
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const options = {
4
+ key: "backgroundMaskImage",
5
+ name: "Background Mask Image",
6
+ particles: {
7
+ number: {
8
+ value: 100,
9
+ },
10
+ color: {
11
+ value: "#ffffff",
12
+ },
13
+ shape: {
14
+ type: "circle",
15
+ },
16
+ opacity: {
17
+ value: 1,
18
+ },
19
+ size: {
20
+ value: {
21
+ min: 10,
22
+ max: 50,
23
+ },
24
+ animation: {
25
+ enable: true,
26
+ speed: 25,
27
+ },
28
+ },
29
+ move: {
30
+ enable: true,
31
+ speed: 2,
32
+ direction: "none",
33
+ },
34
+ },
35
+ interactivity: {
36
+ events: {
37
+ onHover: {
38
+ enable: true,
39
+ mode: "bubble",
40
+ },
41
+ onClick: {
42
+ enable: true,
43
+ mode: "push",
44
+ },
45
+ },
46
+ modes: {
47
+ bubble: {
48
+ distance: 400,
49
+ size: 100,
50
+ duration: 2,
51
+ opacity: 1,
52
+ },
53
+ push: {
54
+ quantity: 4,
55
+ },
56
+ },
57
+ },
58
+ backgroundMask: {
59
+ enable: true,
60
+ cover: {
61
+ image: "https://particles.js.org/images/background2.jpg",
62
+ },
63
+ },
64
+ background: {
65
+ color: "#ffffff",
66
+ image: "url('https://particles.js.org/images/background3.jpg')",
67
+ position: "50% 50%",
68
+ repeat: "no-repeat",
69
+ size: "cover",
70
+ },
71
+ };
72
+ exports.default = options;
package/cjs/b/index.js CHANGED
@@ -4,12 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const backgroundMask_js_1 = __importDefault(require("./backgroundMask.js"));
7
+ const backgroundMaskImage_js_1 = __importDefault(require("./backgroundMaskImage.js"));
7
8
  const basic_js_1 = __importDefault(require("./basic.js"));
8
9
  const big_js_1 = __importDefault(require("./big.js"));
9
10
  const blackHole_js_1 = __importDefault(require("./blackHole.js"));
10
11
  const bubble_js_1 = __importDefault(require("./bubble.js"));
11
12
  exports.default = {
12
13
  backgroundMask: backgroundMask_js_1.default,
14
+ backgroundMaskImage: backgroundMaskImage_js_1.default,
13
15
  basic: basic_js_1.default,
14
16
  big: big_js_1.default,
15
17
  blackHole: blackHole_js_1.default,
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const emitterRate = {
4
+ delay: 0.1,
5
+ quantity: 2,
6
+ }, options = {
7
+ key: "emitterSpawnColor",
8
+ name: "Emitter Spawn Color",
9
+ particles: {
10
+ opacity: {
11
+ value: 1,
12
+ },
13
+ size: {
14
+ value: 3,
15
+ },
16
+ life: {
17
+ count: 1,
18
+ duration: {
19
+ value: 5,
20
+ },
21
+ },
22
+ move: {
23
+ enable: true,
24
+ speed: 3,
25
+ outModes: {
26
+ default: "destroy",
27
+ },
28
+ },
29
+ },
30
+ background: {
31
+ color: "#000000",
32
+ },
33
+ emitters: [
34
+ {
35
+ position: {
36
+ x: 33,
37
+ y: 0,
38
+ },
39
+ rate: emitterRate,
40
+ particles: {
41
+ move: {
42
+ direction: "bottom-right",
43
+ },
44
+ },
45
+ spawnColor: {
46
+ value: "#ff0000",
47
+ animation: {
48
+ h: {
49
+ enable: true,
50
+ speed: 10,
51
+ },
52
+ },
53
+ },
54
+ },
55
+ {
56
+ position: {
57
+ x: 33,
58
+ y: 100,
59
+ },
60
+ rate: emitterRate,
61
+ particles: {
62
+ move: {
63
+ direction: "top-right",
64
+ },
65
+ },
66
+ spawnColor: {
67
+ value: "#ff0000",
68
+ animation: {
69
+ s: {
70
+ enable: true,
71
+ speed: 10,
72
+ offset: {
73
+ min: -10,
74
+ max: 10,
75
+ },
76
+ },
77
+ },
78
+ },
79
+ },
80
+ {
81
+ position: {
82
+ x: 100,
83
+ y: 0,
84
+ },
85
+ rate: emitterRate,
86
+ particles: {
87
+ move: {
88
+ direction: "bottom-left",
89
+ },
90
+ },
91
+ spawnColor: {
92
+ value: "#ff0000",
93
+ animation: {
94
+ l: {
95
+ enable: true,
96
+ speed: 10,
97
+ offset: {
98
+ min: -10,
99
+ max: 10,
100
+ },
101
+ },
102
+ },
103
+ },
104
+ },
105
+ {
106
+ position: {
107
+ x: 100,
108
+ y: 100,
109
+ },
110
+ rate: emitterRate,
111
+ particles: {
112
+ move: {
113
+ direction: "top-left",
114
+ },
115
+ },
116
+ spawnColor: {
117
+ value: "#ff0000",
118
+ animation: {
119
+ h: {
120
+ enable: true,
121
+ speed: 10,
122
+ },
123
+ s: {
124
+ enable: true,
125
+ speed: 10,
126
+ offset: {
127
+ min: -10,
128
+ max: 10,
129
+ },
130
+ },
131
+ },
132
+ },
133
+ },
134
+ {
135
+ position: {
136
+ x: 66,
137
+ y: 50,
138
+ },
139
+ rate: emitterRate,
140
+ particles: {
141
+ move: {
142
+ direction: "none",
143
+ },
144
+ },
145
+ spawnColor: {
146
+ value: "#ff0000",
147
+ animation: {
148
+ h: {
149
+ enable: true,
150
+ speed: 10,
151
+ },
152
+ l: {
153
+ enable: true,
154
+ speed: 10,
155
+ offset: {
156
+ min: -10,
157
+ max: 10,
158
+ },
159
+ },
160
+ },
161
+ },
162
+ },
163
+ ],
164
+ };
165
+ exports.default = options;