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

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 (226) hide show
  1. package/browser/p/pathBrownian.js +1 -0
  2. package/browser/s/shapeEmojiPadding.js +1 -0
  3. package/cjs/p/pathBrownian.js +1 -0
  4. package/cjs/s/shapeEmojiPadding.js +1 -0
  5. package/esm/p/pathBrownian.js +1 -0
  6. package/esm/s/shapeEmojiPadding.js +1 -0
  7. package/package.json +3 -4
  8. package/report.html +1 -1
  9. package/tsparticles.configs.bundle.js +1 -1
  10. package/tsparticles.configs.js +3 -3
  11. package/umd/a/absorbers.js +0 -83
  12. package/umd/a/amongUs.js +0 -143
  13. package/umd/a/index.js +0 -21
  14. package/umd/b/backgroundMask.js +0 -97
  15. package/umd/b/backgroundMaskImage.js +0 -85
  16. package/umd/b/basic.js +0 -82
  17. package/umd/b/big.js +0 -96
  18. package/umd/b/bigBlend.js +0 -97
  19. package/umd/b/bigBlendCombo.js +0 -101
  20. package/umd/b/bigBlendParticle.js +0 -97
  21. package/umd/b/blackHole.js +0 -81
  22. package/umd/b/bubble.js +0 -102
  23. package/umd/b/index.js +0 -35
  24. package/umd/bundle.js +0 -27
  25. package/umd/c/cardSuits.js +0 -104
  26. package/umd/c/cards.js +0 -75
  27. package/umd/c/cardsRolling.js +0 -103
  28. package/umd/c/chars.js +0 -106
  29. package/umd/c/clickConfetti.js +0 -182
  30. package/umd/c/clickPause.js +0 -92
  31. package/umd/c/collisionsAbsorb.js +0 -94
  32. package/umd/c/collisionsBounce.js +0 -91
  33. package/umd/c/collisionsDestroy.js +0 -95
  34. package/umd/c/colorAnimation.js +0 -87
  35. package/umd/c/connect.js +0 -126
  36. package/umd/c/curlNoise.js +0 -65
  37. package/umd/c/index.js +0 -39
  38. package/umd/d/dataImages.js +0 -125
  39. package/umd/d/delay.js +0 -83
  40. package/umd/d/delayColor.js +0 -55
  41. package/umd/d/delayOpacity.js +0 -53
  42. package/umd/d/delaySize.js +0 -53
  43. package/umd/d/delayStrokeColor.js +0 -57
  44. package/umd/d/destroy.js +0 -93
  45. package/umd/d/disappearing.js +0 -101
  46. package/umd/d/divEvents.js +0 -125
  47. package/umd/d/index.js +0 -35
  48. package/umd/e/effectBubble.js +0 -93
  49. package/umd/e/effectParticles.js +0 -108
  50. package/umd/e/effectTrail.js +0 -70
  51. package/umd/e/effectTrailTransform.js +0 -72
  52. package/umd/e/emitter.js +0 -280
  53. package/umd/e/emitterAbsorber.js +0 -155
  54. package/umd/e/emitterAngled.js +0 -72
  55. package/umd/e/emitterImageShape.js +0 -111
  56. package/umd/e/emitterImages.js +0 -145
  57. package/umd/e/emitterPaths.js +0 -104
  58. package/umd/e/emitterShapes.js +0 -95
  59. package/umd/e/emitterSpawnColor.js +0 -221
  60. package/umd/e/emitterTextShape.js +0 -114
  61. package/umd/e/emitterTextStrokeShape.js +0 -114
  62. package/umd/e/index.js +0 -45
  63. package/umd/f/fallingConfetti.js +0 -152
  64. package/umd/f/fireworks.js +0 -235
  65. package/umd/f/fireworks2.js +0 -240
  66. package/umd/f/fireworksMask.js +0 -212
  67. package/umd/f/fontawesome.js +0 -111
  68. package/umd/f/forward.js +0 -101
  69. package/umd/f/index.js +0 -29
  70. package/umd/g/gifs.js +0 -63
  71. package/umd/g/grabRandomColor.js +0 -98
  72. package/umd/g/gradients.js +0 -188
  73. package/umd/g/gravity.js +0 -133
  74. package/umd/g/groups.js +0 -81
  75. package/umd/g/growing.js +0 -84
  76. package/umd/g/index.js +0 -29
  77. package/umd/h/hexagonPath.js +0 -88
  78. package/umd/h/hollowknight.js +0 -131
  79. package/umd/h/hyperspace.js +0 -80
  80. package/umd/h/index.js +0 -23
  81. package/umd/i/imageMask.js +0 -73
  82. package/umd/i/images.js +0 -226
  83. package/umd/i/imagesDirections.js +0 -122
  84. package/umd/i/index.js +0 -25
  85. package/umd/i/infection.js +0 -93
  86. package/umd/index.js +0 -86
  87. package/umd/j/index.js +0 -13
  88. package/umd/k/index.js +0 -13
  89. package/umd/l/index.js +0 -27
  90. package/umd/l/lch.js +0 -82
  91. package/umd/l/life.js +0 -95
  92. package/umd/l/lightHover.js +0 -85
  93. package/umd/l/linkTriangles.js +0 -102
  94. package/umd/l/localPolygonMask.js +0 -101
  95. package/umd/m/index.js +0 -57
  96. package/umd/m/manual.js +0 -98
  97. package/umd/m/matrix.js +0 -87
  98. package/umd/m/motionDisable.js +0 -86
  99. package/umd/m/motionReduce.js +0 -104
  100. package/umd/m/mouseAttract.js +0 -102
  101. package/umd/m/mouseBounce.js +0 -97
  102. package/umd/m/mouseCannon.js +0 -112
  103. package/umd/m/mouseDrag.js +0 -60
  104. package/umd/m/mouseDragMomentum.js +0 -65
  105. package/umd/m/mouseFollow.js +0 -78
  106. package/umd/m/mouseParticle.js +0 -65
  107. package/umd/m/mouseParticle2.js +0 -76
  108. package/umd/m/mouseTrail.js +0 -137
  109. package/umd/m/mouseTrailNoise.js +0 -151
  110. package/umd/m/moveAngle.js +0 -98
  111. package/umd/m/moveDistance.js +0 -98
  112. package/umd/m/moveInside.js +0 -57
  113. package/umd/m/moveOutside.js +0 -57
  114. package/umd/m/multipleClickEmitters.js +0 -120
  115. package/umd/m/multiplePolygonMasks.js +0 -138
  116. package/umd/n/index.js +0 -35
  117. package/umd/n/namedColors.js +0 -70
  118. package/umd/n/nasa.js +0 -100
  119. package/umd/n/noClear.js +0 -114
  120. package/umd/n/noConfig.js +0 -17
  121. package/umd/n/noisePlanesFractal.js +0 -103
  122. package/umd/n/noisePlanesPerlin.js +0 -103
  123. package/umd/n/noisePlanesSimplex.js +0 -103
  124. package/umd/n/nyancat.js +0 -74
  125. package/umd/n/nyancat2.js +0 -75
  126. package/umd/o/index.js +0 -21
  127. package/umd/o/oklch.js +0 -82
  128. package/umd/o/orbit.js +0 -66
  129. package/umd/p/index.js +0 -59
  130. package/umd/p/palettes.js +0 -37
  131. package/umd/p/parallax.js +0 -98
  132. package/umd/p/pathBranches.js +0 -104
  133. package/umd/p/pathBranchesInertia.js +0 -108
  134. package/umd/p/pathBrownian.js +0 -101
  135. package/umd/p/pathGrid.js +0 -100
  136. package/umd/p/pathLevy.js +0 -102
  137. package/umd/p/pathMaze.js +0 -101
  138. package/umd/p/pathPolygonMask.js +0 -110
  139. package/umd/p/pathSpiral.js +0 -102
  140. package/umd/p/pathSvg.js +0 -104
  141. package/umd/p/pathZigZag.js +0 -97
  142. package/umd/p/planes.js +0 -66
  143. package/umd/p/plasma.js +0 -72
  144. package/umd/p/poisson.js +0 -54
  145. package/umd/p/polygonMask.js +0 -138
  146. package/umd/p/polygons.js +0 -153
  147. package/umd/p/pop.js +0 -84
  148. package/umd/palettes.js +0 -1273
  149. package/umd/q/index.js +0 -13
  150. package/umd/r/index.js +0 -67
  151. package/umd/r/random.js +0 -107
  152. package/umd/r/randomShapes.js +0 -440
  153. package/umd/r/reactBubbles.js +0 -114
  154. package/umd/r/reactDefaults.js +0 -63
  155. package/umd/r/reactMultipleImages.js +0 -102
  156. package/umd/r/reactNightSky.js +0 -89
  157. package/umd/r/reactPolygonMask.js +0 -106
  158. package/umd/r/reactSimple.js +0 -100
  159. package/umd/r/reactSnow.js +0 -118
  160. package/umd/r/reduceDuplicates.js +0 -143
  161. package/umd/r/repulse.js +0 -123
  162. package/umd/r/repulseBack.js +0 -66
  163. package/umd/r/repulseBounce.js +0 -66
  164. package/umd/r/repulseCirc.js +0 -66
  165. package/umd/r/repulseCubic.js +0 -66
  166. package/umd/r/repulseElastic.js +0 -66
  167. package/umd/r/repulseExpo.js +0 -66
  168. package/umd/r/repulseGaussian.js +0 -66
  169. package/umd/r/repulseQuart.js +0 -66
  170. package/umd/r/repulseQuint.js +0 -66
  171. package/umd/r/repulseSigmoid.js +0 -66
  172. package/umd/r/repulseSine.js +0 -66
  173. package/umd/r/repulseSmoothstep.js +0 -66
  174. package/umd/r/responsive.js +0 -126
  175. package/umd/r/ring.js +0 -85
  176. package/umd/s/index.js +0 -73
  177. package/umd/s/seaAnemone.js +0 -99
  178. package/umd/s/shadow.js +0 -110
  179. package/umd/s/shapeArrow.js +0 -70
  180. package/umd/s/shapeCog.js +0 -108
  181. package/umd/s/shapeEmoji.js +0 -197
  182. package/umd/s/shapeEmojiPadding.js +0 -127
  183. package/umd/s/shapeHeart.js +0 -97
  184. package/umd/s/shapeInfinity.js +0 -100
  185. package/umd/s/shapeMultilineText.js +0 -63
  186. package/umd/s/shapeOptions.js +0 -74
  187. package/umd/s/shapePath.js +0 -182
  188. package/umd/s/shapeRoundedPolygon.js +0 -110
  189. package/umd/s/shapeRoundedRect.js +0 -107
  190. package/umd/s/shapeSpiral.js +0 -114
  191. package/umd/s/shapeSquircle.js +0 -104
  192. package/umd/s/slow.js +0 -96
  193. package/umd/s/snow.js +0 -62
  194. package/umd/s/soundsAudio.js +0 -81
  195. package/umd/s/soundsLoop.js +0 -81
  196. package/umd/s/soundsMelodies.js +0 -104
  197. package/umd/s/soundsMelodyLoop.js +0 -356
  198. package/umd/s/soundsNotes.js +0 -96
  199. package/umd/s/speedDecay.js +0 -151
  200. package/umd/s/spin.js +0 -67
  201. package/umd/s/star.js +0 -108
  202. package/umd/s/strokeAnimation.js +0 -108
  203. package/umd/s/style.js +0 -97
  204. package/umd/s/svgReplace.js +0 -132
  205. package/umd/t/index.js +0 -35
  206. package/umd/t/test.js +0 -132
  207. package/umd/t/textMask.js +0 -85
  208. package/umd/t/textMaskMultiline.js +0 -88
  209. package/umd/t/themes.js +0 -206
  210. package/umd/t/tilt.js +0 -107
  211. package/umd/t/trail.js +0 -113
  212. package/umd/t/trailImage.js +0 -129
  213. package/umd/t/triangles.js +0 -64
  214. package/umd/t/twinkle.js +0 -119
  215. package/umd/u/index.js +0 -13
  216. package/umd/v/index.js +0 -21
  217. package/umd/v/vibrate.js +0 -90
  218. package/umd/v/virus.js +0 -86
  219. package/umd/w/index.js +0 -23
  220. package/umd/w/warp.js +0 -106
  221. package/umd/w/wobble.js +0 -154
  222. package/umd/w/wobbleBig.js +0 -154
  223. package/umd/x/index.js +0 -13
  224. package/umd/y/index.js +0 -13
  225. package/umd/z/index.js +0 -19
  226. package/umd/z/zIndex.js +0 -101
