@tsparticles/configs 4.0.0-beta.16 → 4.0.0-beta.17

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.
@@ -52,10 +52,6 @@ const minFilterValue = 30, minFilterAlpha = 0, options = {
52
52
  },
53
53
  background: {
54
54
  color: "#000000",
55
- image: "",
56
- position: "50% 50%",
57
- repeat: "no-repeat",
58
- size: "cover",
59
55
  },
60
56
  };
61
57
  export default options;
@@ -0,0 +1,64 @@
1
+ const minFilterValue = 30, minFilterAlpha = 0, options = {
2
+ key: "imageMaskRepulse",
3
+ name: "Image Mask Repulse Restore",
4
+ smooth: true,
5
+ interactivity: {
6
+ events: {
7
+ onHover: {
8
+ enable: true,
9
+ mode: "repulse",
10
+ },
11
+ },
12
+ modes: {
13
+ repulse: {
14
+ distance: 50,
15
+ duration: 0.4,
16
+ speed: 1,
17
+ factor: 90,
18
+ maxSpeed: 80,
19
+ restore: {
20
+ enable: true,
21
+ delay: 0,
22
+ speed: 0.3,
23
+ follow: true,
24
+ },
25
+ },
26
+ },
27
+ },
28
+ particles: {
29
+ move: {
30
+ direction: "none",
31
+ distance: 10,
32
+ enable: false,
33
+ speed: 1,
34
+ },
35
+ number: {
36
+ value: 600,
37
+ },
38
+ shape: {
39
+ type: ["circle", "square", "triangle"],
40
+ },
41
+ size: {
42
+ value: {
43
+ min: 3,
44
+ max: 5,
45
+ },
46
+ },
47
+ },
48
+ canvasMask: {
49
+ enable: true,
50
+ scale: 5,
51
+ pixels: {
52
+ filter: (pixel) => pixel.r < minFilterValue && pixel.g < minFilterValue && pixel.b < minFilterValue
53
+ ? false
54
+ : pixel.a > minFilterAlpha,
55
+ },
56
+ image: {
57
+ src: "https://particles.js.org/images/hdr/amongus_cyan.png",
58
+ },
59
+ },
60
+ background: {
61
+ color: "#000000",
62
+ },
63
+ };
64
+ export default options;
@@ -1,9 +1,11 @@
1
1
  import imageMask from "./imageMask.js";
2
+ import imageMaskRepulse from "./imageMaskRepulse.js";
2
3
  import images from "./images.js";
3
4
  import imagesDirections from "./imagesDirections.js";
4
5
  import infection from "./infection.js";
5
6
  export default {
6
7
  imageMask,
8
+ imageMaskRepulse,
7
9
  images,
8
10
  imagesDirections,
9
11
  infection,
@@ -52,10 +52,6 @@ const minFilterValue = 30, minFilterAlpha = 0, options = {
52
52
  },
53
53
  background: {
54
54
  color: "#000000",
55
- image: "",
56
- position: "50% 50%",
57
- repeat: "no-repeat",
58
- size: "cover",
59
55
  },
60
56
  };
61
57
  export default options;
@@ -0,0 +1,64 @@
1
+ const minFilterValue = 30, minFilterAlpha = 0, options = {
2
+ key: "imageMaskRepulse",
3
+ name: "Image Mask Repulse Restore",
4
+ smooth: true,
5
+ interactivity: {
6
+ events: {
7
+ onHover: {
8
+ enable: true,
9
+ mode: "repulse",
10
+ },
11
+ },
12
+ modes: {
13
+ repulse: {
14
+ distance: 50,
15
+ duration: 0.4,
16
+ speed: 1,
17
+ factor: 90,
18
+ maxSpeed: 80,
19
+ restore: {
20
+ enable: true,
21
+ delay: 0,
22
+ speed: 0.3,
23
+ follow: true,
24
+ },
25
+ },
26
+ },
27
+ },
28
+ particles: {
29
+ move: {
30
+ direction: "none",
31
+ distance: 10,
32
+ enable: false,
33
+ speed: 1,
34
+ },
35
+ number: {
36
+ value: 600,
37
+ },
38
+ shape: {
39
+ type: ["circle", "square", "triangle"],
40
+ },
41
+ size: {
42
+ value: {
43
+ min: 3,
44
+ max: 5,
45
+ },
46
+ },
47
+ },
48
+ canvasMask: {
49
+ enable: true,
50
+ scale: 5,
51
+ pixels: {
52
+ filter: (pixel) => pixel.r < minFilterValue && pixel.g < minFilterValue && pixel.b < minFilterValue
53
+ ? false
54
+ : pixel.a > minFilterAlpha,
55
+ },
56
+ image: {
57
+ src: "https://particles.js.org/images/hdr/amongus_cyan.png",
58
+ },
59
+ },
60
+ background: {
61
+ color: "#000000",
62
+ },
63
+ };
64
+ export default options;
package/cjs/i/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import imageMask from "./imageMask.js";
2
+ import imageMaskRepulse from "./imageMaskRepulse.js";
2
3
  import images from "./images.js";
