@tsparticles/pjs 4.0.0-alpha.8 → 4.0.0-beta.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 (494) hide show
  1. package/102.min.js +1 -0
  2. package/1098.min.js +1 -0
  3. package/1298.min.js +1 -0
  4. package/1302.min.js +1 -0
  5. package/1368.min.js +1 -0
  6. package/1510.min.js +1 -0
  7. package/1553.min.js +1 -0
  8. package/161.min.js +1 -0
  9. package/1624.min.js +1 -0
  10. package/1667.min.js +1 -0
  11. package/229.min.js +1 -0
  12. package/2382.min.js +1 -0
  13. package/2418.min.js +1 -0
  14. package/243.min.js +1 -0
  15. package/2616.min.js +1 -0
  16. package/2618.min.js +1 -0
  17. package/2738.min.js +1 -0
  18. package/2846.min.js +1 -0
  19. package/2926.min.js +1 -0
  20. package/3091.min.js +1 -0
  21. package/3093.min.js +1 -0
  22. package/3130.min.js +1 -0
  23. package/3194.min.js +1 -0
  24. package/3296.min.js +1 -0
  25. package/3407.min.js +1 -0
  26. package/3413.min.js +1 -0
  27. package/3433.min.js +1 -0
  28. package/3455.min.js +1 -0
  29. package/3464.min.js +1 -0
  30. package/358.min.js +1 -0
  31. package/3618.min.js +1 -0
  32. package/3657.min.js +1 -0
  33. package/3659.min.js +1 -0
  34. package/366.min.js +1 -0
  35. package/3663.min.js +1 -0
  36. package/3713.min.js +1 -0
  37. package/3715.min.js +1 -0
  38. package/3813.min.js +1 -0
  39. package/4089.min.js +1 -0
  40. package/4149.min.js +1 -0
  41. package/4191.min.js +1 -0
  42. package/4257.min.js +1 -0
  43. package/4268.min.js +1 -0
  44. package/4270.min.js +1 -0
  45. package/4285.min.js +1 -0
  46. package/4292.min.js +1 -0
  47. package/439.min.js +1 -0
  48. package/4462.min.js +1 -0
  49. package/4570.min.js +1 -0
  50. package/4572.min.js +1 -0
  51. package/4588.min.js +1 -0
  52. package/465.min.js +1 -0
  53. package/4660.min.js +1 -0
  54. package/4724.min.js +1 -0
  55. package/4792.min.js +1 -0
  56. package/485.min.js +1 -0
  57. package/4932.min.js +1 -0
  58. package/514.min.js +1 -0
  59. package/5157.min.js +1 -0
  60. package/5315.min.js +1 -0
  61. package/5390.min.js +1 -0
  62. package/5406.min.js +1 -0
  63. package/5478.min.js +1 -0
  64. package/5538.min.js +1 -0
  65. package/5552.min.js +1 -0
  66. package/5855.min.js +1 -0
  67. package/5964.min.js +1 -0
  68. package/6066.min.js +1 -0
  69. package/608.min.js +1 -0
  70. package/6098.min.js +1 -0
  71. package/6101.min.js +1 -0
  72. package/6179.min.js +1 -0
  73. package/622.min.js +1 -0
  74. package/6299.min.js +1 -0
  75. package/6361.min.js +1 -2
  76. package/6465.min.js +1 -0
  77. package/65.min.js +1 -0
  78. package/653.min.js +1 -0
  79. package/6583.min.js +1 -0
  80. package/6638.min.js +1 -0
  81. package/6684.min.js +1 -0
  82. package/6839.min.js +1 -0
  83. package/6970.min.js +1 -0
  84. package/6982.min.js +1 -0
  85. package/6986.min.js +1 -0
  86. package/7116.min.js +1 -0
  87. package/7256.min.js +1 -2
  88. package/7258.min.js +1 -0
  89. package/7318.min.js +1 -0
  90. package/7449.min.js +1 -0
  91. package/7475.min.js +1 -0
  92. package/7520.min.js +1 -0
  93. package/7622.min.js +2 -0
  94. package/7646.min.js +1 -0
  95. package/7812.min.js +1 -0
  96. package/7876.min.js +1 -0
  97. package/7922.min.js +1 -0
  98. package/7925.min.js +1 -0
  99. package/7977.min.js +1 -0
  100. package/8109.min.js +1 -0
  101. package/8214.min.js +1 -0
  102. package/8222.min.js +1 -0
  103. package/8315.min.js +1 -0
  104. package/84.min.js +1 -0
  105. package/8476.min.js +1 -0
  106. package/8484.min.js +1 -0
  107. package/8589.min.js +1 -0
  108. package/8684.min.js +1 -0
  109. package/8689.min.js +1 -0
  110. package/8902.min.js +1 -0
  111. package/8926.min.js +2 -0
  112. package/9082.min.js +1 -0
  113. package/9202.min.js +1 -0
  114. package/9544.min.js +1 -0
  115. package/9578.min.js +1 -0
  116. package/9611.min.js +1 -0
  117. package/9630.min.js +1 -0
  118. package/9739.min.js +1 -0
  119. package/README.md +31 -2
  120. package/basic_dist_browser_index_js.js +2 -2
  121. package/browser/VincentGarreau/particles.js +9 -12
  122. package/browser/bundle.js +1 -2
  123. package/browser/index.js +5 -2
  124. package/browser/marcbruederlin/Particles.js +1 -0
  125. package/cjs/VincentGarreau/particles.js +9 -12
  126. package/cjs/bundle.js +1 -2
  127. package/cjs/index.js +5 -2
  128. package/cjs/marcbruederlin/Particles.js +1 -0
  129. package/engine_dist_browser_Core_Container_js.js +12 -12
  130. package/esm/VincentGarreau/particles.js +9 -12
  131. package/esm/bundle.js +1 -2
  132. package/esm/index.js +5 -2
  133. package/esm/marcbruederlin/Particles.js +1 -0
  134. package/full_dist_browser_index_js.js +2 -2
  135. package/interactions_external_attract_dist_browser_Attractor_js.js +42 -42
  136. package/interactions_external_attract_dist_browser_index_js.js +3 -3
  137. package/interactions_external_bounce_dist_browser_Bouncer_js.js +42 -42
  138. package/interactions_external_bounce_dist_browser_index_js.js +3 -3
  139. package/interactions_external_bubble_dist_browser_Bubbler_js.js +43 -43
  140. package/interactions_external_bubble_dist_browser_index_js.js +5 -5
  141. package/interactions_external_connect_dist_browser_Connector_js.js +62 -42
  142. package/interactions_external_connect_dist_browser_index_js.js +4 -4
  143. package/interactions_external_drag_dist_browser_Dragger_js.js +130 -0
  144. package/interactions_external_drag_dist_browser_index_js.js +40 -0
  145. package/interactions_external_grab_dist_browser_Grabber_js.js +62 -42
  146. package/interactions_external_grab_dist_browser_index_js.js +4 -4
  147. package/interactions_external_parallax_dist_browser_Parallaxer_js.js +41 -41
  148. package/interactions_external_parallax_dist_browser_index_js.js +3 -3
  149. package/interactions_external_pause_dist_browser_Pauser_js.js +41 -41
  150. package/interactions_external_pause_dist_browser_index_js.js +2 -2
  151. package/interactions_external_push_dist_browser_Pusher_js.js +41 -41
  152. package/interactions_external_push_dist_browser_index_js.js +3 -3
  153. package/interactions_external_remove_dist_browser_Remover_js.js +41 -41
  154. package/interactions_external_remove_dist_browser_index_js.js +3 -3
  155. package/interactions_external_repulse_dist_browser_Repulser_js.js +41 -41
  156. package/interactions_external_repulse_dist_browser_index_js.js +5 -5
  157. package/interactions_external_slow_dist_browser_Slower_js.js +41 -41
  158. package/interactions_external_slow_dist_browser_index_js.js +3 -3
  159. package/interactions_external_trail_dist_browser_TrailMaker_js.js +41 -41
  160. package/interactions_external_trail_dist_browser_index_js.js +33 -3
  161. package/interactions_particles_attract_dist_browser_Attractor_js.js +51 -41
  162. package/interactions_particles_attract_dist_browser_index_js.js +2 -2
  163. package/interactions_particles_collisions_dist_browser_Collider_js.js +49 -49
  164. package/interactions_particles_collisions_dist_browser_OverlapPluginInstance_js.js +2 -2
  165. package/interactions_particles_collisions_dist_browser_OverlapPlugin_js.js +2 -2
  166. package/interactions_particles_collisions_dist_browser_index_js.js +2 -2
  167. package/interactions_particles_links_dist_browser_LinkInstance_js.js +3 -3
  168. package/interactions_particles_links_dist_browser_Linker_js.js +42 -42
  169. package/interactions_particles_links_dist_browser_LinksPlugin_js.js +2 -2
  170. package/interactions_particles_links_dist_browser_index_js.js +5 -5
  171. package/package.json +4 -4
  172. package/plugins_absorbers_dist_browser_AbsorberInstance_js.js +15 -5
  173. package/plugins_absorbers_dist_browser_AbsorbersInstancesManager_js.js +2 -2
  174. package/plugins_absorbers_dist_browser_AbsorbersInteractor_js.js +54 -44
  175. package/plugins_absorbers_dist_browser_AbsorbersPluginInstance_js.js +2 -2
  176. package/plugins_absorbers_dist_browser_AbsorbersPlugin_js.js +15 -5
  177. package/plugins_absorbers_dist_browser_index_js.js +2 -2
  178. package/plugins_colors_hex_dist_browser_HexColorManager_js.js +2 -2
  179. package/plugins_colors_hex_dist_browser_index_js.js +2 -2
  180. package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +2 -2
  181. package/plugins_colors_hsl_dist_browser_index_js.js +2 -2
  182. package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +2 -2
  183. package/plugins_colors_rgb_dist_browser_index_js.js +2 -2
  184. package/plugins_easings_quad_dist_browser_easingsFunctions_js.js +2 -2
  185. package/plugins_easings_quad_dist_browser_index_js.js +2 -2
  186. package/plugins_emittersShapes_circle_dist_browser_EmittersCircleShapeGenerator_js.js +6 -6
  187. package/plugins_emittersShapes_circle_dist_browser_index_js.js +2 -2
  188. package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +6 -6
  189. package/plugins_emittersShapes_square_dist_browser_index_js.js +2 -2
  190. package/plugins_emitters_dist_browser_EmitterInstance_js.js +2 -2
  191. package/plugins_emitters_dist_browser_EmittersInstancesManager_js.js +18 -8
  192. package/plugins_emitters_dist_browser_EmittersInteractor_js.js +58 -48
  193. package/plugins_emitters_dist_browser_EmittersPluginInstance_js.js +2 -2
  194. package/plugins_emitters_dist_browser_EmittersPlugin_js.js +18 -8
  195. package/plugins_emitters_dist_browser_ShapeManager_js.js +2 -2
  196. package/plugins_emitters_dist_browser_index_js.js +4 -4
  197. package/plugins_interactivity_dist_browser_InteractivityPluginInstance_js.js +4 -4
  198. package/plugins_interactivity_dist_browser_InteractivityPlugin_js.js +6 -6
  199. package/plugins_interactivity_dist_browser_index_js.js +40 -40
  200. package/plugins_move_dist_browser_MovePluginInstance_js.js +40 -0
  201. package/{updaters_color_dist_browser_index_js.js → plugins_move_dist_browser_MovePlugin_js.js} +7 -7
  202. package/plugins_move_dist_browser_index_js.js +30 -0
  203. package/plugins_responsive_dist_browser_ResponsivePluginInstance_js.js +2 -2
  204. package/plugins_responsive_dist_browser_ResponsivePlugin_js.js +4 -4
  205. package/plugins_responsive_dist_browser_index_js.js +2 -2
  206. package/report.html +1 -1
  207. package/shapes_circle_dist_browser_CircleDrawer_js.js +3 -3
  208. package/shapes_circle_dist_browser_index_js.js +2 -2
  209. package/shapes_emoji_dist_browser_EmojiDrawer_js.js +17 -7
  210. package/shapes_emoji_dist_browser_index_js.js +12 -2
  211. package/shapes_image_dist_browser_GifUtils_Utils_js.js +6 -16
  212. package/shapes_image_dist_browser_ImageDrawer_js.js +2 -2
  213. package/{move_base_dist_browser_index_js.js → shapes_image_dist_browser_ImagePreloaderInstance_js.js} +7 -7
  214. package/shapes_image_dist_browser_ImagePreloader_js.js +3 -3
  215. package/shapes_image_dist_browser_index_js.js +12 -2
  216. package/shapes_line_dist_browser_LineDrawer_js.js +3 -3
  217. package/shapes_line_dist_browser_index_js.js +2 -2
  218. package/shapes_polygon_dist_browser_PolygonDrawer_js.js +4 -4
  219. package/shapes_polygon_dist_browser_TriangleDrawer_js.js +4 -4
  220. package/shapes_polygon_dist_browser_index_js.js +2 -2
  221. package/shapes_square_dist_browser_SquareDrawer_js.js +3 -3
  222. package/shapes_square_dist_browser_index_js.js +2 -2
  223. package/shapes_star_dist_browser_StarDrawer_js.js +3 -3
  224. package/shapes_star_dist_browser_index_js.js +2 -2
  225. package/shapes_text_dist_browser_TextDrawer_js.js +17 -7
  226. package/shapes_text_dist_browser_index_js.js +12 -2
  227. package/slim_dist_browser_index_js.js +2 -2
  228. package/tsparticles.pjs.bundle.js +97 -95
  229. package/tsparticles.pjs.bundle.min.js +2 -2
  230. package/tsparticles.pjs.js +37 -37
  231. package/tsparticles.pjs.min.js +1 -2
  232. package/types/bundle.d.ts +1 -2
  233. package/types/index.d.ts +1 -3
  234. package/umd/VincentGarreau/particles.js +9 -12
  235. package/umd/bundle.js +3 -3
  236. package/umd/index.js +5 -2
  237. package/umd/marcbruederlin/Particles.js +1 -0
  238. package/updaters_destroy_dist_browser_DestroyUpdater_js.js +9 -9
  239. package/updaters_destroy_dist_browser_index_js.js +2 -2
  240. package/updaters_fillColor_dist_browser_FillColorUpdater_js.js +30 -0
  241. package/updaters_fillColor_dist_browser_index_js.js +30 -0
  242. package/updaters_life_dist_browser_LifeUpdater_js.js +6 -6
  243. package/updaters_life_dist_browser_index_js.js +2 -2
  244. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +2 -2
  245. package/updaters_opacity_dist_browser_index_js.js +2 -2
  246. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +7 -7
  247. package/updaters_outModes_dist_browser_index_js.js +2 -2
  248. package/updaters_roll_dist_browser_RollUpdater_js.js +6 -6
  249. package/updaters_roll_dist_browser_index_js.js +2 -2
  250. package/updaters_rotate_dist_browser_RotateUpdater_js.js +4 -4
  251. package/updaters_rotate_dist_browser_index_js.js +2 -2
  252. package/updaters_size_dist_browser_SizeUpdater_js.js +2 -2
  253. package/updaters_size_dist_browser_index_js.js +2 -2
  254. package/updaters_strokeColor_dist_browser_StrokeColorUpdater_js.js +2 -2
  255. package/updaters_strokeColor_dist_browser_index_js.js +2 -2
  256. package/updaters_tilt_dist_browser_TiltUpdater_js.js +5 -5
  257. package/updaters_tilt_dist_browser_index_js.js +2 -2
  258. package/updaters_twinkle_dist_browser_TwinkleUpdater_js.js +18 -8
  259. package/updaters_twinkle_dist_browser_index_js.js +2 -2
  260. package/updaters_wobble_dist_browser_WobbleUpdater_js.js +5 -5
  261. package/updaters_wobble_dist_browser_index_js.js +2 -2
  262. package/1049.min.js +0 -2
  263. package/1049.min.js.LICENSE.txt +0 -1
  264. package/1085.min.js +0 -2
  265. package/1085.min.js.LICENSE.txt +0 -1
  266. package/1306.min.js +0 -2
  267. package/1306.min.js.LICENSE.txt +0 -1
  268. package/1350.min.js +0 -2
  269. package/1350.min.js.LICENSE.txt +0 -1
  270. package/150.min.js +0 -2
  271. package/150.min.js.LICENSE.txt +0 -1
  272. package/1542.min.js +0 -2
  273. package/1542.min.js.LICENSE.txt +0 -1
  274. package/1608.min.js +0 -2
  275. package/1608.min.js.LICENSE.txt +0 -1
  276. package/1750.min.js +0 -2
  277. package/1750.min.js.LICENSE.txt +0 -1
  278. package/176.min.js +0 -2
  279. package/176.min.js.LICENSE.txt +0 -1
  280. package/1801.min.js +0 -2
  281. package/1801.min.js.LICENSE.txt +0 -1
  282. package/1968.min.js +0 -2
  283. package/1968.min.js.LICENSE.txt +0 -1
  284. package/2201.min.js +0 -2
  285. package/2201.min.js.LICENSE.txt +0 -1
  286. package/221.min.js +0 -2
  287. package/221.min.js.LICENSE.txt +0 -1
  288. package/2398.min.js +0 -2
  289. package/2398.min.js.LICENSE.txt +0 -1
  290. package/2488.min.js +0 -2
  291. package/2488.min.js.LICENSE.txt +0 -1
  292. package/2495.min.js +0 -2
  293. package/2495.min.js.LICENSE.txt +0 -1
  294. package/2754.min.js +0 -2
  295. package/2754.min.js.LICENSE.txt +0 -1
  296. package/2827.min.js +0 -2
  297. package/2827.min.js.LICENSE.txt +0 -1
  298. package/2842.min.js +0 -2
  299. package/2842.min.js.LICENSE.txt +0 -1
  300. package/290.min.js +0 -2
  301. package/290.min.js.LICENSE.txt +0 -1
  302. package/2942.min.js +0 -2
  303. package/2942.min.js.LICENSE.txt +0 -1
  304. package/2970.min.js +0 -2
  305. package/2970.min.js.LICENSE.txt +0 -1
  306. package/3003.min.js +0 -2
  307. package/3003.min.js.LICENSE.txt +0 -1
  308. package/3120.min.js +0 -2
  309. package/3120.min.js.LICENSE.txt +0 -1
  310. package/3148.min.js +0 -2
  311. package/3148.min.js.LICENSE.txt +0 -1
  312. package/3153.min.js +0 -2
  313. package/3153.min.js.LICENSE.txt +0 -1
  314. package/3209.min.js +0 -2
  315. package/3209.min.js.LICENSE.txt +0 -1
  316. package/3306.min.js +0 -2
  317. package/3306.min.js.LICENSE.txt +0 -1
  318. package/3316.min.js +0 -2
  319. package/3316.min.js.LICENSE.txt +0 -1
  320. package/3442.min.js +0 -2
  321. package/3442.min.js.LICENSE.txt +0 -1
  322. package/346.min.js +0 -2
  323. package/346.min.js.LICENSE.txt +0 -1
  324. package/3712.min.js +0 -2
  325. package/3712.min.js.LICENSE.txt +0 -1
  326. package/3743.min.js +0 -2
  327. package/3743.min.js.LICENSE.txt +0 -1
  328. package/3744.min.js +0 -2
  329. package/3744.min.js.LICENSE.txt +0 -1
  330. package/3748.min.js +0 -2
  331. package/3748.min.js.LICENSE.txt +0 -1
  332. package/3759.min.js +0 -2
  333. package/3759.min.js.LICENSE.txt +0 -1
  334. package/3803.min.js +0 -2
  335. package/3803.min.js.LICENSE.txt +0 -1
  336. package/3804.min.js +0 -2
  337. package/3804.min.js.LICENSE.txt +0 -1
  338. package/3865.min.js +0 -2
  339. package/3865.min.js.LICENSE.txt +0 -1
  340. package/3925.min.js +0 -2
  341. package/3925.min.js.LICENSE.txt +0 -1
  342. package/3997.min.js +0 -2
  343. package/3997.min.js.LICENSE.txt +0 -1
  344. package/4427.min.js +0 -2
  345. package/4427.min.js.LICENSE.txt +0 -1
  346. package/4619.min.js +0 -2
  347. package/4619.min.js.LICENSE.txt +0 -1
  348. package/4698.min.js +0 -2
  349. package/4698.min.js.LICENSE.txt +0 -1
  350. package/4764.min.js +0 -2
  351. package/4764.min.js.LICENSE.txt +0 -1
  352. package/4813.min.js +0 -2
  353. package/4813.min.js.LICENSE.txt +0 -1
  354. package/4884.min.js +0 -2
  355. package/4884.min.js.LICENSE.txt +0 -1
  356. package/4983.min.js +0 -2
  357. package/4983.min.js.LICENSE.txt +0 -1
  358. package/5113.min.js +0 -2
  359. package/5113.min.js.LICENSE.txt +0 -1
  360. package/5142.min.js +0 -2
  361. package/5142.min.js.LICENSE.txt +0 -1
  362. package/521.min.js +0 -2
  363. package/521.min.js.LICENSE.txt +0 -1
  364. package/5302.min.js +0 -2
  365. package/5302.min.js.LICENSE.txt +0 -1
  366. package/5475.min.js +0 -2
  367. package/5475.min.js.LICENSE.txt +0 -1
  368. package/5505.min.js +0 -2
  369. package/5505.min.js.LICENSE.txt +0 -1
  370. package/5516.min.js +0 -2
  371. package/5516.min.js.LICENSE.txt +0 -1
  372. package/5913.min.js +0 -2
  373. package/5913.min.js.LICENSE.txt +0 -1
  374. package/5919.min.js +0 -2
  375. package/5919.min.js.LICENSE.txt +0 -1
  376. package/597.min.js +0 -2
  377. package/597.min.js.LICENSE.txt +0 -1
  378. package/5987.min.js +0 -2
  379. package/5987.min.js.LICENSE.txt +0 -1
  380. package/620.min.js +0 -2
  381. package/620.min.js.LICENSE.txt +0 -1
  382. package/6296.min.js +0 -2
  383. package/6296.min.js.LICENSE.txt +0 -1
  384. package/6361.min.js.LICENSE.txt +0 -1
  385. package/6388.min.js +0 -2
  386. package/6388.min.js.LICENSE.txt +0 -1
  387. package/6441.min.js +0 -2
  388. package/6441.min.js.LICENSE.txt +0 -1
  389. package/6556.min.js +0 -2
  390. package/6556.min.js.LICENSE.txt +0 -1
  391. package/6580.min.js +0 -2
  392. package/6580.min.js.LICENSE.txt +0 -1
  393. package/6608.min.js +0 -2
  394. package/6608.min.js.LICENSE.txt +0 -1
  395. package/6742.min.js +0 -2
  396. package/6742.min.js.LICENSE.txt +0 -1
  397. package/6824.min.js +0 -2
  398. package/6824.min.js.LICENSE.txt +0 -1
  399. package/6908.min.js +0 -2
  400. package/6908.min.js.LICENSE.txt +0 -1
  401. package/6973.min.js +0 -2
  402. package/6973.min.js.LICENSE.txt +0 -1
  403. package/6988.min.js +0 -2
  404. package/6988.min.js.LICENSE.txt +0 -1
  405. package/7012.min.js +0 -2
  406. package/7012.min.js.LICENSE.txt +0 -1
  407. package/7044.min.js +0 -2
  408. package/7044.min.js.LICENSE.txt +0 -1
  409. package/7056.min.js +0 -2
  410. package/7056.min.js.LICENSE.txt +0 -1
  411. package/7125.min.js +0 -2
  412. package/7125.min.js.LICENSE.txt +0 -1
  413. package/7147.min.js +0 -2
  414. package/7147.min.js.LICENSE.txt +0 -1
  415. package/7160.min.js +0 -2
  416. package/7160.min.js.LICENSE.txt +0 -1
  417. package/718.min.js +0 -2
  418. package/718.min.js.LICENSE.txt +0 -1
  419. package/7188.min.js +0 -2
  420. package/7188.min.js.LICENSE.txt +0 -1
  421. package/7191.min.js +0 -2
  422. package/7191.min.js.LICENSE.txt +0 -1
  423. package/7256.min.js.LICENSE.txt +0 -1
  424. package/7276.min.js +0 -2
  425. package/7276.min.js.LICENSE.txt +0 -1
  426. package/736.min.js +0 -2
  427. package/736.min.js.LICENSE.txt +0 -1
  428. package/7448.min.js +0 -2
  429. package/7448.min.js.LICENSE.txt +0 -1
  430. package/7611.min.js +0 -2
  431. package/7611.min.js.LICENSE.txt +0 -1
  432. package/7613.min.js +0 -2
  433. package/7613.min.js.LICENSE.txt +0 -1
  434. package/7704.min.js +0 -2
  435. package/7704.min.js.LICENSE.txt +0 -1
  436. package/7749.min.js +0 -2
  437. package/7749.min.js.LICENSE.txt +0 -1
  438. package/785.min.js +0 -2
  439. package/785.min.js.LICENSE.txt +0 -1
  440. package/8013.min.js +0 -2
  441. package/8013.min.js.LICENSE.txt +0 -1
  442. package/8084.min.js +0 -2
  443. package/8084.min.js.LICENSE.txt +0 -1
  444. package/8188.min.js +0 -2
  445. package/8188.min.js.LICENSE.txt +0 -1
  446. package/8296.min.js +0 -2
  447. package/8296.min.js.LICENSE.txt +0 -1
  448. package/8314.min.js +0 -2
  449. package/8314.min.js.LICENSE.txt +0 -1
  450. package/8411.min.js +0 -2
  451. package/8411.min.js.LICENSE.txt +0 -1
  452. package/8445.min.js +0 -2
  453. package/8445.min.js.LICENSE.txt +0 -1
  454. package/8526.min.js +0 -2
  455. package/8526.min.js.LICENSE.txt +0 -1
  456. package/8551.min.js +0 -2
  457. package/8551.min.js.LICENSE.txt +0 -1
  458. package/8827.min.js +0 -2
  459. package/8827.min.js.LICENSE.txt +0 -1
  460. package/8847.min.js +0 -2
  461. package/8847.min.js.LICENSE.txt +0 -1
  462. package/8993.min.js +0 -2
  463. package/8993.min.js.LICENSE.txt +0 -1
  464. package/9052.min.js +0 -2
  465. package/9052.min.js.LICENSE.txt +0 -1
  466. package/9127.min.js +0 -2
  467. package/9127.min.js.LICENSE.txt +0 -1
  468. package/917.min.js +0 -2
  469. package/917.min.js.LICENSE.txt +0 -1
  470. package/9216.min.js +0 -2
  471. package/9216.min.js.LICENSE.txt +0 -1
  472. package/9234.min.js +0 -2
  473. package/9234.min.js.LICENSE.txt +0 -1
  474. package/9273.min.js +0 -2
  475. package/9273.min.js.LICENSE.txt +0 -1
  476. package/9277.min.js +0 -2
  477. package/9277.min.js.LICENSE.txt +0 -1
  478. package/937.min.js +0 -2
  479. package/937.min.js.LICENSE.txt +0 -1
  480. package/9410.min.js +0 -2
  481. package/9410.min.js.LICENSE.txt +0 -1
  482. package/9456.min.js +0 -2
  483. package/9456.min.js.LICENSE.txt +0 -1
  484. package/9467.min.js +0 -2
  485. package/9467.min.js.LICENSE.txt +0 -1
  486. package/9591.min.js +0 -2
  487. package/9591.min.js.LICENSE.txt +0 -1
  488. package/9839.min.js +0 -2
  489. package/9839.min.js.LICENSE.txt +0 -1
  490. package/move_base_dist_browser_BaseMover_js.js +0 -40
  491. package/shapes_image_dist_browser_Utils_js.js +0 -30
  492. package/tsparticles.pjs.bundle.min.js.LICENSE.txt +0 -1
  493. package/tsparticles.pjs.min.js.LICENSE.txt +0 -1
  494. package/updaters_color_dist_browser_ColorUpdater_js.js +0 -30
