tsparticles 1.35.2 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (663) hide show
  1. package/Core/Canvas.js +4 -6
  2. package/Core/Container.d.ts +4 -2
  3. package/Core/Container.js +21 -12
  4. package/Core/Loader.d.ts +19 -4
  5. package/Core/Loader.js +80 -18
  6. package/Enums/Modes/ResponsiveMode.d.ts +4 -0
  7. package/Enums/Modes/ResponsiveMode.js +8 -0
  8. package/Enums/Modes/index.d.ts +1 -0
  9. package/Enums/Modes/index.js +1 -0
  10. package/Interactions/External/Attract/index.d.ts +1 -1
  11. package/Interactions/External/Attract/index.js +2 -2
  12. package/Interactions/External/Bounce/index.d.ts +1 -1
  13. package/Interactions/External/Bounce/index.js +2 -2
  14. package/Interactions/External/Bubble/index.d.ts +1 -1
  15. package/Interactions/External/Bubble/index.js +2 -2
  16. package/Interactions/External/Connect/index.d.ts +1 -1
  17. package/Interactions/External/Connect/index.js +2 -2
  18. package/Interactions/External/Grab/index.d.ts +1 -1
  19. package/Interactions/External/Grab/index.js +2 -2
  20. package/Interactions/External/Repulse/index.d.ts +1 -1
  21. package/Interactions/External/Repulse/index.js +2 -2
  22. package/Interactions/External/Trail/index.d.ts +1 -1
  23. package/Interactions/External/Trail/index.js +2 -2
  24. package/Interactions/Particles/Attract/index.d.ts +1 -1
  25. package/Interactions/Particles/Attract/index.js +2 -2
  26. package/Interactions/Particles/Collisions/index.d.ts +1 -1
  27. package/Interactions/Particles/Collisions/index.js +2 -2
  28. package/Interactions/Particles/Links/index.d.ts +2 -2
  29. package/Interactions/Particles/Links/index.js +5 -5
  30. package/Interactions/Particles/Links/plugin.d.ts +1 -1
  31. package/Interactions/Particles/Links/plugin.js +2 -2
  32. package/Options/Classes/FullScreen/FullScreen.js +2 -2
  33. package/Options/Classes/Interactivity/Interactivity.js +1 -1
  34. package/Options/Classes/Options.d.ts +1 -1
  35. package/Options/Classes/Options.js +5 -2
  36. package/Options/Classes/Responsive.d.ts +2 -0
  37. package/Options/Classes/Responsive.js +10 -0
  38. package/Options/Interfaces/IResponsive.d.ts +2 -0
  39. package/Plugins/Absorbers/plugin.d.ts +1 -1
  40. package/Plugins/Absorbers/plugin.js +2 -2
  41. package/Plugins/Emitters/plugin.d.ts +1 -1
  42. package/Plugins/Emitters/plugin.js +2 -2
  43. package/Plugins/PolygonMask/plugin.js +1 -1
  44. package/README.md +1 -1
  45. package/Shapes/Circle/index.d.ts +1 -1
  46. package/Shapes/Circle/index.js +2 -2
  47. package/Shapes/Image/index.d.ts +1 -1
  48. package/Shapes/Image/index.js +3 -3
  49. package/Shapes/Line/index.d.ts +1 -1
  50. package/Shapes/Line/index.js +2 -2
  51. package/Shapes/Polygon/index.d.ts +3 -3
  52. package/Shapes/Polygon/index.js +7 -7
  53. package/Shapes/Square/index.d.ts +1 -1
  54. package/Shapes/Square/index.js +3 -3
  55. package/Shapes/Star/index.d.ts +1 -1
  56. package/Shapes/Star/index.js +2 -2
  57. package/Shapes/Text/index.d.ts +1 -1
  58. package/Shapes/Text/index.js +2 -2
  59. package/Updaters/Angle/index.d.ts +1 -1
  60. package/Updaters/Angle/index.js +2 -2
  61. package/Updaters/Color/index.d.ts +1 -1
  62. package/Updaters/Color/index.js +2 -2
  63. package/Updaters/Life/index.d.ts +1 -1
  64. package/Updaters/Life/index.js +2 -2
  65. package/Updaters/Opacity/index.d.ts +1 -1
  66. package/Updaters/Opacity/index.js +2 -2
  67. package/Updaters/OutModes/index.d.ts +1 -1
  68. package/Updaters/OutModes/index.js +2 -2
  69. package/Updaters/Roll/index.d.ts +1 -1
  70. package/Updaters/Roll/index.js +2 -2
  71. package/Updaters/Size/index.d.ts +1 -1
  72. package/Updaters/Size/index.js +2 -2
  73. package/Updaters/StrokeColor/index.d.ts +1 -1
  74. package/Updaters/StrokeColor/index.js +2 -2
  75. package/Updaters/Tilt/index.d.ts +1 -1
  76. package/Updaters/Tilt/index.js +2 -2
  77. package/Updaters/Wobble/index.d.ts +1 -1
  78. package/Updaters/Wobble/index.js +2 -2
  79. package/Utils/Utils.d.ts +1 -2
  80. package/browser/Core/Canvas.d.ts +29 -0
  81. package/browser/Core/Canvas.js +26 -6
  82. package/browser/Core/Container.d.ts +98 -2
  83. package/browser/Core/Container.js +104 -12
  84. package/browser/Core/FrameManager.d.ts +8 -0
  85. package/browser/Core/FrameManager.js +9 -0
  86. package/browser/Core/InteractionManager.d.ts +3 -0
  87. package/browser/Core/InteractionManager.js +4 -0
  88. package/browser/Core/Interfaces/Colors.d.ts +23 -0
  89. package/browser/Core/Interfaces/IAttract.d.ts +3 -0
  90. package/browser/Core/Interfaces/IBounds.d.ts +3 -0
  91. package/browser/Core/Interfaces/IBubble.d.ts +3 -0
  92. package/browser/Core/Interfaces/IBubbleParticleData.d.ts +3 -0
  93. package/browser/Core/Interfaces/IContainerInteractivity.d.ts +3 -0
  94. package/browser/Core/Interfaces/IContainerPlugin.d.ts +3 -0
  95. package/browser/Core/Interfaces/ICoordinates.d.ts +3 -0
  96. package/browser/Core/Interfaces/IDelta.d.ts +3 -0
  97. package/browser/Core/Interfaces/IDimension.d.ts +3 -0
  98. package/browser/Core/Interfaces/IExternalInteractor.d.ts +3 -0
  99. package/browser/Core/Interfaces/IInteractor.d.ts +3 -0
  100. package/browser/Core/Interfaces/IMouseData.d.ts +3 -0
  101. package/browser/Core/Interfaces/IMovePathGenerator.d.ts +3 -0
  102. package/browser/Core/Interfaces/IParticle.d.ts +3 -0
  103. package/browser/Core/Interfaces/IParticleValueAnimation.d.ts +3 -0
  104. package/browser/Core/Interfaces/IParticlesInteractor.d.ts +3 -0
  105. package/browser/Core/Interfaces/IPlugin.d.ts +8 -0
  106. package/browser/Core/Interfaces/IRepulse.d.ts +3 -0
  107. package/browser/Core/Interfaces/IShapeDrawer.d.ts +3 -0
  108. package/browser/Core/Interfaces/IShapeValues.d.ts +3 -0
  109. package/browser/Core/Loader.d.ts +64 -4
  110. package/browser/Core/Loader.js +131 -18
  111. package/browser/Core/Particle/Mover.d.ts +3 -0
  112. package/browser/Core/Particle/Mover.js +7 -2
  113. package/browser/Core/Particle.d.ts +7 -0
  114. package/browser/Core/Particle.js +13 -0
  115. package/browser/Core/Particles.d.ts +13 -0
  116. package/browser/Core/Particles.js +25 -0
  117. package/browser/Core/Retina.d.ts +6 -0
  118. package/browser/Core/Retina.js +9 -0
  119. package/browser/Enums/Directions/MoveDirection.d.ts +3 -0
  120. package/browser/Enums/Directions/MoveDirection.js +3 -0
  121. package/browser/Enums/Directions/RotateDirection.d.ts +3 -0
  122. package/browser/Enums/Directions/RotateDirection.js +3 -0
  123. package/browser/Enums/Directions/TiltDirection.d.ts +3 -0
  124. package/browser/Enums/Directions/TiltDirection.js +3 -0
  125. package/browser/Enums/InteractivityDetect.d.ts +3 -0
  126. package/browser/Enums/InteractivityDetect.js +3 -0
  127. package/browser/Enums/Modes/ClickMode.d.ts +3 -0
  128. package/browser/Enums/Modes/ClickMode.js +3 -0
  129. package/browser/Enums/Modes/CollisionMode.d.ts +3 -0
  130. package/browser/Enums/Modes/CollisionMode.js +3 -0
  131. package/browser/Enums/Modes/DivMode.d.ts +3 -0
  132. package/browser/Enums/Modes/DivMode.js +3 -0
  133. package/browser/Enums/Modes/HoverMode.d.ts +3 -0
  134. package/browser/Enums/Modes/HoverMode.js +3 -0
  135. package/browser/Enums/Modes/OutMode.d.ts +3 -0
  136. package/browser/Enums/Modes/OutMode.js +3 -0
  137. package/browser/Enums/Modes/ResponsiveMode.d.ts +4 -0
  138. package/browser/Enums/Modes/ResponsiveMode.js +5 -0
  139. package/browser/Enums/Modes/SizeMode.d.ts +3 -0
  140. package/browser/Enums/Modes/SizeMode.js +3 -0
  141. package/browser/Enums/Modes/index.d.ts +1 -0
  142. package/browser/Enums/Modes/index.js +1 -0
  143. package/browser/Enums/Types/DestroyType.d.ts +3 -0
  144. package/browser/Enums/Types/DestroyType.js +3 -0
  145. package/browser/Enums/Types/DivType.d.ts +3 -0
  146. package/browser/Enums/Types/DivType.js +3 -0
  147. package/browser/Enums/Types/OrbitType.d.ts +3 -0
  148. package/browser/Enums/Types/OrbitType.js +3 -0
  149. package/browser/Enums/Types/ShapeType.d.ts +3 -0
  150. package/browser/Enums/Types/ShapeType.js +3 -0
  151. package/browser/Enums/Types/StartValueType.d.ts +3 -0
  152. package/browser/Enums/Types/StartValueType.js +3 -0
  153. package/browser/Interactions/External/Attract/Attractor.d.ts +4 -0
  154. package/browser/Interactions/External/Attract/Attractor.js +5 -0
  155. package/browser/Interactions/External/Attract/index.d.ts +1 -1
  156. package/browser/Interactions/External/Attract/index.js +2 -2
  157. package/browser/Interactions/External/Bounce/Bouncer.js +1 -0
  158. package/browser/Interactions/External/Bounce/index.d.ts +1 -1
  159. package/browser/Interactions/External/Bounce/index.js +2 -2
  160. package/browser/Interactions/External/Bubble/Bubbler.d.ts +4 -0
  161. package/browser/Interactions/External/Bubble/Bubbler.js +14 -0
  162. package/browser/Interactions/External/Bubble/IBubblerProcessParam.d.ts +6 -0
  163. package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +3 -0
  164. package/browser/Interactions/External/Bubble/ProcessBubbleType.js +3 -0
  165. package/browser/Interactions/External/Bubble/index.d.ts +1 -1
  166. package/browser/Interactions/External/Bubble/index.js +2 -2
  167. package/browser/Interactions/External/Connect/Connector.d.ts +7 -0
  168. package/browser/Interactions/External/Connect/Connector.js +8 -0
  169. package/browser/Interactions/External/Connect/index.d.ts +1 -1
  170. package/browser/Interactions/External/Connect/index.js +2 -2
  171. package/browser/Interactions/External/Grab/Grabber.d.ts +4 -0
  172. package/browser/Interactions/External/Grab/Grabber.js +9 -0
  173. package/browser/Interactions/External/Grab/index.d.ts +1 -1
  174. package/browser/Interactions/External/Grab/index.js +2 -2
  175. package/browser/Interactions/External/Repulse/Repulser.d.ts +4 -0
  176. package/browser/Interactions/External/Repulse/Repulser.js +162 -0
  177. package/browser/Interactions/External/Repulse/index.d.ts +1 -1
  178. package/browser/Interactions/External/Repulse/index.js +2 -2
  179. package/browser/Interactions/External/Trail/TrailMaker.d.ts +3 -0
  180. package/browser/Interactions/External/Trail/TrailMaker.js +4 -0
  181. package/browser/Interactions/External/Trail/index.d.ts +1 -1
  182. package/browser/Interactions/External/Trail/index.js +2 -2
  183. package/browser/Interactions/Particles/Attract/Attractor.d.ts +3 -0
  184. package/browser/Interactions/Particles/Attract/Attractor.js +4 -0
  185. package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
  186. package/browser/Interactions/Particles/Attract/index.js +2 -2
  187. package/browser/Interactions/Particles/Collisions/Collider.d.ts +3 -0
  188. package/browser/Interactions/Particles/Collisions/Collider.js +4 -0
  189. package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
  190. package/browser/Interactions/Particles/Collisions/index.js +2 -2
  191. package/browser/Interactions/Particles/Links/ILink.d.ts +6 -0
  192. package/browser/Interactions/Particles/Links/LinkInstance.js +8 -0
  193. package/browser/Interactions/Particles/Links/Linker.js +2 -0
  194. package/browser/Interactions/Particles/Links/index.d.ts +2 -2
  195. package/browser/Interactions/Particles/Links/index.js +5 -5
  196. package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
  197. package/browser/Interactions/Particles/Links/plugin.js +3 -2
  198. package/browser/Options/Classes/AnimatableColor.d.ts +4 -0
  199. package/browser/Options/Classes/AnimatableColor.js +4 -0
  200. package/browser/Options/Classes/Background/Background.d.ts +4 -0
  201. package/browser/Options/Classes/Background/Background.js +4 -0
  202. package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +14 -0
  203. package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +4 -0
  204. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +3 -0
  205. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +3 -0
  206. package/browser/Options/Classes/ColorAnimation.d.ts +3 -0
  207. package/browser/Options/Classes/ColorAnimation.js +3 -0
  208. package/browser/Options/Classes/FullScreen/FullScreen.d.ts +16 -0
  209. package/browser/Options/Classes/FullScreen/FullScreen.js +8 -2
  210. package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
  211. package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +4 -0
  212. package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +37 -0
  213. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +33 -0
  214. package/browser/Options/Classes/Interactivity/Events/Events.d.ts +31 -0
  215. package/browser/Options/Classes/Interactivity/Events/Events.js +31 -0
  216. package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +4 -0
  217. package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +4 -0
  218. package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +3 -0
  219. package/browser/Options/Classes/Interactivity/Events/Parallax.js +3 -0
  220. package/browser/Options/Classes/Interactivity/Interactivity.d.ts +13 -0
  221. package/browser/Options/Classes/Interactivity/Interactivity.js +14 -1
  222. package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +3 -0
  223. package/browser/Options/Classes/Interactivity/Modes/Attract.js +3 -0
  224. package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +3 -0
  225. package/browser/Options/Classes/Interactivity/Modes/Bubble.js +3 -0
  226. package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +3 -0
  227. package/browser/Options/Classes/Interactivity/Modes/BubbleBase.js +3 -0
  228. package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +9 -0
  229. package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.js +9 -0
  230. package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +21 -0
  231. package/browser/Options/Classes/Interactivity/Modes/Connect.js +21 -0
  232. package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +3 -0
  233. package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.js +3 -0
  234. package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +21 -0
  235. package/browser/Options/Classes/Interactivity/Modes/Grab.js +21 -0
  236. package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +3 -0
  237. package/browser/Options/Classes/Interactivity/Modes/GrabLinks.js +3 -0
  238. package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +4 -0
  239. package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -0
  240. package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
  241. package/browser/Options/Classes/Interactivity/Modes/Push.js +12 -0
  242. package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +12 -0
  243. package/browser/Options/Classes/Interactivity/Modes/Remove.js +12 -0
  244. package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -0
  245. package/browser/Options/Classes/Interactivity/Modes/Repulse.js +3 -0
  246. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +3 -0
  247. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.js +3 -0
  248. package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +9 -0
  249. package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.js +11 -0
  250. package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +9 -0
  251. package/browser/Options/Classes/Interactivity/Modes/Slow.js +10 -0
  252. package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +3 -0
  253. package/browser/Options/Classes/Interactivity/Modes/Trail.js +3 -0
  254. package/browser/Options/Classes/Motion/Motion.d.ts +11 -0
  255. package/browser/Options/Classes/Motion/Motion.js +4 -0
  256. package/browser/Options/Classes/Motion/MotionReduce.d.ts +9 -0
  257. package/browser/Options/Classes/Motion/MotionReduce.js +3 -0
  258. package/browser/Options/Classes/Options.d.ts +31 -1
  259. package/browser/Options/Classes/Options.js +36 -3
  260. package/browser/Options/Classes/OptionsColor.d.ts +4 -0
  261. package/browser/Options/Classes/OptionsColor.js +4 -0
  262. package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -0
  263. package/browser/Options/Classes/Particles/Collisions/Collisions.js +4 -0
  264. package/browser/Options/Classes/Particles/Links/Links.d.ts +4 -0
  265. package/browser/Options/Classes/Particles/Links/Links.js +4 -0
  266. package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +3 -0
  267. package/browser/Options/Classes/Particles/Links/LinksShadow.js +3 -0
  268. package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +3 -0
  269. package/browser/Options/Classes/Particles/Links/LinksTriangle.js +3 -0
  270. package/browser/Options/Classes/Particles/Move/Attract.d.ts +21 -0
  271. package/browser/Options/Classes/Particles/Move/Attract.js +21 -0
  272. package/browser/Options/Classes/Particles/Move/Move.d.ts +42 -0
  273. package/browser/Options/Classes/Particles/Move/Move.js +43 -0
  274. package/browser/Options/Classes/Particles/Move/MoveAngle.d.ts +3 -0
  275. package/browser/Options/Classes/Particles/Move/MoveAngle.js +4 -1
  276. package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -0
  277. package/browser/Options/Classes/Particles/Move/Path/Path.js +3 -0
  278. package/browser/Options/Classes/Particles/Move/Trail.d.ts +3 -0
  279. package/browser/Options/Classes/Particles/Move/Trail.js +3 -0
  280. package/browser/Options/Classes/Particles/Number/Density.d.ts +12 -0
  281. package/browser/Options/Classes/Particles/Number/Density.js +12 -0
  282. package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +10 -0
  283. package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +10 -0
  284. package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +13 -0
  285. package/browser/Options/Classes/Particles/Opacity/Opacity.js +13 -0
  286. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +15 -0
  287. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +12 -0
  288. package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +4 -0
  289. package/browser/Options/Classes/Particles/Orbit/Orbit.js +4 -0
  290. package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +3 -0
  291. package/browser/Options/Classes/Particles/Orbit/OrbitRotation.js +3 -0
  292. package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +22 -0
  293. package/browser/Options/Classes/Particles/ParticlesOptions.js +22 -0
  294. package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +3 -0
  295. package/browser/Options/Classes/Particles/Repulse/Repulse.js +3 -0
  296. package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +4 -0
  297. package/browser/Options/Classes/Particles/Rotate/Rotate.js +4 -0
  298. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +3 -0
  299. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.js +3 -0
  300. package/browser/Options/Classes/Particles/Shadow.d.ts +4 -0
  301. package/browser/Options/Classes/Particles/Shadow.js +4 -0
  302. package/browser/Options/Classes/Particles/Shape/Shape.d.ts +42 -0
  303. package/browser/Options/Classes/Particles/Shape/Shape.js +43 -0
  304. package/browser/Options/Classes/Particles/Size/Size.d.ts +13 -0
  305. package/browser/Options/Classes/Particles/Size/Size.js +13 -0
  306. package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +15 -0
  307. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +12 -0
  308. package/browser/Options/Classes/Particles/Stroke.d.ts +4 -0
  309. package/browser/Options/Classes/Particles/Stroke.js +4 -0
  310. package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +4 -0
  311. package/browser/Options/Classes/Particles/Tilt/Tilt.js +4 -0
  312. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +3 -0
  313. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.js +3 -0
  314. package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +4 -0
  315. package/browser/Options/Classes/Particles/Twinkle/Twinkle.js +4 -0
  316. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +3 -0
  317. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.js +3 -0
  318. package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +3 -0
  319. package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
  320. package/browser/Options/Classes/Responsive.d.ts +2 -0
  321. package/browser/Options/Classes/Responsive.js +11 -0
  322. package/browser/Options/Classes/ValueWithRandom.d.ts +3 -0
  323. package/browser/Options/Interfaces/Background/IBackground.d.ts +35 -0
  324. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +21 -0
  325. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +10 -0
  326. package/browser/Options/Interfaces/FullScreen/IFullScreen.d.ts +16 -0
  327. package/browser/Options/Interfaces/IAnimatableColor.d.ts +8 -0
  328. package/browser/Options/Interfaces/IAnimation.d.ts +10 -0
  329. package/browser/Options/Interfaces/IColorAnimation.d.ts +7 -0
  330. package/browser/Options/Interfaces/IColorAnimation.js +4 -0
  331. package/browser/Options/Interfaces/IManualParticle.d.ts +11 -0
  332. package/browser/Options/Interfaces/IOptionLoader.d.ts +9 -0
  333. package/browser/Options/Interfaces/IOptions.d.ts +71 -0
  334. package/browser/Options/Interfaces/IOptionsColor.d.ts +5 -0
  335. package/browser/Options/Interfaces/IResponsive.d.ts +2 -0
  336. package/browser/Options/Interfaces/IValueWithRandom.d.ts +3 -0
  337. package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +12 -0
  338. package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +13 -0
  339. package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
  340. package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +4 -0
  341. package/browser/Options/Interfaces/Interactivity/Events/IParallax.d.ts +3 -0
  342. package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +20 -0
  343. package/browser/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +3 -0
  344. package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +3 -0
  345. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +3 -0
  346. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +3 -0
  347. package/browser/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +9 -0
  348. package/browser/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
  349. package/browser/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +9 -0
  350. package/browser/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +3 -0
  351. package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +6 -0
  352. package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +4 -0
  353. package/browser/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
  354. package/browser/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +6 -0
  355. package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +3 -0
  356. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +3 -0
  357. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +3 -0
  358. package/browser/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +6 -0
  359. package/browser/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +3 -0
  360. package/browser/Options/Interfaces/Motion/IMotion.d.ts +11 -0
  361. package/browser/Options/Interfaces/Motion/IMotionReduce.d.ts +9 -0
  362. package/browser/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +4 -0
  363. package/browser/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +4 -0
  364. package/browser/Options/Interfaces/Particles/IParticles.d.ts +10 -0
  365. package/browser/Options/Interfaces/Particles/IShadow.d.ts +4 -0
  366. package/browser/Options/Interfaces/Particles/IStroke.d.ts +14 -0
  367. package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +43 -0
  368. package/browser/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +3 -0
  369. package/browser/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +3 -0
  370. package/browser/Options/Interfaces/Particles/Move/IAttract.d.ts +9 -0
  371. package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +19 -0
  372. package/browser/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +3 -0
  373. package/browser/Options/Interfaces/Particles/Move/ITrail.d.ts +3 -0
  374. package/browser/Options/Interfaces/Particles/Move/Path/iPath.d.ts +3 -0
  375. package/browser/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
  376. package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
  377. package/browser/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +7 -0
  378. package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +9 -0
  379. package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +7 -0
  380. package/browser/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +4 -0
  381. package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +4 -0
  382. package/browser/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +3 -0
  383. package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +3 -0
  384. package/browser/Options/Interfaces/Particles/Shape/IImageShape.d.ts +6 -0
  385. package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +6 -0
  386. package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +22 -0
  387. package/browser/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
  388. package/browser/Options/Interfaces/Particles/Size/ISize.d.ts +7 -0
  389. package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +9 -0
  390. package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +4 -0
  391. package/browser/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +3 -0
  392. package/browser/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +4 -0
  393. package/browser/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +3 -0
  394. package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +4 -0
  395. package/browser/Options/Interfaces/Theme/ITheme.d.ts +14 -0
  396. package/browser/Options/Interfaces/Theme/IThemeDefault.d.ts +16 -0
  397. package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +3 -0
  398. package/browser/Plugins/Absorbers/AbsorberInstance.js +3 -0
  399. package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -0
  400. package/browser/Plugins/Absorbers/Absorbers.js +3 -0
  401. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
  402. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.js +3 -0
  403. package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -0
  404. package/browser/Plugins/Absorbers/Options/Classes/Absorber.js +4 -0
  405. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +29 -0
  406. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +3 -0
  407. package/browser/Plugins/Absorbers/plugin.d.ts +1 -1
  408. package/browser/Plugins/Absorbers/plugin.js +5 -2
  409. package/browser/Plugins/Emitters/EmitterInstance.d.ts +3 -0
  410. package/browser/Plugins/Emitters/EmitterInstance.js +3 -0
  411. package/browser/Plugins/Emitters/Emitters.d.ts +3 -0
  412. package/browser/Plugins/Emitters/Emitters.js +3 -0
  413. package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
  414. package/browser/Plugins/Emitters/Enums/EmitterClickMode.js +3 -0
  415. package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +4 -0
  416. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +4 -0
  417. package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +3 -0
  418. package/browser/Plugins/Emitters/Options/Classes/EmitterLife.js +3 -0
  419. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +3 -0
  420. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.js +3 -0
  421. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +3 -0
  422. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.js +3 -0
  423. package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +44 -0
  424. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +19 -0
  425. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +3 -0
  426. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +11 -0
  427. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +3 -0
  428. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -0
  429. package/browser/Plugins/Emitters/plugin.d.ts +1 -1
  430. package/browser/Plugins/Emitters/plugin.js +5 -2
  431. package/browser/Plugins/PolygonMask/Options/Classes/Draw.d.ts +15 -0
  432. package/browser/Plugins/PolygonMask/Options/Classes/Draw.js +15 -0
  433. package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.d.ts +3 -0
  434. package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.js +3 -0
  435. package/browser/Plugins/PolygonMask/Options/Classes/Inline.d.ts +3 -0
  436. package/browser/Plugins/PolygonMask/Options/Classes/Inline.js +3 -0
  437. package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +3 -0
  438. package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.js +3 -0
  439. package/browser/Plugins/PolygonMask/Options/Classes/Move.d.ts +3 -0
  440. package/browser/Plugins/PolygonMask/Options/Classes/Move.js +3 -0
  441. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +10 -0
  442. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +10 -0
  443. package/browser/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +9 -0
  444. package/browser/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +3 -0
  445. package/browser/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +3 -0
  446. package/browser/Plugins/PolygonMask/Options/Interfaces/ILocalSvg.d.ts +3 -0
  447. package/browser/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +3 -0
  448. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +7 -0
  449. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +3 -0
  450. package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +12 -0
  451. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +22 -0
  452. package/browser/Plugins/PolygonMask/pathseg.js +55 -1
  453. package/browser/Plugins/PolygonMask/plugin.js +8 -2
  454. package/browser/Plugins/PolygonMask/utils.js +14 -2
  455. package/browser/Shapes/Circle/CircleDrawer.d.ts +3 -0
  456. package/browser/Shapes/Circle/CircleDrawer.js +3 -0
  457. package/browser/Shapes/Circle/index.d.ts +1 -1
  458. package/browser/Shapes/Circle/index.js +2 -2
  459. package/browser/Shapes/Image/ImageDrawer.d.ts +3 -0
  460. package/browser/Shapes/Image/ImageDrawer.js +6 -0
  461. package/browser/Shapes/Image/Utils.d.ts +3 -0
  462. package/browser/Shapes/Image/Utils.js +1 -0
  463. package/browser/Shapes/Image/index.d.ts +1 -1
  464. package/browser/Shapes/Image/index.js +3 -3
  465. package/browser/Shapes/Line/LineDrawer.d.ts +3 -0
  466. package/browser/Shapes/Line/LineDrawer.js +3 -0
  467. package/browser/Shapes/Line/index.d.ts +1 -1
  468. package/browser/Shapes/Line/index.js +2 -2
  469. package/browser/Shapes/Polygon/PolygonDrawer.d.ts +3 -0
  470. package/browser/Shapes/Polygon/PolygonDrawer.js +3 -0
  471. package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +3 -0
  472. package/browser/Shapes/Polygon/PolygonDrawerBase.js +5 -1
  473. package/browser/Shapes/Polygon/TriangleDrawer.d.ts +3 -0
  474. package/browser/Shapes/Polygon/TriangleDrawer.js +3 -0
  475. package/browser/Shapes/Polygon/index.d.ts +3 -3
  476. package/browser/Shapes/Polygon/index.js +7 -7
  477. package/browser/Shapes/Square/SquareDrawer.d.ts +3 -0
  478. package/browser/Shapes/Square/SquareDrawer.js +3 -0
  479. package/browser/Shapes/Square/index.d.ts +1 -1
  480. package/browser/Shapes/Square/index.js +3 -3
  481. package/browser/Shapes/Star/StarDrawer.d.ts +3 -0
  482. package/browser/Shapes/Star/StarDrawer.js +3 -0
  483. package/browser/Shapes/Star/index.d.ts +1 -1
  484. package/browser/Shapes/Star/index.js +2 -2
  485. package/browser/Shapes/Text/TextDrawer.d.ts +3 -0
  486. package/browser/Shapes/Text/TextDrawer.js +3 -0
  487. package/browser/Shapes/Text/index.d.ts +1 -1
  488. package/browser/Shapes/Text/index.js +2 -2
  489. package/browser/Types/ParticlesGroups.d.ts +4 -0
  490. package/browser/Types/RecursivePartial.d.ts +3 -0
  491. package/browser/Types/ShapeData.d.ts +3 -0
  492. package/browser/Types/ShapeDrawerFunctions.d.ts +21 -0
  493. package/browser/Types/SingleOrMultiple.d.ts +3 -0
  494. package/browser/Updaters/Angle/index.d.ts +1 -1
  495. package/browser/Updaters/Angle/index.js +2 -2
  496. package/browser/Updaters/Color/ColorUpdater.js +1 -0
  497. package/browser/Updaters/Color/index.d.ts +1 -1
  498. package/browser/Updaters/Color/index.js +2 -2
  499. package/browser/Updaters/Life/LifeUpdater.js +1 -0
  500. package/browser/Updaters/Life/index.d.ts +1 -1
  501. package/browser/Updaters/Life/index.js +2 -2
  502. package/browser/Updaters/Opacity/OpacityUpdater.js +1 -0
  503. package/browser/Updaters/Opacity/index.d.ts +1 -1
  504. package/browser/Updaters/Opacity/index.js +2 -2
  505. package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -0
  506. package/browser/Updaters/OutModes/index.d.ts +1 -1
  507. package/browser/Updaters/OutModes/index.js +2 -2
  508. package/browser/Updaters/Roll/index.d.ts +1 -1
  509. package/browser/Updaters/Roll/index.js +2 -2
  510. package/browser/Updaters/Size/SizeUpdater.js +1 -0
  511. package/browser/Updaters/Size/index.d.ts +1 -1
  512. package/browser/Updaters/Size/index.js +2 -2
  513. package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +1 -0
  514. package/browser/Updaters/StrokeColor/index.d.ts +1 -1
  515. package/browser/Updaters/StrokeColor/index.js +2 -2
  516. package/browser/Updaters/Tilt/index.d.ts +1 -1
  517. package/browser/Updaters/Tilt/index.js +2 -2
  518. package/browser/Updaters/Wobble/index.d.ts +1 -1
  519. package/browser/Updaters/Wobble/index.js +2 -2
  520. package/browser/Utils/CanvasUtils.js +4 -0
  521. package/browser/Utils/Circle.d.ts +3 -0
  522. package/browser/Utils/Circle.js +3 -0
  523. package/browser/Utils/CircleWarp.d.ts +3 -0
  524. package/browser/Utils/CircleWarp.js +3 -0
  525. package/browser/Utils/ColorUtils.d.ts +20 -0
  526. package/browser/Utils/ColorUtils.js +33 -1
  527. package/browser/Utils/Constants.d.ts +7 -0
  528. package/browser/Utils/Constants.js +7 -0
  529. package/browser/Utils/EventListeners.d.ts +32 -0
  530. package/browser/Utils/EventListeners.js +40 -0
  531. package/browser/Utils/NumberUtils.d.ts +27 -0
  532. package/browser/Utils/NumberUtils.js +27 -0
  533. package/browser/Utils/Plugins.d.ts +3 -0
  534. package/browser/Utils/Plugins.js +3 -0
  535. package/browser/Utils/Point.d.ts +3 -0
  536. package/browser/Utils/Point.js +3 -0
  537. package/browser/Utils/QuadTree.d.ts +3 -0
  538. package/browser/Utils/QuadTree.js +3 -0
  539. package/browser/Utils/Range.d.ts +3 -0
  540. package/browser/Utils/Range.js +3 -0
  541. package/browser/Utils/Rectangle.d.ts +3 -0
  542. package/browser/Utils/Rectangle.js +3 -0
  543. package/browser/Utils/Utils.d.ts +6 -2
  544. package/browser/Utils/Utils.js +14 -0
  545. package/browser/full.d.ts +1 -1
  546. package/browser/full.js +14 -6
  547. package/browser/index.d.ts +1 -2
  548. package/browser/index.js +2 -2
  549. package/browser/index.slim.d.ts +1 -2
  550. package/browser/index.slim.js +3 -2
  551. package/browser/main.d.ts +103 -10
  552. package/browser/main.js +114 -11
  553. package/browser/pjs.d.ts +27 -0
  554. package/browser/pjs.js +23 -0
  555. package/browser/slim.d.ts +1 -1
  556. package/browser/slim.js +39 -47
  557. package/esm/Core/Canvas.js +4 -6
  558. package/esm/Core/Container.d.ts +4 -2
  559. package/esm/Core/Container.js +21 -12
  560. package/esm/Core/Loader.d.ts +19 -4
  561. package/esm/Core/Loader.js +80 -18
  562. package/esm/Enums/Modes/ResponsiveMode.d.ts +4 -0
  563. package/esm/Enums/Modes/ResponsiveMode.js +5 -0
  564. package/esm/Enums/Modes/index.d.ts +1 -0
  565. package/esm/Enums/Modes/index.js +1 -0
  566. package/esm/Interactions/External/Attract/index.d.ts +1 -1
  567. package/esm/Interactions/External/Attract/index.js +2 -2
  568. package/esm/Interactions/External/Bounce/index.d.ts +1 -1
  569. package/esm/Interactions/External/Bounce/index.js +2 -2
  570. package/esm/Interactions/External/Bubble/index.d.ts +1 -1
  571. package/esm/Interactions/External/Bubble/index.js +2 -2
  572. package/esm/Interactions/External/Connect/index.d.ts +1 -1
  573. package/esm/Interactions/External/Connect/index.js +2 -2
  574. package/esm/Interactions/External/Grab/index.d.ts +1 -1
  575. package/esm/Interactions/External/Grab/index.js +2 -2
  576. package/esm/Interactions/External/Repulse/index.d.ts +1 -1
  577. package/esm/Interactions/External/Repulse/index.js +2 -2
  578. package/esm/Interactions/External/Trail/index.d.ts +1 -1
  579. package/esm/Interactions/External/Trail/index.js +2 -2
  580. package/esm/Interactions/Particles/Attract/index.d.ts +1 -1
  581. package/esm/Interactions/Particles/Attract/index.js +2 -2
  582. package/esm/Interactions/Particles/Collisions/index.d.ts +1 -1
  583. package/esm/Interactions/Particles/Collisions/index.js +2 -2
  584. package/esm/Interactions/Particles/Links/index.d.ts +2 -2
  585. package/esm/Interactions/Particles/Links/index.js +5 -5
  586. package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
  587. package/esm/Interactions/Particles/Links/plugin.js +2 -2
  588. package/esm/Options/Classes/FullScreen/FullScreen.js +2 -2
  589. package/esm/Options/Classes/Interactivity/Interactivity.js +1 -1
  590. package/esm/Options/Classes/Options.d.ts +1 -1
  591. package/esm/Options/Classes/Options.js +6 -3
  592. package/esm/Options/Classes/Responsive.d.ts +2 -0
  593. package/esm/Options/Classes/Responsive.js +10 -0
  594. package/esm/Options/Interfaces/IResponsive.d.ts +2 -0
  595. package/esm/Plugins/Absorbers/plugin.d.ts +1 -1
  596. package/esm/Plugins/Absorbers/plugin.js +2 -2
  597. package/esm/Plugins/Emitters/plugin.d.ts +1 -1
  598. package/esm/Plugins/Emitters/plugin.js +2 -2
  599. package/esm/Plugins/PolygonMask/plugin.js +1 -1
  600. package/esm/Shapes/Circle/index.d.ts +1 -1
  601. package/esm/Shapes/Circle/index.js +2 -2
  602. package/esm/Shapes/Image/index.d.ts +1 -1
  603. package/esm/Shapes/Image/index.js +3 -3
  604. package/esm/Shapes/Line/index.d.ts +1 -1
  605. package/esm/Shapes/Line/index.js +2 -2
  606. package/esm/Shapes/Polygon/index.d.ts +3 -3
  607. package/esm/Shapes/Polygon/index.js +7 -7
  608. package/esm/Shapes/Square/index.d.ts +1 -1
  609. package/esm/Shapes/Square/index.js +3 -3
  610. package/esm/Shapes/Star/index.d.ts +1 -1
  611. package/esm/Shapes/Star/index.js +2 -2
  612. package/esm/Shapes/Text/index.d.ts +1 -1
  613. package/esm/Shapes/Text/index.js +2 -2
  614. package/esm/Updaters/Angle/index.d.ts +1 -1
  615. package/esm/Updaters/Angle/index.js +2 -2
  616. package/esm/Updaters/Color/index.d.ts +1 -1
  617. package/esm/Updaters/Color/index.js +2 -2
  618. package/esm/Updaters/Life/index.d.ts +1 -1
  619. package/esm/Updaters/Life/index.js +2 -2
  620. package/esm/Updaters/Opacity/index.d.ts +1 -1
  621. package/esm/Updaters/Opacity/index.js +2 -2
  622. package/esm/Updaters/OutModes/index.d.ts +1 -1
  623. package/esm/Updaters/OutModes/index.js +2 -2
  624. package/esm/Updaters/Roll/index.d.ts +1 -1
  625. package/esm/Updaters/Roll/index.js +2 -2
  626. package/esm/Updaters/Size/index.d.ts +1 -1
  627. package/esm/Updaters/Size/index.js +2 -2
  628. package/esm/Updaters/StrokeColor/index.d.ts +1 -1
  629. package/esm/Updaters/StrokeColor/index.js +2 -2
  630. package/esm/Updaters/Tilt/index.d.ts +1 -1
  631. package/esm/Updaters/Tilt/index.js +2 -2
  632. package/esm/Updaters/Wobble/index.d.ts +1 -1
  633. package/esm/Updaters/Wobble/index.js +2 -2
  634. package/esm/Utils/Utils.d.ts +1 -2
  635. package/esm/full.d.ts +1 -1
  636. package/esm/full.js +14 -6
  637. package/esm/index.d.ts +1 -2
  638. package/esm/index.js +2 -2
  639. package/esm/index.slim.d.ts +1 -2
  640. package/esm/index.slim.js +2 -2
  641. package/esm/main.d.ts +11 -10
  642. package/esm/main.js +18 -7
  643. package/esm/slim.d.ts +1 -1
  644. package/esm/slim.js +39 -47
  645. package/full.d.ts +1 -1
  646. package/full.js +14 -6
  647. package/index.d.ts +1 -2
  648. package/index.js +2 -3
  649. package/index.slim.d.ts +1 -2
  650. package/index.slim.js +2 -3
  651. package/main.d.ts +11 -10
  652. package/main.js +18 -7
  653. package/package.json +1 -1
  654. package/report.html +2 -2
  655. package/report.slim.html +2 -2
  656. package/slim.d.ts +1 -1
  657. package/slim.js +39 -47
  658. package/tsparticles.js +10262 -13560
  659. package/tsparticles.min.js +2 -2
  660. package/tsparticles.pathseg.js +1472 -0
  661. package/tsparticles.slim.js +8305 -11259
  662. package/tsparticles.slim.min.js +2 -2
  663. package/167.js +0 -1779
