tsparticles 1.35.4 → 1.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (670) hide show
  1. package/Core/Canvas.js +4 -6
  2. package/Core/Container.d.ts +5 -2
  3. package/Core/Container.js +23 -12
  4. package/Core/InteractionManager.d.ts +1 -0
  5. package/Core/InteractionManager.js +4 -1
  6. package/Core/Particles.d.ts +1 -1
  7. package/Core/Particles.js +3 -1
  8. package/Enums/Modes/ResponsiveMode.d.ts +4 -0
  9. package/Enums/Modes/ResponsiveMode.js +8 -0
  10. package/Enums/Modes/index.d.ts +1 -0
  11. package/Enums/Modes/index.js +1 -0
  12. package/Interactions/External/Attract/index.d.ts +1 -1
  13. package/Interactions/External/Attract/index.js +2 -2
  14. package/Interactions/External/Bounce/index.d.ts +1 -1
  15. package/Interactions/External/Bounce/index.js +2 -2
  16. package/Interactions/External/Bubble/index.d.ts +1 -1
  17. package/Interactions/External/Bubble/index.js +2 -2
  18. package/Interactions/External/Connect/index.d.ts +1 -1
  19. package/Interactions/External/Connect/index.js +2 -2
  20. package/Interactions/External/Grab/index.d.ts +1 -1
  21. package/Interactions/External/Grab/index.js +2 -2
  22. package/Interactions/External/Repulse/index.d.ts +1 -1
  23. package/Interactions/External/Repulse/index.js +2 -2
  24. package/Interactions/External/Trail/index.d.ts +1 -1
  25. package/Interactions/External/Trail/index.js +2 -2
  26. package/Interactions/Particles/Attract/index.d.ts +1 -1
  27. package/Interactions/Particles/Attract/index.js +2 -2
  28. package/Interactions/Particles/Collisions/index.d.ts +1 -1
  29. package/Interactions/Particles/Collisions/index.js +2 -2
  30. package/Interactions/Particles/Links/index.d.ts +2 -2
  31. package/Interactions/Particles/Links/index.js +5 -5
  32. package/Interactions/Particles/Links/plugin.d.ts +1 -1
  33. package/Interactions/Particles/Links/plugin.js +2 -2
  34. package/Options/Classes/FullScreen/FullScreen.js +2 -2
  35. package/Options/Classes/Interactivity/Interactivity.js +1 -1
  36. package/Options/Classes/Options.d.ts +1 -1
  37. package/Options/Classes/Options.js +5 -2
  38. package/Options/Classes/Responsive.d.ts +2 -0
  39. package/Options/Classes/Responsive.js +10 -0
  40. package/Options/Interfaces/IResponsive.d.ts +2 -0
  41. package/Plugins/Absorbers/plugin.d.ts +1 -1
  42. package/Plugins/Absorbers/plugin.js +2 -2
  43. package/Plugins/Emitters/plugin.d.ts +1 -1
  44. package/Plugins/Emitters/plugin.js +2 -2
  45. package/Plugins/PolygonMask/plugin.js +1 -1
  46. package/Shapes/Circle/index.d.ts +1 -1
  47. package/Shapes/Circle/index.js +2 -2
  48. package/Shapes/Image/index.d.ts +1 -1
  49. package/Shapes/Image/index.js +3 -3
  50. package/Shapes/Line/index.d.ts +1 -1
  51. package/Shapes/Line/index.js +2 -2
  52. package/Shapes/Polygon/index.d.ts +3 -3
  53. package/Shapes/Polygon/index.js +7 -7
  54. package/Shapes/Square/index.d.ts +1 -1
  55. package/Shapes/Square/index.js +3 -3
  56. package/Shapes/Star/index.d.ts +1 -1
  57. package/Shapes/Star/index.js +2 -2
  58. package/Shapes/Text/index.d.ts +1 -1
  59. package/Shapes/Text/index.js +2 -2
  60. package/Updaters/Angle/index.d.ts +1 -1
  61. package/Updaters/Angle/index.js +2 -2
  62. package/Updaters/Color/index.d.ts +1 -1
  63. package/Updaters/Color/index.js +2 -2
  64. package/Updaters/Life/index.d.ts +1 -1
  65. package/Updaters/Life/index.js +2 -2
  66. package/Updaters/Opacity/index.d.ts +1 -1
  67. package/Updaters/Opacity/index.js +2 -2
  68. package/Updaters/OutModes/index.d.ts +1 -1
  69. package/Updaters/OutModes/index.js +2 -2
  70. package/Updaters/Roll/index.d.ts +1 -1
  71. package/Updaters/Roll/index.js +2 -2
  72. package/Updaters/Size/index.d.ts +1 -1
  73. package/Updaters/Size/index.js +2 -2
  74. package/Updaters/StrokeColor/index.d.ts +1 -1
  75. package/Updaters/StrokeColor/index.js +2 -2
  76. package/Updaters/Tilt/index.d.ts +1 -1
  77. package/Updaters/Tilt/index.js +2 -2
  78. package/Updaters/Wobble/index.d.ts +1 -1
  79. package/Updaters/Wobble/index.js +2 -2
  80. package/Utils/Plugins.d.ts +2 -2
  81. package/Utils/Plugins.js +4 -4
  82. package/Utils/Utils.d.ts +1 -2
  83. package/browser/Core/Canvas.d.ts +29 -0
  84. package/browser/Core/Canvas.js +26 -6
  85. package/browser/Core/Container.d.ts +99 -2
  86. package/browser/Core/Container.js +106 -12
  87. package/browser/Core/FrameManager.d.ts +8 -0
  88. package/browser/Core/FrameManager.js +9 -0
  89. package/browser/Core/InteractionManager.d.ts +4 -0
  90. package/browser/Core/InteractionManager.js +8 -1
  91. package/browser/Core/Interfaces/Colors.d.ts +23 -0
  92. package/browser/Core/Interfaces/IAttract.d.ts +3 -0
  93. package/browser/Core/Interfaces/IBounds.d.ts +3 -0
  94. package/browser/Core/Interfaces/IBubble.d.ts +3 -0
  95. package/browser/Core/Interfaces/IBubbleParticleData.d.ts +3 -0
  96. package/browser/Core/Interfaces/IContainerInteractivity.d.ts +3 -0
  97. package/browser/Core/Interfaces/IContainerPlugin.d.ts +3 -0
  98. package/browser/Core/Interfaces/ICoordinates.d.ts +3 -0
  99. package/browser/Core/Interfaces/IDelta.d.ts +3 -0
  100. package/browser/Core/Interfaces/IDimension.d.ts +3 -0
  101. package/browser/Core/Interfaces/IExternalInteractor.d.ts +3 -0
  102. package/browser/Core/Interfaces/IInteractor.d.ts +3 -0
  103. package/browser/Core/Interfaces/IMouseData.d.ts +3 -0
  104. package/browser/Core/Interfaces/IMovePathGenerator.d.ts +3 -0
  105. package/browser/Core/Interfaces/IParticle.d.ts +3 -0
  106. package/browser/Core/Interfaces/IParticleValueAnimation.d.ts +3 -0
  107. package/browser/Core/Interfaces/IParticlesInteractor.d.ts +3 -0
  108. package/browser/Core/Interfaces/IPlugin.d.ts +8 -0
  109. package/browser/Core/Interfaces/IRepulse.d.ts +3 -0
  110. package/browser/Core/Interfaces/IShapeDrawer.d.ts +3 -0
  111. package/browser/Core/Interfaces/IShapeValues.d.ts +3 -0
  112. package/browser/Core/Loader.d.ts +45 -0
  113. package/browser/Core/Loader.js +51 -0
  114. package/browser/Core/Particle/Mover.d.ts +3 -0
  115. package/browser/Core/Particle/Mover.js +7 -2
  116. package/browser/Core/Particle.d.ts +7 -0
  117. package/browser/Core/Particle.js +13 -0
  118. package/browser/Core/Particles.d.ts +14 -1
  119. package/browser/Core/Particles.js +28 -1
  120. package/browser/Core/Retina.d.ts +6 -0
  121. package/browser/Core/Retina.js +9 -0
  122. package/browser/Enums/Directions/MoveDirection.d.ts +3 -0
  123. package/browser/Enums/Directions/MoveDirection.js +3 -0
  124. package/browser/Enums/Directions/RotateDirection.d.ts +3 -0
  125. package/browser/Enums/Directions/RotateDirection.js +3 -0
  126. package/browser/Enums/Directions/TiltDirection.d.ts +3 -0
  127. package/browser/Enums/Directions/TiltDirection.js +3 -0
  128. package/browser/Enums/InteractivityDetect.d.ts +3 -0
  129. package/browser/Enums/InteractivityDetect.js +3 -0
  130. package/browser/Enums/Modes/ClickMode.d.ts +3 -0
  131. package/browser/Enums/Modes/ClickMode.js +3 -0
  132. package/browser/Enums/Modes/CollisionMode.d.ts +3 -0
  133. package/browser/Enums/Modes/CollisionMode.js +3 -0
  134. package/browser/Enums/Modes/DivMode.d.ts +3 -0
  135. package/browser/Enums/Modes/DivMode.js +3 -0
  136. package/browser/Enums/Modes/HoverMode.d.ts +3 -0
  137. package/browser/Enums/Modes/HoverMode.js +3 -0
  138. package/browser/Enums/Modes/OutMode.d.ts +3 -0
  139. package/browser/Enums/Modes/OutMode.js +3 -0
  140. package/browser/Enums/Modes/ResponsiveMode.d.ts +4 -0
  141. package/browser/Enums/Modes/ResponsiveMode.js +5 -0
  142. package/browser/Enums/Modes/SizeMode.d.ts +3 -0
  143. package/browser/Enums/Modes/SizeMode.js +3 -0
  144. package/browser/Enums/Modes/index.d.ts +1 -0
  145. package/browser/Enums/Modes/index.js +1 -0
  146. package/browser/Enums/Types/DestroyType.d.ts +3 -0
  147. package/browser/Enums/Types/DestroyType.js +3 -0
  148. package/browser/Enums/Types/DivType.d.ts +3 -0
  149. package/browser/Enums/Types/DivType.js +3 -0
  150. package/browser/Enums/Types/OrbitType.d.ts +3 -0
  151. package/browser/Enums/Types/OrbitType.js +3 -0
  152. package/browser/Enums/Types/ShapeType.d.ts +3 -0
  153. package/browser/Enums/Types/ShapeType.js +3 -0
  154. package/browser/Enums/Types/StartValueType.d.ts +3 -0
  155. package/browser/Enums/Types/StartValueType.js +3 -0
  156. package/browser/Interactions/External/Attract/Attractor.d.ts +4 -0
  157. package/browser/Interactions/External/Attract/Attractor.js +5 -0
  158. package/browser/Interactions/External/Attract/index.d.ts +1 -1
  159. package/browser/Interactions/External/Attract/index.js +2 -2
  160. package/browser/Interactions/External/Bounce/Bouncer.js +1 -0
  161. package/browser/Interactions/External/Bounce/index.d.ts +1 -1
  162. package/browser/Interactions/External/Bounce/index.js +2 -2
  163. package/browser/Interactions/External/Bubble/Bubbler.d.ts +4 -0
  164. package/browser/Interactions/External/Bubble/Bubbler.js +14 -0
  165. package/browser/Interactions/External/Bubble/IBubblerProcessParam.d.ts +6 -0
  166. package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +3 -0
  167. package/browser/Interactions/External/Bubble/ProcessBubbleType.js +3 -0
  168. package/browser/Interactions/External/Bubble/index.d.ts +1 -1
  169. package/browser/Interactions/External/Bubble/index.js +2 -2
  170. package/browser/Interactions/External/Connect/Connector.d.ts +7 -0
  171. package/browser/Interactions/External/Connect/Connector.js +8 -0
  172. package/browser/Interactions/External/Connect/index.d.ts +1 -1
  173. package/browser/Interactions/External/Connect/index.js +2 -2
  174. package/browser/Interactions/External/Grab/Grabber.d.ts +4 -0
  175. package/browser/Interactions/External/Grab/Grabber.js +9 -0
  176. package/browser/Interactions/External/Grab/index.d.ts +1 -1
  177. package/browser/Interactions/External/Grab/index.js +2 -2
  178. package/browser/Interactions/External/Repulse/Repulser.d.ts +4 -0
  179. package/browser/Interactions/External/Repulse/Repulser.js +162 -0
  180. package/browser/Interactions/External/Repulse/index.d.ts +1 -1
  181. package/browser/Interactions/External/Repulse/index.js +2 -2
  182. package/browser/Interactions/External/Trail/TrailMaker.d.ts +3 -0
  183. package/browser/Interactions/External/Trail/TrailMaker.js +4 -0
  184. package/browser/Interactions/External/Trail/index.d.ts +1 -1
  185. package/browser/Interactions/External/Trail/index.js +2 -2
  186. package/browser/Interactions/Particles/Attract/Attractor.d.ts +3 -0
  187. package/browser/Interactions/Particles/Attract/Attractor.js +4 -0
  188. package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
  189. package/browser/Interactions/Particles/Attract/index.js +2 -2
  190. package/browser/Interactions/Particles/Collisions/Collider.d.ts +3 -0
  191. package/browser/Interactions/Particles/Collisions/Collider.js +4 -0
  192. package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
  193. package/browser/Interactions/Particles/Collisions/index.js +2 -2
  194. package/browser/Interactions/Particles/Links/ILink.d.ts +6 -0
  195. package/browser/Interactions/Particles/Links/LinkInstance.js +8 -0
  196. package/browser/Interactions/Particles/Links/Linker.js +2 -0
  197. package/browser/Interactions/Particles/Links/index.d.ts +2 -2
  198. package/browser/Interactions/Particles/Links/index.js +5 -5
  199. package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
  200. package/browser/Interactions/Particles/Links/plugin.js +3 -2
  201. package/browser/Options/Classes/AnimatableColor.d.ts +4 -0
  202. package/browser/Options/Classes/AnimatableColor.js +4 -0
  203. package/browser/Options/Classes/Background/Background.d.ts +4 -0
  204. package/browser/Options/Classes/Background/Background.js +4 -0
  205. package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +14 -0
  206. package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +4 -0
  207. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +3 -0
  208. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +3 -0
  209. package/browser/Options/Classes/ColorAnimation.d.ts +3 -0
  210. package/browser/Options/Classes/ColorAnimation.js +3 -0
  211. package/browser/Options/Classes/FullScreen/FullScreen.d.ts +16 -0
  212. package/browser/Options/Classes/FullScreen/FullScreen.js +8 -2
  213. package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
  214. package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +4 -0
  215. package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +37 -0
  216. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +33 -0
  217. package/browser/Options/Classes/Interactivity/Events/Events.d.ts +31 -0
  218. package/browser/Options/Classes/Interactivity/Events/Events.js +31 -0
  219. package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +4 -0
  220. package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +4 -0
  221. package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +3 -0
  222. package/browser/Options/Classes/Interactivity/Events/Parallax.js +3 -0
  223. package/browser/Options/Classes/Interactivity/Interactivity.d.ts +13 -0
  224. package/browser/Options/Classes/Interactivity/Interactivity.js +14 -1
  225. package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +3 -0
  226. package/browser/Options/Classes/Interactivity/Modes/Attract.js +3 -0
  227. package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +3 -0
  228. package/browser/Options/Classes/Interactivity/Modes/Bubble.js +3 -0
  229. package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +3 -0
  230. package/browser/Options/Classes/Interactivity/Modes/BubbleBase.js +3 -0
  231. package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +9 -0
  232. package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.js +9 -0
  233. package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +21 -0
  234. package/browser/Options/Classes/Interactivity/Modes/Connect.js +21 -0
  235. package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +3 -0
  236. package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.js +3 -0
  237. package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +21 -0
  238. package/browser/Options/Classes/Interactivity/Modes/Grab.js +21 -0
  239. package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +3 -0
  240. package/browser/Options/Classes/Interactivity/Modes/GrabLinks.js +3 -0
  241. package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +4 -0
  242. package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -0
  243. package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
  244. package/browser/Options/Classes/Interactivity/Modes/Push.js +12 -0
  245. package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +12 -0
  246. package/browser/Options/Classes/Interactivity/Modes/Remove.js +12 -0
  247. package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -0
  248. package/browser/Options/Classes/Interactivity/Modes/Repulse.js +3 -0
  249. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +3 -0
  250. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.js +3 -0
  251. package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +9 -0
  252. package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.js +11 -0
  253. package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +9 -0
  254. package/browser/Options/Classes/Interactivity/Modes/Slow.js +10 -0
  255. package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +3 -0
  256. package/browser/Options/Classes/Interactivity/Modes/Trail.js +3 -0
  257. package/browser/Options/Classes/Motion/Motion.d.ts +11 -0
  258. package/browser/Options/Classes/Motion/Motion.js +4 -0
  259. package/browser/Options/Classes/Motion/MotionReduce.d.ts +9 -0
  260. package/browser/Options/Classes/Motion/MotionReduce.js +3 -0
  261. package/browser/Options/Classes/Options.d.ts +31 -1
  262. package/browser/Options/Classes/Options.js +36 -3
  263. package/browser/Options/Classes/OptionsColor.d.ts +4 -0
  264. package/browser/Options/Classes/OptionsColor.js +4 -0
  265. package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -0
  266. package/browser/Options/Classes/Particles/Collisions/Collisions.js +4 -0
  267. package/browser/Options/Classes/Particles/Links/Links.d.ts +4 -0
  268. package/browser/Options/Classes/Particles/Links/Links.js +4 -0
  269. package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +3 -0
  270. package/browser/Options/Classes/Particles/Links/LinksShadow.js +3 -0
  271. package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +3 -0
  272. package/browser/Options/Classes/Particles/Links/LinksTriangle.js +3 -0
  273. package/browser/Options/Classes/Particles/Move/Attract.d.ts +21 -0
  274. package/browser/Options/Classes/Particles/Move/Attract.js +21 -0
  275. package/browser/Options/Classes/Particles/Move/Move.d.ts +42 -0
  276. package/browser/Options/Classes/Particles/Move/Move.js +43 -0
  277. package/browser/Options/Classes/Particles/Move/MoveAngle.d.ts +3 -0
  278. package/browser/Options/Classes/Particles/Move/MoveAngle.js +4 -1
  279. package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -0
  280. package/browser/Options/Classes/Particles/Move/Path/Path.js +3 -0
  281. package/browser/Options/Classes/Particles/Move/Trail.d.ts +3 -0
  282. package/browser/Options/Classes/Particles/Move/Trail.js +3 -0
  283. package/browser/Options/Classes/Particles/Number/Density.d.ts +12 -0
  284. package/browser/Options/Classes/Particles/Number/Density.js +12 -0
  285. package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +10 -0
  286. package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +10 -0
  287. package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +13 -0
  288. package/browser/Options/Classes/Particles/Opacity/Opacity.js +13 -0
  289. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +15 -0
  290. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +12 -0
  291. package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +4 -0
  292. package/browser/Options/Classes/Particles/Orbit/Orbit.js +4 -0
  293. package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +3 -0
  294. package/browser/Options/Classes/Particles/Orbit/OrbitRotation.js +3 -0
  295. package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +22 -0
  296. package/browser/Options/Classes/Particles/ParticlesOptions.js +22 -0
  297. package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +3 -0
  298. package/browser/Options/Classes/Particles/Repulse/Repulse.js +3 -0
  299. package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +4 -0
  300. package/browser/Options/Classes/Particles/Rotate/Rotate.js +4 -0
  301. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +3 -0
  302. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.js +3 -0
  303. package/browser/Options/Classes/Particles/Shadow.d.ts +4 -0
  304. package/browser/Options/Classes/Particles/Shadow.js +4 -0
  305. package/browser/Options/Classes/Particles/Shape/Shape.d.ts +42 -0
  306. package/browser/Options/Classes/Particles/Shape/Shape.js +43 -0
  307. package/browser/Options/Classes/Particles/Size/Size.d.ts +13 -0
  308. package/browser/Options/Classes/Particles/Size/Size.js +13 -0
  309. package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +15 -0
  310. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +12 -0
  311. package/browser/Options/Classes/Particles/Stroke.d.ts +4 -0
  312. package/browser/Options/Classes/Particles/Stroke.js +4 -0
  313. package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +4 -0
  314. package/browser/Options/Classes/Particles/Tilt/Tilt.js +4 -0
  315. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +3 -0
  316. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.js +3 -0
  317. package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +4 -0
  318. package/browser/Options/Classes/Particles/Twinkle/Twinkle.js +4 -0
  319. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +3 -0
  320. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.js +3 -0
  321. package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +3 -0
  322. package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
  323. package/browser/Options/Classes/Responsive.d.ts +2 -0
  324. package/browser/Options/Classes/Responsive.js +11 -0
  325. package/browser/Options/Classes/ValueWithRandom.d.ts +3 -0
  326. package/browser/Options/Interfaces/Background/IBackground.d.ts +35 -0
  327. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +21 -0
  328. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +10 -0
  329. package/browser/Options/Interfaces/FullScreen/IFullScreen.d.ts +16 -0
  330. package/browser/Options/Interfaces/IAnimatableColor.d.ts +8 -0
  331. package/browser/Options/Interfaces/IAnimation.d.ts +10 -0
  332. package/browser/Options/Interfaces/IColorAnimation.d.ts +7 -0
  333. package/browser/Options/Interfaces/IColorAnimation.js +4 -0
  334. package/browser/Options/Interfaces/IManualParticle.d.ts +11 -0
  335. package/browser/Options/Interfaces/IOptionLoader.d.ts +9 -0
  336. package/browser/Options/Interfaces/IOptions.d.ts +71 -0
  337. package/browser/Options/Interfaces/IOptionsColor.d.ts +5 -0
  338. package/browser/Options/Interfaces/IResponsive.d.ts +2 -0
  339. package/browser/Options/Interfaces/IValueWithRandom.d.ts +3 -0
  340. package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +12 -0
  341. package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +13 -0
  342. package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
  343. package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +4 -0
  344. package/browser/Options/Interfaces/Interactivity/Events/IParallax.d.ts +3 -0
  345. package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +20 -0
  346. package/browser/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +3 -0
  347. package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +3 -0
  348. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +3 -0
  349. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +3 -0
  350. package/browser/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +9 -0
  351. package/browser/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
  352. package/browser/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +9 -0
  353. package/browser/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +3 -0
  354. package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +6 -0
  355. package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +4 -0
  356. package/browser/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
  357. package/browser/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +6 -0
  358. package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +3 -0
  359. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +3 -0
  360. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +3 -0
  361. package/browser/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +6 -0
  362. package/browser/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +3 -0
  363. package/browser/Options/Interfaces/Motion/IMotion.d.ts +11 -0
  364. package/browser/Options/Interfaces/Motion/IMotionReduce.d.ts +9 -0
  365. package/browser/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +4 -0
  366. package/browser/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +4 -0
  367. package/browser/Options/Interfaces/Particles/IParticles.d.ts +10 -0
  368. package/browser/Options/Interfaces/Particles/IShadow.d.ts +4 -0
  369. package/browser/Options/Interfaces/Particles/IStroke.d.ts +14 -0
  370. package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +43 -0
  371. package/browser/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +3 -0
  372. package/browser/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +3 -0
  373. package/browser/Options/Interfaces/Particles/Move/IAttract.d.ts +9 -0
  374. package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +19 -0
  375. package/browser/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +3 -0
  376. package/browser/Options/Interfaces/Particles/Move/ITrail.d.ts +3 -0
  377. package/browser/Options/Interfaces/Particles/Move/Path/iPath.d.ts +3 -0
  378. package/browser/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
  379. package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
  380. package/browser/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +7 -0
  381. package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +9 -0
  382. package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +7 -0
  383. package/browser/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +4 -0
  384. package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +4 -0
  385. package/browser/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +3 -0
  386. package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +3 -0
  387. package/browser/Options/Interfaces/Particles/Shape/IImageShape.d.ts +6 -0
  388. package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +6 -0
  389. package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +22 -0
  390. package/browser/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
  391. package/browser/Options/Interfaces/Particles/Size/ISize.d.ts +7 -0
  392. package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +9 -0
  393. package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +4 -0
  394. package/browser/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +3 -0
  395. package/browser/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +4 -0
  396. package/browser/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +3 -0
  397. package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +4 -0
  398. package/browser/Options/Interfaces/Theme/ITheme.d.ts +14 -0
  399. package/browser/Options/Interfaces/Theme/IThemeDefault.d.ts +16 -0
  400. package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +3 -0
  401. package/browser/Plugins/Absorbers/AbsorberInstance.js +3 -0
  402. package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -0
  403. package/browser/Plugins/Absorbers/Absorbers.js +3 -0
  404. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
  405. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.js +3 -0
  406. package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -0
  407. package/browser/Plugins/Absorbers/Options/Classes/Absorber.js +4 -0
  408. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +29 -0
  409. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +3 -0
  410. package/browser/Plugins/Absorbers/plugin.d.ts +1 -1
  411. package/browser/Plugins/Absorbers/plugin.js +5 -2
  412. package/browser/Plugins/Emitters/EmitterInstance.d.ts +3 -0
  413. package/browser/Plugins/Emitters/EmitterInstance.js +3 -0
  414. package/browser/Plugins/Emitters/Emitters.d.ts +3 -0
  415. package/browser/Plugins/Emitters/Emitters.js +3 -0
  416. package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
  417. package/browser/Plugins/Emitters/Enums/EmitterClickMode.js +3 -0
  418. package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +4 -0
  419. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +4 -0
  420. package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +3 -0
  421. package/browser/Plugins/Emitters/Options/Classes/EmitterLife.js +3 -0
  422. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +3 -0
  423. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.js +3 -0
  424. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +3 -0
  425. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.js +3 -0
  426. package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +44 -0
  427. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +19 -0
  428. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +3 -0
  429. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +11 -0
  430. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +3 -0
  431. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -0
  432. package/browser/Plugins/Emitters/plugin.d.ts +1 -1
  433. package/browser/Plugins/Emitters/plugin.js +5 -2
  434. package/browser/Plugins/PolygonMask/Options/Classes/Draw.d.ts +15 -0
  435. package/browser/Plugins/PolygonMask/Options/Classes/Draw.js +15 -0
  436. package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.d.ts +3 -0
  437. package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.js +3 -0
  438. package/browser/Plugins/PolygonMask/Options/Classes/Inline.d.ts +3 -0
  439. package/browser/Plugins/PolygonMask/Options/Classes/Inline.js +3 -0
  440. package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +3 -0
  441. package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.js +3 -0
  442. package/browser/Plugins/PolygonMask/Options/Classes/Move.d.ts +3 -0
  443. package/browser/Plugins/PolygonMask/Options/Classes/Move.js +3 -0
  444. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +10 -0
  445. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +10 -0
  446. package/browser/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +9 -0
  447. package/browser/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +3 -0
  448. package/browser/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +3 -0
  449. package/browser/Plugins/PolygonMask/Options/Interfaces/ILocalSvg.d.ts +3 -0
  450. package/browser/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +3 -0
  451. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +7 -0
  452. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +3 -0
  453. package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +12 -0
  454. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +22 -0
  455. package/browser/Plugins/PolygonMask/pathseg.js +55 -1
  456. package/browser/Plugins/PolygonMask/plugin.js +10 -2
  457. package/browser/Plugins/PolygonMask/utils.js +14 -2
  458. package/browser/Shapes/Circle/CircleDrawer.d.ts +3 -0
  459. package/browser/Shapes/Circle/CircleDrawer.js +3 -0
  460. package/browser/Shapes/Circle/index.d.ts +1 -1
  461. package/browser/Shapes/Circle/index.js +2 -2
  462. package/browser/Shapes/Image/ImageDrawer.d.ts +3 -0
  463. package/browser/Shapes/Image/ImageDrawer.js +6 -0
  464. package/browser/Shapes/Image/Utils.d.ts +3 -0
  465. package/browser/Shapes/Image/Utils.js +1 -0
  466. package/browser/Shapes/Image/index.d.ts +1 -1
  467. package/browser/Shapes/Image/index.js +3 -3
  468. package/browser/Shapes/Line/LineDrawer.d.ts +3 -0
  469. package/browser/Shapes/Line/LineDrawer.js +3 -0
  470. package/browser/Shapes/Line/index.d.ts +1 -1
  471. package/browser/Shapes/Line/index.js +2 -2
  472. package/browser/Shapes/Polygon/PolygonDrawer.d.ts +3 -0
  473. package/browser/Shapes/Polygon/PolygonDrawer.js +3 -0
  474. package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +3 -0
  475. package/browser/Shapes/Polygon/PolygonDrawerBase.js +5 -1
  476. package/browser/Shapes/Polygon/TriangleDrawer.d.ts +3 -0
  477. package/browser/Shapes/Polygon/TriangleDrawer.js +3 -0
  478. package/browser/Shapes/Polygon/index.d.ts +3 -3
  479. package/browser/Shapes/Polygon/index.js +7 -7
  480. package/browser/Shapes/Square/SquareDrawer.d.ts +3 -0
  481. package/browser/Shapes/Square/SquareDrawer.js +3 -0
  482. package/browser/Shapes/Square/index.d.ts +1 -1
  483. package/browser/Shapes/Square/index.js +3 -3
  484. package/browser/Shapes/Star/StarDrawer.d.ts +3 -0
  485. package/browser/Shapes/Star/StarDrawer.js +3 -0
  486. package/browser/Shapes/Star/index.d.ts +1 -1
  487. package/browser/Shapes/Star/index.js +2 -2
  488. package/browser/Shapes/Text/TextDrawer.d.ts +3 -0
  489. package/browser/Shapes/Text/TextDrawer.js +3 -0
  490. package/browser/Shapes/Text/index.d.ts +1 -1
  491. package/browser/Shapes/Text/index.js +2 -2
  492. package/browser/Types/ParticlesGroups.d.ts +4 -0
  493. package/browser/Types/RecursivePartial.d.ts +3 -0
  494. package/browser/Types/ShapeData.d.ts +3 -0
  495. package/browser/Types/ShapeDrawerFunctions.d.ts +21 -0
  496. package/browser/Types/SingleOrMultiple.d.ts +3 -0
  497. package/browser/Updaters/Angle/index.d.ts +1 -1
  498. package/browser/Updaters/Angle/index.js +2 -2
  499. package/browser/Updaters/Color/ColorUpdater.js +1 -0
  500. package/browser/Updaters/Color/index.d.ts +1 -1
  501. package/browser/Updaters/Color/index.js +2 -2
  502. package/browser/Updaters/Life/LifeUpdater.js +1 -0
  503. package/browser/Updaters/Life/index.d.ts +1 -1
  504. package/browser/Updaters/Life/index.js +2 -2
  505. package/browser/Updaters/Opacity/OpacityUpdater.js +1 -0
  506. package/browser/Updaters/Opacity/index.d.ts +1 -1
  507. package/browser/Updaters/Opacity/index.js +2 -2
  508. package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -0
  509. package/browser/Updaters/OutModes/index.d.ts +1 -1
  510. package/browser/Updaters/OutModes/index.js +2 -2
  511. package/browser/Updaters/Roll/index.d.ts +1 -1
  512. package/browser/Updaters/Roll/index.js +2 -2
  513. package/browser/Updaters/Size/SizeUpdater.js +1 -0
  514. package/browser/Updaters/Size/index.d.ts +1 -1
  515. package/browser/Updaters/Size/index.js +2 -2
  516. package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +1 -0
  517. package/browser/Updaters/StrokeColor/index.d.ts +1 -1
  518. package/browser/Updaters/StrokeColor/index.js +2 -2
  519. package/browser/Updaters/Tilt/index.d.ts +1 -1
  520. package/browser/Updaters/Tilt/index.js +2 -2
  521. package/browser/Updaters/Wobble/index.d.ts +1 -1
  522. package/browser/Updaters/Wobble/index.js +2 -2
  523. package/browser/Utils/CanvasUtils.js +4 -0
  524. package/browser/Utils/Circle.d.ts +3 -0
  525. package/browser/Utils/Circle.js +3 -0
  526. package/browser/Utils/CircleWarp.d.ts +3 -0
  527. package/browser/Utils/CircleWarp.js +3 -0
  528. package/browser/Utils/ColorUtils.d.ts +20 -0
  529. package/browser/Utils/ColorUtils.js +33 -1
  530. package/browser/Utils/Constants.d.ts +7 -0
  531. package/browser/Utils/Constants.js +7 -0
  532. package/browser/Utils/EventListeners.d.ts +32 -0
  533. package/browser/Utils/EventListeners.js +40 -0
  534. package/browser/Utils/NumberUtils.d.ts +27 -0
  535. package/browser/Utils/NumberUtils.js +27 -0
  536. package/browser/Utils/Plugins.d.ts +5 -2
  537. package/browser/Utils/Plugins.js +7 -4
  538. package/browser/Utils/Point.d.ts +3 -0
  539. package/browser/Utils/Point.js +3 -0
  540. package/browser/Utils/QuadTree.d.ts +3 -0
  541. package/browser/Utils/QuadTree.js +3 -0
  542. package/browser/Utils/Range.d.ts +3 -0
  543. package/browser/Utils/Range.js +3 -0
  544. package/browser/Utils/Rectangle.d.ts +3 -0
  545. package/browser/Utils/Rectangle.js +3 -0
  546. package/browser/Utils/Utils.d.ts +6 -2
  547. package/browser/Utils/Utils.js +14 -0
  548. package/browser/full.d.ts +1 -1
  549. package/browser/full.js +14 -6
  550. package/browser/index.d.ts +1 -2
  551. package/browser/index.js +2 -2
  552. package/browser/index.slim.d.ts +1 -2
  553. package/browser/index.slim.js +3 -2
  554. package/browser/main.d.ts +99 -6
  555. package/browser/main.js +114 -11
  556. package/browser/pjs.d.ts +27 -0
  557. package/browser/pjs.js +23 -0
  558. package/browser/slim.d.ts +1 -1
  559. package/browser/slim.js +39 -47
  560. package/esm/Core/Canvas.js +4 -6
  561. package/esm/Core/Container.d.ts +5 -2
  562. package/esm/Core/Container.js +23 -12
  563. package/esm/Core/InteractionManager.d.ts +1 -0
  564. package/esm/Core/InteractionManager.js +4 -1
  565. package/esm/Core/Particles.d.ts +1 -1
  566. package/esm/Core/Particles.js +3 -1
  567. package/esm/Enums/Modes/ResponsiveMode.d.ts +4 -0
  568. package/esm/Enums/Modes/ResponsiveMode.js +5 -0
  569. package/esm/Enums/Modes/index.d.ts +1 -0
  570. package/esm/Enums/Modes/index.js +1 -0
  571. package/esm/Interactions/External/Attract/index.d.ts +1 -1
  572. package/esm/Interactions/External/Attract/index.js +2 -2
  573. package/esm/Interactions/External/Bounce/index.d.ts +1 -1
  574. package/esm/Interactions/External/Bounce/index.js +2 -2
  575. package/esm/Interactions/External/Bubble/index.d.ts +1 -1
  576. package/esm/Interactions/External/Bubble/index.js +2 -2
  577. package/esm/Interactions/External/Connect/index.d.ts +1 -1
  578. package/esm/Interactions/External/Connect/index.js +2 -2
  579. package/esm/Interactions/External/Grab/index.d.ts +1 -1
  580. package/esm/Interactions/External/Grab/index.js +2 -2
  581. package/esm/Interactions/External/Repulse/index.d.ts +1 -1
  582. package/esm/Interactions/External/Repulse/index.js +2 -2
  583. package/esm/Interactions/External/Trail/index.d.ts +1 -1
  584. package/esm/Interactions/External/Trail/index.js +2 -2
  585. package/esm/Interactions/Particles/Attract/index.d.ts +1 -1
  586. package/esm/Interactions/Particles/Attract/index.js +2 -2
  587. package/esm/Interactions/Particles/Collisions/index.d.ts +1 -1
  588. package/esm/Interactions/Particles/Collisions/index.js +2 -2
  589. package/esm/Interactions/Particles/Links/index.d.ts +2 -2
  590. package/esm/Interactions/Particles/Links/index.js +5 -5
  591. package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
  592. package/esm/Interactions/Particles/Links/plugin.js +2 -2
  593. package/esm/Options/Classes/FullScreen/FullScreen.js +2 -2
  594. package/esm/Options/Classes/Interactivity/Interactivity.js +1 -1
  595. package/esm/Options/Classes/Options.d.ts +1 -1
  596. package/esm/Options/Classes/Options.js +6 -3
  597. package/esm/Options/Classes/Responsive.d.ts +2 -0
  598. package/esm/Options/Classes/Responsive.js +10 -0
  599. package/esm/Options/Interfaces/IResponsive.d.ts +2 -0
  600. package/esm/Plugins/Absorbers/plugin.d.ts +1 -1
  601. package/esm/Plugins/Absorbers/plugin.js +2 -2
  602. package/esm/Plugins/Emitters/plugin.d.ts +1 -1
  603. package/esm/Plugins/Emitters/plugin.js +2 -2
  604. package/esm/Plugins/PolygonMask/plugin.js +1 -1
  605. package/esm/Shapes/Circle/index.d.ts +1 -1
  606. package/esm/Shapes/Circle/index.js +2 -2
  607. package/esm/Shapes/Image/index.d.ts +1 -1
  608. package/esm/Shapes/Image/index.js +3 -3
  609. package/esm/Shapes/Line/index.d.ts +1 -1
  610. package/esm/Shapes/Line/index.js +2 -2
  611. package/esm/Shapes/Polygon/index.d.ts +3 -3
  612. package/esm/Shapes/Polygon/index.js +7 -7
  613. package/esm/Shapes/Square/index.d.ts +1 -1
  614. package/esm/Shapes/Square/index.js +3 -3
  615. package/esm/Shapes/Star/index.d.ts +1 -1
  616. package/esm/Shapes/Star/index.js +2 -2
  617. package/esm/Shapes/Text/index.d.ts +1 -1
  618. package/esm/Shapes/Text/index.js +2 -2
  619. package/esm/Updaters/Angle/index.d.ts +1 -1
  620. package/esm/Updaters/Angle/index.js +2 -2
  621. package/esm/Updaters/Color/index.d.ts +1 -1
  622. package/esm/Updaters/Color/index.js +2 -2
  623. package/esm/Updaters/Life/index.d.ts +1 -1
  624. package/esm/Updaters/Life/index.js +2 -2
  625. package/esm/Updaters/Opacity/index.d.ts +1 -1
  626. package/esm/Updaters/Opacity/index.js +2 -2
  627. package/esm/Updaters/OutModes/index.d.ts +1 -1
  628. package/esm/Updaters/OutModes/index.js +2 -2
  629. package/esm/Updaters/Roll/index.d.ts +1 -1
  630. package/esm/Updaters/Roll/index.js +2 -2
  631. package/esm/Updaters/Size/index.d.ts +1 -1
  632. package/esm/Updaters/Size/index.js +2 -2
  633. package/esm/Updaters/StrokeColor/index.d.ts +1 -1
  634. package/esm/Updaters/StrokeColor/index.js +2 -2
  635. package/esm/Updaters/Tilt/index.d.ts +1 -1
  636. package/esm/Updaters/Tilt/index.js +2 -2
  637. package/esm/Updaters/Wobble/index.d.ts +1 -1
  638. package/esm/Updaters/Wobble/index.js +2 -2
  639. package/esm/Utils/Plugins.d.ts +2 -2
  640. package/esm/Utils/Plugins.js +4 -4
  641. package/esm/Utils/Utils.d.ts +1 -2
  642. package/esm/full.d.ts +1 -1
  643. package/esm/full.js +14 -6
  644. package/esm/index.d.ts +1 -2
  645. package/esm/index.js +2 -2
  646. package/esm/index.slim.d.ts +1 -2
  647. package/esm/index.slim.js +2 -2
  648. package/esm/main.d.ts +7 -6
  649. package/esm/main.js +18 -7
  650. package/esm/slim.d.ts +1 -1
  651. package/esm/slim.js +39 -47
  652. package/full.d.ts +1 -1
  653. package/full.js +14 -6
  654. package/index.d.ts +1 -2
  655. package/index.js +2 -3
  656. package/index.slim.d.ts +1 -2
  657. package/index.slim.js +2 -3
  658. package/main.d.ts +7 -6
  659. package/main.js +18 -7
  660. package/package.json +1 -1
  661. package/report.html +2 -2
  662. package/report.slim.html +2 -2
  663. package/slim.d.ts +1 -1
  664. package/slim.js +39 -47
  665. package/tsparticles.js +10586 -13650
  666. package/tsparticles.min.js +2 -2
  667. package/tsparticles.pathseg.js +1472 -0
  668. package/tsparticles.slim.js +8521 -11340
  669. package/tsparticles.slim.min.js +2 -2
  670. package/167.js +0 -1779
