tsparticles 1.38.0 → 1.39.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 (1004) hide show
  1. package/Core/Canvas.js +28 -28
  2. package/Core/Container.d.ts +2 -3
  3. package/Core/Container.js +7 -8
  4. package/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  5. package/Core/Interfaces/IMovePathGenerator.d.ts +1 -1
  6. package/Core/Interfaces/IParticle.d.ts +1 -1
  7. package/Core/Interfaces/index.d.ts +3 -1
  8. package/Core/Interfaces/index.js +3 -1
  9. package/Core/Loader.js +4 -3
  10. package/Core/Particle.d.ts +2 -5
  11. package/Core/Particle.js +16 -18
  12. package/Core/Particles.d.ts +1 -1
  13. package/Core/Particles.js +13 -19
  14. package/{Utils → Core/Utils}/Circle.d.ts +1 -1
  15. package/{Utils → Core/Utils}/Circle.js +2 -2
  16. package/{esm → Core}/Utils/CircleWarp.d.ts +1 -2
  17. package/{Utils → Core/Utils}/CircleWarp.js +0 -0
  18. package/{Utils → Core/Utils}/Constants.d.ts +0 -0
  19. package/{Utils → Core/Utils}/Constants.js +0 -0
  20. package/{Utils → Core/Utils}/EventListeners.d.ts +1 -1
  21. package/{Utils → Core/Utils}/EventListeners.js +10 -11
  22. package/Core/{ExternalInteractorBase.d.ts → Utils/ExternalInteractorBase.d.ts} +4 -4
  23. package/Core/{ExternalInteractorBase.js → Utils/ExternalInteractorBase.js} +1 -2
  24. package/{esm/Core → Core/Utils}/FrameManager.d.ts +1 -1
  25. package/Core/{FrameManager.js → Utils/FrameManager.js} +0 -0
  26. package/{esm/Core → Core/Utils}/InteractionManager.d.ts +3 -3
  27. package/Core/{InteractionManager.js → Utils/InteractionManager.js} +2 -3
  28. package/{esm/Core → Core/Utils}/ParticlesInteractorBase.d.ts +4 -4
  29. package/Core/{ParticlesInteractorBase.js → Utils/ParticlesInteractorBase.js} +1 -2
  30. package/{esm/Core/Particle/Mover.d.ts → Core/Utils/ParticlesMover.d.ts} +1 -1
  31. package/Core/{Particle/Mover.js → Utils/ParticlesMover.js} +6 -7
  32. package/{esm → Core}/Utils/Plugins.d.ts +5 -5
  33. package/{Utils → Core/Utils}/Plugins.js +0 -0
  34. package/{Utils → Core/Utils}/Point.d.ts +2 -2
  35. package/{Utils → Core/Utils}/Point.js +0 -0
  36. package/{Utils → Core/Utils}/QuadTree.d.ts +3 -3
  37. package/{Utils → Core/Utils}/QuadTree.js +2 -2
  38. package/{esm → Core}/Utils/Range.d.ts +1 -1
  39. package/{Utils → Core/Utils}/Range.js +0 -0
  40. package/{esm → Core}/Utils/Rectangle.d.ts +1 -2
  41. package/{Utils → Core/Utils}/Rectangle.js +0 -0
  42. package/Core/{Particle → Utils}/Vector.d.ts +0 -0
  43. package/Core/{Particle → Utils}/Vector.js +0 -0
  44. package/Core/{Particle → Utils}/Vector3d.d.ts +0 -0
  45. package/Core/{Particle → Utils}/Vector3d.js +0 -0
  46. package/Core/Utils/index.d.ts +16 -0
  47. package/Core/Utils/index.js +28 -0
  48. package/Core/index.d.ts +8 -0
  49. package/Core/index.js +20 -0
  50. package/Enums/AnimationStatus.d.ts +1 -1
  51. package/Enums/AnimationStatus.js +0 -6
  52. package/Enums/Directions/MoveDirection.d.ts +1 -1
  53. package/Enums/Directions/MoveDirection.js +0 -13
  54. package/Enums/Directions/OutModeDirection.d.ts +1 -1
  55. package/Enums/Directions/OutModeDirection.js +0 -8
  56. package/Enums/Directions/RotateDirection.d.ts +1 -1
  57. package/Enums/Directions/RotateDirection.js +0 -7
  58. package/Enums/Directions/TiltDirection.d.ts +1 -1
  59. package/Enums/Directions/TiltDirection.js +0 -7
  60. package/Enums/InteractivityDetect.d.ts +1 -1
  61. package/Enums/InteractivityDetect.js +0 -7
  62. package/Enums/Modes/ClickMode.d.ts +1 -1
  63. package/Enums/Modes/ClickMode.js +0 -11
  64. package/Enums/Modes/CollisionMode.d.ts +1 -1
  65. package/Enums/Modes/CollisionMode.js +0 -7
  66. package/Enums/Modes/DestroyMode.d.ts +1 -1
  67. package/Enums/Modes/DestroyMode.js +0 -6
  68. package/Enums/Modes/DivMode.d.ts +1 -1
  69. package/Enums/Modes/DivMode.js +0 -7
  70. package/Enums/Modes/HoverMode.d.ts +1 -1
  71. package/Enums/Modes/HoverMode.js +0 -13
  72. package/Enums/Modes/OutMode.d.ts +1 -1
  73. package/Enums/Modes/OutMode.js +0 -11
  74. package/Enums/Modes/ResponsiveMode.d.ts +1 -1
  75. package/Enums/Modes/ResponsiveMode.js +0 -6
  76. package/Enums/Modes/RollMode.d.ts +1 -1
  77. package/Enums/Modes/RollMode.js +0 -7
  78. package/Enums/Modes/SizeMode.d.ts +1 -1
  79. package/Enums/Modes/SizeMode.js +0 -6
  80. package/Enums/Modes/ThemeMode.d.ts +1 -1
  81. package/Enums/Modes/ThemeMode.js +0 -7
  82. package/Enums/Types/AlterType.d.ts +1 -1
  83. package/Enums/Types/AlterType.js +0 -6
  84. package/Enums/Types/DestroyType.d.ts +1 -1
  85. package/Enums/Types/DestroyType.js +0 -7
  86. package/Enums/Types/DivType.d.ts +1 -1
  87. package/Enums/Types/DivType.js +0 -6
  88. package/Enums/Types/EasingType.d.ts +1 -1
  89. package/Enums/Types/EasingType.js +0 -12
  90. package/Enums/Types/GradientType.d.ts +1 -1
  91. package/Enums/Types/GradientType.js +0 -7
  92. package/Enums/Types/InteractorType.d.ts +1 -1
  93. package/Enums/Types/InteractorType.js +0 -6
  94. package/Enums/Types/OrbitType.d.ts +1 -1
  95. package/Enums/Types/OrbitType.js +0 -6
  96. package/Enums/Types/ShapeType.d.ts +1 -1
  97. package/Enums/Types/ShapeType.js +0 -15
  98. package/Enums/Types/StartValueType.d.ts +1 -1
  99. package/Enums/Types/StartValueType.js +0 -7
  100. package/Interactions/External/Attract/Attractor.d.ts +2 -2
  101. package/Interactions/External/Attract/Attractor.js +9 -11
  102. package/Interactions/External/Attract/index.d.ts +2 -2
  103. package/Interactions/External/Bounce/Bouncer.d.ts +2 -2
  104. package/Interactions/External/Bounce/Bouncer.js +15 -17
  105. package/Interactions/External/Bounce/index.d.ts +2 -2
  106. package/Interactions/External/Bubble/Bubbler.d.ts +3 -3
  107. package/Interactions/External/Bubble/Bubbler.js +20 -22
  108. package/Interactions/External/Bubble/ProcessBubbleType.d.ts +1 -1
  109. package/Interactions/External/Bubble/ProcessBubbleType.js +0 -7
  110. package/Interactions/External/Bubble/index.d.ts +2 -2
  111. package/Interactions/External/Connect/Connector.d.ts +2 -2
  112. package/Interactions/External/Connect/Connector.js +3 -4
  113. package/Interactions/External/Connect/index.d.ts +2 -2
  114. package/Interactions/External/Grab/Grabber.d.ts +2 -2
  115. package/Interactions/External/Grab/Grabber.js +4 -5
  116. package/Interactions/External/Grab/index.d.ts +2 -2
  117. package/Interactions/External/Repulse/Repulser.d.ts +2 -2
  118. package/Interactions/External/Repulse/Repulser.js +15 -17
  119. package/Interactions/External/Repulse/index.d.ts +2 -2
  120. package/Interactions/External/Trail/TrailMaker.d.ts +2 -3
  121. package/Interactions/External/Trail/TrailMaker.js +4 -5
  122. package/Interactions/External/Trail/index.d.ts +2 -2
  123. package/Interactions/Particles/Attract/Attractor.d.ts +2 -4
  124. package/Interactions/Particles/Attract/Attractor.js +2 -2
  125. package/Interactions/Particles/Attract/index.d.ts +2 -2
  126. package/Interactions/Particles/Collisions/Collider.d.ts +2 -3
  127. package/Interactions/Particles/Collisions/Collider.js +5 -6
  128. package/Interactions/Particles/Collisions/index.d.ts +2 -2
  129. package/Interactions/Particles/Links/LinkInstance.d.ts +1 -3
  130. package/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  131. package/Interactions/Particles/Links/Linker.d.ts +3 -4
  132. package/Interactions/Particles/Links/Linker.js +4 -4
  133. package/Interactions/Particles/Links/index.d.ts +2 -3
  134. package/Interactions/Particles/Links/index.js +3 -7
  135. package/Interactions/Particles/Links/interaction.d.ts +2 -0
  136. package/Interactions/Particles/Links/interaction.js +8 -0
  137. package/Interactions/Particles/Links/plugin.d.ts +2 -2
  138. package/Interactions/Particles/Links/plugin.js +2 -2
  139. package/Options/Classes/AnimatableGradient.js +3 -4
  140. package/Options/Classes/Interactivity/Events/DivEvent.js +1 -2
  141. package/Options/Classes/Interactivity/Interactivity.js +5 -6
  142. package/Options/Classes/Interactivity/Modes/Attract.js +1 -2
  143. package/Options/Classes/Interactivity/Modes/RepulseBase.js +1 -2
  144. package/Options/Classes/Options.js +8 -8
  145. package/Options/Classes/Particles/Collisions/Collisions.js +1 -2
  146. package/Options/Classes/Particles/Destroy/Destroy.js +1 -2
  147. package/Options/Classes/Particles/Move/Move.js +1 -2
  148. package/Options/Classes/Particles/Move/OutModes.js +1 -2
  149. package/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -3
  150. package/Options/Classes/Particles/Roll/Roll.js +1 -2
  151. package/Options/Classes/Particles/Rotate/Rotate.js +1 -2
  152. package/Options/Classes/Particles/Shape/Shape.js +13 -14
  153. package/Options/Classes/Particles/Size/SizeAnimation.js +2 -3
  154. package/Options/Classes/Particles/Tilt/Tilt.js +1 -2
  155. package/Options/Classes/Responsive.js +4 -5
  156. package/Options/Classes/Theme/ThemeDefault.js +1 -2
  157. package/Plugins/Absorbers/AbsorberContainer.d.ts +1 -1
  158. package/Plugins/Absorbers/AbsorberInstance.d.ts +2 -4
  159. package/Plugins/Absorbers/AbsorberInstance.js +9 -10
  160. package/Plugins/Absorbers/Absorbers.d.ts +1 -4
  161. package/Plugins/Absorbers/Absorbers.js +1 -2
  162. package/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +1 -1
  163. package/Plugins/Absorbers/Enums/AbsorberClickMode.js +0 -5
  164. package/Plugins/Absorbers/index.d.ts +2 -0
  165. package/Plugins/Absorbers/{plugin.js → index.js} +3 -4
  166. package/Plugins/Emitters/EmitterContainer.d.ts +1 -1
  167. package/Plugins/Emitters/EmitterInstance.d.ts +1 -2
  168. package/Plugins/Emitters/EmitterInstance.js +3 -4
  169. package/Plugins/Emitters/Emitters.d.ts +1 -2
  170. package/Plugins/Emitters/Emitters.js +1 -2
  171. package/Plugins/Emitters/EmittersMain.d.ts +2 -2
  172. package/Plugins/Emitters/Enums/EmitterClickMode.d.ts +1 -1
  173. package/Plugins/Emitters/Enums/EmitterClickMode.js +0 -5
  174. package/Plugins/Emitters/Enums/EmitterShapeType.d.ts +1 -1
  175. package/Plugins/Emitters/Enums/EmitterShapeType.js +0 -6
  176. package/Plugins/Emitters/IEmitterShape.d.ts +1 -1
  177. package/Plugins/Emitters/Options/Classes/Emitter.js +1 -2
  178. package/Plugins/Emitters/Options/Classes/EmitterSize.js +1 -2
  179. package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  180. package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  181. package/Plugins/Emitters/{plugin.d.ts → index.d.ts} +0 -0
  182. package/Plugins/Emitters/{plugin.js → index.js} +3 -4
  183. package/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  184. package/Plugins/PolygonMask/{Options/Interfaces/IDraw.js → Enums/PolygonMaskInlineArrangement.js} +0 -0
  185. package/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  186. package/Plugins/PolygonMask/{Options/Interfaces/IDrawStroke.js → Enums/PolygonMaskMoveType.js} +0 -0
  187. package/{esm/Plugins/PolygonMask/Enums/Type.d.ts → Plugins/PolygonMask/Enums/PolygonMaskType.d.ts} +1 -1
  188. package/Plugins/PolygonMask/{Options/Interfaces/IInline.js → Enums/PolygonMaskType.js} +0 -0
  189. package/Plugins/PolygonMask/Enums/index.d.ts +3 -3
  190. package/Plugins/PolygonMask/Enums/index.js +3 -3
  191. package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +13 -13
  192. package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +42 -42
  193. package/Plugins/PolygonMask/Options/Classes/{Draw.d.ts → PolygonMaskDraw.d.ts} +5 -5
  194. package/Plugins/PolygonMask/Options/Classes/{Draw.js → PolygonMaskDraw.js} +15 -14
  195. package/Plugins/PolygonMask/Options/Classes/{DrawStroke.d.ts → PolygonMaskDrawStroke.d.ts} +3 -3
  196. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +29 -0
  197. package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  198. package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +17 -0
  199. package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  200. package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +29 -0
  201. package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  202. package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +21 -0
  203. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +12 -13
  204. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  205. package/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.js → IPolygonMaskDraw.js} +0 -0
  206. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  207. package/Plugins/PolygonMask/Options/Interfaces/{IMove.js → IPolygonMaskDrawStroke.js} +0 -0
  208. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  209. package/Plugins/PolygonMask/{types.js → Options/Interfaces/IPolygonMaskInline.js} +0 -0
  210. package/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.d.ts → IPolygonMaskLocalSvg.d.ts} +2 -2
  211. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +2 -0
  212. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  213. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +2 -0
  214. package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +2 -4
  215. package/Plugins/PolygonMask/PolygonMaskInstance.js +33 -30
  216. package/Plugins/PolygonMask/{types.d.ts → Types.d.ts} +0 -0
  217. package/Plugins/PolygonMask/Types.js +2 -0
  218. package/{esm/Plugins/PolygonMask/utils.d.ts → Plugins/PolygonMask/Utils.d.ts} +5 -5
  219. package/Plugins/PolygonMask/{utils.js → Utils.js} +15 -12
  220. package/Plugins/PolygonMask/index.d.ts +2 -0
  221. package/Plugins/PolygonMask/{plugin.js → index.js} +4 -5
  222. package/Plugins/PolygonMask/pathseg.js +54 -43
  223. package/Shapes/Circle/CircleDrawer.d.ts +1 -1
  224. package/Shapes/Circle/index.d.ts +2 -2
  225. package/Shapes/Image/ImageDrawer.d.ts +3 -7
  226. package/Shapes/Image/ImageDrawer.js +29 -109
  227. package/Shapes/Image/Utils.d.ts +8 -5
  228. package/Shapes/Image/Utils.js +69 -38
  229. package/Shapes/Image/index.d.ts +2 -2
  230. package/Shapes/Line/LineDrawer.d.ts +1 -1
  231. package/Shapes/Line/index.d.ts +2 -2
  232. package/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  233. package/Shapes/Polygon/PolygonDrawerBase.d.ts +1 -1
  234. package/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  235. package/Shapes/Polygon/index.d.ts +4 -4
  236. package/Shapes/Square/SquareDrawer.d.ts +1 -1
  237. package/Shapes/Square/index.d.ts +2 -2
  238. package/Shapes/Star/StarDrawer.d.ts +1 -1
  239. package/Shapes/Star/index.d.ts +2 -2
  240. package/Shapes/Text/TextDrawer.d.ts +1 -2
  241. package/Shapes/Text/index.d.ts +2 -2
  242. package/Updaters/Angle/AngleUpdater.d.ts +1 -3
  243. package/Updaters/Angle/AngleUpdater.js +8 -9
  244. package/Updaters/Angle/index.d.ts +2 -2
  245. package/Updaters/Color/ColorUpdater.d.ts +1 -3
  246. package/Updaters/Color/ColorUpdater.js +3 -4
  247. package/Updaters/Color/index.d.ts +2 -2
  248. package/Updaters/Life/LifeUpdater.d.ts +1 -3
  249. package/Updaters/Life/index.d.ts +2 -2
  250. package/Updaters/Opacity/OpacityUpdater.d.ts +1 -3
  251. package/Updaters/Opacity/OpacityUpdater.js +13 -14
  252. package/Updaters/Opacity/index.d.ts +2 -2
  253. package/Updaters/OutModes/IBounceData.d.ts +1 -2
  254. package/Updaters/OutModes/OutOfCanvasUpdater.d.ts +1 -3
  255. package/Updaters/OutModes/OutOfCanvasUpdater.js +19 -20
  256. package/Updaters/OutModes/Utils.js +12 -13
  257. package/Updaters/OutModes/index.d.ts +2 -2
  258. package/Updaters/Roll/RollUpdater.d.ts +1 -2
  259. package/Updaters/Roll/RollUpdater.js +4 -5
  260. package/Updaters/Roll/index.d.ts +2 -2
  261. package/Updaters/Size/SizeUpdater.d.ts +1 -2
  262. package/Updaters/Size/SizeUpdater.js +6 -7
  263. package/Updaters/Size/index.d.ts +2 -2
  264. package/Updaters/StrokeColor/StrokeColorUpdater.d.ts +1 -3
  265. package/Updaters/StrokeColor/StrokeColorUpdater.js +3 -4
  266. package/Updaters/StrokeColor/index.d.ts +2 -2
  267. package/Updaters/Tilt/TiltUpdater.d.ts +1 -3
  268. package/Updaters/Tilt/TiltUpdater.js +8 -9
  269. package/Updaters/Tilt/index.d.ts +2 -2
  270. package/Updaters/Wobble/WobbleUpdater.d.ts +1 -3
  271. package/Updaters/Wobble/index.d.ts +2 -2
  272. package/Utils/CanvasUtils.d.ts +3 -3
  273. package/Utils/CanvasUtils.js +4 -5
  274. package/Utils/ColorUtils.d.ts +1 -1
  275. package/Utils/ColorUtils.js +7 -8
  276. package/Utils/NumberUtils.d.ts +2 -2
  277. package/Utils/NumberUtils.js +20 -21
  278. package/Utils/Utils.d.ts +1 -1
  279. package/Utils/Utils.js +6 -7
  280. package/Utils/index.d.ts +0 -9
  281. package/Utils/index.js +0 -9
  282. package/browser/Core/Canvas.js +9 -9
  283. package/browser/Core/Container.d.ts +2 -3
  284. package/browser/Core/Container.js +2 -3
  285. package/browser/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  286. package/browser/Core/Interfaces/IMovePathGenerator.d.ts +1 -1
  287. package/browser/Core/Interfaces/IParticle.d.ts +1 -1
  288. package/browser/Core/Interfaces/index.d.ts +3 -1
  289. package/browser/Core/Interfaces/index.js +3 -1
  290. package/browser/Core/Loader.js +2 -1
  291. package/browser/Core/Particle.d.ts +2 -5
  292. package/browser/Core/Particle.js +13 -15
  293. package/browser/Core/Particles.d.ts +1 -1
  294. package/browser/Core/Particles.js +8 -14
  295. package/browser/{Utils → Core/Utils}/Circle.d.ts +1 -1
  296. package/browser/{Utils → Core/Utils}/Circle.js +1 -1
  297. package/browser/{Utils → Core/Utils}/CircleWarp.d.ts +1 -2
  298. package/browser/{Utils → Core/Utils}/CircleWarp.js +0 -0
  299. package/browser/{Utils → Core/Utils}/Constants.d.ts +0 -0
  300. package/browser/{Utils → Core/Utils}/Constants.js +0 -0
  301. package/browser/{Utils → Core/Utils}/EventListeners.d.ts +1 -1
  302. package/browser/{Utils → Core/Utils}/EventListeners.js +10 -11
  303. package/{esm/Core → browser/Core/Utils}/ExternalInteractorBase.d.ts +4 -4
  304. package/browser/Core/{ExternalInteractorBase.js → Utils/ExternalInteractorBase.js} +1 -2
  305. package/browser/Core/{FrameManager.d.ts → Utils/FrameManager.d.ts} +1 -1
  306. package/browser/Core/{FrameManager.js → Utils/FrameManager.js} +0 -0
  307. package/browser/Core/{InteractionManager.d.ts → Utils/InteractionManager.d.ts} +3 -3
  308. package/browser/Core/{InteractionManager.js → Utils/InteractionManager.js} +2 -3
  309. package/{Core → browser/Core/Utils}/ParticlesInteractorBase.d.ts +4 -4
  310. package/{esm/Core → browser/Core/Utils}/ParticlesInteractorBase.js +1 -2
  311. package/browser/Core/{Particle/Mover.d.ts → Utils/ParticlesMover.d.ts} +1 -1
  312. package/browser/Core/{Particle/Mover.js → Utils/ParticlesMover.js} +4 -5
  313. package/browser/{Utils → Core/Utils}/Plugins.d.ts +5 -5
  314. package/browser/{Utils → Core/Utils}/Plugins.js +0 -0
  315. package/browser/{Utils → Core/Utils}/Point.d.ts +2 -2
  316. package/browser/{Utils → Core/Utils}/Point.js +0 -0
  317. package/browser/{Utils → Core/Utils}/QuadTree.d.ts +3 -3
  318. package/browser/{Utils → Core/Utils}/QuadTree.js +1 -1
  319. package/browser/{Utils → Core/Utils}/Range.d.ts +1 -1
  320. package/browser/{Utils → Core/Utils}/Range.js +0 -0
  321. package/browser/{Utils → Core/Utils}/Rectangle.d.ts +1 -2
  322. package/browser/{Utils → Core/Utils}/Rectangle.js +0 -0
  323. package/browser/Core/{Particle → Utils}/Vector.d.ts +0 -0
  324. package/browser/Core/{Particle → Utils}/Vector.js +0 -0
  325. package/browser/Core/{Particle → Utils}/Vector3d.d.ts +0 -0
  326. package/browser/Core/{Particle → Utils}/Vector3d.js +0 -0
  327. package/browser/Core/Utils/index.d.ts +16 -0
  328. package/browser/Core/Utils/index.js +16 -0
  329. package/browser/Core/index.d.ts +8 -0
  330. package/browser/Core/index.js +8 -0
  331. package/browser/Enums/AnimationStatus.d.ts +1 -1
  332. package/browser/Enums/AnimationStatus.js +1 -5
  333. package/browser/Enums/Directions/MoveDirection.d.ts +1 -1
  334. package/browser/Enums/Directions/MoveDirection.js +1 -15
  335. package/browser/Enums/Directions/OutModeDirection.d.ts +1 -1
  336. package/browser/Enums/Directions/OutModeDirection.js +1 -7
  337. package/browser/Enums/Directions/RotateDirection.d.ts +1 -1
  338. package/browser/Enums/Directions/RotateDirection.js +1 -9
  339. package/browser/Enums/Directions/TiltDirection.d.ts +1 -1
  340. package/browser/Enums/Directions/TiltDirection.js +1 -9
  341. package/browser/Enums/InteractivityDetect.d.ts +1 -1
  342. package/browser/Enums/InteractivityDetect.js +1 -9
  343. package/browser/Enums/Modes/ClickMode.d.ts +1 -1
  344. package/browser/Enums/Modes/ClickMode.js +1 -13
  345. package/browser/Enums/Modes/CollisionMode.d.ts +1 -1
  346. package/browser/Enums/Modes/CollisionMode.js +1 -9
  347. package/browser/Enums/Modes/DestroyMode.d.ts +1 -1
  348. package/browser/Enums/Modes/DestroyMode.js +1 -5
  349. package/browser/Enums/Modes/DivMode.d.ts +1 -1
  350. package/browser/Enums/Modes/DivMode.js +1 -9
  351. package/browser/Enums/Modes/HoverMode.d.ts +1 -1
  352. package/browser/Enums/Modes/HoverMode.js +1 -15
  353. package/browser/Enums/Modes/OutMode.d.ts +1 -1
  354. package/browser/Enums/Modes/OutMode.js +1 -13
  355. package/browser/Enums/Modes/ResponsiveMode.d.ts +1 -1
  356. package/browser/Enums/Modes/ResponsiveMode.js +1 -5
  357. package/browser/Enums/Modes/RollMode.d.ts +1 -1
  358. package/browser/Enums/Modes/RollMode.js +1 -6
  359. package/browser/Enums/Modes/SizeMode.d.ts +1 -1
  360. package/browser/Enums/Modes/SizeMode.js +1 -8
  361. package/browser/Enums/Modes/ThemeMode.d.ts +1 -1
  362. package/browser/Enums/Modes/ThemeMode.js +1 -6
  363. package/browser/Enums/Types/AlterType.d.ts +1 -1
  364. package/browser/Enums/Types/AlterType.js +1 -5
  365. package/browser/Enums/Types/DestroyType.d.ts +1 -1
  366. package/browser/Enums/Types/DestroyType.js +1 -9
  367. package/browser/Enums/Types/DivType.d.ts +1 -1
  368. package/browser/Enums/Types/DivType.js +1 -8
  369. package/browser/Enums/Types/EasingType.d.ts +1 -1
  370. package/browser/Enums/Types/EasingType.js +1 -11
  371. package/browser/Enums/Types/GradientType.d.ts +1 -1
  372. package/browser/Enums/Types/GradientType.js +1 -6
  373. package/browser/Enums/Types/InteractorType.d.ts +1 -1
  374. package/browser/Enums/Types/InteractorType.js +1 -5
  375. package/browser/Enums/Types/OrbitType.d.ts +1 -1
  376. package/browser/Enums/Types/OrbitType.js +1 -8
  377. package/browser/Enums/Types/ShapeType.d.ts +1 -1
  378. package/browser/Enums/Types/ShapeType.js +1 -17
  379. package/browser/Enums/Types/StartValueType.d.ts +1 -1
  380. package/browser/Enums/Types/StartValueType.js +1 -9
  381. package/browser/Interactions/External/Attract/Attractor.d.ts +2 -2
  382. package/browser/Interactions/External/Attract/Attractor.js +5 -7
  383. package/browser/Interactions/External/Attract/index.d.ts +2 -2
  384. package/browser/Interactions/External/Bounce/Bouncer.d.ts +2 -2
  385. package/browser/Interactions/External/Bounce/Bouncer.js +7 -9
  386. package/browser/Interactions/External/Bounce/index.d.ts +2 -2
  387. package/browser/Interactions/External/Bubble/Bubbler.d.ts +3 -3
  388. package/browser/Interactions/External/Bubble/Bubbler.js +16 -18
  389. package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +1 -1
  390. package/browser/Interactions/External/Bubble/ProcessBubbleType.js +1 -9
  391. package/browser/Interactions/External/Bubble/index.d.ts +2 -2
  392. package/browser/Interactions/External/Connect/Connector.d.ts +2 -2
  393. package/browser/Interactions/External/Connect/Connector.js +2 -3
  394. package/browser/Interactions/External/Connect/index.d.ts +2 -2
  395. package/browser/Interactions/External/Grab/Grabber.d.ts +2 -2
  396. package/browser/Interactions/External/Grab/Grabber.js +3 -4
  397. package/browser/Interactions/External/Grab/index.d.ts +2 -2
  398. package/browser/Interactions/External/Repulse/Repulser.d.ts +2 -2
  399. package/browser/Interactions/External/Repulse/Repulser.js +8 -10
  400. package/browser/Interactions/External/Repulse/index.d.ts +2 -2
  401. package/browser/Interactions/External/Trail/TrailMaker.d.ts +2 -3
  402. package/browser/Interactions/External/Trail/TrailMaker.js +3 -4
  403. package/browser/Interactions/External/Trail/index.d.ts +2 -2
  404. package/browser/Interactions/Particles/Attract/Attractor.d.ts +2 -4
  405. package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
  406. package/browser/Interactions/Particles/Attract/index.d.ts +2 -2
  407. package/browser/Interactions/Particles/Collisions/Collider.d.ts +2 -3
  408. package/browser/Interactions/Particles/Collisions/Collider.js +4 -5
  409. package/browser/Interactions/Particles/Collisions/index.d.ts +2 -2
  410. package/browser/Interactions/Particles/Links/LinkInstance.d.ts +1 -3
  411. package/browser/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  412. package/browser/Interactions/Particles/Links/Linker.d.ts +3 -4
  413. package/browser/Interactions/Particles/Links/Linker.js +2 -2
  414. package/browser/Interactions/Particles/Links/index.d.ts +2 -3
  415. package/browser/Interactions/Particles/Links/index.js +1 -4
  416. package/browser/Interactions/Particles/Links/interaction.d.ts +2 -0
  417. package/browser/Interactions/Particles/Links/interaction.js +4 -0
  418. package/browser/Interactions/Particles/Links/plugin.d.ts +2 -2
  419. package/browser/Interactions/Particles/Links/plugin.js +2 -2
  420. package/browser/Options/Classes/AnimatableGradient.js +3 -4
  421. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +1 -2
  422. package/browser/Options/Classes/Interactivity/Interactivity.js +5 -6
  423. package/browser/Options/Classes/Interactivity/Modes/Attract.js +1 -2
  424. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.js +1 -2
  425. package/browser/Options/Classes/Options.js +7 -7
  426. package/browser/Options/Classes/Particles/Collisions/Collisions.js +1 -2
  427. package/browser/Options/Classes/Particles/Destroy/Destroy.js +1 -2
  428. package/browser/Options/Classes/Particles/Move/Move.js +1 -2
  429. package/browser/Options/Classes/Particles/Move/OutModes.js +1 -2
  430. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -3
  431. package/browser/Options/Classes/Particles/Roll/Roll.js +1 -2
  432. package/browser/Options/Classes/Particles/Rotate/Rotate.js +1 -2
  433. package/browser/Options/Classes/Particles/Shape/Shape.js +13 -14
  434. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +2 -3
  435. package/browser/Options/Classes/Particles/Tilt/Tilt.js +1 -2
  436. package/browser/Options/Classes/Responsive.js +4 -5
  437. package/browser/Options/Classes/Theme/ThemeDefault.js +1 -2
  438. package/browser/Plugins/Absorbers/AbsorberContainer.d.ts +1 -1
  439. package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +2 -4
  440. package/browser/Plugins/Absorbers/AbsorberInstance.js +4 -5
  441. package/browser/Plugins/Absorbers/Absorbers.d.ts +1 -4
  442. package/browser/Plugins/Absorbers/Absorbers.js +1 -2
  443. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +1 -1
  444. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.js +1 -7
  445. package/browser/Plugins/Absorbers/index.d.ts +2 -0
  446. package/browser/Plugins/Absorbers/{plugin.js → index.js} +3 -4
  447. package/browser/Plugins/Emitters/EmitterContainer.d.ts +1 -1
  448. package/browser/Plugins/Emitters/EmitterInstance.d.ts +1 -2
  449. package/browser/Plugins/Emitters/EmitterInstance.js +3 -4
  450. package/browser/Plugins/Emitters/Emitters.d.ts +1 -2
  451. package/browser/Plugins/Emitters/Emitters.js +1 -2
  452. package/browser/Plugins/Emitters/EmittersMain.d.ts +2 -2
  453. package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +1 -1
  454. package/browser/Plugins/Emitters/Enums/EmitterClickMode.js +1 -7
  455. package/browser/Plugins/Emitters/Enums/EmitterShapeType.d.ts +1 -1
  456. package/browser/Plugins/Emitters/Enums/EmitterShapeType.js +1 -5
  457. package/browser/Plugins/Emitters/IEmitterShape.d.ts +1 -1
  458. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +1 -2
  459. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.js +1 -2
  460. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  461. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  462. package/browser/Plugins/Emitters/{plugin.d.ts → index.d.ts} +0 -0
  463. package/browser/Plugins/Emitters/{plugin.js → index.js} +3 -4
  464. package/browser/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  465. package/browser/Plugins/PolygonMask/{Options/Interfaces/IDraw.js → Enums/PolygonMaskInlineArrangement.js} +0 -0
  466. package/browser/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  467. package/browser/Plugins/PolygonMask/{Options/Interfaces/IDrawStroke.js → Enums/PolygonMaskMoveType.js} +0 -0
  468. package/{Plugins/PolygonMask/Enums/Type.d.ts → browser/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts} +1 -1
  469. package/browser/Plugins/PolygonMask/{Options/Interfaces/IInline.js → Enums/PolygonMaskType.js} +0 -0
  470. package/browser/Plugins/PolygonMask/Enums/index.d.ts +3 -3
  471. package/browser/Plugins/PolygonMask/Enums/index.js +3 -3
  472. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +13 -13
  473. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +42 -42
  474. package/browser/Plugins/PolygonMask/Options/Classes/{Draw.d.ts → PolygonMaskDraw.d.ts} +5 -5
  475. package/browser/Plugins/PolygonMask/Options/Classes/{Draw.js → PolygonMaskDraw.js} +13 -12
  476. package/browser/Plugins/PolygonMask/Options/Classes/{DrawStroke.d.ts → PolygonMaskDrawStroke.d.ts} +3 -3
  477. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +28 -0
  478. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +12 -0
  479. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +16 -0
  480. package/browser/Plugins/PolygonMask/Options/Classes/{LocalSvg.d.ts → PolygonMaskLocalSvg.d.ts} +4 -4
  481. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +28 -0
  482. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +13 -0
  483. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +20 -0
  484. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +12 -13
  485. package/browser/Plugins/PolygonMask/Options/Interfaces/{IDraw.d.ts → IPolygonMaskDraw.d.ts} +4 -4
  486. package/browser/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.js → IPolygonMaskDraw.js} +0 -0
  487. package/browser/Plugins/PolygonMask/Options/Interfaces/{IDrawStroke.d.ts → IPolygonMaskDrawStroke.d.ts} +2 -2
  488. package/browser/Plugins/PolygonMask/Options/Interfaces/{IMove.js → IPolygonMaskDrawStroke.js} +0 -0
  489. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +7 -0
  490. package/browser/Plugins/PolygonMask/{types.js → Options/Interfaces/IPolygonMaskInline.js} +0 -0
  491. package/browser/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.d.ts → IPolygonMaskLocalSvg.d.ts} +2 -2
  492. package/{esm/Plugins/PolygonMask/Options/Interfaces/IDraw.js → browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js} +0 -0
  493. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +8 -0
  494. package/{esm/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.js → browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js} +0 -0
  495. package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +2 -4
  496. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +24 -21
  497. package/browser/Plugins/PolygonMask/{types.d.ts → Types.d.ts} +0 -0
  498. package/{esm/Plugins/PolygonMask/Options/Interfaces/IInline.js → browser/Plugins/PolygonMask/Types.js} +0 -0
  499. package/{Plugins/PolygonMask/utils.d.ts → browser/Plugins/PolygonMask/Utils.d.ts} +5 -5
  500. package/browser/Plugins/PolygonMask/{utils.js → Utils.js} +15 -12
  501. package/browser/Plugins/PolygonMask/index.d.ts +2 -0
  502. package/browser/Plugins/PolygonMask/{plugin.js → index.js} +5 -6
  503. package/browser/Plugins/PolygonMask/pathseg.js +54 -44
  504. package/browser/Shapes/Circle/CircleDrawer.d.ts +1 -1
  505. package/browser/Shapes/Circle/index.d.ts +2 -2
  506. package/browser/Shapes/Image/ImageDrawer.d.ts +3 -7
  507. package/browser/Shapes/Image/ImageDrawer.js +28 -111
  508. package/browser/Shapes/Image/Utils.d.ts +8 -5
  509. package/browser/Shapes/Image/Utils.js +71 -37
  510. package/browser/Shapes/Image/index.d.ts +2 -2
  511. package/browser/Shapes/Line/LineDrawer.d.ts +1 -1
  512. package/browser/Shapes/Line/index.d.ts +2 -2
  513. package/browser/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  514. package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +1 -1
  515. package/browser/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  516. package/browser/Shapes/Polygon/index.d.ts +4 -4
  517. package/browser/Shapes/Square/SquareDrawer.d.ts +1 -1
  518. package/browser/Shapes/Square/index.d.ts +2 -2
  519. package/browser/Shapes/Star/StarDrawer.d.ts +1 -1
  520. package/browser/Shapes/Star/index.d.ts +2 -2
  521. package/browser/Shapes/Text/TextDrawer.d.ts +1 -2
  522. package/browser/Shapes/Text/index.d.ts +2 -2
  523. package/browser/Updaters/Angle/AngleUpdater.d.ts +1 -3
  524. package/browser/Updaters/Angle/AngleUpdater.js +8 -9
  525. package/browser/Updaters/Angle/index.d.ts +2 -2
  526. package/browser/Updaters/Color/ColorUpdater.d.ts +1 -3
  527. package/browser/Updaters/Color/ColorUpdater.js +3 -4
  528. package/browser/Updaters/Color/index.d.ts +2 -2
  529. package/browser/Updaters/Life/LifeUpdater.d.ts +1 -3
  530. package/browser/Updaters/Life/index.d.ts +2 -2
  531. package/browser/Updaters/Opacity/OpacityUpdater.d.ts +1 -3
  532. package/browser/Updaters/Opacity/OpacityUpdater.js +13 -14
  533. package/browser/Updaters/Opacity/index.d.ts +2 -2
  534. package/browser/Updaters/OutModes/IBounceData.d.ts +1 -2
  535. package/browser/Updaters/OutModes/OutOfCanvasUpdater.d.ts +1 -3
  536. package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +19 -20
  537. package/browser/Updaters/OutModes/Utils.js +12 -13
  538. package/browser/Updaters/OutModes/index.d.ts +2 -2
  539. package/browser/Updaters/Roll/RollUpdater.d.ts +1 -2
  540. package/browser/Updaters/Roll/RollUpdater.js +4 -5
  541. package/browser/Updaters/Roll/index.d.ts +2 -2
  542. package/browser/Updaters/Size/SizeUpdater.d.ts +1 -2
  543. package/browser/Updaters/Size/SizeUpdater.js +6 -7
  544. package/browser/Updaters/Size/index.d.ts +2 -2
  545. package/browser/Updaters/StrokeColor/StrokeColorUpdater.d.ts +1 -3
  546. package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +3 -4
  547. package/browser/Updaters/StrokeColor/index.d.ts +2 -2
  548. package/browser/Updaters/Tilt/TiltUpdater.d.ts +1 -3
  549. package/browser/Updaters/Tilt/TiltUpdater.js +8 -9
  550. package/browser/Updaters/Tilt/index.d.ts +2 -2
  551. package/browser/Updaters/Wobble/WobbleUpdater.d.ts +1 -3
  552. package/browser/Updaters/Wobble/index.d.ts +2 -2
  553. package/browser/Utils/CanvasUtils.d.ts +3 -3
  554. package/browser/Utils/CanvasUtils.js +4 -5
  555. package/browser/Utils/ColorUtils.d.ts +1 -1
  556. package/browser/Utils/ColorUtils.js +2 -3
  557. package/browser/Utils/NumberUtils.d.ts +2 -2
  558. package/browser/Utils/NumberUtils.js +18 -19
  559. package/browser/Utils/Utils.d.ts +1 -1
  560. package/browser/Utils/Utils.js +5 -6
  561. package/browser/Utils/index.d.ts +0 -9
  562. package/browser/Utils/index.js +0 -9
  563. package/browser/{main.d.ts → engine.d.ts} +4 -6
  564. package/browser/{main.js → engine.js} +10 -11
  565. package/browser/full.d.ts +2 -2
  566. package/browser/full.js +3 -3
  567. package/browser/index.d.ts +6 -16
  568. package/browser/index.engine.d.ts +13 -0
  569. package/browser/index.engine.js +12 -0
  570. package/browser/index.js +5 -13
  571. package/browser/index.slim.d.ts +6 -16
  572. package/browser/index.slim.js +5 -13
  573. package/browser/pjs.d.ts +3 -3
  574. package/browser/pjs.js +6 -5
  575. package/browser/slim.d.ts +2 -2
  576. package/{esm/main.d.ts → engine.d.ts} +2 -4
  577. package/{main.js → engine.js} +24 -25
  578. package/esm/Core/Canvas.js +9 -9
  579. package/esm/Core/Container.d.ts +2 -3
  580. package/esm/Core/Container.js +2 -3
  581. package/esm/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  582. package/esm/Core/Interfaces/IMovePathGenerator.d.ts +1 -1
  583. package/esm/Core/Interfaces/IParticle.d.ts +1 -1
  584. package/esm/Core/Interfaces/index.d.ts +3 -1
  585. package/esm/Core/Interfaces/index.js +3 -1
  586. package/esm/Core/Loader.js +2 -1
  587. package/esm/Core/Particle.d.ts +2 -5
  588. package/esm/Core/Particle.js +13 -15
  589. package/esm/Core/Particles.d.ts +1 -1
  590. package/esm/Core/Particles.js +8 -14
  591. package/esm/{Utils → Core/Utils}/Circle.d.ts +1 -1
  592. package/esm/{Utils → Core/Utils}/Circle.js +1 -1
  593. package/{Utils → esm/Core/Utils}/CircleWarp.d.ts +1 -2
  594. package/esm/{Utils → Core/Utils}/CircleWarp.js +0 -0
  595. package/esm/{Utils → Core/Utils}/Constants.d.ts +0 -0
  596. package/esm/{Utils → Core/Utils}/Constants.js +0 -0
  597. package/esm/{Utils → Core/Utils}/EventListeners.d.ts +1 -1
  598. package/esm/{Utils → Core/Utils}/EventListeners.js +10 -11
  599. package/{browser/Core → esm/Core/Utils}/ExternalInteractorBase.d.ts +4 -4
  600. package/esm/Core/{ExternalInteractorBase.js → Utils/ExternalInteractorBase.js} +1 -2
  601. package/{Core → esm/Core/Utils}/FrameManager.d.ts +1 -1
  602. package/esm/Core/{FrameManager.js → Utils/FrameManager.js} +0 -0
  603. package/{Core → esm/Core/Utils}/InteractionManager.d.ts +3 -3
  604. package/esm/Core/{InteractionManager.js → Utils/InteractionManager.js} +2 -3
  605. package/{browser/Core → esm/Core/Utils}/ParticlesInteractorBase.d.ts +4 -4
  606. package/{browser/Core → esm/Core/Utils}/ParticlesInteractorBase.js +1 -2
  607. package/{Core/Particle/Mover.d.ts → esm/Core/Utils/ParticlesMover.d.ts} +1 -1
  608. package/esm/Core/{Particle/Mover.js → Utils/ParticlesMover.js} +4 -5
  609. package/{Utils → esm/Core/Utils}/Plugins.d.ts +5 -5
  610. package/esm/{Utils → Core/Utils}/Plugins.js +0 -0
  611. package/esm/{Utils → Core/Utils}/Point.d.ts +2 -2
  612. package/esm/{Utils → Core/Utils}/Point.js +0 -0
  613. package/esm/{Utils → Core/Utils}/QuadTree.d.ts +3 -3
  614. package/esm/{Utils → Core/Utils}/QuadTree.js +1 -1
  615. package/{Utils → esm/Core/Utils}/Range.d.ts +1 -1
  616. package/esm/{Utils → Core/Utils}/Range.js +0 -0
  617. package/{Utils → esm/Core/Utils}/Rectangle.d.ts +1 -2
  618. package/esm/{Utils → Core/Utils}/Rectangle.js +0 -0
  619. package/esm/Core/{Particle → Utils}/Vector.d.ts +0 -0
  620. package/esm/Core/{Particle → Utils}/Vector.js +0 -0
  621. package/esm/Core/{Particle → Utils}/Vector3d.d.ts +0 -0
  622. package/esm/Core/{Particle → Utils}/Vector3d.js +0 -0
  623. package/esm/Core/Utils/index.d.ts +16 -0
  624. package/esm/Core/Utils/index.js +16 -0
  625. package/esm/Core/index.d.ts +8 -0
  626. package/esm/Core/index.js +8 -0
  627. package/esm/Enums/AnimationStatus.d.ts +1 -1
  628. package/esm/Enums/AnimationStatus.js +1 -5
  629. package/esm/Enums/Directions/MoveDirection.d.ts +1 -1
  630. package/esm/Enums/Directions/MoveDirection.js +1 -12
  631. package/esm/Enums/Directions/OutModeDirection.d.ts +1 -1
  632. package/esm/Enums/Directions/OutModeDirection.js +1 -7
  633. package/esm/Enums/Directions/RotateDirection.d.ts +1 -1
  634. package/esm/Enums/Directions/RotateDirection.js +1 -6
  635. package/esm/Enums/Directions/TiltDirection.d.ts +1 -1
  636. package/esm/Enums/Directions/TiltDirection.js +1 -6
  637. package/esm/Enums/InteractivityDetect.d.ts +1 -1
  638. package/esm/Enums/InteractivityDetect.js +1 -6
  639. package/esm/Enums/Modes/ClickMode.d.ts +1 -1
  640. package/esm/Enums/Modes/ClickMode.js +1 -10
  641. package/esm/Enums/Modes/CollisionMode.d.ts +1 -1
  642. package/esm/Enums/Modes/CollisionMode.js +1 -6
  643. package/esm/Enums/Modes/DestroyMode.d.ts +1 -1
  644. package/esm/Enums/Modes/DestroyMode.js +1 -5
  645. package/esm/Enums/Modes/DivMode.d.ts +1 -1
  646. package/esm/Enums/Modes/DivMode.js +1 -6
  647. package/esm/Enums/Modes/HoverMode.d.ts +1 -1
  648. package/esm/Enums/Modes/HoverMode.js +1 -12
  649. package/esm/Enums/Modes/OutMode.d.ts +1 -1
  650. package/esm/Enums/Modes/OutMode.js +1 -10
  651. package/esm/Enums/Modes/ResponsiveMode.d.ts +1 -1
  652. package/esm/Enums/Modes/ResponsiveMode.js +1 -5
  653. package/esm/Enums/Modes/RollMode.d.ts +1 -1
  654. package/esm/Enums/Modes/RollMode.js +1 -6
  655. package/esm/Enums/Modes/SizeMode.d.ts +1 -1
  656. package/esm/Enums/Modes/SizeMode.js +1 -5
  657. package/esm/Enums/Modes/ThemeMode.d.ts +1 -1
  658. package/esm/Enums/Modes/ThemeMode.js +1 -6
  659. package/esm/Enums/Types/AlterType.d.ts +1 -1
  660. package/esm/Enums/Types/AlterType.js +1 -5
  661. package/esm/Enums/Types/DestroyType.d.ts +1 -1
  662. package/esm/Enums/Types/DestroyType.js +1 -6
  663. package/esm/Enums/Types/DivType.d.ts +1 -1
  664. package/esm/Enums/Types/DivType.js +1 -5
  665. package/esm/Enums/Types/EasingType.d.ts +1 -1
  666. package/esm/Enums/Types/EasingType.js +1 -11
  667. package/esm/Enums/Types/GradientType.d.ts +1 -1
  668. package/esm/Enums/Types/GradientType.js +1 -6
  669. package/esm/Enums/Types/InteractorType.d.ts +1 -1
  670. package/esm/Enums/Types/InteractorType.js +1 -5
  671. package/esm/Enums/Types/OrbitType.d.ts +1 -1
  672. package/esm/Enums/Types/OrbitType.js +1 -5
  673. package/esm/Enums/Types/ShapeType.d.ts +1 -1
  674. package/esm/Enums/Types/ShapeType.js +1 -14
  675. package/esm/Enums/Types/StartValueType.d.ts +1 -1
  676. package/esm/Enums/Types/StartValueType.js +1 -6
  677. package/esm/Interactions/External/Attract/Attractor.d.ts +2 -2
  678. package/esm/Interactions/External/Attract/Attractor.js +5 -7
  679. package/esm/Interactions/External/Attract/index.d.ts +2 -2
  680. package/esm/Interactions/External/Bounce/Bouncer.d.ts +2 -2
  681. package/esm/Interactions/External/Bounce/Bouncer.js +7 -9
  682. package/esm/Interactions/External/Bounce/index.d.ts +2 -2
  683. package/esm/Interactions/External/Bubble/Bubbler.d.ts +3 -3
  684. package/esm/Interactions/External/Bubble/Bubbler.js +16 -18
  685. package/esm/Interactions/External/Bubble/ProcessBubbleType.d.ts +1 -1
  686. package/esm/Interactions/External/Bubble/ProcessBubbleType.js +1 -6
  687. package/esm/Interactions/External/Bubble/index.d.ts +2 -2
  688. package/esm/Interactions/External/Connect/Connector.d.ts +2 -2
  689. package/esm/Interactions/External/Connect/Connector.js +2 -3
  690. package/esm/Interactions/External/Connect/index.d.ts +2 -2
  691. package/esm/Interactions/External/Grab/Grabber.d.ts +2 -2
  692. package/esm/Interactions/External/Grab/Grabber.js +3 -4
  693. package/esm/Interactions/External/Grab/index.d.ts +2 -2
  694. package/esm/Interactions/External/Repulse/Repulser.d.ts +2 -2
  695. package/esm/Interactions/External/Repulse/Repulser.js +8 -10
  696. package/esm/Interactions/External/Repulse/index.d.ts +2 -2
  697. package/esm/Interactions/External/Trail/TrailMaker.d.ts +2 -3
  698. package/esm/Interactions/External/Trail/TrailMaker.js +3 -4
  699. package/esm/Interactions/External/Trail/index.d.ts +2 -2
  700. package/esm/Interactions/Particles/Attract/Attractor.d.ts +2 -4
  701. package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
  702. package/esm/Interactions/Particles/Attract/index.d.ts +2 -2
  703. package/esm/Interactions/Particles/Collisions/Collider.d.ts +2 -3
  704. package/esm/Interactions/Particles/Collisions/Collider.js +4 -5
  705. package/esm/Interactions/Particles/Collisions/index.d.ts +2 -2
  706. package/esm/Interactions/Particles/Links/LinkInstance.d.ts +1 -3
  707. package/esm/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  708. package/esm/Interactions/Particles/Links/Linker.d.ts +3 -4
  709. package/esm/Interactions/Particles/Links/Linker.js +2 -2
  710. package/esm/Interactions/Particles/Links/index.d.ts +2 -3
  711. package/esm/Interactions/Particles/Links/index.js +1 -4
  712. package/esm/Interactions/Particles/Links/interaction.d.ts +2 -0
  713. package/esm/Interactions/Particles/Links/interaction.js +4 -0
  714. package/esm/Interactions/Particles/Links/plugin.d.ts +2 -2
  715. package/esm/Interactions/Particles/Links/plugin.js +2 -2
  716. package/esm/Options/Classes/AnimatableGradient.js +3 -4
  717. package/esm/Options/Classes/Interactivity/Events/DivEvent.js +1 -2
  718. package/esm/Options/Classes/Interactivity/Interactivity.js +5 -6
  719. package/esm/Options/Classes/Interactivity/Modes/Attract.js +1 -2
  720. package/esm/Options/Classes/Interactivity/Modes/RepulseBase.js +1 -2
  721. package/esm/Options/Classes/Options.js +7 -7
  722. package/esm/Options/Classes/Particles/Collisions/Collisions.js +1 -2
  723. package/esm/Options/Classes/Particles/Destroy/Destroy.js +1 -2
  724. package/esm/Options/Classes/Particles/Move/Move.js +1 -2
  725. package/esm/Options/Classes/Particles/Move/OutModes.js +1 -2
  726. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -3
  727. package/esm/Options/Classes/Particles/Roll/Roll.js +1 -2
  728. package/esm/Options/Classes/Particles/Rotate/Rotate.js +1 -2
  729. package/esm/Options/Classes/Particles/Shape/Shape.js +13 -14
  730. package/esm/Options/Classes/Particles/Size/SizeAnimation.js +2 -3
  731. package/esm/Options/Classes/Particles/Tilt/Tilt.js +1 -2
  732. package/esm/Options/Classes/Responsive.js +4 -5
  733. package/esm/Options/Classes/Theme/ThemeDefault.js +1 -2
  734. package/esm/Plugins/Absorbers/AbsorberContainer.d.ts +1 -1
  735. package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +2 -4
  736. package/esm/Plugins/Absorbers/AbsorberInstance.js +4 -5
  737. package/esm/Plugins/Absorbers/Absorbers.d.ts +1 -4
  738. package/esm/Plugins/Absorbers/Absorbers.js +1 -2
  739. package/esm/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +1 -1
  740. package/esm/Plugins/Absorbers/Enums/AbsorberClickMode.js +1 -4
  741. package/esm/Plugins/Absorbers/index.d.ts +2 -0
  742. package/esm/Plugins/Absorbers/{plugin.js → index.js} +3 -4
  743. package/esm/Plugins/Emitters/EmitterContainer.d.ts +1 -1
  744. package/esm/Plugins/Emitters/EmitterInstance.d.ts +1 -2
  745. package/esm/Plugins/Emitters/EmitterInstance.js +3 -4
  746. package/esm/Plugins/Emitters/Emitters.d.ts +1 -2
  747. package/esm/Plugins/Emitters/Emitters.js +1 -2
  748. package/esm/Plugins/Emitters/EmittersMain.d.ts +2 -2
  749. package/esm/Plugins/Emitters/Enums/EmitterClickMode.d.ts +1 -1
  750. package/esm/Plugins/Emitters/Enums/EmitterClickMode.js +1 -4
  751. package/esm/Plugins/Emitters/Enums/EmitterShapeType.d.ts +1 -1
  752. package/esm/Plugins/Emitters/Enums/EmitterShapeType.js +1 -5
  753. package/esm/Plugins/Emitters/IEmitterShape.d.ts +1 -1
  754. package/esm/Plugins/Emitters/Options/Classes/Emitter.js +1 -2
  755. package/esm/Plugins/Emitters/Options/Classes/EmitterSize.js +1 -2
  756. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  757. package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  758. package/esm/Plugins/Emitters/{plugin.d.ts → index.d.ts} +0 -0
  759. package/esm/Plugins/Emitters/{plugin.js → index.js} +3 -4
  760. package/esm/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  761. package/esm/Plugins/PolygonMask/{Options/Interfaces/ILocalSvg.js → Enums/PolygonMaskInlineArrangement.js} +0 -0
  762. package/esm/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  763. package/esm/Plugins/PolygonMask/{Options/Interfaces/IMove.js → Enums/PolygonMaskMoveType.js} +0 -0
  764. package/{browser/Plugins/PolygonMask/Enums/Type.d.ts → esm/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts} +1 -1
  765. package/esm/Plugins/PolygonMask/{types.js → Enums/PolygonMaskType.js} +0 -0
  766. package/esm/Plugins/PolygonMask/Enums/index.d.ts +3 -3
  767. package/esm/Plugins/PolygonMask/Enums/index.js +3 -3
  768. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +13 -13
  769. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +42 -42
  770. package/esm/Plugins/PolygonMask/Options/Classes/{Draw.d.ts → PolygonMaskDraw.d.ts} +5 -5
  771. package/esm/Plugins/PolygonMask/Options/Classes/{Draw.js → PolygonMaskDraw.js} +13 -12
  772. package/esm/Plugins/PolygonMask/Options/Classes/{DrawStroke.d.ts → PolygonMaskDrawStroke.d.ts} +3 -3
  773. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +25 -0
  774. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  775. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +13 -0
  776. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  777. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +25 -0
  778. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  779. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +17 -0
  780. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +12 -13
  781. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  782. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +1 -0
  783. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  784. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +1 -0
  785. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  786. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +1 -0
  787. package/esm/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.d.ts → IPolygonMaskLocalSvg.d.ts} +2 -2
  788. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +1 -0
  789. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  790. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +1 -0
  791. package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +2 -4
  792. package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +24 -21
  793. package/esm/Plugins/PolygonMask/{types.d.ts → Types.d.ts} +0 -0
  794. package/esm/Plugins/PolygonMask/Types.js +1 -0
  795. package/{browser/Plugins/PolygonMask/utils.d.ts → esm/Plugins/PolygonMask/Utils.d.ts} +5 -5
  796. package/esm/Plugins/PolygonMask/{utils.js → Utils.js} +15 -12
  797. package/esm/Plugins/PolygonMask/index.d.ts +2 -0
  798. package/esm/Plugins/PolygonMask/{plugin.js → index.js} +4 -5
  799. package/esm/Plugins/PolygonMask/pathseg.js +54 -43
  800. package/esm/Shapes/Circle/CircleDrawer.d.ts +1 -1
  801. package/esm/Shapes/Circle/index.d.ts +2 -2
  802. package/esm/Shapes/Image/ImageDrawer.d.ts +3 -7
  803. package/esm/Shapes/Image/ImageDrawer.js +28 -108
  804. package/esm/Shapes/Image/Utils.d.ts +8 -5
  805. package/esm/Shapes/Image/Utils.js +67 -36
  806. package/esm/Shapes/Image/index.d.ts +2 -2
  807. package/esm/Shapes/Line/LineDrawer.d.ts +1 -1
  808. package/esm/Shapes/Line/index.d.ts +2 -2
  809. package/esm/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  810. package/esm/Shapes/Polygon/PolygonDrawerBase.d.ts +1 -1
  811. package/esm/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  812. package/esm/Shapes/Polygon/index.d.ts +4 -4
  813. package/esm/Shapes/Square/SquareDrawer.d.ts +1 -1
  814. package/esm/Shapes/Square/index.d.ts +2 -2
  815. package/esm/Shapes/Star/StarDrawer.d.ts +1 -1
  816. package/esm/Shapes/Star/index.d.ts +2 -2
  817. package/esm/Shapes/Text/TextDrawer.d.ts +1 -2
  818. package/esm/Shapes/Text/index.d.ts +2 -2
  819. package/esm/Updaters/Angle/AngleUpdater.d.ts +1 -3
  820. package/esm/Updaters/Angle/AngleUpdater.js +8 -9
  821. package/esm/Updaters/Angle/index.d.ts +2 -2
  822. package/esm/Updaters/Color/ColorUpdater.d.ts +1 -3
  823. package/esm/Updaters/Color/ColorUpdater.js +3 -4
  824. package/esm/Updaters/Color/index.d.ts +2 -2
  825. package/esm/Updaters/Life/LifeUpdater.d.ts +1 -3
  826. package/esm/Updaters/Life/index.d.ts +2 -2
  827. package/esm/Updaters/Opacity/OpacityUpdater.d.ts +1 -3
  828. package/esm/Updaters/Opacity/OpacityUpdater.js +13 -14
  829. package/esm/Updaters/Opacity/index.d.ts +2 -2
  830. package/esm/Updaters/OutModes/IBounceData.d.ts +1 -2
  831. package/esm/Updaters/OutModes/OutOfCanvasUpdater.d.ts +1 -3
  832. package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +19 -20
  833. package/esm/Updaters/OutModes/Utils.js +12 -13
  834. package/esm/Updaters/OutModes/index.d.ts +2 -2
  835. package/esm/Updaters/Roll/RollUpdater.d.ts +1 -2
  836. package/esm/Updaters/Roll/RollUpdater.js +4 -5
  837. package/esm/Updaters/Roll/index.d.ts +2 -2
  838. package/esm/Updaters/Size/SizeUpdater.d.ts +1 -2
  839. package/esm/Updaters/Size/SizeUpdater.js +6 -7
  840. package/esm/Updaters/Size/index.d.ts +2 -2
  841. package/esm/Updaters/StrokeColor/StrokeColorUpdater.d.ts +1 -3
  842. package/esm/Updaters/StrokeColor/StrokeColorUpdater.js +3 -4
  843. package/esm/Updaters/StrokeColor/index.d.ts +2 -2
  844. package/esm/Updaters/Tilt/TiltUpdater.d.ts +1 -3
  845. package/esm/Updaters/Tilt/TiltUpdater.js +8 -9
  846. package/esm/Updaters/Tilt/index.d.ts +2 -2
  847. package/esm/Updaters/Wobble/WobbleUpdater.d.ts +1 -3
  848. package/esm/Updaters/Wobble/index.d.ts +2 -2
  849. package/esm/Utils/CanvasUtils.d.ts +3 -3
  850. package/esm/Utils/CanvasUtils.js +4 -5
  851. package/esm/Utils/ColorUtils.d.ts +1 -1
  852. package/esm/Utils/ColorUtils.js +2 -3
  853. package/esm/Utils/NumberUtils.d.ts +2 -2
  854. package/esm/Utils/NumberUtils.js +18 -19
  855. package/esm/Utils/Utils.d.ts +1 -1
  856. package/esm/Utils/Utils.js +5 -6
  857. package/esm/Utils/index.d.ts +0 -9
  858. package/esm/Utils/index.js +0 -9
  859. package/{main.d.ts → esm/engine.d.ts} +2 -4
  860. package/esm/{main.js → engine.js} +8 -9
  861. package/esm/full.d.ts +2 -2
  862. package/esm/full.js +3 -3
  863. package/esm/index.d.ts +6 -16
  864. package/esm/index.engine.d.ts +13 -0
  865. package/esm/index.engine.js +11 -0
  866. package/esm/index.js +5 -13
  867. package/esm/index.slim.d.ts +6 -16
  868. package/esm/index.slim.js +5 -13
  869. package/esm/pjs.d.ts +3 -3
  870. package/esm/pjs.js +6 -5
  871. package/esm/slim.d.ts +2 -2
  872. package/full.d.ts +2 -2
  873. package/full.js +6 -6
  874. package/index.d.ts +6 -16
  875. package/index.engine.d.ts +13 -0
  876. package/index.engine.js +27 -0
  877. package/index.js +7 -19
  878. package/index.slim.d.ts +6 -16
  879. package/index.slim.js +7 -19
  880. package/package.json +1 -1
  881. package/pjs.d.ts +3 -3
  882. package/pjs.js +6 -5
  883. package/report.html +2 -2
  884. package/report.slim.html +2 -2
  885. package/slim.d.ts +2 -2
  886. package/tsparticles.engine.js +6746 -0
  887. package/tsparticles.engine.min.js +2 -0
  888. package/tsparticles.interaction.external.attract.js +4976 -0
  889. package/tsparticles.interaction.external.attract.min.js +2 -0
  890. package/tsparticles.interaction.external.bounce.js +4997 -0
  891. package/tsparticles.interaction.external.bounce.min.js +2 -0
  892. package/tsparticles.interaction.external.bubble.js +5083 -0
  893. package/tsparticles.interaction.external.bubble.min.js +2 -0
  894. package/tsparticles.interaction.external.connect.js +4845 -0
  895. package/tsparticles.interaction.external.connect.min.js +2 -0
  896. package/tsparticles.interaction.external.grab.js +4851 -0
  897. package/tsparticles.interaction.external.grab.min.js +2 -0
  898. package/tsparticles.interaction.external.repulse.js +5028 -0
  899. package/tsparticles.interaction.external.repulse.min.js +2 -0
  900. package/tsparticles.interaction.external.trail.js +4853 -0
  901. package/tsparticles.interaction.external.trail.min.js +2 -0
  902. package/tsparticles.interaction.particles.attract.js +4834 -0
  903. package/tsparticles.interaction.particles.attract.min.js +2 -0
  904. package/tsparticles.interaction.particles.collisions.js +4999 -0
  905. package/tsparticles.interaction.particles.collisions.min.js +2 -0
  906. package/tsparticles.interaction.particles.links.js +5071 -0
  907. package/tsparticles.interaction.particles.links.min.js +2 -0
  908. package/tsparticles.js +1263 -1572
  909. package/tsparticles.min.js +2 -2
  910. package/tsparticles.pathseg.min.js +2 -0
  911. package/tsparticles.plugins.absorbers.js +5332 -0
  912. package/tsparticles.plugins.absorbers.min.js +2 -0
  913. package/tsparticles.plugins.emitters.js +5419 -0
  914. package/tsparticles.plugins.emitters.min.js +2 -0
  915. package/tsparticles.plugins.polygonMask.js +5862 -0
  916. package/tsparticles.plugins.polygonMask.min.js +2 -0
  917. package/tsparticles.shape.circle.js +59 -0
  918. package/tsparticles.shape.circle.min.js +2 -0
  919. package/tsparticles.shape.image.js +5021 -0
  920. package/tsparticles.shape.image.min.js +2 -0
  921. package/tsparticles.shape.line.js +60 -0
  922. package/tsparticles.shape.line.min.js +2 -0
  923. package/tsparticles.shape.polygon.js +131 -0
  924. package/tsparticles.shape.polygon.min.js +2 -0
  925. package/tsparticles.shape.square.js +62 -0
  926. package/tsparticles.shape.square.min.js +2 -0
  927. package/tsparticles.shape.star.js +71 -0
  928. package/tsparticles.shape.star.min.js +2 -0
  929. package/tsparticles.shape.text.js +4865 -0
  930. package/tsparticles.shape.text.min.js +2 -0
  931. package/tsparticles.slim.js +1052 -1314
  932. package/tsparticles.slim.min.js +2 -2
  933. package/tsparticles.updater.angle.js +4880 -0
  934. package/tsparticles.updater.angle.min.js +2 -0
  935. package/tsparticles.updater.color.js +4862 -0
  936. package/tsparticles.updater.color.min.js +2 -0
  937. package/tsparticles.updater.life.js +4864 -0
  938. package/tsparticles.updater.life.min.js +2 -0
  939. package/tsparticles.updater.opacity.js +4914 -0
  940. package/tsparticles.updater.opacity.min.js +2 -0
  941. package/tsparticles.updater.outModes.js +4998 -0
  942. package/tsparticles.updater.outModes.min.js +2 -0
  943. package/tsparticles.updater.roll.js +4862 -0
  944. package/tsparticles.updater.roll.min.js +2 -0
  945. package/tsparticles.updater.size.js +4870 -0
  946. package/tsparticles.updater.size.min.js +2 -0
  947. package/tsparticles.updater.strokeColor.js +4875 -0
  948. package/tsparticles.updater.strokeColor.min.js +2 -0
  949. package/tsparticles.updater.tilt.js +4881 -0
  950. package/tsparticles.updater.tilt.min.js +2 -0
  951. package/tsparticles.updater.wobble.js +4850 -0
  952. package/tsparticles.updater.wobble.min.js +2 -0
  953. package/Plugins/Absorbers/plugin.d.ts +0 -2
  954. package/Plugins/PolygonMask/Enums/InlineArrangement.d.ts +0 -8
  955. package/Plugins/PolygonMask/Enums/InlineArrangement.js +0 -11
  956. package/Plugins/PolygonMask/Enums/MoveType.d.ts +0 -4
  957. package/Plugins/PolygonMask/Enums/MoveType.js +0 -8
  958. package/Plugins/PolygonMask/Enums/Type.js +0 -10
  959. package/Plugins/PolygonMask/Options/Classes/DrawStroke.js +0 -28
  960. package/Plugins/PolygonMask/Options/Classes/Inline.d.ts +0 -9
  961. package/Plugins/PolygonMask/Options/Classes/Inline.js +0 -17
  962. package/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +0 -11
  963. package/Plugins/PolygonMask/Options/Classes/LocalSvg.js +0 -28
  964. package/Plugins/PolygonMask/Options/Classes/Move.d.ts +0 -10
  965. package/Plugins/PolygonMask/Options/Classes/Move.js +0 -21
  966. package/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +0 -8
  967. package/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +0 -6
  968. package/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +0 -4
  969. package/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +0 -5
  970. package/Plugins/PolygonMask/plugin.d.ts +0 -2
  971. package/browser/Plugins/Absorbers/plugin.d.ts +0 -2
  972. package/browser/Plugins/PolygonMask/Enums/InlineArrangement.d.ts +0 -8
  973. package/browser/Plugins/PolygonMask/Enums/InlineArrangement.js +0 -8
  974. package/browser/Plugins/PolygonMask/Enums/MoveType.d.ts +0 -4
  975. package/browser/Plugins/PolygonMask/Enums/MoveType.js +0 -5
  976. package/browser/Plugins/PolygonMask/Enums/Type.js +0 -7
  977. package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.js +0 -27
  978. package/browser/Plugins/PolygonMask/Options/Classes/Inline.d.ts +0 -12
  979. package/browser/Plugins/PolygonMask/Options/Classes/Inline.js +0 -16
  980. package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.js +0 -27
  981. package/browser/Plugins/PolygonMask/Options/Classes/Move.d.ts +0 -13
  982. package/browser/Plugins/PolygonMask/Options/Classes/Move.js +0 -20
  983. package/browser/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +0 -7
  984. package/browser/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +0 -8
  985. package/browser/Plugins/PolygonMask/plugin.d.ts +0 -2
  986. package/esm/Plugins/Absorbers/plugin.d.ts +0 -2
  987. package/esm/Plugins/PolygonMask/Enums/InlineArrangement.d.ts +0 -8
  988. package/esm/Plugins/PolygonMask/Enums/InlineArrangement.js +0 -8
  989. package/esm/Plugins/PolygonMask/Enums/MoveType.d.ts +0 -4
  990. package/esm/Plugins/PolygonMask/Enums/MoveType.js +0 -5
  991. package/esm/Plugins/PolygonMask/Enums/Type.js +0 -7
  992. package/esm/Plugins/PolygonMask/Options/Classes/DrawStroke.js +0 -24
  993. package/esm/Plugins/PolygonMask/Options/Classes/Inline.d.ts +0 -9
  994. package/esm/Plugins/PolygonMask/Options/Classes/Inline.js +0 -13
  995. package/esm/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +0 -11
  996. package/esm/Plugins/PolygonMask/Options/Classes/LocalSvg.js +0 -24
  997. package/esm/Plugins/PolygonMask/Options/Classes/Move.d.ts +0 -10
  998. package/esm/Plugins/PolygonMask/Options/Classes/Move.js +0 -17
  999. package/esm/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +0 -8
  1000. package/esm/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +0 -6
  1001. package/esm/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +0 -4
  1002. package/esm/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +0 -5
  1003. package/esm/Plugins/PolygonMask/plugin.d.ts +0 -2
  1004. package/tsparticles.pathseg.js +0 -1472