package/umd/index.js CHANGED
@@ -47,9 +47,12 @@ var __importStar = (this && this.__importStar) || (function () {
47
47
  const Particles_js_1 = require("./marcbruederlin/Particles.js");
48
48
  const particles_js_1 = require("./VincentGarreau/particles.js");
49
49
  const initPjs = async (engine) => {
50
- engine.checkVersion("4.0.0-alpha.8");
50
+ engine.checkVersion("4.0.0-beta.0");
51
51
  await engine.register(async (e) => {
52
- const { loadFull } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("tsparticles"))) : new Promise((resolve_1, reject_1) => { require(["tsparticles"], resolve_1, reject_1); }).then(__importStar)), { loadResponsivePlugin } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-responsive"))) : new Promise((resolve_2, reject_2) => { require(["@tsparticles/plugin-responsive"], resolve_2, reject_2); }).then(__importStar));
52
+ const [{ loadFull }, { loadResponsivePlugin },] = await Promise.all([
53
+ __syncRequire ? Promise.resolve().then(() => __importStar(require("tsparticles"))) : new Promise((resolve_1, reject_1) => { require(["tsparticles"], resolve_1, reject_1); }).then(__importStar),
54
+ __syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-responsive"))) : new Promise((resolve_2, reject_2) => { require(["@tsparticles/plugin-responsive"], resolve_2, reject_2); }).then(__importStar),
55
+ ]);
53
56
  await loadFull(e);
54
57
  await loadResponsivePlugin(e);
55
58
  });
