@tsparticles/configs 3.0.0-beta.2 → 3.0.0-beta.4

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 (192) hide show
  1. package/browser/c/connect.js +3 -1
  2. package/browser/c/curlNoise.js +49 -0
  3. package/browser/c/index.js +2 -4
  4. package/browser/d/dataImages.js +0 -1
  5. package/{esm/s/shapeBubble.js → browser/e/effectBubble.js} +5 -2
  6. package/browser/e/effectTrail.js +53 -0
  7. package/browser/e/emitterImageShape.js +95 -0
  8. package/browser/e/emitterImages.js +0 -1
  9. package/browser/e/emitterShapes.js +56 -70
  10. package/browser/e/emitterTextShape.js +100 -0
  11. package/browser/e/emitterTextStrokeShape.js +100 -0
  12. package/browser/e/index.js +10 -0
  13. package/browser/f/fontawesome.js +0 -1
  14. package/browser/g/gifs.js +1 -1
  15. package/browser/h/hollowknight.js +0 -1
  16. package/browser/i/images.js +0 -1
  17. package/browser/l/localPolygonMask.js +0 -1
  18. package/browser/m/index.js +2 -0
  19. package/browser/m/mouseTrailNoise.js +118 -0
  20. package/browser/m/multiplePolygonMasks.js +0 -1
  21. package/browser/o/orbit.js +1 -1
  22. package/browser/p/index.js +2 -0
  23. package/browser/p/pathPolygonMask.js +0 -1
  24. package/browser/p/pathSvg.js +0 -1
  25. package/browser/p/polygonMask.js +0 -1
  26. package/browser/p/pop.js +67 -0
  27. package/browser/r/random.js +1 -1
  28. package/browser/r/reactBubbles.js +0 -1
  29. package/browser/r/reactNightSky.js +0 -1
  30. package/browser/r/reactPolygonMask.js +0 -1
  31. package/browser/r/reactSimple.js +0 -1
  32. package/browser/r/reactSnow.js +0 -1
  33. package/browser/r/ring.js +1 -1
  34. package/browser/s/index.js +0 -2
  35. package/browser/s/shapeMultilineText.js +2 -2
  36. package/browser/s/style.js +1 -1
  37. package/browser/s/svgReplace.js +0 -1
  38. package/browser/t/tilt.js +1 -1
  39. package/browser/t/trail.js +1 -1
  40. package/browser/t/trailImage.js +1 -1
  41. package/browser/w/wobble.js +1 -1
  42. package/cjs/c/connect.js +3 -1
  43. package/cjs/c/curlNoise.js +51 -0
  44. package/cjs/c/index.js +2 -4
  45. package/cjs/d/dataImages.js +0 -1
  46. package/cjs/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  47. package/cjs/e/effectTrail.js +55 -0
  48. package/cjs/e/emitterImageShape.js +97 -0
  49. package/cjs/e/emitterImages.js +0 -1
  50. package/cjs/e/emitterShapes.js +56 -70
  51. package/cjs/e/emitterTextShape.js +102 -0
  52. package/cjs/e/emitterTextStrokeShape.js +102 -0
  53. package/cjs/e/index.js +10 -0
  54. package/cjs/f/fontawesome.js +0 -1
  55. package/cjs/g/gifs.js +1 -1
  56. package/cjs/h/hollowknight.js +0 -1
  57. package/cjs/i/images.js +0 -1
  58. package/cjs/l/localPolygonMask.js +0 -1
  59. package/cjs/m/index.js +2 -0
  60. package/cjs/m/mouseTrailNoise.js +120 -0
  61. package/cjs/m/multiplePolygonMasks.js +0 -1
  62. package/cjs/o/orbit.js +1 -1
  63. package/cjs/p/index.js +2 -0
  64. package/cjs/p/pathPolygonMask.js +0 -1
  65. package/cjs/p/pathSvg.js +0 -1
  66. package/cjs/p/polygonMask.js +0 -1
  67. package/cjs/p/pop.js +69 -0
  68. package/cjs/r/random.js +1 -1
  69. package/cjs/r/reactBubbles.js +0 -1
  70. package/cjs/r/reactNightSky.js +0 -1
  71. package/cjs/r/reactPolygonMask.js +0 -1
  72. package/cjs/r/reactSimple.js +0 -1
  73. package/cjs/r/reactSnow.js +0 -1
  74. package/cjs/r/ring.js +1 -1
  75. package/cjs/s/index.js +0 -2
  76. package/cjs/s/shapeMultilineText.js +2 -2
  77. package/cjs/s/style.js +1 -1
  78. package/cjs/s/svgReplace.js +0 -1
  79. package/cjs/t/tilt.js +1 -1
  80. package/cjs/t/trail.js +1 -1
  81. package/cjs/t/trailImage.js +1 -1
  82. package/cjs/w/wobble.js +1 -1
  83. package/esm/c/connect.js +3 -1
  84. package/esm/c/curlNoise.js +49 -0
  85. package/esm/c/index.js +2 -4
  86. package/esm/d/dataImages.js +0 -1
  87. package/{browser/s/shapeBubble.js → esm/e/effectBubble.js} +5 -2
  88. package/esm/e/effectTrail.js +53 -0
  89. package/esm/e/emitterImageShape.js +95 -0
  90. package/esm/e/emitterImages.js +0 -1
  91. package/esm/e/emitterShapes.js +56 -70
  92. package/esm/e/emitterTextShape.js +100 -0
  93. package/esm/e/emitterTextStrokeShape.js +100 -0
  94. package/esm/e/index.js +10 -0
  95. package/esm/f/fontawesome.js +0 -1
  96. package/esm/g/gifs.js +1 -1
  97. package/esm/h/hollowknight.js +0 -1
  98. package/esm/i/images.js +0 -1
  99. package/esm/l/localPolygonMask.js +0 -1
  100. package/esm/m/index.js +2 -0
  101. package/esm/m/mouseTrailNoise.js +118 -0
  102. package/esm/m/multiplePolygonMasks.js +0 -1
  103. package/esm/o/orbit.js +1 -1
  104. package/esm/p/index.js +2 -0
  105. package/esm/p/pathPolygonMask.js +0 -1
  106. package/esm/p/pathSvg.js +0 -1
  107. package/esm/p/polygonMask.js +0 -1
  108. package/esm/p/pop.js +67 -0
  109. package/esm/r/random.js +1 -1
  110. package/esm/r/reactBubbles.js +0 -1
  111. package/esm/r/reactNightSky.js +0 -1
  112. package/esm/r/reactPolygonMask.js +0 -1
  113. package/esm/r/reactSimple.js +0 -1
  114. package/esm/r/reactSnow.js +0 -1
  115. package/esm/r/ring.js +1 -1
  116. package/esm/s/index.js +0 -2
  117. package/esm/s/shapeMultilineText.js +2 -2
  118. package/esm/s/style.js +1 -1
  119. package/esm/s/svgReplace.js +0 -1
  120. package/esm/t/tilt.js +1 -1
  121. package/esm/t/trail.js +1 -1
  122. package/esm/t/trailImage.js +1 -1
  123. package/esm/w/wobble.js +1 -1
  124. package/package.json +2 -2
  125. package/report.html +4 -22
  126. package/tsparticles.configs.bundle.js +1 -1
  127. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  128. package/tsparticles.configs.js +745 -202
  129. package/tsparticles.configs.min.js +1 -1
  130. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  131. package/types/c/index.d.ts +1 -2
  132. package/types/e/emitterImageShape.d.ts +3 -0
  133. package/types/e/emitterTextShape.d.ts +3 -0
  134. package/types/e/emitterTextStrokeShape.d.ts +3 -0
  135. package/types/e/index.d.ts +5 -0
  136. package/types/index.d.ts +8 -3
  137. package/types/m/index.d.ts +1 -0
  138. package/types/m/mouseTrailNoise.d.ts +3 -0
  139. package/types/p/index.d.ts +1 -0
  140. package/types/p/pop.d.ts +3 -0
  141. package/types/s/index.d.ts +0 -1
  142. package/umd/c/connect.js +3 -1
  143. package/umd/c/{customShape.js → curlNoise.js} +30 -30
  144. package/umd/c/index.js +3 -5
  145. package/umd/d/dataImages.js +0 -1
  146. package/umd/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  147. package/umd/e/effectTrail.js +65 -0
  148. package/umd/e/emitterImageShape.js +107 -0
  149. package/umd/e/emitterImages.js +0 -1
  150. package/umd/e/emitterShapes.js +56 -70
  151. package/umd/e/emitterTextShape.js +112 -0
  152. package/umd/e/emitterTextStrokeShape.js +112 -0
  153. package/umd/e/index.js +11 -1
  154. package/umd/f/fontawesome.js +0 -1
  155. package/umd/g/gifs.js +1 -1
  156. package/umd/h/hollowknight.js +0 -1
  157. package/umd/i/images.js +0 -1
  158. package/umd/l/localPolygonMask.js +0 -1
  159. package/umd/m/index.js +3 -1
  160. package/umd/m/mouseTrailNoise.js +130 -0
  161. package/umd/m/multiplePolygonMasks.js +0 -1
  162. package/umd/o/orbit.js +1 -1
  163. package/umd/p/index.js +3 -1
  164. package/umd/p/pathPolygonMask.js +0 -1
  165. package/umd/p/pathSvg.js +0 -1
  166. package/umd/p/polygonMask.js +0 -1
  167. package/umd/p/pop.js +79 -0
  168. package/umd/r/random.js +1 -1
  169. package/umd/r/reactBubbles.js +0 -1
  170. package/umd/r/reactNightSky.js +0 -1
  171. package/umd/r/reactPolygonMask.js +0 -1
  172. package/umd/r/reactSimple.js +0 -1
  173. package/umd/r/reactSnow.js +0 -1
  174. package/umd/r/ring.js +1 -1
  175. package/umd/s/index.js +1 -3
  176. package/umd/s/shapeMultilineText.js +2 -2
  177. package/umd/s/style.js +1 -1
  178. package/umd/s/svgReplace.js +0 -1
  179. package/umd/t/tilt.js +1 -1
  180. package/umd/t/trail.js +1 -1
  181. package/umd/t/trailImage.js +1 -1
  182. package/umd/w/wobble.js +1 -1
  183. package/browser/c/customPreset.js +0 -5
  184. package/browser/c/customShape.js +0 -49
  185. package/cjs/c/customPreset.js +0 -7
  186. package/cjs/c/customShape.js +0 -51
  187. package/esm/c/customPreset.js +0 -5
  188. package/esm/c/customShape.js +0 -49
  189. package/umd/c/customPreset.js +0 -17
  190. /package/types/c/{customPreset.d.ts → curlNoise.d.ts} +0 -0
  191. /package/types/{c/customShape.d.ts → e/effectBubble.d.ts} +0 -0
  192. /package/types/{s/shapeBubble.d.ts → e/effectTrail.d.ts} +0 -0
