tsparticles 1.39.0 → 1.39.1

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 (953) hide show
  1. package/Core/Canvas.d.ts +1 -1
  2. package/Core/Canvas.js +27 -27
  3. package/Core/Container.d.ts +5 -5
  4. package/Core/Container.js +3 -3
  5. package/Core/Interfaces/Gradients.d.ts +2 -2
  6. package/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  7. package/Core/Interfaces/IContainerPlugin.d.ts +4 -4
  8. package/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  9. package/Core/Interfaces/IInteractor.d.ts +1 -1
  10. package/Core/Interfaces/IParticle.d.ts +8 -8
  11. package/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
  12. package/Core/Interfaces/IParticleSpin.d.ts +1 -1
  13. package/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
  14. package/Core/Interfaces/IPlugin.d.ts +1 -1
  15. package/Core/Loader.d.ts +1 -1
  16. package/Core/Loader.js +7 -7
  17. package/Core/Particle.d.ts +3 -3
  18. package/Core/Particle.js +31 -31
  19. package/Core/Particles.d.ts +3 -3
  20. package/Core/Particles.js +15 -15
  21. package/Core/Utils/Circle.d.ts +1 -1
  22. package/Core/Utils/CircleWarp.d.ts +1 -1
  23. package/Core/Utils/CircleWarp.js +1 -1
  24. package/Core/Utils/EventListeners.js +1 -1
  25. package/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  26. package/Core/Utils/InteractionManager.d.ts +1 -1
  27. package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  28. package/Core/Utils/ParticlesMover.d.ts +1 -1
  29. package/Core/Utils/Plugins.d.ts +1 -1
  30. package/Core/Utils/QuadTree.d.ts +3 -3
  31. package/Core/Utils/QuadTree.js +1 -1
  32. package/Core/Utils/Rectangle.d.ts +1 -1
  33. package/Core/Utils/Vector3d.d.ts +1 -1
  34. package/Interactions/External/Attract/Attractor.d.ts +1 -1
  35. package/Interactions/External/Attract/Attractor.js +1 -1
  36. package/Interactions/External/Attract/index.d.ts +1 -1
  37. package/Interactions/External/Attract/index.js +2 -2
  38. package/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  39. package/Interactions/External/Bounce/Bouncer.js +1 -1
  40. package/Interactions/External/Bounce/index.d.ts +1 -1
  41. package/Interactions/External/Bounce/index.js +2 -2
  42. package/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  43. package/Interactions/External/Bubble/Bubbler.js +1 -1
  44. package/Interactions/External/Bubble/index.d.ts +1 -1
  45. package/Interactions/External/Bubble/index.js +2 -2
  46. package/Interactions/External/Connect/Connector.js +1 -1
  47. package/Interactions/External/Connect/index.d.ts +1 -1
  48. package/Interactions/External/Connect/index.js +2 -2
  49. package/Interactions/External/Grab/Grabber.d.ts +1 -1
  50. package/Interactions/External/Grab/Grabber.js +1 -1
  51. package/Interactions/External/Grab/index.d.ts +1 -1
  52. package/Interactions/External/Grab/index.js +2 -2
  53. package/Interactions/External/Repulse/Repulser.d.ts +1 -1
  54. package/Interactions/External/Repulse/Repulser.js +1 -1
  55. package/Interactions/External/Repulse/index.d.ts +1 -1
  56. package/Interactions/External/Repulse/index.js +2 -2
  57. package/Interactions/External/Trail/TrailMaker.js +1 -1
  58. package/Interactions/External/Trail/index.d.ts +1 -1
  59. package/Interactions/External/Trail/index.js +2 -2
  60. package/Interactions/Particles/Attract/Attractor.js +1 -1
  61. package/Interactions/Particles/Attract/index.d.ts +1 -1
  62. package/Interactions/Particles/Attract/index.js +2 -2
  63. package/Interactions/Particles/Collisions/index.d.ts +1 -1
  64. package/Interactions/Particles/Collisions/index.js +2 -2
  65. package/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  66. package/Interactions/Particles/Links/Linker.d.ts +1 -1
  67. package/Interactions/Particles/Links/Linker.js +1 -1
  68. package/Interactions/Particles/Links/index.d.ts +1 -1
  69. package/Interactions/Particles/Links/index.js +4 -4
  70. package/Interactions/Particles/Links/interaction.d.ts +1 -1
  71. package/Interactions/Particles/Links/interaction.js +2 -2
  72. package/Interactions/Particles/Links/plugin.d.ts +1 -1
  73. package/Interactions/Particles/Links/plugin.js +2 -2
  74. package/Options/Classes/AnimatableColor.d.ts +3 -3
  75. package/Options/Classes/AnimatableColor.js +1 -1
  76. package/Options/Classes/AnimatableGradient.d.ts +6 -6
  77. package/Options/Classes/AnimationOptions.d.ts +2 -2
  78. package/Options/Classes/Background/Background.d.ts +2 -2
  79. package/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
  80. package/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
  81. package/Options/Classes/ColorAnimation.d.ts +1 -1
  82. package/Options/Classes/HslAnimation.d.ts +2 -2
  83. package/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
  84. package/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
  85. package/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
  86. package/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
  87. package/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
  88. package/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
  89. package/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
  90. package/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
  91. package/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
  92. package/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
  93. package/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
  94. package/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
  95. package/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
  96. package/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
  97. package/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
  98. package/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
  99. package/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
  100. package/Options/Classes/Interactivity/Modes/Modes.js +4 -4
  101. package/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
  102. package/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
  103. package/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
  104. package/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
  105. package/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
  106. package/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
  107. package/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
  108. package/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
  109. package/Options/Classes/ManualParticle.d.ts +2 -2
  110. package/Options/Classes/Motion/Motion.d.ts +1 -1
  111. package/Options/Classes/Options.d.ts +7 -7
  112. package/Options/Classes/Options.js +7 -7
  113. package/Options/Classes/OptionsColor.d.ts +2 -2
  114. package/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
  115. package/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
  116. package/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
  117. package/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
  118. package/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
  119. package/Options/Classes/Particles/Life/Life.d.ts +1 -1
  120. package/Options/Classes/Particles/Links/Links.d.ts +2 -2
  121. package/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
  122. package/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
  123. package/Options/Classes/Particles/Move/Attract.d.ts +2 -2
  124. package/Options/Classes/Particles/Move/Move.d.ts +5 -5
  125. package/Options/Classes/Particles/Move/Move.js +3 -3
  126. package/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
  127. package/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
  128. package/Options/Classes/Particles/Move/Spin.d.ts +3 -3
  129. package/Options/Classes/Particles/Move/Trail.d.ts +2 -2
  130. package/Options/Classes/Particles/Number/Density.d.ts +1 -1
  131. package/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
  132. package/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
  133. package/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
  134. package/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
  135. package/Options/Classes/Particles/Orbit/Orbit.js +2 -2
  136. package/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
  137. package/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
  138. package/Options/Classes/Particles/ParticlesOptions.js +13 -13
  139. package/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
  140. package/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
  141. package/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
  142. package/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
  143. package/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
  144. package/Options/Classes/Particles/Shadow.d.ts +3 -3
  145. package/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
  146. package/Options/Classes/Particles/Size/Size.d.ts +2 -2
  147. package/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
  148. package/Options/Classes/Particles/Stroke.d.ts +2 -2
  149. package/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
  150. package/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
  151. package/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
  152. package/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
  153. package/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
  154. package/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
  155. package/Options/Classes/Random.d.ts +1 -1
  156. package/Options/Classes/Responsive.d.ts +2 -2
  157. package/Options/Classes/Theme/Theme.d.ts +2 -2
  158. package/Options/Classes/Theme/Theme.js +1 -1
  159. package/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
  160. package/Options/Classes/ValueWithRandom.d.ts +2 -2
  161. package/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
  162. package/Options/Interfaces/IAnimatableColor.d.ts +1 -1
  163. package/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
  164. package/Options/Interfaces/IColorAnimation.d.ts +1 -1
  165. package/Options/Interfaces/IManualParticle.d.ts +1 -1
  166. package/Options/Interfaces/IOptions.d.ts +6 -6
  167. package/Options/Interfaces/IOptionsGradient.d.ts +2 -2
  168. package/Options/Interfaces/IResponsive.d.ts +2 -2
  169. package/Options/Interfaces/IValueWithRandom.d.ts +1 -1
  170. package/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
  171. package/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
  172. package/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
  173. package/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
  174. package/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
  175. package/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
  176. package/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
  177. package/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
  178. package/Options/Interfaces/Particles/IParticles.d.ts +14 -14
  179. package/Options/Interfaces/Particles/IShadow.d.ts +1 -1
  180. package/Options/Interfaces/Particles/IStroke.d.ts +1 -1
  181. package/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
  182. package/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
  183. package/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
  184. package/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
  185. package/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
  186. package/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
  187. package/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
  188. package/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
  189. package/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
  190. package/Options/Interfaces/Theme/ITheme.d.ts +2 -2
  191. package/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
  192. package/Plugins/Absorbers/AbsorberInstance.js +18 -18
  193. package/Plugins/Absorbers/Absorbers.d.ts +3 -3
  194. package/Plugins/Absorbers/Absorbers.js +1 -1
  195. package/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
  196. package/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
  197. package/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
  198. package/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
  199. package/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
  200. package/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
  201. package/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
  202. package/Plugins/Absorbers/index.d.ts +1 -1
  203. package/Plugins/Absorbers/index.js +3 -3
  204. package/Plugins/Emitters/EmitterContainer.d.ts +2 -1
  205. package/Plugins/Emitters/EmitterInstance.d.ts +5 -3
  206. package/Plugins/Emitters/EmitterInstance.js +34 -35
  207. package/Plugins/Emitters/Emitters.d.ts +3 -3
  208. package/Plugins/Emitters/Emitters.js +11 -3
  209. package/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
  210. package/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
  211. package/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
  212. package/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
  213. package/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
  214. package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
  215. package/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
  216. package/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
  217. package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  218. package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  219. package/Plugins/Emitters/index.d.ts +1 -1
  220. package/Plugins/Emitters/index.js +9 -9
  221. package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
  222. package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  223. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
  224. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
  225. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
  226. package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
  227. package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
  228. package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
  229. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
  230. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
  231. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
  232. package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
  233. package/Plugins/PolygonMask/PolygonMaskInstance.js +12 -12
  234. package/Plugins/PolygonMask/Types.d.ts +1 -1
  235. package/Plugins/PolygonMask/index.d.ts +1 -1
  236. package/Plugins/PolygonMask/index.js +3 -3
  237. package/README.md +160 -16
  238. package/Shapes/Circle/index.d.ts +1 -1
  239. package/Shapes/Circle/index.js +2 -2
  240. package/Shapes/Image/index.d.ts +1 -1
  241. package/Shapes/Image/index.js +3 -3
  242. package/Shapes/Line/index.d.ts +1 -1
  243. package/Shapes/Line/index.js +2 -2
  244. package/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  245. package/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  246. package/Shapes/Polygon/index.d.ts +3 -3
  247. package/Shapes/Polygon/index.js +7 -7
  248. package/Shapes/Square/index.d.ts +1 -1
  249. package/Shapes/Square/index.js +3 -3
  250. package/Shapes/Star/index.d.ts +1 -1
  251. package/Shapes/Star/index.js +2 -2
  252. package/Shapes/Text/index.d.ts +1 -1
  253. package/Shapes/Text/index.js +2 -2
  254. package/Types/ShapeData.d.ts +1 -1
  255. package/Types/ShapeDrawerFunctions.d.ts +1 -1
  256. package/Updaters/Angle/index.d.ts +1 -1
  257. package/Updaters/Angle/index.js +2 -2
  258. package/Updaters/Color/index.d.ts +1 -1
  259. package/Updaters/Color/index.js +2 -2
  260. package/Updaters/Life/index.d.ts +1 -1
  261. package/Updaters/Life/index.js +2 -2
  262. package/Updaters/Opacity/index.d.ts +1 -1
  263. package/Updaters/Opacity/index.js +2 -2
  264. package/Updaters/OutModes/IBounceData.d.ts +1 -1
  265. package/Updaters/OutModes/OutOfCanvasUpdater.js +9 -9
  266. package/Updaters/OutModes/index.d.ts +1 -1
  267. package/Updaters/OutModes/index.js +2 -2
  268. package/Updaters/Roll/index.d.ts +1 -1
  269. package/Updaters/Roll/index.js +2 -2
  270. package/Updaters/Size/index.d.ts +1 -1
  271. package/Updaters/Size/index.js +2 -2
  272. package/Updaters/StrokeColor/index.d.ts +1 -1
  273. package/Updaters/StrokeColor/index.js +2 -2
  274. package/Updaters/Tilt/index.d.ts +1 -1
  275. package/Updaters/Tilt/index.js +2 -2
  276. package/Updaters/Wobble/index.d.ts +1 -1
  277. package/Updaters/Wobble/index.js +2 -2
  278. package/Utils/CanvasUtils.d.ts +2 -3
  279. package/Utils/CanvasUtils.js +1 -1
  280. package/Utils/ColorUtils.js +1 -1
  281. package/Utils/NumberUtils.d.ts +2 -2
  282. package/Utils/Utils.d.ts +3 -3
  283. package/browser/Core/Canvas.d.ts +1 -1
  284. package/browser/Core/Canvas.js +1 -1
  285. package/browser/Core/Container.d.ts +5 -5
  286. package/browser/Core/Container.js +3 -3
  287. package/browser/Core/Interfaces/Gradients.d.ts +2 -2
  288. package/browser/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  289. package/browser/Core/Interfaces/IContainerPlugin.d.ts +4 -4
  290. package/browser/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  291. package/browser/Core/Interfaces/IInteractor.d.ts +1 -1
  292. package/browser/Core/Interfaces/IParticle.d.ts +8 -8
  293. package/browser/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
  294. package/browser/Core/Interfaces/IParticleSpin.d.ts +1 -1
  295. package/browser/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
  296. package/browser/Core/Interfaces/IPlugin.d.ts +1 -1
  297. package/browser/Core/Loader.d.ts +1 -1
  298. package/browser/Core/Loader.js +1 -1
  299. package/browser/Core/Particle.d.ts +3 -3
  300. package/browser/Core/Particle.js +2 -2
  301. package/browser/Core/Particles.d.ts +3 -3
  302. package/browser/Core/Particles.js +2 -2
  303. package/browser/Core/Utils/Circle.d.ts +1 -1
  304. package/browser/Core/Utils/CircleWarp.d.ts +1 -1
  305. package/browser/Core/Utils/CircleWarp.js +1 -1
  306. package/browser/Core/Utils/EventListeners.js +1 -1
  307. package/browser/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  308. package/browser/Core/Utils/InteractionManager.d.ts +1 -1
  309. package/browser/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  310. package/browser/Core/Utils/ParticlesMover.d.ts +1 -1
  311. package/browser/Core/Utils/Plugins.d.ts +1 -1
  312. package/browser/Core/Utils/QuadTree.d.ts +3 -3
  313. package/browser/Core/Utils/QuadTree.js +1 -1
  314. package/browser/Core/Utils/Rectangle.d.ts +1 -1
  315. package/browser/Core/Utils/Vector3d.d.ts +1 -1
  316. package/browser/Interactions/External/Attract/Attractor.d.ts +1 -1
  317. package/browser/Interactions/External/Attract/Attractor.js +1 -1
  318. package/browser/Interactions/External/Attract/index.d.ts +1 -1
  319. package/browser/Interactions/External/Attract/index.js +2 -2
  320. package/browser/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  321. package/browser/Interactions/External/Bounce/Bouncer.js +1 -1
  322. package/browser/Interactions/External/Bounce/index.d.ts +1 -1
  323. package/browser/Interactions/External/Bounce/index.js +2 -2
  324. package/browser/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  325. package/browser/Interactions/External/Bubble/Bubbler.js +1 -1
  326. package/browser/Interactions/External/Bubble/index.d.ts +1 -1
  327. package/browser/Interactions/External/Bubble/index.js +2 -2
  328. package/browser/Interactions/External/Connect/Connector.js +1 -1
  329. package/browser/Interactions/External/Connect/index.d.ts +1 -1
  330. package/browser/Interactions/External/Connect/index.js +2 -2
  331. package/browser/Interactions/External/Grab/Grabber.d.ts +1 -1
  332. package/browser/Interactions/External/Grab/Grabber.js +1 -1
  333. package/browser/Interactions/External/Grab/index.d.ts +1 -1
  334. package/browser/Interactions/External/Grab/index.js +2 -2
  335. package/browser/Interactions/External/Repulse/Repulser.d.ts +1 -1
  336. package/browser/Interactions/External/Repulse/Repulser.js +1 -1
  337. package/browser/Interactions/External/Repulse/index.d.ts +1 -1
  338. package/browser/Interactions/External/Repulse/index.js +2 -2
  339. package/browser/Interactions/External/Trail/TrailMaker.js +1 -1
  340. package/browser/Interactions/External/Trail/index.d.ts +1 -1
  341. package/browser/Interactions/External/Trail/index.js +2 -2
  342. package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
  343. package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
  344. package/browser/Interactions/Particles/Attract/index.js +2 -2
  345. package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
  346. package/browser/Interactions/Particles/Collisions/index.js +2 -2
  347. package/browser/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  348. package/browser/Interactions/Particles/Links/Linker.d.ts +1 -1
  349. package/browser/Interactions/Particles/Links/Linker.js +1 -1
  350. package/browser/Interactions/Particles/Links/index.d.ts +1 -1
  351. package/browser/Interactions/Particles/Links/index.js +4 -4
  352. package/browser/Interactions/Particles/Links/interaction.d.ts +1 -1
  353. package/browser/Interactions/Particles/Links/interaction.js +2 -2
  354. package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
  355. package/browser/Interactions/Particles/Links/plugin.js +2 -2
  356. package/browser/Options/Classes/AnimatableColor.d.ts +3 -3
  357. package/browser/Options/Classes/AnimatableColor.js +1 -1
  358. package/browser/Options/Classes/AnimatableGradient.d.ts +6 -6
  359. package/browser/Options/Classes/AnimationOptions.d.ts +2 -2
  360. package/browser/Options/Classes/Background/Background.d.ts +2 -2
  361. package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
  362. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
  363. package/browser/Options/Classes/ColorAnimation.d.ts +1 -1
  364. package/browser/Options/Classes/HslAnimation.d.ts +2 -2
  365. package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
  366. package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
  367. package/browser/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
  368. package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
  369. package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
  370. package/browser/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
  371. package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
  372. package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
  373. package/browser/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
  374. package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
  375. package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
  376. package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
  377. package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
  378. package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
  379. package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
  380. package/browser/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
  381. package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
  382. package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -4
  383. package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
  384. package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
  385. package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
  386. package/browser/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
  387. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
  388. package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
  389. package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
  390. package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
  391. package/browser/Options/Classes/ManualParticle.d.ts +2 -2
  392. package/browser/Options/Classes/Motion/Motion.d.ts +1 -1
  393. package/browser/Options/Classes/Options.d.ts +7 -7
  394. package/browser/Options/Classes/Options.js +7 -7
  395. package/browser/Options/Classes/OptionsColor.d.ts +2 -2
  396. package/browser/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
  397. package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
  398. package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
  399. package/browser/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
  400. package/browser/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
  401. package/browser/Options/Classes/Particles/Life/Life.d.ts +1 -1
  402. package/browser/Options/Classes/Particles/Links/Links.d.ts +2 -2
  403. package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
  404. package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
  405. package/browser/Options/Classes/Particles/Move/Attract.d.ts +2 -2
  406. package/browser/Options/Classes/Particles/Move/Move.d.ts +5 -5
  407. package/browser/Options/Classes/Particles/Move/Move.js +3 -3
  408. package/browser/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
  409. package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
  410. package/browser/Options/Classes/Particles/Move/Spin.d.ts +3 -3
  411. package/browser/Options/Classes/Particles/Move/Trail.d.ts +2 -2
  412. package/browser/Options/Classes/Particles/Number/Density.d.ts +1 -1
  413. package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
  414. package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
  415. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
  416. package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
  417. package/browser/Options/Classes/Particles/Orbit/Orbit.js +2 -2
  418. package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
  419. package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
  420. package/browser/Options/Classes/Particles/ParticlesOptions.js +13 -13
  421. package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
  422. package/browser/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
  423. package/browser/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
  424. package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
  425. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
  426. package/browser/Options/Classes/Particles/Shadow.d.ts +3 -3
  427. package/browser/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
  428. package/browser/Options/Classes/Particles/Size/Size.d.ts +2 -2
  429. package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
  430. package/browser/Options/Classes/Particles/Stroke.d.ts +2 -2
  431. package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
  432. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
  433. package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
  434. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
  435. package/browser/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
  436. package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
  437. package/browser/Options/Classes/Random.d.ts +1 -1
  438. package/browser/Options/Classes/Responsive.d.ts +2 -2
  439. package/browser/Options/Classes/Theme/Theme.d.ts +2 -2
  440. package/browser/Options/Classes/Theme/Theme.js +1 -1
  441. package/browser/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
  442. package/browser/Options/Classes/ValueWithRandom.d.ts +2 -2
  443. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
  444. package/browser/Options/Interfaces/IAnimatableColor.d.ts +1 -1
  445. package/browser/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
  446. package/browser/Options/Interfaces/IColorAnimation.d.ts +1 -1
  447. package/browser/Options/Interfaces/IColorAnimation.js +0 -4
  448. package/browser/Options/Interfaces/IManualParticle.d.ts +1 -1
  449. package/browser/Options/Interfaces/IOptions.d.ts +6 -6
  450. package/browser/Options/Interfaces/IOptionsGradient.d.ts +2 -2
  451. package/browser/Options/Interfaces/IResponsive.d.ts +2 -2
  452. package/browser/Options/Interfaces/IValueWithRandom.d.ts +1 -1
  453. package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
  454. package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
  455. package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
  456. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
  457. package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
  458. package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
  459. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
  460. package/browser/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
  461. package/browser/Options/Interfaces/Particles/IParticles.d.ts +14 -14
  462. package/browser/Options/Interfaces/Particles/IShadow.d.ts +1 -1
  463. package/browser/Options/Interfaces/Particles/IStroke.d.ts +1 -1
  464. package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
  465. package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
  466. package/browser/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
  467. package/browser/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
  468. package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
  469. package/browser/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
  470. package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
  471. package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
  472. package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
  473. package/browser/Options/Interfaces/Theme/ITheme.d.ts +2 -2
  474. package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
  475. package/browser/Plugins/Absorbers/AbsorberInstance.js +18 -18
  476. package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -3
  477. package/browser/Plugins/Absorbers/Absorbers.js +1 -1
  478. package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
  479. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
  480. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
  481. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
  482. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
  483. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
  484. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
  485. package/browser/Plugins/Absorbers/index.d.ts +1 -1
  486. package/browser/Plugins/Absorbers/index.js +3 -3
  487. package/browser/Plugins/Emitters/EmitterContainer.d.ts +2 -1
  488. package/browser/Plugins/Emitters/EmitterInstance.d.ts +5 -3
  489. package/browser/Plugins/Emitters/EmitterInstance.js +34 -35
  490. package/browser/Plugins/Emitters/Emitters.d.ts +3 -3
  491. package/browser/Plugins/Emitters/Emitters.js +11 -3
  492. package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
  493. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
  494. package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
  495. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
  496. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
  497. package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
  498. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
  499. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
  500. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  501. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  502. package/browser/Plugins/Emitters/index.d.ts +1 -1
  503. package/browser/Plugins/Emitters/index.js +9 -9
  504. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
  505. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  506. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
  507. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
  508. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
  509. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
  510. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
  511. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
  512. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
  513. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
  514. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
  515. package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
  516. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
  517. package/browser/Plugins/PolygonMask/Types.d.ts +1 -1
  518. package/browser/Plugins/PolygonMask/index.d.ts +1 -1
  519. package/browser/Plugins/PolygonMask/index.js +3 -3
  520. package/browser/Shapes/Circle/index.d.ts +1 -1
  521. package/browser/Shapes/Circle/index.js +2 -2
  522. package/browser/Shapes/Image/index.d.ts +1 -1
  523. package/browser/Shapes/Image/index.js +3 -3
  524. package/browser/Shapes/Line/index.d.ts +1 -1
  525. package/browser/Shapes/Line/index.js +2 -2
  526. package/browser/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  527. package/browser/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  528. package/browser/Shapes/Polygon/index.d.ts +3 -3
  529. package/browser/Shapes/Polygon/index.js +7 -7
  530. package/browser/Shapes/Square/index.d.ts +1 -1
  531. package/browser/Shapes/Square/index.js +3 -3
  532. package/browser/Shapes/Star/index.d.ts +1 -1
  533. package/browser/Shapes/Star/index.js +2 -2
  534. package/browser/Shapes/Text/index.d.ts +1 -1
  535. package/browser/Shapes/Text/index.js +3 -3
  536. package/browser/Types/ShapeData.d.ts +1 -1
  537. package/browser/Types/ShapeDrawerFunctions.d.ts +1 -1
  538. package/browser/Updaters/Angle/index.d.ts +1 -1
  539. package/browser/Updaters/Angle/index.js +2 -2
  540. package/browser/Updaters/Color/index.d.ts +1 -1
  541. package/browser/Updaters/Color/index.js +2 -2
  542. package/browser/Updaters/Life/index.d.ts +1 -1
  543. package/browser/Updaters/Life/index.js +2 -2
  544. package/browser/Updaters/Opacity/index.d.ts +1 -1
  545. package/browser/Updaters/Opacity/index.js +2 -2
  546. package/browser/Updaters/OutModes/IBounceData.d.ts +1 -1
  547. package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
  548. package/browser/Updaters/OutModes/index.d.ts +1 -1
  549. package/browser/Updaters/OutModes/index.js +2 -2
  550. package/browser/Updaters/Roll/index.d.ts +1 -1
  551. package/browser/Updaters/Roll/index.js +2 -2
  552. package/browser/Updaters/Size/index.d.ts +1 -1
  553. package/browser/Updaters/Size/index.js +2 -2
  554. package/browser/Updaters/StrokeColor/index.d.ts +1 -1
  555. package/browser/Updaters/StrokeColor/index.js +2 -2
  556. package/browser/Updaters/Tilt/index.d.ts +1 -1
  557. package/browser/Updaters/Tilt/index.js +2 -2
  558. package/browser/Updaters/Wobble/index.d.ts +1 -1
  559. package/browser/Updaters/Wobble/index.js +2 -2
  560. package/browser/Utils/CanvasUtils.d.ts +2 -3
  561. package/browser/Utils/CanvasUtils.js +1 -1
  562. package/browser/Utils/ColorUtils.js +1 -1
  563. package/browser/Utils/NumberUtils.d.ts +2 -2
  564. package/browser/Utils/Utils.d.ts +3 -3
  565. package/browser/Utils/Utils.js +1 -1
  566. package/browser/engine.d.ts +2 -2
  567. package/browser/full.d.ts +1 -1
  568. package/browser/full.js +14 -14
  569. package/browser/index.d.ts +1 -1
  570. package/browser/index.engine.d.ts +1 -1
  571. package/browser/index.engine.js +1 -1
  572. package/browser/index.js +1 -1
  573. package/browser/index.slim.d.ts +1 -1
  574. package/browser/index.slim.js +1 -1
  575. package/browser/pjs.d.ts +1 -1
  576. package/browser/slim.d.ts +1 -1
  577. package/browser/slim.js +40 -40
  578. package/engine.d.ts +2 -2
  579. package/esm/Core/Canvas.d.ts +1 -1
  580. package/esm/Core/Canvas.js +1 -1
  581. package/esm/Core/Container.d.ts +5 -5
  582. package/esm/Core/Container.js +3 -3
  583. package/esm/Core/Interfaces/Gradients.d.ts +2 -2
  584. package/esm/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  585. package/esm/Core/Interfaces/IContainerPlugin.d.ts +4 -4
  586. package/esm/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  587. package/esm/Core/Interfaces/IInteractor.d.ts +1 -1
  588. package/esm/Core/Interfaces/IParticle.d.ts +8 -8
  589. package/esm/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
  590. package/esm/Core/Interfaces/IParticleSpin.d.ts +1 -1
  591. package/esm/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
  592. package/esm/Core/Interfaces/IPlugin.d.ts +1 -1
  593. package/esm/Core/Loader.d.ts +1 -1
  594. package/esm/Core/Loader.js +1 -1
  595. package/esm/Core/Particle.d.ts +3 -3
  596. package/esm/Core/Particle.js +2 -2
  597. package/esm/Core/Particles.d.ts +3 -3
  598. package/esm/Core/Particles.js +2 -2
  599. package/esm/Core/Utils/Circle.d.ts +1 -1
  600. package/esm/Core/Utils/CircleWarp.d.ts +1 -1
  601. package/esm/Core/Utils/CircleWarp.js +1 -1
  602. package/esm/Core/Utils/EventListeners.js +1 -1
  603. package/esm/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  604. package/esm/Core/Utils/InteractionManager.d.ts +1 -1
  605. package/esm/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  606. package/esm/Core/Utils/ParticlesMover.d.ts +1 -1
  607. package/esm/Core/Utils/Plugins.d.ts +1 -1
  608. package/esm/Core/Utils/QuadTree.d.ts +3 -3
  609. package/esm/Core/Utils/QuadTree.js +1 -1
  610. package/esm/Core/Utils/Rectangle.d.ts +1 -1
  611. package/esm/Core/Utils/Vector3d.d.ts +1 -1
  612. package/esm/Interactions/External/Attract/Attractor.d.ts +1 -1
  613. package/esm/Interactions/External/Attract/Attractor.js +1 -1
  614. package/esm/Interactions/External/Attract/index.d.ts +1 -1
  615. package/esm/Interactions/External/Attract/index.js +2 -2
  616. package/esm/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  617. package/esm/Interactions/External/Bounce/Bouncer.js +1 -1
  618. package/esm/Interactions/External/Bounce/index.d.ts +1 -1
  619. package/esm/Interactions/External/Bounce/index.js +2 -2
  620. package/esm/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  621. package/esm/Interactions/External/Bubble/Bubbler.js +1 -1
  622. package/esm/Interactions/External/Bubble/index.d.ts +1 -1
  623. package/esm/Interactions/External/Bubble/index.js +2 -2
  624. package/esm/Interactions/External/Connect/Connector.js +1 -1
  625. package/esm/Interactions/External/Connect/index.d.ts +1 -1
  626. package/esm/Interactions/External/Connect/index.js +2 -2
  627. package/esm/Interactions/External/Grab/Grabber.d.ts +1 -1
  628. package/esm/Interactions/External/Grab/Grabber.js +1 -1
  629. package/esm/Interactions/External/Grab/index.d.ts +1 -1
  630. package/esm/Interactions/External/Grab/index.js +2 -2
  631. package/esm/Interactions/External/Repulse/Repulser.d.ts +1 -1
  632. package/esm/Interactions/External/Repulse/Repulser.js +1 -1
  633. package/esm/Interactions/External/Repulse/index.d.ts +1 -1
  634. package/esm/Interactions/External/Repulse/index.js +2 -2
  635. package/esm/Interactions/External/Trail/TrailMaker.js +1 -1
  636. package/esm/Interactions/External/Trail/index.d.ts +1 -1
  637. package/esm/Interactions/External/Trail/index.js +2 -2
  638. package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
  639. package/esm/Interactions/Particles/Attract/index.d.ts +1 -1
  640. package/esm/Interactions/Particles/Attract/index.js +2 -2
  641. package/esm/Interactions/Particles/Collisions/index.d.ts +1 -1
  642. package/esm/Interactions/Particles/Collisions/index.js +2 -2
  643. package/esm/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  644. package/esm/Interactions/Particles/Links/Linker.d.ts +1 -1
  645. package/esm/Interactions/Particles/Links/Linker.js +1 -1
  646. package/esm/Interactions/Particles/Links/index.d.ts +1 -1
  647. package/esm/Interactions/Particles/Links/index.js +4 -4
  648. package/esm/Interactions/Particles/Links/interaction.d.ts +1 -1
  649. package/esm/Interactions/Particles/Links/interaction.js +2 -2
  650. package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
  651. package/esm/Interactions/Particles/Links/plugin.js +2 -2
  652. package/esm/Options/Classes/AnimatableColor.d.ts +3 -3
  653. package/esm/Options/Classes/AnimatableColor.js +1 -1
  654. package/esm/Options/Classes/AnimatableGradient.d.ts +6 -6
  655. package/esm/Options/Classes/AnimationOptions.d.ts +2 -2
  656. package/esm/Options/Classes/Background/Background.d.ts +2 -2
  657. package/esm/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
  658. package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
  659. package/esm/Options/Classes/ColorAnimation.d.ts +1 -1
  660. package/esm/Options/Classes/HslAnimation.d.ts +2 -2
  661. package/esm/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
  662. package/esm/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
  663. package/esm/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
  664. package/esm/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
  665. package/esm/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
  666. package/esm/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
  667. package/esm/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
  668. package/esm/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
  669. package/esm/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
  670. package/esm/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
  671. package/esm/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
  672. package/esm/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
  673. package/esm/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
  674. package/esm/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
  675. package/esm/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
  676. package/esm/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
  677. package/esm/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
  678. package/esm/Options/Classes/Interactivity/Modes/Modes.js +4 -4
  679. package/esm/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
  680. package/esm/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
  681. package/esm/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
  682. package/esm/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
  683. package/esm/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
  684. package/esm/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
  685. package/esm/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
  686. package/esm/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
  687. package/esm/Options/Classes/ManualParticle.d.ts +2 -2
  688. package/esm/Options/Classes/Motion/Motion.d.ts +1 -1
  689. package/esm/Options/Classes/Options.d.ts +7 -7
  690. package/esm/Options/Classes/Options.js +7 -7
  691. package/esm/Options/Classes/OptionsColor.d.ts +2 -2
  692. package/esm/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
  693. package/esm/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
  694. package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
  695. package/esm/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
  696. package/esm/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
  697. package/esm/Options/Classes/Particles/Life/Life.d.ts +1 -1
  698. package/esm/Options/Classes/Particles/Links/Links.d.ts +2 -2
  699. package/esm/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
  700. package/esm/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
  701. package/esm/Options/Classes/Particles/Move/Attract.d.ts +2 -2
  702. package/esm/Options/Classes/Particles/Move/Move.d.ts +5 -5
  703. package/esm/Options/Classes/Particles/Move/Move.js +3 -3
  704. package/esm/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
  705. package/esm/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
  706. package/esm/Options/Classes/Particles/Move/Spin.d.ts +3 -3
  707. package/esm/Options/Classes/Particles/Move/Trail.d.ts +2 -2
  708. package/esm/Options/Classes/Particles/Number/Density.d.ts +1 -1
  709. package/esm/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
  710. package/esm/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
  711. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
  712. package/esm/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
  713. package/esm/Options/Classes/Particles/Orbit/Orbit.js +2 -2
  714. package/esm/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
  715. package/esm/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
  716. package/esm/Options/Classes/Particles/ParticlesOptions.js +13 -13
  717. package/esm/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
  718. package/esm/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
  719. package/esm/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
  720. package/esm/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
  721. package/esm/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
  722. package/esm/Options/Classes/Particles/Shadow.d.ts +3 -3
  723. package/esm/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
  724. package/esm/Options/Classes/Particles/Size/Size.d.ts +2 -2
  725. package/esm/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
  726. package/esm/Options/Classes/Particles/Stroke.d.ts +2 -2
  727. package/esm/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
  728. package/esm/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
  729. package/esm/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
  730. package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
  731. package/esm/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
  732. package/esm/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
  733. package/esm/Options/Classes/Random.d.ts +1 -1
  734. package/esm/Options/Classes/Responsive.d.ts +2 -2
  735. package/esm/Options/Classes/Theme/Theme.d.ts +2 -2
  736. package/esm/Options/Classes/Theme/Theme.js +1 -1
  737. package/esm/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
  738. package/esm/Options/Classes/ValueWithRandom.d.ts +2 -2
  739. package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
  740. package/esm/Options/Interfaces/IAnimatableColor.d.ts +1 -1
  741. package/esm/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
  742. package/esm/Options/Interfaces/IColorAnimation.d.ts +1 -1
  743. package/esm/Options/Interfaces/IManualParticle.d.ts +1 -1
  744. package/esm/Options/Interfaces/IOptions.d.ts +6 -6
  745. package/esm/Options/Interfaces/IOptionsGradient.d.ts +2 -2
  746. package/esm/Options/Interfaces/IResponsive.d.ts +2 -2
  747. package/esm/Options/Interfaces/IValueWithRandom.d.ts +1 -1
  748. package/esm/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
  749. package/esm/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
  750. package/esm/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
  751. package/esm/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
  752. package/esm/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
  753. package/esm/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
  754. package/esm/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
  755. package/esm/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
  756. package/esm/Options/Interfaces/Particles/IParticles.d.ts +14 -14
  757. package/esm/Options/Interfaces/Particles/IShadow.d.ts +1 -1
  758. package/esm/Options/Interfaces/Particles/IStroke.d.ts +1 -1
  759. package/esm/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
  760. package/esm/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
  761. package/esm/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
  762. package/esm/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
  763. package/esm/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
  764. package/esm/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
  765. package/esm/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
  766. package/esm/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
  767. package/esm/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
  768. package/esm/Options/Interfaces/Theme/ITheme.d.ts +2 -2
  769. package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
  770. package/esm/Plugins/Absorbers/AbsorberInstance.js +18 -18
  771. package/esm/Plugins/Absorbers/Absorbers.d.ts +3 -3
  772. package/esm/Plugins/Absorbers/Absorbers.js +1 -1
  773. package/esm/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
  774. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
  775. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
  776. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
  777. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
  778. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
  779. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
  780. package/esm/Plugins/Absorbers/index.d.ts +1 -1
  781. package/esm/Plugins/Absorbers/index.js +3 -3
  782. package/esm/Plugins/Emitters/EmitterContainer.d.ts +2 -1
  783. package/esm/Plugins/Emitters/EmitterInstance.d.ts +5 -3
  784. package/esm/Plugins/Emitters/EmitterInstance.js +34 -35
  785. package/esm/Plugins/Emitters/Emitters.d.ts +3 -3
  786. package/esm/Plugins/Emitters/Emitters.js +11 -3
  787. package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
  788. package/esm/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
  789. package/esm/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
  790. package/esm/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
  791. package/esm/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
  792. package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
  793. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
  794. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
  795. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  796. package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  797. package/esm/Plugins/Emitters/index.d.ts +1 -1
  798. package/esm/Plugins/Emitters/index.js +9 -9
  799. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
  800. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  801. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
  802. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
  803. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
  804. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
  805. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
  806. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
  807. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
  808. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
  809. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
  810. package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
  811. package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
  812. package/esm/Plugins/PolygonMask/Types.d.ts +1 -1
  813. package/esm/Plugins/PolygonMask/index.d.ts +1 -1
  814. package/esm/Plugins/PolygonMask/index.js +3 -3
  815. package/esm/Shapes/Circle/index.d.ts +1 -1
  816. package/esm/Shapes/Circle/index.js +2 -2
  817. package/esm/Shapes/Image/index.d.ts +1 -1
  818. package/esm/Shapes/Image/index.js +3 -3
  819. package/esm/Shapes/Line/index.d.ts +1 -1
  820. package/esm/Shapes/Line/index.js +2 -2
  821. package/esm/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  822. package/esm/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  823. package/esm/Shapes/Polygon/index.d.ts +3 -3
  824. package/esm/Shapes/Polygon/index.js +7 -7
  825. package/esm/Shapes/Square/index.d.ts +1 -1
  826. package/esm/Shapes/Square/index.js +3 -3
  827. package/esm/Shapes/Star/index.d.ts +1 -1
  828. package/esm/Shapes/Star/index.js +2 -2
  829. package/esm/Shapes/Text/index.d.ts +1 -1
  830. package/esm/Shapes/Text/index.js +3 -3
  831. package/esm/Types/ShapeData.d.ts +1 -1
  832. package/esm/Types/ShapeDrawerFunctions.d.ts +1 -1
  833. package/esm/Updaters/Angle/index.d.ts +1 -1
  834. package/esm/Updaters/Angle/index.js +2 -2
  835. package/esm/Updaters/Color/index.d.ts +1 -1
  836. package/esm/Updaters/Color/index.js +2 -2
  837. package/esm/Updaters/Life/index.d.ts +1 -1
  838. package/esm/Updaters/Life/index.js +2 -2
  839. package/esm/Updaters/Opacity/index.d.ts +1 -1
  840. package/esm/Updaters/Opacity/index.js +2 -2
  841. package/esm/Updaters/OutModes/IBounceData.d.ts +1 -1
  842. package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
  843. package/esm/Updaters/OutModes/index.d.ts +1 -1
  844. package/esm/Updaters/OutModes/index.js +2 -2
  845. package/esm/Updaters/Roll/index.d.ts +1 -1
  846. package/esm/Updaters/Roll/index.js +2 -2
  847. package/esm/Updaters/Size/index.d.ts +1 -1
  848. package/esm/Updaters/Size/index.js +2 -2
  849. package/esm/Updaters/StrokeColor/index.d.ts +1 -1
  850. package/esm/Updaters/StrokeColor/index.js +2 -2
  851. package/esm/Updaters/Tilt/index.d.ts +1 -1
  852. package/esm/Updaters/Tilt/index.js +2 -2
  853. package/esm/Updaters/Wobble/index.d.ts +1 -1
  854. package/esm/Updaters/Wobble/index.js +2 -2
  855. package/esm/Utils/CanvasUtils.d.ts +2 -3
  856. package/esm/Utils/CanvasUtils.js +1 -1
  857. package/esm/Utils/ColorUtils.js +1 -1
  858. package/esm/Utils/NumberUtils.d.ts +2 -2
  859. package/esm/Utils/Utils.d.ts +3 -3
  860. package/esm/Utils/Utils.js +1 -1
  861. package/esm/engine.d.ts +2 -2
  862. package/esm/full.d.ts +1 -1
  863. package/esm/full.js +14 -14
  864. package/esm/index.d.ts +1 -1
  865. package/esm/index.engine.d.ts +1 -1
  866. package/esm/index.engine.js +1 -1
  867. package/esm/index.js +1 -1
  868. package/esm/index.slim.d.ts +1 -1
  869. package/esm/index.slim.js +1 -1
  870. package/esm/pjs.d.ts +1 -1
  871. package/esm/slim.d.ts +1 -1
  872. package/esm/slim.js +40 -40
  873. package/full.d.ts +1 -1
  874. package/full.js +14 -14
  875. package/index.d.ts +1 -1
  876. package/index.engine.d.ts +1 -1
  877. package/index.engine.js +1 -1
  878. package/index.js +1 -1
  879. package/index.slim.d.ts +1 -1
  880. package/index.slim.js +1 -1
  881. package/package.json +1 -1
  882. package/pjs.d.ts +1 -1
  883. package/report.html +2 -2
  884. package/report.slim.html +2 -2
  885. package/slim.d.ts +1 -1
  886. package/slim.js +40 -40
  887. package/tsparticles.engine.js +2359 -2359
  888. package/tsparticles.engine.min.js +2 -2
  889. package/tsparticles.interaction.external.attract.js +3943 -3943
  890. package/tsparticles.interaction.external.attract.min.js +2 -2
  891. package/tsparticles.interaction.external.bounce.js +4058 -4058
  892. package/tsparticles.interaction.external.bounce.min.js +2 -2
  893. package/tsparticles.interaction.external.bubble.js +3886 -3886
  894. package/tsparticles.interaction.external.bubble.min.js +2 -2
  895. package/tsparticles.interaction.external.connect.js +4040 -4040
  896. package/tsparticles.interaction.external.connect.min.js +2 -2
  897. package/tsparticles.interaction.external.grab.js +4040 -4040
  898. package/tsparticles.interaction.external.grab.min.js +2 -2
  899. package/tsparticles.interaction.external.repulse.js +4058 -4058
  900. package/tsparticles.interaction.external.repulse.min.js +2 -2
  901. package/tsparticles.interaction.external.trail.js +4040 -4040
  902. package/tsparticles.interaction.external.trail.min.js +2 -2
  903. package/tsparticles.interaction.particles.attract.js +4042 -4042
  904. package/tsparticles.interaction.particles.attract.min.js +2 -2
  905. package/tsparticles.interaction.particles.collisions.js +882 -882
  906. package/tsparticles.interaction.particles.collisions.min.js +1 -1
  907. package/tsparticles.interaction.particles.links.js +4002 -4002
  908. package/tsparticles.interaction.particles.links.min.js +2 -2
  909. package/tsparticles.js +6215 -6209
  910. package/tsparticles.min.js +2 -2
  911. package/tsparticles.pathseg.min.js +1 -1
  912. package/tsparticles.plugins.absorbers.js +1027 -1028
  913. package/tsparticles.plugins.absorbers.min.js +2 -2
  914. package/tsparticles.plugins.emitters.js +1636 -1629
  915. package/tsparticles.plugins.emitters.min.js +2 -2
  916. package/tsparticles.plugins.polygonMask.js +2620 -2620
  917. package/tsparticles.plugins.polygonMask.min.js +2 -2
  918. package/tsparticles.shape.circle.js +2 -2
  919. package/tsparticles.shape.circle.min.js +1 -1
  920. package/tsparticles.shape.image.js +883 -883
  921. package/tsparticles.shape.image.min.js +1 -1
  922. package/tsparticles.shape.line.js +2 -2
  923. package/tsparticles.shape.line.min.js +1 -1
  924. package/tsparticles.shape.polygon.js +7 -7
  925. package/tsparticles.shape.polygon.min.js +1 -1
  926. package/tsparticles.shape.square.js +3 -3
  927. package/tsparticles.shape.square.min.js +1 -1
  928. package/tsparticles.shape.star.js +2 -2
  929. package/tsparticles.shape.star.min.js +1 -1
  930. package/tsparticles.shape.text.js +882 -882
  931. package/tsparticles.shape.text.min.js +1 -1
  932. package/tsparticles.slim.js +3561 -3561
  933. package/tsparticles.slim.min.js +2 -2
  934. package/tsparticles.updater.angle.js +882 -882
  935. package/tsparticles.updater.angle.min.js +1 -1
  936. package/tsparticles.updater.color.js +882 -882
  937. package/tsparticles.updater.color.min.js +1 -1
  938. package/tsparticles.updater.life.js +882 -882
  939. package/tsparticles.updater.life.min.js +1 -1
  940. package/tsparticles.updater.opacity.js +882 -882
  941. package/tsparticles.updater.opacity.min.js +1 -1
  942. package/tsparticles.updater.outModes.js +882 -882
  943. package/tsparticles.updater.outModes.min.js +1 -1
  944. package/tsparticles.updater.roll.js +882 -882
  945. package/tsparticles.updater.roll.min.js +1 -1
  946. package/tsparticles.updater.size.js +882 -882
  947. package/tsparticles.updater.size.min.js +1 -1
  948. package/tsparticles.updater.strokeColor.js +882 -882
  949. package/tsparticles.updater.strokeColor.min.js +1 -1
  950. package/tsparticles.updater.tilt.js +882 -882
  951. package/tsparticles.updater.tilt.min.js +1 -1
  952. package/tsparticles.updater.wobble.js +882 -882
  953. package/tsparticles.updater.wobble.min.js +1 -1