@@ -1,5 +1,12 @@
1
+ /**
2
+ * Project's constants
3
+ * @category Utils
4
+ */
1
5
  export class Constants {
2
6
  }
7
+ /**
8
+ * Particles canvas element class name
9
+ */
3
10
  Constants.canvasClass = "tsparticles-canvas-el";
4
11
  Constants.randomColorValue = "random";
5
12
  Constants.midColorValue = "mid";
@@ -1,4 +1,8 @@
1
1
  import type { Container } from "../Core/Container";
2
+ /**
3
+ * Particles container event listeners manager
4
+ * @category Utils
5
+ */
2
6
  export declare class EventListeners {
3
7
  private readonly container;
4
8
  private readonly mouseMoveHandler;
@@ -16,16 +20,44 @@ export declare class EventListeners {
16
20
  private canPush;
17
21
  private resizeTimeout?;
18
22
  private resizeObserver?;
23
+ /**
24
+ * Events listener constructor
25
+ * @param container the calling container
26
+ */
19
27
  constructor(container: Container);
28
+ /**
29
+ * Adding all listeners
30
+ */
20
31
  addListeners(): void;
32
+ /**
33
+ * Removing all listeners
34
+ */
21
35
  removeListeners(): void;
36
+ /**
37
+ * Initializing event listeners
38
+ */
22
39
  private manageListeners;
23
40
  private handleWindowResize;
24
41
  private handleVisibilityChange;
25
42
  private mouseDown;
43
+ /**
44
+ * Mouse/Touch move event
45
+ * @param e the event arguments
46
+ */
26
47
  private mouseTouchMove;
48
+ /**
49
+ * Mouse/Touch event finish
50
+ */
27
51
  private mouseTouchFinish;
52
+ /**
53
+ * Mouse/Touch click/tap event
54
+ * @param e the click event arguments
55
+ */
28
56
  private mouseTouchClick;
57
+ /**
58
+ * Mouse/Touch click/tap event implementation
59
+ * @param e the click event arguments
60
+ */
29
61
  private doMouseTouchClick;
30
62
  private handleThemeChange;
31
63
  private handleClickMode;
@@ -17,7 +17,15 @@ function manageListener(element, event, handler, add, options) {
17
17
  element.removeEventListener(event, handler, removeOptions);
18
18
  }
19
19
  }
20
+ /**
21
+ * Particles container event listeners manager
22
+ * @category Utils
23
+ */
20
24
  export class EventListeners {
25
+ /**
26
+ * Events listener constructor
27
+ * @param container the calling container
28
+ */
21
29
  constructor(container) {
22
30
  this.container = container;
23
31
  this.canPush = true;
@@ -34,18 +42,28 @@ export class EventListeners {
34
42
  this.themeChangeHandler = (e) => this.handleThemeChange(e);
35
43
  this.resizeHandler = () => this.handleWindowResize();
36
44
  }
45
+ /**
46
+ * Adding all listeners
47
+ */
37
48
  addListeners() {
38
49
  this.manageListeners(true);
39
50
  }
51
+ /**
52
+ * Removing all listeners
53
+ */
40
54
  removeListeners() {
41
55
  this.manageListeners(false);
42
56
  }
57
+ /**
58
+ * Initializing event listeners
59
+ */
43
60
  manageListeners(add) {
44
61
  var _a;
45
62
  const container = this.container;
46
63
  const options = container.actualOptions;
47
64
  const detectType = options.interactivity.detectsOn;
48
65
  let mouseLeaveEvent = Constants.mouseLeaveEvent;
66
+ /* events target element */
49
67
  if (detectType === InteractivityDetect.window) {
50
68
  container.interactivity.element = window;
51
69
  mouseLeaveEvent = Constants.mouseOutEvent;
@@ -62,15 +80,20 @@ export class EventListeners {
62
80
  manageListener(mediaMatch, "change", this.themeChangeHandler, add);
63
81
  }
64
82
  const interactivityEl = container.interactivity.element;
83
+ /* detect mouse pos - on hover / click event */
65
84
  if (!interactivityEl) {
66
85
  return;
67
86
  }
68
87
  const html = interactivityEl;
69
88
  if (options.interactivity.events.onHover.enable || options.interactivity.events.onClick.enable) {
89
+ /* el on mousemove */
70
90
  manageListener(interactivityEl, Constants.mouseMoveEvent, this.mouseMoveHandler, add);
91
+ /* el on touchstart */
71
92
  manageListener(interactivityEl, Constants.touchStartEvent, this.touchStartHandler, add);
93
+ /* el on touchmove */
72
94
  manageListener(interactivityEl, Constants.touchMoveEvent, this.touchMoveHandler, add);
73
95
  if (!options.interactivity.events.onClick.enable) {
96
+ /* el on touchend */
74
97
  manageListener(interactivityEl, Constants.touchEndEvent, this.touchEndHandler, add);
75
98
  }
76
99
  else {
@@ -78,7 +101,9 @@ export class EventListeners {
78
101
  manageListener(interactivityEl, Constants.mouseUpEvent, this.mouseUpHandler, add);
79
102
  manageListener(interactivityEl, Constants.mouseDownEvent, this.mouseDownHandler, add);
80
103
  }
104
+ /* el on onmouseleave */
81
105
  manageListener(interactivityEl, mouseLeaveEvent, this.mouseLeaveHandler, add);
106
+ /* el on touchcancel */
82
107
  manageListener(interactivityEl, Constants.touchCancelEvent, this.touchCancelHandler, add);
83
108
  }
84
109
  if (container.canvas.element) {
@@ -148,6 +173,10 @@ export class EventListeners {
148
173
  mouse.downPosition = mouse.position;
149
174
  }
150
175
  }
176
+ /**
177
+ * Mouse/Touch move event
178
+ * @param e the event arguments
179
+ */
151
180
  mouseTouchMove(e) {
152
181
  var _a, _b, _c, _d, _e, _f, _g;
153
182
  const container = this.container;
@@ -217,6 +246,9 @@ export class EventListeners {
217
246
  container.interactivity.mouse.position = pos;
218
247
  container.interactivity.status = Constants.mouseMoveEvent;
219
248
  }
249
+ /**
250
+ * Mouse/Touch event finish
251
+ */
220
252
  mouseTouchFinish() {
221
253
  const interactivity = this.container.interactivity;
222
254
  if (interactivity === undefined) {
@@ -230,6 +262,10 @@ export class EventListeners {
230
262
  mouse.inside = false;
231
263
  mouse.clicking = false;
232
264
  }
265
+ /**
266
+ * Mouse/Touch click/tap event
267
+ * @param e the click event arguments
268
+ */
233
269
  mouseTouchClick(e) {
234
270
  const container = this.container;
235
271
  const options = container.actualOptions;
@@ -253,6 +289,10 @@ export class EventListeners {
253
289
  }
254
290
  mouse.clicking = false;
255
291
  }
292
+ /**
293
+ * Mouse/Touch click/tap event implementation
294
+ * @param e the click event arguments
295
+ */
256
296
  doMouseTouchClick(e) {
257
297
  const container = this.container;
258
298
  const options = container.actualOptions;
@@ -3,7 +3,20 @@ import type { ICoordinates } from "../Core/Interfaces";
3
3
  import { EasingType, MoveDirection, MoveDirectionAlt } from "../Enums";
4
4
  import { RangeValue } from "../Types";
5
5
  import { Vector } from "../Core/Particle/Vector";
6
+ /**
7
+ * Clamps a number between a minimum and maximum value
8
+ * @param num the source number
9
+ * @param min the minimum value
10
+ * @param max the maximum value
11
+ */
6
12
  export declare function clamp(num: number, min: number, max: number): number;
13
+ /**
14
+ *
15
+ * @param comp1
16
+ * @param comp2
17
+ * @param weight1
18
+ * @param weight2
19
+ */
7
20
  export declare function mix(comp1: number, comp2: number, weight1: number, weight2: number): number;
8
21
  export declare function randomInRange(r: RangeValue): number;
9
22
  export declare function getRangeValue(value: RangeValue): number;
@@ -11,13 +24,27 @@ export declare function getRangeMin(value: RangeValue): number;
11
24
  export declare function getRangeMax(value: RangeValue): number;
12
25
  export declare function setRangeValue(source: RangeValue, value?: number): RangeValue;
13
26
  export declare function getValue(options: IValueWithRandom): number;
27
+ /**
28
+ * Gets the distance between two coordinates
29
+ * @param pointA the first coordinate
30
+ * @param pointB the second coordinate
31
+ */
14
32
  export declare function getDistances(pointA: ICoordinates, pointB: ICoordinates): {
15
33
  dx: number;
16
34
  dy: number;
17
35
  distance: number;
18
36
  };
37
+ /**
38
+ * Gets the distance between two coordinates
39
+ * @param pointA the first coordinate
40
+ * @param pointB the second coordinate
41
+ */
19
42
  export declare function getDistance(pointA: ICoordinates, pointB: ICoordinates): number;
20
43
  export declare function getParticleDirectionAngle(direction: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt | number): number;
44
+ /**
45
+ * Get Particle base velocity
46
+ * @param direction the direction to use for calculating the velocity
47
+ */
21
48
  export declare function getParticleBaseVelocity(direction: number): Vector;
22
49
  export declare function collisionVelocity(v1: Vector, v2: Vector, m1: number, m2: number): Vector;
23
50
  export declare function calcEasing(value: number, type: EasingType): number;
@@ -1,8 +1,21 @@
1
1
  import { EasingType, MoveDirection } from "../Enums";
2
2
  import { Vector } from "../Core/Particle/Vector";
3
+ /**
4
+ * Clamps a number between a minimum and maximum value
5
+ * @param num the source number
6
+ * @param min the minimum value
7
+ * @param max the maximum value
8
+ */
3
9
  export function clamp(num, min, max) {
4
10
  return Math.min(Math.max(num, min), max);
5
11
  }
12
+ /**
13
+ *
14
+ * @param comp1
15
+ * @param comp2
16
+ * @param weight1
17
+ * @param weight2
18
+ */
6
19
  export function mix(comp1, comp2, weight1, weight2) {
7
20
  return Math.floor((comp1 * weight1 + comp2 * weight2) / (weight1 + weight2));
8
21
  }
@@ -40,11 +53,21 @@ export function getValue(options) {
40
53
  const { enable, minimumValue } = typeof random === "boolean" ? { enable: random, minimumValue: 0 } : random;
41
54
  return enable ? getRangeValue(setRangeValue(options.value, minimumValue)) : getRangeValue(options.value);
42
55
  }
56
+ /**
57
+ * Gets the distance between two coordinates
58
+ * @param pointA the first coordinate
59
+ * @param pointB the second coordinate
60
+ */
43
61
  export function getDistances(pointA, pointB) {
44
62
  const dx = pointA.x - pointB.x;
45
63
  const dy = pointA.y - pointB.y;
46
64
  return { dx: dx, dy: dy, distance: Math.sqrt(dx * dx + dy * dy) };
47
65
  }
66
+ /**
67
+ * Gets the distance between two coordinates
68
+ * @param pointA the first coordinate
69
+ * @param pointB the second coordinate
70
+ */
48
71
  export function getDistance(pointA, pointB) {
49
72
  return getDistances(pointA, pointB).distance;
50
73
  }
@@ -76,6 +99,10 @@ export function getParticleDirectionAngle(direction) {
76
99
  }
77
100
  }
78
101
  }
102
+ /**
103
+ * Get Particle base velocity
104
+ * @param direction the direction to use for calculating the velocity
105
+ */
79
106
  export function getParticleBaseVelocity(direction) {
80
107
  const baseVelocity = Vector.origin;
81
108
  baseVelocity.length = 1;
@@ -3,6 +3,9 @@ import type { RecursivePartial } from "../Types";
3
3
  import type { IOptions } from "../Options/Interfaces/IOptions";
4
4
  import type { Options } from "../Options/Classes/Options";
5
5
  import type { IContainerPlugin, IInteractor, IMovePathGenerator, IParticleUpdater, IPlugin, IShapeDrawer } from "../Core/Interfaces";
6
+ /**
7
+ * @category Utils
8
+ */
6
9
  export declare class Plugins {
7
10
  static getPlugin(plugin: string): IPlugin | undefined;
8
11
  static addPlugin(plugin: IPlugin): void;
@@ -15,8 +18,8 @@ export declare class Plugins {
15
18
  static getSupportedShapes(): IterableIterator<string>;
16
19
  static getPathGenerator(type: string): IMovePathGenerator | undefined;
17
20
  static addPathGenerator(type: string, pathGenerator: IMovePathGenerator): void;
18
- static getInteractors(container: Container): IInteractor[];
21
+ static getInteractors(container: Container, force?: boolean): IInteractor[];
19
22
  static addInteractor(name: string, initInteractor: (container: Container) => IInteractor): void;
20
- static getUpdaters(container: Container): IParticleUpdater[];
23
+ static getUpdaters(container: Container, force?: boolean): IParticleUpdater[];
21
24
  static addParticleUpdater(name: string, initUpdater: (container: Container) => IParticleUpdater): void;
22
25
  }
@@ -6,6 +6,9 @@ const updaters = new Map();
6
6
  const presets = new Map();
7
7
  const drawers = new Map();
8
8
  const pathGenerators = new Map();
9
+ /**
10
+ * @category Utils
11
+ */
9
12
  export class Plugins {
10
13
  static getPlugin(plugin) {
11
14
  return plugins.find((t) => t.id === plugin);
@@ -57,9 +60,9 @@ export class Plugins {
57
60
  pathGenerators.set(type, pathGenerator);
58
61
  }
59
62
  }
60
- static getInteractors(container) {
63
+ static getInteractors(container, force = false) {
61
64
  let res = interactors.get(container);
62
- if (!res) {
65
+ if (!res || force) {
63
66
  res = [...interactorsInitializers.values()].map((t) => t(container));
64
67
  interactors.set(container, res);
65
68
  }
@@ -68,9 +71,9 @@ export class Plugins {
68
71
  static addInteractor(name, initInteractor) {
69
72
  interactorsInitializers.set(name, initInteractor);
70
73
  }
71
- static getUpdaters(container) {
74
+ static getUpdaters(container, force = false) {
72
75
  let res = updaters.get(container);
73
- if (!res) {
76
+ if (!res || force) {
74
77
  res = [...updatersInitializers.values()].map((t) => t(container));
75
78
  updaters.set(container, res);
76
79
  }
@@ -1,5 +1,8 @@
1
1
  import type { ICoordinates } from "../Core/Interfaces";
2
2
  import type { Particle } from "../Core/Particle";
3
+ /**
4
+ * @category Utils
5
+ */
3
6
  export declare class Point {
4
7
  readonly position: ICoordinates;
5
8
  readonly particle: Particle;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @category Utils
3
+ */
1
4
  export class Point {
2
5
  constructor(position, particle) {
3
6
  this.position = position;
@@ -4,6 +4,9 @@ import type { Point } from "./Point";
4
4
  import { Rectangle } from "./Rectangle";
5
5
  import type { ICoordinates, IDimension } from "../Core/Interfaces";
6
6
  import type { Container } from "../Core/Container";
7
+ /**
8
+ * @category Utils
9
+ */
7
10
  export declare class QuadTree {
8
11
  readonly rectangle: Rectangle;
9
12
  readonly capacity: number;
@@ -2,6 +2,9 @@ import { Rectangle } from "./Rectangle";
2
2
  import { Circle } from "./Circle";
3
3
  import { CircleWarp } from "./CircleWarp";
4
4
  import { getDistance } from "./NumberUtils";
5
+ /**
6
+ * @category Utils
7
+ */
5
8
  export class QuadTree {
6
9
  constructor(rectangle, capacity) {
7
10
  this.rectangle = rectangle;
@@ -1,4 +1,7 @@
1
1
  import type { ICoordinates } from "../Core/Interfaces";
2
+ /**
3
+ * @category Utils
4
+ */
2
5
  export declare abstract class Range {
3
6
  readonly position: ICoordinates;
4
7
  protected constructor(x: number, y: number);
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @category Utils
3
+ */
1
4
  export class Range {
2
5
  constructor(x, y) {
3
6
  this.position = {
@@ -1,6 +1,9 @@
1
1
  import { Range } from "./Range";
2
2
  import type { IDimension } from "../Core/Interfaces/IDimension";
3
3
  import type { ICoordinates } from "../Core/Interfaces/ICoordinates";
4
+ /**
5
+ * @category Utils
6
+ */
4
7
  export declare class Rectangle extends Range {
5
8
  readonly size: IDimension;
6
9
  constructor(x: number, y: number, width: number, height: number);
@@ -1,4 +1,7 @@
1
1
  import { Range } from "./Range";
2
+ /**
3
+ * @category Utils
4
+ */
2
5
  export class Rectangle extends Range {
3
6
  constructor(x, y, width, height) {
4
7
  super(x, y);
@@ -1,10 +1,9 @@
1
1
  import type { IBounds, ICircleBouncer, ICoordinates, IDimension, IParticle } from "../Core/Interfaces";
2
- import { DivMode } from "../Enums";
2
+ import { DivMode, OutModeDirection } from "../Enums";
3
3
  import type { ICharacterShape } from "../Options/Interfaces/Particles/Shape/ICharacterShape";
4
4
  import type { SingleOrMultiple } from "../Types";
5
5
  import { DivEvent } from "../Options/Classes/Interactivity/Events/DivEvent";
6
6
  import type { IModeDiv } from "../Options/Interfaces/Interactivity/Modes/IModeDiv";
7
- import { OutModeDirection } from "../Enums";
8
7
  declare global {
9
8
  interface Window {
10
9
  customRequestAnimationFrame: (callback: FrameRequestCallback) => number;
@@ -22,6 +21,11 @@ declare global {
22
21
  export declare function isSsr(): boolean;
23
22
  export declare function animate(): (callback: FrameRequestCallback) => number;
24
23
  export declare function cancelAnimation(): (handle: number) => void;
24
+ /**
25
+ * Check if a value is equal to the destination, if same type, or is in the provided array
26
+ * @param value the value to check
27
+ * @param array the data array or single value
28
+ */
25
29
  export declare function isInArray<T>(value: T, array: SingleOrMultiple<T>): boolean;
26
30
  export declare function loadFont(character: ICharacterShape): Promise<void>;
27
31
  export declare function arrayRandomIndex<T>(array: T[]): number;
@@ -28,6 +28,7 @@ function checkSelector(element, selectors) {
28
28
  return element.matches(selectors);
29
29
  }
30
30
  }
31
+ /* ---------- global functions - vendors ------------ */
31
32
  export function isSsr() {
32
33
  return typeof window === "undefined" || !window || typeof window.document === "undefined" || !window.document;
33
34
  }
@@ -51,6 +52,11 @@ export function cancelAnimation() {
51
52
  window.msCancelRequestAnimationFrame ||
52
53
  window.clearTimeout)(handle);
53
54
  }
55
+ /**
56
+ * Check if a value is equal to the destination, if same type, or is in the provided array
57
+ * @param value the value to check
58
+ * @param array the data array or single value
59
+ */
54
60
  export function isInArray(value, array) {
55
61
  return value === array || (array instanceof Array && array.indexOf(value) > -1);
56
62
  }
@@ -60,6 +66,7 @@ export async function loadFont(character) {
60
66
  await document.fonts.load(`${(_a = character.weight) !== null && _a !== void 0 ? _a : "400"} 36px '${(_b = character.font) !== null && _b !== void 0 ? _b : "Verdana"}'`);
61
67
  }
62
68
  catch (_c) {
69
+ // ignores any error
63
70
  }
64
71
  }
65
72
  export function arrayRandomIndex(array) {
@@ -187,16 +194,23 @@ export function circleBounce(p1, p2) {
187
194
  const pos2 = p2.position;
188
195
  const xDist = pos2.x - pos1.x;
189
196
  const yDist = pos2.y - pos1.y;
197
+ // Prevent accidental overlap of particles
190
198
  if (xVelocityDiff * xDist + yVelocityDiff * yDist >= 0) {
199
+ // Grab angle between the two colliding particles
191
200
  const angle = -Math.atan2(pos2.y - pos1.y, pos2.x - pos1.x);
201
+ // Store mass in var for better readability in collision equation
192
202
  const m1 = p1.mass;
193
203
  const m2 = p2.mass;
204
+ // Velocity before equation
194
205
  const u1 = p1.velocity.rotate(angle);
195
206
  const u2 = p2.velocity.rotate(angle);
207
+ // Velocity after 1d collision equation
196
208
  const v1 = collisionVelocity(u1, u2, m1, m2);
197
209
  const v2 = collisionVelocity(u2, u1, m1, m2);
210
+ // Final velocity after rotating axis back to original location
198
211
  const vFinal1 = v1.rotate(-angle);
199
212
  const vFinal2 = v2.rotate(-angle);
213
+ // Swap particle velocities for realistic bounce effect
200
214
  p1.velocity.x = vFinal1.x * p1.factor.x;
201
215
  p1.velocity.y = vFinal1.y * p1.factor.y;
202
216
  p2.velocity.x = vFinal2.x * p2.factor.x;
package/browser/full.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import type { Main } from "./main";
2
- export declare function loadFull(tsParticles: Main): void;
2
+ export declare function loadFull(tsParticles: Main): Promise<void>;
package/browser/full.js CHANGED
@@ -1,10 +1,18 @@
1
+ import { loadSlim } from "./slim";
2
+ import { loadExternalTrailInteraction } from "./Interactions/External/Trail";
3
+ import { loadTiltUpdater } from "./Updaters/Tilt";
4
+ import { loadWobbleUpdater } from "./Updaters/Wobble";
1
5
  import { loadAbsorbersPlugin } from "./Plugins/Absorbers/plugin";
2
6
  import { loadEmittersPlugin } from "./Plugins/Emitters/plugin";
3
7
  import { loadPolygonMaskPlugin } from "./Plugins/PolygonMask/plugin";
4
- import { loadSlim } from "./slim";
5
- export function loadFull(tsParticles) {
6
- loadSlim(tsParticles);
7
- loadAbsorbersPlugin(tsParticles);
8
- loadEmittersPlugin(tsParticles);
9
- loadPolygonMaskPlugin(tsParticles);
8
+ import { loadRollUpdater } from "./Updaters/Roll";
9
+ export async function loadFull(tsParticles) {
10
+ await loadSlim(tsParticles);
11
+ await loadExternalTrailInteraction(tsParticles);
12
+ await loadRollUpdater(tsParticles);
13
+ await loadTiltUpdater(tsParticles);
14
+ await loadWobbleUpdater(tsParticles);
15
+ await loadAbsorbersPlugin(tsParticles);
16
+ await loadEmittersPlugin(tsParticles);
17
+ await loadPolygonMaskPlugin(tsParticles);
10
18
  }
@@ -6,7 +6,6 @@ import type { IEmitterOptions } from "./Plugins/Emitters/Options/Interfaces/IEmi
6
6
  import type { IPolygonMaskOptions } from "./Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions";
7
7
  import type { RecursivePartial } from "./Types";
8
8
  import type { IParticle } from "./Core/Interfaces";
9
- import { loadFull } from "./full";
10
9
  declare const tsParticles: Main;
11
10
  declare const particlesJS: import("./pjs").IParticlesJS, pJSDom: import("./Core/Container").Container[];
12
11
  export * from "./Core/Particle/Vector";
@@ -15,7 +14,7 @@ export * from "./Enums";
15
14
  export * from "./Plugins/Absorbers/Enums";
16
15
  export * from "./Plugins/Emitters/Enums";
17
16
  export * from "./Plugins/PolygonMask/Enums";
18
- export { Circle, CircleWarp, Constants, Point, Rectangle, Main, loadFull };
17
+ export { Circle, CircleWarp, Constants, Point, Rectangle, Main };
19
18
  export * from "./Utils/CanvasUtils";
20
19
  export * from "./Utils/ColorUtils";
21
20
  export * from "./Utils/NumberUtils";
package/browser/index.js CHANGED
@@ -4,15 +4,15 @@ import { Circle, CircleWarp, Constants, Point, Rectangle } from "./Utils";
4
4
  import { loadFull } from "./full";
5
5
  const tsParticles = new Main();
6
6
  tsParticles.init();
7
- loadFull(tsParticles);
8
7
  const { particlesJS, pJSDom } = initPjs(tsParticles);
8
+ loadFull(tsParticles);
9
9
  export * from "./Core/Particle/Vector";
10
10
  export * from "./Core/Container";
11
11
  export * from "./Enums";
12
12
  export * from "./Plugins/Absorbers/Enums";
13
13
  export * from "./Plugins/Emitters/Enums";
14
14
  export * from "./Plugins/PolygonMask/Enums";
15
- export { Circle, CircleWarp, Constants, Point, Rectangle, Main, loadFull };
15
+ export { Circle, CircleWarp, Constants, Point, Rectangle, Main };
16
16
  export * from "./Utils/CanvasUtils";
17
17
  export * from "./Utils/ColorUtils";
18
18
  export * from "./Utils/NumberUtils";
@@ -3,13 +3,12 @@ import type { IOptions } from "./Options/Interfaces/IOptions";
3
3
  import type { RecursivePartial } from "./Types";
4
4
  import type { IParticle } from "./Core/Interfaces";
5
5
  import { Main } from "./main";
6
- import { loadSlim } from "./slim";
7
6
  declare const tsParticles: Main;
8
7
  declare const particlesJS: import("./pjs").IParticlesJS, pJSDom: import("./Core/Container").Container[];
9
8
  export * from "./Core/Particle/Vector";
10
9
  export * from "./Core/Container";
11
10
  export * from "./Enums";
12
- export { Circle, CircleWarp, Constants, Point, Rectangle, Main, loadSlim };
11
+ export { Circle, CircleWarp, Constants, Point, Rectangle, Main };
13
12
  export * from "./Utils/CanvasUtils";
14
13
  export * from "./Utils/ColorUtils";
15
14
  export * from "./Utils/NumberUtils";
@@ -2,14 +2,15 @@ import { initPjs } from "./pjs";
2
2
  import { Circle, CircleWarp, Constants, Point, Rectangle } from "./Utils";
3
3
  import { Main } from "./main";
4
4
  import { loadSlim } from "./slim";
5
+ /* ---------- tsParticles functions - start ------------ */
5
6
  const tsParticles = new Main();
6
7
  tsParticles.init();
7
- loadSlim(tsParticles);
8
8
  const { particlesJS, pJSDom } = initPjs(tsParticles);
9
+ loadSlim(tsParticles);
9
10
  export * from "./Core/Particle/Vector";
10
11
  export * from "./Core/Container";
11
12
  export * from "./Enums";
12
- export { Circle, CircleWarp, Constants, Point, Rectangle, Main, loadSlim };
13
+ export { Circle, CircleWarp, Constants, Point, Rectangle, Main };
13
14
  export * from "./Utils/CanvasUtils";
14
15
  export * from "./Utils/ColorUtils";
15
16
  export * from "./Utils/NumberUtils";