@tsparticles/configs 3.0.0-beta.3 → 3.0.0-beta.5

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 (198) 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 -0
  4. package/browser/d/dataImages.js +0 -1
  5. package/browser/{s/shapeBubble.js → 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 +5 -3
  16. package/browser/i/images.js +0 -1
  17. package/browser/i/imagesDirections.js +5 -2
  18. package/browser/l/localPolygonMask.js +5 -3
  19. package/browser/m/index.js +2 -0
  20. package/browser/m/mouseTrailNoise.js +118 -0
  21. package/browser/m/multiplePolygonMasks.js +5 -3
  22. package/browser/o/orbit.js +1 -1
  23. package/browser/p/index.js +2 -0
  24. package/browser/p/pathPolygonMask.js +5 -3
  25. package/browser/p/pathSvg.js +0 -1
  26. package/browser/p/polygonMask.js +5 -3
  27. package/browser/p/pop.js +67 -0
  28. package/browser/r/random.js +1 -1
  29. package/browser/r/reactBubbles.js +0 -1
  30. package/browser/r/reactNightSky.js +0 -1
  31. package/browser/r/reactPolygonMask.js +0 -1
  32. package/browser/r/reactSimple.js +0 -1
  33. package/browser/r/reactSnow.js +0 -1
  34. package/browser/r/ring.js +1 -1
  35. package/browser/s/index.js +2 -2
  36. package/browser/s/shapeEmoji.js +184 -0
  37. package/browser/s/shapeMultilineText.js +2 -2
  38. package/browser/s/style.js +1 -1
  39. package/browser/s/svgReplace.js +0 -1
  40. package/browser/t/themes.js +0 -1
  41. package/browser/t/tilt.js +1 -1
  42. package/browser/t/trail.js +1 -1
  43. package/browser/t/trailImage.js +1 -1
  44. package/browser/w/wobble.js +1 -1
  45. package/cjs/c/connect.js +3 -1
  46. package/cjs/c/curlNoise.js +51 -0
  47. package/cjs/c/index.js +2 -0
  48. package/cjs/d/dataImages.js +0 -1
  49. package/cjs/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  50. package/cjs/e/effectTrail.js +55 -0
  51. package/cjs/e/emitterImageShape.js +97 -0
  52. package/cjs/e/emitterImages.js +0 -1
  53. package/cjs/e/emitterShapes.js +56 -70
  54. package/cjs/e/emitterTextShape.js +102 -0
  55. package/cjs/e/emitterTextStrokeShape.js +102 -0
  56. package/cjs/e/index.js +10 -0
  57. package/cjs/f/fontawesome.js +0 -1
  58. package/cjs/g/gifs.js +1 -1
  59. package/cjs/h/hollowknight.js +5 -3
  60. package/cjs/i/images.js +0 -1
  61. package/cjs/i/imagesDirections.js +5 -2
  62. package/cjs/l/localPolygonMask.js +5 -3
  63. package/cjs/m/index.js +2 -0
  64. package/cjs/m/mouseTrailNoise.js +120 -0
  65. package/cjs/m/multiplePolygonMasks.js +5 -3
  66. package/cjs/o/orbit.js +1 -1
  67. package/cjs/p/index.js +2 -0
  68. package/cjs/p/pathPolygonMask.js +5 -3
  69. package/cjs/p/pathSvg.js +0 -1
  70. package/cjs/p/polygonMask.js +5 -3
  71. package/cjs/p/pop.js +69 -0
  72. package/cjs/r/random.js +1 -1
  73. package/cjs/r/reactBubbles.js +0 -1
  74. package/cjs/r/reactNightSky.js +0 -1
  75. package/cjs/r/reactPolygonMask.js +0 -1
  76. package/cjs/r/reactSimple.js +0 -1
  77. package/cjs/r/reactSnow.js +0 -1
  78. package/cjs/r/ring.js +1 -1
  79. package/cjs/s/index.js +2 -2
  80. package/cjs/s/shapeEmoji.js +186 -0
  81. package/cjs/s/shapeMultilineText.js +2 -2
  82. package/cjs/s/style.js +1 -1
  83. package/cjs/s/svgReplace.js +0 -1
  84. package/cjs/t/themes.js +0 -1
  85. package/cjs/t/tilt.js +1 -1
  86. package/cjs/t/trail.js +1 -1
  87. package/cjs/t/trailImage.js +1 -1
  88. package/cjs/w/wobble.js +1 -1
  89. package/esm/c/connect.js +3 -1
  90. package/esm/c/curlNoise.js +49 -0
  91. package/esm/c/index.js +2 -0
  92. package/esm/d/dataImages.js +0 -1
  93. package/esm/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  94. package/esm/e/effectTrail.js +53 -0
  95. package/esm/e/emitterImageShape.js +95 -0
  96. package/esm/e/emitterImages.js +0 -1
  97. package/esm/e/emitterShapes.js +56 -70
  98. package/esm/e/emitterTextShape.js +100 -0
  99. package/esm/e/emitterTextStrokeShape.js +100 -0
  100. package/esm/e/index.js +10 -0
  101. package/esm/f/fontawesome.js +0 -1
  102. package/esm/g/gifs.js +1 -1
  103. package/esm/h/hollowknight.js +5 -3
  104. package/esm/i/images.js +0 -1
  105. package/esm/i/imagesDirections.js +5 -2
  106. package/esm/l/localPolygonMask.js +5 -3
  107. package/esm/m/index.js +2 -0
  108. package/esm/m/mouseTrailNoise.js +118 -0
  109. package/esm/m/multiplePolygonMasks.js +5 -3
  110. package/esm/o/orbit.js +1 -1
  111. package/esm/p/index.js +2 -0
  112. package/esm/p/pathPolygonMask.js +5 -3
  113. package/esm/p/pathSvg.js +0 -1
  114. package/esm/p/polygonMask.js +5 -3
  115. package/esm/p/pop.js +67 -0
  116. package/esm/r/random.js +1 -1
  117. package/esm/r/reactBubbles.js +0 -1
  118. package/esm/r/reactNightSky.js +0 -1
  119. package/esm/r/reactPolygonMask.js +0 -1
  120. package/esm/r/reactSimple.js +0 -1
  121. package/esm/r/reactSnow.js +0 -1
  122. package/esm/r/ring.js +1 -1
  123. package/esm/s/index.js +2 -2
  124. package/esm/s/shapeEmoji.js +184 -0
  125. package/esm/s/shapeMultilineText.js +2 -2
  126. package/esm/s/style.js +1 -1
  127. package/esm/s/svgReplace.js +0 -1
  128. package/esm/t/themes.js +0 -1
  129. package/esm/t/tilt.js +1 -1
  130. package/esm/t/trail.js +1 -1
  131. package/esm/t/trailImage.js +1 -1
  132. package/esm/w/wobble.js +1 -1
  133. package/package.json +2 -2
  134. package/report.html +4 -22
  135. package/tsparticles.configs.bundle.js +1 -1
  136. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  137. package/tsparticles.configs.js +975 -173
  138. package/tsparticles.configs.min.js +1 -1
  139. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  140. package/types/c/index.d.ts +1 -0
  141. package/types/e/effectBubble.d.ts +3 -0
  142. package/types/e/effectTrail.d.ts +3 -0
  143. package/types/e/emitterImageShape.d.ts +3 -0
  144. package/types/e/emitterTextShape.d.ts +3 -0
  145. package/types/e/emitterTextStrokeShape.d.ts +3 -0
  146. package/types/e/index.d.ts +5 -0
  147. package/types/index.d.ts +9 -1
  148. package/types/m/index.d.ts +1 -0
  149. package/types/m/mouseTrailNoise.d.ts +3 -0
  150. package/types/p/index.d.ts +1 -0
  151. package/types/p/pop.d.ts +3 -0
  152. package/types/s/index.d.ts +1 -1
  153. package/types/s/shapeEmoji.d.ts +3 -0
  154. package/umd/c/connect.js +3 -1
  155. package/umd/c/curlNoise.js +61 -0
  156. package/umd/c/index.js +3 -1
  157. package/umd/d/dataImages.js +0 -1
  158. package/umd/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  159. package/umd/e/effectTrail.js +65 -0
  160. package/umd/e/emitterImageShape.js +107 -0
  161. package/umd/e/emitterImages.js +0 -1
  162. package/umd/e/emitterShapes.js +56 -70
  163. package/umd/e/emitterTextShape.js +112 -0
  164. package/umd/e/emitterTextStrokeShape.js +112 -0
  165. package/umd/e/index.js +11 -1
  166. package/umd/f/fontawesome.js +0 -1
  167. package/umd/g/gifs.js +1 -1
  168. package/umd/h/hollowknight.js +5 -3
  169. package/umd/i/images.js +0 -1
  170. package/umd/i/imagesDirections.js +5 -2
  171. package/umd/l/localPolygonMask.js +5 -3
  172. package/umd/m/index.js +3 -1
  173. package/umd/m/mouseTrailNoise.js +130 -0
  174. package/umd/m/multiplePolygonMasks.js +5 -3
  175. package/umd/o/orbit.js +1 -1
  176. package/umd/p/index.js +3 -1
  177. package/umd/p/pathPolygonMask.js +5 -3
  178. package/umd/p/pathSvg.js +0 -1
  179. package/umd/p/polygonMask.js +5 -3
  180. package/umd/p/pop.js +79 -0
  181. package/umd/r/random.js +1 -1
  182. package/umd/r/reactBubbles.js +0 -1
  183. package/umd/r/reactNightSky.js +0 -1
  184. package/umd/r/reactPolygonMask.js +0 -1
  185. package/umd/r/reactSimple.js +0 -1
  186. package/umd/r/reactSnow.js +0 -1
  187. package/umd/r/ring.js +1 -1
  188. package/umd/s/index.js +3 -3
  189. package/umd/s/shapeEmoji.js +196 -0
  190. package/umd/s/shapeMultilineText.js +2 -2
  191. package/umd/s/style.js +1 -1
  192. package/umd/s/svgReplace.js +0 -1
  193. package/umd/t/themes.js +0 -1
  194. package/umd/t/tilt.js +1 -1
  195. package/umd/t/trail.js +1 -1
  196. package/umd/t/trailImage.js +1 -1
  197. package/umd/w/wobble.js +1 -1
  198. /package/types/{s/shapeBubble.d.ts → c/curlNoise.d.ts} +0 -0
package/types/index.d.ts CHANGED
@@ -16,8 +16,8 @@ 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>;
20
+ shapeEmoji: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
21
21
  shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
22
22
  shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
23
23
  shapeOptions: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -64,6 +64,7 @@ declare const configs: {
64
64
  plasma: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
65
65
  polygonMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
66
66
  polygons: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
67
+ pop: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
67
68
  orbit: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
68
69
  nasa: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
69
70
  noconfig: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -77,6 +78,7 @@ declare const configs: {
77
78
  mouseBounce: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
78
79
  mouseFollow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
79
80
  mouseTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
81
+ mouseTrailNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
80
82
  moveAngle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
81
83
  moveDistance: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
82
84
  moveInside: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -102,12 +104,17 @@ declare const configs: {
102
104
  fireworks: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
103
105
  fontawesome: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
104
106
  forward: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
107
+ effectBubble: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
108
+ effectTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
105
109
  emitter: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
106
110
  emitterAbsorber: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
107
111
  emitterAngled: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
112
+ emitterImageShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
108
113
  emitterImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
109
114
  emitterPaths: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
110
115
  emitterShapes: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
116
+ emitterTextShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
117
+ emitterTextStrokeShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
111
118
  dataImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
112
119
  delay: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
113
120
  delayColor: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -125,6 +132,7 @@ declare const configs: {
125
132
  collisionsDestroy: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
126
133
  colorAnimation: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
127
134
  connect: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
135
+ curlNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
128
136
  backgroundMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
129
137
  basic: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
130
138
  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,8 +2,8 @@ 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>;
6
+ shapeEmoji: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
7
7
  shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
8
8
  shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
9
9
  shapeOptions: 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;
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: {
@@ -0,0 +1,61 @@
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: "Curl Noise",
14
+ particles: {
15
+ number: {
16
+ value: 300,
17
+ },
18
+ color: {
19
+ value: "#ff0000",
20
+ animation: {
21
+ enable: true,
22
+ speed: 360,
23
+ sync: true,
24
+ },
25
+ },
26
+ shape: {
27
+ type: "circle",
28
+ },
29
+ size: {
30
+ value: 3,
31
+ },
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",
44
+ },
45
+ enable: true,
46
+ speed: 3,
47
+ trail: {
48
+ fill: {
49
+ color: "#000",
50
+ },
51
+ enable: true,
52
+ length: 1000,
53
+ },
54
+ },
55
+ },
56
+ background: {
57
+ color: "#000000",
58
+ },
59
+ };
60
+ exports.default = options;
61
+ });
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"], 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,6 +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 curlNoise_js_1 = __importDefault(require("./curlNoise.js"));
23
24
  exports.default = {
24
25
  cards: cards_js_1.default,
25
26
  chars: chars_js_1.default,
@@ -29,5 +30,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
30
  collisionsDestroy: collisionsDestroy_js_1.default,
30
31
  colorAnimation: colorAnimation_js_1.default,
31
32
  connect: connect_js_1.default,
33
+ curlNoise: curlNoise_js_1.default,
32
34
  };
33
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;
@@ -0,0 +1,112 @@
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
+ type: shape,
20
+ options,
21
+ },
22
+ position: position,
23
+ size: {
24
+ width: 500,
25
+ height: 500,
26
+ mode: "precise",
27
+ },
28
+ startCount: 300,
29
+ rate,
30
+ fill,
31
+ };
32
+ };
33
+ const options = {
34
+ name: "Emitter Text Shape",
35
+ particles: {
36
+ number: {
37
+ value: 0,
38
+ },
39
+ color: {
40
+ value: [
41
+ "#f44336",
42
+ "#e91e63",
43
+ "#9c27b0",
44
+ "#673ab7",
45
+ "#3f51b5",
46
+ "#2196f3",
47
+ "#03a9f4",
48
+ "#00bcd4",
49
+ "#009688",
50
+ "#4CAF50",
51
+ "#8BC34A",
52
+ "#CDDC39",
53
+ "#FFEB3B",
54
+ "#FFC107",
55
+ "#FF9800",
56
+ "#FF5722",
57
+ ],
58
+ },
59
+ life: {
60
+ count: 1,
61
+ duration: {
62
+ value: 1.5,
63
+ },
64
+ },
65
+ move: {
66
+ enable: true,
67
+ speed: 0.5,
68
+ },
69
+ shape: {
70
+ type: "circle",
71
+ },
72
+ opacity: {
73
+ value: 1,
74
+ },
75
+ size: {
76
+ value: { min: 1, max: 10 },
77
+ animation: {
78
+ enable: true,
79
+ speed: 30,
80
+ sync: true,
81
+ startValue: "min",
82
+ count: 2,
83
+ },
84
+ },
85
+ },
86
+ background: {
87
+ color: "#fff",
88
+ },
89
+ emitters: [
90
+ generateEmitter("canvas", {
91
+ scale: 1,
92
+ pixels: {
93
+ filter: "pixelTextFilter",
94
+ offset: 4,
95
+ },
96
+ text: {
97
+ color: "#ff0000",
98
+ font: {
99
+ size: 500,
100
+ family: "Verdana",
101
+ },
102
+ text: "Particles",
103
+ lines: {
104
+ separator: "\n",
105
+ spacing: 10,
106
+ },
107
+ },
108
+ }, true, { x: 50, y: 50 }),
109
+ ],
110
+ };
111
+ exports.default = options;
112
+ });