@@ -13,6 +13,7 @@
13
13
  const engine_1 = require("@tsparticles/engine");
14
14
  const linksMinDistance = 120, moveMinSpeed = 0.5, particlesMinCount = 100, sizeMinValue = 3;
15
15
  class MBParticles {
16
+ _container;
16
17
  static init(options) {
17
18
  const particles = new MBParticles(), selector = options.selector;
18
19
  if (!selector) {
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.8
7
+ * v4.0.0-beta.0
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \*************************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyUpdater: () => (/* binding */ DestroyUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Destroy.js */ \"../../updaters/destroy/dist/browser/Options/Classes/Destroy.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums/DestroyMode.js */ \"../../updaters/destroy/dist/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/destroy/dist/browser/Utils.js\");\n\n\n\n\nclass DestroyUpdater {\n constructor(engine, container) {\n this.container = container;\n this.engine = engine;\n }\n init(particle) {\n const container = this.container,\n particlesOptions = particle.options,\n destroyOptions = particlesOptions.destroy;\n if (!destroyOptions) {\n return;\n }\n particle.splitCount = 0;\n const destroyBoundsOptions = destroyOptions.bounds;\n particle.destroyBounds ??= {};\n const {\n bottom,\n left,\n right,\n top\n } = destroyBoundsOptions,\n {\n destroyBounds\n } = particle,\n canvasSize = container.canvas.size;\n if (bottom) {\n destroyBounds.bottom = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(bottom) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (left) {\n destroyBounds.left = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(left) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (right) {\n destroyBounds.right = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(right) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (top) {\n destroyBounds.top = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(top) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.destroy ??= new _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__.Destroy();\n for (const source of sources) {\n options.destroy.load(source?.destroy);\n }\n }\n particleDestroyed(particle, override) {\n if (override) {\n return;\n }\n const destroyOptions = particle.options.destroy;\n if (destroyOptions?.mode === _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.split) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_3__.split)(this.engine, this.container, particle);\n }\n }\n update(particle) {\n if (!this.isEnabled(particle)) {\n return;\n }\n const position = particle.getPosition(),\n bounds = particle.destroyBounds;\n if (!bounds) {\n return;\n }\n if (bounds.bottom !== undefined && position.y >= bounds.bottom || bounds.left !== undefined && position.x <= bounds.left || bounds.right !== undefined && position.x >= bounds.right || bounds.top !== undefined && position.y <= bounds.top) {\n particle.destroy();\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/DestroyUpdater.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyUpdater: () => (/* binding */ DestroyUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Destroy.js */ \"../../updaters/destroy/dist/browser/Options/Classes/Destroy.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums/DestroyMode.js */ \"../../updaters/destroy/dist/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/destroy/dist/browser/Utils.js\");\n\n\n\n\nclass DestroyUpdater {\n container;\n engine;\n constructor(engine, container){\n this.container = container;\n this.engine = engine;\n }\n init(particle) {\n const container = this.container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;\n if (!destroyOptions) {\n return;\n }\n particle.splitCount = 0;\n const destroyBoundsOptions = destroyOptions.bounds;\n particle.destroyBounds ??= {};\n const { bottom, left, right, top } = destroyBoundsOptions, { destroyBounds } = particle, canvasSize = container.canvas.size;\n if (bottom) {\n destroyBounds.bottom = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(bottom) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (left) {\n destroyBounds.left = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(left) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (right) {\n destroyBounds.right = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(right) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (top) {\n destroyBounds.top = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(top) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.destroy ??= new _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__.Destroy();\n for (const source of sources){\n options.destroy.load(source?.destroy);\n }\n }\n particleDestroyed(particle, override) {\n if (override) {\n return;\n }\n const destroyOptions = particle.options.destroy;\n if (destroyOptions?.mode === _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.split) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_3__.split)(this.engine, this.container, particle);\n }\n }\n update(particle) {\n if (particle.unbreakableUntil !== undefined && performance.now() >= particle.unbreakableUntil) {\n particle.unbreakable = false;\n particle.unbreakableUntil = undefined;\n }\n const position = particle.getPosition(), bounds = particle.destroyBounds;\n if (!bounds) {\n return;\n }\n if (bounds.bottom !== undefined && position.y >= bounds.bottom || bounds.left !== undefined && position.x <= bounds.left || bounds.right !== undefined && position.x >= bounds.right || bounds.top !== undefined && position.y <= bounds.top) {\n particle.destroy();\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/DestroyUpdater.js?\n}");
27
27
 
28
28
  /***/ },
29
29
 
@@ -33,7 +33,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
33
33
  \****************************************************************/
34
34
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
35
 
36
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyMode: () => (/* binding */ DestroyMode)\n/* harmony export */ });\nvar DestroyMode;\n(function (DestroyMode) {\n DestroyMode[\"none\"] = \"none\";\n DestroyMode[\"split\"] = \"split\";\n})(DestroyMode || (DestroyMode = {}));\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Enums/DestroyMode.js?\n}");
36
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyMode: () => (/* binding */ DestroyMode)\n/* harmony export */ });\nvar DestroyMode;\n(function(DestroyMode) {\n DestroyMode[\"none\"] = \"none\";\n DestroyMode[\"split\"] = \"split\";\n})(DestroyMode || (DestroyMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Enums/DestroyMode.js?\n}");
37
37
 
38
38
  /***/ },
39
39
 
@@ -43,7 +43,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
43
43
  \**********************************************************************/
44
44
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
45
 
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Destroy: () => (/* binding */ Destroy)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _DestroyBounds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DestroyBounds.js */ \"../../updaters/destroy/dist/browser/Options/Classes/DestroyBounds.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Enums/DestroyMode.js */ \"../../updaters/destroy/dist/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Split_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Split.js */ \"../../updaters/destroy/dist/browser/Options/Classes/Split.js\");\n\n\n\n\nclass Destroy {\n constructor() {\n this.bounds = new _DestroyBounds_js__WEBPACK_IMPORTED_MODULE_1__.DestroyBounds();\n this.mode = _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.none;\n this.split = new _Split_js__WEBPACK_IMPORTED_MODULE_3__.Split();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.mode) {\n this.mode = data.mode;\n }\n if (data.bounds) {\n this.bounds.load(data.bounds);\n }\n this.split.load(data.split);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/Destroy.js?\n}");
46
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Destroy: () => (/* binding */ Destroy)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _DestroyBounds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DestroyBounds.js */ \"../../updaters/destroy/dist/browser/Options/Classes/DestroyBounds.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Enums/DestroyMode.js */ \"../../updaters/destroy/dist/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Split_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Split.js */ \"../../updaters/destroy/dist/browser/Options/Classes/Split.js\");\n\n\n\n\nclass Destroy {\n bounds;\n mode;\n split;\n constructor(){\n this.bounds = new _DestroyBounds_js__WEBPACK_IMPORTED_MODULE_1__.DestroyBounds();\n this.mode = _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.none;\n this.split = new _Split_js__WEBPACK_IMPORTED_MODULE_3__.Split();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.mode) {\n this.mode = data.mode;\n }\n if (data.bounds) {\n this.bounds.load(data.bounds);\n }\n this.split.load(data.split);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/Destroy.js?\n}");
47
47
 