3
4
  import imagesDirections from "./imagesDirections.js";
4
5
  import infection from "./infection.js";
5
6
  export default {
6
7
  imageMask,
8
+ imageMaskRepulse,
7
9
  images,
8
10
  imagesDirections,
9
11
  infection,
@@ -52,10 +52,6 @@ const minFilterValue = 30, minFilterAlpha = 0, options = {
52
52
  },
53
53
  background: {
54
54
  color: "#000000",
55
- image: "",
56
- position: "50% 50%",
57
- repeat: "no-repeat",
58
- size: "cover",
59
55
  },
60
56
  };
61
57
  export default options;
@@ -0,0 +1,64 @@
1
+ const minFilterValue = 30, minFilterAlpha = 0, options = {
2
+ key: "imageMaskRepulse",
3
+ name: "Image Mask Repulse Restore",
4
+ smooth: true,
5
+ interactivity: {
6
+ events: {
7
+ onHover: {
8
+ enable: true,
9
+ mode: "repulse",
10
+ },
11
+ },
12
+ modes: {
13
+ repulse: {
14
+ distance: 50,
15
+ duration: 0.4,
16
+ speed: 1,
17
+ factor: 90,
18
+ maxSpeed: 80,
19
+ restore: {
20
+ enable: true,
21
+ delay: 0,
22
+ speed: 0.3,
23
+ follow: true,
24
+ },
25
+ },
26
+ },
27
+ },
28
+ particles: {
29
+ move: {
30
+ direction: "none",
31
+ distance: 10,
32
+ enable: false,
33
+ speed: 1,
34
+ },
35
+ number: {
36
+ value: 600,
37
+ },
38
+ shape: {
39
+ type: ["circle", "square", "triangle"],
40
+ },
41
+ size: {
42
+ value: {
43
+ min: 3,
44
+ max: 5,
45
+ },
46
+ },
47
+ },
48
+ canvasMask: {
49
+ enable: true,
50
+ scale: 5,
51
+ pixels: {
52
+ filter: (pixel) => pixel.r < minFilterValue && pixel.g < minFilterValue && pixel.b < minFilterValue
53
+ ? false
54
+ : pixel.a > minFilterAlpha,
55
+ },
56
+ image: {
57
+ src: "https://particles.js.org/images/hdr/amongus_cyan.png",
58
+ },
59
+ },
60
+ background: {
61
+ color: "#000000",
62
+ },
63
+ };
64
+ export default options;
package/esm/i/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import imageMask from "./imageMask.js";
2
+ import imageMaskRepulse from "./imageMaskRepulse.js";
2
3
  import images from "./images.js";
3
4
  import imagesDirections from "./imagesDirections.js";
4
5
  import infection from "./infection.js";
5
6
  export default {
6
7
  imageMask,
8
+ imageMaskRepulse,
7
9
  images,
8
10
  imagesDirections,
9
11
  infection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/configs",
3
- "version": "4.0.0-beta.16",
3
+ "version": "4.0.0-beta.17",
4
4
  "description": "tsParticles demo configurations",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -105,7 +105,7 @@
105
105
  "./package.json": "./package.json"
106
106
  },
107
107
  "peerDependencies": {
108
- "@tsparticles/engine": "4.0.0-beta.16"
108
+ "@tsparticles/engine": "4.0.0-beta.17"
109
109
  },
110
110
  "publishConfig": {
111
111
  "access": "public"