@@ -1,5 +1,8 @@
1
1
  import { getDistances } from "../../../Utils";
2
2
  import { ParticlesInteractorBase } from "../../../Core/ParticlesInteractorBase";
3
+ /**
4
+ * @category Interactions
5
+ */
3
6
  export class Attractor extends ParticlesInteractorBase {
4
7
  constructor(container) {
5
8
  super(container);
@@ -22,5 +25,6 @@ export class Attractor extends ParticlesInteractorBase {
22
25
  return particle.options.move.attract.enable;
23
26
  }
24
27
  reset() {
28
+ // do nothing
25
29
  }
26
30
  }
@@ -1,2 +1,2 @@
1
1
  import type { Main } from "../../../main";
2
- export declare function loadParticlesAttractInteraction(tsParticles: Main): void;
2
+ export declare function loadParticlesAttractInteraction(tsParticles: Main): Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import { Attractor } from "./Attractor";
2
- export function loadParticlesAttractInteraction(tsParticles) {
3
- tsParticles.addInteractor("particlesAttract", (container) => new Attractor(container));
2
+ export async function loadParticlesAttractInteraction(tsParticles) {
3
+ await tsParticles.addInteractor("particlesAttract", (container) => new Attractor(container));
4
4
  }
@@ -1,6 +1,9 @@
1
1
  import type { Particle } from "../../../Core/Particle";
2
2
  import type { Container } from "../../../Core/Container";
3
3
  import { ParticlesInteractorBase } from "../../../Core/ParticlesInteractorBase";
4
+ /**
5
+ * @category Interactions
6
+ */
4
7
  export declare class Collider extends ParticlesInteractorBase {
5
8
  constructor(container: Container);
6
9
  isEnabled(particle: Particle): boolean;
@@ -23,6 +23,9 @@ function destroy(p1, p2) {
23
23
  }
24
24
  }
25
25
  }
26
+ /**
27
+ * @category Interactions
28
+ */
26
29
  export class Collider extends ParticlesInteractorBase {
27
30
  constructor(container) {
28
31
  super(container);
@@ -31,6 +34,7 @@ export class Collider extends ParticlesInteractorBase {
31
34
  return particle.options.collisions.enable;
32
35
  }
33
36
  reset() {
37
+ // do nothing
34
38
  }
35
39
  interact(p1) {
36
40
  const container = this.container;
@@ -1,2 +1,2 @@
1
1
  import type { Main } from "../../../main";
2
- export declare function loadParticlesCollisionsInteraction(tsParticles: Main): void;
2
+ export declare function loadParticlesCollisionsInteraction(tsParticles: Main): Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import { Collider } from "./Collider";
2
- export function loadParticlesCollisionsInteraction(tsParticles) {
3
- tsParticles.addInteractor("particlesCollisions", (container) => new Collider(container));
2
+ export async function loadParticlesCollisionsInteraction(tsParticles) {
3
+ await tsParticles.addInteractor("particlesCollisions", (container) => new Collider(container));
4
4
  }
@@ -1,8 +1,14 @@
1
1
  import type { LinkParticle } from "./LinkParticle";
2
+ /**
3
+ * @category Interfaces
4
+ */
2
5
  export interface ILink {
3
6
  destination: LinkParticle;
4
7
  opacity: number;
5
8
  }
9
+ /**
10
+ * @category Interfaces
11
+ */
6
12
  export interface ILinkTriangle {
7
13
  vertices: LinkParticle[];
8
14
  opacity: number;
@@ -92,6 +92,14 @@ export class LinkInstance {
92
92
  container.canvas.draw((ctx) => {
93
93
  var _a, _b;
94
94
  let colorLine;
95
+ /*
96
+ * particles connecting line color:
97
+ *
98
+ * random: in blink mode : in every frame refresh the color would change
99
+ * hence resulting blinking of lines
100
+ * mid: in consent mode: sample particles color and get a mid level color
101
+ * from those two for the connecting line color
102
+ */
95
103
  const twinkle = p1.options.twinkle.lines;
96
104
  if (twinkle.enable) {
97
105
  const twinkleFreq = twinkle.frequency;
@@ -36,6 +36,7 @@ export class Linker extends ParticlesInteractorBase {
36
36
  return particle.options.links.enable;
37
37
  }
38
38
  reset() {
39
+ // do nothing
39
40
  }
40
41
  interact(p1) {
41
42
  var _a;
@@ -73,6 +74,7 @@ export class Linker extends ParticlesInteractorBase {
73
74
  if (distance > optDistance) {
74
75
  return;
75
76
  }
77
+ /* draw a line between p1 and p2 */
76
78
  const opacityLine = (1 - distance / optDistance) * optOpacity;
77
79
  this.setColor(p1);
78
80
  p1.links.push({
@@ -1,3 +1,3 @@
1
1
  import type { Main } from "../../../main";
2
- export declare function loadInteraction(tsParticles: Main): void;
3
- export declare function loadParticlesLinksInteraction(tsParticles: Main): void;
2
+ export declare function loadInteraction(tsParticles: Main): Promise<void>;
3
+ export declare function loadParticlesLinksInteraction(tsParticles: Main): Promise<void>;
@@ -1,9 +1,9 @@
1
1
  import { Linker } from "./Linker";
2
2
  import { loadPlugin } from "./plugin";
3
- export function loadInteraction(tsParticles) {
4
- tsParticles.addInteractor("particlesLinks", (container) => new Linker(container));
3
+ export async function loadInteraction(tsParticles) {
4
+ await tsParticles.addInteractor("particlesLinks", (container) => new Linker(container));
5
5
  }
6
- export function loadParticlesLinksInteraction(tsParticles) {
7
- loadInteraction(tsParticles);
8
- loadPlugin(tsParticles);
6
+ export async function loadParticlesLinksInteraction(tsParticles) {
7
+ await loadInteraction(tsParticles);
8
+ await loadPlugin(tsParticles);
9
9
  }
@@ -1,2 +1,2 @@
1
1
  import type { Main } from "../../../main";
2
- export declare function loadPlugin(tsParticles: Main): void;
2
+ export declare function loadPlugin(tsParticles: Main): Promise<void>;
@@ -10,9 +10,10 @@ class Plugin {
10
10
  return true;
11
11
  }
12
12
  loadOptions() {
13
+ // do nothing
13
14
  }
14
15
  }
15
- export function loadPlugin(tsParticles) {
16
+ export async function loadPlugin(tsParticles) {
16
17
  const plugin = new Plugin();
17
- tsParticles.addPlugin(plugin);
18
+ await tsParticles.addPlugin(plugin);
18
19
  }
@@ -3,6 +3,10 @@ import { OptionsColor } from "./OptionsColor";
3
3
  import type { RecursivePartial, SingleOrMultiple } from "../../Types";
4
4
  import type { IOptionLoader } from "../Interfaces/IOptionLoader";
5
5
  import { HslAnimation } from "./HslAnimation";
6
+ /**
7
+ * [[include:Options/Particles/Color.md]]
8
+ * @category Options
9
+ */
6
10
  export declare class AnimatableColor extends OptionsColor implements IAnimatableColor, IOptionLoader<IAnimatableColor> {
7
11
  animation: HslAnimation;
8
12
  constructor();
@@ -1,5 +1,9 @@
1
1
  import { OptionsColor } from "./OptionsColor";
2
2
  import { HslAnimation } from "./HslAnimation";
3
+ /**
4
+ * [[include:Options/Particles/Color.md]]
5
+ * @category Options
6
+ */
3
7
  export class AnimatableColor extends OptionsColor {
4
8
  constructor() {
5
9
  super();
@@ -2,6 +2,10 @@ import type { IBackground } from "../../Interfaces/Background/IBackground";
2
2
  import type { RecursivePartial } from "../../../Types";
3
3
  import { OptionsColor } from "../OptionsColor";
4
4
  import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
5
+ /**
6
+ * [[include:Options/Background.md]]
7
+ * @category Options
8
+ */
5
9
  export declare class Background implements IBackground, IOptionLoader<IBackground> {
6
10
  color: OptionsColor;
7
11
  image: string;
@@ -1,4 +1,8 @@
1
1
  import { OptionsColor } from "../OptionsColor";
2
+ /**
3
+ * [[include:Options/Background.md]]
4
+ * @category Options
5
+ */
2
6
  export class Background {
3
7
  constructor() {
4
8
  this.color = new OptionsColor();
@@ -2,9 +2,23 @@ import type { IBackgroundMask } from "../../Interfaces/BackgroundMask/IBackgroun
2
2
  import type { RecursivePartial } from "../../../Types";
3
3
  import { BackgroundMaskCover } from "./BackgroundMaskCover";
4
4
  import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
5
+ /**
6
+ * [[include:Options/BackgroundMask.md]]
7
+ * @category Options
8
+ */
5
9
  export declare class BackgroundMask implements IBackgroundMask, IOptionLoader<IBackgroundMask> {
10
+ /**
11
+ * Canvas composite operation
12
+ * values here: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
13
+ */
6
14
  composite: string;
15
+ /**
16
+ * Background covering color
17
+ */
7
18
  cover: BackgroundMaskCover;
19
+ /**
20
+ * Background mask enabling options
21
+ */
8
22
  enable: boolean;
9
23
  constructor();
10
24
  load(data?: RecursivePartial<IBackgroundMask>): void;
@@ -1,4 +1,8 @@
1
1
  import { BackgroundMaskCover } from "./BackgroundMaskCover";
2
+ /**
3
+ * [[include:Options/BackgroundMask.md]]
4
+ * @category Options
5
+ */
2
6
  export class BackgroundMask {
3
7
  constructor() {
4
8
  this.composite = "destination-out";
@@ -2,6 +2,9 @@ import type { RecursivePartial } from "../../../Types";
2
2
  import { OptionsColor } from "../OptionsColor";
3
3
  import type { IBackgroundMaskCover } from "../../Interfaces/BackgroundMask/IBackgroundMaskCover";
4
4
  import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
5
+ /**
6
+ * @category Options
7
+ */
5
8
  export declare class BackgroundMaskCover implements IBackgroundMaskCover, IOptionLoader<IBackgroundMaskCover> {
6
9
  color: OptionsColor;
7
10
  opacity: number;
@@ -1,4 +1,7 @@
1
1
  import { OptionsColor } from "../OptionsColor";
2
+ /**
3
+ * @category Options
4
+ */
2
5
  export class BackgroundMaskCover {
3
6
  constructor() {
4
7
  this.color = new OptionsColor();
@@ -1,6 +1,9 @@
1
1
  import type { IColorAnimation } from "../Interfaces/IColorAnimation";
2
2
  import type { RangeValue, RecursivePartial } from "../../Types";
3
3
  import type { IOptionLoader } from "../Interfaces/IOptionLoader";
4
+ /**
5
+ * @category Options
6
+ */
4
7
  export declare class ColorAnimation implements IColorAnimation, IOptionLoader<IColorAnimation> {
5
8
  count: number;
6
9
  enable: boolean;
@@ -1,4 +1,7 @@
1
1
  import { setRangeValue } from "../../Utils";
2
+ /**
3
+ * @category Options
4
+ */
2
5
  export class ColorAnimation {
3
6
  constructor() {
4
7
  this.count = 0;
@@ -1,8 +1,24 @@
1
1
  import type { IFullScreen } from "../../Interfaces/FullScreen/IFullScreen";
2
2
  import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
3
3
  import type { RecursivePartial } from "../../../Types";
4
+ /**
5
+ * The options to set the particles in the background using CSS `fixed` position
6
+ * The [[zIndex]] property sets the background CSS `z-index` property
7
+ * [[include:Options/FullScreen.md]]
8
+ * @category Options
9
+ */
4
10
  export declare class FullScreen implements IFullScreen, IOptionLoader<IFullScreen> {
11
+ /**
12
+ * This property sets the canvas to a full window size acting like a background, the most common configuration. The default value is `false` since many already have different configurations.
13
+ *
14
+ * This is really helpful since there's no need to write CSS code to have a full size tsParticles instance.
15
+ */
5
16
  enable: boolean;
17
+ /**
18
+ * This is the CSS `z-index` property set to the canvas.
19
+ *
20
+ * If the `z-index` is less than `0` the mouse interactions works only with the `interactivity.detectsOn` set to `window`.
21
+ */
6
22
  zIndex: number;
7
23
  constructor();
8
24
  load(data?: RecursivePartial<IFullScreen>): void;
@@ -1,7 +1,13 @@
1
+ /**
2
+ * The options to set the particles in the background using CSS `fixed` position
3
+ * The [[zIndex]] property sets the background CSS `z-index` property
4
+ * [[include:Options/FullScreen.md]]
5
+ * @category Options
6
+ */
1
7
  export class FullScreen {
2
8
  constructor() {
3
- this.enable = false;
4
- this.zIndex = -1;
9
+ this.enable = true;
10
+ this.zIndex = 0;
5
11
  }
6
12
  load(data) {
7
13
  if (!data) {
@@ -2,8 +2,18 @@ import type { IClickEvent } from "../../../Interfaces/Interactivity/Events/IClic
2
2
  import { ClickMode } from "../../../../Enums";
3
3
  import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
4
4
  import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
5
+ /**
6
+ * [[include:Options/Interactivity/Click.md]]
7
+ * @category Options
8
+ */
5
9
  export declare class ClickEvent implements IClickEvent, IOptionLoader<IClickEvent> {
10
+ /**
11
+ * The click event handler enabling setting
12
+ */
6
13
  enable: boolean;
14
+ /**
15
+ * Click mode values described in [[ClickMode]], an array of these values is also valid
16
+ */
7
17
  mode: SingleOrMultiple<ClickMode | keyof typeof ClickMode | string>;
8
18
  constructor();
9
19
  load(data?: RecursivePartial<IClickEvent>): void;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * [[include:Options/Interactivity/Click.md]]
3
+ * @category Options
4
+ */
1
5
  export class ClickEvent {
2
6
  constructor() {
3
7
  this.enable = false;
@@ -2,15 +2,52 @@ import type { IDivEvent } from "../../../Interfaces/Interactivity/Events/IDivEve
2
2
  import { DivMode, DivType } from "../../../../Enums";
3
3
  import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
4
4
  import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
5
+ /**
6
+ * [[include:Options/Interactivity/Div.md]]
7
+ * @category Options
8
+ */
5
9
  export declare class DivEvent implements IDivEvent, IOptionLoader<IDivEvent> {
10
+ /**
11
+ * The element id to detect the event
12
+ * @deprecated this property is obsolete, please use the new selectors
13
+ */
6
14
  get elementId(): SingleOrMultiple<string>;
15
+ /**
16
+ * The element id to detect the event
17
+ * @deprecated this property is obsolete, please use the new selectors
18
+ * @param value
19
+ */
7
20
  set elementId(value: SingleOrMultiple<string>);
21
+ /**
22
+ * The element id to detect the event
23
+ * @deprecated this property is obsolete, please use the new selectors
24
+ */
8
25
  get el(): SingleOrMultiple<string>;
26
+ /**
27
+ * The element id to detect the event
28
+ * @deprecated this property is obsolete, please use the new selectors
29
+ * @param value
30
+ */
9
31
  set el(value: SingleOrMultiple<string>);
32
+ /**
33
+ * The element id to detect the event
34
+ * @deprecated this property is obsolete, please use the new ids
35
+ */
10
36
  get ids(): SingleOrMultiple<string>;
37
+ /**
38
+ * The element id to detect the event
39
+ * @deprecated this property is obsolete, please use the new ids
40
+ * @param value
41
+ */
11
42
  set ids(value: SingleOrMultiple<string>);
12
43
  selectors: SingleOrMultiple<string>;
44
+ /**
45
+ * The div event handler enabling mode
46
+ */
13
47
  enable: boolean;
48
+ /**
49
+ * Div mode values described in [[DivMode]], an array of these values is also valid.
50
+ */
14
51
  mode: SingleOrMultiple<DivMode | keyof typeof DivMode | string>;
15
52
  type: DivType;
16
53
  constructor();
@@ -1,4 +1,8 @@
1
1
  import { DivType } from "../../../../Enums";
2
+ /**
3
+ * [[include:Options/Interactivity/Div.md]]
4
+ * @category Options
5
+ */
2
6
  export class DivEvent {
3
7
  constructor() {
4
8
  this.selectors = [];
@@ -6,23 +10,52 @@ export class DivEvent {
6
10
  this.mode = [];
7
11
  this.type = DivType.circle;
8
12
  }
13
+ /**
14
+ * The element id to detect the event
15
+ * @deprecated this property is obsolete, please use the new selectors
16
+ */
9
17
  get elementId() {
10
18
  return this.ids;
11
19
  }
20
+ /**
21
+ * The element id to detect the event
22
+ * @deprecated this property is obsolete, please use the new selectors
23
+ * @param value
24
+ */
12
25
  set elementId(value) {
13
26
  this.ids = value;
14
27
  }
28
+ /**
29
+ * The element id to detect the event
30
+ * @deprecated this property is obsolete, please use the new selectors
31
+ */
15
32
  get el() {
16
33
  return this.elementId;
17
34
  }
35
+ /**
36
+ * The element id to detect the event
37
+ * @deprecated this property is obsolete, please use the new selectors
38
+ * @param value
39
+ */
18
40
  set el(value) {
19
41
  this.elementId = value;
20
42
  }
43
+ /**
44
+ * The element id to detect the event
45
+ * @deprecated this property is obsolete, please use the new ids
46
+ */
21
47
  get ids() {
22
48
  return this.selectors instanceof Array
23
49
  ? this.selectors.map((t) => t.replace("#", ""))
24
50
  : this.selectors.replace("#", "");
51
+ // this is the best we can do, if a non-id selector is used the old property won't work
52
+ // but ids is deprecated so who cares.
25
53
  }
54
+ /**
55
+ * The element id to detect the event
56
+ * @deprecated this property is obsolete, please use the new ids
57
+ * @param value
58
+ */
26
59
  set ids(value) {
27
60
  this.selectors = value instanceof Array ? value.map((t) => `#${t}`) : `#${value}`;
28
61
  }
@@ -4,12 +4,43 @@ import { DivEvent } from "./DivEvent";
4
4
  import { HoverEvent } from "./HoverEvent";
5
5
  import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
6
6
  import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
7
+ /**
8
+ * [[include:Options/Interactivity/Events.md]]
9
+ * @category Options
10
+ */
7
11
  export declare class Events implements IEvents, IOptionLoader<IEvents> {
12
+ /**
13
+ *
14
+ * @deprecated this property is obsolete, please use the new onClick
15
+ */
8
16
  get onclick(): ClickEvent;
17
+ /**
18
+ *
19
+ * @deprecated this property is obsolete, please use the new onClick
20
+ * @param value
21
+ */
9
22
  set onclick(value: ClickEvent);
23
+ /**
24
+ *
25
+ * @deprecated this property is obsolete, please use the new onDiv
26
+ */
10
27
  get ondiv(): SingleOrMultiple<DivEvent>;
28
+ /**
29
+ *
30
+ * @deprecated this property is obsolete, please use the new onDiv
31
+ * @param value
32
+ */
11
33
  set ondiv(value: SingleOrMultiple<DivEvent>);
34
+ /**
35
+ *
36
+ * @deprecated this property is obsolete, please use the new onHover
37
+ */
12
38
  get onhover(): HoverEvent;
39
+ /**
40
+ *
41
+ * @deprecated this property is obsolete, please use the new onHover
42
+ * @param value
43
+ */
13
44
  set onhover(value: HoverEvent);
14
45
  onClick: ClickEvent;
15
46
  onDiv: SingleOrMultiple<DivEvent>;
@@ -1,6 +1,10 @@
1
1
  import { ClickEvent } from "./ClickEvent";
2
2
  import { DivEvent } from "./DivEvent";
3
3
  import { HoverEvent } from "./HoverEvent";
4
+ /**
5
+ * [[include:Options/Interactivity/Events.md]]
6
+ * @category Options
7
+ */
4
8
  export class Events {
5
9
  constructor() {
6
10
  this.onClick = new ClickEvent();
@@ -8,21 +12,48 @@ export class Events {
8
12
  this.onHover = new HoverEvent();
9
13
  this.resize = true;
10
14
  }
15
+ /**
16
+ *
17
+ * @deprecated this property is obsolete, please use the new onClick
18
+ */
11
19
  get onclick() {
12
20
  return this.onClick;
13
21
  }
22
+ /**
23
+ *
24
+ * @deprecated this property is obsolete, please use the new onClick
25
+ * @param value
26
+ */
14
27
  set onclick(value) {
15
28
  this.onClick = value;
16
29
  }
30
+ /**
31
+ *
32
+ * @deprecated this property is obsolete, please use the new onDiv
33
+ */
17
34
  get ondiv() {
18
35
  return this.onDiv;
19
36
  }
37
+ /**
38
+ *
39
+ * @deprecated this property is obsolete, please use the new onDiv
40
+ * @param value
41
+ */
20
42
  set ondiv(value) {
21
43
  this.onDiv = value;
22
44
  }
45
+ /**
46
+ *
47
+ * @deprecated this property is obsolete, please use the new onHover
48
+ */
23
49
  get onhover() {
24
50
  return this.onHover;
25
51
  }
52
+ /**
53
+ *
54
+ * @deprecated this property is obsolete, please use the new onHover
55
+ * @param value
56
+ */
26
57
  set onhover(value) {
27
58
  this.onHover = value;
28
59
  }
@@ -3,6 +3,10 @@ import { HoverMode } from "../../../../Enums";
3
3
  import { Parallax } from "./Parallax";
4
4
  import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
5
5
  import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
6
+ /**
7
+ * [[include:Options/Interactivity/Hover.md]]
8
+ * @category Options
9
+ */
6
10
  export declare class HoverEvent implements IHoverEvent, IOptionLoader<IHoverEvent> {
7
11
  enable: boolean;
8
12
  mode: SingleOrMultiple<HoverMode | keyof typeof HoverMode | string>;
@@ -1,4 +1,8 @@
1
1
  import { Parallax } from "./Parallax";
2
+ /**
3
+ * [[include:Options/Interactivity/Hover.md]]
4
+ * @category Options
5
+ */
2
6
  export class HoverEvent {
3
7
  constructor() {
4
8
  this.enable = false;
@@ -1,6 +1,9 @@
1
1
  import type { IParallax } from "../../../Interfaces/Interactivity/Events/IParallax";
2
2
  import type { RecursivePartial } from "../../../../Types";
3
3
  import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
4
+ /**
5
+ * @category Options
6
+ */
4
7
  export declare class Parallax implements IParallax, IOptionLoader<IParallax> {
5
8
  enable: boolean;
6
9
  force: number;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @category Options
3
+ */
1
4
  export class Parallax {
2
5
  constructor() {
3
6
  this.enable = false;
@@ -4,8 +4,21 @@ import { Events } from "./Events/Events";
4
4
  import { Modes } from "./Modes/Modes";
5
5
  import type { RecursivePartial } from "../../../Types";
6
6
  import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
7
+ /**
8
+ * [[include:Options/Interactivity.md]]
9
+ * @category Options
10
+ */
7
11
  export declare class Interactivity implements IInteractivity, IOptionLoader<IInteractivity> {
12
+ /**
13
+ *
14
+ * @deprecated this property is obsolete, please use the new detectsOn
15
+ */
8
16
  get detect_on(): InteractivityDetect | keyof typeof InteractivityDetect;
17
+ /**
18
+ *
19
+ * @deprecated this property is obsolete, please use the new detectsOn
20
+ * @param value
21
+ */
9
22
  set detect_on(value: InteractivityDetect | keyof typeof InteractivityDetect);
10
23
  detectsOn: InteractivityDetect | keyof typeof InteractivityDetect;
11
24
  events: Events;