@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
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const options = {
4
+ name: "Curl Noise",
5
+ particles: {
6
+ number: {
7
+ value: 300,
8
+ },
9
+ color: {
10
+ value: "#ff0000",
11
+ animation: {
12
+ enable: true,
13
+ speed: 360,
14
+ sync: true,
15
+ },
16
+ },
17
+ shape: {
18
+ type: "circle",
19
+ },
20
+ size: {
21
+ value: 3,
22
+ },
23
+ move: {
24
+ path: {
25
+ clamp: false,
26
+ enable: true,
27
+ options: {
28
+ step: 250,
29
+ speed: 1,
30
+ },
31
+ delay: {
32
+ value: 0,
33
+ },
34
+ generator: "curlNoise",
35
+ },
36
+ enable: true,
37
+ speed: 3,
38
+ trail: {
39
+ fill: {
40
+ color: "#000",
41
+ },
42
+ enable: true,
43
+ length: 1000,
44
+ },
45
+ },
46
+ },
47
+ background: {
48
+ color: "#000000",
49
+ },
50
+ };
51
+ exports.default = options;
package/cjs/c/index.js CHANGED
@@ -11,6 +11,7 @@ const collisionsBounce_js_1 = __importDefault(require("./collisionsBounce.js"));
11
11
  const collisionsDestroy_js_1 = __importDefault(require("./collisionsDestroy.js"));
12
12
  const colorAnimation_js_1 = __importDefault(require("./colorAnimation.js"));
13
13
  const connect_js_1 = __importDefault(require("./connect.js"));
