@tsparticles/slim 3.2.2 → 3.4.0

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 (281) hide show
  1. package/README.md +1 -1
  2. package/browser/bundle.js +0 -2
  3. package/browser/index.js +25 -1
  4. package/cjs/bundle.js +0 -2
  5. package/cjs/index.js +50 -49
  6. package/esm/bundle.js +0 -2
  7. package/esm/index.js +25 -1
  8. package/package.json +27 -27
  9. package/report.html +1 -1
  10. package/tsparticles.slim.bundle.js +1594 -302
  11. package/tsparticles.slim.bundle.min.js +1 -1
  12. package/tsparticles.slim.bundle.min.js.LICENSE.txt +1 -1
  13. package/tsparticles.slim.js +14 -32
  14. package/tsparticles.slim.min.js +1 -1
  15. package/tsparticles.slim.min.js.LICENSE.txt +1 -1
  16. package/umd/bundle.js +1 -3
  17. package/umd/index.js +51 -51
  18. package/1147.min.js +0 -2
  19. package/1147.min.js.LICENSE.txt +0 -1
  20. package/1196.min.js +0 -2
  21. package/1196.min.js.LICENSE.txt +0 -1
  22. package/1264.min.js +0 -2
  23. package/1264.min.js.LICENSE.txt +0 -1
  24. package/1308.min.js +0 -2
  25. package/1308.min.js.LICENSE.txt +0 -1
  26. package/1364.min.js +0 -2
  27. package/1364.min.js.LICENSE.txt +0 -1
  28. package/1472.min.js +0 -2
  29. package/1472.min.js.LICENSE.txt +0 -1
  30. package/1513.min.js +0 -2
  31. package/1513.min.js.LICENSE.txt +0 -1
  32. package/1808.min.js +0 -2
  33. package/1808.min.js.LICENSE.txt +0 -1
  34. package/1810.min.js +0 -2
  35. package/1810.min.js.LICENSE.txt +0 -1
  36. package/1831.min.js +0 -2
  37. package/1831.min.js.LICENSE.txt +0 -1
  38. package/196.min.js +0 -2
  39. package/196.min.js.LICENSE.txt +0 -1
  40. package/1982.min.js +0 -2
  41. package/1982.min.js.LICENSE.txt +0 -1
  42. package/2121.min.js +0 -2
  43. package/2121.min.js.LICENSE.txt +0 -1
  44. package/2124.min.js +0 -2
  45. package/2124.min.js.LICENSE.txt +0 -1
  46. package/2173.min.js +0 -2
  47. package/2173.min.js.LICENSE.txt +0 -1
  48. package/2200.min.js +0 -2
  49. package/2200.min.js.LICENSE.txt +0 -1
  50. package/2486.min.js +0 -2
  51. package/2486.min.js.LICENSE.txt +0 -1
  52. package/256.min.js +0 -2
  53. package/256.min.js.LICENSE.txt +0 -1
  54. package/2580.min.js +0 -2
  55. package/2580.min.js.LICENSE.txt +0 -1
  56. package/2720.min.js +0 -2
  57. package/2720.min.js.LICENSE.txt +0 -1
  58. package/2765.min.js +0 -2
  59. package/2765.min.js.LICENSE.txt +0 -1
  60. package/2870.min.js +0 -2
  61. package/2870.min.js.LICENSE.txt +0 -1
  62. package/2890.min.js +0 -2
  63. package/2890.min.js.LICENSE.txt +0 -1
  64. package/290.min.js +0 -2
  65. package/290.min.js.LICENSE.txt +0 -1
  66. package/2946.min.js +0 -2
  67. package/2946.min.js.LICENSE.txt +0 -1
  68. package/3141.min.js +0 -2
  69. package/3141.min.js.LICENSE.txt +0 -1
  70. package/3255.min.js +0 -2
  71. package/3255.min.js.LICENSE.txt +0 -1
  72. package/3457.min.js +0 -2
  73. package/3457.min.js.LICENSE.txt +0 -1
  74. package/3486.min.js +0 -2
  75. package/3486.min.js.LICENSE.txt +0 -1
  76. package/3597.min.js +0 -2
  77. package/3597.min.js.LICENSE.txt +0 -1
  78. package/3648.min.js +0 -2
  79. package/3648.min.js.LICENSE.txt +0 -1
  80. package/3733.min.js +0 -2
  81. package/3733.min.js.LICENSE.txt +0 -1
  82. package/3869.min.js +0 -2
  83. package/3869.min.js.LICENSE.txt +0 -1
  84. package/3904.min.js +0 -2
  85. package/3904.min.js.LICENSE.txt +0 -1
  86. package/409.min.js +0 -2
  87. package/409.min.js.LICENSE.txt +0 -1
  88. package/4314.min.js +0 -2
  89. package/4314.min.js.LICENSE.txt +0 -1
  90. package/4328.min.js +0 -2
  91. package/4328.min.js.LICENSE.txt +0 -1
  92. package/4687.min.js +0 -2
  93. package/4687.min.js.LICENSE.txt +0 -1
  94. package/4732.min.js +0 -2
  95. package/4732.min.js.LICENSE.txt +0 -1
  96. package/4737.min.js +0 -2
  97. package/4737.min.js.LICENSE.txt +0 -1
  98. package/4744.min.js +0 -2
  99. package/4744.min.js.LICENSE.txt +0 -1
  100. package/4866.min.js +0 -2
  101. package/4866.min.js.LICENSE.txt +0 -1
  102. package/4922.min.js +0 -2
  103. package/4922.min.js.LICENSE.txt +0 -1
  104. package/4973.min.js +0 -2
  105. package/4973.min.js.LICENSE.txt +0 -1
  106. package/4994.min.js +0 -2
  107. package/4994.min.js.LICENSE.txt +0 -1
  108. package/5120.min.js +0 -2
  109. package/5120.min.js.LICENSE.txt +0 -1
  110. package/5243.min.js +0 -2
  111. package/5243.min.js.LICENSE.txt +0 -1
  112. package/5308.min.js +0 -2
  113. package/5308.min.js.LICENSE.txt +0 -1
  114. package/5329.min.js +0 -2
  115. package/5329.min.js.LICENSE.txt +0 -1
  116. package/533.min.js +0 -2
  117. package/533.min.js.LICENSE.txt +0 -1
  118. package/5437.min.js +0 -2
  119. package/5437.min.js.LICENSE.txt +0 -1
  120. package/5444.min.js +0 -2
  121. package/5444.min.js.LICENSE.txt +0 -1
  122. package/5523.min.js +0 -2
  123. package/5523.min.js.LICENSE.txt +0 -1
  124. package/5647.min.js +0 -2
  125. package/5647.min.js.LICENSE.txt +0 -1
  126. package/5715.min.js +0 -2
  127. package/5715.min.js.LICENSE.txt +0 -1
  128. package/5819.min.js +0 -2
  129. package/5819.min.js.LICENSE.txt +0 -1
  130. package/6072.min.js +0 -2
  131. package/6072.min.js.LICENSE.txt +0 -1
  132. package/6132.min.js +0 -2
  133. package/6132.min.js.LICENSE.txt +0 -1
  134. package/6634.min.js +0 -2
  135. package/6634.min.js.LICENSE.txt +0 -1
  136. package/675.min.js +0 -2
  137. package/675.min.js.LICENSE.txt +0 -1
  138. package/6772.min.js +0 -2
  139. package/6772.min.js.LICENSE.txt +0 -1
  140. package/69.min.js +0 -2
  141. package/69.min.js.LICENSE.txt +0 -1
  142. package/7031.min.js +0 -2
  143. package/7031.min.js.LICENSE.txt +0 -1
  144. package/7049.min.js +0 -2
  145. package/7049.min.js.LICENSE.txt +0 -1
  146. package/7077.min.js +0 -2
  147. package/7077.min.js.LICENSE.txt +0 -1
  148. package/7108.min.js +0 -2
  149. package/7108.min.js.LICENSE.txt +0 -1
  150. package/7331.min.js +0 -2
  151. package/7331.min.js.LICENSE.txt +0 -1
  152. package/7517.min.js +0 -2
  153. package/7517.min.js.LICENSE.txt +0 -1
  154. package/7704.min.js +0 -2
  155. package/7704.min.js.LICENSE.txt +0 -1
  156. package/7725.min.js +0 -2
  157. package/7725.min.js.LICENSE.txt +0 -1
  158. package/7757.min.js +0 -2
  159. package/7757.min.js.LICENSE.txt +0 -1
  160. package/7769.min.js +0 -2
  161. package/7769.min.js.LICENSE.txt +0 -1
  162. package/7835.min.js +0 -2
  163. package/7835.min.js.LICENSE.txt +0 -1
  164. package/7859.min.js +0 -2
  165. package/7859.min.js.LICENSE.txt +0 -1
  166. package/7886.min.js +0 -2
  167. package/7886.min.js.LICENSE.txt +0 -1
  168. package/7890.min.js +0 -2
  169. package/7890.min.js.LICENSE.txt +0 -1
  170. package/8158.min.js +0 -2
  171. package/8158.min.js.LICENSE.txt +0 -1
  172. package/8638.min.js +0 -2
  173. package/8638.min.js.LICENSE.txt +0 -1
  174. package/8883.min.js +0 -2
  175. package/8883.min.js.LICENSE.txt +0 -1
  176. package/889.min.js +0 -2
  177. package/889.min.js.LICENSE.txt +0 -1
  178. package/9062.min.js +0 -2
  179. package/9062.min.js.LICENSE.txt +0 -1
  180. package/9126.min.js +0 -2
  181. package/9126.min.js.LICENSE.txt +0 -1
  182. package/9133.min.js +0 -2
  183. package/9133.min.js.LICENSE.txt +0 -1
  184. package/9376.min.js +0 -2
  185. package/9376.min.js.LICENSE.txt +0 -1
  186. package/9431.min.js +0 -2
  187. package/9431.min.js.LICENSE.txt +0 -1
  188. package/9530.min.js +0 -2
  189. package/9530.min.js.LICENSE.txt +0 -1
  190. package/9532.min.js +0 -2
  191. package/9532.min.js.LICENSE.txt +0 -1
  192. package/9921.min.js +0 -2
  193. package/9921.min.js.LICENSE.txt +0 -1
  194. package/basic_dist_browser_index_js.js +0 -30
  195. package/engine_dist_browser_Core_Container_js.js +0 -90
  196. package/engine_dist_browser_Core_Particle_js.js +0 -30
  197. package/interactions_external_attract_dist_browser_Attractor_js.js +0 -30
  198. package/interactions_external_attract_dist_browser_Utils_js.js +0 -30
  199. package/interactions_external_attract_dist_browser_index_js.js +0 -50
  200. package/interactions_external_bounce_dist_browser_Bouncer_js.js +0 -30
  201. package/interactions_external_bounce_dist_browser_Utils_js.js +0 -30
  202. package/interactions_external_bounce_dist_browser_index_js.js +0 -50
  203. package/interactions_external_bubble_dist_browser_Bubbler_js.js +0 -40
  204. package/interactions_external_bubble_dist_browser_index_js.js +0 -90
  205. package/interactions_external_connect_dist_browser_Connector_js.js +0 -40
  206. package/interactions_external_connect_dist_browser_index_js.js +0 -70
  207. package/interactions_external_grab_dist_browser_Grabber_js.js +0 -40
  208. package/interactions_external_grab_dist_browser_index_js.js +0 -70
  209. package/interactions_external_pause_dist_browser_Pauser_js.js +0 -30
  210. package/interactions_external_pause_dist_browser_index_js.js +0 -30
  211. package/interactions_external_push_dist_browser_Pusher_js.js +0 -30
  212. package/interactions_external_push_dist_browser_index_js.js +0 -50
  213. package/interactions_external_remove_dist_browser_Remover_js.js +0 -30
  214. package/interactions_external_remove_dist_browser_index_js.js +0 -50
  215. package/interactions_external_repulse_dist_browser_Repulser_js.js +0 -30
  216. package/interactions_external_repulse_dist_browser_index_js.js +0 -90
  217. package/interactions_external_slow_dist_browser_Slower_js.js +0 -30
  218. package/interactions_external_slow_dist_browser_index_js.js +0 -50
  219. package/interactions_particles_attract_dist_browser_Attractor_js.js +0 -30
  220. package/interactions_particles_attract_dist_browser_index_js.js +0 -30
  221. package/interactions_particles_collisions_dist_browser_Absorb_js.js +0 -30
  222. package/interactions_particles_collisions_dist_browser_Bounce_js.js +0 -30
  223. package/interactions_particles_collisions_dist_browser_Collider_js.js +0 -40
  224. package/interactions_particles_collisions_dist_browser_Destroy_js.js +0 -40
  225. package/interactions_particles_collisions_dist_browser_index_js.js +0 -30
  226. package/interactions_particles_links_dist_browser_CircleWarp_js.js +0 -30
  227. package/interactions_particles_links_dist_browser_LinkInstance_js.js +0 -40
  228. package/interactions_particles_links_dist_browser_Linker_js.js +0 -30
  229. package/interactions_particles_links_dist_browser_LinksPlugin_js.js +0 -30
  230. package/interactions_particles_links_dist_browser_index_js.js +0 -90
  231. package/interactions_particles_links_dist_browser_interaction_js.js +0 -30
  232. package/interactions_particles_links_dist_browser_plugin_js.js +0 -30
  233. package/move_base_dist_browser_BaseMover_js.js +0 -30
  234. package/move_base_dist_browser_Utils_js.js +0 -30
  235. package/move_base_dist_browser_index_js.js +0 -30
  236. package/move_parallax_dist_browser_ParallaxMover_js.js +0 -30
  237. package/move_parallax_dist_browser_index_js.js +0 -30
  238. package/plugins_easings_quad_dist_browser_index_js.js +0 -30
  239. package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -30
  240. package/shapes_circle_dist_browser_Utils_js.js +0 -30
  241. package/shapes_circle_dist_browser_index_js.js +0 -30
  242. package/shapes_emoji_dist_browser_EmojiDrawer_js.js +0 -30
  243. package/shapes_emoji_dist_browser_Utils_js.js +0 -30
  244. package/shapes_emoji_dist_browser_index_js.js +0 -40
  245. package/shapes_image_dist_browser_GifUtils_Utils_js.js +0 -50
  246. package/shapes_image_dist_browser_ImageDrawer_js.js +0 -30
  247. package/shapes_image_dist_browser_ImagePreloader_js.js +0 -40
  248. package/shapes_image_dist_browser_index_js.js +0 -40
  249. package/shapes_line_dist_browser_LineDrawer_js.js +0 -30
  250. package/shapes_line_dist_browser_Utils_js.js +0 -30
  251. package/shapes_line_dist_browser_index_js.js +0 -30
  252. package/shapes_polygon_dist_browser_PolygonDrawer_js.js +0 -40
  253. package/shapes_polygon_dist_browser_TriangleDrawer_js.js +0 -40
  254. package/shapes_polygon_dist_browser_Utils_js.js +0 -30
  255. package/shapes_polygon_dist_browser_index_js.js +0 -30
  256. package/shapes_square_dist_browser_SquareDrawer_js.js +0 -30
  257. package/shapes_square_dist_browser_Utils_js.js +0 -30
  258. package/shapes_square_dist_browser_index_js.js +0 -30
  259. package/shapes_star_dist_browser_StarDrawer_js.js +0 -30
  260. package/shapes_star_dist_browser_Utils_js.js +0 -30
  261. package/shapes_star_dist_browser_index_js.js +0 -30
  262. package/updaters_color_dist_browser_ColorUpdater_js.js +0 -30
  263. package/updaters_color_dist_browser_index_js.js +0 -30
  264. package/updaters_life_dist_browser_LifeUpdater_js.js +0 -60
  265. package/updaters_life_dist_browser_Utils_js.js +0 -30
  266. package/updaters_life_dist_browser_index_js.js +0 -30
  267. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
  268. package/updaters_opacity_dist_browser_index_js.js +0 -30
  269. package/updaters_outModes_dist_browser_BounceOutMode_js.js +0 -30
  270. package/updaters_outModes_dist_browser_DestroyOutMode_js.js +0 -30
  271. package/updaters_outModes_dist_browser_NoneOutMode_js.js +0 -30
  272. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -30
  273. package/updaters_outModes_dist_browser_OutOutMode_js.js +0 -30
  274. package/updaters_outModes_dist_browser_Utils_js.js +0 -30
  275. package/updaters_outModes_dist_browser_index_js.js +0 -30
  276. package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
  277. package/updaters_rotate_dist_browser_index_js.js +0 -30
  278. package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
  279. package/updaters_size_dist_browser_index_js.js +0 -30
  280. package/updaters_strokeColor_dist_browser_StrokeColorUpdater_js.js +0 -30
  281. package/updaters_strokeColor_dist_browser_index_js.js +0 -30