48
48
  /***/ },
49
49
 
@@ -53,7 +53,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
53
53
  \****************************************************************************/
54
54
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
55
55
 
56
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyBounds: () => (/* binding */ DestroyBounds)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass DestroyBounds {\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.bottom !== undefined) {\n this.bottom = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.bottom);\n }\n if (data.left !== undefined) {\n this.left = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.left);\n }\n if (data.right !== undefined) {\n this.right = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.right);\n }\n if (data.top !== undefined) {\n this.top = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.top);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/DestroyBounds.js?\n}");
56
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyBounds: () => (/* binding */ DestroyBounds)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass DestroyBounds {\n bottom;\n left;\n right;\n top;\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.bottom !== undefined) {\n this.bottom = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.bottom);\n }\n if (data.left !== undefined) {\n this.left = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.left);\n }\n if (data.right !== undefined) {\n this.right = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.right);\n }\n if (data.top !== undefined) {\n this.top = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.top);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/DestroyBounds.js?\n}");
57
57
 
58
58
  /***/ },
59
59
 
@@ -63,7 +63,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
63
63
  \********************************************************************/
64
64
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
65
65
 
66
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Split: () => (/* binding */ Split)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _SplitFactor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SplitFactor.js */ \"../../updaters/destroy/dist/browser/Options/Classes/SplitFactor.js\");\n/* harmony import */ var _SplitRate_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SplitRate.js */ \"../../updaters/destroy/dist/browser/Options/Classes/SplitRate.js\");\n\n\n\nclass Split {\n constructor() {\n this.count = 1;\n this.factor = new _SplitFactor_js__WEBPACK_IMPORTED_MODULE_1__.SplitFactor();\n this.rate = new _SplitRate_js__WEBPACK_IMPORTED_MODULE_2__.SplitRate();\n this.sizeOffset = true;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.color !== undefined) {\n this.color = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OptionsColor.create(this.color, data.color);\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n this.factor.load(data.factor);\n this.rate.load(data.rate);\n this.particles = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(data.particles, particles => {\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, particles);\n });\n if (data.sizeOffset !== undefined) {\n this.sizeOffset = data.sizeOffset;\n }\n if (data.colorOffset) {\n this.colorOffset = this.colorOffset ?? {};\n if (data.colorOffset.h !== undefined) {\n this.colorOffset.h = data.colorOffset.h;\n }\n if (data.colorOffset.s !== undefined) {\n this.colorOffset.s = data.colorOffset.s;\n }\n if (data.colorOffset.l !== undefined) {\n this.colorOffset.l = data.colorOffset.l;\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/Split.js?\n}");
66
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Split: () => (/* binding */ Split)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _SplitFactor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SplitFactor.js */ \"../../updaters/destroy/dist/browser/Options/Classes/SplitFactor.js\");\n/* harmony import */ var _SplitRate_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SplitRate.js */ \"../../updaters/destroy/dist/browser/Options/Classes/SplitRate.js\");\n\n\n\nclass Split {\n count;\n factor;\n fillColor;\n fillColorOffset;\n particles;\n rate;\n sizeOffset;\n strokeColor;\n strokeColorOffset;\n constructor(){\n this.count = 1;\n this.factor = new _SplitFactor_js__WEBPACK_IMPORTED_MODULE_1__.SplitFactor();\n this.rate = new _SplitRate_js__WEBPACK_IMPORTED_MODULE_2__.SplitRate();\n this.sizeOffset = true;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.fillColor !== undefined) {\n this.fillColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OptionsColor.create(this.fillColor, data.fillColor);\n }\n if (data.strokeColor !== undefined) {\n this.strokeColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OptionsColor.create(this.strokeColor, data.strokeColor);\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n this.factor.load(data.factor);\n this.rate.load(data.rate);\n this.particles = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(data.particles, (particles)=>{\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, particles);\n });\n if (data.sizeOffset !== undefined) {\n this.sizeOffset = data.sizeOffset;\n }\n if (data.fillColorOffset) {\n this.fillColorOffset = this.fillColorOffset ?? {};\n if (data.fillColorOffset.h !== undefined) {\n this.fillColorOffset.h = data.fillColorOffset.h;\n }\n if (data.fillColorOffset.s !== undefined) {\n this.fillColorOffset.s = data.fillColorOffset.s;\n }\n if (data.fillColorOffset.l !== undefined) {\n this.fillColorOffset.l = data.fillColorOffset.l;\n }\n }\n if (data.strokeColorOffset) {\n this.strokeColorOffset = this.strokeColorOffset ?? {};\n if (data.strokeColorOffset.h !== undefined) {\n this.strokeColorOffset.h = data.strokeColorOffset.h;\n }\n if (data.strokeColorOffset.s !== undefined) {\n this.strokeColorOffset.s = data.strokeColorOffset.s;\n }\n if (data.strokeColorOffset.l !== undefined) {\n this.strokeColorOffset.l = data.strokeColorOffset.l;\n }\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/Split.js?\n}");
67
67
 
