@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/umd/s/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", "./seaAnemone.js", "./shadow.js", "./shapeArrow.js", "./shapeBubble.js", "./shapeCog.js", "./shapeHeart.js", "./shapeMultilineText.js", "./shapeOptions.js", "./shapePath.js", "./shapeRoundedPolygon.js", "./shapeRoundedRect.js", "./shapeSpiral.js", "./slow.js", "./snow.js", "./soundsAudio.js", "./soundsLoop.js", "./soundsMelodies.js", "./soundsMelodyLoop.js", "./soundsNotes.js", "./speedDecay.js", "./spin.js", "./star.js", "./strokeAnimation.js", "./style.js", "./svgReplace.js"], factory);
10
+ define(["require", "exports", "./seaAnemone.js", "./shadow.js", "./shapeArrow.js", "./shapeCog.js", "./shapeEmoji.js", "./shapeHeart.js", "./shapeMultilineText.js", "./shapeOptions.js", "./shapePath.js", "./shapeRoundedPolygon.js", "./shapeRoundedRect.js", "./shapeSpiral.js", "./slow.js", "./snow.js", "./soundsAudio.js", "./soundsLoop.js", "./soundsMelodies.js", "./soundsMelodyLoop.js", "./soundsNotes.js", "./speedDecay.js", "./spin.js", "./star.js", "./strokeAnimation.js", "./style.js", "./svgReplace.js"], factory);
11
11
  }
12
12
  })(function (require, exports) {
13
13
  "use strict";
@@ -15,8 +15,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  const seaAnemone_js_1 = __importDefault(require("./seaAnemone.js"));
16
16
  const shadow_js_1 = __importDefault(require("./shadow.js"));
17
17
  const shapeArrow_js_1 = __importDefault(require("./shapeArrow.js"));
18
- const shapeBubble_js_1 = __importDefault(require("./shapeBubble.js"));
19
18
  const shapeCog_js_1 = __importDefault(require("./shapeCog.js"));
19
+ const shapeEmoji_js_1 = __importDefault(require("./shapeEmoji.js"));
20
20
  const shapeHeart_js_1 = __importDefault(require("./shapeHeart.js"));
21
21
  const shapeMultilineText_js_1 = __importDefault(require("./shapeMultilineText.js"));
22
22
  const shapeOptions_js_1 = __importDefault(require("./shapeOptions.js"));
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  seaAnemone: seaAnemone_js_1.default,
42
42
  shadow: shadow_js_1.default,
43
43
  shapeArrow: shapeArrow_js_1.default,
44
- shapeBubble: shapeBubble_js_1.default,
45
44
  shapeCog: shapeCog_js_1.default,
45
+ shapeEmoji: shapeEmoji_js_1.default,
46
46
  shapeHeart: shapeHeart_js_1.default,
47
47
  shapeMultilineText: shapeMultilineText_js_1.default,
48
48
  shapeOptions: shapeOptions_js_1.default,
@@ -0,0 +1,196 @@
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 emitterRate = {
13
+ delay: 0.1,
14
+ quantity: 2,
15
+ }, options = {
16
+ name: "Shape Emoji",
17
+ particles: {
18
+ opacity: {
19
+ value: 1,
20
+ },
21
+ size: {
22
+ value: {
23
+ min: 16,
24
+ max: 32,
25
+ },
26
+ },
27
+ move: {
28
+ enable: true,
29
+ gravity: {
30
+ enable: true,
31
+ },
32
+ speed: 15,
33
+ outModes: {
34
+ default: "destroy",
35
+ top: "none",
36
+ },
37
+ },
38
+ rotate: {
39
+ value: {
40
+ min: 0,
41
+ max: 360,
42
+ },
43
+ direction: "random",
44
+ move: true,
45
+ animation: {
46
+ enable: true,
47
+ speed: 60,
48
+ },
49
+ },
50
+ tilt: {
51
+ direction: "random",
52
+ enable: true,
53
+ move: true,
54
+ value: {
55
+ min: 0,
56
+ max: 360,
57
+ },
58
+ animation: {
59
+ enable: true,
60
+ speed: 60,
61
+ },
62
+ },
63
+ roll: {
64
+ darken: {
65
+ enable: true,
66
+ value: 30,
67
+ },
68
+ enlighten: {
69
+ enable: true,
70
+ value: 30,
71
+ },
72
+ enable: true,
73
+ mode: "both",
74
+ speed: {
75
+ min: 15,
76
+ max: 25,
77
+ },
78
+ },
79
+ wobble: {
80
+ distance: 30,
81
+ enable: true,
82
+ move: true,
83
+ speed: {
84
+ min: -15,
85
+ max: 15,
86
+ },
87
+ },
88
+ },
89
+ background: {
90
+ color: "#000000",
91
+ },
92
+ emitters: [
93
+ {
94
+ position: {
95
+ x: 0,
96
+ y: 33,
97
+ },
98
+ rate: emitterRate,
99
+ particles: {
100
+ move: {
101
+ direction: "top-right",
102
+ },
103
+ shape: {
104
+ type: "emoji",
105
+ options: {
106
+ emoji: {
107
+ value: "🦄",
108
+ },
109
+ },
110
+ },
111
+ },
112
+ },
113
+ {
114
+ position: {
115
+ x: 0,
116
+ y: 66,
117
+ },
118
+ rate: emitterRate,
119
+ particles: {
120
+ move: {
121
+ direction: "top-right",
122
+ },
123
+ shape: {
124
+ type: "emoji",
125
+ options: {
126
+ emoji: {
127
+ value: "🌈",
128
+ },
129
+ },
130
+ },
131
+ },
132
+ },
133
+ {
134
+ position: {
135
+ x: 100,
136
+ y: 33,
137
+ },
138
+ rate: emitterRate,
139
+ particles: {
140
+ move: {
141
+ direction: "top-left",
142
+ },
143
+ shape: {
144
+ type: "emoji",
145
+ options: {
146
+ emoji: {
147
+ value: "🎉",
148
+ },
149
+ },
150
+ },
151
+ },
152
+ },
153
+ {
154
+ position: {
155
+ x: 100,
156
+ y: 66,
157
+ },
158
+ rate: emitterRate,
159
+ particles: {
160
+ move: {
161
+ direction: "top-left",
162
+ },
163
+ shape: {
164
+ type: "emoji",
165
+ options: {
166
+ emoji: {
167
+ value: "🤡",
168
+ },
169
+ },
170
+ },
171
+ },
172
+ },
173
+ {
174
+ position: {
175
+ x: 50,
176
+ y: 50,
177
+ },
178
+ rate: emitterRate,
179
+ particles: {
180
+ move: {
181
+ direction: "top",
182
+ },
183
+ shape: {
184
+ type: "emoji",
185
+ options: {
186
+ emoji: {
187
+ value: "👻",
188
+ },
189
+ },
190
+ },
191
+ },
192
+ },
193
+ ],
194
+ };
195
+ exports.default = options;
196
+ });
@@ -27,9 +27,9 @@
27
27
  },