@@ -0,0 +1,2 @@
1
+ /*! tsParticles v1.39.0 by Matteo Bruni */
2
+ !function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var e=i();for(var s in e)("object"==typeof exports?exports:t)[s]=e[s]}}(window,(function(){return function(){"use strict";var t={d:function(i,e){for(var s in e)t.o(e,s)&&!t.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:e[s]})},o:function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},i={};t.r(i),t.d(i,{loadEmittersPlugin:function(){return V}});class e{}e.generatedAttribute="generated",e.randomColorValue="random",e.midColorValue="mid",e.touchEndEvent="touchend",e.mouseDownEvent="mousedown",e.mouseUpEvent="mouseup",e.mouseMoveEvent="mousemove",e.touchStartEvent="touchstart",e.touchMoveEvent="touchmove",e.mouseLeaveEvent="mouseleave",e.mouseOutEvent="mouseout",e.touchCancelEvent="touchcancel",e.resizeEvent="resize",e.visibilityChangeEvent="visibilitychange",e.noPolygonDataLoaded="No polygon data loaded.",e.noPolygonFound="No polygon found, you need to specify SVG url in config.";new Map,new Map,new Map,new Map,new Map,new Map,new Map;class s{constructor(){this.value="#fff"}static create(t,i){const e=new s;return e.load(t),void 0!==i&&("string"==typeof i||i instanceof Array?e.load({value:i}):e.load(i)),e}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class o{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=c(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class n{constructor(){this.h=new o,this.s=new o,this.l=new o}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class r extends s{constructor(){super(),this.animation=new n}static create(t,i){const e=new r;return e.load(t),void 0!==i&&("string"==typeof i||i instanceof Array?e.load({value:i}):e.load(i)),e}load(t){if(super.load(t),!t)return;const i=t.animation;void 0!==i&&(void 0!==i.enable?this.animation.h.load(i):this.animation.load(t.animation))}}new WeakSet;function a(t){const i=d(t);let e=h(t);return i===e&&(e=0),Math.random()*(i-e)+e}function l(t){return"number"==typeof t?t:a(t)}function h(t){return"number"==typeof t?t:t.min}function d(t){return"number"==typeof t?t:t.max}function c(t,i){if(t===i||void 0===i&&"number"==typeof t)return t;const e=h(t),s=d(t);return void 0!==i?{min:Math.min(e,i),max:Math.max(s,i)}:c(e,s)}function u(t,i){return t===i||i instanceof Array&&i.indexOf(t)>-1}function p(t,i,e=!0){return t[void 0!==i&&e?i%t.length:function(t){return Math.floor(Math.random()*t.length)}(t)]}function v(t,i){return{bottom:t.y+i,left:t.x-i,right:t.x+i,top:t.y-i}}function f(t,...i){for(const e of i){if(null==e)continue;if("object"!=typeof e){t=e;continue}const i=Array.isArray(e);!i||"object"==typeof t&&t&&Array.isArray(t)?i||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const i in e){if("__proto__"===i)continue;const s=e[i],o="object"==typeof s,n=t;n[i]=o&&Array.isArray(s)?s.map((t=>f(n[i],t))):f(n[i],s)}}return t}function m(t,i,e){let s=e;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(i-t)*s:s<.5?i:s<2/3?t+(i-t)*(2/3-s)*6:t}function y(t){if(t.startsWith("rgb")){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return i?{a:i.length>4?parseFloat(i[5]):1,b:parseInt(i[3],10),g:parseInt(i[2],10),r:parseInt(i[1],10)}:void 0}if(t.startsWith("hsl")){const i=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return i?function(t){const i=b(t);return{a:t.a,b:i.b,g:i.g,r:i.r}}({a:i.length>4?parseFloat(i[5]):1,h:parseInt(i[1],10),l:parseInt(i[3],10),s:parseInt(i[2],10)}):void 0}if(t.startsWith("hsv")){const i=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return i?function(t){const i=M(t);return{a:t.a,b:i.b,g:i.g,r:i.r}}({a:i.length>4?parseFloat(i[5]):1,h:parseInt(i[1],10),s:parseInt(i[2],10),v:parseInt(i[3],10)}):void 0}{const i=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,e=t.replace(i,((t,i,e,s,o)=>i+i+e+e+s+s+(void 0!==o?o+o:""))),s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return s?{a:void 0!==s[4]?parseInt(s[4],16)/255:1,b:parseInt(s[3],16),g:parseInt(s[2],16),r:parseInt(s[1],16)}:void 0}}function w(t,i,s=!0){var o,n,r;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let l;if("string"==typeof a.value)l=a.value===e.randomColorValue?C():function(t){return y(t)}(a.value);else if(a.value instanceof Array){l=w({value:p(a.value,i,s)})}else{const t=a.value,i=null!==(o=t.rgb)&&void 0!==o?o:a.value;if(void 0!==i.r)l=i;else{const i=null!==(n=t.hsl)&&void 0!==n?n:a.value;if(void 0!==i.h&&void 0!==i.l)l=b(i);else{const i=null!==(r=t.hsv)&&void 0!==r?r:a.value;void 0!==i.h&&void 0!==i.v&&(l=M(i))}}}return l}function g(t,i,e=!0){const s=w(t,i,e);return void 0!==s?function(t){const i=t.r/255,e=t.g/255,s=t.b/255,o=Math.max(i,e,s),n=Math.min(i,e,s),r={h:0,l:(o+n)/2,s:0};o!=n&&(r.s=r.l<.5?(o-n)/(o+n):(o-n)/(2-o-n),r.h=i===o?(e-s)/(o-n):r.h=e===o?2+(s-i)/(o-n):4+(i-e)/(o-n));r.l*=100,r.s*=100,r.h*=60,r.h<0&&(r.h+=360);return r}(s):void 0}function b(t){const i={b:0,g:0,r:0},e={h:t.h/360,l:t.l/100,s:t.s/100};if(0===e.s)i.b=e.l,i.g=e.l,i.r=e.l;else{const t=e.l<.5?e.l*(1+e.s):e.l+e.s-e.l*e.s,s=2*e.l-t;i.r=m(s,t,e.h+1/3),i.g=m(s,t,e.h),i.b=m(s,t,e.h-1/3)}return i.r=Math.floor(255*i.r),i.g=Math.floor(255*i.g),i.b=Math.floor(255*i.b),i}function M(t){const i={b:0,g:0,r:0},e=t.h/60,s=t.s/100,o=t.v/100,n=o*s,r=n*(1-Math.abs(e%2-1));let a;if(e>=0&&e<=1?a={r:n,g:r,b:0}:e>1&&e<=2?a={r:r,g:n,b:0}:e>2&&e<=3?a={r:0,g:n,b:r}:e>3&&e<=4?a={r:0,g:r,b:n}:e>4&&e<=5?a={r:r,g:0,b:n}:e>5&&e<=6&&(a={r:n,g:0,b:r}),a){const t=o-n;i.r=Math.floor(255*(a.r+t)),i.g=Math.floor(255*(a.g+t)),i.b=Math.floor(255*(a.b+t))}return i}function C(t){const i=null!=t?t:0;return{b:Math.floor(a(c(i,256))),g:Math.floor(a(c(i,256))),r:Math.floor(a(c(i,256)))}}class E{constructor(){this.mode="percent",this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}const P=new Map;class x{static addShape(t,i){x.getShape(t)||P.set(t,i)}static getShape(t){return P.get(t)}static getSupportedShapes(){return P.keys()}}var D,O,A=function(t,i,e,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?t!==i||!o:!i.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,e):o?o.value=e:i.set(t,e),e},S=function(t,i,e,s){if("a"===e&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!s:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?s:"a"===e?s.call(t):s?s.value:i.get(t)};class z{constructor(t,i,e,s){var o,n,r,a,l,h,d;this.emitters=t,this.container=i,D.set(this,void 0),O.set(this,void 0),this.currentDuration=0,this.currentEmitDelay=0,this.currentSpawnDelay=0,this.initialPosition=s,this.emitterOptions=f({},e),this.spawnDelay=1e3*(null!==(o=this.emitterOptions.life.delay)&&void 0!==o?o:0)/this.container.retina.reduceFactor,this.position=null!==(n=this.initialPosition)&&void 0!==n?n:this.calcPosition(),this.name=e.name,this.shape=x.getShape(e.shape),this.fill=e.fill,A(this,D,!this.emitterOptions.life.wait,"f"),A(this,O,!1,"f");let c=f({},this.emitterOptions.particles);null!=c||(c={}),null!==(r=c.move)&&void 0!==r||(c.move={}),null!==(a=(d=c.move).direction)&&void 0!==a||(d.direction=this.emitterOptions.direction),void 0!==this.emitterOptions.spawnColor&&(this.spawnColor=g(this.emitterOptions.spawnColor)),this.paused=!this.emitterOptions.autoPlay,this.particlesOptions=c,this.size=null!==(l=this.emitterOptions.size)&&void 0!==l?l:(()=>{const t=new E;return t.load({height:0,mode:"percent",width:0}),t})(),this.lifeCount=null!==(h=this.emitterOptions.life.count)&&void 0!==h?h:-1,this.immortal=this.lifeCount<=0,this.play()}externalPlay(){this.paused=!1,this.play()}externalPause(){this.paused=!0,this.pause()}play(){var t;if(!this.paused&&this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal||!this.emitterOptions.life.count)&&(S(this,D,"f")||this.currentSpawnDelay>=(null!==(t=this.spawnDelay)&&void 0!==t?t:0))){if(void 0===this.emitDelay){const t=l(this.emitterOptions.rate.delay);this.emitDelay=1e3*t/this.container.retina.reduceFactor}(this.lifeCount>0||this.immortal)&&this.prepareToDie()}}pause(){this.paused||delete this.emitDelay}resize(){const t=this.initialPosition;var i,e,s,o;this.position=t&&(i=t,e=this.container.canvas.size,function(t,i,e){let s=!0;return e&&"bottom"!==e||(s=t.top<i.height),!s||e&&"left"!==e||(s=t.right>0),!s||e&&"right"!==e||(s=t.left<i.width),!s||e&&"top"!==e||(s=t.bottom>0),s}(v(i,null!=s?s:0),e,o))?t:this.calcPosition()}update(t){var i,e,s;this.paused||(S(this,D,"f")&&(A(this,D,!1,"f"),this.currentSpawnDelay=null!==(i=this.spawnDelay)&&void 0!==i?i:0,this.currentEmitDelay=null!==(e=this.emitDelay)&&void 0!==e?e:0),S(this,O,"f")||(A(this,O,!0,"f"),this.emitParticles(this.emitterOptions.startCount)),void 0!==this.duration&&(this.currentDuration+=t.value,this.currentDuration>=this.duration&&(this.pause(),void 0!==this.spawnDelay&&delete this.spawnDelay,this.immortal||this.lifeCount--,this.lifeCount>0||this.immortal?(this.position=this.calcPosition(),this.spawnDelay=1e3*(null!==(s=this.emitterOptions.life.delay)&&void 0!==s?s:0)/this.container.retina.reduceFactor):this.destroy(),this.currentDuration-=this.duration,delete this.duration)),void 0!==this.spawnDelay&&(this.currentSpawnDelay+=t.value,this.currentSpawnDelay>=this.spawnDelay&&(this.play(),this.currentSpawnDelay-=this.currentSpawnDelay,delete this.spawnDelay)),void 0!==this.emitDelay&&(this.currentEmitDelay+=t.value,this.currentEmitDelay>=this.emitDelay&&(this.emit(),this.currentEmitDelay-=this.emitDelay)))}prepareToDie(){var t;if(this.paused)return;const i=null===(t=this.emitterOptions.life)||void 0===t?void 0:t.duration;this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal)&&void 0!==i&&i>0&&(this.duration=1e3*i)}destroy(){this.emitters.removeEmitter(this)}calcPosition(){var t,i;const e=this.container,s=this.emitterOptions.position;return{x:(null!==(t=null==s?void 0:s.x)&&void 0!==t?t:100*Math.random())/100*e.canvas.size.width,y:(null!==(i=null==s?void 0:s.y)&&void 0!==i?i:100*Math.random())/100*e.canvas.size.height}}emit(){if(this.paused)return;const t=l(this.emitterOptions.rate.quantity);this.emitParticles(t)}emitParticles(t){var i,e,s;const o=this.container,n=this.position,r={x:"percent"===this.size.mode?o.canvas.size.width*this.size.width/100:this.size.width,y:"percent"===this.size.mode?o.canvas.size.height*this.size.height/100:this.size.height};for(let a=0;a<t;a++){const t=f({},this.particlesOptions);if(this.spawnColor){const e=null===(i=this.emitterOptions.spawnColor)||void 0===i?void 0:i.animation;if(e){const t=e;if(t.enable)this.spawnColor.h=this.setColorAnimation(t,this.spawnColor.h,360);else{const t=e;this.spawnColor.h=this.setColorAnimation(t.h,this.spawnColor.h,360),this.spawnColor.s=this.setColorAnimation(t.s,this.spawnColor.s,100),this.spawnColor.l=this.setColorAnimation(t.l,this.spawnColor.l,100)}}t.color?t.color.value=this.spawnColor:t.color={value:this.spawnColor}}const a=null!==(s=null===(e=this.shape)||void 0===e?void 0:e.randomPosition(n,r,this.fill))&&void 0!==s?s:n;o.particles.addParticle(a,t)}}setColorAnimation(t,i,e){var s;const o=this.container;if(!t.enable)return i;const n=a(t.offset),r=1e3*l(this.emitterOptions.rate.delay)/o.retina.reduceFactor;return(i+(null!==(s=t.speed)&&void 0!==s?s:0)*o.fpsLimit/r+3.6*n)%e}}D=new WeakMap,O=new WeakMap;class I{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=c(t.quantity)),void 0!==t.delay&&(this.delay=c(t.delay)))}}class j{constructor(){this.wait=!1}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=t.delay),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.wait&&(this.wait=t.wait))}}class F{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new j,this.rate=new I,this.shape="square",this.startCount=0}load(t){void 0!==t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(void 0===this.size&&(this.size=new E),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,void 0!==t.particles&&(this.particles=f({},t.particles)),this.rate.load(t.rate),void 0!==t.shape&&(this.shape=t.shape),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new r),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}class q{constructor(t){this.container=t,this.array=[],this.emitters=[],this.interactivityEmitters=[];const i=t;i.getEmitter=t=>void 0===t||"number"==typeof t?this.array[t||0]:this.array.find((i=>i.name===t)),i.addEmitter=(t,i)=>this.addEmitter(t,i),i.playEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPlay()},i.pauseEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPause()}}init(t){var i,e;if(!t)return;t.emitters&&(t.emitters instanceof Array?this.emitters=t.emitters.map((t=>{const i=new F;return i.load(t),i})):(this.emitters instanceof Array&&(this.emitters=new F),this.emitters.load(t.emitters)));const s=null===(e=null===(i=t.interactivity)||void 0===i?void 0:i.modes)||void 0===e?void 0:e.emitters;if(s&&(s instanceof Array?this.interactivityEmitters=s.map((t=>{const i=new F;return i.load(t),i})):(this.interactivityEmitters instanceof Array&&(this.interactivityEmitters=new F),this.interactivityEmitters.load(s))),this.emitters instanceof Array)for(const t of this.emitters)this.addEmitter(t);else this.addEmitter(this.emitters)}play(){for(const t of this.array)t.play()}pause(){for(const t of this.array)t.pause()}stop(){this.array=[]}update(t){for(const i of this.array)i.update(t)}handleClickMode(t){const i=this.container,e=this.emitters,s=this.interactivityEmitters;if("emitter"===t){let t;s instanceof Array?s.length>0&&(t=p(s)):t=s;const o=null!=t?t:e instanceof Array?p(e):e,n=i.interactivity.mouse.clickPosition;this.addEmitter(f({},o),n)}}resize(){for(const t of this.array)t.resize()}addEmitter(t,i){const e=new z(this,this.container,t,i);return this.array.push(e),e}removeEmitter(t){const i=this.array.indexOf(t);i>=0&&this.array.splice(i,1)}}class T{randomPosition(t,i,e){const[s,o]=[i.x/2,i.y/2],n=((t,i)=>{const e=Math.random()/4,s=Math.atan(i/t*Math.tan(2*Math.PI*e)),o=Math.random();return o<.25?s:o<.5?Math.PI-s:o<.75?Math.PI+s:-s})(s,o),r=(d=n,(l=s)*(h=o)/Math.sqrt((h*Math.cos(d))**2+(l*Math.sin(d))**2)),a=e?r*Math.sqrt(Math.random()):r;var l,h,d;return{x:t.x+a*Math.cos(n),y:t.y+a*Math.sin(n)}}}function k(t,i){return t+i*(Math.random()-.5)}class W{randomPosition(t,i,e){if(e)return{x:k(t.x,i.x),y:k(t.y,i.y)};{const e=i.x/2,s=i.y/2,o=Math.floor(4*Math.random()),n=2*(Math.random()-.5);switch(o){case 0:return{x:t.x+n*e,y:t.y-s};case 1:return{x:t.x-e,y:t.y+n*s};case 2:return{x:t.x+n*e,y:t.y+s};case 3:default:return{x:t.x+e,y:t.y+n*s}}}}}class _{constructor(){this.id="emitters"}getPlugin(t){return new q(t)}needsPlugin(t){var i,e,s;if(void 0===t)return!1;const o=t.emitters;return o instanceof Array&&!!o.length||void 0!==o||!!(null===(s=null===(e=null===(i=t.interactivity)||void 0===i?void 0:i.events)||void 0===e?void 0:e.onClick)||void 0===s?void 0:s.mode)&&u("emitter",t.interactivity.events.onClick.mode)}loadOptions(t,i){var e,s;if(!this.needsPlugin(t)&&!this.needsPlugin(i))return;const o=t;if(null==i?void 0:i.emitters)if((null==i?void 0:i.emitters)instanceof Array)o.emitters=null==i?void 0:i.emitters.map((t=>{const i=new F;return i.load(t),i}));else{let t=o.emitters;void 0===(null==t?void 0:t.load)&&(o.emitters=t=new F),t.load(null==i?void 0:i.emitters)}const n=null===(s=null===(e=null==i?void 0:i.interactivity)||void 0===e?void 0:e.modes)||void 0===s?void 0:s.emitters;if(n)if(n instanceof Array)o.interactivity.modes.emitters=n.map((t=>{const i=new F;return i.load(t),i}));else{let t=o.interactivity.modes.emitters;void 0===(null==t?void 0:t.load)&&(o.interactivity.modes.emitters=t=new F),t.load(n)}}}async function V(t){const i=new _;await t.addPlugin(i),t.addEmitterShape||(t.addEmitterShape=(t,i)=>{x.addShape(t,i)}),t.addEmitterShape("circle",new T),t.addEmitterShape("square",new W)}return i}()}));