68
68
  /***/ },
69
69
 
@@ -73,7 +73,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
73
73
  \**************************************************************************/
74
74
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75
75
 
76
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitFactor: () => (/* binding */ SplitFactor)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass SplitFactor extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.value = 3;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/SplitFactor.js?\n}");
76
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitFactor: () => (/* binding */ SplitFactor)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass SplitFactor extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor(){\n super();\n this.value = 3;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/SplitFactor.js?\n}");
77
77
 
78
78
  /***/ },
79
79
 
@@ -83,7 +83,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
83
83
  \************************************************************************/
84
84
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
85
85
 
86
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitRate: () => (/* binding */ SplitRate)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass SplitRate extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.value = {\n min: 4,\n max: 9\n };\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/SplitRate.js?\n}");
86
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SplitRate: () => (/* binding */ SplitRate)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass SplitRate extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor(){\n super();\n this.value = {\n min: 4,\n max: 9\n };\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Options/Classes/SplitRate.js?\n}");
87
87
 
88
88
  /***/ },
89
89
 
@@ -93,7 +93,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
93
93
  \****************************************************/
94
94
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
95
95
 
96
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ split: () => (/* binding */ split)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultOffset = 0,\n minDestroySize = 0.5,\n defaultSplitCount = 0,\n increment = 1,\n unbreakableTime = 500,\n minSplitCount = 0;\nfunction addSplitParticle(engine, container, parent, splitParticlesOptions) {\n const destroyOptions = parent.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split,\n options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadParticlesOptions)(engine, container, parent.options),\n factor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.factor.value),\n parentColor = parent.getFillColor();\n if (splitOptions.color) {\n options.color.load(splitOptions.color);\n } else if (splitOptions.colorOffset && parentColor) {\n options.color.load({\n value: {\n hsl: {\n h: parentColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.colorOffset.h ?? defaultOffset),\n s: parentColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.colorOffset.s ?? defaultOffset),\n l: parentColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.colorOffset.l ?? defaultOffset)\n }\n }\n });\n } else {\n options.color.load({\n value: {\n hsl: parent.getFillColor()\n }\n });\n }\n options.move.load({\n center: {\n x: parent.position.x,\n y: parent.position.y,\n mode: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.PixelMode.precise\n }\n });\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.size.value)) {\n options.size.value /= factor;\n } else {\n options.size.value.min /= factor;\n options.size.value.max /= factor;\n }\n options.load(splitParticlesOptions);\n const offset = splitOptions.sizeOffset ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(-parent.size.value, parent.size.value) : defaultOffset,\n position = {\n x: parent.position.x + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset),\n y: parent.position.y + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset)\n };\n return container.particles.addParticle(position, options, parent.group, particle => {\n if (particle.size.value < minDestroySize) {\n return false;\n }\n particle.velocity.length = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(parent.velocity.length, particle.velocity.length));\n particle.splitCount = (parent.splitCount ?? defaultSplitCount) + increment;\n particle.unbreakable = true;\n setTimeout(() => {\n particle.unbreakable = false;\n }, unbreakableTime);\n return true;\n });\n}\nfunction split(engine, container, particle) {\n const destroyOptions = particle.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split;\n if (splitOptions.count >= minSplitCount && (particle.splitCount === undefined || particle.splitCount++ > splitOptions.count)) {\n return;\n }\n const rate = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.rate.value),\n particlesSplitOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(splitOptions.particles);\n for (let i = 0; i < rate; i++) {\n addSplitParticle(engine, container, particle, particlesSplitOptions);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Utils.js?\n}");
96
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ split: () => (/* binding */ split)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultOffset = 0, minDestroySize = 0.5, defaultSplitCount = 0, increment = 1, unbreakableTime = 500, minSplitCount = 0;\nfunction addSplitParticle(engine, container, parent, splitParticlesOptions) {\n const destroyOptions = parent.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split, options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadParticlesOptions)(engine, container, parent.options), fillOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.fill), strokeOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.stroke);\n if (fillOptions?.enable) {\n const fillColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor.create(undefined, fillOptions.color), parentFillColor = parent.getFillColor();\n if (fillColor.value) {\n fillColor.load(splitOptions.fillColor);\n } else if (splitOptions.fillColorOffset && parentFillColor) {\n fillColor.load({\n value: {\n hsl: {\n h: parentFillColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.h ?? defaultOffset),\n s: parentFillColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.s ?? defaultOffset),\n l: parentFillColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.l ?? defaultOffset)\n }\n }\n });\n } else {\n fillColor.load({\n value: {\n hsl: parent.getFillColor()\n }\n });\n }\n }\n if (strokeOptions?.width) {\n const strokeColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor.create(undefined, strokeOptions.color), parentStrokeColor = parent.getStrokeColor();\n if (strokeColor.value) {\n strokeColor.load(splitOptions.strokeColor);\n } else if (splitOptions.strokeColorOffset && parentStrokeColor) {\n strokeColor.load({\n value: {\n hsl: {\n h: parentStrokeColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.h ?? defaultOffset),\n s: parentStrokeColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.s ?? defaultOffset),\n l: parentStrokeColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.l ?? defaultOffset)\n }\n }\n });\n } else {\n strokeColor.load({\n value: {\n hsl: parent.getStrokeColor()\n }\n });\n }\n }\n options.move.load({\n center: {\n x: parent.position.x,\n y: parent.position.y,\n mode: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.PixelMode.precise\n }\n });\n const factor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.factor.value);\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.size.value)) {\n options.size.value *= factor;\n } else {\n options.size.value.min *= factor;\n options.size.value.max *= factor;\n }\n options.load(splitParticlesOptions);\n const offset = splitOptions.sizeOffset ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(-parent.size.value, parent.size.value) : defaultOffset, position = {\n x: parent.position.x + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset),\n y: parent.position.y + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset)\n };\n return container.particles.addParticle(position, options, parent.group, (particle)=>{\n if (particle.size.value < minDestroySize) {\n return false;\n }\n particle.velocity.length = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(parent.velocity.length, particle.velocity.length));\n particle.splitCount = (parent.splitCount ?? defaultSplitCount) + increment;\n particle.unbreakable = true;\n particle.unbreakableUntil = performance.now() + unbreakableTime;\n return true;\n });\n}\nfunction split(engine, container, particle) {\n const destroyOptions = particle.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split;\n if (splitOptions.count >= minSplitCount) {\n if (particle.splitCount === undefined || particle.splitCount > splitOptions.count) {\n return;\n }\n particle.splitCount++;\n }\n const rate = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.rate.value), particlesSplitOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(splitOptions.particles);\n for(let i = 0; i < rate; i++){\n addSplitParticle(engine, container, particle, particlesSplitOptions);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/Utils.js?\n}");
97
97
 