package/types/index.d.ts CHANGED
@@ -16,7 +16,6 @@ declare const configs: {
16
16
  seaAnemone: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
17
17
  shadow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
18
18
  shapeArrow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
19
- shapeBubble: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
20
19
  shapeCog: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
21
20
  shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
22
21
  shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -64,6 +63,7 @@ declare const configs: {
64
63
  plasma: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
65
64
  polygonMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
66
65
  polygons: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
66
+ pop: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
67
67
  orbit: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
68
68
  nasa: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
69
69
  noconfig: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -77,6 +77,7 @@ declare const configs: {
77
77
  mouseBounce: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
78
78
  mouseFollow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
79
79
  mouseTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
80
+ mouseTrailNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
80
81
  moveAngle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
81
82
  moveDistance: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
82
83
  moveInside: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -102,12 +103,17 @@ declare const configs: {
102
103
  fireworks: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
103
104
  fontawesome: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
104
105
  forward: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
106
+ effectBubble: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
107
+ effectTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
105
108
  emitter: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
106
109
  emitterAbsorber: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
107
110
  emitterAngled: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
111
+ emitterImageShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
108
112
  emitterImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
109
113
  emitterPaths: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
110
114
  emitterShapes: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
115
+ emitterTextShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
116
+ emitterTextStrokeShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
111
117
  dataImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
112
118
  delay: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
113
119
  delayColor: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -125,8 +131,7 @@ declare const configs: {
125
131
  collisionsDestroy: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
126
132
  colorAnimation: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
127
133
  connect: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
128
- customPreset: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
129
- customShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
134
+ curlNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
130
135
  backgroundMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
131
136
  basic: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
132
137
  big: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  mouseBounce: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
7
7
  mouseFollow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
8
8
  mouseTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
9
+ mouseTrailNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
9
10
  moveAngle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
10
11
  moveDistance: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
11
12
  moveInside: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -0,0 +1,3 @@
1
+ import type { ISourceOptions } from "@tsparticles/engine";
2
+ declare const options: ISourceOptions;
3
+ export default options;
@@ -6,5 +6,6 @@ declare const _default: {
6
6
  plasma: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
7
7
  polygonMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
8
8
  polygons: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
9
+ pop: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
9
10
  };
10
11
  export default _default;
@@ -0,0 +1,3 @@
1
+ import { type ISourceOptions } from "@tsparticles/engine";
2
+ declare const options: ISourceOptions;
3
+ export default options;
@@ -2,7 +2,6 @@ declare const _default: {
2
2
  seaAnemone: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
3
3
  shadow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
4
4
  shapeArrow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
5
- shapeBubble: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
6
5
  shapeCog: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
7
6
  shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
8
7
  shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
package/umd/c/connect.js CHANGED
@@ -75,7 +75,9 @@
75
75
  density: {
76
76
  enable: true,
77
77
  },
78
- limit: 500,
78
+ limit: {
79
+ value: 500,
80
+ },
79
81
  value: 300,
80
82
  },
81
83
  opacity: {
@@ -10,51 +10,51 @@
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const options = {
13
- name: "Custom Shape",
13
+ name: "Curl Noise",
14
14
  particles: {
15
- links: {
16
- enable: false,
15
+ number: {
16
+ value: 300,
17
17
  },
18
- stroke: {
19
- color: {
20
- value: "random",
18
+ color: {
19
+ value: "#ff0000",
20
+ animation: {
21
+ enable: true,
22
+ speed: 360,
23
+ sync: true,
21
24
  },
22
- width: 1,
23
25
  },
24
26
  shape: {
25
- type: "spiral",
26
- options: {
27
- spiral: {
28
- innerRadius: 1,
29
- lineSpacing: 1,
30
- fill: false,
31
- close: false,
32
- },
33
- },
27
+ type: "circle",
34
28
  },
35
29
  size: {
36
- value: 20,
30
+ value: 3,
37
31
  },
38
- rotate: {
39
- value: {
40
- min: 0,
41
- max: 360,
32
+ move: {
33
+ path: {
34
+ clamp: false,
35
+ enable: true,
36
+ options: {
37
+ step: 250,
38
+ speed: 1,
39
+ },
40
+ delay: {
41
+ value: 0,
42
+ },
43
+ generator: "curlNoise",
42
44
  },
43
- direction: "clockwise",
44
- animation: {
45
+ enable: true,
46
+ speed: 3,
47
+ trail: {
48
+ fill: {
49
+ color: "#000",
50
+ },
45
51
  enable: true,
46
- speed: 50,
47
- sync: false,
52
+ length: 1000,
48
53
  },
49
54
  },
50
55
  },
51
- preset: "links",
52
56
  background: {
53
57
  color: "#000000",
54
- image: "",
55
- position: "50% 50%",
56
- repeat: "no-repeat",
57
- size: "cover",
58
58
  },
59
59
  };
60
60
  exports.default = options;
package/umd/c/index.js CHANGED
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
7
7
  if (v !== undefined) module.exports = v;
8
8
  }
9
9
  else if (typeof define === "function" && define.amd) {
10
- define(["require", "exports", "./cards.js", "./chars.js", "./clickPause.js", "./collisionsAbsorb.js", "./collisionsBounce.js", "./collisionsDestroy.js", "./colorAnimation.js", "./connect.js", "./customPreset.js", "./customShape.js"], factory);
10
+ define(["require", "exports", "./cards.js", "./chars.js", "./clickPause.js", "./collisionsAbsorb.js", "./collisionsBounce.js", "./collisionsDestroy.js", "./colorAnimation.js", "./connect.js", "./curlNoise.js"], factory);
11
11
  }
12
12
  })(function (require, exports) {
13
13
  "use strict";
@@ -20,8 +20,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
20
20
  const collisionsDestroy_js_1 = __importDefault(require("./collisionsDestroy.js"));
21
21
  const colorAnimation_js_1 = __importDefault(require("./colorAnimation.js"));
22
22
  const connect_js_1 = __importDefault(require("./connect.js"));
23
- const customPreset_js_1 = __importDefault(require("./customPreset.js"));
24
- const customShape_js_1 = __importDefault(require("./customShape.js"));
23
+ const curlNoise_js_1 = __importDefault(require("./curlNoise.js"));
25
24
  exports.default = {
26
25
  cards: cards_js_1.default,
27
26
  chars: chars_js_1.default,
@@ -31,7 +30,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
31
30
  collisionsDestroy: collisionsDestroy_js_1.default,
32
31
  colorAnimation: colorAnimation_js_1.default,
33
32
  connect: connect_js_1.default,
34
- customPreset: customPreset_js_1.default,
35
- customShape: customShape_js_1.default,
33
+ curlNoise: curlNoise_js_1.default,
36
34
  };
37
35
  });
@@ -72,7 +72,6 @@
72
72
  density: {
73
73
  enable: true,
74
74
  },
75
- limit: 0,
76
75
  value: 80,
77
76
  },
78
77
  opacity: {
@@ -10,7 +10,7 @@
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const options = {
13
- name: "Shape Bubble",
13
+ name: "Effect Bubble",
14
14
  particles: {
15
15
  number: {
16
16
  value: 80,
@@ -26,9 +26,12 @@
26
26
  sync: true,
27
27
  },
28
28
  },
29
- shape: {
29
+ effect: {
30
30
  type: "bubble",
31
31
  },
32
+ shape: {
33
+ type: ["circle", "square"],
34
+ },
32
35
  opacity: {
33
36
  value: 0.5,
34
37
  },
@@ -0,0 +1,65 @@
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const options = {
13
+ name: "Effect Trail",
14
+ particles: {
15
+ number: {
16
+ value: 80,
17
+ density: {
18
+ enable: true,
19
+ },
20
+ },
21
+ color: {
22
+ value: "#ff0000",
23
+ animation: {
24
+ enable: true,
25
+ speed: 360,
26
+ sync: true,
27
+ },
28
+ },
29
+ effect: {
30
+ type: "trail",
31
+ options: {
32
+ trail: {
33
+ length: {
34
+ min: 10,
35
+ max: 30,
36
+ },
37
+ },
38
+ },
39
+ },
40
+ shape: {
41
+ type: "circle",
42
+ },
43
+ size: {
44
+ value: 10,
45
+ },
46
+ move: {
47
+ path: {
48
+ enable: true,
49
+ options: {
50
+ size: 32,
51
+ draw: false,
52
+ increment: 0.004,
53
+ },
54
+ generator: "simplexNoise",
55
+ },
56
+ enable: true,
57
+ speed: 6,
58
+ },
59
+ },
60
+ background: {
61
+ color: "#000000",
62
+ },
63
+ };
64
+ exports.default = options;
65
+ });
@@ -0,0 +1,107 @@
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const rate = {
13
+ delay: 0.1,
14
+ quantity: 100,
15
+ };
16
+ const generateEmitter = (shape, options, fill, position) => {
17
+ return {
18
+ shape: {
19
+ replace: {
20
+ color: true,
21
+ opacity: true,
22
+ },
23
+ type: shape,
24
+ options,
25
+ },
26
+ position: position,
27
+ size: {
28
+ width: 500,
29
+ height: 500,
30
+ mode: "precise",
31
+ },
32
+ startCount: 300,
33
+ rate,
34
+ fill,
35
+ };
36
+ };
37
+ const options = {
38
+ name: "Emitter Image Shape",
39
+ particles: {
40
+ number: {
41
+ value: 0,
42
+ },
43
+ color: {
44
+ value: [
45
+ "#f44336",
46
+ "#e91e63",
47
+ "#9c27b0",
48
+ "#673ab7",
49
+ "#3f51b5",
50
+ "#2196f3",
51
+ "#03a9f4",
52
+ "#00bcd4",
53
+ "#009688",
54
+ "#4CAF50",
55
+ "#8BC34A",
56
+ "#CDDC39",
57
+ "#FFEB3B",
58
+ "#FFC107",
59
+ "#FF9800",
60
+ "#FF5722",
61
+ ],
62
+ },
63
+ life: {
64
+ count: 1,
65
+ duration: {
66
+ value: 1.5,
67
+ },
68
+ },
69
+ move: {
70
+ enable: true,
71
+ speed: 0.5,
72
+ },
73
+ shape: {
74
+ type: "circle",
75
+ },
76
+ opacity: {
77
+ value: 1,
78
+ },
79
+ size: {
80
+ value: { min: 1, max: 10 },
81
+ animation: {
82
+ enable: true,
83
+ speed: 30,
84
+ sync: true,
85
+ startValue: "min",
86
+ count: 2,
87
+ },
88
+ },
89
+ },
90
+ background: {
91
+ color: "#fff",
92
+ },
93
+ emitters: [
94
+ generateEmitter("canvas", {
95
+ scale: 5,
96
+ pixels: {
97
+ filter: "pixelFilter",
98
+ offset: 4,
99
+ },
100
+ image: {
101
+ src: "https://particles.js.org/images/amongus_cyan.png",
102
+ },
103
+ }, true, { x: 50, y: 50 }),
104
+ ],
105
+ };
106
+ exports.default = options;
107
+ });
@@ -21,7 +21,6 @@
21
21
  density: {
22
22
  enable: true,
23
23
  },
24
- limit: 0,
25
24
  value: 80,
26
25
  },
27
26
  opacity: {
@@ -9,6 +9,45 @@
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ const rate = {
13
+ delay: 0.1,
14
+ quantity: 3,
15
+ };
16
+ const generateEmitter = (shape, options, fill, position) => {
17
+ return {
18
+ shape: {
19
+ type: shape,
20
+ options,
21
+ },
22
+ position: position,
23
+ size: {
24
+ width: 200,
25
+ height: 200,
26
+ mode: "precise",
27
+ },
28
+ life: {
29
+ duration: 10,
30
+ delay: 0.5,
31
+ count: 1,
32
+ },
33
+ rate,
34
+ fill,
35
+ };
36
+ };
37
+ const path = [
38
+ { x: 0, y: 0 },
39
+ { x: 0, y: 50 },
40
+ { x: 25, y: 50 },
41
+ { x: 0, y: 100 },
42
+ { x: 50, y: 100 },
43
+ { x: 50, y: 75 },
44
+ { x: 100, y: 100 },
45
+ { x: 100, y: 50 },
46
+ { x: 75, y: 50 },
47
+ { x: 100, y: 0 },
48
+ { x: 50, y: 0 },
49
+ { x: 50, y: 25 },
50
+ ];
12
51
  const options = {
13
52
  name: "Emitter Shapes",
14
53
  particles: {
@@ -32,76 +71,23 @@
32
71
  color: "#fff",
33
72
  },
34
73
  emitters: [
35
- {
36
- shape: "square",
37
- position: {
38
- x: 33,
39
- y: 33,
40
- },
41
- size: {
42
- width: 200,
43
- height: 200,
44
- mode: "precise",
45
- },
46
- life: {
47
- duration: 10,
48
- delay: 0.5,
49
- count: 1,
50
- },
51
- },
52
- {
53
- shape: "circle",
54
- position: {
55
- x: 67,
56
- y: 33,
57
- },
58
- size: {
59
- width: 200,
60
- height: 200,
61
- mode: "precise",
62
- },
63
- life: {
64
- duration: 10,
65
- delay: 0.5,
66
- count: 1,
67
- },
68
- },
69
- {
70
- fill: false,
71
- shape: "square",
72
- position: {
73
- x: 33,
74
- y: 67,
75
- },
76
- size: {
77
- width: 200,
78
- height: 200,
79
- mode: "precise",
80
- },
81
- life: {
82
- duration: 10,
83
- delay: 0.5,
84
- count: 1,
85
- },
86
- },
87
- {
88
- fill: false,
89
- shape: "circle",
90
- position: {
91
- x: 67,
92
- y: 67,
93
- },
94
- size: {
95
- width: 200,
96
- height: 200,
97
- mode: "precise",
98
- },
99
- life: {
100
- duration: 10,
101
- delay: 0.5,
102
- count: 1,
103
- },
104
- },
74
+ generateEmitter("square", {}, true, { x: 25, y: 25 }),
75
+ generateEmitter("circle", {}, true, { x: 50, y: 25 }),
76
+ generateEmitter("polygon", {
77
+ angle: -18,
78
+ sides: 5,
79
+ }, true, { x: 75, y: 25 }),
80
+ generateEmitter("square", {}, false, { x: 25, y: 50 }),
81
+ generateEmitter("circle", {}, false, { x: 50, y: 50 }),
82
+ generateEmitter("polygon", {
83
+ sides: 6,
84
+ }, false, { x: 75, y: 50 }),
85
+ generateEmitter("path", {
86
+ points: path,
87
+ }, true, { x: 25, y: 75 }),
88
+ generateEmitter("path", {
89
+ points: path,
90
+ }, false, { x: 50, y: 75 }),
105
91
  ],
106
92
  };
107
93
  exports.default = options;