@@ -1,145 +0,0 @@
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
- key: "emitterImages",
14
- name: "Emitter Images",
15
- particles: {
16
- move: {
17
- enable: true,
18
- outModes: "destroy",
19
- speed: 2,
20
- },
21
- number: {
22
- density: {
23
- enable: true,
24
- },
25
- value: 80,
26
- },
27
- opacity: {
28
- value: 1,
29
- },
30
- rotate: {
31
- animation: {
32
- enable: true,
33
- speed: 5,
34
- sync: false,
35
- },
36
- direction: "random",
37
- value: {
38
- min: 0,
39
- max: 360,
40
- },
41
- },
42
- shape: {
43
- type: "circle",
44
- },
45
- size: {
46
- value: 16,
47
- },
48
- },
49
- background: {
50
- color: "#fff",
51
- },
52
- emitters: {
53
- particles: {
54
- shape: {
55
- type: "image",
56
- options: {
57
- image: [
58
- {
59
- src: "https://particles.js.org/images/hdr/fruits/apple.png",
60
- width: 32,
61
- height: 32,
62
- },
63
- {
64
- src: "https://particles.js.org/images/hdr/fruits/avocado.png",
65
- width: 32,
66
- height: 32,
67
- },
68
- {
69
- src: "https://particles.js.org/images/hdr/fruits/banana.png",
70
- width: 32,
71
- height: 32,
72
- },
73
- {
74
- src: "https://particles.js.org/images/hdr/fruits/berries.png",
75
- width: 32,
76
- height: 32,
77
- },
78
- {
79
- src: "https://particles.js.org/images/hdr/fruits/cherry.png",
80
- width: 32,
81
- height: 32,
82
- },
83
- {
84
- src: "https://particles.js.org/images/hdr/fruits/grapes.png",
85
- width: 32,
86
- height: 32,
87
- },
88
- {
89
- src: "https://particles.js.org/images/hdr/fruits/lemon.png",
90
- width: 32,
91
- height: 32,
92
- },
93
- {
94
- src: "https://particles.js.org/images/hdr/fruits/orange.png",
95
- width: 32,
96
- height: 32,
97
- },
98
- {
99
- src: "https://particles.js.org/images/hdr/fruits/peach.png",
100
- width: 32,
101
- height: 32,
102
- },
103
- {
104
- src: "https://particles.js.org/images/hdr/fruits/pear.png",
105
- width: 32,
106
- height: 32,
107
- },
108
- {
109
- src: "https://particles.js.org/images/hdr/fruits/pepper.png",
110
- width: 32,
111
- height: 32,
112
- },
113
- {
114
- src: "https://particles.js.org/images/hdr/fruits/plum.png",
115
- width: 32,
116
- height: 32,
117
- },
118
- {
119
- src: "https://particles.js.org/images/hdr/fruits/star.png",
120
- width: 32,
121
- height: 32,
122
- },
123
- {
124
- src: "https://particles.js.org/images/hdr/fruits/strawberry.png",
125
- width: 32,
126
- height: 32,
127
- },
128
- {
129
- src: "https://particles.js.org/images/hdr/fruits/watermelon.png",
130
- width: 32,
131
- height: 32,
132
- },
133
- {
134
- src: "https://particles.js.org/images/hdr/fruits/watermelon_slice.png",
135
- width: 32,
136
- height: 32,
137
- },
138
- ],
139
- },
140
- },
141
- },
142
- },
143
- };
144
- exports.default = options;
145
- });
@@ -1,104 +0,0 @@
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
- key: "emitterPaths",
14
- name: "Emitter Paths",
15
- particles: {
16
- number: {
17
- value: 0,
18
- },
19
- fill: {
20
- color: {
21
- value: "#000000",
22
- },
23
- enable: true,
24
- },
25
- move: {
26
- enable: true,
27
- outModes: "destroy",
28
- },
29
- shape: {
30
- type: "circle",
31
- },
32
- opacity: {
33
- value: 1,
34
- },
35
- size: {
36
- value: 3,
37
- },
38
- },
39
- background: {
40
- color: "#fff",
41
- },
42
- emitters: [
43
- {
44
- position: {
45
- x: 33,
46
- y: 50,
47
- },
48
- rate: {
49
- value: 0.5,
50
- },
51
- particles: {
52
- life: {
53
- count: 1,
54
- duration: {
55
- value: 10,
56
- },
57
- },
58
- move: {
59
- path: {
60
- clamp: false,
61
- enable: true,
62
- delay: {
63
- value: 0,
64
- },
65
- generator: "polygonPathGenerator",
66
- options: {
67
- sides: 6,
68
- turnSteps: 30,
69
- angle: 30,
70
- },
71
- },
72
- },
73
- },
74
- },
75
- {
76
- position: {
77
- x: 67,
78
- y: 50,
79
- },
80
- rate: {
81
- value: 0.5,
82
- },
83
- particles: {
84
- move: {
85
- path: {
86
- clamp: false,
87
- enable: true,
88
- delay: {
89
- value: 0,
90
- },
91
- generator: "curvesPathGenerator",
92
- },
93
- },
94
- },
95
- },
96
- ],
97
- trail: {
98
- enable: true,
99
- fill: { color: "#fff" },
100
- length: 20,
101
- },
102
- };
103
- exports.default = options;
104
- });
@@ -1,95 +0,0 @@
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: 3,
15
- }, generateEmitter = (shape, options, fill, position) => {
16
- return {
17
- shape: {
18
- type: shape,
19
- options,
20
- },
21
- position: position,
22
- size: {
23
- width: 200,
24
- height: 200,
25
- mode: "precise",
26
- },
27
- life: {
28
- duration: 10,
29
- delay: 0.5,
30
- count: 1,
31
- },
32
- rate,
33
- fill,
34
- };
35
- }, path = [
36
- { x: 0, y: 0 },
37
- { x: 0, y: 50 },
38
- { x: 25, y: 50 },
39
- { x: 0, y: 100 },
40
- { x: 50, y: 100 },
41
- { x: 50, y: 75 },
42
- { x: 100, y: 100 },
43
- { x: 100, y: 50 },
44
- { x: 75, y: 50 },
45
- { x: 100, y: 0 },
46
- { x: 50, y: 0 },
47
- { x: 50, y: 25 },
48
- ], options = {
49
- key: "emitterShapes",
50
- name: "Emitter Shapes",
51
- particles: {
52
- number: {
53
- value: 0,
54
- },
55
- fill: {
56
- color: {
57
- value: "#000000",
58
- },
59
- enable: true,
60
- },
61
- shape: {
62
- type: "circle",
63
- },
64
- opacity: {
65
- value: 1,
66
- },
67
- size: {
68
- value: 1,
69
- },
70
- },
71
- background: {
72
- color: "#fff",
73
- },
74
- emitters: [
75
- generateEmitter("square", {}, true, { x: 25, y: 25 }),
76
- generateEmitter("circle", {}, true, { x: 50, y: 25 }),
77
- generateEmitter("polygon", {
78
- angle: -18,
79
- sides: 5,
80
- }, true, { x: 75, y: 25 }),
81
- generateEmitter("square", {}, false, { x: 25, y: 50 }),
82
- generateEmitter("circle", {}, false, { x: 50, y: 50 }),
83
- generateEmitter("polygon", {
84
- sides: 6,
85
- }, false, { x: 75, y: 50 }),
86
- generateEmitter("path", {
87
- points: path,
88
- }, true, { x: 25, y: 75 }),
89
- generateEmitter("path", {
90
- points: path,
91
- }, false, { x: 50, y: 75 }),
92
- ],
93
- };
94
- exports.default = options;
95
- });
@@ -1,221 +0,0 @@
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", "@tsparticles/engine"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const engine_1 = require("@tsparticles/engine");
13
- const emitterRate = {
14
- delay: 0.1,
15
- quantity: 2,
16
- }, options = {
17
- key: "emitterSpawnColor",
18
- name: "Emitter Spawn Color",
19
- particles: {
20
- opacity: {
21
- value: 1,
22
- },
23
- fill: {
24
- enable: false,
25
- },
26
- size: {
27
- value: 3,
28
- },
29
- life: {
30
- count: 1,
31
- duration: {
32
- value: 5,
33
- },
34
- },
35
- move: {
36
- enable: true,
37
- speed: 3,
38
- outModes: {
39
- default: "destroy",
40
- },
41
- },
42
- },
43
- background: {
44
- color: "#000000",
45
- },
46
- emitters: [
47
- {
48
- position: {
49
- x: 33,
50
- y: 0,
51
- },
52
- rate: emitterRate,
53
- particles: {
54
- move: {
55
- direction: engine_1.MoveDirection.bottomRight,
56
- },
57
- },
58
- spawn: {
59
- fill: {
60
- color: {
61
- value: "#ff0000",
62
- animation: {
63
- h: {
64
- enable: true,
65
- speed: 10,
66
- },
67
- },
68
- },
69
- },
70
- },
71
- },
72
- {
73
- position: {
74
- x: 33,
75
- y: 100,
76
- },
77
- rate: emitterRate,
78
- particles: {
79
- move: {
80
- direction: engine_1.MoveDirection.topRight,
81
- },
82
- },
83
- spawn: {
84
- stroke: {
85
- width: 1,
86
- color: {
87
- value: "#ff0000",
88
- animation: {
89
- s: {
90
- enable: true,
91
- speed: 10,
92
- offset: {
93
- min: -10,
94
- max: 10,
95
- },
96
- },
97
- },
98
- },
99
- },
100
- },
101
- },
102
- {
103
- position: {
104
- x: 100,
105
- y: 0,
106
- },
107
- rate: emitterRate,
108
- particles: {
109
- move: {
110
- direction: engine_1.MoveDirection.bottomLeft,
111
- },
112
- },
113
- spawn: {
114
- fill: {
115
- color: {
116
- value: "#ff0000",
117
- animation: {
118
- l: {
119
- enable: true,
120
- speed: 10,
121
- offset: {
122
- min: -10,
123
- max: 10,
124
- },
125
- },
126
- },
127
- },
128
- },
129
- },
130
- },
131
- {
132
- position: {
133
- x: 100,
134
- y: 100,
135
- },
136
- rate: emitterRate,
137
- particles: {
138
- move: {
139
- direction: engine_1.MoveDirection.topLeft,
140
- },
141
- },
142
- spawn: {
143
- stroke: {
144
- width: 1,
145
- color: {
146
- value: "#ff0000",
147
- animation: {
148
- h: {
149
- enable: true,
150
- speed: 10,
151
- },
152
- s: {
153
- enable: true,
154
- speed: 10,
155
- offset: {
156
- min: -10,
157
- max: 10,
158
- },
159
- },
160
- },
161
- },
162
- },
163
- },
164
- },
165
- {
166
- position: {
167
- x: 66,
168
- y: 50,
169
- },
170
- rate: emitterRate,
171
- particles: {
172
- move: {
173
- direction: engine_1.MoveDirection.none,
174
- },
175
- },
176
- spawn: {
177
- fill: {
178
- color: {
179
- value: "#ff0000",
180
- animation: {
181
- h: {
182
- enable: true,
183
- speed: 10,
184
- },
185
- l: {
186
- enable: true,
187
- speed: 10,
188
- offset: {
189
- min: -10,
190
- max: 10,
191
- },
192
- },
193
- },
194
- },
195
- },
196
- stroke: {
197
- width: 1,
198
- color: {
199
- value: "#00ff00",
200
- animation: {
201
- h: {
202
- enable: true,
203
- speed: 10,
204
- },
205
- l: {
206
- enable: true,
207
- speed: 10,
208
- offset: {
209
- min: -10,
210
- max: 10,
211
- },
212
- },
213
- },
214
- },
215
- },
216
- },
217
- },
218
- ],
219
- };
220
- exports.default = options;
221
- });
@@ -1,114 +0,0 @@
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 minAlphaFilter = 0, rate = {
13
- delay: 0.1,
14
- quantity: 100,
15
- }, generateEmitter = (shape, options, fill, position) => {
16
- return {
17
- shape: {
18
- type: shape,
19
- options,
20
- },
21
- position: position,
22
- size: {
23
- width: 500,
24
- height: 500,
25
- mode: "precise",
26
- },
27
- startCount: 300,
28
- rate,
29
- fill,
30
- };
31
- }, options = {
32
- key: "emitterTextShape",
33
- name: "Emitter Text Shape",
34
- particles: {
35
- number: {
36
- value: 0,
37
- },
38
- fill: {
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
- enable: true,
60
- },
61
- life: {
62
- count: 1,
63
- duration: {
64
- value: 1.5,
65
- },
66
- },
67
- move: {
68
- enable: true,
69
- speed: 0.5,
70
- },
71
- shape: {
72
- type: "circle",
73
- },
74
- opacity: {
75
- value: 1,
76
- },
77
- size: {
78
- value: { min: 1, max: 10 },
79
- animation: {
80
- enable: true,
81
- speed: 30,
82
- sync: true,
83
- startValue: "min",
84
- count: 2,
85
- },
86
- },
87
- },
88
- background: {
89
- color: "#fff",
90
- },
91
- emitters: [
92
- generateEmitter("canvas", {
93
- scale: 1,
94
- pixels: {
95
- filter: (pixel) => pixel.a > minAlphaFilter,
96
- offset: 4,
97
- },
98
- text: {
99
- color: "#ff0000",
100
- font: {
101
- size: 500,
102
- family: "Verdana",
103
- },
104
- text: "Particles",
105
- lines: {
106
- separator: "\n",
107
- spacing: 10,
108
- },
109
- },
110
- }, true, { x: 50, y: 50 }),
111
- ],
112
- };
113
- exports.default = options;
114
- });