28
28
  },
29
29
  shape: {
30
- type: "multiline-text",
30
+ type: "text",
31
31
  options: {
32
- "multiline-text": {
32
+ text: {
33
33
  value: "pippo\npluto",
34
34
  },
35
35
  },
package/umd/s/style.js CHANGED
@@ -14,7 +14,7 @@
14
14
  particles: {
15
15
  number: {
16
16
  value: 200,
17
- limit: 200,
17
+ limit: { value: 200 },
18
18
  },
19
19
  color: {
20
20
  value: ["#ff0000", "#00ff00", "#0000ff", "#ffff00", "#ff00ff", "#00ffff"],
@@ -80,7 +80,6 @@
80
80
  density: {
81
81
  enable: true,
82
82
  },
83
- limit: 0,
84
83
  value: 80,
85
84
  },
86
85
  opacity: {
package/umd/t/themes.js CHANGED
@@ -173,7 +173,6 @@
173
173
  enable: true,
174
174
  mode: "push",
175
175
  },
176
- resize: true,
177
176
  },
178
177
  },
179
178
  detectRetina: true,
package/umd/t/tilt.js CHANGED
@@ -53,7 +53,7 @@
53
53
  },
54
54
  number: {
55
55
  value: 0,
56
- limit: 300,
56
+ limit: { value: 300 },
57
57
  },
58
58
  opacity: {
59
59
  value: 1,
package/umd/t/trail.js CHANGED
@@ -32,7 +32,7 @@
32
32
  particles: {
33
33
  number: {
34
34
  value: 0,
35
- limit: 300,
35
+ limit: { value: 300 },
36
36
  },
37
37
  color: {
38
38
  value: ["#5bc0eb", "#fde74c", "#9bc53d", "#e55934", "#fa7921"],
@@ -36,7 +36,7 @@
36
36
  particles: {
37
37
  number: {
38
38
  value: 0,
39
- limit: 300,
39
+ limit: { value: 300 },
40
40
  },
41
41
  color: {
42
42
  value: ["#5bc0eb", "#fde74c", "#9bc53d", "#e55934", "#fa7921"],
package/umd/w/wobble.js CHANGED
@@ -53,7 +53,7 @@
53
53
  },
54
54
  number: {
55
55
  value: 0,
56
- limit: 300,
56
+ limit: { value: 300 },
57
57
  },
58
58
  opacity: {
59
59
  value: 1,
File without changes