98
98
  /***/ }
99
99
 
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.8
7
+ * v4.0.0-beta.0
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \****************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\nasync function loadDestroyUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.8\");\n await engine.register(e => {\n e.addParticleUpdater(\"destroy\", async container => {\n const {\n DestroyUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_destroy_dist_browser_DestroyUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./DestroyUpdater.js */ \"../../updaters/destroy/dist/browser/DestroyUpdater.js\"));\n return new DestroyUpdater(e, container);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/index.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\nasync function loadDestroyUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.0\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"destroy\", async (container)=>{\n const { DestroyUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_destroy_dist_browser_DestroyUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./DestroyUpdater.js */ \"../../updaters/destroy/dist/browser/DestroyUpdater.js\"));\n return new DestroyUpdater(e, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/destroy/dist/browser/index.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
@@ -0,0 +1,30 @@
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
+ * v4.0.0-beta.0
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_pjs"] = this["webpackChunk_tsparticles_pjs"] || []).push([["updaters_fillColor_dist_browser_FillColorUpdater_js"],{
19
+
20
+ /***/ "../../updaters/fillColor/dist/browser/FillColorUpdater.js"
21
+ /*!*****************************************************************!*\
22
+ !*** ../../updaters/fillColor/dist/browser/FillColorUpdater.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 */ FillColorUpdater: () => (/* binding */ FillColorUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass FillColorUpdater {\n _container;\n _engine;\n constructor(engine, container){\n this._container = container;\n this._engine = engine;\n }\n init(particle) {\n const container = this._container, options = particle.options, fill = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.fill, particle.id, options.reduceDuplicates);\n if (!fill) {\n return;\n }\n particle.fillEnabled = fill.enable;\n particle.fillOpacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(fill.opacity);\n particle.fillAnimation = fill.color.animation;\n const fillHslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this._engine, fill.color);\n if (fillHslColor) {\n particle.fillColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(fillHslColor, particle.fillAnimation, container.retina.reduceFactor);\n }\n }\n isEnabled(particle) {\n const color = particle.fillAnimation, { fillColor } = particle;\n return !particle.destroyed && !particle.spawning && !!color && (fillColor?.h.value !== undefined && fillColor.h.enable || fillColor?.s.value !== undefined && fillColor.s.enable || fillColor?.l.value !== undefined && fillColor.l.enable);\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(particle.fillColor, delta);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/fillColor/dist/browser/FillColorUpdater.js?\n}");
27
+
28
+ /***/ }
29
+
30
+ }]);
@@ -0,0 +1,30 @@
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
+ * v4.0.0-beta.0
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_pjs"] = this["webpackChunk_tsparticles_pjs"] || []).push([["updaters_fillColor_dist_browser_index_js"],{
19
+
20
+ /***/ "../../updaters/fillColor/dist/browser/index.js"
21
+ /*!******************************************************!*\
22
+ !*** ../../updaters/fillColor/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 */ loadFillColorUpdater: () => (/* binding */ loadFillColorUpdater)\n/* harmony export */ });\nasync function loadFillColorUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.0\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"color\", async (container)=>{\n const { FillColorUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_fillColor_dist_browser_FillColorUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./FillColorUpdater.js */ \"../../updaters/fillColor/dist/browser/FillColorUpdater.js\"));\n return new FillColorUpdater(e, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/fillColor/dist/browser/index.js?\n}");
27
+
28
+ /***/ }
29
+
30
+ }]);
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.8
7
+ * v4.0.0-beta.0
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \*******************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeUpdater: () => (/* binding */ LifeUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Life.js */ \"../../updaters/life/dist/browser/Options/Classes/Life.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/life/dist/browser/Utils.js\");\n\n\n\nconst noTime = 0,\n identity = 1,\n infiniteValue = -1;\nclass LifeUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const container = this.container,\n particlesOptions = particle.options,\n lifeOptions = particlesOptions.life;\n if (!lifeOptions) {\n return;\n }\n particle.life = {\n delay: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * (lifeOptions.delay.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n delayTime: noTime,\n duration: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * (lifeOptions.duration.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n time: noTime,\n count: lifeOptions.count\n };\n if (particle.life.duration <= noTime) {\n particle.life.duration = infiniteValue;\n }\n if (particle.life.count <= noTime) {\n particle.life.count = infiniteValue;\n }\n particle.spawning = particle.life.delay > noTime;\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.life ??= new _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__.Life();\n for (const source of sources) {\n options.life.load(source?.life);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.life) {\n return;\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__.updateLife)(particle, delta, this.container.canvas.size);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/LifeUpdater.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeUpdater: () => (/* binding */ LifeUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Life.js */ \"../../updaters/life/dist/browser/Options/Classes/Life.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/life/dist/browser/Utils.js\");\n\n\n\nconst noTime = 0, identity = 1, infiniteValue = -1;\nclass LifeUpdater {\n container;\n constructor(container){\n this.container = container;\n }\n init(particle) {\n const container = this.container, particlesOptions = particle.options, lifeOptions = particlesOptions.life;\n if (!lifeOptions) {\n return;\n }\n particle.life = {\n delay: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * (lifeOptions.delay.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n delayTime: noTime,\n duration: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * (lifeOptions.duration.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n time: noTime,\n count: lifeOptions.count\n };\n if (particle.life.duration <= noTime) {\n particle.life.duration = infiniteValue;\n }\n if (particle.life.count <= noTime) {\n particle.life.count = infiniteValue;\n }\n particle.spawning = particle.life.delay > noTime;\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.life ??= new _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__.Life();\n for (const source of sources){\n options.life.load(source?.life);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.life) {\n return;\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__.updateLife)(particle, delta, this.container.canvas.size);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/LifeUpdater.js?\n}");
27
27
 