14
+ const curlNoise_js_1 = __importDefault(require("./curlNoise.js"));
14
15
  exports.default = {
15
16
  cards: cards_js_1.default,
16
17
  chars: chars_js_1.default,
@@ -20,4 +21,5 @@ exports.default = {
20
21
  collisionsDestroy: collisionsDestroy_js_1.default,
21
22
  colorAnimation: colorAnimation_js_1.default,
22
23
  connect: connect_js_1.default,
24
+ curlNoise: curlNoise_js_1.default,
23
25
  };
@@ -63,7 +63,6 @@ const options = {
63
63
  density: {
64
64
  enable: true,
65
65
  },
66
- limit: 0,
67
66
  value: 80,
68
67
  },
69
68
  opacity: {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const options = {
4
- name: "Shape Bubble",
4
+ name: "Effect Bubble",
5
5
  particles: {
6
6
  number: {
7
7
  value: 80,
@@ -17,9 +17,12 @@ const options = {
17
17
  sync: true,
18
18
  },
19
19
  },
20
- shape: {
20
+ effect: {
21
21
  type: "bubble",
22
22
  },
23
+ shape: {
24
+ type: ["circle", "square"],
25
+ },
23
26
  opacity: {
24
27
  value: 0.5,
25
28
  },
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const options = {
4
+ name: "Effect Trail",
5
+ particles: {
6
+ number: {
7
+ value: 80,
8
+ density: {
9
+ enable: true,
10
+ },
11
+ },
12
+ color: {
13
+ value: "#ff0000",
14
+ animation: {
15
+ enable: true,
16
+ speed: 360,
17
+ sync: true,
18
+ },
19
+ },
20
+ effect: {
21
+ type: "trail",
22
+ options: {
23
+ trail: {
24
+ length: {
25
+ min: 10,
26
+ max: 30,
27
+ },
28
+ },
29
+ },
30
+ },
31
+ shape: {
32
+ type: "circle",
33
+ },
34
+ size: {
35
+ value: 10,
36
+ },
37
+ move: {
38
+ path: {
39
+ enable: true,
40
+ options: {
41
+ size: 32,
42
+ draw: false,
43
+ increment: 0.004,
44
+ },
45
+ generator: "simplexNoise",
46
+ },
47
+ enable: true,
48
+ speed: 6,
49
+ },
50
+ },
51
+ background: {
52
+ color: "#000000",
53
+ },
54
+ };
55
+ exports.default = options;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const rate = {
4
+ delay: 0.1,
5
+ quantity: 100,
6
+ };
7
+ const generateEmitter = (shape, options, fill, position) => {
8
+ return {
9
+ shape: {
10
+ replace: {
11
+ color: true,
12
+ opacity: true,
13
+ },
14
+ type: shape,
15
+ options,
16
+ },
17
+ position: position,
18
+ size: {
19
+ width: 500,
20
+ height: 500,
21
+ mode: "precise",
22
+ },
23
+ startCount: 300,
24
+ rate,
25
+ fill,
26
+ };
27
+ };
28
+ const options = {
29
+ name: "Emitter Image Shape",
30
+ particles: {
31
+ number: {
32
+ value: 0,
33
+ },
34
+ color: {
35
+ value: [
36
+ "#f44336",
37
+ "#e91e63",
38
+ "#9c27b0",
39
+ "#673ab7",
40
+ "#3f51b5",
41
+ "#2196f3",
42
+ "#03a9f4",
43
+ "#00bcd4",
44
+ "#009688",
45
+ "#4CAF50",
46
+ "#8BC34A",
47
+ "#CDDC39",
48
+ "#FFEB3B",
49
+ "#FFC107",
50
+ "#FF9800",
51
+ "#FF5722",
52
+ ],
53
+ },
54
+ life: {
55
+ count: 1,
56
+ duration: {
57
+ value: 1.5,
58
+ },
59
+ },
60
+ move: {
61
+ enable: true,
62
+ speed: 0.5,
63
+ },
64
+ shape: {
65
+ type: "circle",
66
+ },
67
+ opacity: {
68
+ value: 1,
69
+ },
70
+ size: {
71
+ value: { min: 1, max: 10 },
72
+ animation: {
73
+ enable: true,
74
+ speed: 30,
75
+ sync: true,
76
+ startValue: "min",
77
+ count: 2,
78
+ },
79
+ },
80
+ },
81
+ background: {
82
+ color: "#fff",
83
+ },
84
+ emitters: [
85
+ generateEmitter("canvas", {
86
+ scale: 5,
87
+ pixels: {
88
+ filter: "pixelFilter",
89
+ offset: 4,
90
+ },
91
+ image: {
92
+ src: "https://particles.js.org/images/amongus_cyan.png",
93
+ },
94
+ }, true, { x: 50, y: 50 }),
95
+ ],
96
+ };
97
+ exports.default = options;
@@ -12,7 +12,6 @@ const options = {
12
12
  density: {
13
13
  enable: true,
14
14
  },
15
- limit: 0,
16
15
  value: 80,
17
16
  },
18
17
  opacity: {
@@ -1,5 +1,44 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const rate = {
4
+ delay: 0.1,
5
+ quantity: 3,
6
+ };
7
+ const generateEmitter = (shape, options, fill, position) => {
8
+ return {
9
+ shape: {
10
+ type: shape,
11
+ options,
12
+ },
13
+ position: position,
14
+ size: {
15
+ width: 200,
16
+ height: 200,
17
+ mode: "precise",
18
+ },
19
+ life: {
20
+ duration: 10,
21
+ delay: 0.5,
22
+ count: 1,
23
+ },
24
+ rate,
25
+ fill,
26
+ };
27
+ };
28
+ const path = [
29
+ { x: 0, y: 0 },
30
+ { x: 0, y: 50 },
31
+ { x: 25, y: 50 },
32
+ { x: 0, y: 100 },
33
+ { x: 50, y: 100 },
34
+ { x: 50, y: 75 },
35
+ { x: 100, y: 100 },
36
+ { x: 100, y: 50 },
37
+ { x: 75, y: 50 },
38
+ { x: 100, y: 0 },
39
+ { x: 50, y: 0 },
40
+ { x: 50, y: 25 },
41
+ ];
3
42
  const options = {
4
43
  name: "Emitter Shapes",
5
44
  particles: {
@@ -23,76 +62,23 @@ const options = {
23
62
  color: "#fff",
24
63
  },
25
64
  emitters: [
26
- {
27
- shape: "square",
28
- position: {
29
- x: 33,
30
- y: 33,
31
- },
32
- size: {
33
- width: 200,
34
- height: 200,
35
- mode: "precise",
36
- },
37
- life: {
38
- duration: 10,
39
- delay: 0.5,
40
- count: 1,
41
- },
42
- },
43
- {
44
- shape: "circle",
45
- position: {
46
- x: 67,
47
- y: 33,
48
- },
49
- size: {
50
- width: 200,
51
- height: 200,
52
- mode: "precise",
53
- },
54
- life: {
55
- duration: 10,
56
- delay: 0.5,
57
- count: 1,
58
- },
59
- },
60
- {
61
- fill: false,
62
- shape: "square",
63
- position: {
64
- x: 33,
65
- y: 67,
66
- },
67
- size: {
68
- width: 200,
69
- height: 200,
70
- mode: "precise",
71
- },
72
- life: {
73
- duration: 10,
74
- delay: 0.5,
75
- count: 1,
76
- },
77
- },
78
- {
79
- fill: false,
80
- shape: "circle",
81
- position: {
82
- x: 67,
83
- y: 67,
84
- },
85
- size: {
86
- width: 200,
87
- height: 200,
88
- mode: "precise",
89
- },
90
- life: {
91
- duration: 10,
92
- delay: 0.5,
93
- count: 1,
94
- },
95
- },
65
+ generateEmitter("square", {}, true, { x: 25, y: 25 }),
66
+ generateEmitter("circle", {}, true, { x: 50, y: 25 }),
67
+ generateEmitter("polygon", {
68
+ angle: -18,
69
+ sides: 5,
70
+ }, true, { x: 75, y: 25 }),
71
+ generateEmitter("square", {}, false, { x: 25, y: 50 }),
72
+ generateEmitter("circle", {}, false, { x: 50, y: 50 }),
73
+ generateEmitter("polygon", {
74
+ sides: 6,
75
+ }, false, { x: 75, y: 50 }),
76
+ generateEmitter("path", {
77
+ points: path,
78
+ }, true, { x: 25, y: 75 }),
79
+ generateEmitter("path", {
80
+ points: path,
81
+ }, false, { x: 50, y: 75 }),
96
82
  ],
97
83
  };
98
84
  exports.default = options;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const rate = {
4
+ delay: 0.1,
5
+ quantity: 100,
6
+ };
7
+ const generateEmitter = (shape, options, fill, position) => {
8
+ return {
9
+ shape: {
10
+ type: shape,
11
+ options,
12
+ },
13
+ position: position,
14
+ size: {
15
+ width: 500,
16
+ height: 500,
17
+ mode: "precise",
18
+ },
19
+ startCount: 300,
20
+ rate,
21
+ fill,
22
+ };
23
+ };
24
+ const options = {
25
+ name: "Emitter Text Shape",
26
+ particles: {
27
+ number: {
28
+ value: 0,
29
+ },
30
+ color: {
31
+ value: [
32
+ "#f44336",
33
+ "#e91e63",
34
+ "#9c27b0",
35
+ "#673ab7",
36
+ "#3f51b5",
37
+ "#2196f3",
38
+ "#03a9f4",
39
+ "#00bcd4",
40
+ "#009688",
41
+ "#4CAF50",
42
+ "#8BC34A",
43
+ "#CDDC39",
44
+ "#FFEB3B",
45
+ "#FFC107",
46
+ "#FF9800",
47
+ "#FF5722",
48
+ ],
49
+ },
50
+ life: {
51
+ count: 1,
52
+ duration: {
53
+ value: 1.5,
54
+ },
55
+ },
56
+ move: {
57
+ enable: true,
58
+ speed: 0.5,
59
+ },
60
+ shape: {
61
+ type: "circle",
62
+ },
63
+ opacity: {
64
+ value: 1,
65
+ },
66
+ size: {
67
+ value: { min: 1, max: 10 },
68
+ animation: {
69
+ enable: true,
70
+ speed: 30,
71
+ sync: true,
72
+ startValue: "min",
73
+ count: 2,
74
+ },
75
+ },
76
+ },
77
+ background: {
78
+ color: "#fff",
79
+ },
80
+ emitters: [
81
+ generateEmitter("canvas", {
82
+ scale: 1,
83
+ pixels: {
84
+ filter: "pixelTextFilter",
85
+ offset: 4,
86
+ },
87
+ text: {
88
+ color: "#ff0000",
89
+ font: {
90
+ size: 500,
91
+ family: "Verdana",
92
+ },
93
+ text: "Particles",
94
+ lines: {
95
+ separator: "\n",
96
+ spacing: 10,
97
+ },
98
+ },
99
+ }, true, { x: 50, y: 50 }),
100
+ ],
101
+ };
102
+ exports.default = options;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const rate = {
4
+ delay: 0.1,
5
+ quantity: 100,
6
+ };
7
+ const generateEmitter = (shape, options, fill, position) => {
8
+ return {
9
+ shape: {
10
+ type: shape,
11
+ options,
12
+ },
13
+ position: position,
14
+ size: {
15
+ width: 500,
16
+ height: 500,
17
+ mode: "precise",
18
+ },
19
+ startCount: 300,
20
+ rate,
21
+ fill,
22
+ };
23
+ };
24
+ const options = {
25
+ name: "Emitter Text Stroke Shape",
26
+ particles: {
27
+ number: {
28
+ value: 0,
29
+ },
30
+ color: {
31
+ value: [
32
+ "#f44336",
33
+ "#e91e63",
34
+ "#9c27b0",
35
+ "#673ab7",
36
+ "#3f51b5",
37
+ "#2196f3",
38
+ "#03a9f4",
39
+ "#00bcd4",
40
+ "#009688",
41
+ "#4CAF50",
42
+ "#8BC34A",
43
+ "#CDDC39",
44
+ "#FFEB3B",
45
+ "#FFC107",
46
+ "#FF9800",
47
+ "#FF5722",
48
+ ],
49
+ },
50
+ life: {
51
+ count: 1,
52
+ duration: {
53
+ value: 1.5,
54
+ },
55
+ },
56
+ move: {
57
+ enable: true,
58
+ speed: 0.5,
59
+ },
60
+ shape: {
61
+ type: "circle",
62
+ },
63
+ opacity: {
64
+ value: 1,
65
+ },
66
+ size: {
67
+ value: { min: 1, max: 10 },
68
+ animation: {
69
+ enable: true,
70
+ speed: 30,
71
+ sync: true,
72
+ startValue: "min",
73
+ count: 2,
74
+ },
75
+ },
76
+ },
77
+ background: {
78
+ color: "#fff",
79
+ },
80
+ emitters: [
81
+ generateEmitter("canvas", {
82
+ scale: 1,
83
+ pixels: {
84
+ filter: "pixelTextFilter",
85
+ offset: 4,
86
+ },
87
+ text: {
88
+ color: "#ff0000",
89
+ font: {
90
+ size: 500,
91
+ family: "Verdana",
92
+ },
93
+ text: "Particles",
94
+ lines: {
95
+ separator: "\n",
96
+ spacing: 10,
97
+ },
98
+ },
99
+ }, false, { x: 50, y: 50 }),
100
+ ],
101
+ };
102
+ exports.default = options;
package/cjs/e/index.js CHANGED
@@ -3,17 +3,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const effectBubble_js_1 = __importDefault(require("./effectBubble.js"));
7
+ const effectTrail_js_1 = __importDefault(require("./effectTrail.js"));
6
8
  const emitter_js_1 = __importDefault(require("./emitter.js"));
7
9
  const emitterAbsorber_js_1 = __importDefault(require("./emitterAbsorber.js"));
8
10
  const emitterAngled_js_1 = __importDefault(require("./emitterAngled.js"));
11
+ const emitterImageShape_js_1 = __importDefault(require("./emitterImageShape.js"));
9
12
  const emitterImages_js_1 = __importDefault(require("./emitterImages.js"));
10
13
  const emitterPaths_js_1 = __importDefault(require("./emitterPaths.js"));
11
14
  const emitterShapes_js_1 = __importDefault(require("./emitterShapes.js"));
15
+ const emitterTextShape_js_1 = __importDefault(require("./emitterTextShape.js"));
16
+ const emitterTextStrokeShape_js_1 = __importDefault(require("./emitterTextStrokeShape.js"));
12
17
  exports.default = {
18
+ effectBubble: effectBubble_js_1.default,
19
+ effectTrail: effectTrail_js_1.default,
13
20
  emitter: emitter_js_1.default,
14
21
  emitterAbsorber: emitterAbsorber_js_1.default,
15
22
  emitterAngled: emitterAngled_js_1.default,
23
+ emitterImageShape: emitterImageShape_js_1.default,
16
24
  emitterImages: emitterImages_js_1.default,
17
25
  emitterPaths: emitterPaths_js_1.default,
18
26
  emitterShapes: emitterShapes_js_1.default,
27
+ emitterTextShape: emitterTextShape_js_1.default,
28
+ emitterTextStrokeShape: emitterTextStrokeShape_js_1.default,
19
29
  };
@@ -50,7 +50,6 @@ const options = {
50
50
  density: {
51
51
  enable: true,
52
52
  },
53
- limit: 0,
54
53
  value: 80,
55
54
  },
56
55
  opacity: {
package/cjs/g/gifs.js CHANGED
@@ -25,7 +25,7 @@ const options = {
25
25
  },
26
26
  number: {
27
27
  value: 20,
28
- limit: 30,
28
+ limit: { value: 30 },
29
29
  },
30
30
  opacity: {
31
31
  value: 1,
@@ -68,7 +68,6 @@ const options = {
68
68
  density: {
69
69
  enable: false,
70
70
  },
71
- limit: 0,
72
71
  value: 400,
73
72
  },
74
73
  opacity: {
@@ -92,8 +91,11 @@ const options = {
92
91
  polygon: {
93
92
  draw: {
94
93
  enable: true,
95
- lineColor: "rgba(255,255,255,0.2)",
96
- lineWidth: 0.5,
94
+ stroke: {
95
+ color: "#fff",
96
+ width: 0.5,
97
+ opacity: 0.2,
98
+ },
97
99
  },
98
100
  enable: true,
99
101
  move: {
package/cjs/i/images.js CHANGED
@@ -37,7 +37,6 @@ const options = {
37
37
  density: {
38
38
  enable: true,
39
39
  },
40
- limit: 0,
41
40
  value: 80,
42
41
  },
43
42
  opacity: {
@@ -86,8 +86,11 @@ const options = {
86
86
  polygon: {
87
87
  draw: {
88
88
  enable: false,
89
- lineColor: "#ffffff",
90
- lineWidth: 0.5,
89
+ stroke: {
90
+ color: "#fff",
91
+ width: 0.5,
92
+ opacity: 0.2,
93
+ },
91
94
  },
92
95
  move: {
93
96
  radius: 10,