@@ -1,40 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_image_dist_browser_index_js"],{
19
-
20
- /***/ "../../shapes/image/dist/browser/Utils.js":
21
- /*!************************************************!*\
22
- !*** ../../shapes/image/dist/browser/Utils.js ***!
23
- \************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ downloadSvgImage: () => (/* binding */ downloadSvgImage),\n/* harmony export */ loadImage: () => (/* binding */ loadImage),\n/* harmony export */ replaceImageColor: () => (/* binding */ replaceImageColor)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst stringStart = 0,\n defaultOpacity = 1;\nconst currentColorRegex = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\\((-?\\d+%?[,\\s]+){2,3}\\s*[\\d.]+%?\\))|currentcolor/gi;\nfunction replaceColorSvg(imageShape, color, opacity) {\n const {\n svgData\n } = imageShape;\n if (!svgData) {\n return \"\";\n }\n const colorStyle = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getStyleFromHsl)(color, opacity);\n if (svgData.includes(\"fill\")) {\n return svgData.replace(currentColorRegex, () => colorStyle);\n }\n const preFillIndex = svgData.indexOf(\">\");\n return `${svgData.substring(stringStart, preFillIndex)} fill=\"${colorStyle}\"${svgData.substring(preFillIndex)}`;\n}\nasync function loadImage(image) {\n return new Promise(resolve => {\n image.loading = true;\n const img = new Image();\n image.element = img;\n img.addEventListener(\"load\", () => {\n image.loading = false;\n resolve();\n });\n img.addEventListener(\"error\", () => {\n image.element = undefined;\n image.error = true;\n image.loading = false;\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getLogger)().error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.errorPrefix} loading image: ${image.source}`);\n resolve();\n });\n img.src = image.source;\n });\n}\nasync function downloadSvgImage(image) {\n if (image.type !== \"svg\") {\n await loadImage(image);\n return;\n }\n image.loading = true;\n const response = await fetch(image.source);\n if (!response.ok) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getLogger)().error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.errorPrefix} Image not found`);\n image.error = true;\n } else {\n image.svgData = await response.text();\n }\n image.loading = false;\n}\nfunction replaceImageColor(image, imageData, color, particle) {\n const svgColoredData = replaceColorSvg(image, color, particle.opacity?.value ?? defaultOpacity),\n imageRes = {\n color,\n gif: imageData.gif,\n data: {\n ...image,\n svgData: svgColoredData\n },\n loaded: false,\n ratio: imageData.width / imageData.height,\n replaceColor: imageData.replaceColor,\n source: imageData.src\n };\n return new Promise(resolve => {\n const svg = new Blob([svgColoredData], {\n type: \"image/svg+xml\"\n }),\n domUrl = URL || window.URL || window.webkitURL || window,\n url = domUrl.createObjectURL(svg),\n img = new Image();\n img.addEventListener(\"load\", () => {\n imageRes.loaded = true;\n imageRes.element = img;\n resolve(imageRes);\n domUrl.revokeObjectURL(url);\n });\n const errorHandler = async () => {\n domUrl.revokeObjectURL(url);\n const img2 = {\n ...image,\n error: false,\n loading: true\n };\n await loadImage(img2);\n imageRes.loaded = true;\n imageRes.element = img2.element;\n resolve(imageRes);\n };\n img.addEventListener(\"error\", () => void errorHandler());\n img.src = url;\n });\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/image/dist/browser/Utils.js?");
27
-
28
- /***/ }),
29
-
30
- /***/ "../../shapes/image/dist/browser/index.js":
31
- /*!************************************************!*\
32
- !*** ../../shapes/image/dist/browser/index.js ***!
33
- \************************************************/
34
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
35
-
36
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadImageShape: () => (/* binding */ loadImageShape)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/image/dist/browser/Utils.js\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\n\nconst extLength = 3;\nfunction addLoadImageToEngine(engine) {\n if (engine.loadImage) {\n return;\n }\n engine.loadImage = async data => {\n if (!data.name && !data.src) {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.errorPrefix} no image source provided`);\n }\n if (!engine.images) {\n engine.images = [];\n }\n if (engine.images.find(t => t.name === data.name || t.source === data.src)) {\n return;\n }\n try {\n const image = {\n gif: data.gif ?? false,\n name: data.name ?? data.src,\n source: data.src,\n type: data.src.substring(data.src.length - extLength),\n error: false,\n loading: true,\n replaceColor: data.replaceColor,\n ratio: data.width && data.height ? data.width / data.height : undefined\n };\n engine.images.push(image);\n let imageFunc;\n if (data.gif) {\n const {\n loadGifImage\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_GifUtils_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./GifUtils/Utils.js */ \"../../shapes/image/dist/browser/GifUtils/Utils.js\"));\n imageFunc = loadGifImage;\n } else {\n imageFunc = data.replaceColor ? _Utils_js__WEBPACK_IMPORTED_MODULE_0__.downloadSvgImage : _Utils_js__WEBPACK_IMPORTED_MODULE_0__.loadImage;\n }\n await imageFunc(image);\n } catch {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.errorPrefix} ${data.name ?? data.src} not found`);\n }\n };\n}\nasync function loadImageShape(engine, refresh = true) {\n addLoadImageToEngine(engine);\n const {\n ImagePreloaderPlugin\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_ImagePreloader_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ImagePreloader.js */ \"../../shapes/image/dist/browser/ImagePreloader.js\")),\n {\n ImageDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_ImageDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ImageDrawer.js */ \"../../shapes/image/dist/browser/ImageDrawer.js\"));\n const preloader = new ImagePreloaderPlugin(engine);\n await engine.addPlugin(preloader, refresh);\n await engine.addShape([\"image\", \"images\"], new ImageDrawer(engine), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/image/dist/browser/index.js?");
37
-
38
- /***/ })
39
-
40
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_line_dist_browser_LineDrawer_js"],{
19
-
20
- /***/ "../../shapes/line/dist/browser/LineDrawer.js":
21
- /*!****************************************************!*\
22
- !*** ../../shapes/line/dist/browser/LineDrawer.js ***!
23
- \****************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LineDrawer: () => (/* binding */ LineDrawer)\n/* harmony export */ });\nconst sides = 1;\nclass LineDrawer {\n async draw(data) {\n const {\n drawLine\n } = await __webpack_require__.e(/*! import() */ \"shapes_line_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/line/dist/browser/Utils.js\"));\n drawLine(data);\n }\n getSidesCount() {\n return sides;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/line/dist/browser/LineDrawer.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_line_dist_browser_Utils_js"],{
19
-
20
- /***/ "../../shapes/line/dist/browser/Utils.js":
21
- /*!***********************************************!*\
22
- !*** ../../shapes/line/dist/browser/Utils.js ***!
23
- \***********************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawLine: () => (/* binding */ drawLine)\n/* harmony export */ });\nfunction drawLine(data) {\n const {\n context,\n particle,\n radius\n } = data,\n shapeData = particle.shapeData,\n centerY = 0;\n context.moveTo(-radius, centerY);\n context.lineTo(radius, centerY);\n context.lineCap = shapeData?.cap ?? \"butt\";\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/line/dist/browser/Utils.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_line_dist_browser_index_js"],{
19
-
20
- /***/ "../../shapes/line/dist/browser/index.js":
21
- /*!***********************************************!*\
22
- !*** ../../shapes/line/dist/browser/index.js ***!
23
- \***********************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadLineShape: () => (/* binding */ loadLineShape)\n/* harmony export */ });\nasync function loadLineShape(engine, refresh = true) {\n const {\n LineDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_line_dist_browser_LineDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./LineDrawer.js */ \"../../shapes/line/dist/browser/LineDrawer.js\"));\n await engine.addShape(\"line\", new LineDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/line/dist/browser/index.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,40 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_polygon_dist_browser_PolygonDrawer_js"],{
19
-
20
- /***/ "../../shapes/polygon/dist/browser/PolygonDrawer.js":
21
- /*!**********************************************************!*\
22
- !*** ../../shapes/polygon/dist/browser/PolygonDrawer.js ***!
23
- \**********************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonDrawer: () => (/* binding */ PolygonDrawer)\n/* harmony export */ });\n/* harmony import */ var _PolygonDrawerBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PolygonDrawerBase.js */ \"../../shapes/polygon/dist/browser/PolygonDrawerBase.js\");\n\nconst sidesCenterFactor = 3.5,\n yFactor = 2.66,\n sidesFactor = 3;\nclass PolygonDrawer extends _PolygonDrawerBase_js__WEBPACK_IMPORTED_MODULE_0__.PolygonDrawerBase {\n getCenter(particle, radius) {\n return {\n x: -radius / (particle.sides / sidesCenterFactor),\n y: -radius / (yFactor / sidesCenterFactor)\n };\n }\n getSidesData(particle, radius) {\n const sides = particle.sides;\n return {\n count: {\n denominator: 1,\n numerator: sides\n },\n length: radius * yFactor / (sides / sidesFactor)\n };\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/polygon/dist/browser/PolygonDrawer.js?");
27
-
28
- /***/ }),
29
-
30
- /***/ "../../shapes/polygon/dist/browser/PolygonDrawerBase.js":
31
- /*!**************************************************************!*\
32
- !*** ../../shapes/polygon/dist/browser/PolygonDrawerBase.js ***!
33
- \**************************************************************/
34
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
35
-
36
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonDrawerBase: () => (/* binding */ PolygonDrawerBase)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultSides = 5;\nclass PolygonDrawerBase {\n async draw(data) {\n const {\n particle,\n radius\n } = data,\n start = this.getCenter(particle, radius),\n side = this.getSidesData(particle, radius),\n {\n drawPolygon\n } = await __webpack_require__.e(/*! import() */ \"shapes_polygon_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/polygon/dist/browser/Utils.js\"));\n drawPolygon(data, start, side);\n }\n getSidesCount(particle) {\n const polygon = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(polygon?.sides ?? defaultSides));\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/polygon/dist/browser/PolygonDrawerBase.js?");
37
-
38
- /***/ })
39
-
40
- }]);
@@ -1,40 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_polygon_dist_browser_TriangleDrawer_js"],{
19
-
20
- /***/ "../../shapes/polygon/dist/browser/PolygonDrawerBase.js":
21
- /*!**************************************************************!*\
22
- !*** ../../shapes/polygon/dist/browser/PolygonDrawerBase.js ***!
23
- \**************************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonDrawerBase: () => (/* binding */ PolygonDrawerBase)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultSides = 5;\nclass PolygonDrawerBase {\n async draw(data) {\n const {\n particle,\n radius\n } = data,\n start = this.getCenter(particle, radius),\n side = this.getSidesData(particle, radius),\n {\n drawPolygon\n } = await __webpack_require__.e(/*! import() */ \"shapes_polygon_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/polygon/dist/browser/Utils.js\"));\n drawPolygon(data, start, side);\n }\n getSidesCount(particle) {\n const polygon = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(polygon?.sides ?? defaultSides));\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/polygon/dist/browser/PolygonDrawerBase.js?");
27
-
28
- /***/ }),
29
-
30
- /***/ "../../shapes/polygon/dist/browser/TriangleDrawer.js":
31
- /*!***********************************************************!*\
32
- !*** ../../shapes/polygon/dist/browser/TriangleDrawer.js ***!
33
- \***********************************************************/
34
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
35
-
36
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TriangleDrawer: () => (/* binding */ TriangleDrawer)\n/* harmony export */ });\n/* harmony import */ var _PolygonDrawerBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PolygonDrawerBase.js */ \"../../shapes/polygon/dist/browser/PolygonDrawerBase.js\");\n\nconst yFactor = 1.66,\n sides = 3,\n double = 2;\nclass TriangleDrawer extends _PolygonDrawerBase_js__WEBPACK_IMPORTED_MODULE_0__.PolygonDrawerBase {\n getCenter(particle, radius) {\n return {\n x: -radius,\n y: radius / yFactor\n };\n }\n getSidesCount() {\n return sides;\n }\n getSidesData(particle, radius) {\n const diameter = radius * double;\n return {\n count: {\n denominator: 2,\n numerator: 3\n },\n length: diameter\n };\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/polygon/dist/browser/TriangleDrawer.js?");
37
-
38
- /***/ })
39
-
40
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_polygon_dist_browser_Utils_js"],{
19
-
20
- /***/ "../../shapes/polygon/dist/browser/Utils.js":
21
- /*!**************************************************!*\
22
- !*** ../../shapes/polygon/dist/browser/Utils.js ***!
23
- \**************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawPolygon: () => (/* binding */ drawPolygon)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst piDeg = 180,\n origin = {\n x: 0,\n y: 0\n },\n sidesOffset = 2;\nfunction drawPolygon(data, start, side) {\n const {\n context\n } = data,\n sideCount = side.count.numerator * side.count.denominator,\n decimalSides = side.count.numerator / side.count.denominator,\n interiorAngleDegrees = piDeg * (decimalSides - sidesOffset) / decimalSides,\n interiorAngle = Math.PI - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(interiorAngleDegrees);\n if (!context) {\n return;\n }\n context.beginPath();\n context.translate(start.x, start.y);\n context.moveTo(origin.x, origin.y);\n for (let i = 0; i < sideCount; i++) {\n context.lineTo(side.length, origin.y);\n context.translate(side.length, origin.y);\n context.rotate(interiorAngle);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/polygon/dist/browser/Utils.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_polygon_dist_browser_index_js"],{
19
-
20
- /***/ "../../shapes/polygon/dist/browser/index.js":
21
- /*!**************************************************!*\
22
- !*** ../../shapes/polygon/dist/browser/index.js ***!
23
- \**************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadGenericPolygonShape: () => (/* binding */ loadGenericPolygonShape),\n/* harmony export */ loadPolygonShape: () => (/* binding */ loadPolygonShape),\n/* harmony export */ loadTriangleShape: () => (/* binding */ loadTriangleShape)\n/* harmony export */ });\nasync function loadGenericPolygonShape(engine, refresh = true) {\n const {\n PolygonDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_polygon_dist_browser_PolygonDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./PolygonDrawer.js */ \"../../shapes/polygon/dist/browser/PolygonDrawer.js\"));\n await engine.addShape(\"polygon\", new PolygonDrawer(), refresh);\n}\nasync function loadTriangleShape(engine, refresh = true) {\n const {\n TriangleDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_polygon_dist_browser_TriangleDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./TriangleDrawer.js */ \"../../shapes/polygon/dist/browser/TriangleDrawer.js\"));\n await engine.addShape(\"triangle\", new TriangleDrawer(), refresh);\n}\nasync function loadPolygonShape(engine, refresh = true) {\n await loadGenericPolygonShape(engine, refresh);\n await loadTriangleShape(engine, refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/polygon/dist/browser/index.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_square_dist_browser_SquareDrawer_js"],{
19
-
20
- /***/ "../../shapes/square/dist/browser/SquareDrawer.js":
21
- /*!********************************************************!*\
22
- !*** ../../shapes/square/dist/browser/SquareDrawer.js ***!
23
- \********************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SquareDrawer: () => (/* binding */ SquareDrawer)\n/* harmony export */ });\nconst sides = 4;\nclass SquareDrawer {\n async draw(data) {\n const {\n drawSquare\n } = await __webpack_require__.e(/*! import() */ \"shapes_square_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/square/dist/browser/Utils.js\"));\n drawSquare(data);\n }\n getSidesCount() {\n return sides;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/square/dist/browser/SquareDrawer.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_square_dist_browser_Utils_js"],{
19
-
20
- /***/ "../../shapes/square/dist/browser/Utils.js":
21
- /*!*************************************************!*\
22
- !*** ../../shapes/square/dist/browser/Utils.js ***!
23
- \*************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawSquare: () => (/* binding */ drawSquare)\n/* harmony export */ });\nconst fixFactorSquared = 2,\n fixFactor = Math.sqrt(fixFactorSquared),\n double = 2;\nfunction drawSquare(data) {\n const {\n context,\n radius\n } = data,\n fixedRadius = radius / fixFactor,\n fixedDiameter = fixedRadius * double;\n context.rect(-fixedRadius, -fixedRadius, fixedDiameter, fixedDiameter);\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/square/dist/browser/Utils.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_square_dist_browser_index_js"],{
19
-
20
- /***/ "../../shapes/square/dist/browser/index.js":
21
- /*!*************************************************!*\
22
- !*** ../../shapes/square/dist/browser/index.js ***!
23
- \*************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadSquareShape: () => (/* binding */ loadSquareShape)\n/* harmony export */ });\nasync function loadSquareShape(engine, refresh = true) {\n const {\n SquareDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_square_dist_browser_SquareDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./SquareDrawer.js */ \"../../shapes/square/dist/browser/SquareDrawer.js\"));\n await engine.addShape([\"edge\", \"square\"], new SquareDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/square/dist/browser/index.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_star_dist_browser_StarDrawer_js"],{
19
-
20
- /***/ "../../shapes/star/dist/browser/StarDrawer.js":
21
- /*!****************************************************!*\
22
- !*** ../../shapes/star/dist/browser/StarDrawer.js ***!
23
- \****************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ StarDrawer: () => (/* binding */ StarDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultInset = 2,\n defaultSides = 5;\nclass StarDrawer {\n async draw(data) {\n const {\n drawStar\n } = await __webpack_require__.e(/*! import() */ \"shapes_star_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/star/dist/browser/Utils.js\"));\n drawStar(data);\n }\n getSidesCount(particle) {\n const star = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(star?.sides ?? defaultSides));\n }\n async particleInit(container, particle) {\n const star = particle.shapeData;\n particle.starInset = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(star?.inset ?? defaultInset);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/star/dist/browser/StarDrawer.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_star_dist_browser_Utils_js"],{
19
-
20
- /***/ "../../shapes/star/dist/browser/Utils.js":
21
- /*!***********************************************!*\
22
- !*** ../../shapes/star/dist/browser/Utils.js ***!
23
- \***********************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawStar: () => (/* binding */ drawStar)\n/* harmony export */ });\nconst defaultInset = 2,\n origin = {\n x: 0,\n y: 0\n };\nfunction drawStar(data) {\n const {\n context,\n particle,\n radius\n } = data,\n sides = particle.sides,\n inset = particle.starInset ?? defaultInset;\n context.moveTo(origin.x, origin.y - radius);\n for (let i = 0; i < sides; i++) {\n context.rotate(Math.PI / sides);\n context.lineTo(origin.x, origin.y - radius * inset);\n context.rotate(Math.PI / sides);\n context.lineTo(origin.x, origin.y - radius);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/star/dist/browser/Utils.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["shapes_star_dist_browser_index_js"],{
19
-
20
- /***/ "../../shapes/star/dist/browser/index.js":
21
- /*!***********************************************!*\
22
- !*** ../../shapes/star/dist/browser/index.js ***!
23
- \***********************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadStarShape: () => (/* binding */ loadStarShape)\n/* harmony export */ });\nasync function loadStarShape(engine, refresh = true) {\n const {\n StarDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_star_dist_browser_StarDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./StarDrawer.js */ \"../../shapes/star/dist/browser/StarDrawer.js\"));\n await engine.addShape(\"star\", new StarDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../shapes/star/dist/browser/index.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["updaters_color_dist_browser_ColorUpdater_js"],{
19
-
20
- /***/ "../../updaters/color/dist/browser/ColorUpdater.js":
21
- /*!*********************************************************!*\
22
- !*** ../../updaters/color/dist/browser/ColorUpdater.js ***!
23
- \*********************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ColorUpdater: () => (/* binding */ ColorUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass ColorUpdater {\n constructor(container) {\n this.container = container;\n }\n async init(particle) {\n const hslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(particle.options.color, particle.id, particle.options.reduceDuplicates);\n if (hslColor) {\n particle.color = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(hslColor, particle.options.color.animation, this.container.retina.reduceFactor);\n }\n await Promise.resolve();\n }\n isEnabled(particle) {\n const {\n h: hAnimation,\n s: sAnimation,\n l: lAnimation\n } = particle.options.color.animation,\n {\n color\n } = particle;\n return !particle.destroyed && !particle.spawning && (color?.h.value !== undefined && hAnimation.enable || color?.s.value !== undefined && sAnimation.enable || color?.l.value !== undefined && lAnimation.enable);\n }\n async update(particle, delta) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(particle.color, delta);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../updaters/color/dist/browser/ColorUpdater.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_slim"] = this["webpackChunk_tsparticles_slim"] || []).push([["updaters_color_dist_browser_index_js"],{
19
-
20
- /***/ "../../updaters/color/dist/browser/index.js":
21
- /*!**************************************************!*\
22
- !*** ../../updaters/color/dist/browser/index.js ***!
23
- \**************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadColorUpdater: () => (/* binding */ loadColorUpdater)\n/* harmony export */ });\nasync function loadColorUpdater(engine, refresh = true) {\n await engine.addParticleUpdater(\"color\", async container => {\n const {\n ColorUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_color_dist_browser_ColorUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ColorUpdater.js */ \"../../updaters/color/dist/browser/ColorUpdater.js\"));\n return new ColorUpdater(container);\n }, refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/slim/../../updaters/color/dist/browser/index.js?");
27
-
28
- /***/ })
29
-
30
- }]);