28
28
  /***/ },
29
29
 
@@ -33,7 +33,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
33
33
  \****************************************************************/
34
34
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
35
 
36
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Life: () => (/* binding */ Life)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LifeDelay.js */ \"../../updaters/life/dist/browser/Options/Classes/LifeDelay.js\");\n/* harmony import */ var _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LifeDuration.js */ \"../../updaters/life/dist/browser/Options/Classes/LifeDuration.js\");\n\n\n\nclass Life {\n constructor() {\n this.count = 0;\n this.delay = new _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__.LifeDelay();\n this.duration = new _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__.LifeDuration();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n this.delay.load(data.delay);\n this.duration.load(data.duration);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Options/Classes/Life.js?\n}");
36
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Life: () => (/* binding */ Life)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LifeDelay.js */ \"../../updaters/life/dist/browser/Options/Classes/LifeDelay.js\");\n/* harmony import */ var _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LifeDuration.js */ \"../../updaters/life/dist/browser/Options/Classes/LifeDuration.js\");\n\n\n\nclass Life {\n count;\n delay;\n duration;\n constructor(){\n this.count = 0;\n this.delay = new _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__.LifeDelay();\n this.duration = new _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__.LifeDuration();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n this.delay.load(data.delay);\n this.duration.load(data.duration);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Options/Classes/Life.js?\n}");
37
37
 
