@tsparticles/configs 4.0.0-beta.0 → 4.0.0-beta.1

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.
@@ -33,7 +33,7 @@ const options = {
33
33
  },
34
34
  links: {
35
35
  enable: true,
36
- distance: 200,
36
+ distance: 150,
37
37
  color: "#ffffff",
38
38
  opacity: 0.4,
39
39
  width: 1,
@@ -26,16 +26,9 @@ const options = {
26
26
  max: 10,
27
27
  },
28
28
  },
29
- links: {
30
- enable: false,
31
- distance: 150,
32
- color: "#ffffff",
33
- opacity: 0.4,
34
- width: 1,
35
- },
36
29
  move: {
37
30
  enable: true,
38
- speed: 0.5,
31
+ speed: { max: 2, min: 0 },
39
32
  warp: true,
40
33
  },
41
34
  },
package/browser/index.js CHANGED
@@ -31,7 +31,7 @@ for (const key of Object.keys(palettes)) {
31
31
  if (!palette) {
32
32
  continue;
33
33
  }
34
- tsParticles.addPalette(key, palette);
34
+ tsParticles.pluginManager.addPalette(key, palette);
35
35
  }
36
36
  const configs = {
37
37
  ...a,
@@ -66,6 +66,6 @@ for (const key of Object.keys(configs)) {
66
66
  if (!config) {
67
67
  continue;
68
68
  }
69
- tsParticles.addConfig(config);
69
+ tsParticles.pluginManager.addConfig(config);
70
70
  }
71
71
  export default configs;
@@ -4,6 +4,7 @@ import motionDisable from "./motionDisable.js";
4
4
  import motionReduce from "./motionReduce.js";
5
5
  import mouseAttract from "./mouseAttract.js";
6
6
  import mouseBounce from "./mouseBounce.js";
7
+ import mouseCannon from "./mouseCannon.js";
7
8
  import mouseDrag from "./mouseDrag.js";
8
9
  import mouseDragMomentum from "./mouseDragMomentum.js";
9
10
  import mouseFollow from "./mouseFollow.js";
@@ -24,6 +25,7 @@ export default {
24
25
  motionReduce,
25
26
  mouseAttract,
26
27
  mouseBounce,
28
+ mouseCannon,
27
29
  mouseDrag,
28
30
  mouseDragMomentum,
29
31
  mouseFollow,
@@ -0,0 +1,100 @@
1
+ const options = {
2
+ key: "mouseCannon",
3
+ name: "Mouse Cannon",
4
+ particles: {
5
+ number: {
6
+ value: 0,
7
+ density: {
8
+ enable: true,
9
+ },
10
+ },
11
+ fill: {
12
+ color: {
13
+ value: ["#ffffff", "#ff0000"],
14
+ },
15
+ enable: true,
16
+ },
17
+ shape: {
18
+ type: ["square", "circle"],
19
+ },
20
+ size: {
21
+ value: {
22
+ min: 3,
23
+ max: 5,
24
+ },
25
+ },
26
+ move: {
27
+ enable: true,
28
+ speed: 1,
29
+ decay: 0.1,
30
+ gravity: {
31
+ enable: true,
32
+ },
33
+ outModes: {
34
+ default: "destroy",
35
+ top: "none",
36
+ },
37
+ },
38
+ rotate: {
39
+ value: {
40
+ min: 0,
41
+ max: 360,
42
+ },
43
+ direction: "random",
44
+ move: true,
45
+ animation: {
46
+ enable: true,
47
+ speed: 60,
48
+ },
49
+ },
50
+ tilt: {
51
+ direction: "random",
52
+ enable: true,
53
+ value: {
54
+ min: 0,
55
+ max: 360,
56
+ },
57
+ animation: {
58
+ enable: true,
59
+ speed: 60,
60
+ },
61
+ },
62
+ roll: {
63
+ darken: {
64
+ enable: true,
65
+ value: 30,
66
+ },
67
+ enlighten: {
68
+ enable: true,
69
+ value: 30,
70
+ },
71
+ enable: true,
72
+ mode: "both",
73
+ speed: {
74
+ min: 15,
75
+ max: 25,
76
+ },
77
+ },
78
+ wobble: {
79
+ distance: 30,
80
+ enable: true,
81
+ move: true,
82
+ speed: {
83
+ min: -15,
84
+ max: 15,
85
+ },
86
+ },
87
+ },
88
+ interactivity: {
89
+ events: {
90
+ onClick: {
91
+ enable: true,
92
+ mode: "cannon",
93
+ },
94
+ },
95
+ },
96
+ background: {
97
+ color: "#000000",
98
+ },
99
+ };
100
+ export default options;
package/cjs/b/basic.js CHANGED
@@ -33,7 +33,7 @@ const options = {
33
33
  },
34
34
  links: {
35
35
  enable: true,
36
- distance: 200,
36
+ distance: 150,
37
37
  color: "#ffffff",
38
38
  opacity: 0.4,
39
39
  width: 1,
@@ -26,16 +26,9 @@ const options = {
26
26
  max: 10,
27
27
  },
28
28
  },
29
- links: {
30
- enable: false,
31
- distance: 150,
32
- color: "#ffffff",
33
- opacity: 0.4,
34
- width: 1,
35
- },
36
29
  move: {
37
30
  enable: true,
38
- speed: 0.5,
31
+ speed: { max: 2, min: 0 },
39
32
  warp: true,
40
33
  },
41
34
  },
package/cjs/index.js CHANGED
@@ -31,7 +31,7 @@ for (const key of Object.keys(palettes)) {
31
31
  if (!palette) {
32
32
  continue;
33
33
  }
34
- tsParticles.addPalette(key, palette);
34
+ tsParticles.pluginManager.addPalette(key, palette);
35
35
  }
36
36
  const configs = {
37
37
  ...a,
@@ -66,6 +66,6 @@ for (const key of Object.keys(configs)) {
66
66
  if (!config) {
67
67
  continue;
68
68
  }
69
- tsParticles.addConfig(config);
69
+ tsParticles.pluginManager.addConfig(config);
70
70
  }
71
71
  export default configs;
package/cjs/m/index.js CHANGED
@@ -4,6 +4,7 @@ import motionDisable from "./motionDisable.js";
4
4
  import motionReduce from "./motionReduce.js";
5
5
  import mouseAttract from "./mouseAttract.js";
6
6
  import mouseBounce from "./mouseBounce.js";
7
+ import mouseCannon from "./mouseCannon.js";
7
8
  import mouseDrag from "./mouseDrag.js";
8
9
  import mouseDragMomentum from "./mouseDragMomentum.js";
9
10
  import mouseFollow from "./mouseFollow.js";
@@ -24,6 +25,7 @@ export default {
24
25
  motionReduce,
25
26
  mouseAttract,
26
27
  mouseBounce,
28
+ mouseCannon,
27
29
  mouseDrag,
28
30
  mouseDragMomentum,
29
31
  mouseFollow,
@@ -0,0 +1,100 @@
1
+ const options = {
2
+ key: "mouseCannon",
3
+ name: "Mouse Cannon",
4
+ particles: {
5
+ number: {
6
+ value: 0,
7
+ density: {
8
+ enable: true,
9
+ },
10
+ },
11
+ fill: {
12
+ color: {
13
+ value: ["#ffffff", "#ff0000"],
14
+ },
15
+ enable: true,
16
+ },
17
+ shape: {
18
+ type: ["square", "circle"],
19
+ },
20
+ size: {
21
+ value: {
22
+ min: 3,
23
+ max: 5,
24
+ },
25
+ },
26
+ move: {
27
+ enable: true,
28
+ speed: 1,
29
+ decay: 0.1,
30
+ gravity: {
31
+ enable: true,
32
+ },
33
+ outModes: {
34
+ default: "destroy",
35
+ top: "none",
36
+ },
37
+ },
38
+ rotate: {
39
+ value: {
40
+ min: 0,
41
+ max: 360,
42
+ },
43
+ direction: "random",
44
+ move: true,
45
+ animation: {
46
+ enable: true,
47
+ speed: 60,
48
+ },
49
+ },
50
+ tilt: {
51
+ direction: "random",
52
+ enable: true,
53
+ value: {
54
+ min: 0,
55
+ max: 360,
56
+ },
57
+ animation: {
58
+ enable: true,
59
+ speed: 60,
60
+ },
61
+ },
62
+ roll: {
63
+ darken: {
64
+ enable: true,
65
+ value: 30,
66
+ },
67
+ enlighten: {
68
+ enable: true,
69
+ value: 30,
70
+ },
71
+ enable: true,
72
+ mode: "both",
73
+ speed: {
74
+ min: 15,
75
+ max: 25,
76
+ },
77
+ },
78
+ wobble: {
79
+ distance: 30,
80
+ enable: true,
81
+ move: true,
82
+ speed: {
83
+ min: -15,
84
+ max: 15,
85
+ },
86
+ },
87
+ },
88
+ interactivity: {
89
+ events: {
90
+ onClick: {
91
+ enable: true,
92
+ mode: "cannon",
93
+ },
94
+ },
95
+ },
96
+ background: {
97
+ color: "#000000",
98
+ },
99
+ };
100
+ export default options;
package/esm/b/basic.js CHANGED
@@ -33,7 +33,7 @@ const options = {
33
33
  },
34
34
  links: {
35
35
  enable: true,
36
- distance: 200,
36
+ distance: 150,
37
37
  color: "#ffffff",
38
38
  opacity: 0.4,
39
39
  width: 1,
@@ -26,16 +26,9 @@ const options = {
26
26
  max: 10,
27
27
  },
28
28
  },
29
- links: {
30
- enable: false,
31
- distance: 150,
32
- color: "#ffffff",
33
- opacity: 0.4,
34
- width: 1,
35
- },
36
29
  move: {
37
30
  enable: true,
38
- speed: 0.5,
31
+ speed: { max: 2, min: 0 },
39
32
  warp: true,
40
33
  },
41
34
  },
package/esm/index.js CHANGED
@@ -31,7 +31,7 @@ for (const key of Object.keys(palettes)) {
31
31
  if (!palette) {
32
32
  continue;
33
33
  }
34
- tsParticles.addPalette(key, palette);
34
+ tsParticles.pluginManager.addPalette(key, palette);
35
35
  }
36
36
  const configs = {
37
37
  ...a,
@@ -66,6 +66,6 @@ for (const key of Object.keys(configs)) {
66
66
  if (!config) {
67
67
  continue;
68
68
  }
69
- tsParticles.addConfig(config);
69
+ tsParticles.pluginManager.addConfig(config);
70
70
  }
71
71
  export default configs;
package/esm/m/index.js CHANGED
@@ -4,6 +4,7 @@ import motionDisable from "./motionDisable.js";
4
4
  import motionReduce from "./motionReduce.js";
5
5
  import mouseAttract from "./mouseAttract.js";
6
6
  import mouseBounce from "./mouseBounce.js";
7
+ import mouseCannon from "./mouseCannon.js";
7
8
  import mouseDrag from "./mouseDrag.js";
8
9
  import mouseDragMomentum from "./mouseDragMomentum.js";
9
10
  import mouseFollow from "./mouseFollow.js";
@@ -24,6 +25,7 @@ export default {
24
25
  motionReduce,
25
26
  mouseAttract,
26
27
  mouseBounce,
28
+ mouseCannon,
27
29
  mouseDrag,
28
30
  mouseDragMomentum,
29
31
  mouseFollow,
@@ -0,0 +1,100 @@
1
+ const options = {
2
+ key: "mouseCannon",
3
+ name: "Mouse Cannon",
4
+ particles: {
5
+ number: {
6
+ value: 0,
7
+ density: {
8
+ enable: true,
9
+ },
10
+ },
11
+ fill: {
12
+ color: {
13
+ value: ["#ffffff", "#ff0000"],
14
+ },
15
+ enable: true,
16
+ },
17
+ shape: {
18
+ type: ["square", "circle"],
19
+ },
20
+ size: {
21
+ value: {
22
+ min: 3,
23
+ max: 5,
24
+ },
25
+ },
26
+ move: {
27
+ enable: true,
28
+ speed: 1,
29
+ decay: 0.1,
30
+ gravity: {
31
+ enable: true,
32
+ },
33
+ outModes: {
34
+ default: "destroy",
35
+ top: "none",
36
+ },
37
+ },
38
+ rotate: {
39
+ value: {
40
+ min: 0,
41
+ max: 360,
42
+ },
43
+ direction: "random",
44
+ move: true,
45
+ animation: {
46
+ enable: true,
47
+ speed: 60,
48
+ },
49
+ },
50
+ tilt: {
51
+ direction: "random",
52
+ enable: true,
53
+ value: {
54
+ min: 0,
55
+ max: 360,
56
+ },
57
+ animation: {
58
+ enable: true,
59
+ speed: 60,
60
+ },
61
+ },
62
+ roll: {
63
+ darken: {
64
+ enable: true,
65
+ value: 30,
66
+ },
67
+ enlighten: {
68
+ enable: true,
69
+ value: 30,
70
+ },
71
+ enable: true,
72
+ mode: "both",
73
+ speed: {
74
+ min: 15,
75
+ max: 25,
76
+ },
77
+ },
78
+ wobble: {
79
+ distance: 30,
80
+ enable: true,
81
+ move: true,
82
+ speed: {
83
+ min: -15,
84
+ max: 15,
85
+ },
86
+ },
87
+ },
88
+ interactivity: {
89
+ events: {
90
+ onClick: {
91
+ enable: true,
92
+ mode: "cannon",
93
+ },
94
+ },
95
+ },
96
+ background: {
97
+ color: "#000000",
98
+ },
99
+ };
100
+ export default options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/configs",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.0-beta.1",
4
4
  "description": "tsParticles demo configurations",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -99,7 +99,7 @@
99
99
  "./package.json": "./package.json"
100
100
  },
101
101
  "dependencies": {
102
- "@tsparticles/engine": "4.0.0-beta.0"
102
+ "@tsparticles/engine": "4.0.0-beta.1"
103
103
  },
104
104
  "publishConfig": {
105
105
  "access": "public"