tsparticles 1.42.2 → 1.43.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 (2943) hide show
  1. package/README.md +1 -1
  2. package/browser/Core/Canvas.js +47 -60
  3. package/browser/Core/Container.js +15 -9
  4. package/browser/Core/Interfaces/{IAttract.js → IParticleColorStyle.js} +0 -0
  5. package/browser/Core/Interfaces/{IBubble.js → IParticlesMover.js} +0 -0
  6. package/browser/Core/Interfaces/{IParticleGradientAnimation.js → IPositionFromSizeParams.js} +0 -0
  7. package/browser/Core/Loader.js +26 -10
  8. package/browser/Core/Particle.js +38 -48
  9. package/browser/Core/Particles.js +24 -27
  10. package/browser/Core/Retina.js +4 -13
  11. package/browser/Core/Utils/Circle.js +20 -13
  12. package/browser/Core/Utils/CircleWarp.js +19 -7
  13. package/browser/Core/Utils/EventListeners.js +53 -94
  14. package/browser/Core/Utils/ExternalInteractorBase.js +11 -0
  15. package/browser/Core/Utils/FrameManager.js +2 -3
  16. package/browser/Core/Utils/InteractionManager.js +28 -0
  17. package/browser/Core/Utils/ParticlesInteractorBase.js +11 -0
  18. package/browser/Core/Utils/Plugins.js +100 -3
  19. package/browser/Core/Utils/Point.js +5 -0
  20. package/browser/Core/Utils/QuadTree.js +58 -27
  21. package/browser/Core/Utils/Range.js +6 -0
  22. package/browser/Core/Utils/Rectangle.js +23 -15
  23. package/browser/Core/Utils/Vector.js +123 -16
  24. package/browser/Core/Utils/Vector3d.js +85 -5
  25. package/browser/Interactions/External/Attract/Attractor.js +37 -3
  26. package/browser/Interactions/External/Bounce/Bouncer.js +8 -6
  27. package/browser/Interactions/External/Bubble/Bubbler.js +25 -2
  28. package/browser/Interactions/External/Connect/Connector.js +2 -2
  29. package/browser/Interactions/External/Grab/Grabber.js +34 -29
  30. package/browser/Interactions/External/Pause/Pauser.js +31 -0
  31. package/browser/Interactions/External/Pause/index.js +4 -0
  32. package/browser/Interactions/External/Push/Pusher.js +35 -0
  33. package/browser/Interactions/External/Push/index.js +4 -0
  34. package/browser/Interactions/External/Remove/Remover.js +28 -0
  35. package/browser/Interactions/External/Remove/index.js +4 -0
  36. package/browser/Interactions/External/Repulse/Repulser.js +37 -2
  37. package/browser/Interactions/External/Trail/TrailMaker.js +2 -2
  38. package/browser/Interactions/Particles/Attract/Attractor.js +2 -2
  39. package/browser/Interactions/Particles/Collisions/Collider.js +9 -17
  40. package/browser/Interactions/Particles/Links/LinkInstance.js +37 -55
  41. package/browser/Interactions/Particles/Links/Linker.js +9 -14
  42. package/browser/Movers/Base/BaseMover.js +76 -0
  43. package/browser/{Core/Interfaces/IParticleGradientColorAnimation.js → Movers/Base/IParticleSpin.js} +0 -0
  44. package/browser/{Core/Interfaces/IRepulse.js → Movers/Base/Types.js} +0 -0
  45. package/browser/Movers/Base/Utils.js +97 -0
  46. package/browser/Movers/Base/index.js +4 -0
  47. package/browser/Movers/Parallax/ParallaxMover.js +31 -0
  48. package/browser/Movers/Parallax/index.js +4 -0
  49. package/browser/Options/Classes/AnimatableGradient.js +1 -1
  50. package/browser/Options/Classes/AnimationOptions.js +1 -1
  51. package/browser/Options/Classes/ColorAnimation.js +1 -1
  52. package/browser/Options/Classes/Interactivity/Modes/Trail.js +1 -1
  53. package/browser/Options/Classes/ManualParticle.js +1 -1
  54. package/browser/Options/Classes/Options.js +1 -1
  55. package/browser/Options/Classes/Particles/Destroy/Split.js +1 -1
  56. package/browser/Options/Classes/Particles/Move/Attract.js +1 -1
  57. package/browser/Options/Classes/Particles/Move/Move.js +2 -1
  58. package/browser/Options/Classes/Particles/Move/MoveAngle.js +1 -1
  59. package/browser/Options/Classes/Particles/Move/MoveGravity.js +1 -1
  60. package/browser/Options/Classes/Particles/Move/Path/Path.js +1 -1
  61. package/browser/Options/Classes/Particles/Move/Spin.js +2 -1
  62. package/browser/Options/Classes/Particles/Opacity/Opacity.js +1 -1
  63. package/browser/Options/Classes/Particles/Orbit/Orbit.js +1 -1
  64. package/browser/Options/Classes/Particles/ParticlesOptions.js +1 -1
  65. package/browser/Options/Classes/Particles/Repulse/Repulse.js +1 -1
  66. package/browser/Options/Classes/Particles/Roll/Roll.js +1 -1
  67. package/browser/Options/Classes/Particles/Roll/RollLight.js +1 -1
  68. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.js +1 -1
  69. package/browser/Options/Classes/Particles/Shape/Shape.js +1 -1
  70. package/browser/Options/Classes/Particles/Size/Size.js +1 -1
  71. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.js +1 -1
  72. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.js +1 -1
  73. package/browser/Options/Classes/Particles/Wobble/Wobble.js +1 -1
  74. package/browser/Options/Classes/Responsive.js +1 -1
  75. package/browser/Options/Classes/Theme/Theme.js +1 -1
  76. package/browser/Options/Classes/ValueWithRandom.js +1 -1
  77. package/browser/Plugins/Absorbers/AbsorberInstance.js +44 -20
  78. package/browser/Plugins/Absorbers/Absorbers.js +3 -6
  79. package/browser/Plugins/Absorbers/Options/Classes/Absorber.js +1 -1
  80. package/browser/Plugins/Absorbers/index.js +8 -9
  81. package/browser/Plugins/Emitters/EmitterInstance.js +20 -25
  82. package/browser/Plugins/Emitters/Emitters.js +3 -6
  83. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +2 -1
  84. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.js +1 -1
  85. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -7
  86. package/browser/Plugins/Emitters/index.js +4 -1
  87. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  88. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +1 -1
  89. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +19 -42
  90. package/browser/Plugins/PolygonMask/Utils.js +12 -15
  91. package/browser/Plugins/PolygonMask/index.js +6 -2
  92. package/browser/Shapes/Image/ImageDrawer.js +61 -20
  93. package/browser/Shapes/Image/Utils.js +26 -1
  94. package/browser/Shapes/Image/index.js +4 -0
  95. package/browser/Shapes/Text/TextDrawer.js +1 -1
  96. package/browser/Updaters/Angle/AngleUpdater.js +1 -1
  97. package/browser/Updaters/Color/ColorUpdater.js +2 -1
  98. package/browser/Updaters/Life/LifeUpdater.js +1 -1
  99. package/browser/Updaters/Opacity/OpacityUpdater.js +1 -1
  100. package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
  101. package/browser/Updaters/OutModes/Utils.js +1 -1
  102. package/browser/Updaters/Roll/RollUpdater.js +2 -1
  103. package/browser/Updaters/Size/SizeUpdater.js +1 -1
  104. package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +3 -1
  105. package/browser/Updaters/Tilt/TiltUpdater.js +1 -1
  106. package/browser/Updaters/Twinkle/TwinkleUpdater.js +19 -0
  107. package/browser/Updaters/Twinkle/index.js +4 -0
  108. package/browser/Updaters/Wobble/WobbleUpdater.js +26 -1
  109. package/browser/Utils/CanvasUtils.js +163 -57
  110. package/browser/Utils/ColorUtils.js +100 -31
  111. package/browser/Utils/NumberUtils.js +73 -7
  112. package/browser/Utils/Utils.js +136 -55
  113. package/browser/engine.js +16 -1
  114. package/browser/full.js +7 -1
  115. package/browser/index.engine.js +104 -6
  116. package/browser/index.js +112 -8
  117. package/browser/index.slim.js +103 -6
  118. package/browser/pjs.js +6 -2
  119. package/browser/slim.js +14 -0
  120. package/cjs/Core/Canvas.js +306 -0
  121. package/cjs/Core/Container.js +401 -0
  122. package/{Core → cjs/Core}/Interfaces/Colors.js +0 -0
  123. package/{Core → cjs/Core}/Interfaces/Gradients.js +0 -0
  124. package/{Core → cjs/Core}/Interfaces/IBounds.js +0 -0
  125. package/{Core → cjs/Core}/Interfaces/IBubbleParticleData.js +0 -0
  126. package/{Core → cjs/Core}/Interfaces/ICircleBouncer.js +0 -0
  127. package/{Core → cjs/Core}/Interfaces/IContainerInteractivity.js +0 -0
  128. package/{Core → cjs/Core}/Interfaces/IContainerPlugin.js +0 -0
  129. package/{Core → cjs/Core}/Interfaces/ICoordinates.js +0 -0
  130. package/{Core → cjs/Core}/Interfaces/IDelta.js +0 -0
  131. package/{Core → cjs/Core}/Interfaces/IDimension.js +0 -0
  132. package/{Core → cjs/Core}/Interfaces/IDistance.js +0 -0
  133. package/{Core → cjs/Core}/Interfaces/IExternalInteractor.js +0 -0
  134. package/{Core → cjs/Core}/Interfaces/IInteractor.js +0 -0
  135. package/{Core → cjs/Core}/Interfaces/IMouseData.js +0 -0
  136. package/{Core → cjs/Core}/Interfaces/IMovePathGenerator.js +0 -0
  137. package/{Core → cjs/Core}/Interfaces/IParticle.js +0 -0
  138. package/{Core/Interfaces/IAttract.js → cjs/Core/Interfaces/IParticleColorStyle.js} +0 -0
  139. package/{Core → cjs/Core}/Interfaces/IParticleGravity.js +0 -0
  140. package/{Core → cjs/Core}/Interfaces/IParticleHslAnimation.js +0 -0
  141. package/{Core → cjs/Core}/Interfaces/IParticleLife.js +0 -0
  142. package/{Core → cjs/Core}/Interfaces/IParticleLoops.js +0 -0
  143. package/{Core → cjs/Core}/Interfaces/IParticleRetinaProps.js +0 -0
  144. package/{Core → cjs/Core}/Interfaces/IParticleRoll.js +0 -0
  145. package/{Core → cjs/Core}/Interfaces/IParticleSpin.js +0 -0
  146. package/{Core → cjs/Core}/Interfaces/IParticleUpdater.js +0 -0
  147. package/{Core → cjs/Core}/Interfaces/IParticleValueAnimation.js +0 -0
  148. package/{Core → cjs/Core}/Interfaces/IParticleWobble.js +0 -0
  149. package/{Core → cjs/Core}/Interfaces/IParticlesFrequencies.js +0 -0
  150. package/{Core → cjs/Core}/Interfaces/IParticlesInteractor.js +0 -0
  151. package/{Core/Interfaces/IBubble.js → cjs/Core/Interfaces/IParticlesMover.js} +0 -0
  152. package/{Core → cjs/Core}/Interfaces/IPlugin.js +0 -0
  153. package/{Core/Interfaces/IParticleGradientAnimation.js → cjs/Core/Interfaces/IPositionFromSizeParams.js} +0 -0
  154. package/{Core → cjs/Core}/Interfaces/IRangeValue.js +0 -0
  155. package/{Core → cjs/Core}/Interfaces/IRectSideResult.js +0 -0
  156. package/{Core → cjs/Core}/Interfaces/IShapeDrawer.js +0 -0
  157. package/{Core → cjs/Core}/Interfaces/IShapeValues.js +0 -0
  158. package/cjs/Core/Loader.js +179 -0
  159. package/cjs/Core/Particle.js +367 -0
  160. package/cjs/Core/Particles.js +320 -0
  161. package/cjs/Core/Retina.js +88 -0
  162. package/cjs/Core/Utils/Circle.js +33 -0
  163. package/cjs/Core/Utils/CircleWarp.js +55 -0
  164. package/{Core → cjs/Core}/Utils/Constants.js +0 -0
  165. package/cjs/Core/Utils/EventListeners.js +302 -0
  166. package/{Core → cjs/Core}/Utils/ExternalInteractorBase.js +0 -0
  167. package/cjs/Core/Utils/FrameManager.js +42 -0
  168. package/cjs/Core/Utils/InteractionManager.js +66 -0
  169. package/{Core → cjs/Core}/Utils/ParticlesInteractorBase.js +0 -0
  170. package/cjs/Core/Utils/Plugins.js +111 -0
  171. package/{Core → cjs/Core}/Utils/Point.js +0 -0
  172. package/cjs/Core/Utils/QuadTree.js +71 -0
  173. package/{Core → cjs/Core}/Utils/Range.js +0 -0
  174. package/cjs/Core/Utils/Rectangle.js +29 -0
  175. package/cjs/Core/Utils/Vector.js +94 -0
  176. package/cjs/Core/Utils/Vector3d.js +70 -0
  177. package/{Enums → cjs/Enums}/AnimationStatus.js +0 -0
  178. package/{Enums → cjs/Enums}/Directions/MoveDirection.js +0 -0
  179. package/{Enums → cjs/Enums}/Directions/OutModeDirection.js +0 -0
  180. package/{Enums → cjs/Enums}/Directions/RotateDirection.js +0 -0
  181. package/{Enums → cjs/Enums}/Directions/TiltDirection.js +0 -0
  182. package/{Enums → cjs/Enums}/InteractivityDetect.js +0 -0
  183. package/{Enums → cjs/Enums}/Modes/ClickMode.js +0 -0
  184. package/{Enums → cjs/Enums}/Modes/CollisionMode.js +0 -0
  185. package/{Enums → cjs/Enums}/Modes/DestroyMode.js +0 -0
  186. package/{Enums → cjs/Enums}/Modes/DivMode.js +0 -0
  187. package/{Enums → cjs/Enums}/Modes/HoverMode.js +0 -0
  188. package/{Enums → cjs/Enums}/Modes/OutMode.js +0 -0
  189. package/{Enums → cjs/Enums}/Modes/ResponsiveMode.js +0 -0
  190. package/{Enums → cjs/Enums}/Modes/RollMode.js +0 -0
  191. package/{Enums → cjs/Enums}/Modes/SizeMode.js +0 -0
  192. package/{Enums → cjs/Enums}/Modes/ThemeMode.js +0 -0
  193. package/{Enums → cjs/Enums}/Types/AlterType.js +0 -0
  194. package/{Enums → cjs/Enums}/Types/DestroyType.js +0 -0
  195. package/{Enums → cjs/Enums}/Types/DivType.js +0 -0
  196. package/{Enums → cjs/Enums}/Types/EasingType.js +0 -0
  197. package/{Enums → cjs/Enums}/Types/GradientType.js +0 -0
  198. package/{Enums → cjs/Enums}/Types/InteractorType.js +0 -0
  199. package/{Enums → cjs/Enums}/Types/ShapeType.js +0 -0
  200. package/{Enums → cjs/Enums}/Types/StartValueType.js +0 -0
  201. package/cjs/Interactions/External/Attract/Attractor.js +109 -0
  202. package/{Interactions → cjs/Interactions}/External/Attract/index.js +0 -0
  203. package/cjs/Interactions/External/Bounce/Bouncer.js +69 -0
  204. package/{Interactions → cjs/Interactions}/External/Bounce/index.js +0 -0
  205. package/cjs/Interactions/External/Bubble/Bubbler.js +274 -0
  206. package/{Interactions → cjs/Interactions}/External/Bubble/IBubblerProcessParam.js +0 -0
  207. package/{Interactions → cjs/Interactions}/External/Bubble/ProcessBubbleType.js +0 -0
  208. package/{Interactions → cjs/Interactions}/External/Bubble/index.js +0 -0
  209. package/cjs/Interactions/External/Connect/Connector.js +41 -0
  210. package/{Interactions → cjs/Interactions}/External/Connect/index.js +0 -0
  211. package/cjs/Interactions/External/Grab/Grabber.js +52 -0
  212. package/{Interactions → cjs/Interactions}/External/Grab/index.js +0 -0
  213. package/cjs/Interactions/External/Pause/Pauser.js +29 -0
  214. package/cjs/Interactions/External/Pause/index.js +8 -0
  215. package/cjs/Interactions/External/Push/Pusher.js +33 -0
  216. package/cjs/Interactions/External/Push/index.js +8 -0
  217. package/cjs/Interactions/External/Remove/Remover.js +26 -0
  218. package/cjs/Interactions/External/Remove/index.js +8 -0
  219. package/cjs/Interactions/External/Repulse/Repulser.js +133 -0
  220. package/{Interactions → cjs/Interactions}/External/Repulse/index.js +0 -0
  221. package/cjs/Interactions/External/Trail/TrailMaker.js +53 -0
  222. package/{Interactions → cjs/Interactions}/External/Trail/index.js +0 -0
  223. package/cjs/Interactions/Particles/Attract/Attractor.js +30 -0
  224. package/{Interactions → cjs/Interactions}/Particles/Attract/index.js +0 -0
  225. package/cjs/Interactions/Particles/Collisions/Collider.js +101 -0
  226. package/{Interactions → cjs/Interactions}/Particles/Collisions/index.js +0 -0
  227. package/{Interactions → cjs/Interactions}/Particles/Links/ILink.js +0 -0
  228. package/cjs/Interactions/Particles/Links/LinkInstance.js +106 -0
  229. package/{Interactions → cjs/Interactions}/Particles/Links/LinkParticle.js +0 -0
  230. package/cjs/Interactions/Particles/Links/Linker.js +100 -0
  231. package/{Interactions → cjs/Interactions}/Particles/Links/index.js +0 -0
  232. package/{Interactions → cjs/Interactions}/Particles/Links/interaction.js +0 -0
  233. package/{Interactions → cjs/Interactions}/Particles/Links/plugin.js +0 -0
  234. package/cjs/Movers/Base/BaseMover.js +80 -0
  235. package/{Core/Interfaces/IParticleGradientColorAnimation.js → cjs/Movers/Base/IParticleSpin.js} +0 -0
  236. package/{Core/Interfaces/IRepulse.js → cjs/Movers/Base/Types.js} +0 -0
  237. package/cjs/Movers/Base/Utils.js +104 -0
  238. package/cjs/Movers/Base/index.js +8 -0
  239. package/cjs/Movers/Parallax/ParallaxMover.js +33 -0
  240. package/cjs/Movers/Parallax/index.js +8 -0
  241. package/{Options → cjs/Options}/Classes/AnimatableColor.js +0 -0
  242. package/cjs/Options/Classes/AnimatableGradient.js +146 -0
  243. package/cjs/Options/Classes/AnimationOptions.js +30 -0
  244. package/{Options → cjs/Options}/Classes/Background/Background.js +0 -0
  245. package/{Options → cjs/Options}/Classes/BackgroundMask/BackgroundMask.js +0 -0
  246. package/{Options → cjs/Options}/Classes/BackgroundMask/BackgroundMaskCover.js +0 -0
  247. package/cjs/Options/Classes/ColorAnimation.js +34 -0
  248. package/{Options → cjs/Options}/Classes/FullScreen/FullScreen.js +0 -0
  249. package/{Options → cjs/Options}/Classes/HslAnimation.js +0 -0
  250. package/{Options → cjs/Options}/Classes/Interactivity/Events/ClickEvent.js +0 -0
  251. package/{Options → cjs/Options}/Classes/Interactivity/Events/DivEvent.js +0 -0
  252. package/{Options → cjs/Options}/Classes/Interactivity/Events/Events.js +0 -0
  253. package/{Options → cjs/Options}/Classes/Interactivity/Events/HoverEvent.js +0 -0
  254. package/{Options → cjs/Options}/Classes/Interactivity/Events/Parallax.js +0 -0
  255. package/{Options → cjs/Options}/Classes/Interactivity/Interactivity.js +0 -0
  256. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Attract.js +0 -0
  257. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Bounce.js +0 -0
  258. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Bubble.js +0 -0
  259. package/{Options → cjs/Options}/Classes/Interactivity/Modes/BubbleBase.js +0 -0
  260. package/{Options → cjs/Options}/Classes/Interactivity/Modes/BubbleDiv.js +0 -0
  261. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Connect.js +0 -0
  262. package/{Options → cjs/Options}/Classes/Interactivity/Modes/ConnectLinks.js +0 -0
  263. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Grab.js +0 -0
  264. package/{Options → cjs/Options}/Classes/Interactivity/Modes/GrabLinks.js +0 -0
  265. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Light.js +0 -0
  266. package/{Options → cjs/Options}/Classes/Interactivity/Modes/LightArea.js +0 -0
  267. package/{Options → cjs/Options}/Classes/Interactivity/Modes/LightGradient.js +0 -0
  268. package/{Options → cjs/Options}/Classes/Interactivity/Modes/LightShadow.js +0 -0
  269. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Modes.js +0 -0
  270. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Push.js +0 -0
  271. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Remove.js +0 -0
  272. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Repulse.js +0 -0
  273. package/{Options → cjs/Options}/Classes/Interactivity/Modes/RepulseBase.js +0 -0
  274. package/{Options → cjs/Options}/Classes/Interactivity/Modes/RepulseDiv.js +0 -0
  275. package/{Options → cjs/Options}/Classes/Interactivity/Modes/Slow.js +0 -0
  276. package/cjs/Options/Classes/Interactivity/Modes/Trail.js +29 -0
  277. package/cjs/Options/Classes/ManualParticle.js +22 -0
  278. package/{Options → cjs/Options}/Classes/Motion/Motion.js +0 -0
  279. package/{Options → cjs/Options}/Classes/Motion/MotionReduce.js +0 -0
  280. package/cjs/Options/Classes/Options.js +174 -0
  281. package/{Options → cjs/Options}/Classes/OptionsColor.js +0 -0
  282. package/{Options → cjs/Options}/Classes/Particles/Bounce/Bounce.js +0 -0
  283. package/{Options → cjs/Options}/Classes/Particles/Bounce/BounceFactor.js +0 -0
  284. package/{Options → cjs/Options}/Classes/Particles/Collisions/Collisions.js +0 -0
  285. package/{Options → cjs/Options}/Classes/Particles/Collisions/CollisionsOverlap.js +0 -0
  286. package/{Options → cjs/Options}/Classes/Particles/Destroy/Destroy.js +0 -0
  287. package/cjs/Options/Classes/Particles/Destroy/Split.js +31 -0
  288. package/{Options → cjs/Options}/Classes/Particles/Destroy/SplitFactor.js +0 -0
  289. package/{Options → cjs/Options}/Classes/Particles/Destroy/SplitRate.js +0 -0
  290. package/{Options → cjs/Options}/Classes/Particles/Life/Life.js +0 -0
  291. package/{Options → cjs/Options}/Classes/Particles/Life/LifeDelay.js +0 -0
  292. package/{Options → cjs/Options}/Classes/Particles/Life/LifeDuration.js +0 -0
  293. package/{Options → cjs/Options}/Classes/Particles/Links/Links.js +0 -0
  294. package/{Options → cjs/Options}/Classes/Particles/Links/LinksShadow.js +0 -0
  295. package/{Options → cjs/Options}/Classes/Particles/Links/LinksTriangle.js +0 -0
  296. package/cjs/Options/Classes/Particles/Move/Attract.js +47 -0
  297. package/cjs/Options/Classes/Particles/Move/Move.js +133 -0
  298. package/cjs/Options/Classes/Particles/Move/MoveAngle.js +22 -0
  299. package/cjs/Options/Classes/Particles/Move/MoveGravity.js +30 -0
  300. package/{Options → cjs/Options}/Classes/Particles/Move/OutModes.js +0 -0
  301. package/cjs/Options/Classes/Particles/Move/Path/Path.js +30 -0
  302. package/{Options → cjs/Options}/Classes/Particles/Move/Path/PathDelay.js +0 -0
  303. package/cjs/Options/Classes/Particles/Move/Spin.js +24 -0
  304. package/{Options → cjs/Options}/Classes/Particles/Move/Trail.js +0 -0
  305. package/{Options → cjs/Options}/Classes/Particles/Number/Density.js +0 -0
  306. package/{Options → cjs/Options}/Classes/Particles/Number/ParticlesNumber.js +0 -0
  307. package/cjs/Options/Classes/Particles/Opacity/Opacity.js +33 -0
  308. package/{Options → cjs/Options}/Classes/Particles/Opacity/OpacityAnimation.js +0 -0
  309. package/cjs/Options/Classes/Particles/Orbit/Orbit.js +39 -0
  310. package/{Options → cjs/Options}/Classes/Particles/Orbit/OrbitRotation.js +0 -0
  311. package/cjs/Options/Classes/Particles/ParticlesOptions.js +143 -0
  312. package/cjs/Options/Classes/Particles/Repulse/Repulse.js +37 -0
  313. package/cjs/Options/Classes/Particles/Roll/Roll.js +35 -0
  314. package/cjs/Options/Classes/Particles/Roll/RollLight.js +22 -0
  315. package/{Options → cjs/Options}/Classes/Particles/Rotate/Rotate.js +0 -0
  316. package/cjs/Options/Classes/Particles/Rotate/RotateAnimation.js +26 -0
  317. package/{Options → cjs/Options}/Classes/Particles/Shadow.js +0 -0
  318. package/cjs/Options/Classes/Particles/Shape/Shape.js +103 -0
  319. package/cjs/Options/Classes/Particles/Size/Size.js +33 -0
  320. package/{Options → cjs/Options}/Classes/Particles/Size/SizeAnimation.js +0 -0
  321. package/{Options → cjs/Options}/Classes/Particles/Stroke.js +0 -0
  322. package/{Options → cjs/Options}/Classes/Particles/Tilt/Tilt.js +0 -0
  323. package/cjs/Options/Classes/Particles/Tilt/TiltAnimation.js +26 -0
  324. package/{Options → cjs/Options}/Classes/Particles/Twinkle/Twinkle.js +0 -0
  325. package/cjs/Options/Classes/Particles/Twinkle/TwinkleValues.js +30 -0
  326. package/cjs/Options/Classes/Particles/Wobble/Wobble.js +26 -0
  327. package/{Options → cjs/Options}/Classes/Particles/ZIndex/ZIndex.js +0 -0
  328. package/{Options → cjs/Options}/Classes/Random.js +0 -0
  329. package/cjs/Options/Classes/Responsive.js +31 -0
  330. package/cjs/Options/Classes/Theme/Theme.js +24 -0
  331. package/{Options → cjs/Options}/Classes/Theme/ThemeDefault.js +0 -0
  332. package/cjs/Options/Classes/ValueWithRandom.js +26 -0
  333. package/{Options → cjs/Options}/Interfaces/Background/IBackground.js +0 -0
  334. package/{Options → cjs/Options}/Interfaces/BackgroundMask/IBackgroundMask.js +0 -0
  335. package/{Options → cjs/Options}/Interfaces/BackgroundMask/IBackgroundMaskCover.js +0 -0
  336. package/{Options → cjs/Options}/Interfaces/FullScreen/IFullScreen.js +0 -0
  337. package/{Options → cjs/Options}/Interfaces/IAnimatable.js +0 -0
  338. package/{Options → cjs/Options}/Interfaces/IAnimatableColor.js +0 -0
  339. package/{Options → cjs/Options}/Interfaces/IAnimatableGradient.js +0 -0
  340. package/{Options → cjs/Options}/Interfaces/IAnimation.js +0 -0
  341. package/{Options → cjs/Options}/Interfaces/IColorAnimation.js +0 -0
  342. package/{Options → cjs/Options}/Interfaces/IHslAnimation.js +0 -0
  343. package/{Options → cjs/Options}/Interfaces/IManualParticle.js +0 -0
  344. package/{Options → cjs/Options}/Interfaces/IOptionLoader.js +0 -0
  345. package/{Options → cjs/Options}/Interfaces/IOptions.js +0 -0
  346. package/{Options → cjs/Options}/Interfaces/IOptionsColor.js +0 -0
  347. package/{Options → cjs/Options}/Interfaces/IOptionsGradient.js +0 -0
  348. package/{Options → cjs/Options}/Interfaces/IRandom.js +0 -0
  349. package/{Options → cjs/Options}/Interfaces/IResponsive.js +0 -0
  350. package/{Options → cjs/Options}/Interfaces/IValueWithRandom.js +0 -0
  351. package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IClickEvent.js +0 -0
  352. package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IDivEvent.js +0 -0
  353. package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IEvents.js +0 -0
  354. package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IHoverEvent.js +0 -0
  355. package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IParallax.js +0 -0
  356. package/{Options → cjs/Options}/Interfaces/Interactivity/IInteractivity.js +0 -0
  357. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IAttract.js +0 -0
  358. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBounce.js +0 -0
  359. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBubble.js +0 -0
  360. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBubbleBase.js +0 -0
  361. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBubbleDiv.js +0 -0
  362. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IConnect.js +0 -0
  363. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IConnectLinks.js +0 -0
  364. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IGrab.js +0 -0
  365. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IGrabLinks.js +0 -0
  366. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ILight.js +0 -0
  367. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ILightArea.js +0 -0
  368. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ILightShadow.js +0 -0
  369. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IModeDiv.js +0 -0
  370. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IModes.js +0 -0
  371. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IPush.js +0 -0
  372. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRemove.js +0 -0
  373. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRepulse.js +0 -0
  374. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRepulseBase.js +0 -0
  375. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRepulseDiv.js +0 -0
  376. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ISlow.js +0 -0
  377. package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ITrail.js +0 -0
  378. package/{Options → cjs/Options}/Interfaces/Motion/IMotion.js +0 -0
  379. package/{Options → cjs/Options}/Interfaces/Motion/IMotionReduce.js +0 -0
  380. package/{Options → cjs/Options}/Interfaces/Particles/Bounce/IBounce.js +0 -0
  381. package/{Options → cjs/Options}/Interfaces/Particles/Collisions/ICollisions.js +0 -0
  382. package/{Options → cjs/Options}/Interfaces/Particles/Collisions/ICollisionsOverlap.js +0 -0
  383. package/{Options → cjs/Options}/Interfaces/Particles/Destroy/IDestroy.js +0 -0
  384. package/{Options → cjs/Options}/Interfaces/Particles/Destroy/ISplit.js +0 -0
  385. package/{Options → cjs/Options}/Interfaces/Particles/IParticles.js +0 -0
  386. package/{Options → cjs/Options}/Interfaces/Particles/IShadow.js +0 -0
  387. package/{Options → cjs/Options}/Interfaces/Particles/IStroke.js +0 -0
  388. package/{Options → cjs/Options}/Interfaces/Particles/Life/ILife.js +0 -0
  389. package/{Options → cjs/Options}/Interfaces/Particles/Life/ILifeDelay.js +0 -0
  390. package/{Options → cjs/Options}/Interfaces/Particles/Life/ILifeDuration.js +0 -0
  391. package/{Options → cjs/Options}/Interfaces/Particles/Links/ILinks.js +0 -0
  392. package/{Options → cjs/Options}/Interfaces/Particles/Links/ILinksShadow.js +0 -0
  393. package/{Options → cjs/Options}/Interfaces/Particles/Links/ILinksTriangle.js +0 -0
  394. package/{Options → cjs/Options}/Interfaces/Particles/Move/IAttract.js +0 -0
  395. package/{Options → cjs/Options}/Interfaces/Particles/Move/IMove.js +0 -0
  396. package/{Options → cjs/Options}/Interfaces/Particles/Move/IMoveAngle.js +0 -0
  397. package/{Options → cjs/Options}/Interfaces/Particles/Move/IMoveGravity.js +0 -0
  398. package/{Options → cjs/Options}/Interfaces/Particles/Move/IOutModes.js +0 -0
  399. package/{Options → cjs/Options}/Interfaces/Particles/Move/ISpin.js +0 -0
  400. package/{Options → cjs/Options}/Interfaces/Particles/Move/ITrail.js +0 -0
  401. package/{Options → cjs/Options}/Interfaces/Particles/Move/Path/IPath.js +0 -0
  402. package/{Options → cjs/Options}/Interfaces/Particles/Number/IDensity.js +0 -0
  403. package/{Options → cjs/Options}/Interfaces/Particles/Number/IParticlesNumber.js +0 -0
  404. package/{Options → cjs/Options}/Interfaces/Particles/Opacity/IOpacity.js +0 -0
  405. package/{Options → cjs/Options}/Interfaces/Particles/Opacity/IOpacityAnimation.js +0 -0
  406. package/{Options → cjs/Options}/Interfaces/Particles/Orbit/IOrbit.js +0 -0
  407. package/{Options → cjs/Options}/Interfaces/Particles/Repulse/IRepulse.js +0 -0
  408. package/{Options → cjs/Options}/Interfaces/Particles/Roll/IRoll.js +0 -0
  409. package/{Options → cjs/Options}/Interfaces/Particles/Roll/IRollLight.js +0 -0
  410. package/{Options → cjs/Options}/Interfaces/Particles/Rotate/IRotate.js +0 -0
  411. package/{Options → cjs/Options}/Interfaces/Particles/Rotate/IRotateAnimation.js +0 -0
  412. package/{Options → cjs/Options}/Interfaces/Particles/Shape/ICharacterShape.js +0 -0
  413. package/{Options → cjs/Options}/Interfaces/Particles/Shape/IImageShape.js +0 -0
  414. package/{Options → cjs/Options}/Interfaces/Particles/Shape/IPolygonShape.js +0 -0
  415. package/{Options → cjs/Options}/Interfaces/Particles/Shape/IShape.js +0 -0
  416. package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +17 -0
  417. package/{Options → cjs/Options}/Interfaces/Particles/Shape/IStarShape.js +0 -0
  418. package/{Options → cjs/Options}/Interfaces/Particles/Size/ISize.js +0 -0
  419. package/{Options → cjs/Options}/Interfaces/Particles/Size/ISizeAnimation.js +0 -0
  420. package/{Options → cjs/Options}/Interfaces/Particles/Tilt/ITilt.js +0 -0
  421. package/{Options → cjs/Options}/Interfaces/Particles/Tilt/ITiltAnimation.js +0 -0
  422. package/{Options → cjs/Options}/Interfaces/Particles/Twinkle/ITwinkle.js +0 -0
  423. package/{Options → cjs/Options}/Interfaces/Particles/Twinkle/ITwinkleValues.js +0 -0
  424. package/{Options → cjs/Options}/Interfaces/Particles/Wobble/IWobble.js +0 -0
  425. package/{Options → cjs/Options}/Interfaces/Particles/ZIndex/IZIndex.js +0 -0
  426. package/{Options → cjs/Options}/Interfaces/Theme/ITheme.js +0 -0
  427. package/{Options → cjs/Options}/Interfaces/Theme/IThemeDefault.js +0 -0
  428. package/{Plugins → cjs/Plugins}/Absorbers/AbsorberContainer.js +0 -0
  429. package/cjs/Plugins/Absorbers/AbsorberInstance.js +158 -0
  430. package/cjs/Plugins/Absorbers/Absorbers.js +115 -0
  431. package/{Plugins → cjs/Plugins}/Absorbers/Enums/AbsorberClickMode.js +0 -0
  432. package/cjs/Plugins/Absorbers/Options/Classes/Absorber.js +51 -0
  433. package/{Plugins → cjs/Plugins}/Absorbers/Options/Classes/AbsorberSize.js +0 -0
  434. package/{Plugins → cjs/Plugins}/Absorbers/Options/Classes/AbsorberSizeLimit.js +0 -0
  435. package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorber.js +0 -0
  436. package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorberOptions.js +0 -0
  437. package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorberSize.js +0 -0
  438. package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorberSizeLimit.js +0 -0
  439. package/cjs/Plugins/Absorbers/index.js +93 -0
  440. package/{Plugins → cjs/Plugins}/Emitters/EmitterContainer.js +0 -0
  441. package/cjs/Plugins/Emitters/EmitterInstance.js +264 -0
  442. package/cjs/Plugins/Emitters/Emitters.js +150 -0
  443. package/{Plugins → cjs/Plugins}/Emitters/EmittersEngine.js +0 -0
  444. package/{Plugins → cjs/Plugins}/Emitters/Enums/EmitterClickMode.js +0 -0
  445. package/{Plugins → cjs/Plugins}/Emitters/Enums/EmitterShapeType.js +0 -0
  446. package/{Plugins → cjs/Plugins}/Emitters/IEmitterShape.js +0 -0
  447. package/cjs/Plugins/Emitters/Options/Classes/Emitter.js +68 -0
  448. package/{Plugins → cjs/Plugins}/Emitters/Options/Classes/EmitterLife.js +0 -0
  449. package/cjs/Plugins/Emitters/Options/Classes/EmitterRate.js +22 -0
  450. package/{Plugins → cjs/Plugins}/Emitters/Options/Classes/EmitterSize.js +0 -0
  451. package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitter.js +0 -0
  452. package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterLife.js +0 -0
  453. package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterOptions.js +0 -0
  454. package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterRate.js +0 -0
  455. package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterSize.js +0 -0
  456. package/{Plugins → cjs/Plugins}/Emitters/ShapeManager.js +0 -0
  457. package/cjs/Plugins/Emitters/Shapes/Circle/CircleShape.js +27 -0
  458. package/{Plugins → cjs/Plugins}/Emitters/Shapes/Square/SquareShape.js +0 -0
  459. package/cjs/Plugins/Emitters/index.js +117 -0
  460. package/{Plugins → cjs/Plugins}/PolygonMask/Enums/PolygonMaskInlineArrangement.js +0 -0
  461. package/{Plugins → cjs/Plugins}/PolygonMask/Enums/PolygonMaskMoveType.js +0 -0
  462. package/{Plugins → cjs/Plugins}/PolygonMask/Enums/PolygonMaskType.js +0 -0
  463. package/{Plugins → cjs/Plugins}/PolygonMask/Interfaces/ISvgPath.js +0 -0
  464. package/cjs/Plugins/PolygonMask/Options/Classes/PolygonMask.js +66 -0
  465. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskDraw.js +0 -0
  466. package/cjs/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +29 -0
  467. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskInline.js +0 -0
  468. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +0 -0
  469. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskMove.js +0 -0
  470. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMask.js +0 -0
  471. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +0 -0
  472. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +0 -0
  473. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +0 -0
  474. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +0 -0
  475. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +0 -0
  476. package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskOptions.js +0 -0
  477. package/cjs/Plugins/PolygonMask/PolygonMaskInstance.js +363 -0
  478. package/{Plugins → cjs/Plugins}/PolygonMask/Types.js +0 -0
  479. package/cjs/Plugins/PolygonMask/Utils.js +117 -0
  480. package/cjs/Plugins/PolygonMask/index.js +67 -0
  481. package/{Plugins → cjs/Plugins}/PolygonMask/pathseg.js +0 -0
  482. package/{Shapes → cjs/Shapes}/Circle/CircleDrawer.js +0 -0
  483. package/{Shapes → cjs/Shapes}/Circle/index.js +0 -0
  484. package/cjs/Shapes/Image/ImageDrawer.js +132 -0
  485. package/cjs/Shapes/Image/Utils.js +89 -0
  486. package/{Shapes → cjs/Shapes}/Image/index.js +0 -0
  487. package/{Shapes → cjs/Shapes}/Line/LineDrawer.js +0 -0
  488. package/{Shapes → cjs/Shapes}/Line/index.js +0 -0
  489. package/{Shapes → cjs/Shapes}/Polygon/PolygonDrawer.js +0 -0
  490. package/{Shapes → cjs/Shapes}/Polygon/PolygonDrawerBase.js +0 -0
  491. package/{Shapes → cjs/Shapes}/Polygon/TriangleDrawer.js +0 -0
  492. package/{Shapes → cjs/Shapes}/Polygon/index.js +0 -0
  493. package/{Shapes → cjs/Shapes}/Square/SquareDrawer.js +0 -0
  494. package/{Shapes → cjs/Shapes}/Square/index.js +0 -0
  495. package/{Shapes → cjs/Shapes}/Star/StarDrawer.js +0 -0
  496. package/{Shapes → cjs/Shapes}/Star/index.js +0 -0
  497. package/cjs/Shapes/Text/TextDrawer.js +65 -0
  498. package/{Shapes → cjs/Shapes}/Text/index.js +0 -0
  499. package/{Types → cjs/Types}/ParticlesGroups.js +0 -0
  500. package/{Types → cjs/Types}/PathOptions.js +0 -0
  501. package/{Types → cjs/Types}/RangeValue.js +0 -0
  502. package/{Types → cjs/Types}/RecursivePartial.js +0 -0
  503. package/{Types → cjs/Types}/ShapeData.js +0 -0
  504. package/{Types → cjs/Types}/ShapeDrawerFunctions.js +0 -0
  505. package/{Types → cjs/Types}/SingleOrMultiple.js +0 -0
  506. package/cjs/Updaters/Angle/AngleUpdater.js +79 -0
  507. package/{Updaters → cjs/Updaters}/Angle/index.js +0 -0
  508. package/cjs/Updaters/Color/ColorUpdater.js +68 -0
  509. package/{Updaters → cjs/Updaters}/Color/index.js +0 -0
  510. package/cjs/Updaters/Life/LifeUpdater.js +67 -0
  511. package/{Updaters → cjs/Updaters}/Life/index.js +0 -0
  512. package/cjs/Updaters/Opacity/OpacityUpdater.js +122 -0
  513. package/{Updaters → cjs/Updaters}/Opacity/index.js +0 -0
  514. package/{Updaters → cjs/Updaters}/OutModes/IBounceData.js +0 -0
  515. package/cjs/Updaters/OutModes/OutOfCanvasUpdater.js +146 -0
  516. package/cjs/Updaters/OutModes/Utils.js +65 -0
  517. package/{Updaters → cjs/Updaters}/OutModes/index.js +0 -0
  518. package/cjs/Updaters/Roll/RollUpdater.js +64 -0
  519. package/{Updaters → cjs/Updaters}/Roll/index.js +0 -0
  520. package/cjs/Updaters/Size/SizeUpdater.js +77 -0
  521. package/{Updaters → cjs/Updaters}/Size/index.js +0 -0
  522. package/cjs/Updaters/StrokeColor/StrokeColorUpdater.js +86 -0
  523. package/{Updaters → cjs/Updaters}/StrokeColor/index.js +0 -0
  524. package/cjs/Updaters/Tilt/TiltUpdater.js +79 -0
  525. package/{Updaters → cjs/Updaters}/Tilt/index.js +0 -0
  526. package/cjs/Updaters/Twinkle/TwinkleUpdater.js +21 -0
  527. package/cjs/Updaters/Twinkle/index.js +8 -0
  528. package/cjs/Updaters/Wobble/WobbleUpdater.js +51 -0
  529. package/{Updaters → cjs/Updaters}/Wobble/index.js +0 -0
  530. package/cjs/Utils/CanvasUtils.js +256 -0
  531. package/cjs/Utils/ColorUtils.js +460 -0
  532. package/cjs/Utils/NumberUtils.js +174 -0
  533. package/cjs/Utils/Utils.js +252 -0
  534. package/cjs/engine.js +103 -0
  535. package/cjs/full.js +24 -0
  536. package/cjs/index.engine.js +119 -0
  537. package/cjs/index.js +133 -0
  538. package/cjs/index.slim.js +121 -0
  539. package/{pjs.js → cjs/pjs.js} +0 -0
  540. package/cjs/slim.js +62 -0
  541. package/esm/Core/Canvas.js +47 -60
  542. package/esm/Core/Container.js +15 -9
  543. package/{browser/Enums/Types/OrbitType.js → esm/Core/Interfaces/IParticleColorStyle.js} +0 -0
  544. package/esm/Core/Interfaces/{IAttract.js → IParticlesMover.js} +0 -0
  545. package/esm/Core/Interfaces/{IBubble.js → IPositionFromSizeParams.js} +0 -0
  546. package/esm/Core/Loader.js +6 -10
  547. package/esm/Core/Particle.js +29 -48
  548. package/esm/Core/Particles.js +24 -26
  549. package/esm/Core/Retina.js +4 -13
  550. package/esm/Core/Utils/Circle.js +4 -13
  551. package/esm/Core/Utils/CircleWarp.js +2 -7
  552. package/esm/Core/Utils/EventListeners.js +23 -94
  553. package/esm/Core/Utils/FrameManager.js +1 -2
  554. package/esm/Core/Utils/InteractionManager.js +7 -0
  555. package/esm/Core/Utils/Plugins.js +16 -3
  556. package/esm/Core/Utils/QuadTree.js +20 -27
  557. package/esm/Core/Utils/Rectangle.js +6 -15
  558. package/esm/Core/Utils/Vector.js +13 -15
  559. package/esm/Core/Utils/Vector3d.js +17 -5
  560. package/esm/Interactions/External/Attract/Attractor.js +36 -2
  561. package/esm/Interactions/External/Bounce/Bouncer.js +8 -6
  562. package/esm/Interactions/External/Bubble/Bubbler.js +25 -2
  563. package/esm/Interactions/External/Connect/Connector.js +2 -2
  564. package/esm/Interactions/External/Grab/Grabber.js +30 -25
  565. package/esm/Interactions/External/Pause/Pauser.js +25 -0
  566. package/esm/Interactions/External/Pause/index.js +4 -0
  567. package/esm/Interactions/External/Push/Pusher.js +29 -0
  568. package/esm/Interactions/External/Push/index.js +4 -0
  569. package/esm/Interactions/External/Remove/Remover.js +22 -0
  570. package/esm/Interactions/External/Remove/index.js +4 -0
  571. package/esm/Interactions/External/Repulse/Repulser.js +37 -2
  572. package/esm/Interactions/External/Trail/TrailMaker.js +2 -2
  573. package/esm/Interactions/Particles/Attract/Attractor.js +2 -2
  574. package/esm/Interactions/Particles/Collisions/Collider.js +9 -17
  575. package/esm/Interactions/Particles/Links/LinkInstance.js +37 -55
  576. package/esm/Interactions/Particles/Links/Linker.js +9 -14
  577. package/esm/Movers/Base/BaseMover.js +76 -0
  578. package/esm/{Core/Interfaces/IParticleGradientAnimation.js → Movers/Base/IParticleSpin.js} +0 -0
  579. package/esm/{Core/Interfaces/IParticleGradientColorAnimation.js → Movers/Base/Types.js} +0 -0
  580. package/esm/Movers/Base/Utils.js +97 -0
  581. package/esm/Movers/Base/index.js +4 -0
  582. package/esm/Movers/Parallax/ParallaxMover.js +29 -0
  583. package/esm/Movers/Parallax/index.js +4 -0
  584. package/esm/Options/Classes/AnimatableGradient.js +1 -1
  585. package/esm/Options/Classes/AnimationOptions.js +1 -1
  586. package/esm/Options/Classes/ColorAnimation.js +1 -1
  587. package/esm/Options/Classes/Interactivity/Modes/Trail.js +1 -1
  588. package/esm/Options/Classes/ManualParticle.js +1 -1
  589. package/esm/Options/Classes/Options.js +1 -1
  590. package/esm/Options/Classes/Particles/Destroy/Split.js +1 -1
  591. package/esm/Options/Classes/Particles/Move/Attract.js +1 -1
  592. package/esm/Options/Classes/Particles/Move/Move.js +2 -1
  593. package/esm/Options/Classes/Particles/Move/MoveAngle.js +1 -1
  594. package/esm/Options/Classes/Particles/Move/MoveGravity.js +1 -1
  595. package/esm/Options/Classes/Particles/Move/Path/Path.js +1 -1
  596. package/esm/Options/Classes/Particles/Move/Spin.js +2 -1
  597. package/esm/Options/Classes/Particles/Opacity/Opacity.js +1 -1
  598. package/esm/Options/Classes/Particles/Orbit/Orbit.js +1 -1
  599. package/esm/Options/Classes/Particles/ParticlesOptions.js +1 -1
  600. package/esm/Options/Classes/Particles/Repulse/Repulse.js +1 -1
  601. package/esm/Options/Classes/Particles/Roll/Roll.js +1 -1
  602. package/esm/Options/Classes/Particles/Roll/RollLight.js +1 -1
  603. package/esm/Options/Classes/Particles/Rotate/RotateAnimation.js +1 -1
  604. package/esm/Options/Classes/Particles/Shape/Shape.js +1 -1
  605. package/esm/Options/Classes/Particles/Size/Size.js +1 -1
  606. package/esm/Options/Classes/Particles/Tilt/TiltAnimation.js +1 -1
  607. package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.js +1 -1
  608. package/esm/Options/Classes/Particles/Wobble/Wobble.js +1 -1
  609. package/esm/Options/Classes/Responsive.js +1 -1
  610. package/esm/Options/Classes/Theme/Theme.js +1 -1
  611. package/esm/Options/Classes/ValueWithRandom.js +1 -1
  612. package/esm/Plugins/Absorbers/AbsorberInstance.js +16 -20
  613. package/esm/Plugins/Absorbers/Absorbers.js +3 -6
  614. package/esm/Plugins/Absorbers/Options/Classes/Absorber.js +1 -1
  615. package/esm/Plugins/Absorbers/index.js +8 -9
  616. package/esm/Plugins/Emitters/EmitterInstance.js +20 -25
  617. package/esm/Plugins/Emitters/Emitters.js +3 -6
  618. package/esm/Plugins/Emitters/Options/Classes/Emitter.js +2 -1
  619. package/esm/Plugins/Emitters/Options/Classes/EmitterRate.js +1 -1
  620. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -7
  621. package/esm/Plugins/Emitters/index.js +4 -1
  622. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  623. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +1 -1
  624. package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +19 -42
  625. package/esm/Plugins/PolygonMask/Utils.js +6 -13
  626. package/esm/Plugins/PolygonMask/index.js +6 -2
  627. package/esm/Shapes/Image/ImageDrawer.js +20 -20
  628. package/esm/Shapes/Image/Utils.js +1 -1
  629. package/esm/Shapes/Text/TextDrawer.js +1 -1
  630. package/esm/Updaters/Angle/AngleUpdater.js +1 -1
  631. package/esm/Updaters/Color/ColorUpdater.js +2 -1
  632. package/esm/Updaters/Life/LifeUpdater.js +1 -1
  633. package/esm/Updaters/Opacity/OpacityUpdater.js +1 -1
  634. package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
  635. package/esm/Updaters/OutModes/Utils.js +1 -1
  636. package/esm/Updaters/Roll/RollUpdater.js +2 -1
  637. package/esm/Updaters/Size/SizeUpdater.js +1 -1
  638. package/esm/Updaters/StrokeColor/StrokeColorUpdater.js +3 -1
  639. package/esm/Updaters/Tilt/TiltUpdater.js +1 -1
  640. package/esm/Updaters/Twinkle/TwinkleUpdater.js +17 -0
  641. package/esm/Updaters/Twinkle/index.js +4 -0
  642. package/esm/Updaters/Wobble/WobbleUpdater.js +1 -1
  643. package/esm/Utils/CanvasUtils.js +26 -57
  644. package/esm/Utils/ColorUtils.js +13 -29
  645. package/esm/Utils/NumberUtils.js +48 -7
  646. package/esm/Utils/Utils.js +30 -47
  647. package/esm/engine.js +6 -1
  648. package/esm/full.js +3 -1
  649. package/esm/index.engine.js +93 -5
  650. package/esm/index.js +101 -8
  651. package/esm/index.slim.js +92 -5
  652. package/esm/slim.js +10 -0
  653. package/package.json +252 -4
  654. package/report.html +2 -2
  655. package/report.slim.html +2 -2
  656. package/tsparticles.engine.js +1153 -1460
  657. package/tsparticles.engine.min.js +2 -2
  658. package/tsparticles.interaction.external.attract.js +297 -4974
  659. package/tsparticles.interaction.external.attract.min.js +2 -2
  660. package/tsparticles.interaction.external.bounce.js +263 -4988
  661. package/tsparticles.interaction.external.bounce.min.js +2 -2
  662. package/tsparticles.interaction.external.bubble.js +247 -4546
  663. package/tsparticles.interaction.external.bubble.min.js +2 -2
  664. package/tsparticles.interaction.external.connect.js +42 -4968
  665. package/tsparticles.interaction.external.connect.min.js +2 -2
  666. package/tsparticles.interaction.external.grab.js +174 -4507
  667. package/tsparticles.interaction.external.grab.min.js +2 -2
  668. package/tsparticles.interaction.external.repulse.js +264 -4949
  669. package/tsparticles.interaction.external.repulse.min.js +2 -2
  670. package/tsparticles.interaction.external.trail.js +42 -4968
  671. package/tsparticles.interaction.external.trail.min.js +2 -2
  672. package/tsparticles.interaction.particles.attract.js +60 -5019
  673. package/tsparticles.interaction.particles.attract.min.js +2 -2
  674. package/tsparticles.interaction.particles.collisions.js +149 -4919
  675. package/tsparticles.interaction.particles.collisions.min.js +2 -2
  676. package/tsparticles.interaction.particles.links.js +415 -4462
  677. package/tsparticles.interaction.particles.links.min.js +2 -2
  678. package/tsparticles.js +1662 -1672
  679. package/tsparticles.min.js +2 -2
  680. package/tsparticles.pathseg.min.js +1 -1
  681. package/tsparticles.plugins.absorbers.js +347 -4676
  682. package/tsparticles.plugins.absorbers.min.js +2 -2
  683. package/tsparticles.plugins.emitters.js +424 -4696
  684. package/tsparticles.plugins.emitters.min.js +2 -2
  685. package/tsparticles.plugins.polygonMask.js +263 -4633
  686. package/tsparticles.plugins.polygonMask.min.js +2 -2
  687. package/tsparticles.shape.circle.min.js +1 -1
  688. package/tsparticles.shape.image.js +67 -4777
  689. package/tsparticles.shape.image.min.js +2 -2
  690. package/tsparticles.shape.line.min.js +1 -1
  691. package/tsparticles.shape.polygon.min.js +1 -1
  692. package/tsparticles.shape.square.min.js +1 -1
  693. package/tsparticles.shape.star.min.js +1 -1
  694. package/tsparticles.shape.text.js +39 -4965
  695. package/tsparticles.shape.text.min.js +2 -2
  696. package/tsparticles.slim.js +1575 -1554
  697. package/tsparticles.slim.min.js +2 -2
  698. package/tsparticles.updater.angle.js +55 -5014
  699. package/tsparticles.updater.angle.min.js +2 -2
  700. package/tsparticles.updater.color.js +146 -4481
  701. package/tsparticles.updater.color.min.js +2 -2
  702. package/tsparticles.updater.life.js +58 -5017
  703. package/tsparticles.updater.life.min.js +2 -2
  704. package/tsparticles.updater.opacity.js +62 -5021
  705. package/tsparticles.updater.opacity.min.js +2 -2
  706. package/tsparticles.updater.outModes.js +152 -4907
  707. package/tsparticles.updater.outModes.min.js +2 -2
  708. package/tsparticles.updater.roll.js +143 -4478
  709. package/tsparticles.updater.roll.min.js +2 -2
  710. package/tsparticles.updater.size.js +54 -5013
  711. package/tsparticles.updater.size.min.js +2 -2
  712. package/tsparticles.updater.strokeColor.js +147 -4482
  713. package/tsparticles.updater.strokeColor.min.js +2 -2
  714. package/tsparticles.updater.tilt.js +55 -5014
  715. package/tsparticles.updater.tilt.min.js +2 -2
  716. package/tsparticles.updater.wobble.js +55 -5014
  717. package/tsparticles.updater.wobble.min.js +2 -2
  718. package/types/Core/Canvas.d.ts +40 -0
  719. package/types/Core/Container.d.ts +71 -0
  720. package/types/Core/Interfaces/Colors.d.ts +33 -0
  721. package/types/Core/Interfaces/Gradients.d.ts +21 -0
  722. package/{Core → types/Core}/Interfaces/IBounds.d.ts +0 -0
  723. package/{Core → types/Core}/Interfaces/IBubbleParticleData.d.ts +0 -0
  724. package/types/Core/Interfaces/ICircleBouncer.d.ts +9 -0
  725. package/{Core → types/Core}/Interfaces/IContainerInteractivity.d.ts +0 -0
  726. package/types/Core/Interfaces/IContainerPlugin.d.ts +33 -0
  727. package/types/Core/Interfaces/ICoordinates.d.ts +15 -0
  728. package/{Core → types/Core}/Interfaces/IDelta.d.ts +0 -0
  729. package/{Core → types/Core}/Interfaces/IDimension.d.ts +0 -0
  730. package/{Core → types/Core}/Interfaces/IDistance.d.ts +0 -0
  731. package/types/Core/Interfaces/IExternalInteractor.d.ts +8 -0
  732. package/types/Core/Interfaces/IInteractor.d.ts +6 -0
  733. package/{Core → types/Core}/Interfaces/IMouseData.d.ts +0 -0
  734. package/types/Core/Interfaces/IMovePathGenerator.d.ts +8 -0
  735. package/types/Core/Interfaces/IParticle.d.ts +51 -0
  736. package/types/Core/Interfaces/IParticleColorStyle.d.ts +4 -0
  737. package/{Core → types/Core}/Interfaces/IParticleGravity.d.ts +0 -0
  738. package/{Core → types/Core}/Interfaces/IParticleHslAnimation.d.ts +0 -0
  739. package/{Core → types/Core}/Interfaces/IParticleLife.d.ts +0 -0
  740. package/{Core → types/Core}/Interfaces/IParticleLoops.d.ts +0 -0
  741. package/{Core → types/Core}/Interfaces/IParticleRetinaProps.d.ts +0 -0
  742. package/types/Core/Interfaces/IParticleRoll.d.ts +9 -0
  743. package/types/Core/Interfaces/IParticleSpin.d.ts +9 -0
  744. package/types/Core/Interfaces/IParticleUpdater.d.ts +11 -0
  745. package/types/Core/Interfaces/IParticleValueAnimation.d.ts +17 -0
  746. package/{Core → types/Core}/Interfaces/IParticleWobble.d.ts +0 -0
  747. package/{Core → types/Core}/Interfaces/IParticlesFrequencies.d.ts +0 -0
  748. package/{Core → types/Core}/Interfaces/IParticlesInteractor.d.ts +0 -0
  749. package/types/Core/Interfaces/IParticlesMover.d.ts +7 -0
  750. package/types/Core/Interfaces/IPlugin.d.ts +11 -0
  751. package/types/Core/Interfaces/IPositionFromSizeParams.d.ts +10 -0
  752. package/{Core → types/Core}/Interfaces/IRangeValue.d.ts +0 -0
  753. package/{Core → types/Core}/Interfaces/IRectSideResult.d.ts +0 -0
  754. package/types/Core/Interfaces/IShapeDrawer.d.ts +10 -0
  755. package/types/Core/Interfaces/IShapeValues.d.ts +8 -0
  756. package/types/Core/Loader.d.ts +32 -0
  757. package/types/Core/Particle.d.ts +84 -0
  758. package/types/Core/Particles.d.ts +52 -0
  759. package/types/Core/Retina.d.ts +25 -0
  760. package/types/Core/Utils/Circle.d.ts +8 -0
  761. package/types/Core/Utils/CircleWarp.d.ts +10 -0
  762. package/{Core → types/Core}/Utils/Constants.d.ts +0 -0
  763. package/{Core → types/Core}/Utils/EventListeners.d.ts +0 -0
  764. package/types/Core/Utils/ExternalInteractorBase.d.ts +13 -0
  765. package/{Core → types/Core}/Utils/FrameManager.d.ts +0 -0
  766. package/types/Core/Utils/InteractionManager.d.ts +16 -0
  767. package/types/Core/Utils/ParticlesInteractorBase.d.ts +13 -0
  768. package/types/Core/Utils/Plugins.d.ts +47 -0
  769. package/types/Core/Utils/Point.d.ts +7 -0
  770. package/types/Core/Utils/QuadTree.d.ts +24 -0
  771. package/types/Core/Utils/Range.d.ts +7 -0
  772. package/types/Core/Utils/Rectangle.d.ts +9 -0
  773. package/types/Core/Utils/Vector.d.ts +29 -0
  774. package/types/Core/Utils/Vector3d.d.ts +19 -0
  775. package/{Enums → types/Enums}/AnimationStatus.d.ts +0 -0
  776. package/{Enums → types/Enums}/Directions/MoveDirection.d.ts +0 -0
  777. package/{Enums → types/Enums}/Directions/OutModeDirection.d.ts +0 -0
  778. package/{Enums → types/Enums}/Directions/RotateDirection.d.ts +0 -0
  779. package/{Enums → types/Enums}/Directions/TiltDirection.d.ts +0 -0
  780. package/{Enums → types/Enums}/InteractivityDetect.d.ts +0 -0
  781. package/{Enums → types/Enums}/Modes/ClickMode.d.ts +0 -0
  782. package/{Enums → types/Enums}/Modes/CollisionMode.d.ts +0 -0
  783. package/{Enums → types/Enums}/Modes/DestroyMode.d.ts +0 -0
  784. package/{Enums → types/Enums}/Modes/DivMode.d.ts +0 -0
  785. package/{Enums → types/Enums}/Modes/HoverMode.d.ts +0 -0
  786. package/{Enums → types/Enums}/Modes/OutMode.d.ts +0 -0
  787. package/{Enums → types/Enums}/Modes/ResponsiveMode.d.ts +0 -0
  788. package/{Enums → types/Enums}/Modes/RollMode.d.ts +0 -0
  789. package/{Enums → types/Enums}/Modes/SizeMode.d.ts +0 -0
  790. package/{Enums → types/Enums}/Modes/ThemeMode.d.ts +0 -0
  791. package/{Enums → types/Enums}/Types/AlterType.d.ts +0 -0
  792. package/{Enums → types/Enums}/Types/DestroyType.d.ts +0 -0
  793. package/{Enums → types/Enums}/Types/DivType.d.ts +0 -0
  794. package/{Enums → types/Enums}/Types/EasingType.d.ts +0 -0
  795. package/{Enums → types/Enums}/Types/GradientType.d.ts +0 -0
  796. package/{Enums → types/Enums}/Types/InteractorType.d.ts +0 -0
  797. package/{Enums → types/Enums}/Types/ShapeType.d.ts +0 -0
  798. package/{Enums → types/Enums}/Types/StartValueType.d.ts +0 -0
  799. package/types/Interactions/External/Attract/Attractor.d.ts +24 -0
  800. package/{Interactions → types/Interactions}/External/Attract/index.d.ts +0 -0
  801. package/types/Interactions/External/Bounce/Bouncer.d.ts +11 -0
  802. package/{Interactions → types/Interactions}/External/Bounce/index.d.ts +0 -0
  803. package/types/Interactions/External/Bubble/Bubbler.d.ts +26 -0
  804. package/{Interactions → types/Interactions}/External/Bubble/IBubblerProcessParam.d.ts +0 -0
  805. package/{Interactions → types/Interactions}/External/Bubble/ProcessBubbleType.d.ts +0 -0
  806. package/{Interactions → types/Interactions}/External/Bubble/index.d.ts +0 -0
  807. package/types/Interactions/External/Connect/Connector.d.ts +8 -0
  808. package/{Interactions → types/Interactions}/External/Connect/index.d.ts +0 -0
  809. package/types/Interactions/External/Grab/Grabber.d.ts +8 -0
  810. package/{Interactions → types/Interactions}/External/Grab/index.d.ts +0 -0
  811. package/types/Interactions/External/Pause/Pauser.d.ts +9 -0
  812. package/types/Interactions/External/Pause/index.d.ts +2 -0
  813. package/types/Interactions/External/Push/Pusher.d.ts +10 -0
  814. package/types/Interactions/External/Push/index.d.ts +2 -0
  815. package/types/Interactions/External/Remove/Remover.d.ts +9 -0
  816. package/types/Interactions/External/Remove/index.d.ts +2 -0
  817. package/types/Interactions/External/Repulse/Repulser.d.ts +24 -0
  818. package/{Interactions → types/Interactions}/External/Repulse/index.d.ts +0 -0
  819. package/types/Interactions/External/Trail/TrailMaker.d.ts +11 -0
  820. package/{Interactions → types/Interactions}/External/Trail/index.d.ts +0 -0
  821. package/types/Interactions/Particles/Attract/Attractor.d.ts +10 -0
  822. package/{Interactions → types/Interactions}/Particles/Attract/index.d.ts +0 -0
  823. package/types/Interactions/Particles/Collisions/Collider.d.ts +11 -0
  824. package/{Interactions → types/Interactions}/Particles/Collisions/index.d.ts +0 -0
  825. package/{Interactions → types/Interactions}/Particles/Links/ILink.d.ts +0 -0
  826. package/types/Interactions/Particles/Links/LinkInstance.d.ts +12 -0
  827. package/types/Interactions/Particles/Links/LinkParticle.d.ts +5 -0
  828. package/types/Interactions/Particles/Links/Linker.d.ts +11 -0
  829. package/{Interactions → types/Interactions}/Particles/Links/index.d.ts +0 -0
  830. package/{Interactions → types/Interactions}/Particles/Links/interaction.d.ts +0 -0
  831. package/{Interactions → types/Interactions}/Particles/Links/plugin.d.ts +0 -0
  832. package/types/Movers/Base/BaseMover.d.ts +9 -0
  833. package/types/Movers/Base/IParticleSpin.d.ts +9 -0
  834. package/types/Movers/Base/Types.d.ts +8 -0
  835. package/types/Movers/Base/Utils.d.ts +7 -0
  836. package/types/Movers/Base/index.d.ts +2 -0
  837. package/types/Movers/Parallax/ParallaxMover.d.ts +7 -0
  838. package/types/Movers/Parallax/index.d.ts +2 -0
  839. package/types/Options/Classes/AnimatableColor.d.ts +12 -0
  840. package/types/Options/Classes/AnimatableGradient.d.ts +56 -0
  841. package/types/Options/Classes/AnimationOptions.d.ts +12 -0
  842. package/types/Options/Classes/Background/Background.d.ts +14 -0
  843. package/types/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
  844. package/types/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
  845. package/types/Options/Classes/ColorAnimation.d.ts +13 -0
  846. package/types/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
  847. package/types/Options/Classes/HslAnimation.d.ts +11 -0
  848. package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +11 -0
  849. package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +20 -0
  850. package/types/Options/Classes/Interactivity/Events/Events.d.ts +21 -0
  851. package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +13 -0
  852. package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
  853. package/types/Options/Classes/Interactivity/Interactivity.d.ts +15 -0
  854. package/types/Options/Classes/Interactivity/Modes/Attract.d.ts +14 -0
  855. package/types/Options/Classes/Interactivity/Modes/Bounce.d.ts +8 -0
  856. package/types/Options/Classes/Interactivity/Modes/Bubble.d.ts +10 -0
  857. package/types/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +14 -0
  858. package/types/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +12 -0
  859. package/types/Options/Classes/Interactivity/Modes/Connect.d.ts +15 -0
  860. package/types/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +8 -0
  861. package/types/Options/Classes/Interactivity/Modes/Grab.d.ts +14 -0
  862. package/types/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +12 -0
  863. package/types/Options/Classes/Interactivity/Modes/Light.d.ts +11 -0
  864. package/types/Options/Classes/Interactivity/Modes/LightArea.d.ts +10 -0
  865. package/types/Options/Classes/Interactivity/Modes/LightGradient.d.ts +10 -0
  866. package/types/Options/Classes/Interactivity/Modes/LightShadow.d.ts +10 -0
  867. package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +29 -0
  868. package/types/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
  869. package/types/Options/Classes/Interactivity/Modes/Remove.d.ts +10 -0
  870. package/types/Options/Classes/Interactivity/Modes/Repulse.d.ts +10 -0
  871. package/types/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +14 -0
  872. package/types/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +12 -0
  873. package/types/Options/Classes/Interactivity/Modes/Slow.d.ts +11 -0
  874. package/types/Options/Classes/Interactivity/Modes/Trail.d.ts +12 -0
  875. package/types/Options/Classes/ManualParticle.d.ts +10 -0
  876. package/types/Options/Classes/Motion/Motion.d.ts +10 -0
  877. package/types/Options/Classes/Motion/MotionReduce.d.ts +9 -0
  878. package/types/Options/Classes/Options.d.ts +49 -0
  879. package/types/Options/Classes/OptionsColor.d.ts +11 -0
  880. package/types/Options/Classes/Particles/Bounce/Bounce.d.ts +10 -0
  881. package/{Options → types/Options}/Classes/Particles/Bounce/BounceFactor.d.ts +0 -0
  882. package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +14 -0
  883. package/types/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
  884. package/types/Options/Classes/Particles/Destroy/Destroy.d.ts +11 -0
  885. package/types/Options/Classes/Particles/Destroy/Split.d.ts +15 -0
  886. package/{Options → types/Options}/Classes/Particles/Destroy/SplitFactor.d.ts +0 -0
  887. package/{Options → types/Options}/Classes/Particles/Destroy/SplitRate.d.ts +0 -0
  888. package/types/Options/Classes/Particles/Life/Life.d.ts +12 -0
  889. package/types/Options/Classes/Particles/Life/LifeDelay.d.ts +9 -0
  890. package/types/Options/Classes/Particles/Life/LifeDuration.d.ts +9 -0
  891. package/types/Options/Classes/Particles/Links/Links.d.ts +22 -0
  892. package/types/Options/Classes/Particles/Links/LinksShadow.d.ts +11 -0
  893. package/types/Options/Classes/Particles/Links/LinksTriangle.d.ts +12 -0
  894. package/types/Options/Classes/Particles/Move/Attract.d.ts +16 -0
  895. package/types/Options/Classes/Particles/Move/Move.d.ts +46 -0
  896. package/types/Options/Classes/Particles/Move/MoveAngle.d.ts +10 -0
  897. package/types/Options/Classes/Particles/Move/MoveGravity.d.ts +12 -0
  898. package/types/Options/Classes/Particles/Move/OutModes.d.ts +13 -0
  899. package/types/Options/Classes/Particles/Move/Path/Path.d.ts +14 -0
  900. package/{Options → types/Options}/Classes/Particles/Move/Path/PathDelay.d.ts +0 -0
  901. package/types/Options/Classes/Particles/Move/Spin.d.ts +12 -0
  902. package/types/Options/Classes/Particles/Move/Trail.d.ts +11 -0
  903. package/types/Options/Classes/Particles/Number/Density.d.ts +12 -0
  904. package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
  905. package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +12 -0
  906. package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +15 -0
  907. package/types/Options/Classes/Particles/Orbit/Orbit.d.ts +19 -0
  908. package/types/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +7 -0
  909. package/types/Options/Classes/Particles/ParticlesOptions.d.ts +59 -0
  910. package/types/Options/Classes/Particles/Repulse/Repulse.d.ts +14 -0
  911. package/types/Options/Classes/Particles/Roll/Roll.d.ts +17 -0
  912. package/types/Options/Classes/Particles/Roll/RollLight.d.ts +10 -0
  913. package/types/Options/Classes/Particles/Rotate/Rotate.d.ts +13 -0
  914. package/types/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +11 -0
  915. package/types/Options/Classes/Particles/Shadow.d.ts +13 -0
  916. package/types/Options/Classes/Particles/Shape/Shape.d.ts +29 -0
  917. package/types/Options/Classes/Particles/Size/Size.d.ts +12 -0
  918. package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +15 -0
  919. package/types/Options/Classes/Particles/Stroke.d.ts +11 -0
  920. package/types/Options/Classes/Particles/Tilt/Tilt.d.ts +13 -0
  921. package/types/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +11 -0
  922. package/types/Options/Classes/Particles/Twinkle/Twinkle.d.ts +10 -0
  923. package/types/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +13 -0
  924. package/types/Options/Classes/Particles/Wobble/Wobble.d.ts +11 -0
  925. package/types/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
  926. package/types/Options/Classes/Random.d.ts +9 -0
  927. package/types/Options/Classes/Responsive.d.ts +12 -0
  928. package/types/Options/Classes/Theme/Theme.d.ts +12 -0
  929. package/types/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
  930. package/types/Options/Classes/ValueWithRandom.d.ts +11 -0
  931. package/{Options → types/Options}/Interfaces/Background/IBackground.d.ts +0 -0
  932. package/types/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
  933. package/{Options → types/Options}/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -0
  934. package/{Options → types/Options}/Interfaces/FullScreen/IFullScreen.d.ts +0 -0
  935. package/{Options → types/Options}/Interfaces/IAnimatable.d.ts +0 -0
  936. package/{Options → types/Options}/Interfaces/IAnimatableColor.d.ts +0 -0
  937. package/types/Options/Interfaces/IAnimatableGradient.d.ts +8 -0
  938. package/types/Options/Interfaces/IAnimation.d.ts +7 -0
  939. package/types/Options/Interfaces/IColorAnimation.d.ts +5 -0
  940. package/{Options → types/Options}/Interfaces/IHslAnimation.d.ts +0 -0
  941. package/types/Options/Interfaces/IManualParticle.d.ts +7 -0
  942. package/types/Options/Interfaces/IOptionLoader.d.ts +4 -0
  943. package/types/Options/Interfaces/IOptions.d.ts +36 -0
  944. package/types/Options/Interfaces/IOptionsColor.d.ts +2 -0
  945. package/types/Options/Interfaces/IOptionsGradient.d.ts +13 -0
  946. package/{Options → types/Options}/Interfaces/IRandom.d.ts +0 -0
  947. package/types/Options/Interfaces/IResponsive.d.ts +8 -0
  948. package/types/Options/Interfaces/IValueWithRandom.d.ts +6 -0
  949. package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
  950. package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +12 -0
  951. package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
  952. package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
  953. package/{Options → types/Options}/Interfaces/Interactivity/Events/IParallax.d.ts +0 -0
  954. package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +9 -0
  955. package/types/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +9 -0
  956. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -0
  957. package/types/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +6 -0
  958. package/types/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +10 -0
  959. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -0
  960. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -0
  961. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -0
  962. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -0
  963. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -0
  964. package/{Options → types/Options}/Interfaces/Interactivity/Modes/ILight.d.ts +0 -0
  965. package/{Options → types/Options}/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -0
  966. package/{Options → types/Options}/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -0
  967. package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
  968. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IModes.d.ts +0 -0
  969. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IPush.d.ts +0 -0
  970. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -0
  971. package/types/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +6 -0
  972. package/types/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +9 -0
  973. package/{Options → types/Options}/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -0
  974. package/{Options → types/Options}/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -0
  975. package/types/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +8 -0
  976. package/{Options → types/Options}/Interfaces/Motion/IMotion.d.ts +0 -0
  977. package/{Options → types/Options}/Interfaces/Motion/IMotionReduce.d.ts +0 -0
  978. package/{Options → types/Options}/Interfaces/Particles/Bounce/IBounce.d.ts +0 -0
  979. package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +9 -0
  980. package/{Options → types/Options}/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -0
  981. package/types/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +6 -0
  982. package/types/Options/Interfaces/Particles/Destroy/ISplit.d.ts +10 -0
  983. package/types/Options/Interfaces/Particles/IParticles.d.ts +52 -0
  984. package/{Options → types/Options}/Interfaces/Particles/IShadow.d.ts +0 -0
  985. package/types/Options/Interfaces/Particles/IStroke.d.ts +7 -0
  986. package/{Options → types/Options}/Interfaces/Particles/Life/ILife.d.ts +0 -0
  987. package/{Options → types/Options}/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -0
  988. package/{Options → types/Options}/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -0
  989. package/{Options → types/Options}/Interfaces/Particles/Links/ILinks.d.ts +0 -0
  990. package/{Options → types/Options}/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -0
  991. package/{Options → types/Options}/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -0
  992. package/types/Options/Interfaces/Particles/Move/IAttract.d.ts +9 -0
  993. package/types/Options/Interfaces/Particles/Move/IMove.d.ts +36 -0
  994. package/types/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +5 -0
  995. package/types/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +7 -0
  996. package/types/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
  997. package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
  998. package/{Options → types/Options}/Interfaces/Particles/Move/ITrail.d.ts +0 -0
  999. package/types/Options/Interfaces/Particles/Move/Path/IPath.d.ts +9 -0
  1000. package/{Options → types/Options}/Interfaces/Particles/Number/IDensity.d.ts +0 -0
  1001. package/{Options → types/Options}/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -0
  1002. package/{Options → types/Options}/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -0
  1003. package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +9 -0
  1004. package/types/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +13 -0
  1005. package/types/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +9 -0
  1006. package/types/Options/Interfaces/Particles/Roll/IRoll.d.ts +13 -0
  1007. package/types/Options/Interfaces/Particles/Roll/IRollLight.d.ts +5 -0
  1008. package/types/Options/Interfaces/Particles/Rotate/IRotate.d.ts +8 -0
  1009. package/types/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +6 -0
  1010. package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
  1011. package/{Options → types/Options}/Interfaces/Particles/Shape/IImageShape.d.ts +0 -0
  1012. package/{Options → types/Options}/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -0
  1013. package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +17 -0
  1014. package/{Options → types/Options}/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -0
  1015. package/{Options → types/Options}/Interfaces/Particles/Shape/IStarShape.d.ts +0 -0
  1016. package/{Options → types/Options}/Interfaces/Particles/Size/ISize.d.ts +0 -0
  1017. package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +9 -0
  1018. package/types/Options/Interfaces/Particles/Tilt/ITilt.d.ts +8 -0
  1019. package/types/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +6 -0
  1020. package/{Options → types/Options}/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -0
  1021. package/types/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +8 -0
  1022. package/types/Options/Interfaces/Particles/Wobble/IWobble.d.ts +6 -0
  1023. package/{Options → types/Options}/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -0
  1024. package/types/Options/Interfaces/Theme/ITheme.d.ts +8 -0
  1025. package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
  1026. package/types/Plugins/Absorbers/AbsorberContainer.d.ts +7 -0
  1027. package/types/Plugins/Absorbers/AbsorberInstance.d.ts +36 -0
  1028. package/types/Plugins/Absorbers/Absorbers.d.ts +26 -0
  1029. package/{Plugins → types/Plugins}/Absorbers/Enums/AbsorberClickMode.d.ts +0 -0
  1030. package/types/Plugins/Absorbers/Options/Classes/Absorber.d.ts +18 -0
  1031. package/types/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +11 -0
  1032. package/types/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +9 -0
  1033. package/types/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +14 -0
  1034. package/types/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +12 -0
  1035. package/{Plugins → types/Plugins}/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -0
  1036. package/{Plugins → types/Plugins}/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -0
  1037. package/types/Plugins/Absorbers/index.d.ts +4 -0
  1038. package/types/Plugins/Emitters/EmitterContainer.d.ts +10 -0
  1039. package/types/Plugins/Emitters/EmitterInstance.d.ts +49 -0
  1040. package/types/Plugins/Emitters/Emitters.d.ts +29 -0
  1041. package/{Plugins → types/Plugins}/Emitters/EmittersEngine.d.ts +0 -0
  1042. package/{Plugins → types/Plugins}/Emitters/Enums/EmitterClickMode.d.ts +0 -0
  1043. package/{Plugins → types/Plugins}/Emitters/Enums/EmitterShapeType.d.ts +0 -0
  1044. package/types/Plugins/Emitters/IEmitterShape.d.ts +5 -0
  1045. package/types/Plugins/Emitters/Options/Classes/Emitter.d.ts +28 -0
  1046. package/types/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +11 -0
  1047. package/types/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +10 -0
  1048. package/types/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +11 -0
  1049. package/types/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +24 -0
  1050. package/{Plugins → types/Plugins}/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -0
  1051. package/types/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +12 -0
  1052. package/types/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +5 -0
  1053. package/types/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +5 -0
  1054. package/{Plugins → types/Plugins}/Emitters/ShapeManager.d.ts +0 -0
  1055. package/types/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +6 -0
  1056. package/types/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +6 -0
  1057. package/types/Plugins/Emitters/index.d.ts +6 -0
  1058. package/{Plugins → types/Plugins}/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -0
  1059. package/{Plugins → types/Plugins}/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -0
  1060. package/{Plugins → types/Plugins}/PolygonMask/Enums/PolygonMaskType.d.ts +0 -0
  1061. package/{Plugins → types/Plugins}/PolygonMask/Interfaces/ISvgPath.d.ts +0 -0
  1062. package/types/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +25 -0
  1063. package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +15 -0
  1064. package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +11 -0
  1065. package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  1066. package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  1067. package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  1068. package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +19 -0
  1069. package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  1070. package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  1071. package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  1072. package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +6 -0
  1073. package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  1074. package/{Plugins → types/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -0
  1075. package/types/Plugins/PolygonMask/PolygonMaskInstance.d.ts +43 -0
  1076. package/{Plugins → types/Plugins}/PolygonMask/Types.d.ts +0 -0
  1077. package/types/Plugins/PolygonMask/Utils.d.ts +11 -0
  1078. package/types/Plugins/PolygonMask/index.d.ts +6 -0
  1079. package/{Plugins → types/Plugins}/PolygonMask/pathseg.d.ts +0 -0
  1080. package/types/Shapes/Circle/CircleDrawer.d.ts +6 -0
  1081. package/{Shapes → types/Shapes}/Circle/index.d.ts +0 -0
  1082. package/types/Shapes/Image/ImageDrawer.d.ts +15 -0
  1083. package/types/Shapes/Image/Utils.d.ts +30 -0
  1084. package/{Shapes → types/Shapes}/Image/index.d.ts +0 -0
  1085. package/types/Shapes/Line/LineDrawer.d.ts +6 -0
  1086. package/{Shapes → types/Shapes}/Line/index.d.ts +0 -0
  1087. package/types/Shapes/Polygon/PolygonDrawer.d.ts +8 -0
  1088. package/types/Shapes/Polygon/PolygonDrawerBase.d.ts +17 -0
  1089. package/types/Shapes/Polygon/TriangleDrawer.d.ts +9 -0
  1090. package/{Shapes → types/Shapes}/Polygon/index.d.ts +0 -0
  1091. package/types/Shapes/Square/SquareDrawer.d.ts +6 -0
  1092. package/{Shapes → types/Shapes}/Square/index.d.ts +0 -0
  1093. package/types/Shapes/Star/StarDrawer.d.ts +6 -0
  1094. package/{Shapes → types/Shapes}/Star/index.d.ts +0 -0
  1095. package/types/Shapes/Text/TextDrawer.d.ts +9 -0
  1096. package/{Shapes → types/Shapes}/Text/index.d.ts +0 -0
  1097. package/{Types → types/Types}/ParticlesGroups.d.ts +0 -0
  1098. package/{Types → types/Types}/PathOptions.d.ts +0 -0
  1099. package/{Types → types/Types}/RangeValue.d.ts +0 -0
  1100. package/{Types → types/Types}/RecursivePartial.d.ts +0 -0
  1101. package/types/Types/ShapeData.d.ts +5 -0
  1102. package/types/Types/ShapeDrawerFunctions.d.ts +11 -0
  1103. package/{Types → types/Types}/SingleOrMultiple.d.ts +0 -0
  1104. package/types/Updaters/Angle/AngleUpdater.d.ts +11 -0
  1105. package/{Updaters → types/Updaters}/Angle/index.d.ts +0 -0
  1106. package/types/Updaters/Color/ColorUpdater.d.ts +11 -0
  1107. package/{Updaters → types/Updaters}/Color/index.d.ts +0 -0
  1108. package/types/Updaters/Life/LifeUpdater.d.ts +11 -0
  1109. package/{Updaters → types/Updaters}/Life/index.d.ts +0 -0
  1110. package/types/Updaters/Opacity/OpacityUpdater.d.ts +11 -0
  1111. package/{Updaters → types/Updaters}/Opacity/index.d.ts +0 -0
  1112. package/types/Updaters/OutModes/IBounceData.d.ts +15 -0
  1113. package/types/Updaters/OutModes/OutOfCanvasUpdater.d.ts +16 -0
  1114. package/{Updaters → types/Updaters}/OutModes/Utils.d.ts +0 -0
  1115. package/{Updaters → types/Updaters}/OutModes/index.d.ts +0 -0
  1116. package/types/Updaters/Roll/RollUpdater.d.ts +8 -0
  1117. package/{Updaters → types/Updaters}/Roll/index.d.ts +0 -0
  1118. package/types/Updaters/Size/SizeUpdater.d.ts +8 -0
  1119. package/{Updaters → types/Updaters}/Size/index.d.ts +0 -0
  1120. package/types/Updaters/StrokeColor/StrokeColorUpdater.d.ts +11 -0
  1121. package/{Updaters → types/Updaters}/StrokeColor/index.d.ts +0 -0
  1122. package/types/Updaters/Tilt/TiltUpdater.d.ts +11 -0
  1123. package/{Updaters → types/Updaters}/Tilt/index.d.ts +0 -0
  1124. package/types/Updaters/Twinkle/TwinkleUpdater.d.ts +9 -0
  1125. package/types/Updaters/Twinkle/index.d.ts +2 -0
  1126. package/types/Updaters/Wobble/WobbleUpdater.d.ts +17 -0
  1127. package/{Updaters → types/Updaters}/Wobble/index.d.ts +0 -0
  1128. package/types/Utils/CanvasUtils.d.ts +26 -0
  1129. package/types/Utils/ColorUtils.d.ts +28 -0
  1130. package/types/Utils/NumberUtils.d.ts +30 -0
  1131. package/types/Utils/Utils.d.ts +43 -0
  1132. package/types/engine.d.ts +36 -0
  1133. package/{browser → types}/full.d.ts +0 -0
  1134. package/types/index.d.ts +114 -0
  1135. package/types/index.engine.d.ts +102 -0
  1136. package/types/index.slim.d.ts +102 -0
  1137. package/types/pjs.d.ts +14 -0
  1138. package/{browser → types}/slim.d.ts +0 -0
  1139. package/umd/Core/Canvas.js +65 -78
  1140. package/umd/Core/Container.js +22 -16
  1141. package/umd/Core/Interfaces/{IAttract.js → IParticleColorStyle.js} +0 -0
  1142. package/umd/Core/Interfaces/{IBubble.js → IParticlesMover.js} +0 -0
  1143. package/umd/Core/Interfaces/{IParticleGradientAnimation.js → IPositionFromSizeParams.js} +0 -0
  1144. package/umd/Core/Loader.js +10 -14
  1145. package/umd/Core/Particle.js +56 -75
  1146. package/umd/Core/Particles.js +33 -35
  1147. package/umd/Core/Retina.js +13 -22
  1148. package/umd/Core/Utils/Circle.js +6 -15
  1149. package/umd/Core/Utils/CircleWarp.js +2 -7
  1150. package/umd/Core/Utils/EventListeners.js +24 -95
  1151. package/umd/Core/Utils/FrameManager.js +1 -2
  1152. package/umd/Core/Utils/InteractionManager.js +7 -0
  1153. package/umd/Core/Utils/Plugins.js +16 -3
  1154. package/umd/Core/Utils/QuadTree.js +21 -28
  1155. package/umd/Core/Utils/Rectangle.js +6 -15
  1156. package/umd/Core/Utils/Vector.js +13 -15
  1157. package/umd/Core/Utils/Vector3d.js +17 -5
  1158. package/umd/Interactions/External/Attract/Attractor.js +44 -10
  1159. package/umd/Interactions/External/Bounce/Bouncer.js +18 -16
  1160. package/umd/Interactions/External/Bubble/Bubbler.js +41 -18
  1161. package/umd/Interactions/External/Connect/Connector.js +4 -4
  1162. package/umd/Interactions/External/Grab/Grabber.js +32 -27
  1163. package/umd/Interactions/External/Pause/Pauser.js +39 -0
  1164. package/umd/Interactions/External/Pause/index.js +18 -0
  1165. package/umd/Interactions/External/Push/Pusher.js +43 -0
  1166. package/umd/Interactions/External/Push/index.js +18 -0
  1167. package/umd/Interactions/External/Remove/Remover.js +36 -0
  1168. package/umd/Interactions/External/Remove/index.js +18 -0
  1169. package/umd/Interactions/External/Repulse/Repulser.js +47 -12
  1170. package/umd/Interactions/External/Trail/TrailMaker.js +4 -4
  1171. package/umd/Interactions/Particles/Attract/Attractor.js +5 -5
  1172. package/umd/Interactions/Particles/Collisions/Collider.js +13 -21
  1173. package/umd/Interactions/Particles/Links/LinkInstance.js +47 -65
  1174. package/umd/Interactions/Particles/Links/Linker.js +17 -22
  1175. package/umd/Movers/Base/BaseMover.js +90 -0
  1176. package/umd/{Core/Interfaces/IParticleGradientColorAnimation.js → Movers/Base/IParticleSpin.js} +0 -0
  1177. package/umd/{Core/Interfaces/IRepulse.js → Movers/Base/Types.js} +0 -0
  1178. package/umd/Movers/Base/Utils.js +114 -0
  1179. package/umd/Movers/Base/index.js +18 -0
  1180. package/umd/Movers/Parallax/ParallaxMover.js +43 -0
  1181. package/umd/Movers/Parallax/index.js +18 -0
  1182. package/umd/Options/Classes/AnimatableGradient.js +7 -7
  1183. package/umd/Options/Classes/AnimationOptions.js +4 -4
  1184. package/umd/Options/Classes/ColorAnimation.js +5 -5
  1185. package/umd/Options/Classes/Interactivity/Modes/Trail.js +2 -2
  1186. package/umd/Options/Classes/ManualParticle.js +2 -2
  1187. package/umd/Options/Classes/Options.js +2 -2
  1188. package/umd/Options/Classes/Particles/Destroy/Split.js +2 -2
  1189. package/umd/Options/Classes/Particles/Move/Attract.js +3 -3
  1190. package/umd/Options/Classes/Particles/Move/Move.js +5 -4
  1191. package/umd/Options/Classes/Particles/Move/MoveAngle.js +4 -4
  1192. package/umd/Options/Classes/Particles/Move/MoveGravity.js +4 -4
  1193. package/umd/Options/Classes/Particles/Move/Path/Path.js +2 -2
  1194. package/umd/Options/Classes/Particles/Move/Spin.js +4 -3
  1195. package/umd/Options/Classes/Particles/Opacity/Opacity.js +3 -3
  1196. package/umd/Options/Classes/Particles/Orbit/Orbit.js +5 -5
  1197. package/umd/Options/Classes/Particles/ParticlesOptions.js +2 -2
  1198. package/umd/Options/Classes/Particles/Repulse/Repulse.js +6 -6
  1199. package/umd/Options/Classes/Particles/Roll/Roll.js +3 -3
  1200. package/umd/Options/Classes/Particles/Roll/RollLight.js +3 -3
  1201. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.js +3 -3
  1202. package/umd/Options/Classes/Particles/Shape/Shape.js +2 -2
  1203. package/umd/Options/Classes/Particles/Size/Size.js +3 -3
  1204. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.js +3 -3
  1205. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.js +3 -3
  1206. package/umd/Options/Classes/Particles/Wobble/Wobble.js +4 -4
  1207. package/umd/Options/Classes/Responsive.js +2 -2
  1208. package/umd/Options/Classes/Theme/Theme.js +2 -2
  1209. package/umd/Options/Classes/ValueWithRandom.js +3 -3
  1210. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +5 -1
  1211. package/umd/Plugins/Absorbers/AbsorberInstance.js +25 -29
  1212. package/umd/Plugins/Absorbers/Absorbers.js +4 -7
  1213. package/umd/Plugins/Absorbers/Options/Classes/Absorber.js +4 -4
  1214. package/umd/Plugins/Absorbers/index.js +23 -10
  1215. package/umd/Plugins/Emitters/EmitterInstance.js +23 -28
  1216. package/umd/Plugins/Emitters/Emitters.js +4 -7
  1217. package/umd/Plugins/Emitters/Options/Classes/Emitter.js +5 -4
  1218. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.js +4 -4
  1219. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -7
  1220. package/umd/Plugins/Emitters/index.js +10 -3
  1221. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.js +2 -2
  1222. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +3 -3
  1223. package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +27 -50
  1224. package/umd/Plugins/PolygonMask/Utils.js +11 -18
  1225. package/umd/Plugins/PolygonMask/index.js +15 -4
  1226. package/umd/Shapes/Image/ImageDrawer.js +20 -20
  1227. package/umd/Shapes/Image/Utils.js +3 -3
  1228. package/umd/Shapes/Text/TextDrawer.js +2 -2
  1229. package/umd/Updaters/Angle/AngleUpdater.js +4 -4
  1230. package/umd/Updaters/Color/ColorUpdater.js +6 -5
  1231. package/umd/Updaters/Life/LifeUpdater.js +7 -7
  1232. package/umd/Updaters/Opacity/OpacityUpdater.js +11 -11
  1233. package/umd/Updaters/OutModes/OutOfCanvasUpdater.js +2 -2
  1234. package/umd/Updaters/OutModes/Utils.js +4 -4
  1235. package/umd/Updaters/Roll/RollUpdater.js +8 -7
  1236. package/umd/Updaters/Size/SizeUpdater.js +3 -3
  1237. package/umd/Updaters/StrokeColor/StrokeColorUpdater.js +7 -5
  1238. package/umd/Updaters/Tilt/TiltUpdater.js +4 -4
  1239. package/umd/Updaters/Twinkle/TwinkleUpdater.js +31 -0
  1240. package/umd/Updaters/Twinkle/index.js +18 -0
  1241. package/umd/Updaters/Wobble/WobbleUpdater.js +4 -4
  1242. package/umd/Utils/CanvasUtils.js +26 -57
  1243. package/umd/Utils/ColorUtils.js +18 -34
  1244. package/umd/Utils/NumberUtils.js +57 -11
  1245. package/umd/Utils/Utils.js +32 -49
  1246. package/umd/engine.js +9 -4
  1247. package/umd/full.js +4 -2
  1248. package/umd/index.engine.js +99 -7
  1249. package/umd/index.js +111 -11
  1250. package/umd/index.slim.js +98 -7
  1251. package/umd/slim.js +11 -1
  1252. package/Core/Canvas.d.ts +0 -35
  1253. package/Core/Canvas.js +0 -319
  1254. package/Core/Container.d.ts +0 -68
  1255. package/Core/Container.js +0 -395
  1256. package/Core/Interfaces/Colors.d.ts +0 -33
  1257. package/Core/Interfaces/Gradients.d.ts +0 -21
  1258. package/Core/Interfaces/IAttract.d.ts +0 -7
  1259. package/Core/Interfaces/IBubble.d.ts +0 -4
  1260. package/Core/Interfaces/ICircleBouncer.d.ts +0 -9
  1261. package/Core/Interfaces/IContainerPlugin.d.ts +0 -32
  1262. package/Core/Interfaces/ICoordinates.d.ts +0 -15
  1263. package/Core/Interfaces/IExternalInteractor.d.ts +0 -6
  1264. package/Core/Interfaces/IInteractor.d.ts +0 -6
  1265. package/Core/Interfaces/IMovePathGenerator.d.ts +0 -8
  1266. package/Core/Interfaces/IParticle.d.ts +0 -55
  1267. package/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
  1268. package/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
  1269. package/Core/Interfaces/IParticleRoll.d.ts +0 -9
  1270. package/Core/Interfaces/IParticleSpin.d.ts +0 -9
  1271. package/Core/Interfaces/IParticleUpdater.d.ts +0 -9
  1272. package/Core/Interfaces/IParticleValueAnimation.d.ts +0 -17
  1273. package/Core/Interfaces/IPlugin.d.ts +0 -11
  1274. package/Core/Interfaces/IRepulse.d.ts +0 -7
  1275. package/Core/Interfaces/IShapeDrawer.d.ts +0 -10
  1276. package/Core/Interfaces/IShapeValues.d.ts +0 -8
  1277. package/Core/Interfaces/index.d.ts +0 -37
  1278. package/Core/Interfaces/index.js +0 -49
  1279. package/Core/Loader.d.ts +0 -32
  1280. package/Core/Loader.js +0 -183
  1281. package/Core/Particle.d.ts +0 -73
  1282. package/Core/Particle.js +0 -386
  1283. package/Core/Particles.d.ts +0 -46
  1284. package/Core/Particles.js +0 -322
  1285. package/Core/Retina.d.ts +0 -26
  1286. package/Core/Retina.js +0 -97
  1287. package/Core/Utils/Circle.d.ts +0 -8
  1288. package/Core/Utils/Circle.js +0 -42
  1289. package/Core/Utils/CircleWarp.d.ts +0 -9
  1290. package/Core/Utils/CircleWarp.js +0 -60
  1291. package/Core/Utils/EventListeners.js +0 -373
  1292. package/Core/Utils/ExternalInteractorBase.d.ts +0 -12
  1293. package/Core/Utils/FrameManager.js +0 -43
  1294. package/Core/Utils/InteractionManager.d.ts +0 -14
  1295. package/Core/Utils/InteractionManager.js +0 -59
  1296. package/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
  1297. package/Core/Utils/ParticlesMover.d.ts +0 -13
  1298. package/Core/Utils/ParticlesMover.js +0 -186
  1299. package/Core/Utils/Plugins.d.ts +0 -36
  1300. package/Core/Utils/Plugins.js +0 -98
  1301. package/Core/Utils/Point.d.ts +0 -7
  1302. package/Core/Utils/QuadTree.d.ts +0 -23
  1303. package/Core/Utils/QuadTree.js +0 -78
  1304. package/Core/Utils/Range.d.ts +0 -7
  1305. package/Core/Utils/Rectangle.d.ts +0 -8
  1306. package/Core/Utils/Rectangle.js +0 -38
  1307. package/Core/Utils/Vector.d.ts +0 -29
  1308. package/Core/Utils/Vector.js +0 -96
  1309. package/Core/Utils/Vector3d.d.ts +0 -18
  1310. package/Core/Utils/Vector3d.js +0 -58
  1311. package/Core/Utils/index.d.ts +0 -16
  1312. package/Core/Utils/index.js +0 -28
  1313. package/Core/index.d.ts +0 -8
  1314. package/Core/index.js +0 -20
  1315. package/Enums/Directions/index.d.ts +0 -4
  1316. package/Enums/Directions/index.js +0 -16
  1317. package/Enums/Modes/index.d.ts +0 -10
  1318. package/Enums/Modes/index.js +0 -22
  1319. package/Enums/Types/OrbitType.d.ts +0 -4
  1320. package/Enums/Types/OrbitType.js +0 -2
  1321. package/Enums/Types/index.d.ts +0 -9
  1322. package/Enums/Types/index.js +0 -21
  1323. package/Enums/index.d.ts +0 -5
  1324. package/Enums/index.js +0 -17
  1325. package/Interactions/External/Attract/Attractor.d.ts +0 -11
  1326. package/Interactions/External/Attract/Attractor.js +0 -75
  1327. package/Interactions/External/Bounce/Bouncer.d.ts +0 -11
  1328. package/Interactions/External/Bounce/Bouncer.js +0 -67
  1329. package/Interactions/External/Bubble/Bubbler.d.ts +0 -16
  1330. package/Interactions/External/Bubble/Bubbler.js +0 -251
  1331. package/Interactions/External/Connect/Connector.d.ts +0 -8
  1332. package/Interactions/External/Connect/Connector.js +0 -41
  1333. package/Interactions/External/Grab/Grabber.d.ts +0 -8
  1334. package/Interactions/External/Grab/Grabber.js +0 -47
  1335. package/Interactions/External/Repulse/Repulser.d.ts +0 -12
  1336. package/Interactions/External/Repulse/Repulser.js +0 -98
  1337. package/Interactions/External/Trail/TrailMaker.d.ts +0 -10
  1338. package/Interactions/External/Trail/TrailMaker.js +0 -53
  1339. package/Interactions/Particles/Attract/Attractor.d.ts +0 -8
  1340. package/Interactions/Particles/Attract/Attractor.js +0 -30
  1341. package/Interactions/Particles/Collisions/Collider.d.ts +0 -10
  1342. package/Interactions/Particles/Collisions/Collider.js +0 -109
  1343. package/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
  1344. package/Interactions/Particles/Links/LinkInstance.js +0 -124
  1345. package/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
  1346. package/Interactions/Particles/Links/Linker.d.ts +0 -10
  1347. package/Interactions/Particles/Links/Linker.js +0 -105
  1348. package/Options/Classes/AnimatableColor.d.ts +0 -11
  1349. package/Options/Classes/AnimatableGradient.d.ts +0 -53
  1350. package/Options/Classes/AnimatableGradient.js +0 -146
  1351. package/Options/Classes/AnimationOptions.d.ts +0 -11
  1352. package/Options/Classes/AnimationOptions.js +0 -30
  1353. package/Options/Classes/Background/Background.d.ts +0 -14
  1354. package/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -11
  1355. package/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -10
  1356. package/Options/Classes/ColorAnimation.d.ts +0 -12
  1357. package/Options/Classes/ColorAnimation.js +0 -34
  1358. package/Options/Classes/FullScreen/FullScreen.d.ts +0 -9
  1359. package/Options/Classes/HslAnimation.d.ts +0 -11
  1360. package/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
  1361. package/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -18
  1362. package/Options/Classes/Interactivity/Events/Events.d.ts +0 -20
  1363. package/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
  1364. package/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
  1365. package/Options/Classes/Interactivity/Interactivity.d.ts +0 -15
  1366. package/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -14
  1367. package/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
  1368. package/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -9
  1369. package/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -13
  1370. package/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -11
  1371. package/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -15
  1372. package/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -8
  1373. package/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -14
  1374. package/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -12
  1375. package/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
  1376. package/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
  1377. package/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
  1378. package/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
  1379. package/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -29
  1380. package/Options/Classes/Interactivity/Modes/Push.d.ts +0 -12
  1381. package/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -10
  1382. package/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -9
  1383. package/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -14
  1384. package/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -11
  1385. package/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -11
  1386. package/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -12
  1387. package/Options/Classes/Interactivity/Modes/Trail.js +0 -29
  1388. package/Options/Classes/ManualParticle.d.ts +0 -10
  1389. package/Options/Classes/ManualParticle.js +0 -22
  1390. package/Options/Classes/Motion/Motion.d.ts +0 -10
  1391. package/Options/Classes/Motion/MotionReduce.d.ts +0 -9
  1392. package/Options/Classes/Options.d.ts +0 -48
  1393. package/Options/Classes/Options.js +0 -174
  1394. package/Options/Classes/OptionsColor.d.ts +0 -10
  1395. package/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
  1396. package/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -14
  1397. package/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
  1398. package/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
  1399. package/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
  1400. package/Options/Classes/Particles/Destroy/Split.js +0 -31
  1401. package/Options/Classes/Particles/Life/Life.d.ts +0 -12
  1402. package/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
  1403. package/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
  1404. package/Options/Classes/Particles/Links/Links.d.ts +0 -22
  1405. package/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -11
  1406. package/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -12
  1407. package/Options/Classes/Particles/Move/Attract.d.ts +0 -15
  1408. package/Options/Classes/Particles/Move/Attract.js +0 -47
  1409. package/Options/Classes/Particles/Move/Move.d.ts +0 -44
  1410. package/Options/Classes/Particles/Move/Move.js +0 -132
  1411. package/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -9
  1412. package/Options/Classes/Particles/Move/MoveAngle.js +0 -22
  1413. package/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
  1414. package/Options/Classes/Particles/Move/MoveGravity.js +0 -30
  1415. package/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
  1416. package/Options/Classes/Particles/Move/Path/Path.d.ts +0 -13
  1417. package/Options/Classes/Particles/Move/Path/Path.js +0 -30
  1418. package/Options/Classes/Particles/Move/Spin.d.ts +0 -11
  1419. package/Options/Classes/Particles/Move/Spin.js +0 -23
  1420. package/Options/Classes/Particles/Move/Trail.d.ts +0 -11
  1421. package/Options/Classes/Particles/Number/Density.d.ts +0 -12
  1422. package/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -13
  1423. package/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -12
  1424. package/Options/Classes/Particles/Opacity/Opacity.js +0 -33
  1425. package/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -14
  1426. package/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -18
  1427. package/Options/Classes/Particles/Orbit/Orbit.js +0 -39
  1428. package/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -7
  1429. package/Options/Classes/Particles/ParticlesOptions.d.ts +0 -58
  1430. package/Options/Classes/Particles/ParticlesOptions.js +0 -143
  1431. package/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -13
  1432. package/Options/Classes/Particles/Repulse/Repulse.js +0 -37
  1433. package/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
  1434. package/Options/Classes/Particles/Roll/Roll.js +0 -35
  1435. package/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
  1436. package/Options/Classes/Particles/Roll/RollLight.js +0 -22
  1437. package/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -13
  1438. package/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -10
  1439. package/Options/Classes/Particles/Rotate/RotateAnimation.js +0 -26
  1440. package/Options/Classes/Particles/Shadow.d.ts +0 -13
  1441. package/Options/Classes/Particles/Shape/Shape.d.ts +0 -27
  1442. package/Options/Classes/Particles/Shape/Shape.js +0 -103
  1443. package/Options/Classes/Particles/Size/Size.d.ts +0 -12
  1444. package/Options/Classes/Particles/Size/Size.js +0 -33
  1445. package/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -14
  1446. package/Options/Classes/Particles/Stroke.d.ts +0 -11
  1447. package/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -13
  1448. package/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -10
  1449. package/Options/Classes/Particles/Tilt/TiltAnimation.js +0 -26
  1450. package/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -10
  1451. package/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -12
  1452. package/Options/Classes/Particles/Twinkle/TwinkleValues.js +0 -30
  1453. package/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
  1454. package/Options/Classes/Particles/Wobble/Wobble.js +0 -26
  1455. package/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -11
  1456. package/Options/Classes/Random.d.ts +0 -9
  1457. package/Options/Classes/Responsive.d.ts +0 -12
  1458. package/Options/Classes/Responsive.js +0 -31
  1459. package/Options/Classes/Theme/Theme.d.ts +0 -12
  1460. package/Options/Classes/Theme/Theme.js +0 -24
  1461. package/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
  1462. package/Options/Classes/ValueWithRandom.d.ts +0 -10
  1463. package/Options/Classes/ValueWithRandom.js +0 -26
  1464. package/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -7
  1465. package/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
  1466. package/Options/Interfaces/IAnimation.d.ts +0 -7
  1467. package/Options/Interfaces/IColorAnimation.d.ts +0 -5
  1468. package/Options/Interfaces/IManualParticle.d.ts +0 -7
  1469. package/Options/Interfaces/IOptionLoader.d.ts +0 -4
  1470. package/Options/Interfaces/IOptions.d.ts +0 -34
  1471. package/Options/Interfaces/IOptionsColor.d.ts +0 -2
  1472. package/Options/Interfaces/IOptionsGradient.d.ts +0 -13
  1473. package/Options/Interfaces/IResponsive.d.ts +0 -8
  1474. package/Options/Interfaces/IValueWithRandom.d.ts +0 -6
  1475. package/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -6
  1476. package/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -11
  1477. package/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -13
  1478. package/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -8
  1479. package/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
  1480. package/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -9
  1481. package/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -6
  1482. package/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -10
  1483. package/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -5
  1484. package/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -6
  1485. package/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -9
  1486. package/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -8
  1487. package/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -9
  1488. package/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -6
  1489. package/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
  1490. package/Options/Interfaces/Particles/IParticles.d.ts +0 -52
  1491. package/Options/Interfaces/Particles/IStroke.d.ts +0 -7
  1492. package/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -9
  1493. package/Options/Interfaces/Particles/Move/IMove.d.ts +0 -35
  1494. package/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -5
  1495. package/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
  1496. package/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
  1497. package/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
  1498. package/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -9
  1499. package/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -8
  1500. package/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -13
  1501. package/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -9
  1502. package/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
  1503. package/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
  1504. package/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -8
  1505. package/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -6
  1506. package/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
  1507. package/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -16
  1508. package/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -13
  1509. package/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -8
  1510. package/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -8
  1511. package/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -6
  1512. package/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -8
  1513. package/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
  1514. package/Options/Interfaces/Theme/ITheme.d.ts +0 -8
  1515. package/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
  1516. package/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
  1517. package/Plugins/Absorbers/AbsorberInstance.d.ts +0 -33
  1518. package/Plugins/Absorbers/AbsorberInstance.js +0 -162
  1519. package/Plugins/Absorbers/Absorbers.d.ts +0 -22
  1520. package/Plugins/Absorbers/Absorbers.js +0 -118
  1521. package/Plugins/Absorbers/Enums/index.d.ts +0 -1
  1522. package/Plugins/Absorbers/Enums/index.js +0 -13
  1523. package/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -18
  1524. package/Plugins/Absorbers/Options/Classes/Absorber.js +0 -51
  1525. package/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
  1526. package/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
  1527. package/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -13
  1528. package/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -12
  1529. package/Plugins/Absorbers/index.d.ts +0 -2
  1530. package/Plugins/Absorbers/index.js +0 -80
  1531. package/Plugins/Emitters/EmitterContainer.d.ts +0 -10
  1532. package/Plugins/Emitters/EmitterInstance.d.ts +0 -45
  1533. package/Plugins/Emitters/EmitterInstance.js +0 -269
  1534. package/Plugins/Emitters/Emitters.d.ts +0 -25
  1535. package/Plugins/Emitters/Emitters.js +0 -153
  1536. package/Plugins/Emitters/Enums/index.d.ts +0 -2
  1537. package/Plugins/Emitters/Enums/index.js +0 -14
  1538. package/Plugins/Emitters/IEmitterShape.d.ts +0 -4
  1539. package/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -28
  1540. package/Plugins/Emitters/Options/Classes/Emitter.js +0 -67
  1541. package/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -11
  1542. package/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -9
  1543. package/Plugins/Emitters/Options/Classes/EmitterRate.js +0 -22
  1544. package/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -11
  1545. package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -24
  1546. package/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -12
  1547. package/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -5
  1548. package/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -5
  1549. package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
  1550. package/Plugins/Emitters/Shapes/Circle/CircleShape.js +0 -32
  1551. package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
  1552. package/Plugins/Emitters/index.d.ts +0 -3
  1553. package/Plugins/Emitters/index.js +0 -110
  1554. package/Plugins/PolygonMask/Enums/index.d.ts +0 -3
  1555. package/Plugins/PolygonMask/Enums/index.js +0 -15
  1556. package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -24
  1557. package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +0 -66
  1558. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -15
  1559. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -11
  1560. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +0 -29
  1561. package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -9
  1562. package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -11
  1563. package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -10
  1564. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -18
  1565. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -8
  1566. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -6
  1567. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -4
  1568. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -6
  1569. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -5
  1570. package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -38
  1571. package/Plugins/PolygonMask/PolygonMaskInstance.js +0 -386
  1572. package/Plugins/PolygonMask/Utils.d.ts +0 -11
  1573. package/Plugins/PolygonMask/Utils.js +0 -124
  1574. package/Plugins/PolygonMask/index.d.ts +0 -2
  1575. package/Plugins/PolygonMask/index.js +0 -56
  1576. package/Shapes/Circle/CircleDrawer.d.ts +0 -5
  1577. package/Shapes/Image/ImageDrawer.d.ts +0 -18
  1578. package/Shapes/Image/ImageDrawer.js +0 -132
  1579. package/Shapes/Image/Utils.d.ts +0 -28
  1580. package/Shapes/Image/Utils.js +0 -89
  1581. package/Shapes/Line/LineDrawer.d.ts +0 -5
  1582. package/Shapes/Polygon/PolygonDrawer.d.ts +0 -7
  1583. package/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -15
  1584. package/Shapes/Polygon/TriangleDrawer.d.ts +0 -8
  1585. package/Shapes/Square/SquareDrawer.d.ts +0 -5
  1586. package/Shapes/Star/StarDrawer.d.ts +0 -5
  1587. package/Shapes/Text/TextDrawer.d.ts +0 -7
  1588. package/Shapes/Text/TextDrawer.js +0 -65
  1589. package/Types/ShapeData.d.ts +0 -5
  1590. package/Types/ShapeDrawerFunctions.d.ts +0 -11
  1591. package/Types/index.d.ts +0 -6
  1592. package/Types/index.js +0 -18
  1593. package/Updaters/Angle/AngleUpdater.d.ts +0 -8
  1594. package/Updaters/Angle/AngleUpdater.js +0 -79
  1595. package/Updaters/Color/ColorUpdater.d.ts +0 -8
  1596. package/Updaters/Color/ColorUpdater.js +0 -67
  1597. package/Updaters/Life/LifeUpdater.d.ts +0 -8
  1598. package/Updaters/Life/LifeUpdater.js +0 -67
  1599. package/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
  1600. package/Updaters/Opacity/OpacityUpdater.js +0 -122
  1601. package/Updaters/OutModes/IBounceData.d.ts +0 -11
  1602. package/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
  1603. package/Updaters/OutModes/OutOfCanvasUpdater.js +0 -146
  1604. package/Updaters/OutModes/Utils.js +0 -65
  1605. package/Updaters/Roll/RollUpdater.d.ts +0 -6
  1606. package/Updaters/Roll/RollUpdater.js +0 -63
  1607. package/Updaters/Size/SizeUpdater.d.ts +0 -6
  1608. package/Updaters/Size/SizeUpdater.js +0 -77
  1609. package/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
  1610. package/Updaters/StrokeColor/StrokeColorUpdater.js +0 -84
  1611. package/Updaters/Tilt/TiltUpdater.d.ts +0 -8
  1612. package/Updaters/Tilt/TiltUpdater.js +0 -79
  1613. package/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
  1614. package/Updaters/Wobble/WobbleUpdater.js +0 -51
  1615. package/Utils/CanvasUtils.d.ts +0 -19
  1616. package/Utils/CanvasUtils.js +0 -287
  1617. package/Utils/ColorUtils.d.ts +0 -26
  1618. package/Utils/ColorUtils.js +0 -476
  1619. package/Utils/NumberUtils.d.ts +0 -23
  1620. package/Utils/NumberUtils.js +0 -128
  1621. package/Utils/Utils.d.ts +0 -38
  1622. package/Utils/Utils.js +0 -269
  1623. package/Utils/index.d.ts +0 -4
  1624. package/Utils/index.js +0 -16
  1625. package/browser/Core/Canvas.d.ts +0 -64
  1626. package/browser/Core/Container.d.ts +0 -163
  1627. package/browser/Core/Interfaces/Colors.d.ts +0 -56
  1628. package/browser/Core/Interfaces/Gradients.d.ts +0 -21
  1629. package/browser/Core/Interfaces/IAttract.d.ts +0 -10
  1630. package/browser/Core/Interfaces/IBounds.d.ts +0 -9
  1631. package/browser/Core/Interfaces/IBubble.d.ts +0 -7
  1632. package/browser/Core/Interfaces/IBubbleParticleData.d.ts +0 -12
  1633. package/browser/Core/Interfaces/ICircleBouncer.d.ts +0 -9
  1634. package/browser/Core/Interfaces/IContainerInteractivity.d.ts +0 -9
  1635. package/browser/Core/Interfaces/IContainerPlugin.d.ts +0 -35
  1636. package/browser/Core/Interfaces/ICoordinates.d.ts +0 -18
  1637. package/browser/Core/Interfaces/IDelta.d.ts +0 -7
  1638. package/browser/Core/Interfaces/IDimension.d.ts +0 -7
  1639. package/browser/Core/Interfaces/IDistance.d.ts +0 -4
  1640. package/browser/Core/Interfaces/IExternalInteractor.d.ts +0 -9
  1641. package/browser/Core/Interfaces/IInteractor.d.ts +0 -9
  1642. package/browser/Core/Interfaces/IMouseData.d.ts +0 -12
  1643. package/browser/Core/Interfaces/IMovePathGenerator.d.ts +0 -11
  1644. package/browser/Core/Interfaces/IParticle.d.ts +0 -58
  1645. package/browser/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
  1646. package/browser/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
  1647. package/browser/Core/Interfaces/IParticleGravity.d.ts +0 -5
  1648. package/browser/Core/Interfaces/IParticleHslAnimation.d.ts +0 -6
  1649. package/browser/Core/Interfaces/IParticleLife.d.ts +0 -7
  1650. package/browser/Core/Interfaces/IParticleLoops.d.ts +0 -4
  1651. package/browser/Core/Interfaces/IParticleRetinaProps.d.ts +0 -12
  1652. package/browser/Core/Interfaces/IParticleRoll.d.ts +0 -9
  1653. package/browser/Core/Interfaces/IParticleSpin.d.ts +0 -9
  1654. package/browser/Core/Interfaces/IParticleUpdater.d.ts +0 -9
  1655. package/browser/Core/Interfaces/IParticleValueAnimation.d.ts +0 -20
  1656. package/browser/Core/Interfaces/IParticleWobble.d.ts +0 -4
  1657. package/browser/Core/Interfaces/IParticlesFrequencies.d.ts +0 -4
  1658. package/browser/Core/Interfaces/IParticlesInteractor.d.ts +0 -10
  1659. package/browser/Core/Interfaces/IPlugin.d.ts +0 -19
  1660. package/browser/Core/Interfaces/IRangeValue.d.ts +0 -4
  1661. package/browser/Core/Interfaces/IRectSideResult.d.ts +0 -5
  1662. package/browser/Core/Interfaces/IRepulse.d.ts +0 -10
  1663. package/browser/Core/Interfaces/IShapeDrawer.d.ts +0 -13
  1664. package/browser/Core/Interfaces/IShapeValues.d.ts +0 -11
  1665. package/browser/Core/Interfaces/index.d.ts +0 -37
  1666. package/browser/Core/Interfaces/index.js +0 -37
  1667. package/browser/Core/Loader.d.ts +0 -77
  1668. package/browser/Core/Particle.d.ts +0 -80
  1669. package/browser/Core/Particles.d.ts +0 -59
  1670. package/browser/Core/Retina.d.ts +0 -32
  1671. package/browser/Core/Utils/Circle.d.ts +0 -11
  1672. package/browser/Core/Utils/CircleWarp.d.ts +0 -12
  1673. package/browser/Core/Utils/Constants.d.ts +0 -22
  1674. package/browser/Core/Utils/EventListeners.d.ts +0 -65
  1675. package/browser/Core/Utils/ExternalInteractorBase.d.ts +0 -12
  1676. package/browser/Core/Utils/FrameManager.d.ts +0 -14
  1677. package/browser/Core/Utils/InteractionManager.d.ts +0 -17
  1678. package/browser/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
  1679. package/browser/Core/Utils/ParticlesMover.d.ts +0 -16
  1680. package/browser/Core/Utils/ParticlesMover.js +0 -187
  1681. package/browser/Core/Utils/Plugins.d.ts +0 -39
  1682. package/browser/Core/Utils/Point.d.ts +0 -10
  1683. package/browser/Core/Utils/QuadTree.d.ts +0 -26
  1684. package/browser/Core/Utils/Range.d.ts +0 -10
  1685. package/browser/Core/Utils/Rectangle.d.ts +0 -11
  1686. package/browser/Core/Utils/Vector.d.ts +0 -29
  1687. package/browser/Core/Utils/Vector3d.d.ts +0 -18
  1688. package/browser/Core/Utils/index.d.ts +0 -16
  1689. package/browser/Core/Utils/index.js +0 -16
  1690. package/browser/Core/index.d.ts +0 -8
  1691. package/browser/Core/index.js +0 -8
  1692. package/browser/Enums/AnimationStatus.d.ts +0 -4
  1693. package/browser/Enums/Directions/MoveDirection.d.ts +0 -15
  1694. package/browser/Enums/Directions/OutModeDirection.d.ts +0 -6
  1695. package/browser/Enums/Directions/RotateDirection.d.ts +0 -9
  1696. package/browser/Enums/Directions/TiltDirection.d.ts +0 -9
  1697. package/browser/Enums/Directions/index.d.ts +0 -4
  1698. package/browser/Enums/Directions/index.js +0 -4
  1699. package/browser/Enums/InteractivityDetect.d.ts +0 -8
  1700. package/browser/Enums/Modes/ClickMode.d.ts +0 -12
  1701. package/browser/Enums/Modes/CollisionMode.d.ts +0 -8
  1702. package/browser/Enums/Modes/DestroyMode.d.ts +0 -4
  1703. package/browser/Enums/Modes/DivMode.d.ts +0 -8
  1704. package/browser/Enums/Modes/HoverMode.d.ts +0 -14
  1705. package/browser/Enums/Modes/OutMode.d.ts +0 -13
  1706. package/browser/Enums/Modes/ResponsiveMode.d.ts +0 -4
  1707. package/browser/Enums/Modes/RollMode.d.ts +0 -5
  1708. package/browser/Enums/Modes/SizeMode.d.ts +0 -7
  1709. package/browser/Enums/Modes/ThemeMode.d.ts +0 -5
  1710. package/browser/Enums/Modes/index.d.ts +0 -10
  1711. package/browser/Enums/Modes/index.js +0 -10
  1712. package/browser/Enums/Types/AlterType.d.ts +0 -4
  1713. package/browser/Enums/Types/DestroyType.d.ts +0 -8
  1714. package/browser/Enums/Types/DivType.d.ts +0 -7
  1715. package/browser/Enums/Types/EasingType.d.ts +0 -10
  1716. package/browser/Enums/Types/GradientType.d.ts +0 -5
  1717. package/browser/Enums/Types/InteractorType.d.ts +0 -4
  1718. package/browser/Enums/Types/OrbitType.d.ts +0 -7
  1719. package/browser/Enums/Types/ShapeType.d.ts +0 -16
  1720. package/browser/Enums/Types/StartValueType.d.ts +0 -8
  1721. package/browser/Enums/Types/index.d.ts +0 -9
  1722. package/browser/Enums/Types/index.js +0 -9
  1723. package/browser/Enums/index.d.ts +0 -5
  1724. package/browser/Enums/index.js +0 -5
  1725. package/browser/Interactions/External/Attract/Attractor.d.ts +0 -15
  1726. package/browser/Interactions/External/Attract/index.d.ts +0 -2
  1727. package/browser/Interactions/External/Bounce/Bouncer.d.ts +0 -11
  1728. package/browser/Interactions/External/Bounce/index.d.ts +0 -2
  1729. package/browser/Interactions/External/Bubble/Bubbler.d.ts +0 -20
  1730. package/browser/Interactions/External/Bubble/IBubblerProcessParam.d.ts +0 -16
  1731. package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +0 -8
  1732. package/browser/Interactions/External/Bubble/index.d.ts +0 -2
  1733. package/browser/Interactions/External/Connect/Connector.d.ts +0 -15
  1734. package/browser/Interactions/External/Connect/index.d.ts +0 -2
  1735. package/browser/Interactions/External/Grab/Grabber.d.ts +0 -12
  1736. package/browser/Interactions/External/Grab/index.d.ts +0 -2
  1737. package/browser/Interactions/External/Repulse/Repulser.d.ts +0 -16
  1738. package/browser/Interactions/External/Repulse/index.d.ts +0 -2
  1739. package/browser/Interactions/External/Trail/TrailMaker.d.ts +0 -13
  1740. package/browser/Interactions/External/Trail/index.d.ts +0 -2
  1741. package/browser/Interactions/Particles/Attract/Attractor.d.ts +0 -11
  1742. package/browser/Interactions/Particles/Attract/index.d.ts +0 -2
  1743. package/browser/Interactions/Particles/Collisions/Collider.d.ts +0 -13
  1744. package/browser/Interactions/Particles/Collisions/index.d.ts +0 -2
  1745. package/browser/Interactions/Particles/Links/ILink.d.ts +0 -15
  1746. package/browser/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
  1747. package/browser/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
  1748. package/browser/Interactions/Particles/Links/Linker.d.ts +0 -10
  1749. package/browser/Interactions/Particles/Links/index.d.ts +0 -2
  1750. package/browser/Interactions/Particles/Links/interaction.d.ts +0 -2
  1751. package/browser/Interactions/Particles/Links/plugin.d.ts +0 -2
  1752. package/browser/Options/Classes/AnimatableColor.d.ts +0 -15
  1753. package/browser/Options/Classes/AnimatableGradient.d.ts +0 -53
  1754. package/browser/Options/Classes/AnimationOptions.d.ts +0 -11
  1755. package/browser/Options/Classes/Background/Background.d.ts +0 -18
  1756. package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -25
  1757. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -13
  1758. package/browser/Options/Classes/ColorAnimation.d.ts +0 -15
  1759. package/browser/Options/Classes/FullScreen/FullScreen.d.ts +0 -25
  1760. package/browser/Options/Classes/HslAnimation.d.ts +0 -11
  1761. package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -20
  1762. package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -55
  1763. package/browser/Options/Classes/Interactivity/Events/Events.d.ts +0 -51
  1764. package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -16
  1765. package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -13
  1766. package/browser/Options/Classes/Interactivity/Interactivity.d.ts +0 -28
  1767. package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -17
  1768. package/browser/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
  1769. package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -12
  1770. package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -16
  1771. package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -20
  1772. package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -36
  1773. package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -11
  1774. package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -35
  1775. package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -15
  1776. package/browser/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
  1777. package/browser/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
  1778. package/browser/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
  1779. package/browser/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
  1780. package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -33
  1781. package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +0 -24
  1782. package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -22
  1783. package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -12
  1784. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -17
  1785. package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -20
  1786. package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -20
  1787. package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -15
  1788. package/browser/Options/Classes/ManualParticle.d.ts +0 -10
  1789. package/browser/Options/Classes/Motion/Motion.d.ts +0 -21
  1790. package/browser/Options/Classes/Motion/MotionReduce.d.ts +0 -18
  1791. package/browser/Options/Classes/Options.d.ts +0 -78
  1792. package/browser/Options/Classes/OptionsColor.d.ts +0 -14
  1793. package/browser/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
  1794. package/browser/Options/Classes/Particles/Bounce/BounceFactor.d.ts +0 -4
  1795. package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -18
  1796. package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
  1797. package/browser/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
  1798. package/browser/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
  1799. package/browser/Options/Classes/Particles/Destroy/SplitFactor.d.ts +0 -4
  1800. package/browser/Options/Classes/Particles/Destroy/SplitRate.d.ts +0 -4
  1801. package/browser/Options/Classes/Particles/Life/Life.d.ts +0 -12
  1802. package/browser/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
  1803. package/browser/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
  1804. package/browser/Options/Classes/Particles/Links/Links.d.ts +0 -26
  1805. package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -14
  1806. package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -15
  1807. package/browser/Options/Classes/Particles/Move/Attract.d.ts +0 -36
  1808. package/browser/Options/Classes/Particles/Move/Move.d.ts +0 -86
  1809. package/browser/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -12
  1810. package/browser/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
  1811. package/browser/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
  1812. package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +0 -16
  1813. package/browser/Options/Classes/Particles/Move/Path/PathDelay.d.ts +0 -4
  1814. package/browser/Options/Classes/Particles/Move/Spin.d.ts +0 -11
  1815. package/browser/Options/Classes/Particles/Move/Trail.d.ts +0 -14
  1816. package/browser/Options/Classes/Particles/Number/Density.d.ts +0 -24
  1817. package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -23
  1818. package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -25
  1819. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -29
  1820. package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -22
  1821. package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -10
  1822. package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +0 -80
  1823. package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -16
  1824. package/browser/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
  1825. package/browser/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
  1826. package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -17
  1827. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -13
  1828. package/browser/Options/Classes/Particles/Shadow.d.ts +0 -17
  1829. package/browser/Options/Classes/Particles/Shape/Shape.d.ts +0 -69
  1830. package/browser/Options/Classes/Particles/Size/Size.d.ts +0 -25
  1831. package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -29
  1832. package/browser/Options/Classes/Particles/Stroke.d.ts +0 -15
  1833. package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -17
  1834. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -13
  1835. package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -14
  1836. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -15
  1837. package/browser/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
  1838. package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -14
  1839. package/browser/Options/Classes/Random.d.ts +0 -9
  1840. package/browser/Options/Classes/Responsive.d.ts +0 -12
  1841. package/browser/Options/Classes/Theme/Theme.d.ts +0 -12
  1842. package/browser/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
  1843. package/browser/Options/Classes/ValueWithRandom.d.ts +0 -13
  1844. package/browser/Options/Interfaces/Background/IBackground.d.ts +0 -44
  1845. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -28
  1846. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -15
  1847. package/browser/Options/Interfaces/FullScreen/IFullScreen.d.ts +0 -20
  1848. package/browser/Options/Interfaces/IAnimatable.d.ts +0 -4
  1849. package/browser/Options/Interfaces/IAnimatableColor.d.ts +0 -14
  1850. package/browser/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
  1851. package/browser/Options/Interfaces/IAnimation.d.ts +0 -17
  1852. package/browser/Options/Interfaces/IColorAnimation.d.ts +0 -12
  1853. package/browser/Options/Interfaces/IHslAnimation.d.ts +0 -6
  1854. package/browser/Options/Interfaces/IManualParticle.d.ts +0 -18
  1855. package/browser/Options/Interfaces/IOptionLoader.d.ts +0 -13
  1856. package/browser/Options/Interfaces/IOptions.d.ts +0 -105
  1857. package/browser/Options/Interfaces/IOptionsColor.d.ts +0 -7
  1858. package/browser/Options/Interfaces/IOptionsGradient.d.ts +0 -13
  1859. package/browser/Options/Interfaces/IRandom.d.ts +0 -4
  1860. package/browser/Options/Interfaces/IResponsive.d.ts +0 -8
  1861. package/browser/Options/Interfaces/IValueWithRandom.d.ts +0 -9
  1862. package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -18
  1863. package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -24
  1864. package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -26
  1865. package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -12
  1866. package/browser/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -8
  1867. package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -29
  1868. package/browser/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -12
  1869. package/browser/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -3
  1870. package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -9
  1871. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -13
  1872. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -7
  1873. package/browser/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -17
  1874. package/browser/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -6
  1875. package/browser/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -16
  1876. package/browser/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -10
  1877. package/browser/Options/Interfaces/Interactivity/Modes/ILight.d.ts +0 -6
  1878. package/browser/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -9
  1879. package/browser/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -5
  1880. package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -11
  1881. package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -26
  1882. package/browser/Options/Interfaces/Interactivity/Modes/IPush.d.ts +0 -12
  1883. package/browser/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -10
  1884. package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -9
  1885. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -12
  1886. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -7
  1887. package/browser/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -11
  1888. package/browser/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -11
  1889. package/browser/Options/Interfaces/Motion/IMotion.d.ts +0 -16
  1890. package/browser/Options/Interfaces/Motion/IMotionReduce.d.ts +0 -13
  1891. package/browser/Options/Interfaces/Particles/Bounce/IBounce.d.ts +0 -5
  1892. package/browser/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -13
  1893. package/browser/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -4
  1894. package/browser/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -10
  1895. package/browser/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
  1896. package/browser/Options/Interfaces/Particles/IParticles.d.ts +0 -62
  1897. package/browser/Options/Interfaces/Particles/IShadow.d.ts +0 -12
  1898. package/browser/Options/Interfaces/Particles/IStroke.d.ts +0 -21
  1899. package/browser/Options/Interfaces/Particles/Life/ILife.d.ts +0 -7
  1900. package/browser/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -4
  1901. package/browser/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -4
  1902. package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +0 -60
  1903. package/browser/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -9
  1904. package/browser/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -10
  1905. package/browser/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -18
  1906. package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +0 -54
  1907. package/browser/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -8
  1908. package/browser/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
  1909. package/browser/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
  1910. package/browser/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
  1911. package/browser/Options/Interfaces/Particles/Move/ITrail.d.ts +0 -9
  1912. package/browser/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -12
  1913. package/browser/Options/Interfaces/Particles/Number/IDensity.d.ts +0 -12
  1914. package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -14
  1915. package/browser/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -13
  1916. package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -17
  1917. package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -20
  1918. package/browser/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -13
  1919. package/browser/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
  1920. package/browser/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
  1921. package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -12
  1922. package/browser/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -9
  1923. package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -11
  1924. package/browser/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -14
  1925. package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -11
  1926. package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -38
  1927. package/browser/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
  1928. package/browser/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -12
  1929. package/browser/Options/Interfaces/Particles/Size/ISize.d.ts +0 -13
  1930. package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -17
  1931. package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -12
  1932. package/browser/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -9
  1933. package/browser/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -9
  1934. package/browser/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -11
  1935. package/browser/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
  1936. package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -10
  1937. package/browser/Options/Interfaces/Theme/ITheme.d.ts +0 -22
  1938. package/browser/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -22
  1939. package/browser/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
  1940. package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +0 -36
  1941. package/browser/Plugins/Absorbers/Absorbers.d.ts +0 -25
  1942. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +0 -6
  1943. package/browser/Plugins/Absorbers/Enums/index.d.ts +0 -1
  1944. package/browser/Plugins/Absorbers/Enums/index.js +0 -1
  1945. package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -22
  1946. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
  1947. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
  1948. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -42
  1949. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -15
  1950. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -6
  1951. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -4
  1952. package/browser/Plugins/Absorbers/index.d.ts +0 -2
  1953. package/browser/Plugins/Emitters/EmitterContainer.d.ts +0 -10
  1954. package/browser/Plugins/Emitters/EmitterInstance.d.ts +0 -48
  1955. package/browser/Plugins/Emitters/Emitters.d.ts +0 -28
  1956. package/browser/Plugins/Emitters/EmittersEngine.d.ts +0 -7
  1957. package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +0 -6
  1958. package/browser/Plugins/Emitters/Enums/EmitterShapeType.d.ts +0 -4
  1959. package/browser/Plugins/Emitters/Enums/index.d.ts +0 -2
  1960. package/browser/Plugins/Emitters/Enums/index.js +0 -2
  1961. package/browser/Plugins/Emitters/IEmitterShape.d.ts +0 -4
  1962. package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -32
  1963. package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -14
  1964. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -12
  1965. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -14
  1966. package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -71
  1967. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -25
  1968. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -15
  1969. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -16
  1970. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -8
  1971. package/browser/Plugins/Emitters/ShapeManager.d.ts +0 -9
  1972. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
  1973. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
  1974. package/browser/Plugins/Emitters/index.d.ts +0 -3
  1975. package/browser/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -8
  1976. package/browser/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -4
  1977. package/browser/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +0 -6
  1978. package/browser/Plugins/PolygonMask/Enums/index.d.ts +0 -3
  1979. package/browser/Plugins/PolygonMask/Enums/index.js +0 -3
  1980. package/browser/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +0 -6
  1981. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -34
  1982. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -30
  1983. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -14
  1984. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -12
  1985. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -14
  1986. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -13
  1987. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -25
  1988. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -17
  1989. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -9
  1990. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -7
  1991. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -9
  1992. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -8
  1993. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -7
  1994. package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -50
  1995. package/browser/Plugins/PolygonMask/Types.d.ts +0 -8
  1996. package/browser/Plugins/PolygonMask/Utils.d.ts +0 -11
  1997. package/browser/Plugins/PolygonMask/index.d.ts +0 -2
  1998. package/browser/Plugins/PolygonMask/pathseg.d.ts +0 -0
  1999. package/browser/Shapes/Circle/CircleDrawer.d.ts +0 -8
  2000. package/browser/Shapes/Circle/index.d.ts +0 -2
  2001. package/browser/Shapes/Image/ImageDrawer.d.ts +0 -21
  2002. package/browser/Shapes/Image/Utils.d.ts +0 -31
  2003. package/browser/Shapes/Image/index.d.ts +0 -2
  2004. package/browser/Shapes/Line/LineDrawer.d.ts +0 -8
  2005. package/browser/Shapes/Line/index.d.ts +0 -2
  2006. package/browser/Shapes/Polygon/PolygonDrawer.d.ts +0 -10
  2007. package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -18
  2008. package/browser/Shapes/Polygon/TriangleDrawer.d.ts +0 -11
  2009. package/browser/Shapes/Polygon/index.d.ts +0 -4
  2010. package/browser/Shapes/Square/SquareDrawer.d.ts +0 -8
  2011. package/browser/Shapes/Square/index.d.ts +0 -2
  2012. package/browser/Shapes/Star/StarDrawer.d.ts +0 -8
  2013. package/browser/Shapes/Star/index.d.ts +0 -2
  2014. package/browser/Shapes/Text/TextDrawer.d.ts +0 -10
  2015. package/browser/Shapes/Text/index.d.ts +0 -2
  2016. package/browser/Types/ParticlesGroups.d.ts +0 -8
  2017. package/browser/Types/PathOptions.d.ts +0 -3
  2018. package/browser/Types/RangeValue.d.ts +0 -2
  2019. package/browser/Types/RecursivePartial.d.ts +0 -6
  2020. package/browser/Types/ShapeData.d.ts +0 -8
  2021. package/browser/Types/ShapeDrawerFunctions.d.ts +0 -32
  2022. package/browser/Types/SingleOrMultiple.d.ts +0 -4
  2023. package/browser/Types/index.d.ts +0 -6
  2024. package/browser/Types/index.js +0 -6
  2025. package/browser/Updaters/Angle/AngleUpdater.d.ts +0 -8
  2026. package/browser/Updaters/Angle/index.d.ts +0 -2
  2027. package/browser/Updaters/Color/ColorUpdater.d.ts +0 -8
  2028. package/browser/Updaters/Color/index.d.ts +0 -2
  2029. package/browser/Updaters/Life/LifeUpdater.d.ts +0 -8
  2030. package/browser/Updaters/Life/index.d.ts +0 -2
  2031. package/browser/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
  2032. package/browser/Updaters/Opacity/index.d.ts +0 -2
  2033. package/browser/Updaters/OutModes/IBounceData.d.ts +0 -11
  2034. package/browser/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
  2035. package/browser/Updaters/OutModes/Utils.d.ts +0 -3
  2036. package/browser/Updaters/OutModes/index.d.ts +0 -2
  2037. package/browser/Updaters/Roll/RollUpdater.d.ts +0 -6
  2038. package/browser/Updaters/Roll/index.d.ts +0 -2
  2039. package/browser/Updaters/Size/SizeUpdater.d.ts +0 -6
  2040. package/browser/Updaters/Size/index.d.ts +0 -2
  2041. package/browser/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
  2042. package/browser/Updaters/StrokeColor/index.d.ts +0 -2
  2043. package/browser/Updaters/Tilt/TiltUpdater.d.ts +0 -8
  2044. package/browser/Updaters/Tilt/index.d.ts +0 -2
  2045. package/browser/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
  2046. package/browser/Updaters/Wobble/index.d.ts +0 -2
  2047. package/browser/Utils/CanvasUtils.d.ts +0 -19
  2048. package/browser/Utils/ColorUtils.d.ts +0 -46
  2049. package/browser/Utils/NumberUtils.d.ts +0 -50
  2050. package/browser/Utils/Utils.d.ts +0 -43
  2051. package/browser/Utils/index.d.ts +0 -4
  2052. package/browser/Utils/index.js +0 -4
  2053. package/browser/engine.d.ts +0 -119
  2054. package/browser/index.d.ts +0 -20
  2055. package/browser/index.engine.d.ts +0 -13
  2056. package/browser/index.slim.d.ts +0 -14
  2057. package/browser/pjs.d.ts +0 -41
  2058. package/engine.d.ts +0 -26
  2059. package/engine.js +0 -98
  2060. package/esm/Core/Canvas.d.ts +0 -35
  2061. package/esm/Core/Container.d.ts +0 -68
  2062. package/esm/Core/Interfaces/Colors.d.ts +0 -33
  2063. package/esm/Core/Interfaces/Gradients.d.ts +0 -21
  2064. package/esm/Core/Interfaces/IAttract.d.ts +0 -7
  2065. package/esm/Core/Interfaces/IBounds.d.ts +0 -6
  2066. package/esm/Core/Interfaces/IBubble.d.ts +0 -4
  2067. package/esm/Core/Interfaces/IBubbleParticleData.d.ts +0 -9
  2068. package/esm/Core/Interfaces/ICircleBouncer.d.ts +0 -9
  2069. package/esm/Core/Interfaces/IContainerInteractivity.d.ts +0 -6
  2070. package/esm/Core/Interfaces/IContainerPlugin.d.ts +0 -32
  2071. package/esm/Core/Interfaces/ICoordinates.d.ts +0 -15
  2072. package/esm/Core/Interfaces/IDelta.d.ts +0 -4
  2073. package/esm/Core/Interfaces/IDimension.d.ts +0 -4
  2074. package/esm/Core/Interfaces/IDistance.d.ts +0 -4
  2075. package/esm/Core/Interfaces/IExternalInteractor.d.ts +0 -6
  2076. package/esm/Core/Interfaces/IInteractor.d.ts +0 -6
  2077. package/esm/Core/Interfaces/IMouseData.d.ts +0 -9
  2078. package/esm/Core/Interfaces/IMovePathGenerator.d.ts +0 -8
  2079. package/esm/Core/Interfaces/IParticle.d.ts +0 -55
  2080. package/esm/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
  2081. package/esm/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
  2082. package/esm/Core/Interfaces/IParticleGravity.d.ts +0 -5
  2083. package/esm/Core/Interfaces/IParticleHslAnimation.d.ts +0 -6
  2084. package/esm/Core/Interfaces/IParticleLife.d.ts +0 -7
  2085. package/esm/Core/Interfaces/IParticleLoops.d.ts +0 -4
  2086. package/esm/Core/Interfaces/IParticleRetinaProps.d.ts +0 -12
  2087. package/esm/Core/Interfaces/IParticleRoll.d.ts +0 -9
  2088. package/esm/Core/Interfaces/IParticleSpin.d.ts +0 -9
  2089. package/esm/Core/Interfaces/IParticleUpdater.d.ts +0 -9
  2090. package/esm/Core/Interfaces/IParticleValueAnimation.d.ts +0 -17
  2091. package/esm/Core/Interfaces/IParticleWobble.d.ts +0 -4
  2092. package/esm/Core/Interfaces/IParticlesFrequencies.d.ts +0 -4
  2093. package/esm/Core/Interfaces/IParticlesInteractor.d.ts +0 -7
  2094. package/esm/Core/Interfaces/IPlugin.d.ts +0 -11
  2095. package/esm/Core/Interfaces/IRangeValue.d.ts +0 -4
  2096. package/esm/Core/Interfaces/IRectSideResult.d.ts +0 -5
  2097. package/esm/Core/Interfaces/IRepulse.d.ts +0 -7
  2098. package/esm/Core/Interfaces/IRepulse.js +0 -1
  2099. package/esm/Core/Interfaces/IShapeDrawer.d.ts +0 -10
  2100. package/esm/Core/Interfaces/IShapeValues.d.ts +0 -8
  2101. package/esm/Core/Interfaces/index.d.ts +0 -37
  2102. package/esm/Core/Interfaces/index.js +0 -37
  2103. package/esm/Core/Loader.d.ts +0 -32
  2104. package/esm/Core/Particle.d.ts +0 -73
  2105. package/esm/Core/Particles.d.ts +0 -46
  2106. package/esm/Core/Retina.d.ts +0 -26
  2107. package/esm/Core/Utils/Circle.d.ts +0 -8
  2108. package/esm/Core/Utils/CircleWarp.d.ts +0 -9
  2109. package/esm/Core/Utils/Constants.d.ts +0 -18
  2110. package/esm/Core/Utils/EventListeners.d.ts +0 -33
  2111. package/esm/Core/Utils/ExternalInteractorBase.d.ts +0 -12
  2112. package/esm/Core/Utils/FrameManager.d.ts +0 -6
  2113. package/esm/Core/Utils/InteractionManager.d.ts +0 -14
  2114. package/esm/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
  2115. package/esm/Core/Utils/ParticlesMover.d.ts +0 -13
  2116. package/esm/Core/Utils/ParticlesMover.js +0 -182
  2117. package/esm/Core/Utils/Plugins.d.ts +0 -36
  2118. package/esm/Core/Utils/Point.d.ts +0 -7
  2119. package/esm/Core/Utils/QuadTree.d.ts +0 -23
  2120. package/esm/Core/Utils/Range.d.ts +0 -7
  2121. package/esm/Core/Utils/Rectangle.d.ts +0 -8
  2122. package/esm/Core/Utils/Vector.d.ts +0 -29
  2123. package/esm/Core/Utils/Vector3d.d.ts +0 -18
  2124. package/esm/Core/Utils/index.d.ts +0 -16
  2125. package/esm/Core/Utils/index.js +0 -16
  2126. package/esm/Core/index.d.ts +0 -8
  2127. package/esm/Core/index.js +0 -8
  2128. package/esm/Enums/AnimationStatus.d.ts +0 -4
  2129. package/esm/Enums/Directions/MoveDirection.d.ts +0 -12
  2130. package/esm/Enums/Directions/OutModeDirection.d.ts +0 -6
  2131. package/esm/Enums/Directions/RotateDirection.d.ts +0 -6
  2132. package/esm/Enums/Directions/TiltDirection.d.ts +0 -6
  2133. package/esm/Enums/Directions/index.d.ts +0 -4
  2134. package/esm/Enums/Directions/index.js +0 -4
  2135. package/esm/Enums/InteractivityDetect.d.ts +0 -5
  2136. package/esm/Enums/Modes/ClickMode.d.ts +0 -9
  2137. package/esm/Enums/Modes/CollisionMode.d.ts +0 -5
  2138. package/esm/Enums/Modes/DestroyMode.d.ts +0 -4
  2139. package/esm/Enums/Modes/DivMode.d.ts +0 -5
  2140. package/esm/Enums/Modes/HoverMode.d.ts +0 -11
  2141. package/esm/Enums/Modes/OutMode.d.ts +0 -10
  2142. package/esm/Enums/Modes/ResponsiveMode.d.ts +0 -4
  2143. package/esm/Enums/Modes/RollMode.d.ts +0 -5
  2144. package/esm/Enums/Modes/SizeMode.d.ts +0 -4
  2145. package/esm/Enums/Modes/ThemeMode.d.ts +0 -5
  2146. package/esm/Enums/Modes/index.d.ts +0 -10
  2147. package/esm/Enums/Modes/index.js +0 -10
  2148. package/esm/Enums/Types/AlterType.d.ts +0 -4
  2149. package/esm/Enums/Types/DestroyType.d.ts +0 -5
  2150. package/esm/Enums/Types/DivType.d.ts +0 -4
  2151. package/esm/Enums/Types/EasingType.d.ts +0 -10
  2152. package/esm/Enums/Types/GradientType.d.ts +0 -5
  2153. package/esm/Enums/Types/InteractorType.d.ts +0 -4
  2154. package/esm/Enums/Types/OrbitType.d.ts +0 -4
  2155. package/esm/Enums/Types/OrbitType.js +0 -1
  2156. package/esm/Enums/Types/ShapeType.d.ts +0 -13
  2157. package/esm/Enums/Types/StartValueType.d.ts +0 -5
  2158. package/esm/Enums/Types/index.d.ts +0 -9
  2159. package/esm/Enums/Types/index.js +0 -9
  2160. package/esm/Enums/index.d.ts +0 -5
  2161. package/esm/Enums/index.js +0 -5
  2162. package/esm/Interactions/External/Attract/Attractor.d.ts +0 -11
  2163. package/esm/Interactions/External/Attract/index.d.ts +0 -2
  2164. package/esm/Interactions/External/Bounce/Bouncer.d.ts +0 -11
  2165. package/esm/Interactions/External/Bounce/index.d.ts +0 -2
  2166. package/esm/Interactions/External/Bubble/Bubbler.d.ts +0 -16
  2167. package/esm/Interactions/External/Bubble/IBubblerProcessParam.d.ts +0 -10
  2168. package/esm/Interactions/External/Bubble/ProcessBubbleType.d.ts +0 -5
  2169. package/esm/Interactions/External/Bubble/index.d.ts +0 -2
  2170. package/esm/Interactions/External/Connect/Connector.d.ts +0 -8
  2171. package/esm/Interactions/External/Connect/index.d.ts +0 -2
  2172. package/esm/Interactions/External/Grab/Grabber.d.ts +0 -8
  2173. package/esm/Interactions/External/Grab/index.d.ts +0 -2
  2174. package/esm/Interactions/External/Repulse/Repulser.d.ts +0 -12
  2175. package/esm/Interactions/External/Repulse/index.d.ts +0 -2
  2176. package/esm/Interactions/External/Trail/TrailMaker.d.ts +0 -10
  2177. package/esm/Interactions/External/Trail/index.d.ts +0 -2
  2178. package/esm/Interactions/Particles/Attract/Attractor.d.ts +0 -8
  2179. package/esm/Interactions/Particles/Attract/index.d.ts +0 -2
  2180. package/esm/Interactions/Particles/Collisions/Collider.d.ts +0 -10
  2181. package/esm/Interactions/Particles/Collisions/index.d.ts +0 -2
  2182. package/esm/Interactions/Particles/Links/ILink.d.ts +0 -9
  2183. package/esm/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
  2184. package/esm/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
  2185. package/esm/Interactions/Particles/Links/Linker.d.ts +0 -10
  2186. package/esm/Interactions/Particles/Links/index.d.ts +0 -2
  2187. package/esm/Interactions/Particles/Links/interaction.d.ts +0 -2
  2188. package/esm/Interactions/Particles/Links/plugin.d.ts +0 -2
  2189. package/esm/Options/Classes/AnimatableColor.d.ts +0 -11
  2190. package/esm/Options/Classes/AnimatableGradient.d.ts +0 -53
  2191. package/esm/Options/Classes/AnimationOptions.d.ts +0 -11
  2192. package/esm/Options/Classes/Background/Background.d.ts +0 -14
  2193. package/esm/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -11
  2194. package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -10
  2195. package/esm/Options/Classes/ColorAnimation.d.ts +0 -12
  2196. package/esm/Options/Classes/FullScreen/FullScreen.d.ts +0 -9
  2197. package/esm/Options/Classes/HslAnimation.d.ts +0 -11
  2198. package/esm/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
  2199. package/esm/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -18
  2200. package/esm/Options/Classes/Interactivity/Events/Events.d.ts +0 -20
  2201. package/esm/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
  2202. package/esm/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
  2203. package/esm/Options/Classes/Interactivity/Interactivity.d.ts +0 -15
  2204. package/esm/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -14
  2205. package/esm/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
  2206. package/esm/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -9
  2207. package/esm/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -13
  2208. package/esm/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -11
  2209. package/esm/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -15
  2210. package/esm/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -8
  2211. package/esm/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -14
  2212. package/esm/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -12
  2213. package/esm/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
  2214. package/esm/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
  2215. package/esm/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
  2216. package/esm/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
  2217. package/esm/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -29
  2218. package/esm/Options/Classes/Interactivity/Modes/Push.d.ts +0 -12
  2219. package/esm/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -10
  2220. package/esm/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -9
  2221. package/esm/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -14
  2222. package/esm/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -11
  2223. package/esm/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -11
  2224. package/esm/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -12
  2225. package/esm/Options/Classes/ManualParticle.d.ts +0 -10
  2226. package/esm/Options/Classes/Motion/Motion.d.ts +0 -10
  2227. package/esm/Options/Classes/Motion/MotionReduce.d.ts +0 -9
  2228. package/esm/Options/Classes/Options.d.ts +0 -48
  2229. package/esm/Options/Classes/OptionsColor.d.ts +0 -10
  2230. package/esm/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
  2231. package/esm/Options/Classes/Particles/Bounce/BounceFactor.d.ts +0 -4
  2232. package/esm/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -14
  2233. package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
  2234. package/esm/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
  2235. package/esm/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
  2236. package/esm/Options/Classes/Particles/Destroy/SplitFactor.d.ts +0 -4
  2237. package/esm/Options/Classes/Particles/Destroy/SplitRate.d.ts +0 -4
  2238. package/esm/Options/Classes/Particles/Life/Life.d.ts +0 -12
  2239. package/esm/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
  2240. package/esm/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
  2241. package/esm/Options/Classes/Particles/Links/Links.d.ts +0 -22
  2242. package/esm/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -11
  2243. package/esm/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -12
  2244. package/esm/Options/Classes/Particles/Move/Attract.d.ts +0 -15
  2245. package/esm/Options/Classes/Particles/Move/Move.d.ts +0 -44
  2246. package/esm/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -9
  2247. package/esm/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
  2248. package/esm/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
  2249. package/esm/Options/Classes/Particles/Move/Path/Path.d.ts +0 -13
  2250. package/esm/Options/Classes/Particles/Move/Path/PathDelay.d.ts +0 -4
  2251. package/esm/Options/Classes/Particles/Move/Spin.d.ts +0 -11
  2252. package/esm/Options/Classes/Particles/Move/Trail.d.ts +0 -11
  2253. package/esm/Options/Classes/Particles/Number/Density.d.ts +0 -12
  2254. package/esm/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -13
  2255. package/esm/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -12
  2256. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -14
  2257. package/esm/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -18
  2258. package/esm/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -7
  2259. package/esm/Options/Classes/Particles/ParticlesOptions.d.ts +0 -58
  2260. package/esm/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -13
  2261. package/esm/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
  2262. package/esm/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
  2263. package/esm/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -13
  2264. package/esm/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -10
  2265. package/esm/Options/Classes/Particles/Shadow.d.ts +0 -13
  2266. package/esm/Options/Classes/Particles/Shape/Shape.d.ts +0 -27
  2267. package/esm/Options/Classes/Particles/Size/Size.d.ts +0 -12
  2268. package/esm/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -14
  2269. package/esm/Options/Classes/Particles/Stroke.d.ts +0 -11
  2270. package/esm/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -13
  2271. package/esm/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -10
  2272. package/esm/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -10
  2273. package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -12
  2274. package/esm/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
  2275. package/esm/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -11
  2276. package/esm/Options/Classes/Random.d.ts +0 -9
  2277. package/esm/Options/Classes/Responsive.d.ts +0 -12
  2278. package/esm/Options/Classes/Theme/Theme.d.ts +0 -12
  2279. package/esm/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
  2280. package/esm/Options/Classes/ValueWithRandom.d.ts +0 -10
  2281. package/esm/Options/Interfaces/Background/IBackground.d.ts +0 -9
  2282. package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -7
  2283. package/esm/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -5
  2284. package/esm/Options/Interfaces/FullScreen/IFullScreen.d.ts +0 -4
  2285. package/esm/Options/Interfaces/IAnimatable.d.ts +0 -4
  2286. package/esm/Options/Interfaces/IAnimatableColor.d.ts +0 -6
  2287. package/esm/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
  2288. package/esm/Options/Interfaces/IAnimation.d.ts +0 -7
  2289. package/esm/Options/Interfaces/IColorAnimation.d.ts +0 -5
  2290. package/esm/Options/Interfaces/IHslAnimation.d.ts +0 -6
  2291. package/esm/Options/Interfaces/IManualParticle.d.ts +0 -7
  2292. package/esm/Options/Interfaces/IOptionLoader.d.ts +0 -4
  2293. package/esm/Options/Interfaces/IOptions.d.ts +0 -34
  2294. package/esm/Options/Interfaces/IOptionsColor.d.ts +0 -2
  2295. package/esm/Options/Interfaces/IOptionsGradient.d.ts +0 -13
  2296. package/esm/Options/Interfaces/IRandom.d.ts +0 -4
  2297. package/esm/Options/Interfaces/IResponsive.d.ts +0 -8
  2298. package/esm/Options/Interfaces/IValueWithRandom.d.ts +0 -6
  2299. package/esm/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -6
  2300. package/esm/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -11
  2301. package/esm/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -13
  2302. package/esm/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -8
  2303. package/esm/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -5
  2304. package/esm/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
  2305. package/esm/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -9
  2306. package/esm/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -3
  2307. package/esm/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -6
  2308. package/esm/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -10
  2309. package/esm/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -4
  2310. package/esm/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -8
  2311. package/esm/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -3
  2312. package/esm/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -7
  2313. package/esm/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -7
  2314. package/esm/Options/Interfaces/Interactivity/Modes/ILight.d.ts +0 -6
  2315. package/esm/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -9
  2316. package/esm/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -5
  2317. package/esm/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -5
  2318. package/esm/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -22
  2319. package/esm/Options/Interfaces/Interactivity/Modes/IPush.d.ts +0 -6
  2320. package/esm/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -4
  2321. package/esm/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -6
  2322. package/esm/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -9
  2323. package/esm/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -4
  2324. package/esm/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -5
  2325. package/esm/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -8
  2326. package/esm/Options/Interfaces/Motion/IMotion.d.ts +0 -5
  2327. package/esm/Options/Interfaces/Motion/IMotionReduce.d.ts +0 -4
  2328. package/esm/Options/Interfaces/Particles/Bounce/IBounce.d.ts +0 -5
  2329. package/esm/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -9
  2330. package/esm/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -4
  2331. package/esm/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -6
  2332. package/esm/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
  2333. package/esm/Options/Interfaces/Particles/IParticles.d.ts +0 -52
  2334. package/esm/Options/Interfaces/Particles/IShadow.d.ts +0 -8
  2335. package/esm/Options/Interfaces/Particles/IStroke.d.ts +0 -7
  2336. package/esm/Options/Interfaces/Particles/Life/ILife.d.ts +0 -7
  2337. package/esm/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -4
  2338. package/esm/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -4
  2339. package/esm/Options/Interfaces/Particles/Links/ILinks.d.ts +0 -17
  2340. package/esm/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -6
  2341. package/esm/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -7
  2342. package/esm/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -9
  2343. package/esm/Options/Interfaces/Particles/Move/IMove.d.ts +0 -35
  2344. package/esm/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -5
  2345. package/esm/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
  2346. package/esm/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
  2347. package/esm/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
  2348. package/esm/Options/Interfaces/Particles/Move/ITrail.d.ts +0 -6
  2349. package/esm/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -9
  2350. package/esm/Options/Interfaces/Particles/Number/IDensity.d.ts +0 -6
  2351. package/esm/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -7
  2352. package/esm/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -6
  2353. package/esm/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -8
  2354. package/esm/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -13
  2355. package/esm/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -9
  2356. package/esm/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
  2357. package/esm/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
  2358. package/esm/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -8
  2359. package/esm/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -6
  2360. package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
  2361. package/esm/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
  2362. package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
  2363. package/esm/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -16
  2364. package/esm/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
  2365. package/esm/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
  2366. package/esm/Options/Interfaces/Particles/Size/ISize.d.ts +0 -6
  2367. package/esm/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -8
  2368. package/esm/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -8
  2369. package/esm/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -6
  2370. package/esm/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -5
  2371. package/esm/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -8
  2372. package/esm/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
  2373. package/esm/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -6
  2374. package/esm/Options/Interfaces/Theme/ITheme.d.ts +0 -8
  2375. package/esm/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
  2376. package/esm/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
  2377. package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +0 -33
  2378. package/esm/Plugins/Absorbers/Absorbers.d.ts +0 -22
  2379. package/esm/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +0 -3
  2380. package/esm/Plugins/Absorbers/Enums/index.d.ts +0 -1
  2381. package/esm/Plugins/Absorbers/Enums/index.js +0 -1
  2382. package/esm/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -18
  2383. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
  2384. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
  2385. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -13
  2386. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -12
  2387. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -6
  2388. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -4
  2389. package/esm/Plugins/Absorbers/index.d.ts +0 -2
  2390. package/esm/Plugins/Emitters/EmitterContainer.d.ts +0 -10
  2391. package/esm/Plugins/Emitters/EmitterInstance.d.ts +0 -45
  2392. package/esm/Plugins/Emitters/Emitters.d.ts +0 -25
  2393. package/esm/Plugins/Emitters/EmittersEngine.d.ts +0 -7
  2394. package/esm/Plugins/Emitters/Enums/EmitterClickMode.d.ts +0 -3
  2395. package/esm/Plugins/Emitters/Enums/EmitterShapeType.d.ts +0 -4
  2396. package/esm/Plugins/Emitters/Enums/index.d.ts +0 -2
  2397. package/esm/Plugins/Emitters/Enums/index.js +0 -2
  2398. package/esm/Plugins/Emitters/IEmitterShape.d.ts +0 -4
  2399. package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -28
  2400. package/esm/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -11
  2401. package/esm/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -9
  2402. package/esm/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -11
  2403. package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -24
  2404. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -6
  2405. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -12
  2406. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -5
  2407. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -5
  2408. package/esm/Plugins/Emitters/ShapeManager.d.ts +0 -9
  2409. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
  2410. package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
  2411. package/esm/Plugins/Emitters/index.d.ts +0 -3
  2412. package/esm/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -8
  2413. package/esm/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -4
  2414. package/esm/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +0 -6
  2415. package/esm/Plugins/PolygonMask/Enums/index.d.ts +0 -3
  2416. package/esm/Plugins/PolygonMask/Enums/index.js +0 -3
  2417. package/esm/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +0 -6
  2418. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -24
  2419. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -15
  2420. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -11
  2421. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -9
  2422. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -11
  2423. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -10
  2424. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -18
  2425. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -8
  2426. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -6
  2427. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -4
  2428. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -6
  2429. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -5
  2430. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -4
  2431. package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -38
  2432. package/esm/Plugins/PolygonMask/Types.d.ts +0 -8
  2433. package/esm/Plugins/PolygonMask/Utils.d.ts +0 -11
  2434. package/esm/Plugins/PolygonMask/index.d.ts +0 -2
  2435. package/esm/Plugins/PolygonMask/pathseg.d.ts +0 -0
  2436. package/esm/Shapes/Circle/CircleDrawer.d.ts +0 -5
  2437. package/esm/Shapes/Circle/index.d.ts +0 -2
  2438. package/esm/Shapes/Image/ImageDrawer.d.ts +0 -18
  2439. package/esm/Shapes/Image/Utils.d.ts +0 -28
  2440. package/esm/Shapes/Image/index.d.ts +0 -2
  2441. package/esm/Shapes/Line/LineDrawer.d.ts +0 -5
  2442. package/esm/Shapes/Line/index.d.ts +0 -2
  2443. package/esm/Shapes/Polygon/PolygonDrawer.d.ts +0 -7
  2444. package/esm/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -15
  2445. package/esm/Shapes/Polygon/TriangleDrawer.d.ts +0 -8
  2446. package/esm/Shapes/Polygon/index.d.ts +0 -4
  2447. package/esm/Shapes/Square/SquareDrawer.d.ts +0 -5
  2448. package/esm/Shapes/Square/index.d.ts +0 -2
  2449. package/esm/Shapes/Star/StarDrawer.d.ts +0 -5
  2450. package/esm/Shapes/Star/index.d.ts +0 -2
  2451. package/esm/Shapes/Text/TextDrawer.d.ts +0 -7
  2452. package/esm/Shapes/Text/index.d.ts +0 -2
  2453. package/esm/Types/ParticlesGroups.d.ts +0 -4
  2454. package/esm/Types/PathOptions.d.ts +0 -3
  2455. package/esm/Types/RangeValue.d.ts +0 -2
  2456. package/esm/Types/RecursivePartial.d.ts +0 -3
  2457. package/esm/Types/ShapeData.d.ts +0 -5
  2458. package/esm/Types/ShapeDrawerFunctions.d.ts +0 -11
  2459. package/esm/Types/SingleOrMultiple.d.ts +0 -1
  2460. package/esm/Types/index.d.ts +0 -6
  2461. package/esm/Types/index.js +0 -6
  2462. package/esm/Updaters/Angle/AngleUpdater.d.ts +0 -8
  2463. package/esm/Updaters/Angle/index.d.ts +0 -2
  2464. package/esm/Updaters/Color/ColorUpdater.d.ts +0 -8
  2465. package/esm/Updaters/Color/index.d.ts +0 -2
  2466. package/esm/Updaters/Life/LifeUpdater.d.ts +0 -8
  2467. package/esm/Updaters/Life/index.d.ts +0 -2
  2468. package/esm/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
  2469. package/esm/Updaters/Opacity/index.d.ts +0 -2
  2470. package/esm/Updaters/OutModes/IBounceData.d.ts +0 -11
  2471. package/esm/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
  2472. package/esm/Updaters/OutModes/Utils.d.ts +0 -3
  2473. package/esm/Updaters/OutModes/index.d.ts +0 -2
  2474. package/esm/Updaters/Roll/RollUpdater.d.ts +0 -6
  2475. package/esm/Updaters/Roll/index.d.ts +0 -2
  2476. package/esm/Updaters/Size/SizeUpdater.d.ts +0 -6
  2477. package/esm/Updaters/Size/index.d.ts +0 -2
  2478. package/esm/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
  2479. package/esm/Updaters/StrokeColor/index.d.ts +0 -2
  2480. package/esm/Updaters/Tilt/TiltUpdater.d.ts +0 -8
  2481. package/esm/Updaters/Tilt/index.d.ts +0 -2
  2482. package/esm/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
  2483. package/esm/Updaters/Wobble/index.d.ts +0 -2
  2484. package/esm/Utils/CanvasUtils.d.ts +0 -19
  2485. package/esm/Utils/ColorUtils.d.ts +0 -26
  2486. package/esm/Utils/NumberUtils.d.ts +0 -23
  2487. package/esm/Utils/Utils.d.ts +0 -38
  2488. package/esm/Utils/index.d.ts +0 -4
  2489. package/esm/Utils/index.js +0 -4
  2490. package/esm/engine.d.ts +0 -26
  2491. package/esm/full.d.ts +0 -2
  2492. package/esm/index.d.ts +0 -20
  2493. package/esm/index.engine.d.ts +0 -13
  2494. package/esm/index.slim.d.ts +0 -14
  2495. package/esm/pjs.d.ts +0 -14
  2496. package/esm/slim.d.ts +0 -2
  2497. package/full.d.ts +0 -2
  2498. package/full.js +0 -22
  2499. package/index.d.ts +0 -20
  2500. package/index.engine.d.ts +0 -13
  2501. package/index.engine.js +0 -27
  2502. package/index.js +0 -33
  2503. package/index.slim.d.ts +0 -14
  2504. package/index.slim.js +0 -30
  2505. package/pjs.d.ts +0 -14
  2506. package/slim.d.ts +0 -2
  2507. package/slim.js +0 -52
  2508. package/umd/Core/Canvas.d.ts +0 -35
  2509. package/umd/Core/Container.d.ts +0 -68
  2510. package/umd/Core/Interfaces/Colors.d.ts +0 -33
  2511. package/umd/Core/Interfaces/Gradients.d.ts +0 -21
  2512. package/umd/Core/Interfaces/IAttract.d.ts +0 -7
  2513. package/umd/Core/Interfaces/IBounds.d.ts +0 -6
  2514. package/umd/Core/Interfaces/IBubble.d.ts +0 -4
  2515. package/umd/Core/Interfaces/IBubbleParticleData.d.ts +0 -9
  2516. package/umd/Core/Interfaces/ICircleBouncer.d.ts +0 -9
  2517. package/umd/Core/Interfaces/IContainerInteractivity.d.ts +0 -6
  2518. package/umd/Core/Interfaces/IContainerPlugin.d.ts +0 -32
  2519. package/umd/Core/Interfaces/ICoordinates.d.ts +0 -15
  2520. package/umd/Core/Interfaces/IDelta.d.ts +0 -4
  2521. package/umd/Core/Interfaces/IDimension.d.ts +0 -4
  2522. package/umd/Core/Interfaces/IDistance.d.ts +0 -4
  2523. package/umd/Core/Interfaces/IExternalInteractor.d.ts +0 -6
  2524. package/umd/Core/Interfaces/IInteractor.d.ts +0 -6
  2525. package/umd/Core/Interfaces/IMouseData.d.ts +0 -9
  2526. package/umd/Core/Interfaces/IMovePathGenerator.d.ts +0 -8
  2527. package/umd/Core/Interfaces/IParticle.d.ts +0 -55
  2528. package/umd/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
  2529. package/umd/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
  2530. package/umd/Core/Interfaces/IParticleGravity.d.ts +0 -5
  2531. package/umd/Core/Interfaces/IParticleHslAnimation.d.ts +0 -6
  2532. package/umd/Core/Interfaces/IParticleLife.d.ts +0 -7
  2533. package/umd/Core/Interfaces/IParticleLoops.d.ts +0 -4
  2534. package/umd/Core/Interfaces/IParticleRetinaProps.d.ts +0 -12
  2535. package/umd/Core/Interfaces/IParticleRoll.d.ts +0 -9
  2536. package/umd/Core/Interfaces/IParticleSpin.d.ts +0 -9
  2537. package/umd/Core/Interfaces/IParticleUpdater.d.ts +0 -9
  2538. package/umd/Core/Interfaces/IParticleValueAnimation.d.ts +0 -17
  2539. package/umd/Core/Interfaces/IParticleWobble.d.ts +0 -4
  2540. package/umd/Core/Interfaces/IParticlesFrequencies.d.ts +0 -4
  2541. package/umd/Core/Interfaces/IParticlesInteractor.d.ts +0 -7
  2542. package/umd/Core/Interfaces/IPlugin.d.ts +0 -11
  2543. package/umd/Core/Interfaces/IRangeValue.d.ts +0 -4
  2544. package/umd/Core/Interfaces/IRectSideResult.d.ts +0 -5
  2545. package/umd/Core/Interfaces/IRepulse.d.ts +0 -7
  2546. package/umd/Core/Interfaces/IShapeDrawer.d.ts +0 -10
  2547. package/umd/Core/Interfaces/IShapeValues.d.ts +0 -8
  2548. package/umd/Core/Interfaces/index.d.ts +0 -37
  2549. package/umd/Core/Interfaces/index.js +0 -59
  2550. package/umd/Core/Loader.d.ts +0 -32
  2551. package/umd/Core/Particle.d.ts +0 -73
  2552. package/umd/Core/Particles.d.ts +0 -46
  2553. package/umd/Core/Retina.d.ts +0 -26
  2554. package/umd/Core/Utils/Circle.d.ts +0 -8
  2555. package/umd/Core/Utils/CircleWarp.d.ts +0 -9
  2556. package/umd/Core/Utils/Constants.d.ts +0 -18
  2557. package/umd/Core/Utils/EventListeners.d.ts +0 -33
  2558. package/umd/Core/Utils/ExternalInteractorBase.d.ts +0 -12
  2559. package/umd/Core/Utils/FrameManager.d.ts +0 -6
  2560. package/umd/Core/Utils/InteractionManager.d.ts +0 -14
  2561. package/umd/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
  2562. package/umd/Core/Utils/ParticlesMover.d.ts +0 -13
  2563. package/umd/Core/Utils/ParticlesMover.js +0 -196
  2564. package/umd/Core/Utils/Plugins.d.ts +0 -36
  2565. package/umd/Core/Utils/Point.d.ts +0 -7
  2566. package/umd/Core/Utils/QuadTree.d.ts +0 -23
  2567. package/umd/Core/Utils/Range.d.ts +0 -7
  2568. package/umd/Core/Utils/Rectangle.d.ts +0 -8
  2569. package/umd/Core/Utils/Vector.d.ts +0 -29
  2570. package/umd/Core/Utils/Vector3d.d.ts +0 -18
  2571. package/umd/Core/Utils/index.d.ts +0 -16
  2572. package/umd/Core/Utils/index.js +0 -38
  2573. package/umd/Core/index.d.ts +0 -8
  2574. package/umd/Core/index.js +0 -30
  2575. package/umd/Enums/AnimationStatus.d.ts +0 -4
  2576. package/umd/Enums/Directions/MoveDirection.d.ts +0 -12
  2577. package/umd/Enums/Directions/OutModeDirection.d.ts +0 -6
  2578. package/umd/Enums/Directions/RotateDirection.d.ts +0 -6
  2579. package/umd/Enums/Directions/TiltDirection.d.ts +0 -6
  2580. package/umd/Enums/Directions/index.d.ts +0 -4
  2581. package/umd/Enums/Directions/index.js +0 -26
  2582. package/umd/Enums/InteractivityDetect.d.ts +0 -5
  2583. package/umd/Enums/Modes/ClickMode.d.ts +0 -9
  2584. package/umd/Enums/Modes/CollisionMode.d.ts +0 -5
  2585. package/umd/Enums/Modes/DestroyMode.d.ts +0 -4
  2586. package/umd/Enums/Modes/DivMode.d.ts +0 -5
  2587. package/umd/Enums/Modes/HoverMode.d.ts +0 -11
  2588. package/umd/Enums/Modes/OutMode.d.ts +0 -10
  2589. package/umd/Enums/Modes/ResponsiveMode.d.ts +0 -4
  2590. package/umd/Enums/Modes/RollMode.d.ts +0 -5
  2591. package/umd/Enums/Modes/SizeMode.d.ts +0 -4
  2592. package/umd/Enums/Modes/ThemeMode.d.ts +0 -5
  2593. package/umd/Enums/Modes/index.d.ts +0 -10
  2594. package/umd/Enums/Modes/index.js +0 -32
  2595. package/umd/Enums/Types/AlterType.d.ts +0 -4
  2596. package/umd/Enums/Types/DestroyType.d.ts +0 -5
  2597. package/umd/Enums/Types/DivType.d.ts +0 -4
  2598. package/umd/Enums/Types/EasingType.d.ts +0 -10
  2599. package/umd/Enums/Types/GradientType.d.ts +0 -5
  2600. package/umd/Enums/Types/InteractorType.d.ts +0 -4
  2601. package/umd/Enums/Types/OrbitType.d.ts +0 -4
  2602. package/umd/Enums/Types/OrbitType.js +0 -12
  2603. package/umd/Enums/Types/ShapeType.d.ts +0 -13
  2604. package/umd/Enums/Types/StartValueType.d.ts +0 -5
  2605. package/umd/Enums/Types/index.d.ts +0 -9
  2606. package/umd/Enums/Types/index.js +0 -31
  2607. package/umd/Enums/index.d.ts +0 -5
  2608. package/umd/Enums/index.js +0 -27
  2609. package/umd/Interactions/External/Attract/Attractor.d.ts +0 -11
  2610. package/umd/Interactions/External/Attract/index.d.ts +0 -2
  2611. package/umd/Interactions/External/Bounce/Bouncer.d.ts +0 -11
  2612. package/umd/Interactions/External/Bounce/index.d.ts +0 -2
  2613. package/umd/Interactions/External/Bubble/Bubbler.d.ts +0 -16
  2614. package/umd/Interactions/External/Bubble/IBubblerProcessParam.d.ts +0 -10
  2615. package/umd/Interactions/External/Bubble/ProcessBubbleType.d.ts +0 -5
  2616. package/umd/Interactions/External/Bubble/index.d.ts +0 -2
  2617. package/umd/Interactions/External/Connect/Connector.d.ts +0 -8
  2618. package/umd/Interactions/External/Connect/index.d.ts +0 -2
  2619. package/umd/Interactions/External/Grab/Grabber.d.ts +0 -8
  2620. package/umd/Interactions/External/Grab/index.d.ts +0 -2
  2621. package/umd/Interactions/External/Repulse/Repulser.d.ts +0 -12
  2622. package/umd/Interactions/External/Repulse/index.d.ts +0 -2
  2623. package/umd/Interactions/External/Trail/TrailMaker.d.ts +0 -10
  2624. package/umd/Interactions/External/Trail/index.d.ts +0 -2
  2625. package/umd/Interactions/Particles/Attract/Attractor.d.ts +0 -8
  2626. package/umd/Interactions/Particles/Attract/index.d.ts +0 -2
  2627. package/umd/Interactions/Particles/Collisions/Collider.d.ts +0 -10
  2628. package/umd/Interactions/Particles/Collisions/index.d.ts +0 -2
  2629. package/umd/Interactions/Particles/Links/ILink.d.ts +0 -9
  2630. package/umd/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
  2631. package/umd/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
  2632. package/umd/Interactions/Particles/Links/Linker.d.ts +0 -10
  2633. package/umd/Interactions/Particles/Links/index.d.ts +0 -2
  2634. package/umd/Interactions/Particles/Links/interaction.d.ts +0 -2
  2635. package/umd/Interactions/Particles/Links/plugin.d.ts +0 -2
  2636. package/umd/Options/Classes/AnimatableColor.d.ts +0 -11
  2637. package/umd/Options/Classes/AnimatableGradient.d.ts +0 -53
  2638. package/umd/Options/Classes/AnimationOptions.d.ts +0 -11
  2639. package/umd/Options/Classes/Background/Background.d.ts +0 -14
  2640. package/umd/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -11
  2641. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -10
  2642. package/umd/Options/Classes/ColorAnimation.d.ts +0 -12
  2643. package/umd/Options/Classes/FullScreen/FullScreen.d.ts +0 -9
  2644. package/umd/Options/Classes/HslAnimation.d.ts +0 -11
  2645. package/umd/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
  2646. package/umd/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -18
  2647. package/umd/Options/Classes/Interactivity/Events/Events.d.ts +0 -20
  2648. package/umd/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
  2649. package/umd/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
  2650. package/umd/Options/Classes/Interactivity/Interactivity.d.ts +0 -15
  2651. package/umd/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -14
  2652. package/umd/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
  2653. package/umd/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -9
  2654. package/umd/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -13
  2655. package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -11
  2656. package/umd/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -15
  2657. package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -8
  2658. package/umd/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -14
  2659. package/umd/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -12
  2660. package/umd/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
  2661. package/umd/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
  2662. package/umd/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
  2663. package/umd/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
  2664. package/umd/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -29
  2665. package/umd/Options/Classes/Interactivity/Modes/Push.d.ts +0 -12
  2666. package/umd/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -10
  2667. package/umd/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -9
  2668. package/umd/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -14
  2669. package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -11
  2670. package/umd/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -11
  2671. package/umd/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -12
  2672. package/umd/Options/Classes/ManualParticle.d.ts +0 -10
  2673. package/umd/Options/Classes/Motion/Motion.d.ts +0 -10
  2674. package/umd/Options/Classes/Motion/MotionReduce.d.ts +0 -9
  2675. package/umd/Options/Classes/Options.d.ts +0 -48
  2676. package/umd/Options/Classes/OptionsColor.d.ts +0 -10
  2677. package/umd/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
  2678. package/umd/Options/Classes/Particles/Bounce/BounceFactor.d.ts +0 -4
  2679. package/umd/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -14
  2680. package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
  2681. package/umd/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
  2682. package/umd/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
  2683. package/umd/Options/Classes/Particles/Destroy/SplitFactor.d.ts +0 -4
  2684. package/umd/Options/Classes/Particles/Destroy/SplitRate.d.ts +0 -4
  2685. package/umd/Options/Classes/Particles/Life/Life.d.ts +0 -12
  2686. package/umd/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
  2687. package/umd/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
  2688. package/umd/Options/Classes/Particles/Links/Links.d.ts +0 -22
  2689. package/umd/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -11
  2690. package/umd/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -12
  2691. package/umd/Options/Classes/Particles/Move/Attract.d.ts +0 -15
  2692. package/umd/Options/Classes/Particles/Move/Move.d.ts +0 -44
  2693. package/umd/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -9
  2694. package/umd/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
  2695. package/umd/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
  2696. package/umd/Options/Classes/Particles/Move/Path/Path.d.ts +0 -13
  2697. package/umd/Options/Classes/Particles/Move/Path/PathDelay.d.ts +0 -4
  2698. package/umd/Options/Classes/Particles/Move/Spin.d.ts +0 -11
  2699. package/umd/Options/Classes/Particles/Move/Trail.d.ts +0 -11
  2700. package/umd/Options/Classes/Particles/Number/Density.d.ts +0 -12
  2701. package/umd/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -13
  2702. package/umd/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -12
  2703. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -14
  2704. package/umd/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -18
  2705. package/umd/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -7
  2706. package/umd/Options/Classes/Particles/ParticlesOptions.d.ts +0 -58
  2707. package/umd/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -13
  2708. package/umd/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
  2709. package/umd/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
  2710. package/umd/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -13
  2711. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -10
  2712. package/umd/Options/Classes/Particles/Shadow.d.ts +0 -13
  2713. package/umd/Options/Classes/Particles/Shape/Shape.d.ts +0 -27
  2714. package/umd/Options/Classes/Particles/Size/Size.d.ts +0 -12
  2715. package/umd/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -14
  2716. package/umd/Options/Classes/Particles/Stroke.d.ts +0 -11
  2717. package/umd/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -13
  2718. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -10
  2719. package/umd/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -10
  2720. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -12
  2721. package/umd/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
  2722. package/umd/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -11
  2723. package/umd/Options/Classes/Random.d.ts +0 -9
  2724. package/umd/Options/Classes/Responsive.d.ts +0 -12
  2725. package/umd/Options/Classes/Theme/Theme.d.ts +0 -12
  2726. package/umd/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
  2727. package/umd/Options/Classes/ValueWithRandom.d.ts +0 -10
  2728. package/umd/Options/Interfaces/Background/IBackground.d.ts +0 -9
  2729. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -7
  2730. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -5
  2731. package/umd/Options/Interfaces/FullScreen/IFullScreen.d.ts +0 -4
  2732. package/umd/Options/Interfaces/IAnimatable.d.ts +0 -4
  2733. package/umd/Options/Interfaces/IAnimatableColor.d.ts +0 -6
  2734. package/umd/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
  2735. package/umd/Options/Interfaces/IAnimation.d.ts +0 -7
  2736. package/umd/Options/Interfaces/IColorAnimation.d.ts +0 -5
  2737. package/umd/Options/Interfaces/IHslAnimation.d.ts +0 -6
  2738. package/umd/Options/Interfaces/IManualParticle.d.ts +0 -7
  2739. package/umd/Options/Interfaces/IOptionLoader.d.ts +0 -4
  2740. package/umd/Options/Interfaces/IOptions.d.ts +0 -34
  2741. package/umd/Options/Interfaces/IOptionsColor.d.ts +0 -2
  2742. package/umd/Options/Interfaces/IOptionsGradient.d.ts +0 -13
  2743. package/umd/Options/Interfaces/IRandom.d.ts +0 -4
  2744. package/umd/Options/Interfaces/IResponsive.d.ts +0 -8
  2745. package/umd/Options/Interfaces/IValueWithRandom.d.ts +0 -6
  2746. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -6
  2747. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -11
  2748. package/umd/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -13
  2749. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -8
  2750. package/umd/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -5
  2751. package/umd/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
  2752. package/umd/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -9
  2753. package/umd/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -3
  2754. package/umd/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -6
  2755. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -10
  2756. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -4
  2757. package/umd/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -8
  2758. package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -3
  2759. package/umd/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -7
  2760. package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -7
  2761. package/umd/Options/Interfaces/Interactivity/Modes/ILight.d.ts +0 -6
  2762. package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -9
  2763. package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -5
  2764. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -5
  2765. package/umd/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -22
  2766. package/umd/Options/Interfaces/Interactivity/Modes/IPush.d.ts +0 -6
  2767. package/umd/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -4
  2768. package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -6
  2769. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -9
  2770. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -4
  2771. package/umd/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -5
  2772. package/umd/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -8
  2773. package/umd/Options/Interfaces/Motion/IMotion.d.ts +0 -5
  2774. package/umd/Options/Interfaces/Motion/IMotionReduce.d.ts +0 -4
  2775. package/umd/Options/Interfaces/Particles/Bounce/IBounce.d.ts +0 -5
  2776. package/umd/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -9
  2777. package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -4
  2778. package/umd/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -6
  2779. package/umd/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
  2780. package/umd/Options/Interfaces/Particles/IParticles.d.ts +0 -52
  2781. package/umd/Options/Interfaces/Particles/IShadow.d.ts +0 -8
  2782. package/umd/Options/Interfaces/Particles/IStroke.d.ts +0 -7
  2783. package/umd/Options/Interfaces/Particles/Life/ILife.d.ts +0 -7
  2784. package/umd/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -4
  2785. package/umd/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -4
  2786. package/umd/Options/Interfaces/Particles/Links/ILinks.d.ts +0 -17
  2787. package/umd/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -6
  2788. package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -7
  2789. package/umd/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -9
  2790. package/umd/Options/Interfaces/Particles/Move/IMove.d.ts +0 -35
  2791. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -5
  2792. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
  2793. package/umd/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
  2794. package/umd/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
  2795. package/umd/Options/Interfaces/Particles/Move/ITrail.d.ts +0 -6
  2796. package/umd/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -9
  2797. package/umd/Options/Interfaces/Particles/Number/IDensity.d.ts +0 -6
  2798. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -7
  2799. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -6
  2800. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -8
  2801. package/umd/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -13
  2802. package/umd/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -9
  2803. package/umd/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
  2804. package/umd/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
  2805. package/umd/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -8
  2806. package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -6
  2807. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
  2808. package/umd/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
  2809. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
  2810. package/umd/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -16
  2811. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
  2812. package/umd/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
  2813. package/umd/Options/Interfaces/Particles/Size/ISize.d.ts +0 -6
  2814. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -8
  2815. package/umd/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -8
  2816. package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -6
  2817. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -5
  2818. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -8
  2819. package/umd/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
  2820. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -6
  2821. package/umd/Options/Interfaces/Theme/ITheme.d.ts +0 -8
  2822. package/umd/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
  2823. package/umd/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
  2824. package/umd/Plugins/Absorbers/AbsorberInstance.d.ts +0 -33
  2825. package/umd/Plugins/Absorbers/Absorbers.d.ts +0 -22
  2826. package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +0 -3
  2827. package/umd/Plugins/Absorbers/Enums/index.d.ts +0 -1
  2828. package/umd/Plugins/Absorbers/Enums/index.js +0 -23
  2829. package/umd/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -18
  2830. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
  2831. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
  2832. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -13
  2833. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -12
  2834. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -6
  2835. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -4
  2836. package/umd/Plugins/Absorbers/index.d.ts +0 -2
  2837. package/umd/Plugins/Emitters/EmitterContainer.d.ts +0 -10
  2838. package/umd/Plugins/Emitters/EmitterInstance.d.ts +0 -45
  2839. package/umd/Plugins/Emitters/Emitters.d.ts +0 -25
  2840. package/umd/Plugins/Emitters/EmittersEngine.d.ts +0 -7
  2841. package/umd/Plugins/Emitters/Enums/EmitterClickMode.d.ts +0 -3
  2842. package/umd/Plugins/Emitters/Enums/EmitterShapeType.d.ts +0 -4
  2843. package/umd/Plugins/Emitters/Enums/index.d.ts +0 -2
  2844. package/umd/Plugins/Emitters/Enums/index.js +0 -24
  2845. package/umd/Plugins/Emitters/IEmitterShape.d.ts +0 -4
  2846. package/umd/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -28
  2847. package/umd/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -11
  2848. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -9
  2849. package/umd/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -11
  2850. package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -24
  2851. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -6
  2852. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -12
  2853. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -5
  2854. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -5
  2855. package/umd/Plugins/Emitters/ShapeManager.d.ts +0 -9
  2856. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
  2857. package/umd/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
  2858. package/umd/Plugins/Emitters/index.d.ts +0 -3
  2859. package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -8
  2860. package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -4
  2861. package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +0 -6
  2862. package/umd/Plugins/PolygonMask/Enums/index.d.ts +0 -3
  2863. package/umd/Plugins/PolygonMask/Enums/index.js +0 -25
  2864. package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +0 -6
  2865. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -24
  2866. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -15
  2867. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -11
  2868. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -9
  2869. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -11
  2870. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -10
  2871. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -18
  2872. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -8
  2873. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -6
  2874. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -4
  2875. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -6
  2876. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -5
  2877. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -4
  2878. package/umd/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -38
  2879. package/umd/Plugins/PolygonMask/Types.d.ts +0 -8
  2880. package/umd/Plugins/PolygonMask/Utils.d.ts +0 -11
  2881. package/umd/Plugins/PolygonMask/index.d.ts +0 -2
  2882. package/umd/Plugins/PolygonMask/pathseg.d.ts +0 -0
  2883. package/umd/Shapes/Circle/CircleDrawer.d.ts +0 -5
  2884. package/umd/Shapes/Circle/index.d.ts +0 -2
  2885. package/umd/Shapes/Image/ImageDrawer.d.ts +0 -18
  2886. package/umd/Shapes/Image/Utils.d.ts +0 -28
  2887. package/umd/Shapes/Image/index.d.ts +0 -2
  2888. package/umd/Shapes/Line/LineDrawer.d.ts +0 -5
  2889. package/umd/Shapes/Line/index.d.ts +0 -2
  2890. package/umd/Shapes/Polygon/PolygonDrawer.d.ts +0 -7
  2891. package/umd/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -15
  2892. package/umd/Shapes/Polygon/TriangleDrawer.d.ts +0 -8
  2893. package/umd/Shapes/Polygon/index.d.ts +0 -4
  2894. package/umd/Shapes/Square/SquareDrawer.d.ts +0 -5
  2895. package/umd/Shapes/Square/index.d.ts +0 -2
  2896. package/umd/Shapes/Star/StarDrawer.d.ts +0 -5
  2897. package/umd/Shapes/Star/index.d.ts +0 -2
  2898. package/umd/Shapes/Text/TextDrawer.d.ts +0 -7
  2899. package/umd/Shapes/Text/index.d.ts +0 -2
  2900. package/umd/Types/ParticlesGroups.d.ts +0 -4
  2901. package/umd/Types/PathOptions.d.ts +0 -3
  2902. package/umd/Types/RangeValue.d.ts +0 -2
  2903. package/umd/Types/RecursivePartial.d.ts +0 -3
  2904. package/umd/Types/ShapeData.d.ts +0 -5
  2905. package/umd/Types/ShapeDrawerFunctions.d.ts +0 -11
  2906. package/umd/Types/SingleOrMultiple.d.ts +0 -1
  2907. package/umd/Types/index.d.ts +0 -6
  2908. package/umd/Types/index.js +0 -28
  2909. package/umd/Updaters/Angle/AngleUpdater.d.ts +0 -8
  2910. package/umd/Updaters/Angle/index.d.ts +0 -2
  2911. package/umd/Updaters/Color/ColorUpdater.d.ts +0 -8
  2912. package/umd/Updaters/Color/index.d.ts +0 -2
  2913. package/umd/Updaters/Life/LifeUpdater.d.ts +0 -8
  2914. package/umd/Updaters/Life/index.d.ts +0 -2
  2915. package/umd/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
  2916. package/umd/Updaters/Opacity/index.d.ts +0 -2
  2917. package/umd/Updaters/OutModes/IBounceData.d.ts +0 -11
  2918. package/umd/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
  2919. package/umd/Updaters/OutModes/Utils.d.ts +0 -3
  2920. package/umd/Updaters/OutModes/index.d.ts +0 -2
  2921. package/umd/Updaters/Roll/RollUpdater.d.ts +0 -6
  2922. package/umd/Updaters/Roll/index.d.ts +0 -2
  2923. package/umd/Updaters/Size/SizeUpdater.d.ts +0 -6
  2924. package/umd/Updaters/Size/index.d.ts +0 -2
  2925. package/umd/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
  2926. package/umd/Updaters/StrokeColor/index.d.ts +0 -2
  2927. package/umd/Updaters/Tilt/TiltUpdater.d.ts +0 -8
  2928. package/umd/Updaters/Tilt/index.d.ts +0 -2
  2929. package/umd/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
  2930. package/umd/Updaters/Wobble/index.d.ts +0 -2
  2931. package/umd/Utils/CanvasUtils.d.ts +0 -19
  2932. package/umd/Utils/ColorUtils.d.ts +0 -26
  2933. package/umd/Utils/NumberUtils.d.ts +0 -23
  2934. package/umd/Utils/Utils.d.ts +0 -38
  2935. package/umd/Utils/index.d.ts +0 -4
  2936. package/umd/Utils/index.js +0 -26
  2937. package/umd/engine.d.ts +0 -26
  2938. package/umd/full.d.ts +0 -2
  2939. package/umd/index.d.ts +0 -20
  2940. package/umd/index.engine.d.ts +0 -13
  2941. package/umd/index.slim.d.ts +0 -14
  2942. package/umd/pjs.d.ts +0 -14
  2943. package/umd/slim.d.ts +0 -2
@@ -43,60 +43,58 @@
43
43
  return loadExternalGrabInteraction;
44
44
  }
45
45
  });
46
- function NumberUtils_clamp(num, min, max) {
46
+ function clamp(num, min, max) {
47
47
  return Math.min(Math.max(num, min), max);
48
48
  }
49
49
  function mix(comp1, comp2, weight1, weight2) {
50
50
  return Math.floor((comp1 * weight1 + comp2 * weight2) / (weight1 + weight2));
51
51
  }
52
- function NumberUtils_randomInRange(r) {
53
- const max = NumberUtils_getRangeMax(r);
54
- let min = NumberUtils_getRangeMin(r);
52
+ function randomInRange(r) {
53
+ const max = getRangeMax(r);
54
+ let min = getRangeMin(r);
55
55
  if (max === min) {
56
56
  min = 0;
57
57
  }
58
58
  return Math.random() * (max - min) + min;
59
59
  }
60
60
  function NumberUtils_getRangeValue(value) {
61
- return typeof value === "number" ? value : NumberUtils_randomInRange(value);
61
+ return typeof value === "number" ? value : randomInRange(value);
62
62
  }
63
- function NumberUtils_getRangeMin(value) {
63
+ function getRangeMin(value) {
64
64
  return typeof value === "number" ? value : value.min;
65
65
  }
66
- function NumberUtils_getRangeMax(value) {
66
+ function getRangeMax(value) {
67
67
  return typeof value === "number" ? value : value.max;
68
68
  }
69
- function NumberUtils_setRangeValue(source, value) {
69
+ function setRangeValue(source, value) {
70
70
  if (source === value || value === undefined && typeof source === "number") {
71
71
  return source;
72
72
  }
73
- const min = NumberUtils_getRangeMin(source), max = NumberUtils_getRangeMax(source);
73
+ const min = getRangeMin(source), max = getRangeMax(source);
74
74
  return value !== undefined ? {
75
75
  min: Math.min(min, value),
76
76
  max: Math.max(max, value)
77
- } : NumberUtils_setRangeValue(min, max);
77
+ } : setRangeValue(min, max);
78
78
  }
79
79
  function NumberUtils_getValue(options) {
80
- const random = options.random;
81
- const {enable: enable, minimumValue: minimumValue} = typeof random === "boolean" ? {
80
+ const random = options.random, {enable: enable, minimumValue: minimumValue} = typeof random === "boolean" ? {
82
81
  enable: random,
83
82
  minimumValue: 0
84
83
  } : random;
85
- return enable ? NumberUtils_getRangeValue(NumberUtils_setRangeValue(options.value, minimumValue)) : NumberUtils_getRangeValue(options.value);
84
+ return enable ? NumberUtils_getRangeValue(setRangeValue(options.value, minimumValue)) : NumberUtils_getRangeValue(options.value);
86
85
  }
87
86
  function NumberUtils_getDistances(pointA, pointB) {
88
- const dx = pointA.x - pointB.x;
89
- const dy = pointA.y - pointB.y;
87
+ const dx = pointA.x - pointB.x, dy = pointA.y - pointB.y;
90
88
  return {
91
89
  dx: dx,
92
90
  dy: dy,
93
91
  distance: Math.sqrt(dx * dx + dy * dy)
94
92
  };
95
93
  }
96
- function NumberUtils_getDistance(pointA, pointB) {
94
+ function getDistance(pointA, pointB) {
97
95
  return NumberUtils_getDistances(pointA, pointB).distance;
98
96
  }
99
- function NumberUtils_getParticleDirectionAngle(direction) {
97
+ function getParticleDirectionAngle(direction) {
100
98
  if (typeof direction === "number") {
101
99
  return direction * Math.PI / 180;
102
100
  } else {
@@ -131,7 +129,7 @@
131
129
  }
132
130
  }
133
131
  }
134
- function NumberUtils_getParticleBaseVelocity(direction) {
132
+ function getParticleBaseVelocity(direction) {
135
133
  const baseVelocity = Vector.origin;
136
134
  baseVelocity.length = 1;
137
135
  baseVelocity.angle = direction;
@@ -162,8 +160,7 @@
162
160
 
163
161
  case "ease-out-back":
164
162
  {
165
- const c1 = 1.70158;
166
- const c3 = c1 + 1;
163
+ const c1 = 1.70158, c3 = c1 + 1;
167
164
  return 1 + c3 * Math.pow(value - 1, 3) + c1 * Math.pow(value - 1, 2);
168
165
  }
169
166
 
@@ -174,40 +171,100 @@
174
171
  return value;
175
172
  }
176
173
  }
174
+ function calcPositionFromSize(data) {
175
+ var _a, _b;
176
+ return ((_a = data.position) === null || _a === void 0 ? void 0 : _a.x) !== undefined && ((_b = data.position) === null || _b === void 0 ? void 0 : _b.y) !== undefined ? {
177
+ x: data.position.x * data.size.width / 100,
178
+ y: data.position.y * data.size.height / 100
179
+ } : undefined;
180
+ }
181
+ function calcPositionOrRandomFromSize(data) {
182
+ var _a, _b, _c, _d;
183
+ return {
184
+ x: ((_b = (_a = data.position) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : Math.random() * 100) * data.size.width / 100,
185
+ y: ((_d = (_c = data.position) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : Math.random() * 100) * data.size.height / 100
186
+ };
187
+ }
188
+ function calcPositionOrRandomFromSizeRanged(data) {
189
+ var _a, _b;
190
+ const position = {
191
+ x: ((_a = data.position) === null || _a === void 0 ? void 0 : _a.x) !== undefined ? NumberUtils_getRangeValue(data.position.x) : undefined,
192
+ y: ((_b = data.position) === null || _b === void 0 ? void 0 : _b.y) !== undefined ? NumberUtils_getRangeValue(data.position.y) : undefined
193
+ };
194
+ return calcPositionOrRandomFromSize({
195
+ size: data.size,
196
+ position: position
197
+ });
198
+ }
199
+ function calcExactPositionOrRandomFromSize(data) {
200
+ var _a, _b, _c, _d;
201
+ return {
202
+ x: (_b = (_a = data.position) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : Math.random() * data.size.width,
203
+ y: (_d = (_c = data.position) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : Math.random() * data.size.height
204
+ };
205
+ }
206
+ function calcExactPositionOrRandomFromSizeRanged(data) {
207
+ var _a, _b;
208
+ const position = {
209
+ x: ((_a = data.position) === null || _a === void 0 ? void 0 : _a.x) !== undefined ? NumberUtils_getRangeValue(data.position.x) : undefined,
210
+ y: ((_b = data.position) === null || _b === void 0 ? void 0 : _b.y) !== undefined ? NumberUtils_getRangeValue(data.position.y) : undefined
211
+ };
212
+ return calcExactPositionOrRandomFromSize({
213
+ size: data.size,
214
+ position: position
215
+ });
216
+ }
217
+ class Constants {}
218
+ Constants.generatedAttribute = "generated";
219
+ Constants.randomColorValue = "random";
220
+ Constants.midColorValue = "mid";
221
+ Constants.touchEndEvent = "touchend";
222
+ Constants.mouseDownEvent = "mousedown";
223
+ Constants.mouseUpEvent = "mouseup";
224
+ Constants.mouseMoveEvent = "mousemove";
225
+ Constants.touchStartEvent = "touchstart";
226
+ Constants.touchMoveEvent = "touchmove";
227
+ Constants.mouseLeaveEvent = "mouseleave";
228
+ Constants.mouseOutEvent = "mouseout";
229
+ Constants.touchCancelEvent = "touchcancel";
230
+ Constants.resizeEvent = "resize";
231
+ Constants.visibilityChangeEvent = "visibilitychange";
232
+ Constants.noPolygonDataLoaded = "No polygon data loaded.";
233
+ Constants.noPolygonFound = "No polygon found, you need to specify SVG url in config.";
177
234
  function rectSideBounce(pSide, pOtherSide, rectSide, rectOtherSide, velocity, factor) {
178
235
  const res = {
179
236
  bounced: false
180
237
  };
181
- if (pOtherSide.min >= rectOtherSide.min && pOtherSide.min <= rectOtherSide.max && pOtherSide.max >= rectOtherSide.min && pOtherSide.max <= rectOtherSide.max) {
182
- if (pSide.max >= rectSide.min && pSide.max <= (rectSide.max + rectSide.min) / 2 && velocity > 0 || pSide.min <= rectSide.max && pSide.min > (rectSide.max + rectSide.min) / 2 && velocity < 0) {
183
- res.velocity = velocity * -factor;
184
- res.bounced = true;
185
- }
238
+ if (pOtherSide.min < rectOtherSide.min || pOtherSide.min > rectOtherSide.max || pOtherSide.max < rectOtherSide.min || pOtherSide.max > rectOtherSide.max) {
239
+ return res;
240
+ }
241
+ if (pSide.max >= rectSide.min && pSide.max <= (rectSide.max + rectSide.min) / 2 && velocity > 0 || pSide.min <= rectSide.max && pSide.min > (rectSide.max + rectSide.min) / 2 && velocity < 0) {
242
+ res.velocity = velocity * -factor;
243
+ res.bounced = true;
186
244
  }
187
245
  return res;
188
246
  }
189
247
  function checkSelector(element, selectors) {
190
- if (selectors instanceof Array) {
191
- for (const selector of selectors) {
192
- if (element.matches(selector)) {
193
- return true;
194
- }
195
- }
196
- return false;
197
- } else {
248
+ if (!(selectors instanceof Array)) {
198
249
  return element.matches(selectors);
199
250
  }
251
+ for (const selector of selectors) {
252
+ if (element.matches(selector)) {
253
+ return true;
254
+ }
255
+ }
256
+ return false;
200
257
  }
201
- function Utils_isSsr() {
258
+ function isSsr() {
202
259
  return typeof window === "undefined" || !window || typeof window.document === "undefined" || !window.document;
203
260
  }
204
- function Utils_animate() {
205
- return Utils_isSsr() ? callback => setTimeout(callback) : callback => (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || window.setTimeout)(callback);
261
+ function animate() {
262
+ return isSsr() ? callback => setTimeout(callback) : callback => (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || window.setTimeout)(callback);
206
263
  }
207
- function Utils_cancelAnimation() {
208
- return Utils_isSsr() ? handle => clearTimeout(handle) : handle => (window.cancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.clearTimeout)(handle);
264
+ function cancelAnimation() {
265
+ return isSsr() ? handle => clearTimeout(handle) : handle => (window.cancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.clearTimeout)(handle);
209
266
  }
210
- function Utils_isInArray(value, array) {
267
+ function isInArray(value, array) {
211
268
  return value === array || array instanceof Array && array.indexOf(value) > -1;
212
269
  }
213
270
  async function loadFont(character) {
@@ -219,7 +276,7 @@
219
276
  function arrayRandomIndex(array) {
220
277
  return Math.floor(Math.random() * array.length);
221
278
  }
222
- function Utils_itemFromArray(array, index, useIndex = true) {
279
+ function itemFromArray(array, index, useIndex = true) {
223
280
  const fixedIndex = index !== undefined && useIndex ? index % array.length : arrayRandomIndex(array);
224
281
  return array[fixedIndex];
225
282
  }
@@ -250,7 +307,7 @@
250
307
  top: point.y - radius
251
308
  };
252
309
  }
253
- function Utils_deepExtend(destination, ...sources) {
310
+ function deepExtend(destination, ...sources) {
254
311
  for (const source of sources) {
255
312
  if (source === undefined || source === null) {
256
313
  continue;
@@ -269,31 +326,26 @@
269
326
  if (key === "__proto__") {
270
327
  continue;
271
328
  }
272
- const sourceDict = source;
273
- const value = sourceDict[key];
274
- const isObject = typeof value === "object";
275
- const destDict = destination;
276
- destDict[key] = isObject && Array.isArray(value) ? value.map((v => Utils_deepExtend(destDict[key], v))) : Utils_deepExtend(destDict[key], value);
329
+ const sourceDict = source, value = sourceDict[key], isObject = typeof value === "object", destDict = destination;
330
+ destDict[key] = isObject && Array.isArray(value) ? value.map((v => deepExtend(destDict[key], v))) : deepExtend(destDict[key], value);
277
331
  }
278
332
  }
279
333
  return destination;
280
334
  }
281
335
  function isDivModeEnabled(mode, divs) {
282
- return divs instanceof Array ? !!divs.find((t => t.enable && Utils_isInArray(mode, t.mode))) : Utils_isInArray(mode, divs.mode);
336
+ return divs instanceof Array ? !!divs.find((t => t.enable && isInArray(mode, t.mode))) : isInArray(mode, divs.mode);
283
337
  }
284
338
  function divModeExecute(mode, divs, callback) {
285
339
  if (divs instanceof Array) {
286
340
  for (const div of divs) {
287
- const divMode = div.mode;
288
- const divEnabled = div.enable;
289
- if (divEnabled && Utils_isInArray(mode, divMode)) {
341
+ const divMode = div.mode, divEnabled = div.enable;
342
+ if (divEnabled && isInArray(mode, divMode)) {
290
343
  singleDivModeExecute(div, callback);
291
344
  }
292
345
  }
293
346
  } else {
294
- const divMode = divs.mode;
295
- const divEnabled = divs.enable;
296
- if (divEnabled && Utils_isInArray(mode, divMode)) {
347
+ const divMode = divs.mode, divEnabled = divs.enable;
348
+ if (divEnabled && isInArray(mode, divMode)) {
297
349
  singleDivModeExecute(divs, callback);
298
350
  }
299
351
  }
@@ -328,29 +380,18 @@
328
380
  };
329
381
  }
330
382
  function circleBounce(p1, p2) {
331
- const {x: xVelocityDiff, y: yVelocityDiff} = p1.velocity.sub(p2.velocity);
332
- const [pos1, pos2] = [ p1.position, p2.position ];
333
- const {dx: xDist, dy: yDist} = getDistances(pos2, pos1);
334
- if (xVelocityDiff * xDist + yVelocityDiff * yDist >= 0) {
335
- const angle = -Math.atan2(yDist, xDist);
336
- const m1 = p1.mass;
337
- const m2 = p2.mass;
338
- const u1 = p1.velocity.rotate(angle);
339
- const u2 = p2.velocity.rotate(angle);
340
- const v1 = collisionVelocity(u1, u2, m1, m2);
341
- const v2 = collisionVelocity(u2, u1, m1, m2);
342
- const vFinal1 = v1.rotate(-angle);
343
- const vFinal2 = v2.rotate(-angle);
344
- p1.velocity.x = vFinal1.x * p1.factor.x;
345
- p1.velocity.y = vFinal1.y * p1.factor.y;
346
- p2.velocity.x = vFinal2.x * p2.factor.x;
347
- p2.velocity.y = vFinal2.y * p2.factor.y;
383
+ const {x: xVelocityDiff, y: yVelocityDiff} = p1.velocity.sub(p2.velocity), [pos1, pos2] = [ p1.position, p2.position ], {dx: xDist, dy: yDist} = getDistances(pos2, pos1);
384
+ if (xVelocityDiff * xDist + yVelocityDiff * yDist < 0) {
385
+ return;
348
386
  }
387
+ const angle = -Math.atan2(yDist, xDist), m1 = p1.mass, m2 = p2.mass, u1 = p1.velocity.rotate(angle), u2 = p2.velocity.rotate(angle), v1 = collisionVelocity(u1, u2, m1, m2), v2 = collisionVelocity(u2, u1, m1, m2), vFinal1 = v1.rotate(-angle), vFinal2 = v2.rotate(-angle);
388
+ p1.velocity.x = vFinal1.x * p1.factor.x;
389
+ p1.velocity.y = vFinal1.y * p1.factor.y;
390
+ p2.velocity.x = vFinal2.x * p2.factor.x;
391
+ p2.velocity.y = vFinal2.y * p2.factor.y;
349
392
  }
350
393
  function rectBounce(particle, divBounds) {
351
- const pPos = particle.getPosition();
352
- const size = particle.getRadius();
353
- const bounds = calculateBounds(pPos, size);
394
+ const pPos = particle.getPosition(), size = particle.getRadius(), bounds = calculateBounds(pPos, size);
354
395
  const resH = rectSideBounce({
355
396
  min: bounds.left,
356
397
  max: bounds.right
@@ -454,7 +495,7 @@
454
495
  } : undefined;
455
496
  }
456
497
  }
457
- function ColorUtils_colorToRgb(input, index, useIndex = true) {
498
+ function colorToRgb(input, index, useIndex = true) {
458
499
  var _a, _b, _c;
459
500
  if (input === undefined) {
460
501
  return;
@@ -464,20 +505,15 @@
464
505
  } : input;
465
506
  let res;
466
507
  if (typeof color.value === "string") {
467
- if (color.value === Constants_Constants.randomColorValue) {
468
- res = getRandomRgbColor();
469
- } else {
470
- res = stringToRgb(color.value);
471
- }
508
+ res = color.value === Constants.randomColorValue ? getRandomRgbColor() : stringToRgb(color.value);
472
509
  } else {
473
510
  if (color.value instanceof Array) {
474
- const colorSelected = Utils_itemFromArray(color.value, index, useIndex);
475
- res = ColorUtils_colorToRgb({
511
+ const colorSelected = itemFromArray(color.value, index, useIndex);
512
+ res = colorToRgb({
476
513
  value: colorSelected
477
514
  });
478
515
  } else {
479
- const colorValue = color.value;
480
- const rgbColor = (_a = colorValue.rgb) !== null && _a !== void 0 ? _a : color.value;
516
+ const colorValue = color.value, rgbColor = (_a = colorValue.rgb) !== null && _a !== void 0 ? _a : color.value;
481
517
  if (rgbColor.r !== undefined) {
482
518
  res = rgbColor;
483
519
  } else {
@@ -495,22 +531,19 @@
495
531
  }
496
532
  return res;
497
533
  }
498
- function ColorUtils_colorToHsl(color, index, useIndex = true) {
499
- const rgb = ColorUtils_colorToRgb(color, index, useIndex);
534
+ function colorToHsl(color, index, useIndex = true) {
535
+ const rgb = colorToRgb(color, index, useIndex);
500
536
  return rgb !== undefined ? rgbToHsl(rgb) : undefined;
501
537
  }
502
538
  function rgbToHsl(color) {
503
- const r1 = color.r / 255;
504
- const g1 = color.g / 255;
505
- const b1 = color.b / 255;
506
- const max = Math.max(r1, g1, b1);
507
- const min = Math.min(r1, g1, b1);
539
+ const r1 = color.r / 255, g1 = color.g / 255, b1 = color.b / 255;
540
+ const max = Math.max(r1, g1, b1), min = Math.min(r1, g1, b1);
508
541
  const res = {
509
542
  h: 0,
510
543
  l: (max + min) / 2,
511
544
  s: 0
512
545
  };
513
- if (max != min) {
546
+ if (max !== min) {
514
547
  res.s = res.l < .5 ? (max - min) / (max + min) : (max - min) / (2 - max - min);
515
548
  res.h = r1 === max ? (g1 - b1) / (max - min) : res.h = g1 === max ? 2 + (b1 - r1) / (max - min) : 4 + (r1 - g1) / (max - min);
516
549
  }
@@ -534,8 +567,7 @@
534
567
  b: 0,
535
568
  g: 0,
536
569
  r: 0
537
- };
538
- const hslPercent = {
570
+ }, hslPercent = {
539
571
  h: hsl.h / 360,
540
572
  l: hsl.l / 100,
541
573
  s: hsl.s / 100
@@ -545,8 +577,7 @@
545
577
  result.g = hslPercent.l;
546
578
  result.r = hslPercent.l;
547
579
  } else {
548
- const q = hslPercent.l < .5 ? hslPercent.l * (1 + hslPercent.s) : hslPercent.l + hslPercent.s - hslPercent.l * hslPercent.s;
549
- const p = 2 * hslPercent.l - q;
580
+ const q = hslPercent.l < .5 ? hslPercent.l * (1 + hslPercent.s) : hslPercent.l + hslPercent.s - hslPercent.l * hslPercent.s, p = 2 * hslPercent.l - q;
550
581
  result.r = hue2rgb(p, q, hslPercent.h + 1 / 3);
551
582
  result.g = hue2rgb(p, q, hslPercent.h);
552
583
  result.b = hue2rgb(p, q, hslPercent.h - 1 / 3);
@@ -566,8 +597,7 @@
566
597
  };
567
598
  }
568
599
  function hslToHsv(hsl) {
569
- const l = hsl.l / 100, sl = hsl.s / 100;
570
- const v = l + sl * Math.min(l, 1 - l), sv = !v ? 0 : 2 * (1 - l / v);
600
+ const l = hsl.l / 100, sl = hsl.s / 100, v = l + sl * Math.min(l, 1 - l), sv = !v ? 0 : 2 * (1 - l / v);
571
601
  return {
572
602
  h: hsl.h,
573
603
  s: sv * 100,
@@ -584,8 +614,7 @@
584
614
  };
585
615
  }
586
616
  function hsvToHsl(hsv) {
587
- const v = hsv.v / 100, sv = hsv.s / 100;
588
- const l = v * (1 - sv / 2), sl = l === 0 || l === 1 ? 0 : (v - l) / Math.min(l, 1 - l);
617
+ const v = hsv.v / 100, sv = hsv.s / 100, l = v * (1 - sv / 2), sl = l === 0 || l === 1 ? 0 : (v - l) / Math.min(l, 1 - l);
589
618
  return {
590
619
  h: hsv.h,
591
620
  l: l * 100,
@@ -606,8 +635,7 @@
606
635
  b: 0,
607
636
  g: 0,
608
637
  r: 0
609
- };
610
- const hsvPercent = {
638
+ }, hsvPercent = {
611
639
  h: hsv.h / 60,
612
640
  s: hsv.s / 100,
613
641
  v: hsv.v / 100
@@ -701,23 +729,22 @@
701
729
  function getRandomRgbColor(min) {
702
730
  const fixedMin = min !== null && min !== void 0 ? min : 0;
703
731
  return {
704
- b: Math.floor(NumberUtils_randomInRange(NumberUtils_setRangeValue(fixedMin, 256))),
705
- g: Math.floor(NumberUtils_randomInRange(NumberUtils_setRangeValue(fixedMin, 256))),
706
- r: Math.floor(NumberUtils_randomInRange(NumberUtils_setRangeValue(fixedMin, 256)))
732
+ b: Math.floor(randomInRange(setRangeValue(fixedMin, 256))),
733
+ g: Math.floor(randomInRange(setRangeValue(fixedMin, 256))),
734
+ r: Math.floor(randomInRange(setRangeValue(fixedMin, 256)))
707
735
  };
708
736
  }
709
- function ColorUtils_getStyleFromRgb(color, opacity) {
737
+ function getStyleFromRgb(color, opacity) {
710
738
  return `rgba(${color.r}, ${color.g}, ${color.b}, ${opacity !== null && opacity !== void 0 ? opacity : 1})`;
711
739
  }
712
- function ColorUtils_getStyleFromHsl(color, opacity) {
740
+ function getStyleFromHsl(color, opacity) {
713
741
  return `hsla(${color.h}, ${color.s}%, ${color.l}%, ${opacity !== null && opacity !== void 0 ? opacity : 1})`;
714
742
  }
715
743
  function getStyleFromHsv(color, opacity) {
716
- return ColorUtils_getStyleFromHsl(hsvToHsl(color), opacity);
744
+ return getStyleFromHsl(hsvToHsl(color), opacity);
717
745
  }
718
- function ColorUtils_colorMix(color1, color2, size1, size2) {
719
- let rgb1 = color1;
720
- let rgb2 = color2;
746
+ function colorMix(color1, color2, size1, size2) {
747
+ let rgb1 = color1, rgb2 = color2;
721
748
  if (rgb1.r === undefined) {
722
749
  rgb1 = hslToRgb(color1);
723
750
  }
@@ -732,13 +759,12 @@
732
759
  }
733
760
  function getLinkColor(p1, p2, linkColor) {
734
761
  var _a, _b;
735
- if (linkColor === Constants_Constants.randomColorValue) {
762
+ if (linkColor === Constants.randomColorValue) {
736
763
  return getRandomRgbColor();
737
764
  } else if (linkColor === "mid") {
738
- const sourceColor = (_a = p1.getFillColor()) !== null && _a !== void 0 ? _a : p1.getStrokeColor();
739
- const destColor = (_b = p2 === null || p2 === void 0 ? void 0 : p2.getFillColor()) !== null && _b !== void 0 ? _b : p2 === null || p2 === void 0 ? void 0 : p2.getStrokeColor();
765
+ const sourceColor = (_a = p1.getFillColor()) !== null && _a !== void 0 ? _a : p1.getStrokeColor(), destColor = (_b = p2 === null || p2 === void 0 ? void 0 : p2.getFillColor()) !== null && _b !== void 0 ? _b : p2 === null || p2 === void 0 ? void 0 : p2.getStrokeColor();
740
766
  if (sourceColor && destColor && p2) {
741
- return ColorUtils_colorMix(sourceColor, destColor, p1.getRadius(), p2.getRadius());
767
+ return colorMix(sourceColor, destColor, p1.getRadius(), p2.getRadius());
742
768
  } else {
743
769
  const hslColor = sourceColor !== null && sourceColor !== void 0 ? sourceColor : destColor;
744
770
  if (hslColor) {
@@ -751,23 +777,23 @@
751
777
  }
752
778
  function getLinkRandomColor(optColor, blink, consent) {
753
779
  const color = typeof optColor === "string" ? optColor : optColor.value;
754
- if (color === Constants_Constants.randomColorValue) {
780
+ if (color === Constants.randomColorValue) {
755
781
  if (consent) {
756
- return ColorUtils_colorToRgb({
782
+ return colorToRgb({
757
783
  value: color
758
784
  });
759
785
  } else if (blink) {
760
- return Constants_Constants.randomColorValue;
786
+ return Constants.randomColorValue;
761
787
  } else {
762
- return Constants_Constants.midColorValue;
788
+ return Constants.midColorValue;
763
789
  }
764
790
  } else {
765
- return ColorUtils_colorToRgb({
791
+ return colorToRgb({
766
792
  value: color
767
793
  });
768
794
  }
769
795
  }
770
- function ColorUtils_getHslFromAnimation(animation) {
796
+ function getHslFromAnimation(animation) {
771
797
  return animation !== undefined ? {
772
798
  h: animation.h.value,
773
799
  s: animation.s.value,
@@ -812,4410 +838,51 @@
812
838
  colorValue.velocity = 0;
813
839
  }
814
840
  }
815
- function drawLine(context, begin, end) {
816
- context.beginPath();
817
- context.moveTo(begin.x, begin.y);
818
- context.lineTo(end.x, end.y);
819
- context.closePath();
820
- }
821
- function drawTriangle(context, p1, p2, p3) {
822
- context.beginPath();
823
- context.moveTo(p1.x, p1.y);
824
- context.lineTo(p2.x, p2.y);
825
- context.lineTo(p3.x, p3.y);
826
- context.closePath();
827
- }
828
- function CanvasUtils_paintBase(context, dimension, baseColor) {
829
- context.save();
830
- context.fillStyle = baseColor !== null && baseColor !== void 0 ? baseColor : "rgba(0,0,0,0)";
831
- context.fillRect(0, 0, dimension.width, dimension.height);
832
- context.restore();
833
- }
834
- function CanvasUtils_clear(context, dimension) {
835
- context.clearRect(0, 0, dimension.width, dimension.height);
836
- }
837
- function drawLinkLine(context, width, begin, end, maxDistance, canvasSize, warp, backgroundMask, composite, colorLine, opacity, shadow) {
838
- let drawn = false;
839
- if (getDistance(begin, end) <= maxDistance) {
840
- drawLine(context, begin, end);
841
- drawn = true;
842
- } else if (warp) {
843
- let pi1;
844
- let pi2;
845
- const endNE = {
846
- x: end.x - canvasSize.width,
847
- y: end.y
848
- };
849
- const d1 = getDistances(begin, endNE);
850
- if (d1.distance <= maxDistance) {
851
- const yi = begin.y - d1.dy / d1.dx * begin.x;
852
- pi1 = {
853
- x: 0,
854
- y: yi
855
- };
856
- pi2 = {
857
- x: canvasSize.width,
858
- y: yi
859
- };
860
- } else {
861
- const endSW = {
862
- x: end.x,
863
- y: end.y - canvasSize.height
864
- };
865
- const d2 = getDistances(begin, endSW);
866
- if (d2.distance <= maxDistance) {
867
- const yi = begin.y - d2.dy / d2.dx * begin.x;
868
- const xi = -yi / (d2.dy / d2.dx);
869
- pi1 = {
870
- x: xi,
871
- y: 0
872
- };
873
- pi2 = {
874
- x: xi,
875
- y: canvasSize.height
876
- };
877
- } else {
878
- const endSE = {
879
- x: end.x - canvasSize.width,
880
- y: end.y - canvasSize.height
881
- };
882
- const d3 = getDistances(begin, endSE);
883
- if (d3.distance <= maxDistance) {
884
- const yi = begin.y - d3.dy / d3.dx * begin.x;
885
- const xi = -yi / (d3.dy / d3.dx);
886
- pi1 = {
887
- x: xi,
888
- y: yi
889
- };
890
- pi2 = {
891
- x: pi1.x + canvasSize.width,
892
- y: pi1.y + canvasSize.height
893
- };
894
- }
895
- }
896
- }
897
- if (pi1 && pi2) {
898
- drawLine(context, begin, pi1);
899
- drawLine(context, end, pi2);
900
- drawn = true;
901
- }
902
- }
903
- if (!drawn) {
904
- return;
905
- }
906
- context.lineWidth = width;
907
- if (backgroundMask) {
908
- context.globalCompositeOperation = composite;
909
- }
910
- context.strokeStyle = getStyleFromRgb(colorLine, opacity);
911
- if (shadow.enable) {
912
- const shadowColor = colorToRgb(shadow.color);
913
- if (shadowColor) {
914
- context.shadowBlur = shadow.blur;
915
- context.shadowColor = getStyleFromRgb(shadowColor);
916
- }
917
- }
918
- context.stroke();
919
- }
920
- function drawLinkTriangle(context, pos1, pos2, pos3, backgroundMask, composite, colorTriangle, opacityTriangle) {
921
- drawTriangle(context, pos1, pos2, pos3);
922
- if (backgroundMask) {
923
- context.globalCompositeOperation = composite;
924
- }
925
- context.fillStyle = getStyleFromRgb(colorTriangle, opacityTriangle);
926
- context.fill();
927
- }
928
- function CanvasUtils_drawConnectLine(context, width, lineStyle, begin, end) {
929
- context.save();
930
- drawLine(context, begin, end);
931
- context.lineWidth = width;
932
- context.strokeStyle = lineStyle;
933
- context.stroke();
934
- context.restore();
935
- }
936
- function CanvasUtils_gradient(context, p1, p2, opacity) {
937
- const gradStop = Math.floor(p2.getRadius() / p1.getRadius());
938
- const color1 = p1.getFillColor();
939
- const color2 = p2.getFillColor();
940
- if (!color1 || !color2) {
941
- return;
942
- }
943
- const sourcePos = p1.getPosition();
944
- const destPos = p2.getPosition();
945
- const midRgb = colorMix(color1, color2, p1.getRadius(), p2.getRadius());
946
- const grad = context.createLinearGradient(sourcePos.x, sourcePos.y, destPos.x, destPos.y);
947
- grad.addColorStop(0, getStyleFromHsl(color1, opacity));
948
- grad.addColorStop(gradStop > 1 ? 1 : gradStop, getStyleFromRgb(midRgb, opacity));
949
- grad.addColorStop(1, getStyleFromHsl(color2, opacity));
950
- return grad;
951
- }
952
- function CanvasUtils_drawGrabLine(context, width, begin, end, colorLine, opacity) {
953
- context.save();
954
- drawLine(context, begin, end);
955
- context.strokeStyle = getStyleFromRgb(colorLine, opacity);
956
- context.lineWidth = width;
957
- context.stroke();
958
- context.restore();
959
- }
960
- function CanvasUtils_drawParticle(container, context, particle, delta, fillColorValue, strokeColorValue, backgroundMask, composite, radius, opacity, shadow, gradient) {
961
- var _a, _b, _c, _d, _e, _f;
962
- const pos = particle.getPosition();
963
- const tiltOptions = particle.options.tilt;
964
- const rollOptions = particle.options.roll;
965
- context.save();
966
- if (tiltOptions.enable || rollOptions.enable) {
967
- const roll = rollOptions.enable && particle.roll;
968
- const tilt = tiltOptions.enable && particle.tilt;
969
- const rollHorizontal = roll && (rollOptions.mode === "horizontal" || rollOptions.mode === "both");
970
- const rollVertical = roll && (rollOptions.mode === "vertical" || rollOptions.mode === "both");
971
- context.setTransform(rollHorizontal ? Math.cos(particle.roll.angle) : 1, tilt ? Math.cos(particle.tilt.value) * particle.tilt.cosDirection : 0, tilt ? Math.sin(particle.tilt.value) * particle.tilt.sinDirection : 0, rollVertical ? Math.sin(particle.roll.angle) : 1, pos.x, pos.y);
972
- } else {
973
- context.translate(pos.x, pos.y);
974
- }
975
- context.beginPath();
976
- const angle = ((_b = (_a = particle.rotate) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0) + (particle.options.rotate.path ? particle.velocity.angle : 0);
977
- if (angle !== 0) {
978
- context.rotate(angle);
979
- }
980
- if (backgroundMask) {
981
- context.globalCompositeOperation = composite;
982
- }
983
- const shadowColor = particle.shadowColor;
984
- if (shadow.enable && shadowColor) {
985
- context.shadowBlur = shadow.blur;
986
- context.shadowColor = getStyleFromRgb(shadowColor);
987
- context.shadowOffsetX = shadow.offset.x;
988
- context.shadowOffsetY = shadow.offset.y;
989
- }
990
- if (gradient) {
991
- const gradientAngle = gradient.angle.value;
992
- const fillGradient = gradient.type === "radial" ? context.createRadialGradient(0, 0, 0, 0, 0, radius) : context.createLinearGradient(Math.cos(gradientAngle) * -radius, Math.sin(gradientAngle) * -radius, Math.cos(gradientAngle) * radius, Math.sin(gradientAngle) * radius);
993
- for (const color of gradient.colors) {
994
- fillGradient.addColorStop(color.stop, getStyleFromHsl({
995
- h: color.value.h.value,
996
- s: color.value.s.value,
997
- l: color.value.l.value
998
- }, (_d = (_c = color.opacity) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : opacity));
999
- }
1000
- context.fillStyle = fillGradient;
1001
- } else {
1002
- if (fillColorValue) {
1003
- context.fillStyle = fillColorValue;
1004
- }
1005
- }
1006
- const stroke = particle.stroke;
1007
- context.lineWidth = (_e = particle.strokeWidth) !== null && _e !== void 0 ? _e : 0;
1008
- if (strokeColorValue) {
1009
- context.strokeStyle = strokeColorValue;
1010
- }
1011
- drawShape(container, context, particle, radius, opacity, delta);
1012
- if (((_f = stroke === null || stroke === void 0 ? void 0 : stroke.width) !== null && _f !== void 0 ? _f : 0) > 0) {
1013
- context.stroke();
1014
- }
1015
- if (particle.close) {
1016
- context.closePath();
1017
- }
1018
- if (particle.fill) {
1019
- context.fill();
1020
- }
1021
- context.restore();
1022
- context.save();
1023
- if (tiltOptions.enable && particle.tilt) {
1024
- context.setTransform(1, Math.cos(particle.tilt.value) * particle.tilt.cosDirection, Math.sin(particle.tilt.value) * particle.tilt.sinDirection, 1, pos.x, pos.y);
1025
- } else {
1026
- context.translate(pos.x, pos.y);
1027
- }
1028
- if (angle !== 0) {
1029
- context.rotate(angle);
1030
- }
1031
- if (backgroundMask) {
1032
- context.globalCompositeOperation = composite;
1033
- }
1034
- drawShapeAfterEffect(container, context, particle, radius, opacity, delta);
1035
- context.restore();
1036
- }
1037
- function drawShape(container, context, particle, radius, opacity, delta) {
1038
- if (!particle.shape) {
1039
- return;
1040
- }
1041
- const drawer = container.drawers.get(particle.shape);
1042
- if (!drawer) {
1043
- return;
1044
- }
1045
- drawer.draw(context, particle, radius, opacity, delta, container.retina.pixelRatio);
1046
- }
1047
- function drawShapeAfterEffect(container, context, particle, radius, opacity, delta) {
1048
- if (!particle.shape) {
1049
- return;
1050
- }
1051
- const drawer = container.drawers.get(particle.shape);
1052
- if (!(drawer === null || drawer === void 0 ? void 0 : drawer.afterEffect)) {
1053
- return;
1054
- }
1055
- drawer.afterEffect(context, particle, radius, opacity, delta, container.retina.pixelRatio);
1056
- }
1057
- function CanvasUtils_drawPlugin(context, plugin, delta) {
1058
- if (!plugin.draw) {
1059
- return;
1060
- }
1061
- context.save();
1062
- plugin.draw(context, delta);
1063
- context.restore();
1064
- }
1065
- function CanvasUtils_drawParticlePlugin(context, plugin, particle, delta) {
1066
- if (plugin.drawParticle !== undefined) {
1067
- context.save();
1068
- plugin.drawParticle(context, particle, delta);
1069
- context.restore();
1070
- }
1071
- }
1072
- function drawEllipse(context, particle, fillColorValue, radius, opacity, width, rotation, start, end) {
1073
- const pos = particle.getPosition();
1074
- if (fillColorValue) {
1075
- context.strokeStyle = getStyleFromHsl(fillColorValue, opacity);
1076
- }
1077
- if (width === 0) {
1078
- return;
1079
- }
1080
- context.lineWidth = width;
1081
- const rotationRadian = rotation * Math.PI / 180;
1082
- context.beginPath();
1083
- context.ellipse(pos.x, pos.y, radius / 2, radius * 2, rotationRadian, start, end);
1084
- context.stroke();
1085
- }
1086
- function CanvasUtils_alterHsl(color, type, value) {
1087
- return {
1088
- h: color.h,
1089
- s: color.s,
1090
- l: color.l + (type === "darken" ? -1 : 1) * value
1091
- };
1092
- }
1093
- class Circle_Circle extends(null && Range){
1094
- constructor(x, y, radius) {
1095
- super(x, y);
1096
- this.radius = radius;
1097
- }
1098
- contains(point) {
1099
- return getDistance(point, this.position) <= this.radius;
1100
- }
1101
- intersects(range) {
1102
- const rect = range;
1103
- const circle = range;
1104
- const pos1 = this.position;
1105
- const pos2 = range.position;
1106
- const xDist = Math.abs(pos2.x - pos1.x);
1107
- const yDist = Math.abs(pos2.y - pos1.y);
1108
- const r = this.radius;
1109
- if (circle.radius !== undefined) {
1110
- const rSum = r + circle.radius;
1111
- const dist = Math.sqrt(xDist * xDist + yDist + yDist);
1112
- return rSum > dist;
1113
- } else if (rect.size !== undefined) {
1114
- const w = rect.size.width;
1115
- const h = rect.size.height;
1116
- const edges = Math.pow(xDist - w, 2) + Math.pow(yDist - h, 2);
1117
- if (xDist > r + w || yDist > r + h) {
1118
- return false;
1119
- }
1120
- if (xDist <= w || yDist <= h) {
1121
- return true;
1122
- }
1123
- return edges <= r * r;
1124
- }
1125
- return false;
1126
- }
1127
- }
1128
- class CircleWarp_CircleWarp extends(null && Circle){
1129
- constructor(x, y, radius, canvasSize) {
1130
- super(x, y, radius);
1131
- this.canvasSize = canvasSize;
1132
- this.canvasSize = {
1133
- height: canvasSize.height,
1134
- width: canvasSize.width
1135
- };
1136
- }
1137
- contains(point) {
1138
- if (super.contains(point)) {
1139
- return true;
1140
- }
1141
- const posNE = {
1142
- x: point.x - this.canvasSize.width,
1143
- y: point.y
1144
- };
1145
- if (super.contains(posNE)) {
1146
- return true;
1147
- }
1148
- const posSE = {
1149
- x: point.x - this.canvasSize.width,
1150
- y: point.y - this.canvasSize.height
1151
- };
1152
- if (super.contains(posSE)) {
1153
- return true;
1154
- }
1155
- const posSW = {
1156
- x: point.x,
1157
- y: point.y - this.canvasSize.height
1158
- };
1159
- return super.contains(posSW);
1160
- }
1161
- intersects(range) {
1162
- if (super.intersects(range)) {
1163
- return true;
1164
- }
1165
- const rect = range;
1166
- const circle = range;
1167
- const newPos = {
1168
- x: range.position.x - this.canvasSize.width,
1169
- y: range.position.y - this.canvasSize.height
1170
- };
1171
- if (circle.radius !== undefined) {
1172
- const biggerCircle = new Circle(newPos.x, newPos.y, circle.radius * 2);
1173
- return super.intersects(biggerCircle);
1174
- } else if (rect.size !== undefined) {
1175
- const rectSW = new Rectangle(newPos.x, newPos.y, rect.size.width * 2, rect.size.height * 2);
1176
- return super.intersects(rectSW);
1177
- }
1178
- return false;
1179
- }
1180
- }
1181
- class Constants_Constants {}
1182
- Constants_Constants.generatedAttribute = "generated";
1183
- Constants_Constants.randomColorValue = "random";
1184
- Constants_Constants.midColorValue = "mid";
1185
- Constants_Constants.touchEndEvent = "touchend";
1186
- Constants_Constants.mouseDownEvent = "mousedown";
1187
- Constants_Constants.mouseUpEvent = "mouseup";
1188
- Constants_Constants.mouseMoveEvent = "mousemove";
1189
- Constants_Constants.touchStartEvent = "touchstart";
1190
- Constants_Constants.touchMoveEvent = "touchmove";
1191
- Constants_Constants.mouseLeaveEvent = "mouseleave";
1192
- Constants_Constants.mouseOutEvent = "mouseout";
1193
- Constants_Constants.touchCancelEvent = "touchcancel";
1194
- Constants_Constants.resizeEvent = "resize";
1195
- Constants_Constants.visibilityChangeEvent = "visibilitychange";
1196
- Constants_Constants.noPolygonDataLoaded = "No polygon data loaded.";
1197
- Constants_Constants.noPolygonFound = "No polygon found, you need to specify SVG url in config.";
1198
- function manageListener(element, event, handler, add, options) {
1199
- if (add) {
1200
- let addOptions = {
1201
- passive: true
1202
- };
1203
- if (typeof options === "boolean") {
1204
- addOptions.capture = options;
1205
- } else if (options !== undefined) {
1206
- addOptions = options;
1207
- }
1208
- element.addEventListener(event, handler, addOptions);
1209
- } else {
1210
- const removeOptions = options;
1211
- element.removeEventListener(event, handler, removeOptions);
1212
- }
1213
- }
1214
- class EventListeners_EventListeners {
1215
- constructor(container) {
1216
- this.container = container;
1217
- this.canPush = true;
1218
- this.mouseMoveHandler = e => this.mouseTouchMove(e);
1219
- this.touchStartHandler = e => this.mouseTouchMove(e);
1220
- this.touchMoveHandler = e => this.mouseTouchMove(e);
1221
- this.touchEndHandler = () => this.mouseTouchFinish();
1222
- this.mouseLeaveHandler = () => this.mouseTouchFinish();
1223
- this.touchCancelHandler = () => this.mouseTouchFinish();
1224
- this.touchEndClickHandler = e => this.mouseTouchClick(e);
1225
- this.mouseUpHandler = e => this.mouseTouchClick(e);
1226
- this.mouseDownHandler = () => this.mouseDown();
1227
- this.visibilityChangeHandler = () => this.handleVisibilityChange();
1228
- this.themeChangeHandler = e => this.handleThemeChange(e);
1229
- this.oldThemeChangeHandler = e => this.handleThemeChange(e);
1230
- this.resizeHandler = () => this.handleWindowResize();
1231
- }
1232
- addListeners() {
1233
- this.manageListeners(true);
1234
- }
1235
- removeListeners() {
1236
- this.manageListeners(false);
1237
- }
1238
- manageListeners(add) {
1239
- var _a;
1240
- const container = this.container;
1241
- const options = container.actualOptions;
1242
- const detectType = options.interactivity.detectsOn;
1243
- let mouseLeaveEvent = Constants.mouseLeaveEvent;
1244
- if (detectType === "window") {
1245
- container.interactivity.element = window;
1246
- mouseLeaveEvent = Constants.mouseOutEvent;
1247
- } else if (detectType === "parent" && container.canvas.element) {
1248
- const canvasEl = container.canvas.element;
1249
- container.interactivity.element = (_a = canvasEl.parentElement) !== null && _a !== void 0 ? _a : canvasEl.parentNode;
1250
- } else {
1251
- container.interactivity.element = container.canvas.element;
1252
- }
1253
- const mediaMatch = !isSsr() && typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)");
1254
- if (mediaMatch) {
1255
- if (mediaMatch.addEventListener !== undefined) {
1256
- manageListener(mediaMatch, "change", this.themeChangeHandler, add);
1257
- } else if (mediaMatch.addListener !== undefined) {
1258
- if (add) {
1259
- mediaMatch.addListener(this.oldThemeChangeHandler);
1260
- } else {
1261
- mediaMatch.removeListener(this.oldThemeChangeHandler);
1262
- }
1263
- }
1264
- }
1265
- const interactivityEl = container.interactivity.element;
1266
- if (!interactivityEl) {
1267
- return;
1268
- }
1269
- const html = interactivityEl;
1270
- if (options.interactivity.events.onHover.enable || options.interactivity.events.onClick.enable) {
1271
- manageListener(interactivityEl, Constants.mouseMoveEvent, this.mouseMoveHandler, add);
1272
- manageListener(interactivityEl, Constants.touchStartEvent, this.touchStartHandler, add);
1273
- manageListener(interactivityEl, Constants.touchMoveEvent, this.touchMoveHandler, add);
1274
- if (!options.interactivity.events.onClick.enable) {
1275
- manageListener(interactivityEl, Constants.touchEndEvent, this.touchEndHandler, add);
1276
- } else {
1277
- manageListener(interactivityEl, Constants.touchEndEvent, this.touchEndClickHandler, add);
1278
- manageListener(interactivityEl, Constants.mouseUpEvent, this.mouseUpHandler, add);
1279
- manageListener(interactivityEl, Constants.mouseDownEvent, this.mouseDownHandler, add);
1280
- }
1281
- manageListener(interactivityEl, mouseLeaveEvent, this.mouseLeaveHandler, add);
1282
- manageListener(interactivityEl, Constants.touchCancelEvent, this.touchCancelHandler, add);
1283
- }
1284
- if (container.canvas.element) {
1285
- container.canvas.element.style.pointerEvents = html === container.canvas.element ? "initial" : "none";
1286
- }
1287
- if (options.interactivity.events.resize) {
1288
- if (typeof ResizeObserver !== "undefined") {
1289
- if (this.resizeObserver && !add) {
1290
- if (container.canvas.element) {
1291
- this.resizeObserver.unobserve(container.canvas.element);
1292
- }
1293
- this.resizeObserver.disconnect();
1294
- delete this.resizeObserver;
1295
- } else if (!this.resizeObserver && add && container.canvas.element) {
1296
- this.resizeObserver = new ResizeObserver((entries => {
1297
- const entry = entries.find((e => e.target === container.canvas.element));
1298
- if (!entry) {
1299
- return;
1300
- }
1301
- this.handleWindowResize();
1302
- }));
1303
- this.resizeObserver.observe(container.canvas.element);
1304
- }
1305
- } else {
1306
- manageListener(window, Constants.resizeEvent, this.resizeHandler, add);
1307
- }
1308
- }
1309
- if (document) {
1310
- manageListener(document, Constants.visibilityChangeEvent, this.visibilityChangeHandler, add, false);
1311
- }
1312
- }
1313
- handleWindowResize() {
1314
- if (this.resizeTimeout) {
1315
- clearTimeout(this.resizeTimeout);
1316
- delete this.resizeTimeout;
1317
- }
1318
- this.resizeTimeout = setTimeout((async () => {
1319
- var _a;
1320
- return await ((_a = this.container.canvas) === null || _a === void 0 ? void 0 : _a.windowResize());
1321
- }), 500);
1322
- }
1323
- handleVisibilityChange() {
1324
- const container = this.container;
1325
- const options = container.actualOptions;
1326
- this.mouseTouchFinish();
1327
- if (!options.pauseOnBlur) {
1328
- return;
1329
- }
1330
- if (document === null || document === void 0 ? void 0 : document.hidden) {
1331
- container.pageHidden = true;
1332
- container.pause();
1333
- } else {
1334
- container.pageHidden = false;
1335
- if (container.getAnimationStatus()) {
1336
- container.play(true);
1337
- } else {
1338
- container.draw(true);
1339
- }
1340
- }
1341
- }
1342
- mouseDown() {
1343
- const interactivity = this.container.interactivity;
1344
- if (interactivity) {
1345
- const mouse = interactivity.mouse;
1346
- mouse.clicking = true;
1347
- mouse.downPosition = mouse.position;
1348
- }
1349
- }
1350
- mouseTouchMove(e) {
1351
- var _a, _b, _c, _d, _e, _f, _g;
1352
- const container = this.container;
1353
- const options = container.actualOptions;
1354
- if (((_a = container.interactivity) === null || _a === void 0 ? void 0 : _a.element) === undefined) {
1355
- return;
1356
- }
1357
- container.interactivity.mouse.inside = true;
1358
- let pos;
1359
- const canvas = container.canvas.element;
1360
- if (e.type.startsWith("mouse")) {
1361
- this.canPush = true;
1362
- const mouseEvent = e;
1363
- if (container.interactivity.element === window) {
1364
- if (canvas) {
1365
- const clientRect = canvas.getBoundingClientRect();
1366
- pos = {
1367
- x: mouseEvent.clientX - clientRect.left,
1368
- y: mouseEvent.clientY - clientRect.top
1369
- };
1370
- }
1371
- } else if (options.interactivity.detectsOn === "parent") {
1372
- const source = mouseEvent.target;
1373
- const target = mouseEvent.currentTarget;
1374
- const canvasEl = container.canvas.element;
1375
- if (source && target && canvasEl) {
1376
- const sourceRect = source.getBoundingClientRect();
1377
- const targetRect = target.getBoundingClientRect();
1378
- const canvasRect = canvasEl.getBoundingClientRect();
1379
- pos = {
1380
- x: mouseEvent.offsetX + 2 * sourceRect.left - (targetRect.left + canvasRect.left),
1381
- y: mouseEvent.offsetY + 2 * sourceRect.top - (targetRect.top + canvasRect.top)
1382
- };
1383
- } else {
1384
- pos = {
1385
- x: (_b = mouseEvent.offsetX) !== null && _b !== void 0 ? _b : mouseEvent.clientX,
1386
- y: (_c = mouseEvent.offsetY) !== null && _c !== void 0 ? _c : mouseEvent.clientY
1387
- };
1388
- }
1389
- } else {
1390
- if (mouseEvent.target === container.canvas.element) {
1391
- pos = {
1392
- x: (_d = mouseEvent.offsetX) !== null && _d !== void 0 ? _d : mouseEvent.clientX,
1393
- y: (_e = mouseEvent.offsetY) !== null && _e !== void 0 ? _e : mouseEvent.clientY
1394
- };
1395
- }
1396
- }
1397
- } else {
1398
- this.canPush = e.type !== "touchmove";
1399
- const touchEvent = e;
1400
- const lastTouch = touchEvent.touches[touchEvent.touches.length - 1];
1401
- const canvasRect = canvas === null || canvas === void 0 ? void 0 : canvas.getBoundingClientRect();
1402
- pos = {
1403
- x: lastTouch.clientX - ((_f = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.left) !== null && _f !== void 0 ? _f : 0),
1404
- y: lastTouch.clientY - ((_g = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.top) !== null && _g !== void 0 ? _g : 0)
1405
- };
1406
- }
1407
- const pxRatio = container.retina.pixelRatio;
1408
- if (pos) {
1409
- pos.x *= pxRatio;
1410
- pos.y *= pxRatio;
1411
- }
1412
- container.interactivity.mouse.position = pos;
1413
- container.interactivity.status = Constants.mouseMoveEvent;
1414
- }
1415
- mouseTouchFinish() {
1416
- const interactivity = this.container.interactivity;
1417
- if (interactivity === undefined) {
1418
- return;
1419
- }
1420
- const mouse = interactivity.mouse;
1421
- delete mouse.position;
1422
- delete mouse.clickPosition;
1423
- delete mouse.downPosition;
1424
- interactivity.status = Constants.mouseLeaveEvent;
1425
- mouse.inside = false;
1426
- mouse.clicking = false;
1427
- }
1428
- mouseTouchClick(e) {
1429
- const container = this.container;
1430
- const options = container.actualOptions;
1431
- const mouse = container.interactivity.mouse;
1432
- mouse.inside = true;
1433
- let handled = false;
1434
- const mousePosition = mouse.position;
1435
- if (mousePosition === undefined || !options.interactivity.events.onClick.enable) {
1436
- return;
1437
- }
1438
- for (const [, plugin] of container.plugins) {
1439
- if (plugin.clickPositionValid !== undefined) {
1440
- handled = plugin.clickPositionValid(mousePosition);
1441
- if (handled) {
1442
- break;
1443
- }
1444
- }
1445
- }
1446
- if (!handled) {
1447
- this.doMouseTouchClick(e);
1448
- }
1449
- mouse.clicking = false;
1450
- }
1451
- doMouseTouchClick(e) {
1452
- const container = this.container;
1453
- const options = container.actualOptions;
1454
- if (this.canPush) {
1455
- const mousePos = container.interactivity.mouse.position;
1456
- if (mousePos) {
1457
- container.interactivity.mouse.clickPosition = {
1458
- x: mousePos.x,
1459
- y: mousePos.y
1460
- };
1461
- } else {
1462
- return;
1463
- }
1464
- container.interactivity.mouse.clickTime = (new Date).getTime();
1465
- const onClick = options.interactivity.events.onClick;
1466
- if (onClick.mode instanceof Array) {
1467
- for (const mode of onClick.mode) {
1468
- this.handleClickMode(mode);
1469
- }
1470
- } else {
1471
- this.handleClickMode(onClick.mode);
1472
- }
1473
- }
1474
- if (e.type === "touchend") {
1475
- setTimeout((() => this.mouseTouchFinish()), 500);
1476
- }
1477
- }
1478
- handleThemeChange(e) {
1479
- const mediaEvent = e;
1480
- const themeName = mediaEvent.matches ? this.container.options.defaultDarkTheme : this.container.options.defaultLightTheme;
1481
- const theme = this.container.options.themes.find((theme => theme.name === themeName));
1482
- if (theme && theme.default.auto) {
1483
- this.container.loadTheme(themeName);
1484
- }
1485
- }
1486
- handleClickMode(mode) {
1487
- const container = this.container;
1488
- const options = container.actualOptions;
1489
- const pushNb = options.interactivity.modes.push.quantity;
1490
- const removeNb = options.interactivity.modes.remove.quantity;
1491
- switch (mode) {
1492
- case "push":
1493
- {
1494
- if (pushNb > 0) {
1495
- const pushOptions = options.interactivity.modes.push;
1496
- const group = itemFromArray([ undefined, ...pushOptions.groups ]);
1497
- const groupOptions = group !== undefined ? container.actualOptions.particles.groups[group] : undefined;
1498
- container.particles.push(pushNb, container.interactivity.mouse, groupOptions, group);
1499
- }
1500
- break;
1501
- }
1502
-
1503
- case "remove":
1504
- container.particles.removeQuantity(removeNb);
1505
- break;
1506
-
1507
- case "bubble":
1508
- container.bubble.clicking = true;
1509
- break;
1510
-
1511
- case "repulse":
1512
- container.repulse.clicking = true;
1513
- container.repulse.count = 0;
1514
- for (const particle of container.repulse.particles) {
1515
- particle.velocity.setTo(particle.initialVelocity);
1516
- }
1517
- container.repulse.particles = [];
1518
- container.repulse.finish = false;
1519
- setTimeout((() => {
1520
- if (!container.destroyed) {
1521
- container.repulse.clicking = false;
1522
- }
1523
- }), options.interactivity.modes.repulse.duration * 1e3);
1524
- break;
1525
-
1526
- case "attract":
1527
- container.attract.clicking = true;
1528
- container.attract.count = 0;
1529
- for (const particle of container.attract.particles) {
1530
- particle.velocity.setTo(particle.initialVelocity);
1531
- }
1532
- container.attract.particles = [];
1533
- container.attract.finish = false;
1534
- setTimeout((() => {
1535
- if (!container.destroyed) {
1536
- container.attract.clicking = false;
1537
- }
1538
- }), options.interactivity.modes.attract.duration * 1e3);
1539
- break;
1540
-
1541
- case "pause":
1542
- if (container.getAnimationStatus()) {
1543
- container.pause();
1544
- } else {
1545
- container.play();
1546
- }
1547
- break;
1548
- }
1549
- for (const [, plugin] of container.plugins) {
1550
- if (plugin.handleClickMode) {
1551
- plugin.handleClickMode(mode);
1552
- }
1553
- }
1554
- }
1555
- }
1556
841
  class ExternalInteractorBase {
1557
842
  constructor(container) {
1558
843
  this.container = container;
1559
844
  this.type = 0;
1560
845
  }
1561
846
  }
1562
- var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
1563
- if (kind === "m") throw new TypeError("Private method is not writable");
1564
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1565
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1566
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
1567
- value;
1568
- };
1569
- var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
1570
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1571
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1572
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1573
- };
1574
- var _InteractionManager_engine;
1575
- class InteractionManager_InteractionManager {
1576
- constructor(engine, container) {
1577
- this.container = container;
1578
- _InteractionManager_engine.set(this, void 0);
1579
- __classPrivateFieldSet(this, _InteractionManager_engine, engine, "f");
1580
- this.externalInteractors = [];
1581
- this.particleInteractors = [];
1582
- this.init();
1583
- }
1584
- init() {
1585
- const interactors = __classPrivateFieldGet(this, _InteractionManager_engine, "f").plugins.getInteractors(this.container, true);
1586
- this.externalInteractors = [];
1587
- this.particleInteractors = [];
1588
- for (const interactor of interactors) {
1589
- switch (interactor.type) {
1590
- case 0:
1591
- this.externalInteractors.push(interactor);
1592
- break;
1593
-
1594
- case 1:
1595
- this.particleInteractors.push(interactor);
1596
- break;
1597
- }
1598
- }
1599
- }
1600
- async externalInteract(delta) {
1601
- for (const interactor of this.externalInteractors) {
1602
- if (interactor.isEnabled()) {
1603
- await interactor.interact(delta);
1604
- }
1605
- }
1606
- }
1607
- async particlesInteract(particle, delta) {
1608
- for (const interactor of this.externalInteractors) {
1609
- interactor.reset(particle);
1610
- }
1611
- for (const interactor of this.particleInteractors) {
1612
- if (interactor.isEnabled(particle)) {
1613
- await interactor.interact(particle, delta);
1614
- }
1615
- }
1616
- }
1617
- }
1618
- _InteractionManager_engine = new WeakMap;
1619
- function applyDistance(particle) {
1620
- const initialPosition = particle.initialPosition;
1621
- const {dx: dx, dy: dy} = getDistances(initialPosition, particle.position);
1622
- const dxFixed = Math.abs(dx), dyFixed = Math.abs(dy);
1623
- const hDistance = particle.retina.maxDistance.horizontal;
1624
- const vDistance = particle.retina.maxDistance.vertical;
1625
- if (!hDistance && !vDistance) {
1626
- return;
1627
- }
1628
- if ((hDistance && dxFixed >= hDistance || vDistance && dyFixed >= vDistance) && !particle.misplaced) {
1629
- particle.misplaced = !!hDistance && dxFixed > hDistance || !!vDistance && dyFixed > vDistance;
1630
- if (hDistance) {
1631
- particle.velocity.x = particle.velocity.y / 2 - particle.velocity.x;
1632
- }
1633
- if (vDistance) {
1634
- particle.velocity.y = particle.velocity.x / 2 - particle.velocity.y;
1635
- }
1636
- } else if ((!hDistance || dxFixed < hDistance) && (!vDistance || dyFixed < vDistance) && particle.misplaced) {
1637
- particle.misplaced = false;
1638
- } else if (particle.misplaced) {
1639
- const pos = particle.position, vel = particle.velocity;
1640
- if (hDistance && (pos.x < initialPosition.x && vel.x < 0 || pos.x > initialPosition.x && vel.x > 0)) {
1641
- vel.x *= -Math.random();
1642
- }
1643
- if (vDistance && (pos.y < initialPosition.y && vel.y < 0 || pos.y > initialPosition.y && vel.y > 0)) {
1644
- vel.y *= -Math.random();
1645
- }
1646
- }
1647
- }
1648
- class ParticlesMover_ParticlesMover {
847
+ class Grabber extends ExternalInteractorBase {
1649
848
  constructor(container) {
1650
- this.container = container;
849
+ super(container);
1651
850
  }
1652
- move(particle, delta) {
1653
- if (particle.destroyed) {
1654
- return;
1655
- }
1656
- this.moveParticle(particle, delta);
1657
- this.moveParallax(particle);
851
+ isEnabled() {
852
+ const container = this.container, mouse = container.interactivity.mouse, events = container.actualOptions.interactivity.events;
853
+ return events.onHover.enable && !!mouse.position && isInArray("grab", events.onHover.mode);
1658
854
  }
1659
- moveParticle(particle, delta) {
1660
- var _a, _b, _c;
1661
- var _d, _e;
1662
- const particleOptions = particle.options;
1663
- const moveOptions = particleOptions.move;
1664
- if (!moveOptions.enable) {
855
+ reset() {}
856
+ async interact() {
857
+ var _a;
858
+ const container = this.container, options = container.actualOptions, interactivity = options.interactivity;
859
+ if (!interactivity.events.onHover.enable || container.interactivity.status !== Constants.mouseMoveEvent) {
1665
860
  return;
1666
861
  }
1667
- const container = this.container, slowFactor = this.getProximitySpeedFactor(particle), baseSpeed = ((_a = (_d = particle.retina).moveSpeed) !== null && _a !== void 0 ? _a : _d.moveSpeed = getRangeValue(moveOptions.speed) * container.retina.pixelRatio) * container.retina.reduceFactor, moveDrift = (_b = (_e = particle.retina).moveDrift) !== null && _b !== void 0 ? _b : _e.moveDrift = getRangeValue(particle.options.move.drift) * container.retina.pixelRatio, maxSize = getRangeMax(particleOptions.size.value) * container.retina.pixelRatio, sizeFactor = moveOptions.size ? particle.getRadius() / maxSize : 1, diffFactor = 2, speedFactor = sizeFactor * slowFactor * (delta.factor || 1) / diffFactor, moveSpeed = baseSpeed * speedFactor;
1668
- this.applyPath(particle, delta);
1669
- const gravityOptions = particle.gravity;
1670
- const gravityFactor = gravityOptions.enable && gravityOptions.inverse ? -1 : 1;
1671
- if (gravityOptions.enable && moveSpeed) {
1672
- particle.velocity.y += gravityFactor * (gravityOptions.acceleration * delta.factor) / (60 * moveSpeed);
1673
- }
1674
- if (moveDrift && moveSpeed) {
1675
- particle.velocity.x += moveDrift * delta.factor / (60 * moveSpeed);
1676
- }
1677
- const decay = particle.moveDecay;
1678
- if (decay != 1) {
1679
- particle.velocity.multTo(decay);
862
+ const mousePos = container.interactivity.mouse.position;
863
+ if (!mousePos) {
864
+ return;
1680
865
  }
1681
- const velocity = particle.velocity.mult(moveSpeed);
1682
- const maxSpeed = (_c = particle.retina.maxSpeed) !== null && _c !== void 0 ? _c : container.retina.maxSpeed;
1683
- if (gravityOptions.enable && maxSpeed > 0 && (!gravityOptions.inverse && velocity.y >= 0 && velocity.y >= maxSpeed || gravityOptions.inverse && velocity.y <= 0 && velocity.y <= -maxSpeed)) {
1684
- velocity.y = gravityFactor * maxSpeed;
1685
- if (moveSpeed) {
1686
- particle.velocity.y = velocity.y / moveSpeed;
866
+ const distance = container.retina.grabModeDistance, query = container.particles.quadTree.queryCircle(mousePos, distance);
867
+ for (const particle of query) {
868
+ const pos = particle.getPosition(), pointDistance = getDistance(pos, mousePos);
869
+ if (pointDistance > distance) {
870
+ continue;
1687
871
  }
1688
- }
1689
- const zIndexOptions = particle.options.zIndex, zVelocityFactor = (1 - particle.zIndexFactor) ** zIndexOptions.velocityRate;
1690
- if (moveOptions.spin.enable) {
1691
- this.spin(particle, moveSpeed);
1692
- } else {
1693
- if (zVelocityFactor != 1) {
1694
- velocity.multTo(zVelocityFactor);
872
+ const grabLineOptions = interactivity.modes.grab.links, lineOpacity = grabLineOptions.opacity, opacityLine = lineOpacity - pointDistance * lineOpacity / distance;
873
+ if (opacityLine <= 0) {
874
+ continue;
1695
875
  }
1696
- particle.position.addTo(velocity);
1697
- if (moveOptions.vibrate) {
1698
- particle.position.x += Math.sin(particle.position.x * Math.cos(particle.position.y));
1699
- particle.position.y += Math.cos(particle.position.y * Math.sin(particle.position.x));
876
+ const optColor = (_a = grabLineOptions.color) !== null && _a !== void 0 ? _a : particle.options.links.color;
877
+ if (!container.particles.grabLineColor) {
878
+ const linksOptions = options.interactivity.modes.grab.links;
879
+ container.particles.grabLineColor = getLinkRandomColor(optColor, linksOptions.blink, linksOptions.consent);
1700
880
  }
1701
- }
1702
- applyDistance(particle);
1703
- }
1704
- spin(particle, moveSpeed) {
1705
- const container = this.container;
1706
- if (!particle.spin) {
1707
- return;
1708
- }
1709
- const updateFunc = {
1710
- x: particle.spin.direction === "clockwise" ? Math.cos : Math.sin,
1711
- y: particle.spin.direction === "clockwise" ? Math.sin : Math.cos
1712
- };
1713
- particle.position.x = particle.spin.center.x + particle.spin.radius * updateFunc.x(particle.spin.angle);
1714
- particle.position.y = particle.spin.center.y + particle.spin.radius * updateFunc.y(particle.spin.angle);
1715
- particle.spin.radius += particle.spin.acceleration;
1716
- const maxCanvasSize = Math.max(container.canvas.size.width, container.canvas.size.height);
1717
- if (particle.spin.radius > maxCanvasSize / 2) {
1718
- particle.spin.radius = maxCanvasSize / 2;
1719
- particle.spin.acceleration *= -1;
1720
- } else if (particle.spin.radius < 0) {
1721
- particle.spin.radius = 0;
1722
- particle.spin.acceleration *= -1;
1723
- }
1724
- particle.spin.angle += moveSpeed / 100 * (1 - particle.spin.radius / maxCanvasSize);
1725
- }
1726
- applyPath(particle, delta) {
1727
- const particlesOptions = particle.options;
1728
- const pathOptions = particlesOptions.move.path;
1729
- const pathEnabled = pathOptions.enable;
1730
- if (!pathEnabled) {
1731
- return;
1732
- }
1733
- const container = this.container;
1734
- if (particle.lastPathTime <= particle.pathDelay) {
1735
- particle.lastPathTime += delta.value;
1736
- return;
1737
- }
1738
- const path = container.pathGenerator.generate(particle);
1739
- particle.velocity.addTo(path);
1740
- if (pathOptions.clamp) {
1741
- particle.velocity.x = clamp(particle.velocity.x, -1, 1);
1742
- particle.velocity.y = clamp(particle.velocity.y, -1, 1);
1743
- }
1744
- particle.lastPathTime -= particle.pathDelay;
1745
- }
1746
- moveParallax(particle) {
1747
- const container = this.container;
1748
- const options = container.actualOptions;
1749
- if (isSsr() || !options.interactivity.events.onHover.parallax.enable) {
1750
- return;
1751
- }
1752
- const parallaxForce = options.interactivity.events.onHover.parallax.force;
1753
- const mousePos = container.interactivity.mouse.position;
1754
- if (!mousePos) {
1755
- return;
1756
- }
1757
- const canvasCenter = {
1758
- x: container.canvas.size.width / 2,
1759
- y: container.canvas.size.height / 2
1760
- };
1761
- const parallaxSmooth = options.interactivity.events.onHover.parallax.smooth;
1762
- const factor = particle.getRadius() / parallaxForce;
1763
- const tmp = {
1764
- x: (mousePos.x - canvasCenter.x) * factor,
1765
- y: (mousePos.y - canvasCenter.y) * factor
1766
- };
1767
- particle.offset.x += (tmp.x - particle.offset.x) / parallaxSmooth;
1768
- particle.offset.y += (tmp.y - particle.offset.y) / parallaxSmooth;
1769
- }
1770
- getProximitySpeedFactor(particle) {
1771
- const container = this.container;
1772
- const options = container.actualOptions;
1773
- const active = isInArray("slow", options.interactivity.events.onHover.mode);
1774
- if (!active) {
1775
- return 1;
1776
- }
1777
- const mousePos = this.container.interactivity.mouse.position;
1778
- if (!mousePos) {
1779
- return 1;
1780
- }
1781
- const particlePos = particle.getPosition();
1782
- const dist = getDistance(mousePos, particlePos);
1783
- const radius = container.retina.slowModeRadius;
1784
- if (dist > radius) {
1785
- return 1;
1786
- }
1787
- const proximityFactor = dist / radius || 0;
1788
- const slowFactor = options.interactivity.modes.slow.factor;
1789
- return proximityFactor / slowFactor;
1790
- }
1791
- }
1792
- var Plugins_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
1793
- if (kind === "m") throw new TypeError("Private method is not writable");
1794
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1795
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1796
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
1797
- value;
1798
- };
1799
- var _Plugins_engine;
1800
- class Plugins {
1801
- constructor(engine) {
1802
- _Plugins_engine.set(this, void 0);
1803
- Plugins_classPrivateFieldSet(this, _Plugins_engine, engine, "f");
1804
- this.plugins = [];
1805
- this.interactorsInitializers = new Map;
1806
- this.updatersInitializers = new Map;
1807
- this.interactors = new Map;
1808
- this.updaters = new Map;
1809
- this.presets = new Map;
1810
- this.drawers = new Map;
1811
- this.pathGenerators = new Map;
1812
- }
1813
- getPlugin(plugin) {
1814
- return this.plugins.find((t => t.id === plugin));
1815
- }
1816
- addPlugin(plugin) {
1817
- if (!this.getPlugin(plugin.id)) {
1818
- this.plugins.push(plugin);
1819
- }
1820
- }
1821
- getAvailablePlugins(container) {
1822
- const res = new Map;
1823
- for (const plugin of this.plugins) {
1824
- if (!plugin.needsPlugin(container.actualOptions)) {
1825
- continue;
1826
- }
1827
- res.set(plugin.id, plugin.getPlugin(container));
1828
- }
1829
- return res;
1830
- }
1831
- loadOptions(options, sourceOptions) {
1832
- for (const plugin of this.plugins) {
1833
- plugin.loadOptions(options, sourceOptions);
1834
- }
1835
- }
1836
- getPreset(preset) {
1837
- return this.presets.get(preset);
1838
- }
1839
- addPreset(presetKey, options, override = false) {
1840
- if (override || !this.getPreset(presetKey)) {
1841
- this.presets.set(presetKey, options);
1842
- }
1843
- }
1844
- addShapeDrawer(type, drawer) {
1845
- if (!this.getShapeDrawer(type)) {
1846
- this.drawers.set(type, drawer);
1847
- }
1848
- }
1849
- getShapeDrawer(type) {
1850
- return this.drawers.get(type);
1851
- }
1852
- getSupportedShapes() {
1853
- return this.drawers.keys();
1854
- }
1855
- getPathGenerator(type) {
1856
- return this.pathGenerators.get(type);
1857
- }
1858
- addPathGenerator(type, pathGenerator) {
1859
- if (!this.getPathGenerator(type)) {
1860
- this.pathGenerators.set(type, pathGenerator);
1861
- }
1862
- }
1863
- getInteractors(container, force = false) {
1864
- let res = this.interactors.get(container);
1865
- if (!res || force) {
1866
- res = [ ...this.interactorsInitializers.values() ].map((t => t(container)));
1867
- this.interactors.set(container, res);
1868
- }
1869
- return res;
1870
- }
1871
- addInteractor(name, initInteractor) {
1872
- this.interactorsInitializers.set(name, initInteractor);
1873
- }
1874
- getUpdaters(container, force = false) {
1875
- let res = this.updaters.get(container);
1876
- if (!res || force) {
1877
- res = [ ...this.updatersInitializers.values() ].map((t => t(container)));
1878
- this.updaters.set(container, res);
1879
- }
1880
- return res;
1881
- }
1882
- addParticleUpdater(name, initUpdater) {
1883
- this.updatersInitializers.set(name, initUpdater);
1884
- }
1885
- }
1886
- _Plugins_engine = new WeakMap;
1887
- class QuadTree_QuadTree {
1888
- constructor(rectangle, capacity) {
1889
- this.rectangle = rectangle;
1890
- this.capacity = capacity;
1891
- this.points = [];
1892
- this.divided = false;
1893
- }
1894
- subdivide() {
1895
- const x = this.rectangle.position.x;
1896
- const y = this.rectangle.position.y;
1897
- const w = this.rectangle.size.width;
1898
- const h = this.rectangle.size.height;
1899
- const capacity = this.capacity;
1900
- this.northEast = new QuadTree_QuadTree(new Rectangle(x, y, w / 2, h / 2), capacity);
1901
- this.northWest = new QuadTree_QuadTree(new Rectangle(x + w / 2, y, w / 2, h / 2), capacity);
1902
- this.southEast = new QuadTree_QuadTree(new Rectangle(x, y + h / 2, w / 2, h / 2), capacity);
1903
- this.southWest = new QuadTree_QuadTree(new Rectangle(x + w / 2, y + h / 2, w / 2, h / 2), capacity);
1904
- this.divided = true;
1905
- }
1906
- insert(point) {
1907
- var _a, _b, _c, _d, _e;
1908
- if (!this.rectangle.contains(point.position)) {
1909
- return false;
1910
- }
1911
- if (this.points.length < this.capacity) {
1912
- this.points.push(point);
1913
- return true;
1914
- }
1915
- if (!this.divided) {
1916
- this.subdivide();
1917
- }
1918
- return (_e = ((_a = this.northEast) === null || _a === void 0 ? void 0 : _a.insert(point)) || ((_b = this.northWest) === null || _b === void 0 ? void 0 : _b.insert(point)) || ((_c = this.southEast) === null || _c === void 0 ? void 0 : _c.insert(point)) || ((_d = this.southWest) === null || _d === void 0 ? void 0 : _d.insert(point))) !== null && _e !== void 0 ? _e : false;
1919
- }
1920
- queryCircle(position, radius) {
1921
- return this.query(new Circle(position.x, position.y, radius));
1922
- }
1923
- queryCircleWarp(position, radius, containerOrSize) {
1924
- const container = containerOrSize;
1925
- const size = containerOrSize;
1926
- return this.query(new CircleWarp(position.x, position.y, radius, container.canvas !== undefined ? container.canvas.size : size));
1927
- }
1928
- queryRectangle(position, size) {
1929
- return this.query(new Rectangle(position.x, position.y, size.width, size.height));
1930
- }
1931
- query(range, found) {
1932
- var _a, _b, _c, _d;
1933
- const res = found !== null && found !== void 0 ? found : [];
1934
- if (!range.intersects(this.rectangle)) {
1935
- return [];
1936
- } else {
1937
- for (const p of this.points) {
1938
- if (!range.contains(p.position) && getDistance(range.position, p.position) > p.particle.getRadius()) {
1939
- continue;
1940
- }
1941
- res.push(p.particle);
1942
- }
1943
- if (this.divided) {
1944
- (_a = this.northEast) === null || _a === void 0 ? void 0 : _a.query(range, res);
1945
- (_b = this.northWest) === null || _b === void 0 ? void 0 : _b.query(range, res);
1946
- (_c = this.southEast) === null || _c === void 0 ? void 0 : _c.query(range, res);
1947
- (_d = this.southWest) === null || _d === void 0 ? void 0 : _d.query(range, res);
1948
- }
1949
- }
1950
- return res;
1951
- }
1952
- }
1953
- class Canvas_Canvas {
1954
- constructor(container) {
1955
- this.container = container;
1956
- this.size = {
1957
- height: 0,
1958
- width: 0
1959
- };
1960
- this.context = null;
1961
- this.generatedCanvas = false;
1962
- }
1963
- init() {
1964
- this.resize();
1965
- this.initStyle();
1966
- this.initCover();
1967
- this.initTrail();
1968
- this.initBackground();
1969
- this.paint();
1970
- }
1971
- loadCanvas(canvas) {
1972
- var _a;
1973
- if (this.generatedCanvas) {
1974
- (_a = this.element) === null || _a === void 0 ? void 0 : _a.remove();
1975
- }
1976
- this.generatedCanvas = canvas.dataset && Constants.generatedAttribute in canvas.dataset ? canvas.dataset[Constants.generatedAttribute] === "true" : this.generatedCanvas;
1977
- this.element = canvas;
1978
- this.originalStyle = deepExtend({}, this.element.style);
1979
- this.size.height = canvas.offsetHeight;
1980
- this.size.width = canvas.offsetWidth;
1981
- this.context = this.element.getContext("2d");
1982
- this.container.retina.init();
1983
- this.initBackground();
1984
- }
1985
- destroy() {
1986
- var _a;
1987
- if (this.generatedCanvas) {
1988
- (_a = this.element) === null || _a === void 0 ? void 0 : _a.remove();
1989
- }
1990
- this.draw((ctx => {
1991
- clear(ctx, this.size);
1992
- }));
1993
- }
1994
- paint() {
1995
- const options = this.container.actualOptions;
1996
- this.draw((ctx => {
1997
- if (options.backgroundMask.enable && options.backgroundMask.cover) {
1998
- clear(ctx, this.size);
1999
- this.paintBase(this.coverColorStyle);
2000
- } else {
2001
- this.paintBase();
2002
- }
2003
- }));
2004
- }
2005
- clear() {
2006
- const options = this.container.actualOptions;
2007
- const trail = options.particles.move.trail;
2008
- if (options.backgroundMask.enable) {
2009
- this.paint();
2010
- } else if (trail.enable && trail.length > 0 && this.trailFillColor) {
2011
- this.paintBase(getStyleFromRgb(this.trailFillColor, 1 / trail.length));
2012
- } else {
2013
- this.draw((ctx => {
2014
- clear(ctx, this.size);
2015
- }));
2016
- }
2017
- }
2018
- async windowResize() {
2019
- if (!this.element) {
2020
- return;
2021
- }
2022
- const container = this.container;
2023
- this.resize();
2024
- const needsRefresh = container.updateActualOptions();
2025
- container.particles.setDensity();
2026
- for (const [, plugin] of container.plugins) {
2027
- if (plugin.resize !== undefined) {
2028
- plugin.resize();
2029
- }
2030
- }
2031
- if (needsRefresh) {
2032
- await container.refresh();
2033
- }
2034
- }
2035
- resize() {
2036
- if (!this.element) {
2037
- return;
2038
- }
2039
- const container = this.container;
2040
- const pxRatio = container.retina.pixelRatio;
2041
- const size = container.canvas.size;
2042
- const oldSize = Object.assign({}, size);
2043
- size.width = this.element.offsetWidth * pxRatio;
2044
- size.height = this.element.offsetHeight * pxRatio;
2045
- this.element.width = size.width;
2046
- this.element.height = size.height;
2047
- if (this.container.started) {
2048
- this.resizeFactor = {
2049
- width: size.width / oldSize.width,
2050
- height: size.height / oldSize.height
2051
- };
2052
- }
2053
- }
2054
- drawConnectLine(p1, p2) {
2055
- this.draw((ctx => {
2056
- var _a;
2057
- const lineStyle = this.lineStyle(p1, p2);
2058
- if (!lineStyle) {
2059
- return;
2060
- }
2061
- const pos1 = p1.getPosition();
2062
- const pos2 = p2.getPosition();
2063
- drawConnectLine(ctx, (_a = p1.retina.linksWidth) !== null && _a !== void 0 ? _a : this.container.retina.linksWidth, lineStyle, pos1, pos2);
2064
- }));
2065
- }
2066
- drawGrabLine(particle, lineColor, opacity, mousePos) {
2067
- const container = this.container;
2068
- this.draw((ctx => {
2069
- var _a;
2070
- const beginPos = particle.getPosition();
2071
- drawGrabLine(ctx, (_a = particle.retina.linksWidth) !== null && _a !== void 0 ? _a : container.retina.linksWidth, beginPos, mousePos, lineColor, opacity);
2072
- }));
2073
- }
2074
- drawParticle(particle, delta) {
2075
- var _a, _b, _c, _d, _e, _f;
2076
- if (particle.spawning || particle.destroyed) {
2077
- return;
2078
- }
2079
- const pfColor = particle.getFillColor();
2080
- const psColor = (_a = particle.getStrokeColor()) !== null && _a !== void 0 ? _a : pfColor;
2081
- if (!pfColor && !psColor) {
2082
- return;
2083
- }
2084
- let [fColor, sColor] = this.getPluginParticleColors(particle);
2085
- const pOptions = particle.options;
2086
- const twinkle = pOptions.twinkle.particles;
2087
- const twinkling = twinkle.enable && Math.random() < twinkle.frequency;
2088
- if (!fColor || !sColor) {
2089
- const twinkleRgb = colorToHsl(twinkle.color);
2090
- if (!fColor) {
2091
- fColor = twinkling && twinkleRgb !== undefined ? twinkleRgb : pfColor ? pfColor : undefined;
2092
- }
2093
- if (!sColor) {
2094
- sColor = twinkling && twinkleRgb !== undefined ? twinkleRgb : psColor ? psColor : undefined;
2095
- }
2096
- }
2097
- const options = this.container.actualOptions;
2098
- const zIndexOptions = particle.options.zIndex;
2099
- const zOpacityFactor = (1 - particle.zIndexFactor) ** zIndexOptions.opacityRate;
2100
- const radius = particle.getRadius();
2101
- const opacity = twinkling ? getRangeValue(twinkle.opacity) : (_d = (_b = particle.bubble.opacity) !== null && _b !== void 0 ? _b : (_c = particle.opacity) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : 1;
2102
- const strokeOpacity = (_f = (_e = particle.stroke) === null || _e === void 0 ? void 0 : _e.opacity) !== null && _f !== void 0 ? _f : opacity;
2103
- const zOpacity = opacity * zOpacityFactor;
2104
- const fillColorValue = fColor ? getStyleFromHsl(fColor, zOpacity) : undefined;
2105
- if (!fillColorValue && !sColor) {
2106
- return;
2107
- }
2108
- this.draw((ctx => {
2109
- const zSizeFactor = (1 - particle.zIndexFactor) ** zIndexOptions.sizeRate;
2110
- const zStrokeOpacity = strokeOpacity * zOpacityFactor;
2111
- const strokeColorValue = sColor ? getStyleFromHsl(sColor, zStrokeOpacity) : fillColorValue;
2112
- if (radius <= 0) {
2113
- return;
2114
- }
2115
- const container = this.container;
2116
- for (const updater of container.particles.updaters) {
2117
- if (updater.beforeDraw) {
2118
- updater.beforeDraw(particle);
2119
- }
2120
- }
2121
- drawParticle(this.container, ctx, particle, delta, fillColorValue, strokeColorValue, options.backgroundMask.enable, options.backgroundMask.composite, radius * zSizeFactor, zOpacity, particle.options.shadow, particle.gradient);
2122
- for (const updater of container.particles.updaters) {
2123
- if (updater.afterDraw) {
2124
- updater.afterDraw(particle);
2125
- }
2126
- }
2127
- }));
2128
- }
2129
- drawPlugin(plugin, delta) {
2130
- this.draw((ctx => {
2131
- drawPlugin(ctx, plugin, delta);
2132
- }));
2133
- }
2134
- drawParticlePlugin(plugin, particle, delta) {
2135
- this.draw((ctx => {
2136
- drawParticlePlugin(ctx, plugin, particle, delta);
2137
- }));
2138
- }
2139
- initBackground() {
2140
- const options = this.container.actualOptions;
2141
- const background = options.background;
2142
- const element = this.element;
2143
- const elementStyle = element === null || element === void 0 ? void 0 : element.style;
2144
- if (!elementStyle) {
2145
- return;
2146
- }
2147
- if (background.color) {
2148
- const color = colorToRgb(background.color);
2149
- elementStyle.backgroundColor = color ? getStyleFromRgb(color, background.opacity) : "";
2150
- } else {
2151
- elementStyle.backgroundColor = "";
2152
- }
2153
- elementStyle.backgroundImage = background.image || "";
2154
- elementStyle.backgroundPosition = background.position || "";
2155
- elementStyle.backgroundRepeat = background.repeat || "";
2156
- elementStyle.backgroundSize = background.size || "";
2157
- }
2158
- draw(cb) {
2159
- if (!this.context) {
2160
- return;
2161
- }
2162
- return cb(this.context);
2163
- }
2164
- initCover() {
2165
- const options = this.container.actualOptions;
2166
- const cover = options.backgroundMask.cover;
2167
- const color = cover.color;
2168
- const coverRgb = colorToRgb(color);
2169
- if (coverRgb) {
2170
- const coverColor = {
2171
- r: coverRgb.r,
2172
- g: coverRgb.g,
2173
- b: coverRgb.b,
2174
- a: cover.opacity
2175
- };
2176
- this.coverColorStyle = getStyleFromRgb(coverColor, coverColor.a);
2177
- console.log(this.coverColorStyle);
2178
- }
2179
- }
2180
- initTrail() {
2181
- const options = this.container.actualOptions;
2182
- const trail = options.particles.move.trail;
2183
- const fillColor = colorToRgb(trail.fillColor);
2184
- if (fillColor) {
2185
- const trail = options.particles.move.trail;
2186
- this.trailFillColor = {
2187
- r: fillColor.r,
2188
- g: fillColor.g,
2189
- b: fillColor.b,
2190
- a: 1 / trail.length
2191
- };
2192
- }
2193
- }
2194
- getPluginParticleColors(particle) {
2195
- let fColor;
2196
- let sColor;
2197
- for (const [, plugin] of this.container.plugins) {
2198
- if (!fColor && plugin.particleFillColor) {
2199
- fColor = colorToHsl(plugin.particleFillColor(particle));
2200
- }
2201
- if (!sColor && plugin.particleStrokeColor) {
2202
- sColor = colorToHsl(plugin.particleStrokeColor(particle));
2203
- }
2204
- if (fColor && sColor) {
2205
- break;
2206
- }
2207
- }
2208
- return [ fColor, sColor ];
2209
- }
2210
- initStyle() {
2211
- const element = this.element, options = this.container.actualOptions;
2212
- if (!element) {
2213
- return;
2214
- }
2215
- const originalStyle = this.originalStyle;
2216
- if (options.fullScreen.enable) {
2217
- this.originalStyle = deepExtend({}, element.style);
2218
- element.style.setProperty("position", "fixed", "important");
2219
- element.style.setProperty("z-index", options.fullScreen.zIndex.toString(10), "important");
2220
- element.style.setProperty("top", "0", "important");
2221
- element.style.setProperty("left", "0", "important");
2222
- element.style.setProperty("width", "100%", "important");
2223
- element.style.setProperty("height", "100%", "important");
2224
- } else if (originalStyle) {
2225
- element.style.position = originalStyle.position;
2226
- element.style.zIndex = originalStyle.zIndex;
2227
- element.style.top = originalStyle.top;
2228
- element.style.left = originalStyle.left;
2229
- element.style.width = originalStyle.width;
2230
- element.style.height = originalStyle.height;
2231
- }
2232
- for (const key in options.style) {
2233
- if (!key || !options.style) {
2234
- continue;
2235
- }
2236
- const value = options.style[key];
2237
- if (!value) {
2238
- continue;
2239
- }
2240
- element.style.setProperty(key, value, "important");
2241
- }
2242
- }
2243
- paintBase(baseColor) {
2244
- this.draw((ctx => {
2245
- paintBase(ctx, this.size, baseColor);
2246
- }));
2247
- }
2248
- lineStyle(p1, p2) {
2249
- return this.draw((ctx => {
2250
- const options = this.container.actualOptions;
2251
- const connectOptions = options.interactivity.modes.connect;
2252
- return gradient(ctx, p1, p2, connectOptions.links.opacity);
2253
- }));
2254
- }
2255
- }
2256
- class Trail_Trail {
2257
- constructor() {
2258
- this.delay = 1;
2259
- this.pauseOnStop = false;
2260
- this.quantity = 1;
2261
- }
2262
- load(data) {
2263
- if (data === undefined) {
2264
- return;
2265
- }
2266
- if (data.delay !== undefined) {
2267
- this.delay = data.delay;
2268
- }
2269
- if (data.quantity !== undefined) {
2270
- this.quantity = data.quantity;
2271
- }
2272
- if (data.particles !== undefined) {
2273
- this.particles = deepExtend({}, data.particles);
2274
- }
2275
- if (data.pauseOnStop !== undefined) {
2276
- this.pauseOnStop = data.pauseOnStop;
2277
- }
2278
- }
2279
- }
2280
- class Modes_Modes {
2281
- constructor() {
2282
- this.attract = new Attract;
2283
- this.bounce = new Bounce;
2284
- this.bubble = new Bubble;
2285
- this.connect = new Connect;
2286
- this.grab = new Grab;
2287
- this.light = new Light;
2288
- this.push = new Push;
2289
- this.remove = new Remove;
2290
- this.repulse = new Repulse;
2291
- this.slow = new Slow;
2292
- this.trail = new Trail;
2293
- }
2294
- load(data) {
2295
- if (data === undefined) {
2296
- return;
2297
- }
2298
- this.attract.load(data.attract);
2299
- this.bubble.load(data.bubble);
2300
- this.connect.load(data.connect);
2301
- this.grab.load(data.grab);
2302
- this.light.load(data.light);
2303
- this.push.load(data.push);
2304
- this.remove.load(data.remove);
2305
- this.repulse.load(data.repulse);
2306
- this.slow.load(data.slow);
2307
- this.trail.load(data.trail);
2308
- }
2309
- }
2310
- class Interactivity_Interactivity {
2311
- constructor() {
2312
- this.detectsOn = "window";
2313
- this.events = new Events;
2314
- this.modes = new Modes;
2315
- }
2316
- get detect_on() {
2317
- return this.detectsOn;
2318
- }
2319
- set detect_on(value) {
2320
- this.detectsOn = value;
2321
- }
2322
- load(data) {
2323
- var _a, _b, _c;
2324
- if (data === undefined) {
2325
- return;
2326
- }
2327
- const detectsOn = (_a = data.detectsOn) !== null && _a !== void 0 ? _a : data.detect_on;
2328
- if (detectsOn !== undefined) {
2329
- this.detectsOn = detectsOn;
2330
- }
2331
- this.events.load(data.events);
2332
- this.modes.load(data.modes);
2333
- if (((_c = (_b = data.modes) === null || _b === void 0 ? void 0 : _b.slow) === null || _c === void 0 ? void 0 : _c.active) === true) {
2334
- if (this.events.onHover.mode instanceof Array) {
2335
- if (this.events.onHover.mode.indexOf("slow") < 0) {
2336
- this.events.onHover.mode.push("slow");
2337
- }
2338
- } else if (this.events.onHover.mode !== "slow") {
2339
- this.events.onHover.mode = [ this.events.onHover.mode, "slow" ];
2340
- }
2341
- }
2342
- }
2343
- }
2344
- class ManualParticle_ManualParticle {
2345
- load(data) {
2346
- var _a, _b;
2347
- if (!data) {
2348
- return;
2349
- }
2350
- if (data.position !== undefined) {
2351
- this.position = {
2352
- x: (_a = data.position.x) !== null && _a !== void 0 ? _a : 50,
2353
- y: (_b = data.position.y) !== null && _b !== void 0 ? _b : 50
2354
- };
2355
- }
2356
- if (data.options !== undefined) {
2357
- this.options = deepExtend({}, data.options);
2358
- }
2359
- }
2360
- }
2361
- class ColorAnimation_ColorAnimation {
2362
- constructor() {
2363
- this.count = 0;
2364
- this.enable = false;
2365
- this.offset = 0;
2366
- this.speed = 1;
2367
- this.sync = true;
2368
- }
2369
- load(data) {
2370
- if (data === undefined) {
2371
- return;
2372
- }
2373
- if (data.count !== undefined) {
2374
- this.count = setRangeValue(data.count);
2375
- }
2376
- if (data.enable !== undefined) {
2377
- this.enable = data.enable;
2378
- }
2379
- if (data.offset !== undefined) {
2380
- this.offset = setRangeValue(data.offset);
2381
- }
2382
- if (data.speed !== undefined) {
2383
- this.speed = setRangeValue(data.speed);
2384
- }
2385
- if (data.sync !== undefined) {
2386
- this.sync = data.sync;
2387
- }
2388
- }
2389
- }
2390
- class HslAnimation_HslAnimation {
2391
- constructor() {
2392
- this.h = new ColorAnimation;
2393
- this.s = new ColorAnimation;
2394
- this.l = new ColorAnimation;
2395
- }
2396
- load(data) {
2397
- if (!data) {
2398
- return;
2399
- }
2400
- this.h.load(data.h);
2401
- this.s.load(data.s);
2402
- this.l.load(data.l);
2403
- }
2404
- }
2405
- class AnimatableColor_AnimatableColor extends(null && OptionsColor){
2406
- constructor() {
2407
- super();
2408
- this.animation = new HslAnimation;
2409
- }
2410
- static create(source, data) {
2411
- const color = new AnimatableColor_AnimatableColor;
2412
- color.load(source);
2413
- if (data !== undefined) {
2414
- if (typeof data === "string" || data instanceof Array) {
2415
- color.load({
2416
- value: data
2417
- });
2418
- } else {
2419
- color.load(data);
2420
- }
2421
- }
2422
- return color;
2423
- }
2424
- load(data) {
2425
- super.load(data);
2426
- if (!data) {
2427
- return;
2428
- }
2429
- const colorAnimation = data.animation;
2430
- if (colorAnimation !== undefined) {
2431
- if (colorAnimation.enable !== undefined) {
2432
- this.animation.h.load(colorAnimation);
2433
- } else {
2434
- this.animation.load(data.animation);
2435
- }
2436
- }
2437
- }
2438
- }
2439
- class AnimatableGradient_AnimatableGradient {
2440
- constructor() {
2441
- this.angle = new GradientAngle;
2442
- this.colors = [];
2443
- this.type = "random";
2444
- }
2445
- load(data) {
2446
- if (!data) {
2447
- return;
2448
- }
2449
- this.angle.load(data.angle);
2450
- if (data.colors !== undefined) {
2451
- this.colors = data.colors.map((s => {
2452
- const tmp = new AnimatableGradientColor;
2453
- tmp.load(s);
2454
- return tmp;
2455
- }));
2456
- }
2457
- if (data.type !== undefined) {
2458
- this.type = data.type;
2459
- }
2460
- }
2461
- }
2462
- class GradientAngle {
2463
- constructor() {
2464
- this.value = 0;
2465
- this.animation = new GradientAngleAnimation;
2466
- this.direction = "clockwise";
2467
- }
2468
- load(data) {
2469
- if (!data) {
2470
- return;
2471
- }
2472
- this.animation.load(data.animation);
2473
- if (data.value !== undefined) {
2474
- this.value = data.value;
2475
- }
2476
- if (data.direction !== undefined) {
2477
- this.direction = data.direction;
2478
- }
2479
- }
2480
- }
2481
- class GradientColorOpacity {
2482
- constructor() {
2483
- this.value = 0;
2484
- this.animation = new GradientColorOpacityAnimation;
2485
- }
2486
- load(data) {
2487
- if (!data) {
2488
- return;
2489
- }
2490
- this.animation.load(data.animation);
2491
- if (data.value !== undefined) {
2492
- this.value = setRangeValue(data.value);
2493
- }
2494
- }
2495
- }
2496
- class AnimatableGradientColor {
2497
- constructor() {
2498
- this.stop = 0;
2499
- this.value = new AnimatableColor;
2500
- }
2501
- load(data) {
2502
- if (!data) {
2503
- return;
2504
- }
2505
- if (data.stop !== undefined) {
2506
- this.stop = data.stop;
2507
- }
2508
- this.value = AnimatableColor.create(this.value, data.value);
2509
- if (data.opacity !== undefined) {
2510
- this.opacity = new GradientColorOpacity;
2511
- if (typeof data.opacity === "number") {
2512
- this.opacity.value = data.opacity;
2513
- } else {
2514
- this.opacity.load(data.opacity);
2515
- }
2516
- }
2517
- }
2518
- }
2519
- class GradientAngleAnimation {
2520
- constructor() {
2521
- this.count = 0;
2522
- this.enable = false;
2523
- this.speed = 0;
2524
- this.sync = false;
2525
- }
2526
- load(data) {
2527
- if (!data) {
2528
- return;
2529
- }
2530
- if (data.count !== undefined) {
2531
- this.count = setRangeValue(data.count);
2532
- }
2533
- if (data.enable !== undefined) {
2534
- this.enable = data.enable;
2535
- }
2536
- if (data.speed !== undefined) {
2537
- this.speed = setRangeValue(data.speed);
2538
- }
2539
- if (data.sync !== undefined) {
2540
- this.sync = data.sync;
2541
- }
2542
- }
2543
- }
2544
- class GradientColorOpacityAnimation {
2545
- constructor() {
2546
- this.count = 0;
2547
- this.enable = false;
2548
- this.speed = 0;
2549
- this.sync = false;
2550
- this.startValue = "random";
2551
- }
2552
- load(data) {
2553
- if (!data) {
2554
- return;
2555
- }
2556
- if (data.count !== undefined) {
2557
- this.count = setRangeValue(data.count);
2558
- }
2559
- if (data.enable !== undefined) {
2560
- this.enable = data.enable;
2561
- }
2562
- if (data.speed !== undefined) {
2563
- this.speed = setRangeValue(data.speed);
2564
- }
2565
- if (data.sync !== undefined) {
2566
- this.sync = data.sync;
2567
- }
2568
- if (data.startValue !== undefined) {
2569
- this.startValue = data.startValue;
2570
- }
2571
- }
2572
- }
2573
- class ValueWithRandom_ValueWithRandom {
2574
- constructor() {
2575
- this.random = new Random;
2576
- this.value = 0;
2577
- }
2578
- load(data) {
2579
- if (!data) {
2580
- return;
2581
- }
2582
- if (typeof data.random === "boolean") {
2583
- this.random.enable = data.random;
2584
- } else {
2585
- this.random.load(data.random);
2586
- }
2587
- if (data.value !== undefined) {
2588
- this.value = setRangeValue(data.value, this.random.enable ? this.random.minimumValue : undefined);
2589
- }
2590
- }
2591
- }
2592
- class BounceFactor_BounceFactor extends(null && ValueWithRandom){
2593
- constructor() {
2594
- super();
2595
- this.random.minimumValue = .1;
2596
- this.value = 1;
2597
- }
2598
- }
2599
- class Bounce_Bounce {
2600
- constructor() {
2601
- this.horizontal = new BounceFactor;
2602
- this.vertical = new BounceFactor;
2603
- }
2604
- load(data) {
2605
- if (!data) {
2606
- return;
2607
- }
2608
- this.horizontal.load(data.horizontal);
2609
- this.vertical.load(data.vertical);
2610
- }
2611
- }
2612
- class Collisions_Collisions {
2613
- constructor() {
2614
- this.bounce = new Bounce;
2615
- this.enable = false;
2616
- this.mode = "bounce";
2617
- this.overlap = new CollisionsOverlap;
2618
- }
2619
- load(data) {
2620
- if (data === undefined) {
2621
- return;
2622
- }
2623
- this.bounce.load(data.bounce);
2624
- if (data.enable !== undefined) {
2625
- this.enable = data.enable;
2626
- }
2627
- if (data.mode !== undefined) {
2628
- this.mode = data.mode;
2629
- }
2630
- this.overlap.load(data.overlap);
2631
- }
2632
- }
2633
- class SplitFactor_SplitFactor extends(null && ValueWithRandom){
2634
- constructor() {
2635
- super();
2636
- this.value = 3;
2637
- }
2638
- }
2639
- class SplitRate_SplitRate extends(null && ValueWithRandom){
2640
- constructor() {
2641
- super();
2642
- this.value = {
2643
- min: 4,
2644
- max: 9
2645
- };
2646
- }
2647
- }
2648
- class Split_Split {
2649
- constructor() {
2650
- this.count = 1;
2651
- this.factor = new SplitFactor;
2652
- this.rate = new SplitRate;
2653
- this.sizeOffset = true;
2654
- }
2655
- load(data) {
2656
- if (!data) {
2657
- return;
2658
- }
2659
- if (data.count !== undefined) {
2660
- this.count = data.count;
2661
- }
2662
- this.factor.load(data.factor);
2663
- this.rate.load(data.rate);
2664
- if (data.particles !== undefined) {
2665
- this.particles = deepExtend({}, data.particles);
2666
- }
2667
- if (data.sizeOffset !== undefined) {
2668
- this.sizeOffset = data.sizeOffset;
2669
- }
2670
- }
2671
- }
2672
- class Destroy_Destroy {
2673
- constructor() {
2674
- this.mode = "none";
2675
- this.split = new Split;
2676
- }
2677
- load(data) {
2678
- if (!data) {
2679
- return;
2680
- }
2681
- if (data.mode !== undefined) {
2682
- this.mode = data.mode;
2683
- }
2684
- this.split.load(data.split);
2685
- }
2686
- }
2687
- class LifeDelay_LifeDelay extends(null && ValueWithRandom){
2688
- constructor() {
2689
- super();
2690
- this.sync = false;
2691
- }
2692
- load(data) {
2693
- if (!data) {
2694
- return;
2695
- }
2696
- super.load(data);
2697
- if (data.sync !== undefined) {
2698
- this.sync = data.sync;
2699
- }
2700
- }
2701
- }
2702
- class LifeDuration_LifeDuration extends(null && ValueWithRandom){
2703
- constructor() {
2704
- super();
2705
- this.random.minimumValue = 1e-4;
2706
- this.sync = false;
2707
- }
2708
- load(data) {
2709
- if (data === undefined) {
2710
- return;
2711
- }
2712
- super.load(data);
2713
- if (data.sync !== undefined) {
2714
- this.sync = data.sync;
2715
- }
2716
- }
2717
- }
2718
- class Life_Life {
2719
- constructor() {
2720
- this.count = 0;
2721
- this.delay = new LifeDelay;
2722
- this.duration = new LifeDuration;
2723
- }
2724
- load(data) {
2725
- if (data === undefined) {
2726
- return;
2727
- }
2728
- if (data.count !== undefined) {
2729
- this.count = data.count;
2730
- }
2731
- this.delay.load(data.delay);
2732
- this.duration.load(data.duration);
2733
- }
2734
- }
2735
- class Attract_Attract {
2736
- constructor() {
2737
- this.distance = 200;
2738
- this.enable = false;
2739
- this.rotate = {
2740
- x: 3e3,
2741
- y: 3e3
2742
- };
2743
- }
2744
- get rotateX() {
2745
- return this.rotate.x;
2746
- }
2747
- set rotateX(value) {
2748
- this.rotate.x = value;
2749
- }
2750
- get rotateY() {
2751
- return this.rotate.y;
2752
- }
2753
- set rotateY(value) {
2754
- this.rotate.y = value;
2755
- }
2756
- load(data) {
2757
- var _a, _b, _c, _d;
2758
- if (!data) {
2759
- return;
2760
- }
2761
- if (data.distance !== undefined) {
2762
- this.distance = setRangeValue(data.distance);
2763
- }
2764
- if (data.enable !== undefined) {
2765
- this.enable = data.enable;
2766
- }
2767
- const rotateX = (_b = (_a = data.rotate) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : data.rotateX;
2768
- if (rotateX !== undefined) {
2769
- this.rotate.x = rotateX;
2770
- }
2771
- const rotateY = (_d = (_c = data.rotate) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : data.rotateY;
2772
- if (rotateY !== undefined) {
2773
- this.rotate.y = rotateY;
2774
- }
2775
- }
2776
- }
2777
- class MoveAngle_MoveAngle {
2778
- constructor() {
2779
- this.offset = 0;
2780
- this.value = 90;
2781
- }
2782
- load(data) {
2783
- if (data === undefined) {
2784
- return;
2785
- }
2786
- if (data.offset !== undefined) {
2787
- this.offset = setRangeValue(data.offset);
2788
- }
2789
- if (data.value !== undefined) {
2790
- this.value = setRangeValue(data.value);
2791
- }
2792
- }
2793
- }
2794
- class MoveGravity_MoveGravity {
2795
- constructor() {
2796
- this.acceleration = 9.81;
2797
- this.enable = false;
2798
- this.inverse = false;
2799
- this.maxSpeed = 50;
2800
- }
2801
- load(data) {
2802
- if (!data) {
2803
- return;
2804
- }
2805
- if (data.acceleration !== undefined) {
2806
- this.acceleration = setRangeValue(data.acceleration);
2807
- }
2808
- if (data.enable !== undefined) {
2809
- this.enable = data.enable;
2810
- }
2811
- if (data.inverse !== undefined) {
2812
- this.inverse = data.inverse;
2813
- }
2814
- if (data.maxSpeed !== undefined) {
2815
- this.maxSpeed = setRangeValue(data.maxSpeed);
2816
- }
2817
- }
2818
- }
2819
- class PathDelay_PathDelay extends(null && ValueWithRandom){
2820
- constructor() {
2821
- super();
2822
- }
2823
- }
2824
- class Path_Path {
2825
- constructor() {
2826
- this.clamp = true;
2827
- this.delay = new PathDelay;
2828
- this.enable = false;
2829
- this.options = {};
2830
- }
2831
- load(data) {
2832
- if (data === undefined) {
2833
- return;
2834
- }
2835
- if (data.clamp !== undefined) {
2836
- this.clamp = data.clamp;
2837
- }
2838
- this.delay.load(data.delay);
2839
- if (data.enable !== undefined) {
2840
- this.enable = data.enable;
2841
- }
2842
- this.generator = data.generator;
2843
- if (data.options) {
2844
- this.options = deepExtend(this.options, data.options);
2845
- }
2846
- }
2847
- }
2848
- class Spin_Spin {
2849
- constructor() {
2850
- this.acceleration = 0;
2851
- this.enable = false;
2852
- }
2853
- load(data) {
2854
- if (!data) {
2855
- return;
2856
- }
2857
- if (data.acceleration !== undefined) {
2858
- this.acceleration = setRangeValue(data.acceleration);
2859
- }
2860
- if (data.enable !== undefined) {
2861
- this.enable = data.enable;
2862
- }
2863
- this.position = data.position ? deepExtend({}, data.position) : undefined;
2864
- }
2865
- }
2866
- class Move_Move {
2867
- constructor() {
2868
- this.angle = new MoveAngle;
2869
- this.attract = new Attract;
2870
- this.decay = 0;
2871
- this.distance = {};
2872
- this.direction = "none";
2873
- this.drift = 0;
2874
- this.enable = false;
2875
- this.gravity = new MoveGravity;
2876
- this.path = new Path;
2877
- this.outModes = new OutModes;
2878
- this.random = false;
2879
- this.size = false;
2880
- this.speed = 2;
2881
- this.spin = new Spin;
2882
- this.straight = false;
2883
- this.trail = new Trail;
2884
- this.vibrate = false;
2885
- this.warp = false;
2886
- }
2887
- get collisions() {
2888
- return false;
2889
- }
2890
- set collisions(value) {}
2891
- get bounce() {
2892
- return this.collisions;
2893
- }
2894
- set bounce(value) {
2895
- this.collisions = value;
2896
- }
2897
- get out_mode() {
2898
- return this.outMode;
2899
- }
2900
- set out_mode(value) {
2901
- this.outMode = value;
2902
- }
2903
- get outMode() {
2904
- return this.outModes.default;
2905
- }
2906
- set outMode(value) {
2907
- this.outModes.default = value;
2908
- }
2909
- get noise() {
2910
- return this.path;
2911
- }
2912
- set noise(value) {
2913
- this.path = value;
2914
- }
2915
- load(data) {
2916
- var _a, _b, _c;
2917
- if (data === undefined) {
2918
- return;
2919
- }
2920
- if (data.angle !== undefined) {
2921
- if (typeof data.angle === "number") {
2922
- this.angle.value = data.angle;
2923
- } else {
2924
- this.angle.load(data.angle);
2925
- }
2926
- }
2927
- this.attract.load(data.attract);
2928
- if (data.decay !== undefined) {
2929
- this.decay = data.decay;
2930
- }
2931
- if (data.direction !== undefined) {
2932
- this.direction = data.direction;
2933
- }
2934
- if (data.distance !== undefined) {
2935
- this.distance = typeof data.distance === "number" ? {
2936
- horizontal: data.distance,
2937
- vertical: data.distance
2938
- } : deepExtend({}, data.distance);
2939
- }
2940
- if (data.drift !== undefined) {
2941
- this.drift = setRangeValue(data.drift);
2942
- }
2943
- if (data.enable !== undefined) {
2944
- this.enable = data.enable;
2945
- }
2946
- this.gravity.load(data.gravity);
2947
- const outMode = (_a = data.outMode) !== null && _a !== void 0 ? _a : data.out_mode;
2948
- if (data.outModes !== undefined || outMode !== undefined) {
2949
- if (typeof data.outModes === "string" || data.outModes === undefined && outMode !== undefined) {
2950
- this.outModes.load({
2951
- default: (_b = data.outModes) !== null && _b !== void 0 ? _b : outMode
2952
- });
2953
- } else {
2954
- this.outModes.load(data.outModes);
2955
- }
2956
- }
2957
- this.path.load((_c = data.path) !== null && _c !== void 0 ? _c : data.noise);
2958
- if (data.random !== undefined) {
2959
- this.random = data.random;
2960
- }
2961
- if (data.size !== undefined) {
2962
- this.size = data.size;
2963
- }
2964
- if (data.speed !== undefined) {
2965
- this.speed = setRangeValue(data.speed);
2966
- }
2967
- this.spin.load(data.spin);
2968
- if (data.straight !== undefined) {
2969
- this.straight = data.straight;
2970
- }
2971
- this.trail.load(data.trail);
2972
- if (data.vibrate !== undefined) {
2973
- this.vibrate = data.vibrate;
2974
- }
2975
- if (data.warp !== undefined) {
2976
- this.warp = data.warp;
2977
- }
2978
- }
2979
- }
2980
- class AnimationOptions_AnimationOptions {
2981
- constructor() {
2982
- this.count = 0;
2983
- this.enable = false;
2984
- this.speed = 1;
2985
- this.sync = false;
2986
- }
2987
- load(data) {
2988
- if (!data) {
2989
- return;
2990
- }
2991
- if (data.count !== undefined) {
2992
- this.count = setRangeValue(data.count);
2993
- }
2994
- if (data.enable !== undefined) {
2995
- this.enable = data.enable;
2996
- }
2997
- if (data.speed !== undefined) {
2998
- this.speed = setRangeValue(data.speed);
2999
- }
3000
- if (data.sync !== undefined) {
3001
- this.sync = data.sync;
3002
- }
3003
- }
3004
- }
3005
- class OpacityAnimation_OpacityAnimation extends(null && AnimationOptions){
3006
- constructor() {
3007
- super();
3008
- this.destroy = "none";
3009
- this.enable = false;
3010
- this.speed = 2;
3011
- this.startValue = "random";
3012
- this.sync = false;
3013
- }
3014
- get opacity_min() {
3015
- return this.minimumValue;
3016
- }
3017
- set opacity_min(value) {
3018
- this.minimumValue = value;
3019
- }
3020
- load(data) {
3021
- var _a;
3022
- if (data === undefined) {
3023
- return;
3024
- }
3025
- super.load(data);
3026
- if (data.destroy !== undefined) {
3027
- this.destroy = data.destroy;
3028
- }
3029
- if (data.enable !== undefined) {
3030
- this.enable = data.enable;
3031
- }
3032
- this.minimumValue = (_a = data.minimumValue) !== null && _a !== void 0 ? _a : data.opacity_min;
3033
- if (data.speed !== undefined) {
3034
- this.speed = data.speed;
3035
- }
3036
- if (data.startValue !== undefined) {
3037
- this.startValue = data.startValue;
3038
- }
3039
- if (data.sync !== undefined) {
3040
- this.sync = data.sync;
3041
- }
3042
- }
3043
- }
3044
- class Opacity_Opacity extends(null && ValueWithRandom){
3045
- constructor() {
3046
- super();
3047
- this.animation = new OpacityAnimation;
3048
- this.random.minimumValue = .1;
3049
- this.value = 1;
3050
- }
3051
- get anim() {
3052
- return this.animation;
3053
- }
3054
- set anim(value) {
3055
- this.animation = value;
3056
- }
3057
- load(data) {
3058
- var _a;
3059
- if (!data) {
3060
- return;
3061
- }
3062
- super.load(data);
3063
- const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
3064
- if (animation !== undefined) {
3065
- this.animation.load(animation);
3066
- this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
3067
- }
3068
- }
3069
- }
3070
- class OrbitRotation_OrbitRotation extends(null && ValueWithRandom){
3071
- constructor() {
3072
- super();
3073
- this.value = 45;
3074
- this.random.enable = false;
3075
- this.random.minimumValue = 0;
3076
- }
3077
- load(data) {
3078
- if (data === undefined) {
3079
- return;
3080
- }
3081
- super.load(data);
3082
- }
3083
- }
3084
- class Orbit_Orbit {
3085
- constructor() {
3086
- this.animation = new AnimationOptions;
3087
- this.enable = false;
3088
- this.opacity = 1;
3089
- this.rotation = new OrbitRotation;
3090
- this.width = 1;
3091
- }
3092
- load(data) {
3093
- if (data === undefined) {
3094
- return;
3095
- }
3096
- this.animation.load(data.animation);
3097
- this.rotation.load(data.rotation);
3098
- if (data.enable !== undefined) {
3099
- this.enable = data.enable;
3100
- }
3101
- if (data.opacity !== undefined) {
3102
- this.opacity = setRangeValue(data.opacity);
3103
- }
3104
- if (data.width !== undefined) {
3105
- this.width = setRangeValue(data.width);
3106
- }
3107
- if (data.radius !== undefined) {
3108
- this.radius = setRangeValue(data.radius);
3109
- }
3110
- if (data.color !== undefined) {
3111
- this.color = OptionsColor.create(this.color, data.color);
3112
- }
3113
- }
3114
- }
3115
- class Repulse_Repulse extends(null && ValueWithRandom){
3116
- constructor() {
3117
- super();
3118
- this.enabled = false;
3119
- this.distance = 1;
3120
- this.duration = 1;
3121
- this.factor = 1;
3122
- this.speed = 1;
3123
- }
3124
- load(data) {
3125
- super.load(data);
3126
- if (!data) {
3127
- return;
3128
- }
3129
- if (data.enabled !== undefined) {
3130
- this.enabled = data.enabled;
3131
- }
3132
- if (data.distance !== undefined) {
3133
- this.distance = setRangeValue(data.distance);
3134
- }
3135
- if (data.duration !== undefined) {
3136
- this.duration = setRangeValue(data.duration);
3137
- }
3138
- if (data.factor !== undefined) {
3139
- this.factor = setRangeValue(data.factor);
3140
- }
3141
- if (data.speed !== undefined) {
3142
- this.speed = setRangeValue(data.speed);
3143
- }
3144
- }
3145
- }
3146
- class RollLight_RollLight {
3147
- constructor() {
3148
- this.enable = false;
3149
- this.value = 0;
3150
- }
3151
- load(data) {
3152
- if (!data) {
3153
- return;
3154
- }
3155
- if (data.enable !== undefined) {
3156
- this.enable = data.enable;
3157
- }
3158
- if (data.value !== undefined) {
3159
- this.value = setRangeValue(data.value);
3160
- }
3161
- }
3162
- }
3163
- class Roll_Roll {
3164
- constructor() {
3165
- this.darken = new RollLight;
3166
- this.enable = false;
3167
- this.enlighten = new RollLight;
3168
- this.mode = "vertical";
3169
- this.speed = 25;
3170
- }
3171
- load(data) {
3172
- if (!data) {
3173
- return;
3174
- }
3175
- if (data.backColor !== undefined) {
3176
- this.backColor = OptionsColor.create(this.backColor, data.backColor);
3177
- }
3178
- this.darken.load(data.darken);
3179
- if (data.enable !== undefined) {
3180
- this.enable = data.enable;
3181
- }
3182
- this.enlighten.load(data.enlighten);
3183
- if (data.mode !== undefined) {
3184
- this.mode = data.mode;
3185
- }
3186
- if (data.speed !== undefined) {
3187
- this.speed = setRangeValue(data.speed);
3188
- }
3189
- }
3190
- }
3191
- class RotateAnimation_RotateAnimation {
3192
- constructor() {
3193
- this.enable = false;
3194
- this.speed = 0;
3195
- this.sync = false;
3196
- }
3197
- load(data) {
3198
- if (data === undefined) {
3199
- return;
3200
- }
3201
- if (data.enable !== undefined) {
3202
- this.enable = data.enable;
3203
- }
3204
- if (data.speed !== undefined) {
3205
- this.speed = setRangeValue(data.speed);
3206
- }
3207
- if (data.sync !== undefined) {
3208
- this.sync = data.sync;
3209
- }
3210
- }
3211
- }
3212
- class Rotate_Rotate extends(null && ValueWithRandom){
3213
- constructor() {
3214
- super();
3215
- this.animation = new RotateAnimation;
3216
- this.direction = "clockwise";
3217
- this.path = false;
3218
- this.value = 0;
3219
- }
3220
- load(data) {
3221
- if (!data) {
3222
- return;
3223
- }
3224
- super.load(data);
3225
- if (data.direction !== undefined) {
3226
- this.direction = data.direction;
3227
- }
3228
- this.animation.load(data.animation);
3229
- if (data.path !== undefined) {
3230
- this.path = data.path;
3231
- }
3232
- }
3233
- }
3234
- class Shape_Shape {
3235
- constructor() {
3236
- this.options = {};
3237
- this.type = "circle";
3238
- }
3239
- get image() {
3240
- var _a;
3241
- return (_a = this.options["image"]) !== null && _a !== void 0 ? _a : this.options["images"];
3242
- }
3243
- set image(value) {
3244
- this.options["image"] = value;
3245
- this.options["images"] = value;
3246
- }
3247
- get custom() {
3248
- return this.options;
3249
- }
3250
- set custom(value) {
3251
- this.options = value;
3252
- }
3253
- get images() {
3254
- return this.image;
3255
- }
3256
- set images(value) {
3257
- this.image = value;
3258
- }
3259
- get stroke() {
3260
- return [];
3261
- }
3262
- set stroke(_value) {}
3263
- get character() {
3264
- var _a;
3265
- return (_a = this.options["character"]) !== null && _a !== void 0 ? _a : this.options["char"];
3266
- }
3267
- set character(value) {
3268
- this.options["character"] = value;
3269
- this.options["char"] = value;
3270
- }
3271
- get polygon() {
3272
- var _a;
3273
- return (_a = this.options["polygon"]) !== null && _a !== void 0 ? _a : this.options["star"];
3274
- }
3275
- set polygon(value) {
3276
- this.options["polygon"] = value;
3277
- this.options["star"] = value;
3278
- }
3279
- load(data) {
3280
- var _a, _b, _c;
3281
- if (data === undefined) {
3282
- return;
3283
- }
3284
- const options = (_a = data.options) !== null && _a !== void 0 ? _a : data.custom;
3285
- if (options !== undefined) {
3286
- for (const shape in options) {
3287
- const item = options[shape];
3288
- if (item !== undefined) {
3289
- this.options[shape] = deepExtend((_b = this.options[shape]) !== null && _b !== void 0 ? _b : {}, item);
3290
- }
3291
- }
3292
- }
3293
- this.loadShape(data.character, "character", "char", true);
3294
- this.loadShape(data.polygon, "polygon", "star", false);
3295
- this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, "image", "images", true);
3296
- if (data.type !== undefined) {
3297
- this.type = data.type;
3298
- }
3299
- }
3300
- loadShape(item, mainKey, altKey, altOverride) {
3301
- var _a, _b, _c, _d;
3302
- if (item === undefined) {
3303
- return;
3304
- }
3305
- if (item instanceof Array) {
3306
- if (!(this.options[mainKey] instanceof Array)) {
3307
- this.options[mainKey] = [];
3308
- if (!this.options[altKey] || altOverride) {
3309
- this.options[altKey] = [];
3310
- }
3311
- }
3312
- this.options[mainKey] = deepExtend((_a = this.options[mainKey]) !== null && _a !== void 0 ? _a : [], item);
3313
- if (!this.options[altKey] || altOverride) {
3314
- this.options[altKey] = deepExtend((_b = this.options[altKey]) !== null && _b !== void 0 ? _b : [], item);
3315
- }
3316
- } else {
3317
- if (this.options[mainKey] instanceof Array) {
3318
- this.options[mainKey] = {};
3319
- if (!this.options[altKey] || altOverride) {
3320
- this.options[altKey] = {};
3321
- }
3322
- }
3323
- this.options[mainKey] = deepExtend((_c = this.options[mainKey]) !== null && _c !== void 0 ? _c : {}, item);
3324
- if (!this.options[altKey] || altOverride) {
3325
- this.options[altKey] = deepExtend((_d = this.options[altKey]) !== null && _d !== void 0 ? _d : {}, item);
3326
- }
3327
- }
3328
- }
3329
- }
3330
- class SizeAnimation_SizeAnimation extends(null && AnimationOptions){
3331
- constructor() {
3332
- super();
3333
- this.destroy = "none";
3334
- this.enable = false;
3335
- this.speed = 5;
3336
- this.startValue = "random";
3337
- this.sync = false;
3338
- }
3339
- get size_min() {
3340
- return this.minimumValue;
3341
- }
3342
- set size_min(value) {
3343
- this.minimumValue = value;
3344
- }
3345
- load(data) {
3346
- var _a;
3347
- if (data === undefined) {
3348
- return;
3349
- }
3350
- super.load(data);
3351
- if (data.destroy !== undefined) {
3352
- this.destroy = data.destroy;
3353
- }
3354
- if (data.enable !== undefined) {
3355
- this.enable = data.enable;
3356
- }
3357
- this.minimumValue = (_a = data.minimumValue) !== null && _a !== void 0 ? _a : data.size_min;
3358
- if (data.speed !== undefined) {
3359
- this.speed = data.speed;
3360
- }
3361
- if (data.startValue !== undefined) {
3362
- this.startValue = data.startValue;
3363
- }
3364
- if (data.sync !== undefined) {
3365
- this.sync = data.sync;
3366
- }
3367
- }
3368
- }
3369
- class Size_Size extends(null && ValueWithRandom){
3370
- constructor() {
3371
- super();
3372
- this.animation = new SizeAnimation;
3373
- this.random.minimumValue = 1;
3374
- this.value = 3;
3375
- }
3376
- get anim() {
3377
- return this.animation;
3378
- }
3379
- set anim(value) {
3380
- this.animation = value;
3381
- }
3382
- load(data) {
3383
- var _a;
3384
- if (!data) {
3385
- return;
3386
- }
3387
- super.load(data);
3388
- const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
3389
- if (animation !== undefined) {
3390
- this.animation.load(animation);
3391
- this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
3392
- }
3393
- }
3394
- }
3395
- class Stroke_Stroke {
3396
- constructor() {
3397
- this.width = 0;
3398
- }
3399
- load(data) {
3400
- if (data === undefined) {
3401
- return;
3402
- }
3403
- if (data.color !== undefined) {
3404
- this.color = AnimatableColor.create(this.color, data.color);
3405
- }
3406
- if (data.width !== undefined) {
3407
- this.width = data.width;
3408
- }
3409
- if (data.opacity !== undefined) {
3410
- this.opacity = data.opacity;
3411
- }
3412
- }
3413
- }
3414
- class TiltAnimation_TiltAnimation {
3415
- constructor() {
3416
- this.enable = false;
3417
- this.speed = 0;
3418
- this.sync = false;
3419
- }
3420
- load(data) {
3421
- if (data === undefined) {
3422
- return;
3423
- }
3424
- if (data.enable !== undefined) {
3425
- this.enable = data.enable;
3426
- }
3427
- if (data.speed !== undefined) {
3428
- this.speed = setRangeValue(data.speed);
3429
- }
3430
- if (data.sync !== undefined) {
3431
- this.sync = data.sync;
3432
- }
3433
- }
3434
- }
3435
- class Tilt_Tilt extends(null && ValueWithRandom){
3436
- constructor() {
3437
- super();
3438
- this.animation = new TiltAnimation;
3439
- this.direction = "clockwise";
3440
- this.enable = false;
3441
- this.value = 0;
3442
- }
3443
- load(data) {
3444
- if (!data) {
3445
- return;
3446
- }
3447
- super.load(data);
3448
- this.animation.load(data.animation);
3449
- if (data.direction !== undefined) {
3450
- this.direction = data.direction;
3451
- }
3452
- if (data.enable !== undefined) {
3453
- this.enable = data.enable;
3454
- }
3455
- }
3456
- }
3457
- class TwinkleValues_TwinkleValues {
3458
- constructor() {
3459
- this.enable = false;
3460
- this.frequency = .05;
3461
- this.opacity = 1;
3462
- }
3463
- load(data) {
3464
- if (data === undefined) {
3465
- return;
3466
- }
3467
- if (data.color !== undefined) {
3468
- this.color = OptionsColor.create(this.color, data.color);
3469
- }
3470
- if (data.enable !== undefined) {
3471
- this.enable = data.enable;
3472
- }
3473
- if (data.frequency !== undefined) {
3474
- this.frequency = data.frequency;
3475
- }
3476
- if (data.opacity !== undefined) {
3477
- this.opacity = setRangeValue(data.opacity);
3478
- }
3479
- }
3480
- }
3481
- class Twinkle_Twinkle {
3482
- constructor() {
3483
- this.lines = new TwinkleValues;
3484
- this.particles = new TwinkleValues;
3485
- }
3486
- load(data) {
3487
- if (data === undefined) {
3488
- return;
3489
- }
3490
- this.lines.load(data.lines);
3491
- this.particles.load(data.particles);
3492
- }
3493
- }
3494
- class Wobble_Wobble {
3495
- constructor() {
3496
- this.distance = 5;
3497
- this.enable = false;
3498
- this.speed = 50;
3499
- }
3500
- load(data) {
3501
- if (!data) {
3502
- return;
3503
- }
3504
- if (data.distance !== undefined) {
3505
- this.distance = setRangeValue(data.distance);
3506
- }
3507
- if (data.enable !== undefined) {
3508
- this.enable = data.enable;
3509
- }
3510
- if (data.speed !== undefined) {
3511
- this.speed = setRangeValue(data.speed);
3512
- }
3513
- }
3514
- }
3515
- class ZIndex_ZIndex extends(null && ValueWithRandom){
3516
- constructor() {
3517
- super();
3518
- this.opacityRate = 1;
3519
- this.sizeRate = 1;
3520
- this.velocityRate = 1;
3521
- }
3522
- load(data) {
3523
- super.load(data);
3524
- if (!data) {
3525
- return;
3526
- }
3527
- if (data.opacityRate !== undefined) {
3528
- this.opacityRate = data.opacityRate;
3529
- }
3530
- if (data.sizeRate !== undefined) {
3531
- this.sizeRate = data.sizeRate;
3532
- }
3533
- if (data.velocityRate !== undefined) {
3534
- this.velocityRate = data.velocityRate;
3535
- }
3536
- }
3537
- }
3538
- class ParticlesOptions_ParticlesOptions {
3539
- constructor() {
3540
- this.bounce = new Bounce;
3541
- this.collisions = new Collisions;
3542
- this.color = new AnimatableColor;
3543
- this.destroy = new Destroy;
3544
- this.gradient = [];
3545
- this.groups = {};
3546
- this.life = new Life;
3547
- this.links = new Links;
3548
- this.move = new Move;
3549
- this.number = new ParticlesNumber;
3550
- this.opacity = new Opacity;
3551
- this.orbit = new Orbit;
3552
- this.reduceDuplicates = false;
3553
- this.repulse = new Repulse;
3554
- this.roll = new Roll;
3555
- this.rotate = new Rotate;
3556
- this.shadow = new Shadow;
3557
- this.shape = new Shape;
3558
- this.size = new Size;
3559
- this.stroke = new Stroke;
3560
- this.tilt = new Tilt;
3561
- this.twinkle = new Twinkle;
3562
- this.wobble = new Wobble;
3563
- this.zIndex = new ZIndex;
3564
- }
3565
- get line_linked() {
3566
- return this.links;
3567
- }
3568
- set line_linked(value) {
3569
- this.links = value;
3570
- }
3571
- get lineLinked() {
3572
- return this.links;
3573
- }
3574
- set lineLinked(value) {
3575
- this.links = value;
3576
- }
3577
- load(data) {
3578
- var _a, _b, _c, _d, _e, _f, _g, _h;
3579
- if (data === undefined) {
3580
- return;
3581
- }
3582
- this.bounce.load(data.bounce);
3583
- this.color.load(AnimatableColor.create(this.color, data.color));
3584
- this.destroy.load(data.destroy);
3585
- this.life.load(data.life);
3586
- const links = (_b = (_a = data.links) !== null && _a !== void 0 ? _a : data.lineLinked) !== null && _b !== void 0 ? _b : data.line_linked;
3587
- if (links !== undefined) {
3588
- this.links.load(links);
3589
- }
3590
- if (data.groups !== undefined) {
3591
- for (const group in data.groups) {
3592
- const item = data.groups[group];
3593
- if (item !== undefined) {
3594
- this.groups[group] = deepExtend((_c = this.groups[group]) !== null && _c !== void 0 ? _c : {}, item);
3595
- }
3596
- }
3597
- }
3598
- this.move.load(data.move);
3599
- this.number.load(data.number);
3600
- this.opacity.load(data.opacity);
3601
- this.orbit.load(data.orbit);
3602
- if (data.reduceDuplicates !== undefined) {
3603
- this.reduceDuplicates = data.reduceDuplicates;
3604
- }
3605
- this.repulse.load(data.repulse);
3606
- this.roll.load(data.roll);
3607
- this.rotate.load(data.rotate);
3608
- this.shape.load(data.shape);
3609
- this.size.load(data.size);
3610
- this.shadow.load(data.shadow);
3611
- this.tilt.load(data.tilt);
3612
- this.twinkle.load(data.twinkle);
3613
- this.wobble.load(data.wobble);
3614
- this.zIndex.load(data.zIndex);
3615
- const collisions = (_e = (_d = data.move) === null || _d === void 0 ? void 0 : _d.collisions) !== null && _e !== void 0 ? _e : (_f = data.move) === null || _f === void 0 ? void 0 : _f.bounce;
3616
- if (collisions !== undefined) {
3617
- this.collisions.enable = collisions;
3618
- }
3619
- this.collisions.load(data.collisions);
3620
- const strokeToLoad = (_g = data.stroke) !== null && _g !== void 0 ? _g : (_h = data.shape) === null || _h === void 0 ? void 0 : _h.stroke;
3621
- if (strokeToLoad) {
3622
- if (strokeToLoad instanceof Array) {
3623
- this.stroke = strokeToLoad.map((s => {
3624
- const tmp = new Stroke;
3625
- tmp.load(s);
3626
- return tmp;
3627
- }));
3628
- } else {
3629
- if (this.stroke instanceof Array) {
3630
- this.stroke = new Stroke;
3631
- }
3632
- this.stroke.load(strokeToLoad);
3633
- }
3634
- }
3635
- const gradientToLoad = data.gradient;
3636
- if (gradientToLoad) {
3637
- if (gradientToLoad instanceof Array) {
3638
- this.gradient = gradientToLoad.map((s => {
3639
- const tmp = new AnimatableGradient;
3640
- tmp.load(s);
3641
- return tmp;
3642
- }));
3643
- } else {
3644
- if (this.gradient instanceof Array) {
3645
- this.gradient = new AnimatableGradient;
3646
- }
3647
- this.gradient.load(gradientToLoad);
3648
- }
3649
- }
3650
- }
3651
- }
3652
- class Responsive_Responsive {
3653
- constructor() {
3654
- this.maxWidth = Infinity;
3655
- this.options = {};
3656
- this.mode = "canvas";
3657
- }
3658
- load(data) {
3659
- if (!data) {
3660
- return;
3661
- }
3662
- if (data.maxWidth !== undefined) {
3663
- this.maxWidth = data.maxWidth;
3664
- }
3665
- if (data.mode !== undefined) {
3666
- if (data.mode === "screen") {
3667
- this.mode = "screen";
3668
- } else {
3669
- this.mode = "canvas";
3670
- }
3671
- }
3672
- if (data.options !== undefined) {
3673
- this.options = deepExtend({}, data.options);
3674
- }
3675
- }
3676
- }
3677
- class Theme_Theme {
3678
- constructor() {
3679
- this.name = "";
3680
- this.default = new ThemeDefault;
3681
- }
3682
- load(data) {
3683
- if (data === undefined) {
3684
- return;
3685
- }
3686
- if (data.name !== undefined) {
3687
- this.name = data.name;
3688
- }
3689
- this.default.load(data.default);
3690
- if (data.options !== undefined) {
3691
- this.options = deepExtend({}, data.options);
3692
- }
3693
- }
3694
- }
3695
- var Options_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
3696
- if (kind === "m") throw new TypeError("Private method is not writable");
3697
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
3698
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
3699
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
3700
- value;
3701
- };
3702
- var Options_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
3703
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3704
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
3705
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3706
- };
3707
- var _Options_instances, _Options_engine, _Options_findDefaultTheme;
3708
- class Options_Options {
3709
- constructor(engine) {
3710
- _Options_instances.add(this);
3711
- _Options_engine.set(this, void 0);
3712
- Options_classPrivateFieldSet(this, _Options_engine, engine, "f");
3713
- this.autoPlay = true;
3714
- this.background = new Background;
3715
- this.backgroundMask = new BackgroundMask;
3716
- this.fullScreen = new FullScreen;
3717
- this.detectRetina = true;
3718
- this.duration = 0;
3719
- this.fpsLimit = 120;
3720
- this.interactivity = new Interactivity;
3721
- this.manualParticles = [];
3722
- this.motion = new Motion;
3723
- this.particles = new ParticlesOptions;
3724
- this.pauseOnBlur = true;
3725
- this.pauseOnOutsideViewport = true;
3726
- this.responsive = [];
3727
- this.style = {};
3728
- this.themes = [];
3729
- this.zLayers = 100;
3730
- }
3731
- get fps_limit() {
3732
- return this.fpsLimit;
3733
- }
3734
- set fps_limit(value) {
3735
- this.fpsLimit = value;
3736
- }
3737
- get retina_detect() {
3738
- return this.detectRetina;
3739
- }
3740
- set retina_detect(value) {
3741
- this.detectRetina = value;
3742
- }
3743
- get backgroundMode() {
3744
- return this.fullScreen;
3745
- }
3746
- set backgroundMode(value) {
3747
- this.fullScreen.load(value);
3748
- }
3749
- load(data) {
3750
- var _a, _b, _c, _d, _e;
3751
- if (data === undefined) {
3752
- return;
3753
- }
3754
- if (data.preset !== undefined) {
3755
- if (data.preset instanceof Array) {
3756
- for (const preset of data.preset) {
3757
- this.importPreset(preset);
3758
- }
3759
- } else {
3760
- this.importPreset(data.preset);
3761
- }
3762
- }
3763
- if (data.autoPlay !== undefined) {
3764
- this.autoPlay = data.autoPlay;
3765
- }
3766
- const detectRetina = (_a = data.detectRetina) !== null && _a !== void 0 ? _a : data.retina_detect;
3767
- if (detectRetina !== undefined) {
3768
- this.detectRetina = detectRetina;
3769
- }
3770
- if (data.duration !== undefined) {
3771
- this.duration = data.duration;
3772
- }
3773
- const fpsLimit = (_b = data.fpsLimit) !== null && _b !== void 0 ? _b : data.fps_limit;
3774
- if (fpsLimit !== undefined) {
3775
- this.fpsLimit = fpsLimit;
3776
- }
3777
- if (data.pauseOnBlur !== undefined) {
3778
- this.pauseOnBlur = data.pauseOnBlur;
3779
- }
3780
- if (data.pauseOnOutsideViewport !== undefined) {
3781
- this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
3782
- }
3783
- if (data.zLayers !== undefined) {
3784
- this.zLayers = data.zLayers;
3785
- }
3786
- this.background.load(data.background);
3787
- const fullScreen = (_c = data.fullScreen) !== null && _c !== void 0 ? _c : data.backgroundMode;
3788
- if (typeof fullScreen === "boolean") {
3789
- this.fullScreen.enable = fullScreen;
3790
- } else {
3791
- this.fullScreen.load(fullScreen);
3792
- }
3793
- this.backgroundMask.load(data.backgroundMask);
3794
- this.interactivity.load(data.interactivity);
3795
- if (data.manualParticles !== undefined) {
3796
- this.manualParticles = data.manualParticles.map((t => {
3797
- const tmp = new ManualParticle;
3798
- tmp.load(t);
3799
- return tmp;
3800
- }));
3801
- }
3802
- this.motion.load(data.motion);
3803
- this.particles.load(data.particles);
3804
- this.style = deepExtend(this.style, data.style);
3805
- Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.loadOptions(this, data);
3806
- if (data.responsive !== undefined) {
3807
- for (const responsive of data.responsive) {
3808
- const optResponsive = new Responsive;
3809
- optResponsive.load(responsive);
3810
- this.responsive.push(optResponsive);
3811
- }
3812
- }
3813
- this.responsive.sort(((a, b) => a.maxWidth - b.maxWidth));
3814
- if (data.themes !== undefined) {
3815
- for (const theme of data.themes) {
3816
- const optTheme = new Theme;
3817
- optTheme.load(theme);
3818
- this.themes.push(optTheme);
3819
- }
3820
- }
3821
- this.defaultDarkTheme = (_d = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
3822
- this.defaultLightTheme = (_e = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
3823
- }
3824
- setTheme(name) {
3825
- if (name) {
3826
- const chosenTheme = this.themes.find((theme => theme.name === name));
3827
- if (chosenTheme) {
3828
- this.load(chosenTheme.options);
3829
- }
3830
- } else {
3831
- const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? "dark" : "light");
3832
- if (defaultTheme) {
3833
- this.load(defaultTheme.options);
3834
- }
3835
- }
3836
- }
3837
- setResponsive(width, pxRatio, defaultOptions) {
3838
- this.load(defaultOptions);
3839
- const responsiveOptions = this.responsive.find((t => t.mode === "screen" && screen ? t.maxWidth * pxRatio > screen.availWidth : t.maxWidth * pxRatio > width));
3840
- this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
3841
- return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
3842
- }
3843
- importPreset(preset) {
3844
- this.load(Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.getPreset(preset));
3845
- }
3846
- }
3847
- _Options_engine = new WeakMap, _Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
3848
- var _a;
3849
- return (_a = this.themes.find((theme => theme.default.value && theme.default.mode === mode))) !== null && _a !== void 0 ? _a : this.themes.find((theme => theme.default.value && theme.default.mode === "any"));
3850
- };
3851
- var Particle_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
3852
- if (kind === "m") throw new TypeError("Private method is not writable");
3853
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
3854
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
3855
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
3856
- value;
3857
- };
3858
- var Particle_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
3859
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3860
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
3861
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3862
- };
3863
- var _Particle_engine;
3864
- const fixOutMode = data => {
3865
- if (isInArray(data.outMode, data.checkModes) || isInArray(data.outMode, data.checkModes)) {
3866
- if (data.coord > data.maxCoord - data.radius * 2) {
3867
- data.setCb(-data.radius);
3868
- } else if (data.coord < data.radius * 2) {
3869
- data.setCb(data.radius);
3870
- }
3871
- }
3872
- };
3873
- class Particle_Particle {
3874
- constructor(engine, id, container, position, overrideOptions, group) {
3875
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3876
- this.id = id;
3877
- this.container = container;
3878
- this.group = group;
3879
- _Particle_engine.set(this, void 0);
3880
- Particle_classPrivateFieldSet(this, _Particle_engine, engine, "f");
3881
- this.fill = true;
3882
- this.close = true;
3883
- this.lastPathTime = 0;
3884
- this.destroyed = false;
3885
- this.unbreakable = false;
3886
- this.splitCount = 0;
3887
- this.misplaced = false;
3888
- this.retina = {
3889
- maxDistance: {}
3890
- };
3891
- this.ignoresResizeRatio = true;
3892
- const pxRatio = container.retina.pixelRatio;
3893
- const mainOptions = container.actualOptions;
3894
- const particlesOptions = new ParticlesOptions;
3895
- particlesOptions.load(mainOptions.particles);
3896
- const shapeType = particlesOptions.shape.type;
3897
- const reduceDuplicates = particlesOptions.reduceDuplicates;
3898
- this.shape = shapeType instanceof Array ? itemFromArray(shapeType, this.id, reduceDuplicates) : shapeType;
3899
- if (overrideOptions === null || overrideOptions === void 0 ? void 0 : overrideOptions.shape) {
3900
- if (overrideOptions.shape.type) {
3901
- const overrideShapeType = overrideOptions.shape.type;
3902
- this.shape = overrideShapeType instanceof Array ? itemFromArray(overrideShapeType, this.id, reduceDuplicates) : overrideShapeType;
3903
- }
3904
- const shapeOptions = new Shape;
3905
- shapeOptions.load(overrideOptions.shape);
3906
- if (this.shape) {
3907
- this.shapeData = this.loadShapeData(shapeOptions, reduceDuplicates);
3908
- }
3909
- } else {
3910
- this.shapeData = this.loadShapeData(particlesOptions.shape, reduceDuplicates);
3911
- }
3912
- if (overrideOptions !== undefined) {
3913
- particlesOptions.load(overrideOptions);
3914
- }
3915
- if (((_a = this.shapeData) === null || _a === void 0 ? void 0 : _a.particles) !== undefined) {
3916
- particlesOptions.load((_b = this.shapeData) === null || _b === void 0 ? void 0 : _b.particles);
3917
- }
3918
- this.fill = (_d = (_c = this.shapeData) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.fill;
3919
- this.close = (_f = (_e = this.shapeData) === null || _e === void 0 ? void 0 : _e.close) !== null && _f !== void 0 ? _f : this.close;
3920
- this.options = particlesOptions;
3921
- this.pathDelay = getValue(this.options.move.path.delay) * 1e3;
3922
- const zIndexValue = getRangeValue(this.options.zIndex.value);
3923
- container.retina.initParticle(this);
3924
- const sizeOptions = this.options.size, sizeRange = sizeOptions.value;
3925
- this.size = {
3926
- enable: sizeOptions.animation.enable,
3927
- value: getValue(sizeOptions) * container.retina.pixelRatio,
3928
- max: getRangeMax(sizeRange) * pxRatio,
3929
- min: getRangeMin(sizeRange) * pxRatio,
3930
- loops: 0,
3931
- maxLoops: getRangeValue(sizeOptions.animation.count)
3932
- };
3933
- const sizeAnimation = sizeOptions.animation;
3934
- if (sizeAnimation.enable) {
3935
- this.size.status = 0;
3936
- switch (sizeAnimation.startValue) {
3937
- case "min":
3938
- this.size.value = this.size.min;
3939
- this.size.status = 0;
3940
- break;
3941
-
3942
- case "random":
3943
- this.size.value = randomInRange(this.size) * pxRatio;
3944
- this.size.status = Math.random() >= .5 ? 0 : 1;
3945
- break;
3946
-
3947
- case "max":
3948
- default:
3949
- this.size.value = this.size.max;
3950
- this.size.status = 1;
3951
- break;
3952
- }
3953
- this.size.velocity = ((_g = this.retina.sizeAnimationSpeed) !== null && _g !== void 0 ? _g : container.retina.sizeAnimationSpeed) / 100 * container.retina.reduceFactor;
3954
- if (!sizeAnimation.sync) {
3955
- this.size.velocity *= Math.random();
3956
- }
3957
- }
3958
- this.direction = getParticleDirectionAngle(this.options.move.direction);
3959
- this.bubble = {
3960
- inRange: false
3961
- };
3962
- this.initialVelocity = this.calculateVelocity();
3963
- this.velocity = this.initialVelocity.copy();
3964
- this.moveDecay = 1 - getRangeValue(this.options.move.decay);
3965
- const gravityOptions = this.options.move.gravity;
3966
- this.gravity = {
3967
- enable: gravityOptions.enable,
3968
- acceleration: getRangeValue(gravityOptions.acceleration),
3969
- inverse: gravityOptions.inverse
3970
- };
3971
- this.position = this.calcPosition(container, position, clamp(zIndexValue, 0, container.zLayers));
3972
- this.initialPosition = this.position.copy();
3973
- this.offset = Vector.origin;
3974
- const particles = container.particles;
3975
- particles.needsSort = particles.needsSort || particles.lastZIndex < this.position.z;
3976
- particles.lastZIndex = this.position.z;
3977
- this.zIndexFactor = this.position.z / container.zLayers;
3978
- this.sides = 24;
3979
- let drawer = container.drawers.get(this.shape);
3980
- if (!drawer) {
3981
- drawer = Particle_classPrivateFieldGet(this, _Particle_engine, "f").plugins.getShapeDrawer(this.shape);
3982
- if (drawer) {
3983
- container.drawers.set(this.shape, drawer);
3984
- }
3985
- }
3986
- if (drawer === null || drawer === void 0 ? void 0 : drawer.loadShape) {
3987
- drawer === null || drawer === void 0 ? void 0 : drawer.loadShape(this);
3988
- }
3989
- const sideCountFunc = drawer === null || drawer === void 0 ? void 0 : drawer.getSidesCount;
3990
- if (sideCountFunc) {
3991
- this.sides = sideCountFunc(this);
3992
- }
3993
- this.life = this.loadLife();
3994
- this.spawning = this.life.delay > 0;
3995
- if (this.options.move.spin.enable) {
3996
- const spinPos = (_h = this.options.move.spin.position) !== null && _h !== void 0 ? _h : {
3997
- x: 50,
3998
- y: 50
3999
- };
4000
- const spinCenter = {
4001
- x: spinPos.x / 100 * container.canvas.size.width,
4002
- y: spinPos.y / 100 * container.canvas.size.height
4003
- };
4004
- const pos = this.getPosition();
4005
- const distance = getDistance(pos, spinCenter);
4006
- this.spin = {
4007
- center: spinCenter,
4008
- direction: this.velocity.x >= 0 ? "clockwise" : "counter-clockwise",
4009
- angle: this.velocity.angle,
4010
- radius: distance,
4011
- acceleration: (_j = this.retina.spinAcceleration) !== null && _j !== void 0 ? _j : getRangeValue(this.options.move.spin.acceleration)
4012
- };
4013
- }
4014
- this.shadowColor = colorToRgb(this.options.shadow.color);
4015
- for (const updater of container.particles.updaters) {
4016
- if (updater.init) {
4017
- updater.init(this);
4018
- }
4019
- }
4020
- if (drawer && drawer.particleInit) {
4021
- drawer.particleInit(container, this);
4022
- }
4023
- for (const [, plugin] of container.plugins) {
4024
- if (plugin.particleCreated) {
4025
- plugin.particleCreated(this);
4026
- }
4027
- }
4028
- }
4029
- isVisible() {
4030
- return !this.destroyed && !this.spawning && this.isInsideCanvas();
4031
- }
4032
- isInsideCanvas() {
4033
- const radius = this.getRadius();
4034
- const canvasSize = this.container.canvas.size;
4035
- return this.position.x >= -radius && this.position.y >= -radius && this.position.y <= canvasSize.height + radius && this.position.x <= canvasSize.width + radius;
4036
- }
4037
- draw(delta) {
4038
- const container = this.container;
4039
- for (const [, plugin] of container.plugins) {
4040
- container.canvas.drawParticlePlugin(plugin, this, delta);
4041
- }
4042
- container.canvas.drawParticle(this, delta);
4043
- }
4044
- getPosition() {
4045
- return {
4046
- x: this.position.x + this.offset.x,
4047
- y: this.position.y + this.offset.y,
4048
- z: this.position.z
4049
- };
4050
- }
4051
- getRadius() {
4052
- var _a;
4053
- return (_a = this.bubble.radius) !== null && _a !== void 0 ? _a : this.size.value;
4054
- }
4055
- getMass() {
4056
- return this.getRadius() ** 2 * Math.PI / 2;
4057
- }
4058
- getFillColor() {
4059
- var _a, _b;
4060
- const color = (_a = this.bubble.color) !== null && _a !== void 0 ? _a : getHslFromAnimation(this.color);
4061
- if (color && this.roll && (this.backColor || this.roll.alter)) {
4062
- const backFactor = this.options.roll.mode === "both" ? 2 : 1, backSum = this.options.roll.mode === "horizontal" ? Math.PI / 2 : 0, rolled = Math.floor((((_b = this.roll.angle) !== null && _b !== void 0 ? _b : 0) + backSum) / (Math.PI / backFactor)) % 2;
4063
- if (rolled) {
4064
- if (this.backColor) {
4065
- return this.backColor;
4066
- }
4067
- if (this.roll.alter) {
4068
- return alterHsl(color, this.roll.alter.type, this.roll.alter.value);
4069
- }
4070
- }
4071
- }
4072
- return color;
4073
- }
4074
- getStrokeColor() {
4075
- var _a, _b;
4076
- return (_b = (_a = this.bubble.color) !== null && _a !== void 0 ? _a : getHslFromAnimation(this.strokeColor)) !== null && _b !== void 0 ? _b : this.getFillColor();
4077
- }
4078
- destroy(override) {
4079
- this.destroyed = true;
4080
- this.bubble.inRange = false;
4081
- if (this.unbreakable) {
4082
- return;
4083
- }
4084
- this.destroyed = true;
4085
- this.bubble.inRange = false;
4086
- for (const [, plugin] of this.container.plugins) {
4087
- if (plugin.particleDestroyed) {
4088
- plugin.particleDestroyed(this, override);
4089
- }
4090
- }
4091
- if (override) {
4092
- return;
4093
- }
4094
- const destroyOptions = this.options.destroy;
4095
- if (destroyOptions.mode === "split") {
4096
- this.split();
4097
- }
4098
- }
4099
- reset() {
4100
- if (this.opacity) {
4101
- this.opacity.loops = 0;
4102
- }
4103
- this.size.loops = 0;
4104
- }
4105
- split() {
4106
- const splitOptions = this.options.destroy.split;
4107
- if (splitOptions.count >= 0 && this.splitCount++ > splitOptions.count) {
4108
- return;
4109
- }
4110
- const rate = getRangeValue(splitOptions.rate.value);
4111
- for (let i = 0; i < rate; i++) {
4112
- this.container.particles.addSplitParticle(this);
4113
- }
4114
- }
4115
- calcPosition(container, position, zIndex, tryCount = 0) {
4116
- var _a, _b, _c, _d, _e, _f;
4117
- for (const [, plugin] of container.plugins) {
4118
- const pluginPos = plugin.particlePosition !== undefined ? plugin.particlePosition(position, this) : undefined;
4119
- if (pluginPos !== undefined) {
4120
- return Vector3d.create(pluginPos.x, pluginPos.y, zIndex);
4121
- }
4122
- }
4123
- const canvasSize = container.canvas.size;
4124
- const pos = Vector3d.create((_a = position === null || position === void 0 ? void 0 : position.x) !== null && _a !== void 0 ? _a : Math.random() * canvasSize.width, (_b = position === null || position === void 0 ? void 0 : position.y) !== null && _b !== void 0 ? _b : Math.random() * canvasSize.height, zIndex);
4125
- const radius = this.getRadius();
4126
- const outModes = this.options.move.outModes, fixHorizontal = outMode => {
4127
- fixOutMode({
4128
- outMode: outMode,
4129
- checkModes: [ "bounce", "bounce-horizontal" ],
4130
- coord: pos.x,
4131
- maxCoord: container.canvas.size.width,
4132
- setCb: value => pos.x += value,
4133
- radius: radius
4134
- });
4135
- }, fixVertical = outMode => {
4136
- fixOutMode({
4137
- outMode: outMode,
4138
- checkModes: [ "bounce", "bounce-vertical" ],
4139
- coord: pos.y,
4140
- maxCoord: container.canvas.size.height,
4141
- setCb: value => pos.y += value,
4142
- radius: radius
4143
- });
4144
- };
4145
- fixHorizontal((_c = outModes.left) !== null && _c !== void 0 ? _c : outModes.default);
4146
- fixHorizontal((_d = outModes.right) !== null && _d !== void 0 ? _d : outModes.default);
4147
- fixVertical((_e = outModes.top) !== null && _e !== void 0 ? _e : outModes.default);
4148
- fixVertical((_f = outModes.bottom) !== null && _f !== void 0 ? _f : outModes.default);
4149
- if (this.checkOverlap(pos, tryCount)) {
4150
- return this.calcPosition(container, undefined, zIndex, tryCount + 1);
4151
- }
4152
- return pos;
4153
- }
4154
- checkOverlap(pos, tryCount = 0) {
4155
- const collisionsOptions = this.options.collisions;
4156
- const radius = this.getRadius();
4157
- if (!collisionsOptions.enable) {
4158
- return false;
4159
- }
4160
- const overlapOptions = collisionsOptions.overlap;
4161
- if (overlapOptions.enable) {
4162
- return false;
4163
- }
4164
- const retries = overlapOptions.retries;
4165
- if (retries >= 0 && tryCount > retries) {
4166
- throw new Error("Particle is overlapping and can't be placed");
4167
- }
4168
- let overlaps = false;
4169
- for (const particle of this.container.particles.array) {
4170
- if (getDistance(pos, particle.position) < radius + particle.getRadius()) {
4171
- overlaps = true;
4172
- break;
4173
- }
4174
- }
4175
- return overlaps;
4176
- }
4177
- calculateVelocity() {
4178
- const baseVelocity = getParticleBaseVelocity(this.direction), res = baseVelocity.copy(), moveOptions = this.options.move, rad = Math.PI / 180 * getRangeValue(moveOptions.angle.value), radOffset = Math.PI / 180 * getRangeValue(moveOptions.angle.offset), range = {
4179
- left: radOffset - rad / 2,
4180
- right: radOffset + rad / 2
4181
- };
4182
- if (!moveOptions.straight) {
4183
- res.angle += randomInRange(setRangeValue(range.left, range.right));
4184
- }
4185
- if (moveOptions.random && typeof moveOptions.speed === "number") {
4186
- res.length *= Math.random();
4187
- }
4188
- return res;
4189
- }
4190
- loadShapeData(shapeOptions, reduceDuplicates) {
4191
- const shapeData = shapeOptions.options[this.shape];
4192
- if (shapeData) {
4193
- return deepExtend({}, shapeData instanceof Array ? itemFromArray(shapeData, this.id, reduceDuplicates) : shapeData);
4194
- }
4195
- }
4196
- loadLife() {
4197
- const container = this.container;
4198
- const particlesOptions = this.options;
4199
- const lifeOptions = particlesOptions.life;
4200
- const life = {
4201
- delay: container.retina.reduceFactor ? getRangeValue(lifeOptions.delay.value) * (lifeOptions.delay.sync ? 1 : Math.random()) / container.retina.reduceFactor * 1e3 : 0,
4202
- delayTime: 0,
4203
- duration: container.retina.reduceFactor ? getRangeValue(lifeOptions.duration.value) * (lifeOptions.duration.sync ? 1 : Math.random()) / container.retina.reduceFactor * 1e3 : 0,
4204
- time: 0,
4205
- count: particlesOptions.life.count
4206
- };
4207
- if (life.duration <= 0) {
4208
- life.duration = -1;
4209
- }
4210
- if (life.count <= 0) {
4211
- life.count = -1;
4212
- }
4213
- return life;
4214
- }
4215
- }
4216
- _Particle_engine = new WeakMap;
4217
- var Particles_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
4218
- if (kind === "m") throw new TypeError("Private method is not writable");
4219
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4220
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4221
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
4222
- value;
4223
- };
4224
- var Particles_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
4225
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4226
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4227
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
4228
- };
4229
- var _Particles_engine;
4230
- class Particles_Particles {
4231
- constructor(engine, container) {
4232
- this.container = container;
4233
- _Particles_engine.set(this, void 0);
4234
- Particles_classPrivateFieldSet(this, _Particles_engine, engine, "f");
4235
- this.nextId = 0;
4236
- this.array = [];
4237
- this.zArray = [];
4238
- this.mover = new ParticlesMover(container);
4239
- this.limit = 0;
4240
- this.needsSort = false;
4241
- this.lastZIndex = 0;
4242
- this.freqs = {
4243
- links: new Map,
4244
- triangles: new Map
4245
- };
4246
- this.interactionManager = new InteractionManager(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), container);
4247
- const canvasSize = this.container.canvas.size;
4248
- this.linksColors = new Map;
4249
- this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
4250
- this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
4251
- }
4252
- get count() {
4253
- return this.array.length;
4254
- }
4255
- init() {
4256
- var _a;
4257
- const container = this.container;
4258
- const options = container.actualOptions;
4259
- this.lastZIndex = 0;
4260
- this.needsSort = false;
4261
- this.freqs.links = new Map;
4262
- this.freqs.triangles = new Map;
4263
- let handled = false;
4264
- this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
4265
- this.interactionManager.init();
4266
- for (const [, plugin] of container.plugins) {
4267
- if (plugin.particlesInitialization !== undefined) {
4268
- handled = plugin.particlesInitialization();
4269
- }
4270
- if (handled) {
4271
- break;
4272
- }
4273
- }
4274
- this.addManualParticles();
4275
- if (!handled) {
4276
- for (const group in options.particles.groups) {
4277
- const groupOptions = options.particles.groups[group];
4278
- for (let i = this.count, j = 0; j < ((_a = groupOptions.number) === null || _a === void 0 ? void 0 : _a.value) && i < options.particles.number.value; i++,
4279
- j++) {
4280
- this.addParticle(undefined, groupOptions, group);
4281
- }
4282
- }
4283
- for (let i = this.count; i < options.particles.number.value; i++) {
4284
- this.addParticle();
4285
- }
4286
- }
4287
- container.pathGenerator.init(container);
4288
- }
4289
- async redraw() {
4290
- this.clear();
4291
- this.init();
4292
- await this.draw({
4293
- value: 0,
4294
- factor: 0
4295
- });
4296
- }
4297
- removeAt(index, quantity = 1, group, override) {
4298
- if (!(index >= 0 && index <= this.count)) {
4299
- return;
4300
- }
4301
- let deleted = 0;
4302
- for (let i = index; deleted < quantity && i < this.count; i++) {
4303
- const particle = this.array[i];
4304
- if (!particle || particle.group !== group) {
4305
- continue;
4306
- }
4307
- particle.destroy(override);
4308
- this.array.splice(i--, 1);
4309
- const zIdx = this.zArray.indexOf(particle);
4310
- this.zArray.splice(zIdx, 1);
4311
- deleted++;
4312
- }
4313
- }
4314
- remove(particle, group, override) {
4315
- this.removeAt(this.array.indexOf(particle), undefined, group, override);
4316
- }
4317
- async update(delta) {
4318
- const container = this.container;
4319
- const particlesToDelete = [];
4320
- container.pathGenerator.update();
4321
- for (const [, plugin] of container.plugins) {
4322
- if (plugin.update !== undefined) {
4323
- plugin.update(delta);
4324
- }
4325
- }
4326
- for (const particle of this.array) {
4327
- const resizeFactor = container.canvas.resizeFactor;
4328
- if (resizeFactor && !particle.ignoresResizeRatio) {
4329
- particle.position.x *= resizeFactor.width;
4330
- particle.position.y *= resizeFactor.height;
4331
- }
4332
- particle.ignoresResizeRatio = false;
4333
- particle.bubble.inRange = false;
4334
- for (const [, plugin] of this.container.plugins) {
4335
- if (particle.destroyed) {
4336
- break;
4337
- }
4338
- if (plugin.particleUpdate) {
4339
- plugin.particleUpdate(particle, delta);
4340
- }
4341
- }
4342
- this.mover.move(particle, delta);
4343
- if (particle.destroyed) {
4344
- particlesToDelete.push(particle);
4345
- continue;
4346
- }
4347
- this.quadTree.insert(new Point(particle.getPosition(), particle));
4348
- }
4349
- for (const particle of particlesToDelete) {
4350
- this.remove(particle);
4351
- }
4352
- await this.interactionManager.externalInteract(delta);
4353
- for (const particle of container.particles.array) {
4354
- for (const updater of this.updaters) {
4355
- updater.update(particle, delta);
4356
- }
4357
- if (!particle.destroyed && !particle.spawning) {
4358
- await this.interactionManager.particlesInteract(particle, delta);
4359
- }
4360
- }
4361
- delete container.canvas.resizeFactor;
4362
- }
4363
- async draw(delta) {
4364
- const container = this.container;
4365
- container.canvas.clear();
4366
- const canvasSize = this.container.canvas.size;
4367
- this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
4368
- await this.update(delta);
4369
- if (this.needsSort) {
4370
- this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
4371
- this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
4372
- this.needsSort = false;
4373
- }
4374
- for (const [, plugin] of container.plugins) {
4375
- container.canvas.drawPlugin(plugin, delta);
4376
- }
4377
- for (const p of this.zArray) {
4378
- p.draw(delta);
4379
- }
4380
- }
4381
- clear() {
4382
- this.array = [];
4383
- this.zArray = [];
4384
- }
4385
- push(nb, mouse, overrideOptions, group) {
4386
- this.pushing = true;
4387
- for (let i = 0; i < nb; i++) {
4388
- this.addParticle(mouse === null || mouse === void 0 ? void 0 : mouse.position, overrideOptions, group);
4389
- }
4390
- this.pushing = false;
4391
- }
4392
- addParticle(position, overrideOptions, group) {
4393
- const container = this.container, options = container.actualOptions, limit = options.particles.number.limit * container.density;
4394
- if (limit > 0) {
4395
- const countToRemove = this.count + 1 - limit;
4396
- if (countToRemove > 0) {
4397
- this.removeQuantity(countToRemove);
4398
- }
4399
- }
4400
- return this.pushParticle(position, overrideOptions, group);
4401
- }
4402
- addSplitParticle(parent) {
4403
- const splitOptions = parent.options.destroy.split, options = new ParticlesOptions;
4404
- options.load(parent.options);
4405
- const factor = getRangeValue(splitOptions.factor.value);
4406
- options.color.load({
4407
- value: {
4408
- hsl: parent.getFillColor()
4409
- }
4410
- });
4411
- if (typeof options.size.value === "number") {
4412
- options.size.value /= factor;
4413
- } else {
4414
- options.size.value.min /= factor;
4415
- options.size.value.max /= factor;
4416
- }
4417
- options.load(splitOptions.particles);
4418
- const offset = splitOptions.sizeOffset ? setRangeValue(-parent.size.value, parent.size.value) : 0;
4419
- const position = {
4420
- x: parent.position.x + randomInRange(offset),
4421
- y: parent.position.y + randomInRange(offset)
4422
- };
4423
- return this.pushParticle(position, options, parent.group, (particle => {
4424
- if (particle.size.value < .5) {
4425
- return false;
4426
- }
4427
- particle.velocity.length = randomInRange(setRangeValue(parent.velocity.length, particle.velocity.length));
4428
- particle.splitCount = parent.splitCount + 1;
4429
- particle.unbreakable = true;
4430
- setTimeout((() => {
4431
- particle.unbreakable = false;
4432
- }), 500);
4433
- return true;
4434
- }));
4435
- }
4436
- removeQuantity(quantity, group) {
4437
- this.removeAt(0, quantity, group);
4438
- }
4439
- getLinkFrequency(p1, p2) {
4440
- const range = setRangeValue(p1.id, p2.id), key = `${getRangeMin(range)}_${getRangeMax(range)}`;
4441
- let res = this.freqs.links.get(key);
4442
- if (res === undefined) {
4443
- res = Math.random();
4444
- this.freqs.links.set(key, res);
4445
- }
4446
- return res;
4447
- }
4448
- getTriangleFrequency(p1, p2, p3) {
4449
- let [id1, id2, id3] = [ p1.id, p2.id, p3.id ];
4450
- if (id1 > id2) {
4451
- [id2, id1] = [ id1, id2 ];
4452
- }
4453
- if (id2 > id3) {
4454
- [id3, id2] = [ id2, id3 ];
4455
- }
4456
- if (id1 > id3) {
4457
- [id3, id1] = [ id1, id3 ];
4458
- }
4459
- const key = `${id1}_${id2}_${id3}`;
4460
- let res = this.freqs.triangles.get(key);
4461
- if (res === undefined) {
4462
- res = Math.random();
4463
- this.freqs.triangles.set(key, res);
4464
- }
4465
- return res;
4466
- }
4467
- addManualParticles() {
4468
- const container = this.container, options = container.actualOptions;
4469
- for (const particle of options.manualParticles) {
4470
- const pos = particle.position ? {
4471
- x: particle.position.x * container.canvas.size.width / 100,
4472
- y: particle.position.y * container.canvas.size.height / 100
4473
- } : undefined;
4474
- this.addParticle(pos, particle.options);
4475
- }
4476
- }
4477
- setDensity() {
4478
- const options = this.container.actualOptions;
4479
- for (const group in options.particles.groups) {
4480
- this.applyDensity(options.particles.groups[group], 0, group);
4481
- }
4482
- this.applyDensity(options.particles, options.manualParticles.length);
4483
- }
4484
- applyDensity(options, manualCount, group) {
4485
- var _a;
4486
- if (!((_a = options.number.density) === null || _a === void 0 ? void 0 : _a.enable)) {
4487
- return;
4488
- }
4489
- const numberOptions = options.number;
4490
- const densityFactor = this.initDensityFactor(numberOptions.density);
4491
- const optParticlesNumber = numberOptions.value;
4492
- const optParticlesLimit = numberOptions.limit > 0 ? numberOptions.limit : optParticlesNumber;
4493
- const particlesNumber = Math.min(optParticlesNumber, optParticlesLimit) * densityFactor + manualCount;
4494
- const particlesCount = Math.min(this.count, this.array.filter((t => t.group === group)).length);
4495
- this.limit = numberOptions.limit * densityFactor;
4496
- if (particlesCount < particlesNumber) {
4497
- this.push(Math.abs(particlesNumber - particlesCount), undefined, options, group);
4498
- } else if (particlesCount > particlesNumber) {
4499
- this.removeQuantity(particlesCount - particlesNumber, group);
4500
- }
4501
- }
4502
- initDensityFactor(densityOptions) {
4503
- const container = this.container;
4504
- if (!container.canvas.element || !densityOptions.enable) {
4505
- return 1;
4506
- }
4507
- const canvas = container.canvas.element, pxRatio = container.retina.pixelRatio;
4508
- return canvas.width * canvas.height / (densityOptions.factor * pxRatio ** 2 * densityOptions.area);
4509
- }
4510
- pushParticle(position, overrideOptions, group, initializer) {
4511
- try {
4512
- const particle = new Particle(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), this.nextId, this.container, position, overrideOptions, group);
4513
- let canAdd = true;
4514
- if (initializer) {
4515
- canAdd = initializer(particle);
4516
- }
4517
- if (!canAdd) {
4518
- return;
4519
- }
4520
- this.array.push(particle);
4521
- this.zArray.push(particle);
4522
- this.nextId++;
4523
- return particle;
4524
- } catch (e) {
4525
- console.warn(`error adding particle: ${e}`);
4526
- return;
4527
- }
4528
- }
4529
- }
4530
- _Particles_engine = new WeakMap;
4531
- class Retina_Retina {
4532
- constructor(container) {
4533
- this.container = container;
4534
- }
4535
- init() {
4536
- const container = this.container;
4537
- const options = container.actualOptions;
4538
- this.pixelRatio = !options.detectRetina || isSsr() ? 1 : window.devicePixelRatio;
4539
- const motionOptions = this.container.actualOptions.motion;
4540
- if (motionOptions && (motionOptions.disable || motionOptions.reduce.value)) {
4541
- if (isSsr() || typeof matchMedia === "undefined" || !matchMedia) {
4542
- this.reduceFactor = 1;
4543
- } else {
4544
- const mediaQuery = matchMedia("(prefers-reduced-motion: reduce)");
4545
- if (mediaQuery) {
4546
- this.handleMotionChange(mediaQuery);
4547
- const handleChange = () => {
4548
- this.handleMotionChange(mediaQuery);
4549
- container.refresh().catch((() => {}));
4550
- };
4551
- if (mediaQuery.addEventListener !== undefined) {
4552
- mediaQuery.addEventListener("change", handleChange);
4553
- } else if (mediaQuery.addListener !== undefined) {
4554
- mediaQuery.addListener(handleChange);
4555
- }
4556
- }
4557
- }
4558
- } else {
4559
- this.reduceFactor = 1;
4560
- }
4561
- const ratio = this.pixelRatio;
4562
- if (container.canvas.element) {
4563
- const element = container.canvas.element;
4564
- container.canvas.size.width = element.offsetWidth * ratio;
4565
- container.canvas.size.height = element.offsetHeight * ratio;
4566
- }
4567
- const particles = options.particles;
4568
- this.attractDistance = getRangeValue(particles.move.attract.distance) * ratio;
4569
- this.linksDistance = particles.links.distance * ratio;
4570
- this.linksWidth = particles.links.width * ratio;
4571
- this.sizeAnimationSpeed = getRangeValue(particles.size.animation.speed) * ratio;
4572
- this.maxSpeed = getRangeValue(particles.move.gravity.maxSpeed) * ratio;
4573
- if (particles.orbit.radius !== undefined) {
4574
- this.orbitRadius = getRangeValue(particles.orbit.radius) * this.container.retina.pixelRatio;
4575
- }
4576
- const modes = options.interactivity.modes;
4577
- this.connectModeDistance = modes.connect.distance * ratio;
4578
- this.connectModeRadius = modes.connect.radius * ratio;
4579
- this.grabModeDistance = modes.grab.distance * ratio;
4580
- this.repulseModeDistance = modes.repulse.distance * ratio;
4581
- this.bounceModeDistance = modes.bounce.distance * ratio;
4582
- this.attractModeDistance = modes.attract.distance * ratio;
4583
- this.slowModeRadius = modes.slow.radius * ratio;
4584
- this.bubbleModeDistance = modes.bubble.distance * ratio;
4585
- if (modes.bubble.size) {
4586
- this.bubbleModeSize = modes.bubble.size * ratio;
4587
- }
4588
- }
4589
- initParticle(particle) {
4590
- const options = particle.options;
4591
- const ratio = this.pixelRatio;
4592
- const moveDistance = options.move.distance;
4593
- const props = particle.retina;
4594
- props.attractDistance = getRangeValue(options.move.attract.distance) * ratio;
4595
- props.linksDistance = options.links.distance * ratio;
4596
- props.linksWidth = options.links.width * ratio;
4597
- props.moveDrift = getRangeValue(options.move.drift) * ratio;
4598
- props.moveSpeed = getRangeValue(options.move.speed) * ratio;
4599
- props.sizeAnimationSpeed = getRangeValue(options.size.animation.speed) * ratio;
4600
- if (particle.spin) {
4601
- props.spinAcceleration = getRangeValue(options.move.spin.acceleration) * ratio;
4602
- }
4603
- const maxDistance = props.maxDistance;
4604
- maxDistance.horizontal = moveDistance.horizontal !== undefined ? moveDistance.horizontal * ratio : undefined;
4605
- maxDistance.vertical = moveDistance.vertical !== undefined ? moveDistance.vertical * ratio : undefined;
4606
- props.maxSpeed = getRangeValue(options.move.gravity.maxSpeed) * ratio;
4607
- }
4608
- handleMotionChange(mediaQuery) {
4609
- const options = this.container.actualOptions;
4610
- if (mediaQuery.matches) {
4611
- const motion = options.motion;
4612
- this.reduceFactor = motion.disable ? 0 : motion.reduce.value ? 1 / motion.reduce.factor : 1;
4613
- } else {
4614
- this.reduceFactor = 1;
4615
- }
4616
- }
4617
- }
4618
- var Container_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
4619
- if (kind === "m") throw new TypeError("Private method is not writable");
4620
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4621
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4622
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
4623
- value;
4624
- };
4625
- var Container_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
4626
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4627
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4628
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
4629
- };
4630
- var _Container_engine;
4631
- class Container_Container {
4632
- constructor(engine, id, sourceOptions, ...presets) {
4633
- this.id = id;
4634
- _Container_engine.set(this, void 0);
4635
- Container_classPrivateFieldSet(this, _Container_engine, engine, "f");
4636
- this.fpsLimit = 120;
4637
- this.duration = 0;
4638
- this.lifeTime = 0;
4639
- this.firstStart = true;
4640
- this.started = false;
4641
- this.destroyed = false;
4642
- this.paused = true;
4643
- this.lastFrameTime = 0;
4644
- this.zLayers = 100;
4645
- this.pageHidden = false;
4646
- this._sourceOptions = sourceOptions;
4647
- this._initialSourceOptions = sourceOptions;
4648
- this.retina = new Retina(this);
4649
- this.canvas = new Canvas(this);
4650
- this.particles = new Particles(Container_classPrivateFieldGet(this, _Container_engine, "f"), this);
4651
- this.drawer = new FrameManager(this);
4652
- this.presets = presets;
4653
- this.pathGenerator = {
4654
- generate: () => {
4655
- const v = Vector.create(0, 0);
4656
- v.length = Math.random();
4657
- v.angle = Math.random() * Math.PI * 2;
4658
- return v;
4659
- },
4660
- init: () => {},
4661
- update: () => {}
4662
- };
4663
- this.interactivity = {
4664
- mouse: {
4665
- clicking: false,
4666
- inside: false
4667
- }
4668
- };
4669
- this.bubble = {};
4670
- this.repulse = {
4671
- particles: []
4672
- };
4673
- this.attract = {
4674
- particles: []
4675
- };
4676
- this.plugins = new Map;
4677
- this.drawers = new Map;
4678
- this.density = 1;
4679
- this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
4680
- this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
4681
- this.eventListeners = new EventListeners(this);
4682
- if (typeof IntersectionObserver !== "undefined" && IntersectionObserver) {
4683
- this.intersectionObserver = new IntersectionObserver((entries => this.intersectionManager(entries)));
4684
- }
4685
- }
4686
- get options() {
4687
- return this._options;
4688
- }
4689
- get sourceOptions() {
4690
- return this._sourceOptions;
4691
- }
4692
- play(force) {
4693
- const needsUpdate = this.paused || force;
4694
- if (this.firstStart && !this.actualOptions.autoPlay) {
4695
- this.firstStart = false;
4696
- return;
4697
- }
4698
- if (this.paused) {
4699
- this.paused = false;
4700
- }
4701
- if (needsUpdate) {
4702
- for (const [, plugin] of this.plugins) {
4703
- if (plugin.play) {
4704
- plugin.play();
4705
- }
4706
- }
4707
- }
4708
- this.draw(needsUpdate || false);
4709
- }
4710
- pause() {
4711
- if (this.drawAnimationFrame !== undefined) {
4712
- cancelAnimation()(this.drawAnimationFrame);
4713
- delete this.drawAnimationFrame;
4714
- }
4715
- if (this.paused) {
4716
- return;
4717
- }
4718
- for (const [, plugin] of this.plugins) {
4719
- if (plugin.pause) {
4720
- plugin.pause();
4721
- }
4722
- }
4723
- if (!this.pageHidden) {
4724
- this.paused = true;
4725
- }
4726
- }
4727
- draw(force) {
4728
- let refreshTime = force;
4729
- this.drawAnimationFrame = animate()((async timestamp => {
4730
- if (refreshTime) {
4731
- this.lastFrameTime = undefined;
4732
- refreshTime = false;
4733
- }
4734
- await this.drawer.nextFrame(timestamp);
4735
- }));
4736
- }
4737
- getAnimationStatus() {
4738
- return !this.paused && !this.pageHidden;
4739
- }
4740
- setNoise(noiseOrGenerator, init, update) {
4741
- this.setPath(noiseOrGenerator, init, update);
4742
- }
4743
- setPath(pathOrGenerator, init, update) {
4744
- var _a, _b, _c;
4745
- if (!pathOrGenerator) {
4746
- return;
4747
- }
4748
- if (typeof pathOrGenerator === "function") {
4749
- this.pathGenerator.generate = pathOrGenerator;
4750
- if (init) {
4751
- this.pathGenerator.init = init;
4752
- }
4753
- if (update) {
4754
- this.pathGenerator.update = update;
4755
- }
4756
- } else {
4757
- const oldGenerator = this.pathGenerator;
4758
- this.pathGenerator = pathOrGenerator;
4759
- (_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
4760
- (_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
4761
- (_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
4762
- }
4763
- }
4764
- destroy() {
4765
- this.stop();
4766
- this.canvas.destroy();
4767
- for (const [, drawer] of this.drawers) {
4768
- if (drawer.destroy) {
4769
- drawer.destroy(this);
4770
- }
4771
- }
4772
- for (const key of this.drawers.keys()) {
4773
- this.drawers.delete(key);
4774
- }
4775
- this.destroyed = true;
4776
- }
4777
- exportImg(callback) {
4778
- this.exportImage(callback);
4779
- }
4780
- exportImage(callback, type, quality) {
4781
- var _a;
4782
- return (_a = this.canvas.element) === null || _a === void 0 ? void 0 : _a.toBlob(callback, type !== null && type !== void 0 ? type : "image/png", quality);
4783
- }
4784
- exportConfiguration() {
4785
- return JSON.stringify(this.actualOptions, undefined, 2);
4786
- }
4787
- refresh() {
4788
- this.stop();
4789
- return this.start();
4790
- }
4791
- reset() {
4792
- this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
4793
- return this.refresh();
4794
- }
4795
- stop() {
4796
- if (!this.started) {
4797
- return;
4798
- }
4799
- this.firstStart = true;
4800
- this.started = false;
4801
- this.eventListeners.removeListeners();
4802
- this.pause();
4803
- this.particles.clear();
4804
- this.canvas.clear();
4805
- if (this.interactivity.element instanceof HTMLElement && this.intersectionObserver) {
4806
- this.intersectionObserver.unobserve(this.interactivity.element);
4807
- }
4808
- for (const [, plugin] of this.plugins) {
4809
- if (plugin.stop) {
4810
- plugin.stop();
4811
- }
4812
- }
4813
- for (const key of this.plugins.keys()) {
4814
- this.plugins.delete(key);
4815
- }
4816
- this.particles.linksColors = new Map;
4817
- delete this.particles.grabLineColor;
4818
- delete this.particles.linksColor;
4819
- this._sourceOptions = this._options;
4820
- }
4821
- async loadTheme(name) {
4822
- this.currentTheme = name;
4823
- await this.refresh();
4824
- }
4825
- async start() {
4826
- if (this.started) {
4827
- return;
4828
- }
4829
- await this.init();
4830
- this.started = true;
4831
- this.eventListeners.addListeners();
4832
- if (this.interactivity.element instanceof HTMLElement && this.intersectionObserver) {
4833
- this.intersectionObserver.observe(this.interactivity.element);
4834
- }
4835
- for (const [, plugin] of this.plugins) {
4836
- if (plugin.startAsync !== undefined) {
4837
- await plugin.startAsync();
4838
- } else if (plugin.start !== undefined) {
4839
- plugin.start();
4840
- }
4841
- }
4842
- this.play();
4843
- }
4844
- addClickHandler(callback) {
4845
- const el = this.interactivity.element;
4846
- if (!el) {
4847
- return;
4848
- }
4849
- const clickOrTouchHandler = (e, pos, radius) => {
4850
- if (this.destroyed) {
4851
- return;
4852
- }
4853
- const pxRatio = this.retina.pixelRatio, posRetina = {
4854
- x: pos.x * pxRatio,
4855
- y: pos.y * pxRatio
4856
- }, particles = this.particles.quadTree.queryCircle(posRetina, radius * pxRatio);
4857
- callback(e, particles);
4858
- };
4859
- const clickHandler = e => {
4860
- if (this.destroyed) {
4861
- return;
4862
- }
4863
- const mouseEvent = e;
4864
- const pos = {
4865
- x: mouseEvent.offsetX || mouseEvent.clientX,
4866
- y: mouseEvent.offsetY || mouseEvent.clientY
4867
- };
4868
- clickOrTouchHandler(e, pos, 1);
4869
- };
4870
- const touchStartHandler = () => {
4871
- if (this.destroyed) {
4872
- return;
4873
- }
4874
- touched = true;
4875
- touchMoved = false;
4876
- };
4877
- const touchMoveHandler = () => {
4878
- if (this.destroyed) {
4879
- return;
4880
- }
4881
- touchMoved = true;
4882
- };
4883
- const touchEndHandler = e => {
4884
- var _a, _b, _c;
4885
- if (this.destroyed) {
4886
- return;
4887
- }
4888
- if (touched && !touchMoved) {
4889
- const touchEvent = e;
4890
- let lastTouch = touchEvent.touches[touchEvent.touches.length - 1];
4891
- if (!lastTouch) {
4892
- lastTouch = touchEvent.changedTouches[touchEvent.changedTouches.length - 1];
4893
- if (!lastTouch) {
4894
- return;
4895
- }
4896
- }
4897
- const canvasRect = (_a = this.canvas.element) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
4898
- const pos = {
4899
- x: lastTouch.clientX - ((_b = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.left) !== null && _b !== void 0 ? _b : 0),
4900
- y: lastTouch.clientY - ((_c = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.top) !== null && _c !== void 0 ? _c : 0)
4901
- };
4902
- clickOrTouchHandler(e, pos, Math.max(lastTouch.radiusX, lastTouch.radiusY));
4903
- }
4904
- touched = false;
4905
- touchMoved = false;
4906
- };
4907
- const touchCancelHandler = () => {
4908
- if (this.destroyed) {
4909
- return;
4910
- }
4911
- touched = false;
4912
- touchMoved = false;
4913
- };
4914
- let touched = false;
4915
- let touchMoved = false;
4916
- el.addEventListener("click", clickHandler);
4917
- el.addEventListener("touchstart", touchStartHandler);
4918
- el.addEventListener("touchmove", touchMoveHandler);
4919
- el.addEventListener("touchend", touchEndHandler);
4920
- el.addEventListener("touchcancel", touchCancelHandler);
4921
- }
4922
- updateActualOptions() {
4923
- this.actualOptions.responsive = [];
4924
- const newMaxWidth = this.actualOptions.setResponsive(this.canvas.size.width, this.retina.pixelRatio, this._options);
4925
- this.actualOptions.setTheme(this.currentTheme);
4926
- if (this.responsiveMaxWidth != newMaxWidth) {
4927
- this.responsiveMaxWidth = newMaxWidth;
4928
- return true;
4929
- }
4930
- return false;
4931
- }
4932
- async init() {
4933
- this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
4934
- for (const preset of this.presets) {
4935
- this._options.load(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPreset(preset));
4936
- }
4937
- const shapes = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getSupportedShapes();
4938
- for (const type of shapes) {
4939
- const drawer = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getShapeDrawer(type);
4940
- if (drawer) {
4941
- this.drawers.set(type, drawer);
4942
- }
4943
- }
4944
- this._options.load(this._initialSourceOptions);
4945
- this._options.load(this._sourceOptions);
4946
- this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
4947
- this.actualOptions.load(this._options);
4948
- this.retina.init();
4949
- this.canvas.init();
4950
- this.updateActualOptions();
4951
- this.canvas.initBackground();
4952
- this.canvas.resize();
4953
- this.zLayers = this.actualOptions.zLayers;
4954
- this.duration = getRangeValue(this.actualOptions.duration);
4955
- this.lifeTime = 0;
4956
- this.fpsLimit = this.actualOptions.fpsLimit > 0 ? this.actualOptions.fpsLimit : 120;
4957
- const availablePlugins = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getAvailablePlugins(this);
4958
- for (const [id, plugin] of availablePlugins) {
4959
- this.plugins.set(id, plugin);
4960
- }
4961
- for (const [, drawer] of this.drawers) {
4962
- if (drawer.init) {
4963
- await drawer.init(this);
4964
- }
4965
- }
4966
- for (const [, plugin] of this.plugins) {
4967
- if (plugin.init) {
4968
- plugin.init(this.actualOptions);
4969
- } else if (plugin.initAsync !== undefined) {
4970
- await plugin.initAsync(this.actualOptions);
4971
- }
4972
- }
4973
- const pathOptions = this.actualOptions.particles.move.path;
4974
- if (pathOptions.generator) {
4975
- this.setPath(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
4976
- }
4977
- this.particles.init();
4978
- this.particles.setDensity();
4979
- for (const [, plugin] of this.plugins) {
4980
- if (plugin.particlesSetup !== undefined) {
4981
- plugin.particlesSetup();
4982
- }
4983
- }
4984
- }
4985
- intersectionManager(entries) {
4986
- if (!this.actualOptions.pauseOnOutsideViewport) {
4987
- return;
4988
- }
4989
- for (const entry of entries) {
4990
- if (entry.target !== this.interactivity.element) {
4991
- continue;
4992
- }
4993
- if (entry.isIntersecting) {
4994
- this.play();
4995
- } else {
4996
- this.pause();
4997
- }
4998
- }
4999
- }
5000
- }
5001
- _Container_engine = new WeakMap;
5002
- var Loader_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
5003
- if (kind === "m") throw new TypeError("Private method is not writable");
5004
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5005
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5006
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
5007
- value;
5008
- };
5009
- var Loader_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
5010
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5011
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5012
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5013
- };
5014
- var _Loader_engine;
5015
- function fetchError(statusCode) {
5016
- console.error(`Error tsParticles - fetch status: ${statusCode}`);
5017
- console.error("Error tsParticles - File config not found");
5018
- }
5019
- class Loader {
5020
- constructor(engine) {
5021
- _Loader_engine.set(this, void 0);
5022
- Loader_classPrivateFieldSet(this, _Loader_engine, engine, "f");
5023
- }
5024
- dom() {
5025
- return Loader_classPrivateFieldGet(this, _Loader_engine, "f").domArray;
5026
- }
5027
- domItem(index) {
5028
- const dom = this.dom();
5029
- const item = dom[index];
5030
- if (item && !item.destroyed) {
5031
- return item;
5032
- }
5033
- dom.splice(index, 1);
5034
- }
5035
- async loadOptions(params) {
5036
- var _a, _b, _c;
5037
- const tagId = (_a = params.tagId) !== null && _a !== void 0 ? _a : `tsparticles${Math.floor(Math.random() * 1e4)}`;
5038
- const {options: options, index: index} = params;
5039
- let domContainer = (_b = params.element) !== null && _b !== void 0 ? _b : document.getElementById(tagId);
5040
- if (!domContainer) {
5041
- domContainer = document.createElement("div");
5042
- domContainer.id = tagId;
5043
- (_c = document.querySelector("body")) === null || _c === void 0 ? void 0 : _c.append(domContainer);
5044
- }
5045
- const currentOptions = options instanceof Array ? itemFromArray(options, index) : options;
5046
- const dom = this.dom();
5047
- const oldIndex = dom.findIndex((v => v.id === tagId));
5048
- if (oldIndex >= 0) {
5049
- const old = this.domItem(oldIndex);
5050
- if (old && !old.destroyed) {
5051
- old.destroy();
5052
- dom.splice(oldIndex, 1);
5053
- }
5054
- }
5055
- let canvasEl;
5056
- if (domContainer.tagName.toLowerCase() === "canvas") {
5057
- canvasEl = domContainer;
5058
- canvasEl.dataset[Constants.generatedAttribute] = "false";
5059
- } else {
5060
- const existingCanvases = domContainer.getElementsByTagName("canvas");
5061
- if (existingCanvases.length) {
5062
- canvasEl = existingCanvases[0];
5063
- canvasEl.dataset[Constants.generatedAttribute] = "false";
5064
- } else {
5065
- canvasEl = document.createElement("canvas");
5066
- canvasEl.dataset[Constants.generatedAttribute] = "true";
5067
- canvasEl.style.width = "100%";
5068
- canvasEl.style.height = "100%";
5069
- domContainer.appendChild(canvasEl);
5070
- }
5071
- }
5072
- const newItem = new Container(Loader_classPrivateFieldGet(this, _Loader_engine, "f"), tagId, currentOptions);
5073
- if (oldIndex >= 0) {
5074
- dom.splice(oldIndex, 0, newItem);
5075
- } else {
5076
- dom.push(newItem);
5077
- }
5078
- newItem.canvas.loadCanvas(canvasEl);
5079
- await newItem.start();
5080
- return newItem;
5081
- }
5082
- async loadRemoteOptions(params) {
5083
- const {url: jsonUrl, index: index} = params;
5084
- const url = jsonUrl instanceof Array ? itemFromArray(jsonUrl, index) : jsonUrl;
5085
- if (!url) {
5086
- return;
5087
- }
5088
- const response = await fetch(url);
5089
- if (!response.ok) {
5090
- fetchError(response.status);
5091
- return;
5092
- }
5093
- const data = await response.json();
5094
- return this.loadOptions({
5095
- tagId: params.tagId,
5096
- element: params.element,
5097
- index: index,
5098
- options: data
5099
- });
5100
- }
5101
- load(tagId, options, index) {
5102
- const params = {
5103
- index: index
5104
- };
5105
- if (typeof tagId === "string") {
5106
- params.tagId = tagId;
5107
- } else {
5108
- params.options = tagId;
5109
- }
5110
- if (typeof options === "number") {
5111
- params.index = options !== null && options !== void 0 ? options : params.index;
5112
- } else {
5113
- params.options = options !== null && options !== void 0 ? options : params.options;
5114
- }
5115
- return this.loadOptions(params);
5116
- }
5117
- async set(id, domContainer, options, index) {
5118
- const params = {
5119
- index: index
5120
- };
5121
- if (typeof id === "string") {
5122
- params.tagId = id;
5123
- } else {
5124
- params.element = id;
5125
- }
5126
- if (domContainer instanceof HTMLElement) {
5127
- params.element = domContainer;
5128
- } else {
5129
- params.options = domContainer;
5130
- }
5131
- if (typeof options === "number") {
5132
- params.index = options;
5133
- } else {
5134
- params.options = options !== null && options !== void 0 ? options : params.options;
5135
- }
5136
- return this.loadOptions(params);
5137
- }
5138
- async loadJSON(tagId, jsonUrl, index) {
5139
- let url, id;
5140
- if (typeof jsonUrl === "number" || jsonUrl === undefined) {
5141
- url = tagId;
5142
- } else {
5143
- id = tagId;
5144
- url = jsonUrl;
5145
- }
5146
- return this.loadRemoteOptions({
5147
- tagId: id,
5148
- url: url,
5149
- index: index
5150
- });
5151
- }
5152
- async setJSON(id, domContainer, jsonUrl, index) {
5153
- let url, newId, newIndex, element;
5154
- if (id instanceof HTMLElement) {
5155
- element = id;
5156
- url = domContainer;
5157
- newIndex = jsonUrl;
5158
- } else {
5159
- newId = id;
5160
- element = domContainer;
5161
- url = jsonUrl;
5162
- newIndex = index;
5163
- }
5164
- return this.loadRemoteOptions({
5165
- tagId: newId,
5166
- url: url,
5167
- index: newIndex,
5168
- element: element
5169
- });
5170
- }
5171
- setOnClickHandler(callback) {
5172
- const dom = this.dom();
5173
- if (dom.length === 0) {
5174
- throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");
5175
- }
5176
- for (const domItem of dom) {
5177
- domItem.addClickHandler(callback);
5178
- }
5179
- }
5180
- }
5181
- _Loader_engine = new WeakMap;
5182
- class Grabber extends ExternalInteractorBase {
5183
- constructor(container) {
5184
- super(container);
5185
- }
5186
- isEnabled() {
5187
- const container = this.container, mouse = container.interactivity.mouse, events = container.actualOptions.interactivity.events;
5188
- return events.onHover.enable && !!mouse.position && Utils_isInArray("grab", events.onHover.mode);
5189
- }
5190
- reset() {}
5191
- async interact() {
5192
- var _a;
5193
- const container = this.container, options = container.actualOptions, interactivity = options.interactivity;
5194
- if (interactivity.events.onHover.enable && container.interactivity.status === Constants_Constants.mouseMoveEvent) {
5195
- const mousePos = container.interactivity.mouse.position;
5196
- if (!mousePos) {
881
+ const colorLine = getLinkColor(particle, undefined, container.particles.grabLineColor);
882
+ if (!colorLine) {
5197
883
  return;
5198
884
  }
5199
- const distance = container.retina.grabModeDistance, query = container.particles.quadTree.queryCircle(mousePos, distance);
5200
- for (const particle of query) {
5201
- const pos = particle.getPosition(), pointDistance = NumberUtils_getDistance(pos, mousePos);
5202
- if (pointDistance <= distance) {
5203
- const grabLineOptions = interactivity.modes.grab.links, lineOpacity = grabLineOptions.opacity, opacityLine = lineOpacity - pointDistance * lineOpacity / distance;
5204
- if (opacityLine <= 0) {
5205
- continue;
5206
- }
5207
- const optColor = (_a = grabLineOptions.color) !== null && _a !== void 0 ? _a : particle.options.links.color;
5208
- if (!container.particles.grabLineColor) {
5209
- const linksOptions = options.interactivity.modes.grab.links;
5210
- container.particles.grabLineColor = getLinkRandomColor(optColor, linksOptions.blink, linksOptions.consent);
5211
- }
5212
- const colorLine = getLinkColor(particle, undefined, container.particles.grabLineColor);
5213
- if (!colorLine) {
5214
- return;
5215
- }
5216
- container.canvas.drawGrabLine(particle, colorLine, opacityLine, mousePos);
5217
- }
5218
- }
885
+ container.canvas.drawGrabLine(particle, colorLine, opacityLine, mousePos);
5219
886
  }
5220
887
  }
5221
888
  }