38
38
  /***/ },
39
39
 
@@ -43,7 +43,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
43
43
  \*********************************************************************/
44
44
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
45
 
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeDelay: () => (/* binding */ LifeDelay)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass LifeDelay extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Options/Classes/LifeDelay.js?\n}");
46
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeDelay: () => (/* binding */ LifeDelay)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass LifeDelay extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n sync;\n constructor(){\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Options/Classes/LifeDelay.js?\n}");
47
47
 
48
48
  /***/ },
49
49
 
@@ -53,7 +53,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
53
53
  \************************************************************************/
54
54
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
55
55
 
56
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeDuration: () => (/* binding */ LifeDuration)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass LifeDuration extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Options/Classes/LifeDuration.js?\n}");
56
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeDuration: () => (/* binding */ LifeDuration)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass LifeDuration extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n sync;\n constructor(){\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Options/Classes/LifeDuration.js?\n}");
57
57
 
58
58
  /***/ },
59
59
 
@@ -63,7 +63,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
63
63
  \*************************************************/
64
64
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
65
65
 
66
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ updateLife: () => (/* binding */ updateLife)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst noTime = 0,\n infiniteValue = -1,\n noLife = 0,\n minCanvasSize = 0;\nfunction updateLife(particle, delta, canvasSize) {\n if (!particle.life) {\n return;\n }\n const life = particle.life;\n let justSpawned = false;\n if (particle.spawning) {\n life.delayTime += delta.value;\n if (life.delayTime >= particle.life.delay) {\n justSpawned = true;\n particle.spawning = false;\n life.delayTime = noTime;\n life.time = noTime;\n } else {\n return;\n }\n }\n if (life.duration === infiniteValue) {\n return;\n }\n if (justSpawned) {\n life.time = noTime;\n } else {\n life.time += delta.value;\n }\n if (life.time < life.duration) {\n return;\n }\n life.time = noTime;\n if (particle.life.count > noLife) {\n particle.life.count--;\n }\n if (particle.life.count === noLife) {\n particle.destroy();\n return;\n }\n const widthRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width),\n heightRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width);\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(widthRange);\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(heightRange);\n particle.spawning = true;\n life.delayTime = noTime;\n life.time = noTime;\n particle.reset();\n const lifeOptions = particle.options.life;\n if (lifeOptions) {\n life.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n life.duration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Utils.js?\n}");
66
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ updateLife: () => (/* binding */ updateLife)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst noTime = 0, infiniteValue = -1, noLife = 0, minCanvasSize = 0;\nfunction updateLife(particle, delta, canvasSize) {\n if (!particle.life) {\n return;\n }\n const life = particle.life;\n let justSpawned = false;\n if (particle.spawning) {\n life.delayTime += delta.value;\n if (life.delayTime >= particle.life.delay) {\n justSpawned = true;\n particle.spawning = false;\n life.delayTime = noTime;\n life.time = noTime;\n } else {\n return;\n }\n }\n if (life.duration === infiniteValue) {\n return;\n }\n if (justSpawned) {\n life.time = noTime;\n } else {\n life.time += delta.value;\n }\n if (life.time < life.duration) {\n return;\n }\n life.time = noTime;\n if (particle.life.count > noLife) {\n particle.life.count--;\n }\n if (particle.life.count === noLife) {\n particle.destroy();\n return;\n }\n const widthRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width), heightRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width);\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(widthRange);\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(heightRange);\n particle.spawning = true;\n life.delayTime = noTime;\n life.time = noTime;\n particle.reset();\n const lifeOptions = particle.options.life;\n if (lifeOptions) {\n life.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n life.duration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/Utils.js?\n}");
67
67
 
68
68
  /***/ }
69
69
 
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.8
7
+ * v4.0.0-beta.0
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \*************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadLifeUpdater: () => (/* binding */ loadLifeUpdater)\n/* harmony export */ });\nasync function loadLifeUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.8\");\n await engine.register(e => {\n e.addParticleUpdater(\"life\", async container => {\n const {\n LifeUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_life_dist_browser_LifeUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./LifeUpdater.js */ \"../../updaters/life/dist/browser/LifeUpdater.js\"));\n return new LifeUpdater(container);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/index.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadLifeUpdater: () => (/* binding */ loadLifeUpdater)\n/* harmony export */ });\nasync function loadLifeUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.0\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"life\", async (container)=>{\n const { LifeUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_life_dist_browser_LifeUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./LifeUpdater.js */ \"../../updaters/life/dist/browser/LifeUpdater.js\"));\n return new LifeUpdater(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/life/dist/browser/index.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.8
7
+ * v4.0.0-beta.0
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \*************************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OpacityUpdater: () => (/* binding */ OpacityUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass OpacityUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const opacityOptions = particle.options.opacity,\n pxRatio = 1;\n particle.opacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.initParticleNumericAnimationValue)(opacityOptions, pxRatio);\n const opacityAnimation = opacityOptions.animation;\n if (opacityAnimation.enable) {\n particle.opacity.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(opacityAnimation.speed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * this.container.retina.reduceFactor;\n if (!opacityAnimation.sync) {\n particle.opacity.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n }\n isEnabled(particle) {\n const none = 0;\n return !particle.destroyed && !particle.spawning && !!particle.opacity && particle.opacity.enable && ((particle.opacity.maxLoops ?? none) <= none || (particle.opacity.maxLoops ?? none) > none && (particle.opacity.loops ?? none) < (particle.opacity.maxLoops ?? none));\n }\n reset(particle) {\n if (particle.opacity) {\n particle.opacity.time = 0;\n particle.opacity.loops = 0;\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.opacity) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.opacity, true, particle.options.opacity.animation.destroy, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/opacity/dist/browser/OpacityUpdater.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OpacityUpdater: () => (/* binding */ OpacityUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass OpacityUpdater {\n container;\n constructor(container){\n this.container = container;\n }\n init(particle) {\n const opacityOptions = particle.options.opacity, pxRatio = 1;\n particle.opacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.initParticleNumericAnimationValue)(opacityOptions, pxRatio);\n const opacityAnimation = opacityOptions.animation;\n if (opacityAnimation.enable) {\n particle.opacity.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(opacityAnimation.speed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * this.container.retina.reduceFactor;\n if (!opacityAnimation.sync) {\n particle.opacity.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n }\n isEnabled(particle) {\n const none = 0;\n return !particle.destroyed && !particle.spawning && !!particle.opacity && particle.opacity.enable && ((particle.opacity.maxLoops ?? none) <= none || (particle.opacity.maxLoops ?? none) > none && (particle.opacity.loops ?? none) < (particle.opacity.maxLoops ?? none));\n }\n reset(particle) {\n if (particle.opacity) {\n particle.opacity.time = 0;\n particle.opacity.loops = 0;\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.opacity) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.opacity, true, particle.options.opacity.animation.destroy, delta);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/opacity/dist/browser/OpacityUpdater.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.8
7
+ * v4.0.0-beta.0
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \****************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadOpacityUpdater: () => (/* binding */ loadOpacityUpdater)\n/* harmony export */ });\nasync function loadOpacityUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.8\");\n await engine.register(e => {\n e.addParticleUpdater(\"opacity\", async container => {\n const {\n OpacityUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_opacity_dist_browser_OpacityUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./OpacityUpdater.js */ \"../../updaters/opacity/dist/browser/OpacityUpdater.js\"));\n return new OpacityUpdater(container);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/opacity/dist/browser/index.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadOpacityUpdater: () => (/* binding */ loadOpacityUpdater)\n/* harmony export */ });\nasync function loadOpacityUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.0\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"opacity\", async (container)=>{\n const { OpacityUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_opacity_dist_browser_OpacityUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./OpacityUpdater.js */ \"../../updaters/opacity/dist/browser/OpacityUpdater.js\"));\n return new OpacityUpdater(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/pjs/../../updaters/opacity/dist/browser/index.js?\n}");
27
27
 
28
28
  /***/ }
29
29