@@ -20,8 +20,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.loadPolygonMaskPlugin = void 0;
23
- const PolygonMaskInstance_1 = require("./PolygonMaskInstance");
24
23
  const PolygonMask_1 = require("./Options/Classes/PolygonMask");
24
+ const PolygonMaskInstance_1 = require("./PolygonMaskInstance");
25
25
  const Utils_1 = require("../../Utils");
26
26
  class PolygonMaskPlugin {
27
27
  constructor() {
@@ -46,11 +46,11 @@ class PolygonMaskPlugin {
46
46
  polygonOptions.load(source === null || source === void 0 ? void 0 : source.polygon);
47
47
  }
48
48
  }
49
- async function loadPolygonMaskPlugin(tsParticles) {
49
+ async function loadPolygonMaskPlugin(engine) {
50
50
  if (!(0, Utils_1.isSsr)() && !("SVGPathSeg" in window)) {
51
51
  await Promise.resolve().then(() => __importStar(require("./pathseg")));
52
52
  }
53
53
  const plugin = new PolygonMaskPlugin();
54
- await tsParticles.addPlugin(plugin);
54
+ await engine.addPlugin(plugin);
55
55
  }
56
56
  exports.loadPolygonMaskPlugin = loadPolygonMaskPlugin;
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  **A lightweight TypeScript library for creating particles. Dependency free (\*), browser ready and compatible with
6
6
  React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.js, Solid.js, and Web Components**
7
7
 
8
- [![Rate on Openbase](https://badges.openbase.com/js/rating/tsparticles.svg)](https://openbase.com/js/tsparticles?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles/badge?style=rounded)](https://www.jsdelivr.com/package/npm/tsparticles) [![Cdnjs](https://img.shields.io/cdnjs/v/tsparticles)](https://cdnjs.com/libraries/tsparticles) [![npmjs](https://badge.fury.io/js/tsparticles.svg)](https://www.npmjs.com/package/tsparticles) [![npm](https://img.shields.io/npm/dm/tsparticles)](https://www.npmjs.com/package/tsparticles) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/) [![CodeFactor](https://www.codefactor.io/repository/github/matteobruni/tsparticles/badge)](https://www.codefactor.io/repository/github/matteobruni/tsparticles) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b983aaf3461a4c48b1e2eecce1ff1d74)](https://www.codacy.com/manual/ar3s/tsparticles?utm_source=github.com&utm_medium=referral&utm_content=matteobruni/tsparticles&utm_campaign=Badge_Grade)
8
+ [![Rate on Openbase](https://badges.openbase.com/js/rating/tsparticles.svg)](https://openbase.com/js/tsparticles?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles/badge?style=rounded)](https://www.jsdelivr.com/package/npm/tsparticles) [![Cdnjs](https://img.shields.io/cdnjs/v/tsparticles)](https://cdnjs.com/libraries/tsparticles) [![npmjs](https://badge.fury.io/js/tsparticles.svg)](https://www.npmjs.com/package/tsparticles) [![npm](https://img.shields.io/npm/dm/tsparticles)](https://www.npmjs.com/package/tsparticles) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/) [![CodeFactor](https://www.codefactor.io/repository/github/matteobruni/tsparticles/badge)](https://www.codefactor.io/repository/github/matteobruni/tsparticles) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b983aaf3461a4c48b1e2eecce1ff1d74)](https://www.codacy.com/manual/ar3s/tsparticles?utm_source=github.com&utm_medium=referral&utm_content=matteobruni/tsparticles&utm_campaign=Badge_Grade) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/matteobruni/tsparticles) [![Run on Repl.it](https://repl.it/badge/github/matteobruni/tsparticles)](https://repl.it/github/matteobruni/tsparticles)
9
9
 
10
10
  [![Slack](https://particles.js.org/images/slack.png)](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI) [![Discord](https://particles.js.org/images/discord.png)](https://discord.gg/hACwv45Hme) [![Telegram](https://particles.js.org/images/telegram.png)](https://t.me/tsparticles)
11
11
 
@@ -30,6 +30,19 @@ React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.j
30
30
  - [VueJS 3.x](#VueJS-3x)
31
31
  - [Web Components](#Web-Components)
32
32
  - [WordPress](#WordPress)
33
+ - [Presets](#Presets)
34
+ - [Big Circles](#Big-Circles)
35
+ - [Bubbles](#Bubbles)
36
+ - [Confetti](#Confetti)
37
+ - [Fire](#Fire)
38
+ - [Firefly](#Firefly)
39
+ - [Fireworks](#Fireworks)
40
+ - [Fountain](#fountain)
41
+ - [Links](#links)
42
+ - [Sea Anemone](#Sea-Anemone)
43
+ - [Snow](#Snow)
44
+ - [Stars](#Stars)
45
+ - [Triangles](#Triangles)
33
46
  - [Templates and Resources](#Templates-and-Resources)
34
47
  - [Demo / Generator](#Demo--Generator)
35
48
  - [Characters as particles](#Characters-as-particles)
@@ -59,8 +72,9 @@ links you need, and _don't be scared by **TypeScript**, it's just the source lan
59
72
  CDNs and `npm` have all the sources you need in **Javascript**, a bundle browser ready (tsparticles.min.js) and all
60
73
  files splitted for `import` syntax.
61
74
 
62
- **If you are still interested** some lines below there are some instructions for migrating from the old particles.js
63
- library.
75
+ **If you are interested** there are some _simple instructions_
76
+ just [below](https://github.com/matteobruni/tsparticles/blob/main/README.md#library-installation) to guide you to
77
+ migrate from the old particles.js library.
64
78
 
65
79
  ## **_Library installation_**
66
80
 
@@ -315,59 +329,189 @@ the `Premium Addons for Elementor` plugin collection.
315
329
 
316
330
  ---
317
331
 
332
+ ## Presets
333
+
334
+ There are some presets ready to be used in this repository, and they have also a bundle file that contains everything
335
+ needed to run.
336
+
337
+ ### Big Circles
338
+
339
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-big-circles/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-big-circles) [![npmjs](https://badge.fury.io/js/tsparticles-preset-big-circles.svg)](https://www.npmjs.com/package/tsparticles-preset-big-circles) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-big-circles)](https://www.npmjs.com/package/tsparticles-preset-big-circles)
340
+
341
+ This preset loads big colored circles moving upwards on a white background.
342
+
343
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/bigCircles/images/sample.png)](https://particles.js.org/samples/presets/bigCircles)
344
+
345
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/bigCircles/README.md)
346
+
347
+ ### Bubbles
348
+
349
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-bubbles/badge)](https://www.jsdelivr.com/package/npm/tsparticles) [![npmjs](https://badge.fury.io/js/tsparticles-preset-bubbles.svg)](https://www.npmjs.com/package/tsparticles-preset-bubbles) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-bubbles)](https://www.npmjs.com/package/tsparticles-preset-bubbles)
350
+
351
+ This preset loads colored bubbles coming from the bottom of the screen on a white background.
352
+
353
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/bubbles/images/sample.png)](https://particles.js.org/samples/presets/bubbles)
354
+
355
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/bubbles/README.md)
356
+
357
+ ### Confetti
358
+
359
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-confetti/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-confetti) [![npmjs](https://badge.fury.io/js/tsparticles-preset-confetti.svg)](https://www.npmjs.com/package/tsparticles-preset-confetti) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-confetti)](https://www.npmjs.com/package/tsparticles-preset-confetti)
360
+
361
+ This preset loads white and red confetti launched from the screen center on a transparent background.
362
+
363
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/confetti/images/sample.png)](https://particles.js.org/samples/presets/confetti)
364
+
365
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/confetti/README.md)
366
+
367
+ ### Fire
368
+
369
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-fire/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-fire) [![npmjs](https://badge.fury.io/js/tsparticles-preset-fire.svg)](https://www.npmjs.com/package/tsparticles-preset-fire) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-fire)](https://www.npmjs.com/package/tsparticles-preset-fire)
370
+
371
+ This preset loads a faded red to black background with particles colored like fire and ash sparks.
372
+
373
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/fire/images/sample.png)](https://particles.js.org/samples/presets/fire)
374
+
375
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/fire/README.md)
376
+
377
+ ### Firefly
378
+
379
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-firefly/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-firefly) [![npmjs](https://badge.fury.io/js/tsparticles-preset-firefly.svg)](https://www.npmjs.com/package/tsparticles-preset-firefly) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-firefly)](https://www.npmjs.com/package/tsparticles-preset-firefly)
380
+
381
+ This preset loads a mouse trail made with small fading particles like little fireflies.
382
+
383
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/firefly/images/sample.png)](https://particles.js.org/samples/presets/firefly)
384
+
385
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/firefly/README.md)
386
+
387
+ ### Fireworks
388
+
389
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-fireworks/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-fireworks) [![npmjs](https://badge.fury.io/js/tsparticles-preset-fireworks.svg)](https://www.npmjs.com/package/tsparticles-preset-fireworks) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-fireworks)](https://www.npmjs.com/package/tsparticles-preset-fireworks)
390
+
391
+ This preset loads a beautiful fireworks effect.
392
+
393
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/fireworks/images/sample.png)](https://particles.js.org/samples/presets/fireworks)
394
+
395
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/fireworks/README.md)
396
+
397
+ ### Fountain
398
+
399
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-fountain/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-fountain) [![npmjs](https://badge.fury.io/js/tsparticles-preset-fountain.svg)](https://www.npmjs.com/package/tsparticles-preset-fountain) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-fountain)](https://www.npmjs.com/package/tsparticles-preset-fountain)
400
+
401
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/fountain/images/sample.png)](https://particles.js.org/samples/presets/fountain)
402
+
403
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/fountain/README.md)
404
+
405
+ ### Links
406
+
407
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-links/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-links) [![npmjs](https://badge.fury.io/js/tsparticles-preset-links.svg)](https://www.npmjs.com/package/tsparticles-preset-links) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-links)](https://www.npmjs.com/package/tsparticles-preset-links)
408
+
409
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/links/images/sample.png)](https://particles.js.org/samples/presets/links)
410
+
411
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/links/README.md)
412
+
413
+ ### Sea Anemone
414
+
415
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-sea-anemone/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-sea-anemone) [![npmjs](https://badge.fury.io/js/tsparticles-preset-sea-anemone.svg)](https://www.npmjs.com/package/tsparticles-preset-sea-anemone) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-sea-anemone)](https://www.npmjs.com/package/tsparticles-preset-sea-anemone)
416
+
417
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/seaAnemone/images/sample.png)](https://particles.js.org/samples/presets/seaAnemone)
418
+
419
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/seaAnemone/README.md)
420
+
421
+ ### Snow
422
+
423
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-snow/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-snow) [![npmjs](https://badge.fury.io/js/tsparticles-preset-snow.svg)](https://www.npmjs.com/package/tsparticles-preset-snow) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-snow)](https://www.npmjs.com/package/tsparticles-preset-snow)
424
+
425
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/snow/images/sample.png)](https://particles.js.org/samples/presets/snow)
426
+
427
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/snow/README.md)
428
+
429
+ ### Stars
430
+
431
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-stars/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-stars) [![npmjs](https://badge.fury.io/js/tsparticles-preset-stars.svg)](https://www.npmjs.com/package/tsparticles-preset-stars) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-stars)](https://www.npmjs.com/package/tsparticles-preset-stars)
432
+
433
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/stars/images/sample.png)](https://particles.js.org/samples/presets/stars)
434
+
435
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/stars/README.md)
436
+
437
+ ### Triangles
438
+
439
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-triangles/badge)](https://www.jsdelivr.com/package/npm/tsparticles-preset-triangles) [![npmjs](https://badge.fury.io/js/tsparticles-preset-triangles.svg)](https://www.npmjs.com/package/tsparticles-preset-triangles) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-triangles)](https://www.npmjs.com/package/tsparticles-preset-triangles)
440
+
441
+ [![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/main/presets/triangles/images/sample.png)](https://particles.js.org/samples/presets/triangles)
442
+
443
+ You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/triangles/README.md)
444
+
445
+ ---
446
+
447
+ ## Templates and Resources
448
+
449
+ You can find some tsParticles related templates [here](https://github.com/tsparticles/templates). The templates are
450
+ created for _Vanilla Javascript_, _ReactJS_, _VueJS_, _Angular_, _SvelteJS_ and other frameworks.
451
+
452
+ The templates will vary, new ones can be created or older ones updated with latest features or changed to a better
453
+ style. Check them out once in a while.
454
+
455
+ If you created some good design with _tsParticles_ feel free to submit a pull request with your cool template, you'll be
456
+ credited as the template author!
457
+
458
+ <https://github.com/tsparticles/templates>
459
+
460
+ ---
461
+
318
462
  ## **_Demo / Generator_**
319
463
 
320
- <https://particles.js.org/>
464
+ <https://particles.js.org/samples>
321
465
 
322
- [![Particles demo](https://particles.js.org/images/demo.png?v=1.8.1)](https://particles.js.org/)
466
+ [![Particles demo](https://particles.js.org/images/demo.png?v=1.8.1)](https://particles.js.org/samples)
323
467
 
324
468
  ---
325
469
 
326
470
  ### Characters as particles
327
471
 
328
- [![Particles chars demo](https://media.giphy.com/media/JsssOXz72bM6jGEZ0s/giphy.gif)](https://particles.js.org/#chars)
472
+ [![Particles chars demo](https://media.giphy.com/media/JsssOXz72bM6jGEZ0s/giphy.gif)](https://particles.js.org/samples#chars)
329
473
 
330
474
  ---
331
475
 
332
476
  ### Mouse hover connections
333
477
 
334
- [![Particles mouse connections demo](https://media.giphy.com/media/XzvZThpVbxHxMYz5xt/giphy.gif)](https://particles.js.org/#connect)
478
+ [![Particles mouse connections demo](https://media.giphy.com/media/XzvZThpVbxHxMYz5xt/giphy.gif)](https://particles.js.org/samples#connect)
335
479
 
336
480
  ---
337
481
 
338
482
  ### Polygon mask
339
483
 
340
- [![tsParticles Polygon Mask demo](https://media.giphy.com/media/lNRfiSgaMFbL4FMhW6/giphy.gif)](https://particles.js.org/#polygonMask)
484
+ [![tsParticles Polygon Mask demo](https://media.giphy.com/media/lNRfiSgaMFbL4FMhW6/giphy.gif)](https://particles.js.org/samples#polygonMask)
341
485
 
342
486
  ---
343
487
 
344
488
  ### Animated stars
345
489
 
346
- [![Particles NASA demo](https://media.giphy.com/media/cLqGsnh7FKRVMgPIWE/giphy.gif)](https://particles.js.org/#nasa)
490
+ [![Particles NASA demo](https://media.giphy.com/media/cLqGsnh7FKRVMgPIWE/giphy.gif)](https://particles.js.org/samples#nasa)
347
491
 
348
492
  ---
349
493
 
350
494
  ### Nyan cat flying on scrolling stars
351
495
 
352
- [![Particles Nyan Cat demo](https://media.giphy.com/media/LpX2oNc9ZMgIhIXQL9/giphy.gif)](https://particles.js.org/#nyancat2)
496
+ [![Particles Nyan Cat demo](https://media.giphy.com/media/LpX2oNc9ZMgIhIXQL9/giphy.gif)](https://particles.js.org/samples#nyancat2)
353
497
 
354
498
  ---
355
499
 
356
500
  ### Snow particles
357
501
 
358
- [![tsParticles Snow demo](https://media.giphy.com/media/gihwUFbmiubbkdzEMX/giphy.gif)](https://particles.js.org/#snow)
502
+ [![tsParticles Snow demo](https://media.giphy.com/media/gihwUFbmiubbkdzEMX/giphy.gif)](https://particles.js.org/samples#snow)
359
503
 
360
504
  ---
361
505
 
362
506
  ### Background Mask particles
363
507
 
364
- [![tsParticles Background Mask demo](https://media.giphy.com/media/dWraWgqInWFGWiOyRu/giphy.gif)](https://particles.js.org/#background)
508
+ [![tsParticles Background Mask demo](https://media.giphy.com/media/dWraWgqInWFGWiOyRu/giphy.gif)](https://particles.js.org/samples#background)
365
509
 
366
510
  ---
367
511
 
368
512
  #### COVID-19 SARS-CoV-2 particles
369
513
 
370
- [![tsParticles COVID-19 demo](https://media.giphy.com/media/fsVN1ZHksgBIXNIbr1/giphy.gif)](https://particles.js.org/#virus)
514
+ [![tsParticles COVID-19 demo](https://media.giphy.com/media/fsVN1ZHksgBIXNIbr1/giphy.gif)](https://particles.js.org/samples#virus)
371
515
 
372
516
  _Don't click! DON'T CLICK! OH NO IT'S SPREADING!!!!_
373
517
 
@@ -377,14 +521,14 @@ _Don't click! DON'T CLICK! OH NO IT'S SPREADING!!!!_
377
521
 
378
522
  **particles.json**
379
523
 
380
- You can find a sample config [here](https://particles.js.org/docs/modules/_core_container_.html) 📖
524
+ You can find some config samples [here](https://github.com/matteobruni/tsparticles/tree/main/website/presets) 📖
381
525
 
382
526
  ---
383
527
 
384
528
  ## **_Options_**
385
529
 
386
530
  You can find all options
387
- available [here](https://particles.js.org/docs/interfaces/_options_interfaces_ioptions_.ioptions.html) 📖
531
+ available [here](https://particles.js.org/docs/interfaces/Options_Interfaces_IOptions.IOptions.html) 📖
388
532
 
389
533
  ## Want to see it in action and try it?
390
534
 
@@ -428,4 +572,4 @@ tsParticles now supports some customizations 🥳.
428
572
 
429
573
  **You can create your own plugins**
430
574
 
431
- _Read more [here](https://particles.js.org/docs/modules/_core_interfaces_iplugin_.html)...\_
575
+ _Read more [here](https://particles.js.org/docs/modules/Core_Interfaces_IPlugin.html)..._
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadCircleShape(tsParticles: Engine): Promise<void>;
2
+ export declare function loadCircleShape(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadCircleShape = void 0;
4
4
  const CircleDrawer_1 = require("./CircleDrawer");
5
- async function loadCircleShape(tsParticles) {
6
- await tsParticles.addShape("circle", new CircleDrawer_1.CircleDrawer());
5
+ async function loadCircleShape(engine) {
6
+ await engine.addShape("circle", new CircleDrawer_1.CircleDrawer());
7
7
  }
8
8
  exports.loadCircleShape = loadCircleShape;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadImageShape(tsParticles: Engine): Promise<void>;
2
+ export declare function loadImageShape(engine: Engine): Promise<void>;
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadImageShape = void 0;
4
4
  const ImageDrawer_1 = require("./ImageDrawer");
5
- async function loadImageShape(tsParticles) {
5
+ async function loadImageShape(engine) {
6
6
  const imageDrawer = new ImageDrawer_1.ImageDrawer();
7
- await tsParticles.addShape("image", imageDrawer);
8
- await tsParticles.addShape("images", imageDrawer);
7
+ await engine.addShape("image", imageDrawer);
8
+ await engine.addShape("images", imageDrawer);
9
9
  }
10
10
  exports.loadImageShape = loadImageShape;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadLineShape(tsParticles: Engine): Promise<void>;
2
+ export declare function loadLineShape(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadLineShape = void 0;
4
4
  const LineDrawer_1 = require("./LineDrawer");
5
- async function loadLineShape(tsParticles) {
6
- await tsParticles.addShape("line", new LineDrawer_1.LineDrawer());
5
+ async function loadLineShape(engine) {
6
+ await engine.addShape("line", new LineDrawer_1.LineDrawer());
7
7
  }
8
8
  exports.loadLineShape = loadLineShape;
@@ -1,6 +1,6 @@
1
+ import type { ICoordinates, IParticle } from "../../Core";
1
2
  import type { ISide } from "./PolygonDrawerBase";
2
3
  import { PolygonDrawerBase } from "./PolygonDrawerBase";
3
- import type { ICoordinates, IParticle } from "../../Core";
4
4
  export declare class PolygonDrawer extends PolygonDrawerBase {
5
5
  getSidesData(particle: IParticle, radius: number): ISide;
6
6
  getCenter(particle: IParticle, radius: number): ICoordinates;
@@ -1,5 +1,5 @@
1
- import type { ISide } from "./PolygonDrawerBase";
2
1
  import type { ICoordinates, IParticle } from "../../Core";
2
+ import type { ISide } from "./PolygonDrawerBase";
3
3
  import { PolygonDrawerBase } from "./PolygonDrawerBase";
4
4
  export declare class TriangleDrawer extends PolygonDrawerBase {
5
5
  getSidesCount(): number;
@@ -1,4 +1,4 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadGenericPolygonShape(tsParticles: Engine): Promise<void>;
3
- export declare function loadTriangleShape(tsParticles: Engine): Promise<void>;
4
- export declare function loadPolygonShape(tsParticles: Engine): Promise<void>;
2
+ export declare function loadGenericPolygonShape(engine: Engine): Promise<void>;
3
+ export declare function loadTriangleShape(engine: Engine): Promise<void>;
4
+ export declare function loadPolygonShape(engine: Engine): Promise<void>;
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadPolygonShape = exports.loadTriangleShape = exports.loadGenericPolygonShape = void 0;
4
4
  const PolygonDrawer_1 = require("./PolygonDrawer");
5
5
  const TriangleDrawer_1 = require("./TriangleDrawer");
6
- async function loadGenericPolygonShape(tsParticles) {
7
- await tsParticles.addShape("polygon", new PolygonDrawer_1.PolygonDrawer());
6
+ async function loadGenericPolygonShape(engine) {
7
+ await engine.addShape("polygon", new PolygonDrawer_1.PolygonDrawer());
8
8
  }
9
9
  exports.loadGenericPolygonShape = loadGenericPolygonShape;
10
- async function loadTriangleShape(tsParticles) {
11
- await tsParticles.addShape("triangle", new TriangleDrawer_1.TriangleDrawer());
10
+ async function loadTriangleShape(engine) {
11
+ await engine.addShape("triangle", new TriangleDrawer_1.TriangleDrawer());
12
12
  }
13
13
  exports.loadTriangleShape = loadTriangleShape;
14
- async function loadPolygonShape(tsParticles) {
15
- await loadGenericPolygonShape(tsParticles);
16
- await loadTriangleShape(tsParticles);
14
+ async function loadPolygonShape(engine) {
15
+ await loadGenericPolygonShape(engine);
16
+ await loadTriangleShape(engine);
17
17
  }
18
18
  exports.loadPolygonShape = loadPolygonShape;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadSquareShape(tsParticles: Engine): Promise<void>;
2
+ export declare function loadSquareShape(engine: Engine): Promise<void>;
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadSquareShape = void 0;
4
4
  const SquareDrawer_1 = require("./SquareDrawer");
5
- async function loadSquareShape(tsParticles) {
5
+ async function loadSquareShape(engine) {
6
6
  const drawer = new SquareDrawer_1.SquareDrawer();
7
- await tsParticles.addShape("edge", drawer);
8
- await tsParticles.addShape("square", drawer);
7
+ await engine.addShape("edge", drawer);
8
+ await engine.addShape("square", drawer);
9
9
  }
10
10
  exports.loadSquareShape = loadSquareShape;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadStarShape(tsParticles: Engine): Promise<void>;
2
+ export declare function loadStarShape(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadStarShape = void 0;
4
4
  const StarDrawer_1 = require("./StarDrawer");
5
- async function loadStarShape(tsParticles) {
6
- await tsParticles.addShape("star", new StarDrawer_1.StarDrawer());
5
+ async function loadStarShape(engine) {
6
+ await engine.addShape("star", new StarDrawer_1.StarDrawer());
7
7
  }
8
8
  exports.loadStarShape = loadStarShape;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadTextShape(tsParticles: Engine): Promise<void>;
2
+ export declare function loadTextShape(engine: Engine): Promise<void>;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadTextShape = void 0;
4
4
  const TextDrawer_1 = require("./TextDrawer");
5
- async function loadTextShape(tsParticles) {
5
+ async function loadTextShape(engine) {
6
6
  const drawer = new TextDrawer_1.TextDrawer();
7
7
  for (const type of TextDrawer_1.validTypes) {
8
- await tsParticles.addShape(type, drawer);
8
+ await engine.addShape(type, drawer);
9
9
  }
10
10
  }
11
11
  exports.loadTextShape = loadTextShape;
@@ -1,5 +1,5 @@
1
- import type { SingleOrMultiple } from "./SingleOrMultiple";
2
1
  import type { IShapeValues } from "../Options/Interfaces/Particles/Shape/IShapeValues";
2
+ import type { SingleOrMultiple } from "./SingleOrMultiple";
3
3
  export declare type ShapeData = {
4
4
  [type: string]: SingleOrMultiple<IShapeValues>;
5
5
  };
@@ -1,6 +1,6 @@
1
- import type { IParticle } from "../Core/Interfaces/IParticle";
2
1
  import type { Container } from "../Core/Container";
3
2
  import type { IDelta } from "../Core/Interfaces/IDelta";
3
+ import type { IParticle } from "../Core/Interfaces/IParticle";
4
4
  import { Particle } from "../Core/Particle";
5
5
  export declare type ShapeDrawerDrawFunction = (context: CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void;
6
6
  export declare type ShapeDrawerInitFunction = (container: Container) => Promise<void>;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadAngleUpdater(tsParticles: Engine): Promise<void>;
2
+ export declare function loadAngleUpdater(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadAngleUpdater = void 0;
4
4
  const AngleUpdater_1 = require("./AngleUpdater");
5
- async function loadAngleUpdater(tsParticles) {
6
- await tsParticles.addParticleUpdater("angle", (container) => new AngleUpdater_1.AngleUpdater(container));
5
+ async function loadAngleUpdater(engine) {
6
+ await engine.addParticleUpdater("angle", (container) => new AngleUpdater_1.AngleUpdater(container));
7
7
  }
8
8
  exports.loadAngleUpdater = loadAngleUpdater;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadColorUpdater(tsParticles: Engine): Promise<void>;
2
+ export declare function loadColorUpdater(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadColorUpdater = void 0;
4
4
  const ColorUpdater_1 = require("./ColorUpdater");
5
- async function loadColorUpdater(tsParticles) {
6
- await tsParticles.addParticleUpdater("color", (container) => new ColorUpdater_1.ColorUpdater(container));
5
+ async function loadColorUpdater(engine) {
6
+ await engine.addParticleUpdater("color", (container) => new ColorUpdater_1.ColorUpdater(container));
7
7
  }
8
8
  exports.loadColorUpdater = loadColorUpdater;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadLifeUpdater(tsParticles: Engine): Promise<void>;
2
+ export declare function loadLifeUpdater(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadLifeUpdater = void 0;
4
4
  const LifeUpdater_1 = require("./LifeUpdater");
5
- async function loadLifeUpdater(tsParticles) {
6
- await tsParticles.addParticleUpdater("life", (container) => new LifeUpdater_1.LifeUpdater(container));
5
+ async function loadLifeUpdater(engine) {
6
+ await engine.addParticleUpdater("life", (container) => new LifeUpdater_1.LifeUpdater(container));
7
7
  }
8
8
  exports.loadLifeUpdater = loadLifeUpdater;
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadOpacityUpdater(tsParticles: Engine): Promise<void>;
2
+ export declare function loadOpacityUpdater(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadOpacityUpdater = void 0;
4
4
  const OpacityUpdater_1 = require("./OpacityUpdater");
5
- async function loadOpacityUpdater(tsParticles) {
6
- await tsParticles.addParticleUpdater("opacity", (container) => new OpacityUpdater_1.OpacityUpdater(container));
5
+ async function loadOpacityUpdater(engine) {
6
+ await engine.addParticleUpdater("opacity", (container) => new OpacityUpdater_1.OpacityUpdater(container));
7
7
  }
8
8
  exports.loadOpacityUpdater = loadOpacityUpdater;
@@ -1,5 +1,5 @@
1
- import type { OutMode, OutModeAlt, OutModeDirection } from "../../Enums";
2
1
  import type { IBounds, ICoordinates, IDimension, Particle } from "../../Core";
2
+ import type { OutMode, OutModeAlt, OutModeDirection } from "../../Enums";
3
3
  export interface IBounceData {
4
4
  particle: Particle;
5
5
  outMode: OutMode | OutModeAlt | keyof typeof OutMode;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OutOfCanvasUpdater = void 0;
4
- const Utils_1 = require("../../Utils");
5
- const Utils_2 = require("./Utils");
4
+ const Utils_1 = require("./Utils");
5
+ const Utils_2 = require("../../Utils");
6
6
  class OutOfCanvasUpdater {
7
7
  constructor(container) {
8
8
  this.container = container;
@@ -44,14 +44,14 @@ class OutOfCanvasUpdater {
44
44
  }
45
45
  destroy(particle, direction) {
46
46
  const container = this.container;
47
- if ((0, Utils_1.isPointInside)(particle.position, container.canvas.size, particle.getRadius(), direction)) {
47
+ if ((0, Utils_2.isPointInside)(particle.position, container.canvas.size, particle.getRadius(), direction)) {
48
48
  return;
49
49
  }
50
50
  container.particles.remove(particle, undefined, true);
51
51
  }
52
52
  out(particle, direction) {
53
53
  const container = this.container;
54
- if ((0, Utils_1.isPointInside)(particle.position, container.canvas.size, particle.getRadius(), direction)) {
54
+ if ((0, Utils_2.isPointInside)(particle.position, container.canvas.size, particle.getRadius(), direction)) {
55
55
  return;
56
56
  }
57
57
  const wrap = particle.options.move.warp, canvasSize = container.canvas.size, newPos = {
@@ -59,7 +59,7 @@ class OutOfCanvasUpdater {
59
59
  left: -particle.getRadius() - particle.offset.x,
60
60
  right: canvasSize.width + particle.getRadius() + particle.offset.x,
61
61
  top: -particle.getRadius() - particle.offset.y,
62
- }, sizeValue = particle.getRadius(), nextBounds = (0, Utils_1.calculateBounds)(particle.position, sizeValue);
62
+ }, sizeValue = particle.getRadius(), nextBounds = (0, Utils_2.calculateBounds)(particle.position, sizeValue);
63
63
  if (direction === "right" && nextBounds.left > canvasSize.width + particle.offset.x) {
64
64
  particle.position.x = newPos.left;
65
65
  particle.initialPosition.x = particle.position.x;
@@ -107,9 +107,9 @@ class OutOfCanvasUpdater {
107
107
  if (handled) {
108
108
  return;
109
109
  }
110
- const pos = particle.getPosition(), offset = particle.offset, size = particle.getRadius(), bounds = (0, Utils_1.calculateBounds)(pos, size), canvasSize = container.canvas.size;
111
- (0, Utils_2.bounceHorizontal)({ particle, outMode, direction, bounds, canvasSize, offset, size });
112
- (0, Utils_2.bounceVertical)({ particle, outMode, direction, bounds, canvasSize, offset, size });
110
+ const pos = particle.getPosition(), offset = particle.offset, size = particle.getRadius(), bounds = (0, Utils_2.calculateBounds)(pos, size), canvasSize = container.canvas.size;
111
+ (0, Utils_1.bounceHorizontal)({ particle, outMode, direction, bounds, canvasSize, offset, size });
112
+ (0, Utils_1.bounceVertical)({ particle, outMode, direction, bounds, canvasSize, offset, size });
113
113
  }
114
114
  none(particle, direction) {
115
115
  if ((particle.options.move.distance.horizontal &&
@@ -128,7 +128,7 @@ class OutOfCanvasUpdater {
128
128
  (particle.velocity.x < 0 && particle.position.x >= -pRadius)) {
129
129
  return;
130
130
  }
131
- if (!(0, Utils_1.isPointInside)(particle.position, container.canvas.size, pRadius, direction)) {
131
+ if (!(0, Utils_2.isPointInside)(particle.position, container.canvas.size, pRadius, direction)) {
132
132
  container.particles.remove(particle);
133
133
  }
134
134
  }
@@ -1,2 +1,2 @@
1
1
  import type { Engine } from "../../engine";
2
- export declare function loadOutModesUpdater(tsParticles: Engine): Promise<void>;
2
+ export declare function loadOutModesUpdater(engine: Engine): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadOutModesUpdater = void 0;
4
4
  const OutOfCanvasUpdater_1 = require("./OutOfCanvasUpdater");
5
- async function loadOutModesUpdater(tsParticles) {
6
- await tsParticles.addParticleUpdater("outModes", (container) => new OutOfCanvasUpdater_1.OutOfCanvasUpdater(container));
5
+ async function loadOutModesUpdater(engine) {
6
+ await engine.addParticleUpdater("outModes", (container) => new OutOfCanvasUpdater_1.OutOfCanvasUpdater(container));
7
7
  }
8
8
  exports.loadOutModesUpdater = loadOutModesUpdater;