tsparticles 1.42.3 → 1.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2943) hide show
  1. package/README.md +1 -1
  2. package/browser/Core/Canvas.js +36 -56
  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 -26
  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 +36 -56
  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 +23 -24
  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 +1060 -1370
  657. package/tsparticles.engine.min.js +2 -2
  658. package/tsparticles.interaction.external.attract.js +297 -4977
  659. package/tsparticles.interaction.external.attract.min.js +2 -2
  660. package/tsparticles.interaction.external.bounce.js +263 -4991
  661. package/tsparticles.interaction.external.bounce.min.js +2 -2
  662. package/tsparticles.interaction.external.bubble.js +247 -4549
  663. package/tsparticles.interaction.external.bubble.min.js +2 -2
  664. package/tsparticles.interaction.external.connect.js +42 -4971
  665. package/tsparticles.interaction.external.connect.min.js +2 -2
  666. package/tsparticles.interaction.external.grab.js +174 -4510
  667. package/tsparticles.interaction.external.grab.min.js +2 -2
  668. package/tsparticles.interaction.external.repulse.js +264 -4952
  669. package/tsparticles.interaction.external.repulse.min.js +2 -2
  670. package/tsparticles.interaction.external.trail.js +42 -4971
  671. package/tsparticles.interaction.external.trail.min.js +2 -2
  672. package/tsparticles.interaction.particles.attract.js +60 -5022
  673. package/tsparticles.interaction.particles.attract.min.js +2 -2
  674. package/tsparticles.interaction.particles.collisions.js +149 -4922
  675. package/tsparticles.interaction.particles.collisions.min.js +2 -2
  676. package/tsparticles.interaction.particles.links.js +415 -4465
  677. package/tsparticles.interaction.particles.links.min.js +2 -2
  678. package/tsparticles.js +1637 -1650
  679. package/tsparticles.min.js +2 -2
  680. package/tsparticles.pathseg.min.js +1 -1
  681. package/tsparticles.plugins.absorbers.js +347 -4679
  682. package/tsparticles.plugins.absorbers.min.js +2 -2
  683. package/tsparticles.plugins.emitters.js +424 -4699
  684. package/tsparticles.plugins.emitters.min.js +2 -2
  685. package/tsparticles.plugins.polygonMask.js +263 -4636
  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 -4780
  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 -4968
  695. package/tsparticles.shape.text.min.js +2 -2
  696. package/tsparticles.slim.js +1576 -1558
  697. package/tsparticles.slim.min.js +2 -2
  698. package/tsparticles.updater.angle.js +55 -5017
  699. package/tsparticles.updater.angle.min.js +2 -2
  700. package/tsparticles.updater.color.js +146 -4484
  701. package/tsparticles.updater.color.min.js +2 -2
  702. package/tsparticles.updater.life.js +58 -5020
  703. package/tsparticles.updater.life.min.js +2 -2
  704. package/tsparticles.updater.opacity.js +62 -5024
  705. package/tsparticles.updater.opacity.min.js +2 -2
  706. package/tsparticles.updater.outModes.js +152 -4910
  707. package/tsparticles.updater.outModes.min.js +2 -2
  708. package/tsparticles.updater.roll.js +143 -4481
  709. package/tsparticles.updater.roll.min.js +2 -2
  710. package/tsparticles.updater.size.js +54 -5016
  711. package/tsparticles.updater.size.min.js +2 -2
  712. package/tsparticles.updater.strokeColor.js +147 -4485
  713. package/tsparticles.updater.strokeColor.min.js +2 -2
  714. package/tsparticles.updater.tilt.js +55 -5017
  715. package/tsparticles.updater.tilt.min.js +2 -2
  716. package/tsparticles.updater.wobble.js +55 -5017
  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 +54 -74
  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 -34
  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 -326
  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 -321
  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,4146 +43,58 @@
43
43
  return loadRollUpdater;
44
44
  }
45
45
  });
46
- class Circle_Circle extends(null && Range){
47
- constructor(x, y, radius) {
48
- super(x, y);
49
- this.radius = radius;
50
- }
51
- contains(point) {
52
- return getDistance(point, this.position) <= this.radius;
53
- }
54
- intersects(range) {
55
- const rect = range;
56
- const circle = range;
57
- const pos1 = this.position;
58
- const pos2 = range.position;
59
- const xDist = Math.abs(pos2.x - pos1.x);
60
- const yDist = Math.abs(pos2.y - pos1.y);
61
- const r = this.radius;
62
- if (circle.radius !== undefined) {
63
- const rSum = r + circle.radius;
64
- const dist = Math.sqrt(xDist * xDist + yDist + yDist);
65
- return rSum > dist;
66
- } else if (rect.size !== undefined) {
67
- const w = rect.size.width;
68
- const h = rect.size.height;
69
- const edges = Math.pow(xDist - w, 2) + Math.pow(yDist - h, 2);
70
- if (xDist > r + w || yDist > r + h) {
71
- return false;
72
- }
73
- if (xDist <= w || yDist <= h) {
74
- return true;
75
- }
76
- return edges <= r * r;
77
- }
78
- return false;
79
- }
80
- }
81
- class CircleWarp_CircleWarp extends(null && Circle){
82
- constructor(x, y, radius, canvasSize) {
83
- super(x, y, radius);
84
- this.canvasSize = canvasSize;
85
- this.canvasSize = {
86
- height: canvasSize.height,
87
- width: canvasSize.width
88
- };
89
- }
90
- contains(point) {
91
- if (super.contains(point)) {
92
- return true;
93
- }
94
- const posNE = {
95
- x: point.x - this.canvasSize.width,
96
- y: point.y
97
- };
98
- if (super.contains(posNE)) {
99
- return true;
100
- }
101
- const posSE = {
102
- x: point.x - this.canvasSize.width,
103
- y: point.y - this.canvasSize.height
104
- };
105
- if (super.contains(posSE)) {
106
- return true;
107
- }
108
- const posSW = {
109
- x: point.x,
110
- y: point.y - this.canvasSize.height
111
- };
112
- return super.contains(posSW);
113
- }
114
- intersects(range) {
115
- if (super.intersects(range)) {
116
- return true;
117
- }
118
- const rect = range;
119
- const circle = range;
120
- const newPos = {
121
- x: range.position.x - this.canvasSize.width,
122
- y: range.position.y - this.canvasSize.height
123
- };
124
- if (circle.radius !== undefined) {
125
- const biggerCircle = new Circle(newPos.x, newPos.y, circle.radius * 2);
126
- return super.intersects(biggerCircle);
127
- } else if (rect.size !== undefined) {
128
- const rectSW = new Rectangle(newPos.x, newPos.y, rect.size.width * 2, rect.size.height * 2);
129
- return super.intersects(rectSW);
130
- }
131
- return false;
132
- }
133
- }
134
- class Constants_Constants {}
135
- Constants_Constants.generatedAttribute = "generated";
136
- Constants_Constants.randomColorValue = "random";
137
- Constants_Constants.midColorValue = "mid";
138
- Constants_Constants.touchEndEvent = "touchend";
139
- Constants_Constants.mouseDownEvent = "mousedown";
140
- Constants_Constants.mouseUpEvent = "mouseup";
141
- Constants_Constants.mouseMoveEvent = "mousemove";
142
- Constants_Constants.touchStartEvent = "touchstart";
143
- Constants_Constants.touchMoveEvent = "touchmove";
144
- Constants_Constants.mouseLeaveEvent = "mouseleave";
145
- Constants_Constants.mouseOutEvent = "mouseout";
146
- Constants_Constants.touchCancelEvent = "touchcancel";
147
- Constants_Constants.resizeEvent = "resize";
148
- Constants_Constants.visibilityChangeEvent = "visibilitychange";
149
- Constants_Constants.noPolygonDataLoaded = "No polygon data loaded.";
150
- Constants_Constants.noPolygonFound = "No polygon found, you need to specify SVG url in config.";
151
- function manageListener(element, event, handler, add, options) {
152
- if (add) {
153
- let addOptions = {
154
- passive: true
155
- };
156
- if (typeof options === "boolean") {
157
- addOptions.capture = options;
158
- } else if (options !== undefined) {
159
- addOptions = options;
160
- }
161
- element.addEventListener(event, handler, addOptions);
162
- } else {
163
- const removeOptions = options;
164
- element.removeEventListener(event, handler, removeOptions);
165
- }
166
- }
167
- class EventListeners_EventListeners {
168
- constructor(container) {
169
- this.container = container;
170
- this.canPush = true;
171
- this.mouseMoveHandler = e => this.mouseTouchMove(e);
172
- this.touchStartHandler = e => this.mouseTouchMove(e);
173
- this.touchMoveHandler = e => this.mouseTouchMove(e);
174
- this.touchEndHandler = () => this.mouseTouchFinish();
175
- this.mouseLeaveHandler = () => this.mouseTouchFinish();
176
- this.touchCancelHandler = () => this.mouseTouchFinish();
177
- this.touchEndClickHandler = e => this.mouseTouchClick(e);
178
- this.mouseUpHandler = e => this.mouseTouchClick(e);
179
- this.mouseDownHandler = () => this.mouseDown();
180
- this.visibilityChangeHandler = () => this.handleVisibilityChange();
181
- this.themeChangeHandler = e => this.handleThemeChange(e);
182
- this.oldThemeChangeHandler = e => this.handleThemeChange(e);
183
- this.resizeHandler = () => this.handleWindowResize();
184
- }
185
- addListeners() {
186
- this.manageListeners(true);
187
- }
188
- removeListeners() {
189
- this.manageListeners(false);
190
- }
191
- manageListeners(add) {
192
- var _a;
193
- const container = this.container;
194
- const options = container.actualOptions;
195
- const detectType = options.interactivity.detectsOn;
196
- let mouseLeaveEvent = Constants.mouseLeaveEvent;
197
- if (detectType === "window") {
198
- container.interactivity.element = window;
199
- mouseLeaveEvent = Constants.mouseOutEvent;
200
- } else if (detectType === "parent" && container.canvas.element) {
201
- const canvasEl = container.canvas.element;
202
- container.interactivity.element = (_a = canvasEl.parentElement) !== null && _a !== void 0 ? _a : canvasEl.parentNode;
203
- } else {
204
- container.interactivity.element = container.canvas.element;
205
- }
206
- const mediaMatch = !isSsr() && typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)");
207
- if (mediaMatch) {
208
- if (mediaMatch.addEventListener !== undefined) {
209
- manageListener(mediaMatch, "change", this.themeChangeHandler, add);
210
- } else if (mediaMatch.addListener !== undefined) {
211
- if (add) {
212
- mediaMatch.addListener(this.oldThemeChangeHandler);
213
- } else {
214
- mediaMatch.removeListener(this.oldThemeChangeHandler);
215
- }
216
- }
217
- }
218
- const interactivityEl = container.interactivity.element;
219
- if (!interactivityEl) {
220
- return;
221
- }
222
- const html = interactivityEl;
223
- if (options.interactivity.events.onHover.enable || options.interactivity.events.onClick.enable) {
224
- manageListener(interactivityEl, Constants.mouseMoveEvent, this.mouseMoveHandler, add);
225
- manageListener(interactivityEl, Constants.touchStartEvent, this.touchStartHandler, add);
226
- manageListener(interactivityEl, Constants.touchMoveEvent, this.touchMoveHandler, add);
227
- if (!options.interactivity.events.onClick.enable) {
228
- manageListener(interactivityEl, Constants.touchEndEvent, this.touchEndHandler, add);
229
- } else {
230
- manageListener(interactivityEl, Constants.touchEndEvent, this.touchEndClickHandler, add);
231
- manageListener(interactivityEl, Constants.mouseUpEvent, this.mouseUpHandler, add);
232
- manageListener(interactivityEl, Constants.mouseDownEvent, this.mouseDownHandler, add);
233
- }
234
- manageListener(interactivityEl, mouseLeaveEvent, this.mouseLeaveHandler, add);
235
- manageListener(interactivityEl, Constants.touchCancelEvent, this.touchCancelHandler, add);
236
- }
237
- if (container.canvas.element) {
238
- container.canvas.element.style.pointerEvents = html === container.canvas.element ? "initial" : "none";
239
- }
240
- if (options.interactivity.events.resize) {
241
- if (typeof ResizeObserver !== "undefined") {
242
- if (this.resizeObserver && !add) {
243
- if (container.canvas.element) {
244
- this.resizeObserver.unobserve(container.canvas.element);
245
- }
246
- this.resizeObserver.disconnect();
247
- delete this.resizeObserver;
248
- } else if (!this.resizeObserver && add && container.canvas.element) {
249
- this.resizeObserver = new ResizeObserver((entries => {
250
- const entry = entries.find((e => e.target === container.canvas.element));
251
- if (!entry) {
252
- return;
253
- }
254
- this.handleWindowResize();
255
- }));
256
- this.resizeObserver.observe(container.canvas.element);
257
- }
258
- } else {
259
- manageListener(window, Constants.resizeEvent, this.resizeHandler, add);
260
- }
261
- }
262
- if (document) {
263
- manageListener(document, Constants.visibilityChangeEvent, this.visibilityChangeHandler, add, false);
264
- }
265
- }
266
- handleWindowResize() {
267
- if (this.resizeTimeout) {
268
- clearTimeout(this.resizeTimeout);
269
- delete this.resizeTimeout;
270
- }
271
- this.resizeTimeout = setTimeout((async () => {
272
- var _a;
273
- return await ((_a = this.container.canvas) === null || _a === void 0 ? void 0 : _a.windowResize());
274
- }), 500);
275
- }
276
- handleVisibilityChange() {
277
- const container = this.container;
278
- const options = container.actualOptions;
279
- this.mouseTouchFinish();
280
- if (!options.pauseOnBlur) {
281
- return;
282
- }
283
- if (document === null || document === void 0 ? void 0 : document.hidden) {
284
- container.pageHidden = true;
285
- container.pause();
286
- } else {
287
- container.pageHidden = false;
288
- if (container.getAnimationStatus()) {
289
- container.play(true);
290
- } else {
291
- container.draw(true);
292
- }
293
- }
294
- }
295
- mouseDown() {
296
- const interactivity = this.container.interactivity;
297
- if (interactivity) {
298
- const mouse = interactivity.mouse;
299
- mouse.clicking = true;
300
- mouse.downPosition = mouse.position;
301
- }
302
- }
303
- mouseTouchMove(e) {
304
- var _a, _b, _c, _d, _e, _f, _g;
305
- const container = this.container;
306
- const options = container.actualOptions;
307
- if (((_a = container.interactivity) === null || _a === void 0 ? void 0 : _a.element) === undefined) {
308
- return;
309
- }
310
- container.interactivity.mouse.inside = true;
311
- let pos;
312
- const canvas = container.canvas.element;
313
- if (e.type.startsWith("mouse")) {
314
- this.canPush = true;
315
- const mouseEvent = e;
316
- if (container.interactivity.element === window) {
317
- if (canvas) {
318
- const clientRect = canvas.getBoundingClientRect();
319
- pos = {
320
- x: mouseEvent.clientX - clientRect.left,
321
- y: mouseEvent.clientY - clientRect.top
322
- };
323
- }
324
- } else if (options.interactivity.detectsOn === "parent") {
325
- const source = mouseEvent.target;
326
- const target = mouseEvent.currentTarget;
327
- const canvasEl = container.canvas.element;
328
- if (source && target && canvasEl) {
329
- const sourceRect = source.getBoundingClientRect();
330
- const targetRect = target.getBoundingClientRect();
331
- const canvasRect = canvasEl.getBoundingClientRect();
332
- pos = {
333
- x: mouseEvent.offsetX + 2 * sourceRect.left - (targetRect.left + canvasRect.left),
334
- y: mouseEvent.offsetY + 2 * sourceRect.top - (targetRect.top + canvasRect.top)
335
- };
336
- } else {
337
- pos = {
338
- x: (_b = mouseEvent.offsetX) !== null && _b !== void 0 ? _b : mouseEvent.clientX,
339
- y: (_c = mouseEvent.offsetY) !== null && _c !== void 0 ? _c : mouseEvent.clientY
340
- };
341
- }
342
- } else {
343
- if (mouseEvent.target === container.canvas.element) {
344
- pos = {
345
- x: (_d = mouseEvent.offsetX) !== null && _d !== void 0 ? _d : mouseEvent.clientX,
346
- y: (_e = mouseEvent.offsetY) !== null && _e !== void 0 ? _e : mouseEvent.clientY
347
- };
348
- }
349
- }
350
- } else {
351
- this.canPush = e.type !== "touchmove";
352
- const touchEvent = e;
353
- const lastTouch = touchEvent.touches[touchEvent.touches.length - 1];
354
- const canvasRect = canvas === null || canvas === void 0 ? void 0 : canvas.getBoundingClientRect();
355
- pos = {
356
- x: lastTouch.clientX - ((_f = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.left) !== null && _f !== void 0 ? _f : 0),
357
- y: lastTouch.clientY - ((_g = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.top) !== null && _g !== void 0 ? _g : 0)
358
- };
359
- }
360
- const pxRatio = container.retina.pixelRatio;
361
- if (pos) {
362
- pos.x *= pxRatio;
363
- pos.y *= pxRatio;
364
- }
365
- container.interactivity.mouse.position = pos;
366
- container.interactivity.status = Constants.mouseMoveEvent;
367
- }
368
- mouseTouchFinish() {
369
- const interactivity = this.container.interactivity;
370
- if (interactivity === undefined) {
371
- return;
372
- }
373
- const mouse = interactivity.mouse;
374
- delete mouse.position;
375
- delete mouse.clickPosition;
376
- delete mouse.downPosition;
377
- interactivity.status = Constants.mouseLeaveEvent;
378
- mouse.inside = false;
379
- mouse.clicking = false;
380
- }
381
- mouseTouchClick(e) {
382
- const container = this.container;
383
- const options = container.actualOptions;
384
- const mouse = container.interactivity.mouse;
385
- mouse.inside = true;
386
- let handled = false;
387
- const mousePosition = mouse.position;
388
- if (mousePosition === undefined || !options.interactivity.events.onClick.enable) {
389
- return;
390
- }
391
- for (const [, plugin] of container.plugins) {
392
- if (plugin.clickPositionValid !== undefined) {
393
- handled = plugin.clickPositionValid(mousePosition);
394
- if (handled) {
395
- break;
396
- }
397
- }
398
- }
399
- if (!handled) {
400
- this.doMouseTouchClick(e);
401
- }
402
- mouse.clicking = false;
403
- }
404
- doMouseTouchClick(e) {
405
- const container = this.container;
406
- const options = container.actualOptions;
407
- if (this.canPush) {
408
- const mousePos = container.interactivity.mouse.position;
409
- if (mousePos) {
410
- container.interactivity.mouse.clickPosition = {
411
- x: mousePos.x,
412
- y: mousePos.y
413
- };
414
- } else {
415
- return;
416
- }
417
- container.interactivity.mouse.clickTime = (new Date).getTime();
418
- const onClick = options.interactivity.events.onClick;
419
- if (onClick.mode instanceof Array) {
420
- for (const mode of onClick.mode) {
421
- this.handleClickMode(mode);
422
- }
423
- } else {
424
- this.handleClickMode(onClick.mode);
425
- }
426
- }
427
- if (e.type === "touchend") {
428
- setTimeout((() => this.mouseTouchFinish()), 500);
429
- }
430
- }
431
- handleThemeChange(e) {
432
- const mediaEvent = e;
433
- const themeName = mediaEvent.matches ? this.container.options.defaultDarkTheme : this.container.options.defaultLightTheme;
434
- const theme = this.container.options.themes.find((theme => theme.name === themeName));
435
- if (theme && theme.default.auto) {
436
- this.container.loadTheme(themeName);
437
- }
438
- }
439
- handleClickMode(mode) {
440
- const container = this.container;
441
- const options = container.actualOptions;
442
- const pushNb = options.interactivity.modes.push.quantity;
443
- const removeNb = options.interactivity.modes.remove.quantity;
444
- switch (mode) {
445
- case "push":
446
- {
447
- if (pushNb > 0) {
448
- const pushOptions = options.interactivity.modes.push;
449
- const group = itemFromArray([ undefined, ...pushOptions.groups ]);
450
- const groupOptions = group !== undefined ? container.actualOptions.particles.groups[group] : undefined;
451
- container.particles.push(pushNb, container.interactivity.mouse, groupOptions, group);
452
- }
453
- break;
454
- }
455
-
456
- case "remove":
457
- container.particles.removeQuantity(removeNb);
458
- break;
459
-
460
- case "bubble":
461
- container.bubble.clicking = true;
462
- break;
463
-
464
- case "repulse":
465
- container.repulse.clicking = true;
466
- container.repulse.count = 0;
467
- for (const particle of container.repulse.particles) {
468
- particle.velocity.setTo(particle.initialVelocity);
469
- }
470
- container.repulse.particles = [];
471
- container.repulse.finish = false;
472
- setTimeout((() => {
473
- if (!container.destroyed) {
474
- container.repulse.clicking = false;
475
- }
476
- }), options.interactivity.modes.repulse.duration * 1e3);
477
- break;
478
-
479
- case "attract":
480
- container.attract.clicking = true;
481
- container.attract.count = 0;
482
- for (const particle of container.attract.particles) {
483
- particle.velocity.setTo(particle.initialVelocity);
484
- }
485
- container.attract.particles = [];
486
- container.attract.finish = false;
487
- setTimeout((() => {
488
- if (!container.destroyed) {
489
- container.attract.clicking = false;
490
- }
491
- }), options.interactivity.modes.attract.duration * 1e3);
492
- break;
493
-
494
- case "pause":
495
- if (container.getAnimationStatus()) {
496
- container.pause();
497
- } else {
498
- container.play();
499
- }
500
- break;
501
- }
502
- for (const [, plugin] of container.plugins) {
503
- if (plugin.handleClickMode) {
504
- plugin.handleClickMode(mode);
505
- }
506
- }
507
- }
508
- }
509
- var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
510
- if (kind === "m") throw new TypeError("Private method is not writable");
511
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
512
- 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");
513
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
514
- value;
515
- };
516
- var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
517
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
518
- 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");
519
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
520
- };
521
- var _InteractionManager_engine;
522
- class InteractionManager_InteractionManager {
523
- constructor(engine, container) {
524
- this.container = container;
525
- _InteractionManager_engine.set(this, void 0);
526
- __classPrivateFieldSet(this, _InteractionManager_engine, engine, "f");
527
- this.externalInteractors = [];
528
- this.particleInteractors = [];
529
- this.init();
530
- }
531
- init() {
532
- const interactors = __classPrivateFieldGet(this, _InteractionManager_engine, "f").plugins.getInteractors(this.container, true);
533
- this.externalInteractors = [];
534
- this.particleInteractors = [];
535
- for (const interactor of interactors) {
536
- switch (interactor.type) {
537
- case 0:
538
- this.externalInteractors.push(interactor);
539
- break;
540
-
541
- case 1:
542
- this.particleInteractors.push(interactor);
543
- break;
544
- }
545
- }
546
- }
547
- async externalInteract(delta) {
548
- for (const interactor of this.externalInteractors) {
549
- if (interactor.isEnabled()) {
550
- await interactor.interact(delta);
551
- }
552
- }
553
- }
554
- async particlesInteract(particle, delta) {
555
- for (const interactor of this.externalInteractors) {
556
- interactor.reset(particle);
557
- }
558
- for (const interactor of this.particleInteractors) {
559
- if (interactor.isEnabled(particle)) {
560
- await interactor.interact(particle, delta);
561
- }
562
- }
563
- }
564
- }
565
- _InteractionManager_engine = new WeakMap;
566
- function applyDistance(particle) {
567
- const initialPosition = particle.initialPosition;
568
- const {dx: dx, dy: dy} = getDistances(initialPosition, particle.position);
569
- const dxFixed = Math.abs(dx), dyFixed = Math.abs(dy);
570
- const hDistance = particle.retina.maxDistance.horizontal;
571
- const vDistance = particle.retina.maxDistance.vertical;
572
- if (!hDistance && !vDistance) {
573
- return;
574
- }
575
- if ((hDistance && dxFixed >= hDistance || vDistance && dyFixed >= vDistance) && !particle.misplaced) {
576
- particle.misplaced = !!hDistance && dxFixed > hDistance || !!vDistance && dyFixed > vDistance;
577
- if (hDistance) {
578
- particle.velocity.x = particle.velocity.y / 2 - particle.velocity.x;
579
- }
580
- if (vDistance) {
581
- particle.velocity.y = particle.velocity.x / 2 - particle.velocity.y;
582
- }
583
- } else if ((!hDistance || dxFixed < hDistance) && (!vDistance || dyFixed < vDistance) && particle.misplaced) {
584
- particle.misplaced = false;
585
- } else if (particle.misplaced) {
586
- const pos = particle.position, vel = particle.velocity;
587
- if (hDistance && (pos.x < initialPosition.x && vel.x < 0 || pos.x > initialPosition.x && vel.x > 0)) {
588
- vel.x *= -Math.random();
589
- }
590
- if (vDistance && (pos.y < initialPosition.y && vel.y < 0 || pos.y > initialPosition.y && vel.y > 0)) {
591
- vel.y *= -Math.random();
592
- }
593
- }
594
- }
595
- class ParticlesMover_ParticlesMover {
596
- constructor(container) {
597
- this.container = container;
598
- }
599
- move(particle, delta) {
600
- if (particle.destroyed) {
601
- return;
602
- }
603
- this.moveParticle(particle, delta);
604
- this.moveParallax(particle);
605
- }
606
- moveParticle(particle, delta) {
607
- var _a, _b, _c;
608
- var _d, _e;
609
- const particleOptions = particle.options;
610
- const moveOptions = particleOptions.move;
611
- if (!moveOptions.enable) {
612
- return;
613
- }
614
- 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;
615
- this.applyPath(particle, delta);
616
- const gravityOptions = particle.gravity;
617
- const gravityFactor = gravityOptions.enable && gravityOptions.inverse ? -1 : 1;
618
- if (gravityOptions.enable && moveSpeed) {
619
- particle.velocity.y += gravityFactor * (gravityOptions.acceleration * delta.factor) / (60 * moveSpeed);
620
- }
621
- if (moveDrift && moveSpeed) {
622
- particle.velocity.x += moveDrift * delta.factor / (60 * moveSpeed);
623
- }
624
- const decay = particle.moveDecay;
625
- if (decay != 1) {
626
- particle.velocity.multTo(decay);
627
- }
628
- const velocity = particle.velocity.mult(moveSpeed);
629
- const maxSpeed = (_c = particle.retina.maxSpeed) !== null && _c !== void 0 ? _c : container.retina.maxSpeed;
630
- if (gravityOptions.enable && maxSpeed > 0 && (!gravityOptions.inverse && velocity.y >= 0 && velocity.y >= maxSpeed || gravityOptions.inverse && velocity.y <= 0 && velocity.y <= -maxSpeed)) {
631
- velocity.y = gravityFactor * maxSpeed;
632
- if (moveSpeed) {
633
- particle.velocity.y = velocity.y / moveSpeed;
634
- }
635
- }
636
- const zIndexOptions = particle.options.zIndex, zVelocityFactor = (1 - particle.zIndexFactor) ** zIndexOptions.velocityRate;
637
- if (moveOptions.spin.enable) {
638
- this.spin(particle, moveSpeed);
639
- } else {
640
- if (zVelocityFactor != 1) {
641
- velocity.multTo(zVelocityFactor);
642
- }
643
- particle.position.addTo(velocity);
644
- if (moveOptions.vibrate) {
645
- particle.position.x += Math.sin(particle.position.x * Math.cos(particle.position.y));
646
- particle.position.y += Math.cos(particle.position.y * Math.sin(particle.position.x));
647
- }
648
- }
649
- applyDistance(particle);
650
- }
651
- spin(particle, moveSpeed) {
652
- const container = this.container;
653
- if (!particle.spin) {
654
- return;
655
- }
656
- const updateFunc = {
657
- x: particle.spin.direction === "clockwise" ? Math.cos : Math.sin,
658
- y: particle.spin.direction === "clockwise" ? Math.sin : Math.cos
659
- };
660
- particle.position.x = particle.spin.center.x + particle.spin.radius * updateFunc.x(particle.spin.angle);
661
- particle.position.y = particle.spin.center.y + particle.spin.radius * updateFunc.y(particle.spin.angle);
662
- particle.spin.radius += particle.spin.acceleration;
663
- const maxCanvasSize = Math.max(container.canvas.size.width, container.canvas.size.height);
664
- if (particle.spin.radius > maxCanvasSize / 2) {
665
- particle.spin.radius = maxCanvasSize / 2;
666
- particle.spin.acceleration *= -1;
667
- } else if (particle.spin.radius < 0) {
668
- particle.spin.radius = 0;
669
- particle.spin.acceleration *= -1;
670
- }
671
- particle.spin.angle += moveSpeed / 100 * (1 - particle.spin.radius / maxCanvasSize);
672
- }
673
- applyPath(particle, delta) {
674
- const particlesOptions = particle.options;
675
- const pathOptions = particlesOptions.move.path;
676
- const pathEnabled = pathOptions.enable;
677
- if (!pathEnabled) {
678
- return;
679
- }
680
- const container = this.container;
681
- if (particle.lastPathTime <= particle.pathDelay) {
682
- particle.lastPathTime += delta.value;
683
- return;
684
- }
685
- const path = container.pathGenerator.generate(particle);
686
- particle.velocity.addTo(path);
687
- if (pathOptions.clamp) {
688
- particle.velocity.x = clamp(particle.velocity.x, -1, 1);
689
- particle.velocity.y = clamp(particle.velocity.y, -1, 1);
690
- }
691
- particle.lastPathTime -= particle.pathDelay;
692
- }
693
- moveParallax(particle) {
694
- const container = this.container;
695
- const options = container.actualOptions;
696
- if (isSsr() || !options.interactivity.events.onHover.parallax.enable) {
697
- return;
698
- }
699
- const parallaxForce = options.interactivity.events.onHover.parallax.force;
700
- const mousePos = container.interactivity.mouse.position;
701
- if (!mousePos) {
702
- return;
703
- }
704
- const canvasCenter = {
705
- x: container.canvas.size.width / 2,
706
- y: container.canvas.size.height / 2
707
- };
708
- const parallaxSmooth = options.interactivity.events.onHover.parallax.smooth;
709
- const factor = particle.getRadius() / parallaxForce;
710
- const tmp = {
711
- x: (mousePos.x - canvasCenter.x) * factor,
712
- y: (mousePos.y - canvasCenter.y) * factor
713
- };
714
- particle.offset.x += (tmp.x - particle.offset.x) / parallaxSmooth;
715
- particle.offset.y += (tmp.y - particle.offset.y) / parallaxSmooth;
716
- }
717
- getProximitySpeedFactor(particle) {
718
- const container = this.container;
719
- const options = container.actualOptions;
720
- const active = isInArray("slow", options.interactivity.events.onHover.mode);
721
- if (!active) {
722
- return 1;
723
- }
724
- const mousePos = this.container.interactivity.mouse.position;
725
- if (!mousePos) {
726
- return 1;
727
- }
728
- const particlePos = particle.getPosition();
729
- const dist = getDistance(mousePos, particlePos);
730
- const radius = container.retina.slowModeRadius;
731
- if (dist > radius) {
732
- return 1;
733
- }
734
- const proximityFactor = dist / radius || 0;
735
- const slowFactor = options.interactivity.modes.slow.factor;
736
- return proximityFactor / slowFactor;
737
- }
738
- }
739
- var Plugins_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
740
- if (kind === "m") throw new TypeError("Private method is not writable");
741
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
742
- 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");
743
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
744
- value;
745
- };
746
- var _Plugins_engine;
747
- class Plugins {
748
- constructor(engine) {
749
- _Plugins_engine.set(this, void 0);
750
- Plugins_classPrivateFieldSet(this, _Plugins_engine, engine, "f");
751
- this.plugins = [];
752
- this.interactorsInitializers = new Map;
753
- this.updatersInitializers = new Map;
754
- this.interactors = new Map;
755
- this.updaters = new Map;
756
- this.presets = new Map;
757
- this.drawers = new Map;
758
- this.pathGenerators = new Map;
759
- }
760
- getPlugin(plugin) {
761
- return this.plugins.find((t => t.id === plugin));
762
- }
763
- addPlugin(plugin) {
764
- if (!this.getPlugin(plugin.id)) {
765
- this.plugins.push(plugin);
766
- }
767
- }
768
- getAvailablePlugins(container) {
769
- const res = new Map;
770
- for (const plugin of this.plugins) {
771
- if (!plugin.needsPlugin(container.actualOptions)) {
772
- continue;
773
- }
774
- res.set(plugin.id, plugin.getPlugin(container));
775
- }
776
- return res;
777
- }
778
- loadOptions(options, sourceOptions) {
779
- for (const plugin of this.plugins) {
780
- plugin.loadOptions(options, sourceOptions);
781
- }
782
- }
783
- getPreset(preset) {
784
- return this.presets.get(preset);
785
- }
786
- addPreset(presetKey, options, override = false) {
787
- if (override || !this.getPreset(presetKey)) {
788
- this.presets.set(presetKey, options);
789
- }
790
- }
791
- addShapeDrawer(type, drawer) {
792
- if (!this.getShapeDrawer(type)) {
793
- this.drawers.set(type, drawer);
794
- }
795
- }
796
- getShapeDrawer(type) {
797
- return this.drawers.get(type);
798
- }
799
- getSupportedShapes() {
800
- return this.drawers.keys();
801
- }
802
- getPathGenerator(type) {
803
- return this.pathGenerators.get(type);
804
- }
805
- addPathGenerator(type, pathGenerator) {
806
- if (!this.getPathGenerator(type)) {
807
- this.pathGenerators.set(type, pathGenerator);
808
- }
809
- }
810
- getInteractors(container, force = false) {
811
- let res = this.interactors.get(container);
812
- if (!res || force) {
813
- res = [ ...this.interactorsInitializers.values() ].map((t => t(container)));
814
- this.interactors.set(container, res);
815
- }
816
- return res;
817
- }
818
- addInteractor(name, initInteractor) {
819
- this.interactorsInitializers.set(name, initInteractor);
820
- }
821
- getUpdaters(container, force = false) {
822
- let res = this.updaters.get(container);
823
- if (!res || force) {
824
- res = [ ...this.updatersInitializers.values() ].map((t => t(container)));
825
- this.updaters.set(container, res);
826
- }
827
- return res;
828
- }
829
- addParticleUpdater(name, initUpdater) {
830
- this.updatersInitializers.set(name, initUpdater);
831
- }
832
- }
833
- _Plugins_engine = new WeakMap;
834
- class QuadTree_QuadTree {
835
- constructor(rectangle, capacity) {
836
- this.rectangle = rectangle;
837
- this.capacity = capacity;
838
- this.points = [];
839
- this.divided = false;
840
- }
841
- subdivide() {
842
- const x = this.rectangle.position.x;
843
- const y = this.rectangle.position.y;
844
- const w = this.rectangle.size.width;
845
- const h = this.rectangle.size.height;
846
- const capacity = this.capacity;
847
- this.northEast = new QuadTree_QuadTree(new Rectangle(x, y, w / 2, h / 2), capacity);
848
- this.northWest = new QuadTree_QuadTree(new Rectangle(x + w / 2, y, w / 2, h / 2), capacity);
849
- this.southEast = new QuadTree_QuadTree(new Rectangle(x, y + h / 2, w / 2, h / 2), capacity);
850
- this.southWest = new QuadTree_QuadTree(new Rectangle(x + w / 2, y + h / 2, w / 2, h / 2), capacity);
851
- this.divided = true;
852
- }
853
- insert(point) {
854
- var _a, _b, _c, _d, _e;
855
- if (!this.rectangle.contains(point.position)) {
856
- return false;
857
- }
858
- if (this.points.length < this.capacity) {
859
- this.points.push(point);
860
- return true;
861
- }
862
- if (!this.divided) {
863
- this.subdivide();
864
- }
865
- 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;
866
- }
867
- queryCircle(position, radius) {
868
- return this.query(new Circle(position.x, position.y, radius));
869
- }
870
- queryCircleWarp(position, radius, containerOrSize) {
871
- const container = containerOrSize;
872
- const size = containerOrSize;
873
- return this.query(new CircleWarp(position.x, position.y, radius, container.canvas !== undefined ? container.canvas.size : size));
874
- }
875
- queryRectangle(position, size) {
876
- return this.query(new Rectangle(position.x, position.y, size.width, size.height));
877
- }
878
- query(range, found) {
879
- var _a, _b, _c, _d;
880
- const res = found !== null && found !== void 0 ? found : [];
881
- if (!range.intersects(this.rectangle)) {
882
- return [];
883
- } else {
884
- for (const p of this.points) {
885
- if (!range.contains(p.position) && getDistance(range.position, p.position) > p.particle.getRadius()) {
886
- continue;
887
- }
888
- res.push(p.particle);
889
- }
890
- if (this.divided) {
891
- (_a = this.northEast) === null || _a === void 0 ? void 0 : _a.query(range, res);
892
- (_b = this.northWest) === null || _b === void 0 ? void 0 : _b.query(range, res);
893
- (_c = this.southEast) === null || _c === void 0 ? void 0 : _c.query(range, res);
894
- (_d = this.southWest) === null || _d === void 0 ? void 0 : _d.query(range, res);
895
- }
896
- }
897
- return res;
898
- }
899
- }
900
- class Canvas_Canvas {
901
- constructor(container) {
902
- this.container = container;
903
- this.size = {
904
- height: 0,
905
- width: 0
906
- };
907
- this.context = null;
908
- this.generatedCanvas = false;
909
- }
910
- init() {
911
- this.resize();
912
- this.initStyle();
913
- this.initCover();
914
- this.initTrail();
915
- this.initBackground();
916
- this.paint();
917
- }
918
- loadCanvas(canvas) {
919
- var _a;
920
- if (this.generatedCanvas) {
921
- (_a = this.element) === null || _a === void 0 ? void 0 : _a.remove();
922
- }
923
- this.generatedCanvas = canvas.dataset && Constants.generatedAttribute in canvas.dataset ? canvas.dataset[Constants.generatedAttribute] === "true" : this.generatedCanvas;
924
- this.element = canvas;
925
- this.originalStyle = deepExtend({}, this.element.style);
926
- this.size.height = canvas.offsetHeight;
927
- this.size.width = canvas.offsetWidth;
928
- this.context = this.element.getContext("2d");
929
- this.container.retina.init();
930
- this.initBackground();
931
- }
932
- destroy() {
933
- var _a;
934
- if (this.generatedCanvas) {
935
- (_a = this.element) === null || _a === void 0 ? void 0 : _a.remove();
936
- }
937
- this.draw((ctx => {
938
- clear(ctx, this.size);
939
- }));
940
- }
941
- paint() {
942
- const options = this.container.actualOptions;
943
- this.draw((ctx => {
944
- if (options.backgroundMask.enable && options.backgroundMask.cover) {
945
- clear(ctx, this.size);
946
- this.paintBase(this.coverColorStyle);
947
- } else {
948
- this.paintBase();
949
- }
950
- }));
951
- }
952
- clear() {
953
- const options = this.container.actualOptions;
954
- const trail = options.particles.move.trail;
955
- if (options.backgroundMask.enable) {
956
- this.paint();
957
- } else if (trail.enable && trail.length > 0 && this.trailFillColor) {
958
- this.paintBase(getStyleFromRgb(this.trailFillColor, 1 / trail.length));
959
- } else {
960
- this.draw((ctx => {
961
- clear(ctx, this.size);
962
- }));
963
- }
964
- }
965
- async windowResize() {
966
- if (!this.element) {
967
- return;
968
- }
969
- const container = this.container;
970
- this.resize();
971
- const needsRefresh = container.updateActualOptions();
972
- container.particles.setDensity();
973
- for (const [, plugin] of container.plugins) {
974
- if (plugin.resize !== undefined) {
975
- plugin.resize();
976
- }
977
- }
978
- if (needsRefresh) {
979
- await container.refresh();
980
- }
981
- }
982
- resize() {
983
- if (!this.element) {
984
- return;
985
- }
986
- const container = this.container;
987
- const pxRatio = container.retina.pixelRatio;
988
- const size = container.canvas.size;
989
- const newSize = {
990
- width: this.element.offsetWidth * pxRatio,
991
- height: this.element.offsetHeight * pxRatio
992
- };
993
- if (newSize.height === size.height && newSize.width === size.width && newSize.height === this.element.height && newSize.width === this.element.width) {
994
- return;
995
- }
996
- const oldSize = Object.assign({}, size);
997
- this.element.width = size.width = this.element.offsetWidth * pxRatio;
998
- this.element.height = size.height = this.element.offsetHeight * pxRatio;
999
- if (this.container.started) {
1000
- this.resizeFactor = {
1001
- width: size.width / oldSize.width,
1002
- height: size.height / oldSize.height
1003
- };
1004
- }
1005
- }
1006
- drawConnectLine(p1, p2) {
1007
- this.draw((ctx => {
1008
- var _a;
1009
- const lineStyle = this.lineStyle(p1, p2);
1010
- if (!lineStyle) {
1011
- return;
1012
- }
1013
- const pos1 = p1.getPosition();
1014
- const pos2 = p2.getPosition();
1015
- drawConnectLine(ctx, (_a = p1.retina.linksWidth) !== null && _a !== void 0 ? _a : this.container.retina.linksWidth, lineStyle, pos1, pos2);
1016
- }));
1017
- }
1018
- drawGrabLine(particle, lineColor, opacity, mousePos) {
1019
- const container = this.container;
1020
- this.draw((ctx => {
1021
- var _a;
1022
- const beginPos = particle.getPosition();
1023
- drawGrabLine(ctx, (_a = particle.retina.linksWidth) !== null && _a !== void 0 ? _a : container.retina.linksWidth, beginPos, mousePos, lineColor, opacity);
1024
- }));
1025
- }
1026
- drawParticle(particle, delta) {
1027
- var _a, _b, _c, _d, _e, _f;
1028
- if (particle.spawning || particle.destroyed) {
1029
- return;
1030
- }
1031
- const pfColor = particle.getFillColor();
1032
- const psColor = (_a = particle.getStrokeColor()) !== null && _a !== void 0 ? _a : pfColor;
1033
- if (!pfColor && !psColor) {
1034
- return;
1035
- }
1036
- let [fColor, sColor] = this.getPluginParticleColors(particle);
1037
- const pOptions = particle.options;
1038
- const twinkle = pOptions.twinkle.particles;
1039
- const twinkling = twinkle.enable && Math.random() < twinkle.frequency;
1040
- if (!fColor || !sColor) {
1041
- const twinkleRgb = colorToHsl(twinkle.color);
1042
- if (!fColor) {
1043
- fColor = twinkling && twinkleRgb !== undefined ? twinkleRgb : pfColor ? pfColor : undefined;
1044
- }
1045
- if (!sColor) {
1046
- sColor = twinkling && twinkleRgb !== undefined ? twinkleRgb : psColor ? psColor : undefined;
1047
- }
1048
- }
1049
- const options = this.container.actualOptions;
1050
- const zIndexOptions = particle.options.zIndex;
1051
- const zOpacityFactor = (1 - particle.zIndexFactor) ** zIndexOptions.opacityRate;
1052
- const radius = particle.getRadius();
1053
- 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;
1054
- const strokeOpacity = (_f = (_e = particle.stroke) === null || _e === void 0 ? void 0 : _e.opacity) !== null && _f !== void 0 ? _f : opacity;
1055
- const zOpacity = opacity * zOpacityFactor;
1056
- const fillColorValue = fColor ? getStyleFromHsl(fColor, zOpacity) : undefined;
1057
- if (!fillColorValue && !sColor) {
1058
- return;
1059
- }
1060
- this.draw((ctx => {
1061
- const zSizeFactor = (1 - particle.zIndexFactor) ** zIndexOptions.sizeRate;
1062
- const zStrokeOpacity = strokeOpacity * zOpacityFactor;
1063
- const strokeColorValue = sColor ? getStyleFromHsl(sColor, zStrokeOpacity) : fillColorValue;
1064
- if (radius <= 0) {
1065
- return;
1066
- }
1067
- const container = this.container;
1068
- for (const updater of container.particles.updaters) {
1069
- if (updater.beforeDraw) {
1070
- updater.beforeDraw(particle);
1071
- }
1072
- }
1073
- drawParticle(this.container, ctx, particle, delta, fillColorValue, strokeColorValue, options.backgroundMask.enable, options.backgroundMask.composite, radius * zSizeFactor, zOpacity, particle.options.shadow, particle.gradient);
1074
- for (const updater of container.particles.updaters) {
1075
- if (updater.afterDraw) {
1076
- updater.afterDraw(particle);
1077
- }
1078
- }
1079
- }));
1080
- }
1081
- drawPlugin(plugin, delta) {
1082
- this.draw((ctx => {
1083
- drawPlugin(ctx, plugin, delta);
1084
- }));
1085
- }
1086
- drawParticlePlugin(plugin, particle, delta) {
1087
- this.draw((ctx => {
1088
- drawParticlePlugin(ctx, plugin, particle, delta);
1089
- }));
1090
- }
1091
- initBackground() {
1092
- const options = this.container.actualOptions;
1093
- const background = options.background;
1094
- const element = this.element;
1095
- const elementStyle = element === null || element === void 0 ? void 0 : element.style;
1096
- if (!elementStyle) {
1097
- return;
1098
- }
1099
- if (background.color) {
1100
- const color = colorToRgb(background.color);
1101
- elementStyle.backgroundColor = color ? getStyleFromRgb(color, background.opacity) : "";
1102
- } else {
1103
- elementStyle.backgroundColor = "";
1104
- }
1105
- elementStyle.backgroundImage = background.image || "";
1106
- elementStyle.backgroundPosition = background.position || "";
1107
- elementStyle.backgroundRepeat = background.repeat || "";
1108
- elementStyle.backgroundSize = background.size || "";
1109
- }
1110
- draw(cb) {
1111
- if (!this.context) {
1112
- return;
1113
- }
1114
- return cb(this.context);
1115
- }
1116
- initCover() {
1117
- const options = this.container.actualOptions;
1118
- const cover = options.backgroundMask.cover;
1119
- const color = cover.color;
1120
- const coverRgb = colorToRgb(color);
1121
- if (coverRgb) {
1122
- const coverColor = {
1123
- r: coverRgb.r,
1124
- g: coverRgb.g,
1125
- b: coverRgb.b,
1126
- a: cover.opacity
1127
- };
1128
- this.coverColorStyle = getStyleFromRgb(coverColor, coverColor.a);
1129
- }
1130
- }
1131
- initTrail() {
1132
- const options = this.container.actualOptions;
1133
- const trail = options.particles.move.trail;
1134
- const fillColor = colorToRgb(trail.fillColor);
1135
- if (fillColor) {
1136
- const trail = options.particles.move.trail;
1137
- this.trailFillColor = {
1138
- r: fillColor.r,
1139
- g: fillColor.g,
1140
- b: fillColor.b,
1141
- a: 1 / trail.length
1142
- };
1143
- }
1144
- }
1145
- getPluginParticleColors(particle) {
1146
- let fColor;
1147
- let sColor;
1148
- for (const [, plugin] of this.container.plugins) {
1149
- if (!fColor && plugin.particleFillColor) {
1150
- fColor = colorToHsl(plugin.particleFillColor(particle));
1151
- }
1152
- if (!sColor && plugin.particleStrokeColor) {
1153
- sColor = colorToHsl(plugin.particleStrokeColor(particle));
1154
- }
1155
- if (fColor && sColor) {
1156
- break;
1157
- }
1158
- }
1159
- return [ fColor, sColor ];
1160
- }
1161
- initStyle() {
1162
- const element = this.element, options = this.container.actualOptions;
1163
- if (!element) {
1164
- return;
1165
- }
1166
- const originalStyle = this.originalStyle;
1167
- if (options.fullScreen.enable) {
1168
- this.originalStyle = deepExtend({}, element.style);
1169
- element.style.setProperty("position", "fixed", "important");
1170
- element.style.setProperty("z-index", options.fullScreen.zIndex.toString(10), "important");
1171
- element.style.setProperty("top", "0", "important");
1172
- element.style.setProperty("left", "0", "important");
1173
- element.style.setProperty("width", "100%", "important");
1174
- element.style.setProperty("height", "100%", "important");
1175
- } else if (originalStyle) {
1176
- element.style.position = originalStyle.position;
1177
- element.style.zIndex = originalStyle.zIndex;
1178
- element.style.top = originalStyle.top;
1179
- element.style.left = originalStyle.left;
1180
- element.style.width = originalStyle.width;
1181
- element.style.height = originalStyle.height;
1182
- }
1183
- for (const key in options.style) {
1184
- if (!key || !options.style) {
1185
- continue;
1186
- }
1187
- const value = options.style[key];
1188
- if (!value) {
1189
- continue;
1190
- }
1191
- element.style.setProperty(key, value, "important");
1192
- }
1193
- }
1194
- paintBase(baseColor) {
1195
- this.draw((ctx => {
1196
- paintBase(ctx, this.size, baseColor);
1197
- }));
1198
- }
1199
- lineStyle(p1, p2) {
1200
- return this.draw((ctx => {
1201
- const options = this.container.actualOptions;
1202
- const connectOptions = options.interactivity.modes.connect;
1203
- return gradient(ctx, p1, p2, connectOptions.links.opacity);
1204
- }));
1205
- }
1206
- }
1207
- class Trail_Trail {
1208
- constructor() {
1209
- this.delay = 1;
1210
- this.pauseOnStop = false;
1211
- this.quantity = 1;
1212
- }
1213
- load(data) {
1214
- if (data === undefined) {
1215
- return;
1216
- }
1217
- if (data.delay !== undefined) {
1218
- this.delay = data.delay;
1219
- }
1220
- if (data.quantity !== undefined) {
1221
- this.quantity = data.quantity;
1222
- }
1223
- if (data.particles !== undefined) {
1224
- this.particles = deepExtend({}, data.particles);
1225
- }
1226
- if (data.pauseOnStop !== undefined) {
1227
- this.pauseOnStop = data.pauseOnStop;
1228
- }
1229
- }
1230
- }
1231
- class Modes_Modes {
1232
- constructor() {
1233
- this.attract = new Attract;
1234
- this.bounce = new Bounce;
1235
- this.bubble = new Bubble;
1236
- this.connect = new Connect;
1237
- this.grab = new Grab;
1238
- this.light = new Light;
1239
- this.push = new Push;
1240
- this.remove = new Remove;
1241
- this.repulse = new Repulse;
1242
- this.slow = new Slow;
1243
- this.trail = new Trail;
1244
- }
1245
- load(data) {
1246
- if (data === undefined) {
1247
- return;
1248
- }
1249
- this.attract.load(data.attract);
1250
- this.bubble.load(data.bubble);
1251
- this.connect.load(data.connect);
1252
- this.grab.load(data.grab);
1253
- this.light.load(data.light);
1254
- this.push.load(data.push);
1255
- this.remove.load(data.remove);
1256
- this.repulse.load(data.repulse);
1257
- this.slow.load(data.slow);
1258
- this.trail.load(data.trail);
1259
- }
1260
- }
1261
- class Interactivity_Interactivity {
1262
- constructor() {
1263
- this.detectsOn = "window";
1264
- this.events = new Events;
1265
- this.modes = new Modes;
1266
- }
1267
- get detect_on() {
1268
- return this.detectsOn;
1269
- }
1270
- set detect_on(value) {
1271
- this.detectsOn = value;
1272
- }
1273
- load(data) {
1274
- var _a, _b, _c;
1275
- if (data === undefined) {
1276
- return;
1277
- }
1278
- const detectsOn = (_a = data.detectsOn) !== null && _a !== void 0 ? _a : data.detect_on;
1279
- if (detectsOn !== undefined) {
1280
- this.detectsOn = detectsOn;
1281
- }
1282
- this.events.load(data.events);
1283
- this.modes.load(data.modes);
1284
- if (((_c = (_b = data.modes) === null || _b === void 0 ? void 0 : _b.slow) === null || _c === void 0 ? void 0 : _c.active) === true) {
1285
- if (this.events.onHover.mode instanceof Array) {
1286
- if (this.events.onHover.mode.indexOf("slow") < 0) {
1287
- this.events.onHover.mode.push("slow");
1288
- }
1289
- } else if (this.events.onHover.mode !== "slow") {
1290
- this.events.onHover.mode = [ this.events.onHover.mode, "slow" ];
1291
- }
1292
- }
1293
- }
1294
- }
1295
- class ManualParticle_ManualParticle {
1296
- load(data) {
1297
- var _a, _b;
1298
- if (!data) {
1299
- return;
1300
- }
1301
- if (data.position !== undefined) {
1302
- this.position = {
1303
- x: (_a = data.position.x) !== null && _a !== void 0 ? _a : 50,
1304
- y: (_b = data.position.y) !== null && _b !== void 0 ? _b : 50
1305
- };
1306
- }
1307
- if (data.options !== undefined) {
1308
- this.options = deepExtend({}, data.options);
1309
- }
1310
- }
1311
- }
1312
- class ColorAnimation_ColorAnimation {
1313
- constructor() {
1314
- this.count = 0;
1315
- this.enable = false;
1316
- this.offset = 0;
1317
- this.speed = 1;
1318
- this.sync = true;
1319
- }
1320
- load(data) {
1321
- if (data === undefined) {
1322
- return;
1323
- }
1324
- if (data.count !== undefined) {
1325
- this.count = setRangeValue(data.count);
1326
- }
1327
- if (data.enable !== undefined) {
1328
- this.enable = data.enable;
1329
- }
1330
- if (data.offset !== undefined) {
1331
- this.offset = setRangeValue(data.offset);
1332
- }
1333
- if (data.speed !== undefined) {
1334
- this.speed = setRangeValue(data.speed);
1335
- }
1336
- if (data.sync !== undefined) {
1337
- this.sync = data.sync;
1338
- }
1339
- }
1340
- }
1341
- class HslAnimation_HslAnimation {
1342
- constructor() {
1343
- this.h = new ColorAnimation;
1344
- this.s = new ColorAnimation;
1345
- this.l = new ColorAnimation;
1346
- }
1347
- load(data) {
1348
- if (!data) {
1349
- return;
1350
- }
1351
- this.h.load(data.h);
1352
- this.s.load(data.s);
1353
- this.l.load(data.l);
1354
- }
1355
- }
1356
- class AnimatableColor_AnimatableColor extends(null && OptionsColor){
1357
- constructor() {
1358
- super();
1359
- this.animation = new HslAnimation;
1360
- }
1361
- static create(source, data) {
1362
- const color = new AnimatableColor_AnimatableColor;
1363
- color.load(source);
1364
- if (data !== undefined) {
1365
- if (typeof data === "string" || data instanceof Array) {
1366
- color.load({
1367
- value: data
1368
- });
1369
- } else {
1370
- color.load(data);
1371
- }
1372
- }
1373
- return color;
1374
- }
1375
- load(data) {
1376
- super.load(data);
1377
- if (!data) {
1378
- return;
1379
- }
1380
- const colorAnimation = data.animation;
1381
- if (colorAnimation !== undefined) {
1382
- if (colorAnimation.enable !== undefined) {
1383
- this.animation.h.load(colorAnimation);
1384
- } else {
1385
- this.animation.load(data.animation);
1386
- }
1387
- }
1388
- }
1389
- }
1390
- class AnimatableGradient_AnimatableGradient {
1391
- constructor() {
1392
- this.angle = new GradientAngle;
1393
- this.colors = [];
1394
- this.type = "random";
1395
- }
1396
- load(data) {
1397
- if (!data) {
1398
- return;
1399
- }
1400
- this.angle.load(data.angle);
1401
- if (data.colors !== undefined) {
1402
- this.colors = data.colors.map((s => {
1403
- const tmp = new AnimatableGradientColor;
1404
- tmp.load(s);
1405
- return tmp;
1406
- }));
1407
- }
1408
- if (data.type !== undefined) {
1409
- this.type = data.type;
1410
- }
1411
- }
1412
- }
1413
- class GradientAngle {
1414
- constructor() {
1415
- this.value = 0;
1416
- this.animation = new GradientAngleAnimation;
1417
- this.direction = "clockwise";
1418
- }
1419
- load(data) {
1420
- if (!data) {
1421
- return;
1422
- }
1423
- this.animation.load(data.animation);
1424
- if (data.value !== undefined) {
1425
- this.value = data.value;
1426
- }
1427
- if (data.direction !== undefined) {
1428
- this.direction = data.direction;
1429
- }
1430
- }
1431
- }
1432
- class GradientColorOpacity {
1433
- constructor() {
1434
- this.value = 0;
1435
- this.animation = new GradientColorOpacityAnimation;
1436
- }
1437
- load(data) {
1438
- if (!data) {
1439
- return;
1440
- }
1441
- this.animation.load(data.animation);
1442
- if (data.value !== undefined) {
1443
- this.value = setRangeValue(data.value);
1444
- }
1445
- }
1446
- }
1447
- class AnimatableGradientColor {
1448
- constructor() {
1449
- this.stop = 0;
1450
- this.value = new AnimatableColor;
1451
- }
1452
- load(data) {
1453
- if (!data) {
1454
- return;
1455
- }
1456
- if (data.stop !== undefined) {
1457
- this.stop = data.stop;
1458
- }
1459
- this.value = AnimatableColor.create(this.value, data.value);
1460
- if (data.opacity !== undefined) {
1461
- this.opacity = new GradientColorOpacity;
1462
- if (typeof data.opacity === "number") {
1463
- this.opacity.value = data.opacity;
1464
- } else {
1465
- this.opacity.load(data.opacity);
1466
- }
1467
- }
1468
- }
1469
- }
1470
- class GradientAngleAnimation {
1471
- constructor() {
1472
- this.count = 0;
1473
- this.enable = false;
1474
- this.speed = 0;
1475
- this.sync = false;
1476
- }
1477
- load(data) {
1478
- if (!data) {
1479
- return;
1480
- }
1481
- if (data.count !== undefined) {
1482
- this.count = setRangeValue(data.count);
1483
- }
1484
- if (data.enable !== undefined) {
1485
- this.enable = data.enable;
1486
- }
1487
- if (data.speed !== undefined) {
1488
- this.speed = setRangeValue(data.speed);
1489
- }
1490
- if (data.sync !== undefined) {
1491
- this.sync = data.sync;
1492
- }
1493
- }
1494
- }
1495
- class GradientColorOpacityAnimation {
1496
- constructor() {
1497
- this.count = 0;
1498
- this.enable = false;
1499
- this.speed = 0;
1500
- this.sync = false;
1501
- this.startValue = "random";
1502
- }
1503
- load(data) {
1504
- if (!data) {
1505
- return;
1506
- }
1507
- if (data.count !== undefined) {
1508
- this.count = setRangeValue(data.count);
1509
- }
1510
- if (data.enable !== undefined) {
1511
- this.enable = data.enable;
1512
- }
1513
- if (data.speed !== undefined) {
1514
- this.speed = setRangeValue(data.speed);
1515
- }
1516
- if (data.sync !== undefined) {
1517
- this.sync = data.sync;
1518
- }
1519
- if (data.startValue !== undefined) {
1520
- this.startValue = data.startValue;
1521
- }
1522
- }
1523
- }
1524
- class ValueWithRandom_ValueWithRandom {
1525
- constructor() {
1526
- this.random = new Random;
1527
- this.value = 0;
1528
- }
1529
- load(data) {
1530
- if (!data) {
1531
- return;
1532
- }
1533
- if (typeof data.random === "boolean") {
1534
- this.random.enable = data.random;
1535
- } else {
1536
- this.random.load(data.random);
1537
- }
1538
- if (data.value !== undefined) {
1539
- this.value = setRangeValue(data.value, this.random.enable ? this.random.minimumValue : undefined);
1540
- }
1541
- }
1542
- }
1543
- class BounceFactor_BounceFactor extends(null && ValueWithRandom){
1544
- constructor() {
1545
- super();
1546
- this.random.minimumValue = .1;
1547
- this.value = 1;
1548
- }
1549
- }
1550
- class Bounce_Bounce {
1551
- constructor() {
1552
- this.horizontal = new BounceFactor;
1553
- this.vertical = new BounceFactor;
1554
- }
1555
- load(data) {
1556
- if (!data) {
1557
- return;
1558
- }
1559
- this.horizontal.load(data.horizontal);
1560
- this.vertical.load(data.vertical);
1561
- }
1562
- }
1563
- class Collisions_Collisions {
1564
- constructor() {
1565
- this.bounce = new Bounce;
1566
- this.enable = false;
1567
- this.mode = "bounce";
1568
- this.overlap = new CollisionsOverlap;
1569
- }
1570
- load(data) {
1571
- if (data === undefined) {
1572
- return;
1573
- }
1574
- this.bounce.load(data.bounce);
1575
- if (data.enable !== undefined) {
1576
- this.enable = data.enable;
1577
- }
1578
- if (data.mode !== undefined) {
1579
- this.mode = data.mode;
1580
- }
1581
- this.overlap.load(data.overlap);
1582
- }
1583
- }
1584
- class SplitFactor_SplitFactor extends(null && ValueWithRandom){
1585
- constructor() {
1586
- super();
1587
- this.value = 3;
1588
- }
1589
- }
1590
- class SplitRate_SplitRate extends(null && ValueWithRandom){
1591
- constructor() {
1592
- super();
1593
- this.value = {
1594
- min: 4,
1595
- max: 9
1596
- };
1597
- }
1598
- }
1599
- class Split_Split {
1600
- constructor() {
1601
- this.count = 1;
1602
- this.factor = new SplitFactor;
1603
- this.rate = new SplitRate;
1604
- this.sizeOffset = true;
1605
- }
1606
- load(data) {
1607
- if (!data) {
1608
- return;
1609
- }
1610
- if (data.count !== undefined) {
1611
- this.count = data.count;
1612
- }
1613
- this.factor.load(data.factor);
1614
- this.rate.load(data.rate);
1615
- if (data.particles !== undefined) {
1616
- this.particles = deepExtend({}, data.particles);
1617
- }
1618
- if (data.sizeOffset !== undefined) {
1619
- this.sizeOffset = data.sizeOffset;
1620
- }
1621
- }
1622
- }
1623
- class Destroy_Destroy {
1624
- constructor() {
1625
- this.mode = "none";
1626
- this.split = new Split;
1627
- }
1628
- load(data) {
1629
- if (!data) {
1630
- return;
1631
- }
1632
- if (data.mode !== undefined) {
1633
- this.mode = data.mode;
1634
- }
1635
- this.split.load(data.split);
1636
- }
1637
- }
1638
- class LifeDelay_LifeDelay extends(null && ValueWithRandom){
1639
- constructor() {
1640
- super();
1641
- this.sync = false;
1642
- }
1643
- load(data) {
1644
- if (!data) {
1645
- return;
1646
- }
1647
- super.load(data);
1648
- if (data.sync !== undefined) {
1649
- this.sync = data.sync;
1650
- }
1651
- }
1652
- }
1653
- class LifeDuration_LifeDuration extends(null && ValueWithRandom){
1654
- constructor() {
1655
- super();
1656
- this.random.minimumValue = 1e-4;
1657
- this.sync = false;
1658
- }
1659
- load(data) {
1660
- if (data === undefined) {
1661
- return;
1662
- }
1663
- super.load(data);
1664
- if (data.sync !== undefined) {
1665
- this.sync = data.sync;
1666
- }
1667
- }
1668
- }
1669
- class Life_Life {
1670
- constructor() {
1671
- this.count = 0;
1672
- this.delay = new LifeDelay;
1673
- this.duration = new LifeDuration;
1674
- }
1675
- load(data) {
1676
- if (data === undefined) {
1677
- return;
1678
- }
1679
- if (data.count !== undefined) {
1680
- this.count = data.count;
1681
- }
1682
- this.delay.load(data.delay);
1683
- this.duration.load(data.duration);
1684
- }
1685
- }
1686
- class Attract_Attract {
1687
- constructor() {
1688
- this.distance = 200;
1689
- this.enable = false;
1690
- this.rotate = {
1691
- x: 3e3,
1692
- y: 3e3
1693
- };
1694
- }
1695
- get rotateX() {
1696
- return this.rotate.x;
1697
- }
1698
- set rotateX(value) {
1699
- this.rotate.x = value;
1700
- }
1701
- get rotateY() {
1702
- return this.rotate.y;
1703
- }
1704
- set rotateY(value) {
1705
- this.rotate.y = value;
1706
- }
1707
- load(data) {
1708
- var _a, _b, _c, _d;
1709
- if (!data) {
1710
- return;
1711
- }
1712
- if (data.distance !== undefined) {
1713
- this.distance = setRangeValue(data.distance);
1714
- }
1715
- if (data.enable !== undefined) {
1716
- this.enable = data.enable;
1717
- }
1718
- const rotateX = (_b = (_a = data.rotate) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : data.rotateX;
1719
- if (rotateX !== undefined) {
1720
- this.rotate.x = rotateX;
1721
- }
1722
- const rotateY = (_d = (_c = data.rotate) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : data.rotateY;
1723
- if (rotateY !== undefined) {
1724
- this.rotate.y = rotateY;
1725
- }
1726
- }
1727
- }
1728
- class MoveAngle_MoveAngle {
1729
- constructor() {
1730
- this.offset = 0;
1731
- this.value = 90;
1732
- }
1733
- load(data) {
1734
- if (data === undefined) {
1735
- return;
1736
- }
1737
- if (data.offset !== undefined) {
1738
- this.offset = setRangeValue(data.offset);
1739
- }
1740
- if (data.value !== undefined) {
1741
- this.value = setRangeValue(data.value);
1742
- }
1743
- }
1744
- }
1745
- class MoveGravity_MoveGravity {
1746
- constructor() {
1747
- this.acceleration = 9.81;
1748
- this.enable = false;
1749
- this.inverse = false;
1750
- this.maxSpeed = 50;
1751
- }
1752
- load(data) {
1753
- if (!data) {
1754
- return;
1755
- }
1756
- if (data.acceleration !== undefined) {
1757
- this.acceleration = setRangeValue(data.acceleration);
1758
- }
1759
- if (data.enable !== undefined) {
1760
- this.enable = data.enable;
1761
- }
1762
- if (data.inverse !== undefined) {
1763
- this.inverse = data.inverse;
1764
- }
1765
- if (data.maxSpeed !== undefined) {
1766
- this.maxSpeed = setRangeValue(data.maxSpeed);
1767
- }
1768
- }
1769
- }
1770
- class PathDelay_PathDelay extends(null && ValueWithRandom){
1771
- constructor() {
1772
- super();
1773
- }
1774
- }
1775
- class Path_Path {
1776
- constructor() {
1777
- this.clamp = true;
1778
- this.delay = new PathDelay;
1779
- this.enable = false;
1780
- this.options = {};
1781
- }
1782
- load(data) {
1783
- if (data === undefined) {
1784
- return;
1785
- }
1786
- if (data.clamp !== undefined) {
1787
- this.clamp = data.clamp;
1788
- }
1789
- this.delay.load(data.delay);
1790
- if (data.enable !== undefined) {
1791
- this.enable = data.enable;
1792
- }
1793
- this.generator = data.generator;
1794
- if (data.options) {
1795
- this.options = deepExtend(this.options, data.options);
1796
- }
1797
- }
1798
- }
1799
- class Spin_Spin {
1800
- constructor() {
1801
- this.acceleration = 0;
1802
- this.enable = false;
1803
- }
1804
- load(data) {
1805
- if (!data) {
1806
- return;
1807
- }
1808
- if (data.acceleration !== undefined) {
1809
- this.acceleration = setRangeValue(data.acceleration);
1810
- }
1811
- if (data.enable !== undefined) {
1812
- this.enable = data.enable;
1813
- }
1814
- this.position = data.position ? deepExtend({}, data.position) : undefined;
1815
- }
1816
- }
1817
- class Move_Move {
1818
- constructor() {
1819
- this.angle = new MoveAngle;
1820
- this.attract = new Attract;
1821
- this.decay = 0;
1822
- this.distance = {};
1823
- this.direction = "none";
1824
- this.drift = 0;
1825
- this.enable = false;
1826
- this.gravity = new MoveGravity;
1827
- this.path = new Path;
1828
- this.outModes = new OutModes;
1829
- this.random = false;
1830
- this.size = false;
1831
- this.speed = 2;
1832
- this.spin = new Spin;
1833
- this.straight = false;
1834
- this.trail = new Trail;
1835
- this.vibrate = false;
1836
- this.warp = false;
1837
- }
1838
- get collisions() {
1839
- return false;
1840
- }
1841
- set collisions(value) {}
1842
- get bounce() {
1843
- return this.collisions;
1844
- }
1845
- set bounce(value) {
1846
- this.collisions = value;
1847
- }
1848
- get out_mode() {
1849
- return this.outMode;
1850
- }
1851
- set out_mode(value) {
1852
- this.outMode = value;
1853
- }
1854
- get outMode() {
1855
- return this.outModes.default;
1856
- }
1857
- set outMode(value) {
1858
- this.outModes.default = value;
1859
- }
1860
- get noise() {
1861
- return this.path;
1862
- }
1863
- set noise(value) {
1864
- this.path = value;
1865
- }
1866
- load(data) {
1867
- var _a, _b, _c;
1868
- if (data === undefined) {
1869
- return;
1870
- }
1871
- if (data.angle !== undefined) {
1872
- if (typeof data.angle === "number") {
1873
- this.angle.value = data.angle;
1874
- } else {
1875
- this.angle.load(data.angle);
1876
- }
1877
- }
1878
- this.attract.load(data.attract);
1879
- if (data.decay !== undefined) {
1880
- this.decay = data.decay;
1881
- }
1882
- if (data.direction !== undefined) {
1883
- this.direction = data.direction;
1884
- }
1885
- if (data.distance !== undefined) {
1886
- this.distance = typeof data.distance === "number" ? {
1887
- horizontal: data.distance,
1888
- vertical: data.distance
1889
- } : deepExtend({}, data.distance);
1890
- }
1891
- if (data.drift !== undefined) {
1892
- this.drift = setRangeValue(data.drift);
1893
- }
1894
- if (data.enable !== undefined) {
1895
- this.enable = data.enable;
1896
- }
1897
- this.gravity.load(data.gravity);
1898
- const outMode = (_a = data.outMode) !== null && _a !== void 0 ? _a : data.out_mode;
1899
- if (data.outModes !== undefined || outMode !== undefined) {
1900
- if (typeof data.outModes === "string" || data.outModes === undefined && outMode !== undefined) {
1901
- this.outModes.load({
1902
- default: (_b = data.outModes) !== null && _b !== void 0 ? _b : outMode
1903
- });
1904
- } else {
1905
- this.outModes.load(data.outModes);
1906
- }
1907
- }
1908
- this.path.load((_c = data.path) !== null && _c !== void 0 ? _c : data.noise);
1909
- if (data.random !== undefined) {
1910
- this.random = data.random;
1911
- }
1912
- if (data.size !== undefined) {
1913
- this.size = data.size;
1914
- }
1915
- if (data.speed !== undefined) {
1916
- this.speed = setRangeValue(data.speed);
1917
- }
1918
- this.spin.load(data.spin);
1919
- if (data.straight !== undefined) {
1920
- this.straight = data.straight;
1921
- }
1922
- this.trail.load(data.trail);
1923
- if (data.vibrate !== undefined) {
1924
- this.vibrate = data.vibrate;
1925
- }
1926
- if (data.warp !== undefined) {
1927
- this.warp = data.warp;
1928
- }
1929
- }
1930
- }
1931
- class AnimationOptions_AnimationOptions {
1932
- constructor() {
1933
- this.count = 0;
1934
- this.enable = false;
1935
- this.speed = 1;
1936
- this.sync = false;
1937
- }
1938
- load(data) {
1939
- if (!data) {
1940
- return;
1941
- }
1942
- if (data.count !== undefined) {
1943
- this.count = setRangeValue(data.count);
1944
- }
1945
- if (data.enable !== undefined) {
1946
- this.enable = data.enable;
1947
- }
1948
- if (data.speed !== undefined) {
1949
- this.speed = setRangeValue(data.speed);
1950
- }
1951
- if (data.sync !== undefined) {
1952
- this.sync = data.sync;
1953
- }
1954
- }
1955
- }
1956
- class OpacityAnimation_OpacityAnimation extends(null && AnimationOptions){
1957
- constructor() {
1958
- super();
1959
- this.destroy = "none";
1960
- this.enable = false;
1961
- this.speed = 2;
1962
- this.startValue = "random";
1963
- this.sync = false;
1964
- }
1965
- get opacity_min() {
1966
- return this.minimumValue;
1967
- }
1968
- set opacity_min(value) {
1969
- this.minimumValue = value;
1970
- }
1971
- load(data) {
1972
- var _a;
1973
- if (data === undefined) {
1974
- return;
1975
- }
1976
- super.load(data);
1977
- if (data.destroy !== undefined) {
1978
- this.destroy = data.destroy;
1979
- }
1980
- if (data.enable !== undefined) {
1981
- this.enable = data.enable;
1982
- }
1983
- this.minimumValue = (_a = data.minimumValue) !== null && _a !== void 0 ? _a : data.opacity_min;
1984
- if (data.speed !== undefined) {
1985
- this.speed = data.speed;
1986
- }
1987
- if (data.startValue !== undefined) {
1988
- this.startValue = data.startValue;
1989
- }
1990
- if (data.sync !== undefined) {
1991
- this.sync = data.sync;
1992
- }
1993
- }
1994
- }
1995
- class Opacity_Opacity extends(null && ValueWithRandom){
1996
- constructor() {
1997
- super();
1998
- this.animation = new OpacityAnimation;
1999
- this.random.minimumValue = .1;
2000
- this.value = 1;
2001
- }
2002
- get anim() {
2003
- return this.animation;
2004
- }
2005
- set anim(value) {
2006
- this.animation = value;
2007
- }
2008
- load(data) {
2009
- var _a;
2010
- if (!data) {
2011
- return;
2012
- }
2013
- super.load(data);
2014
- const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
2015
- if (animation !== undefined) {
2016
- this.animation.load(animation);
2017
- this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
2018
- }
2019
- }
2020
- }
2021
- class OrbitRotation_OrbitRotation extends(null && ValueWithRandom){
2022
- constructor() {
2023
- super();
2024
- this.value = 45;
2025
- this.random.enable = false;
2026
- this.random.minimumValue = 0;
2027
- }
2028
- load(data) {
2029
- if (data === undefined) {
2030
- return;
2031
- }
2032
- super.load(data);
2033
- }
2034
- }
2035
- class Orbit_Orbit {
2036
- constructor() {
2037
- this.animation = new AnimationOptions;
2038
- this.enable = false;
2039
- this.opacity = 1;
2040
- this.rotation = new OrbitRotation;
2041
- this.width = 1;
2042
- }
2043
- load(data) {
2044
- if (data === undefined) {
2045
- return;
2046
- }
2047
- this.animation.load(data.animation);
2048
- this.rotation.load(data.rotation);
2049
- if (data.enable !== undefined) {
2050
- this.enable = data.enable;
2051
- }
2052
- if (data.opacity !== undefined) {
2053
- this.opacity = setRangeValue(data.opacity);
2054
- }
2055
- if (data.width !== undefined) {
2056
- this.width = setRangeValue(data.width);
2057
- }
2058
- if (data.radius !== undefined) {
2059
- this.radius = setRangeValue(data.radius);
2060
- }
2061
- if (data.color !== undefined) {
2062
- this.color = OptionsColor.create(this.color, data.color);
2063
- }
2064
- }
2065
- }
2066
- class Repulse_Repulse extends(null && ValueWithRandom){
2067
- constructor() {
2068
- super();
2069
- this.enabled = false;
2070
- this.distance = 1;
2071
- this.duration = 1;
2072
- this.factor = 1;
2073
- this.speed = 1;
2074
- }
2075
- load(data) {
2076
- super.load(data);
2077
- if (!data) {
2078
- return;
2079
- }
2080
- if (data.enabled !== undefined) {
2081
- this.enabled = data.enabled;
2082
- }
2083
- if (data.distance !== undefined) {
2084
- this.distance = setRangeValue(data.distance);
2085
- }
2086
- if (data.duration !== undefined) {
2087
- this.duration = setRangeValue(data.duration);
2088
- }
2089
- if (data.factor !== undefined) {
2090
- this.factor = setRangeValue(data.factor);
2091
- }
2092
- if (data.speed !== undefined) {
2093
- this.speed = setRangeValue(data.speed);
2094
- }
2095
- }
2096
- }
2097
- class RollLight_RollLight {
2098
- constructor() {
2099
- this.enable = false;
2100
- this.value = 0;
2101
- }
2102
- load(data) {
2103
- if (!data) {
2104
- return;
2105
- }
2106
- if (data.enable !== undefined) {
2107
- this.enable = data.enable;
2108
- }
2109
- if (data.value !== undefined) {
2110
- this.value = setRangeValue(data.value);
2111
- }
2112
- }
2113
- }
2114
- class Roll_Roll {
2115
- constructor() {
2116
- this.darken = new RollLight;
2117
- this.enable = false;
2118
- this.enlighten = new RollLight;
2119
- this.mode = "vertical";
2120
- this.speed = 25;
2121
- }
2122
- load(data) {
2123
- if (!data) {
2124
- return;
2125
- }
2126
- if (data.backColor !== undefined) {
2127
- this.backColor = OptionsColor.create(this.backColor, data.backColor);
2128
- }
2129
- this.darken.load(data.darken);
2130
- if (data.enable !== undefined) {
2131
- this.enable = data.enable;
2132
- }
2133
- this.enlighten.load(data.enlighten);
2134
- if (data.mode !== undefined) {
2135
- this.mode = data.mode;
2136
- }
2137
- if (data.speed !== undefined) {
2138
- this.speed = setRangeValue(data.speed);
2139
- }
2140
- }
2141
- }
2142
- class RotateAnimation_RotateAnimation {
2143
- constructor() {
2144
- this.enable = false;
2145
- this.speed = 0;
2146
- this.sync = false;
2147
- }
2148
- load(data) {
2149
- if (data === undefined) {
2150
- return;
2151
- }
2152
- if (data.enable !== undefined) {
2153
- this.enable = data.enable;
2154
- }
2155
- if (data.speed !== undefined) {
2156
- this.speed = setRangeValue(data.speed);
2157
- }
2158
- if (data.sync !== undefined) {
2159
- this.sync = data.sync;
2160
- }
2161
- }
2162
- }
2163
- class Rotate_Rotate extends(null && ValueWithRandom){
2164
- constructor() {
2165
- super();
2166
- this.animation = new RotateAnimation;
2167
- this.direction = "clockwise";
2168
- this.path = false;
2169
- this.value = 0;
2170
- }
2171
- load(data) {
2172
- if (!data) {
2173
- return;
2174
- }
2175
- super.load(data);
2176
- if (data.direction !== undefined) {
2177
- this.direction = data.direction;
2178
- }
2179
- this.animation.load(data.animation);
2180
- if (data.path !== undefined) {
2181
- this.path = data.path;
2182
- }
2183
- }
2184
- }
2185
- class Shape_Shape {
2186
- constructor() {
2187
- this.options = {};
2188
- this.type = "circle";
2189
- }
2190
- get image() {
2191
- var _a;
2192
- return (_a = this.options["image"]) !== null && _a !== void 0 ? _a : this.options["images"];
2193
- }
2194
- set image(value) {
2195
- this.options["image"] = value;
2196
- this.options["images"] = value;
2197
- }
2198
- get custom() {
2199
- return this.options;
2200
- }
2201
- set custom(value) {
2202
- this.options = value;
2203
- }
2204
- get images() {
2205
- return this.image;
2206
- }
2207
- set images(value) {
2208
- this.image = value;
2209
- }
2210
- get stroke() {
2211
- return [];
2212
- }
2213
- set stroke(_value) {}
2214
- get character() {
2215
- var _a;
2216
- return (_a = this.options["character"]) !== null && _a !== void 0 ? _a : this.options["char"];
2217
- }
2218
- set character(value) {
2219
- this.options["character"] = value;
2220
- this.options["char"] = value;
2221
- }
2222
- get polygon() {
2223
- var _a;
2224
- return (_a = this.options["polygon"]) !== null && _a !== void 0 ? _a : this.options["star"];
2225
- }
2226
- set polygon(value) {
2227
- this.options["polygon"] = value;
2228
- this.options["star"] = value;
2229
- }
2230
- load(data) {
2231
- var _a, _b, _c;
2232
- if (data === undefined) {
2233
- return;
2234
- }
2235
- const options = (_a = data.options) !== null && _a !== void 0 ? _a : data.custom;
2236
- if (options !== undefined) {
2237
- for (const shape in options) {
2238
- const item = options[shape];
2239
- if (item !== undefined) {
2240
- this.options[shape] = deepExtend((_b = this.options[shape]) !== null && _b !== void 0 ? _b : {}, item);
2241
- }
2242
- }
2243
- }
2244
- this.loadShape(data.character, "character", "char", true);
2245
- this.loadShape(data.polygon, "polygon", "star", false);
2246
- this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, "image", "images", true);
2247
- if (data.type !== undefined) {
2248
- this.type = data.type;
2249
- }
2250
- }
2251
- loadShape(item, mainKey, altKey, altOverride) {
2252
- var _a, _b, _c, _d;
2253
- if (item === undefined) {
2254
- return;
2255
- }
2256
- if (item instanceof Array) {
2257
- if (!(this.options[mainKey] instanceof Array)) {
2258
- this.options[mainKey] = [];
2259
- if (!this.options[altKey] || altOverride) {
2260
- this.options[altKey] = [];
2261
- }
2262
- }
2263
- this.options[mainKey] = deepExtend((_a = this.options[mainKey]) !== null && _a !== void 0 ? _a : [], item);
2264
- if (!this.options[altKey] || altOverride) {
2265
- this.options[altKey] = deepExtend((_b = this.options[altKey]) !== null && _b !== void 0 ? _b : [], item);
2266
- }
2267
- } else {
2268
- if (this.options[mainKey] instanceof Array) {
2269
- this.options[mainKey] = {};
2270
- if (!this.options[altKey] || altOverride) {
2271
- this.options[altKey] = {};
2272
- }
2273
- }
2274
- this.options[mainKey] = deepExtend((_c = this.options[mainKey]) !== null && _c !== void 0 ? _c : {}, item);
2275
- if (!this.options[altKey] || altOverride) {
2276
- this.options[altKey] = deepExtend((_d = this.options[altKey]) !== null && _d !== void 0 ? _d : {}, item);
2277
- }
2278
- }
2279
- }
2280
- }
2281
- class SizeAnimation_SizeAnimation extends(null && AnimationOptions){
2282
- constructor() {
2283
- super();
2284
- this.destroy = "none";
2285
- this.enable = false;
2286
- this.speed = 5;
2287
- this.startValue = "random";
2288
- this.sync = false;
2289
- }
2290
- get size_min() {
2291
- return this.minimumValue;
2292
- }
2293
- set size_min(value) {
2294
- this.minimumValue = value;
2295
- }
2296
- load(data) {
2297
- var _a;
2298
- if (data === undefined) {
2299
- return;
2300
- }
2301
- super.load(data);
2302
- if (data.destroy !== undefined) {
2303
- this.destroy = data.destroy;
2304
- }
2305
- if (data.enable !== undefined) {
2306
- this.enable = data.enable;
2307
- }
2308
- this.minimumValue = (_a = data.minimumValue) !== null && _a !== void 0 ? _a : data.size_min;
2309
- if (data.speed !== undefined) {
2310
- this.speed = data.speed;
2311
- }
2312
- if (data.startValue !== undefined) {
2313
- this.startValue = data.startValue;
2314
- }
2315
- if (data.sync !== undefined) {
2316
- this.sync = data.sync;
2317
- }
2318
- }
2319
- }
2320
- class Size_Size extends(null && ValueWithRandom){
2321
- constructor() {
2322
- super();
2323
- this.animation = new SizeAnimation;
2324
- this.random.minimumValue = 1;
2325
- this.value = 3;
2326
- }
2327
- get anim() {
2328
- return this.animation;
2329
- }
2330
- set anim(value) {
2331
- this.animation = value;
2332
- }
2333
- load(data) {
2334
- var _a;
2335
- if (!data) {
2336
- return;
2337
- }
2338
- super.load(data);
2339
- const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
2340
- if (animation !== undefined) {
2341
- this.animation.load(animation);
2342
- this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
2343
- }
2344
- }
2345
- }
2346
- class Stroke_Stroke {
2347
- constructor() {
2348
- this.width = 0;
2349
- }
2350
- load(data) {
2351
- if (data === undefined) {
2352
- return;
2353
- }
2354
- if (data.color !== undefined) {
2355
- this.color = AnimatableColor.create(this.color, data.color);
2356
- }
2357
- if (data.width !== undefined) {
2358
- this.width = data.width;
2359
- }
2360
- if (data.opacity !== undefined) {
2361
- this.opacity = data.opacity;
2362
- }
2363
- }
2364
- }
2365
- class TiltAnimation_TiltAnimation {
2366
- constructor() {
2367
- this.enable = false;
2368
- this.speed = 0;
2369
- this.sync = false;
2370
- }
2371
- load(data) {
2372
- if (data === undefined) {
2373
- return;
2374
- }
2375
- if (data.enable !== undefined) {
2376
- this.enable = data.enable;
2377
- }
2378
- if (data.speed !== undefined) {
2379
- this.speed = setRangeValue(data.speed);
2380
- }
2381
- if (data.sync !== undefined) {
2382
- this.sync = data.sync;
2383
- }
2384
- }
2385
- }
2386
- class Tilt_Tilt extends(null && ValueWithRandom){
2387
- constructor() {
2388
- super();
2389
- this.animation = new TiltAnimation;
2390
- this.direction = "clockwise";
2391
- this.enable = false;
2392
- this.value = 0;
2393
- }
2394
- load(data) {
2395
- if (!data) {
2396
- return;
2397
- }
2398
- super.load(data);
2399
- this.animation.load(data.animation);
2400
- if (data.direction !== undefined) {
2401
- this.direction = data.direction;
2402
- }
2403
- if (data.enable !== undefined) {
2404
- this.enable = data.enable;
2405
- }
2406
- }
2407
- }
2408
- class TwinkleValues_TwinkleValues {
2409
- constructor() {
2410
- this.enable = false;
2411
- this.frequency = .05;
2412
- this.opacity = 1;
2413
- }
2414
- load(data) {
2415
- if (data === undefined) {
2416
- return;
2417
- }
2418
- if (data.color !== undefined) {
2419
- this.color = OptionsColor.create(this.color, data.color);
2420
- }
2421
- if (data.enable !== undefined) {
2422
- this.enable = data.enable;
2423
- }
2424
- if (data.frequency !== undefined) {
2425
- this.frequency = data.frequency;
2426
- }
2427
- if (data.opacity !== undefined) {
2428
- this.opacity = setRangeValue(data.opacity);
2429
- }
2430
- }
2431
- }
2432
- class Twinkle_Twinkle {
2433
- constructor() {
2434
- this.lines = new TwinkleValues;
2435
- this.particles = new TwinkleValues;
2436
- }
2437
- load(data) {
2438
- if (data === undefined) {
2439
- return;
2440
- }
2441
- this.lines.load(data.lines);
2442
- this.particles.load(data.particles);
2443
- }
2444
- }
2445
- class Wobble_Wobble {
2446
- constructor() {
2447
- this.distance = 5;
2448
- this.enable = false;
2449
- this.speed = 50;
2450
- }
2451
- load(data) {
2452
- if (!data) {
2453
- return;
2454
- }
2455
- if (data.distance !== undefined) {
2456
- this.distance = setRangeValue(data.distance);
2457
- }
2458
- if (data.enable !== undefined) {
2459
- this.enable = data.enable;
2460
- }
2461
- if (data.speed !== undefined) {
2462
- this.speed = setRangeValue(data.speed);
2463
- }
2464
- }
2465
- }
2466
- class ZIndex_ZIndex extends(null && ValueWithRandom){
2467
- constructor() {
2468
- super();
2469
- this.opacityRate = 1;
2470
- this.sizeRate = 1;
2471
- this.velocityRate = 1;
2472
- }
2473
- load(data) {
2474
- super.load(data);
2475
- if (!data) {
2476
- return;
2477
- }
2478
- if (data.opacityRate !== undefined) {
2479
- this.opacityRate = data.opacityRate;
2480
- }
2481
- if (data.sizeRate !== undefined) {
2482
- this.sizeRate = data.sizeRate;
2483
- }
2484
- if (data.velocityRate !== undefined) {
2485
- this.velocityRate = data.velocityRate;
2486
- }
2487
- }
2488
- }
2489
- class ParticlesOptions_ParticlesOptions {
2490
- constructor() {
2491
- this.bounce = new Bounce;
2492
- this.collisions = new Collisions;
2493
- this.color = new AnimatableColor;
2494
- this.destroy = new Destroy;
2495
- this.gradient = [];
2496
- this.groups = {};
2497
- this.life = new Life;
2498
- this.links = new Links;
2499
- this.move = new Move;
2500
- this.number = new ParticlesNumber;
2501
- this.opacity = new Opacity;
2502
- this.orbit = new Orbit;
2503
- this.reduceDuplicates = false;
2504
- this.repulse = new Repulse;
2505
- this.roll = new Roll;
2506
- this.rotate = new Rotate;
2507
- this.shadow = new Shadow;
2508
- this.shape = new Shape;
2509
- this.size = new Size;
2510
- this.stroke = new Stroke;
2511
- this.tilt = new Tilt;
2512
- this.twinkle = new Twinkle;
2513
- this.wobble = new Wobble;
2514
- this.zIndex = new ZIndex;
2515
- }
2516
- get line_linked() {
2517
- return this.links;
2518
- }
2519
- set line_linked(value) {
2520
- this.links = value;
2521
- }
2522
- get lineLinked() {
2523
- return this.links;
2524
- }
2525
- set lineLinked(value) {
2526
- this.links = value;
2527
- }
2528
- load(data) {
2529
- var _a, _b, _c, _d, _e, _f, _g, _h;
2530
- if (data === undefined) {
2531
- return;
2532
- }
2533
- this.bounce.load(data.bounce);
2534
- this.color.load(AnimatableColor.create(this.color, data.color));
2535
- this.destroy.load(data.destroy);
2536
- this.life.load(data.life);
2537
- const links = (_b = (_a = data.links) !== null && _a !== void 0 ? _a : data.lineLinked) !== null && _b !== void 0 ? _b : data.line_linked;
2538
- if (links !== undefined) {
2539
- this.links.load(links);
2540
- }
2541
- if (data.groups !== undefined) {
2542
- for (const group in data.groups) {
2543
- const item = data.groups[group];
2544
- if (item !== undefined) {
2545
- this.groups[group] = deepExtend((_c = this.groups[group]) !== null && _c !== void 0 ? _c : {}, item);
2546
- }
2547
- }
2548
- }
2549
- this.move.load(data.move);
2550
- this.number.load(data.number);
2551
- this.opacity.load(data.opacity);
2552
- this.orbit.load(data.orbit);
2553
- if (data.reduceDuplicates !== undefined) {
2554
- this.reduceDuplicates = data.reduceDuplicates;
2555
- }
2556
- this.repulse.load(data.repulse);
2557
- this.roll.load(data.roll);
2558
- this.rotate.load(data.rotate);
2559
- this.shape.load(data.shape);
2560
- this.size.load(data.size);
2561
- this.shadow.load(data.shadow);
2562
- this.tilt.load(data.tilt);
2563
- this.twinkle.load(data.twinkle);
2564
- this.wobble.load(data.wobble);
2565
- this.zIndex.load(data.zIndex);
2566
- 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;
2567
- if (collisions !== undefined) {
2568
- this.collisions.enable = collisions;
2569
- }
2570
- this.collisions.load(data.collisions);
2571
- const strokeToLoad = (_g = data.stroke) !== null && _g !== void 0 ? _g : (_h = data.shape) === null || _h === void 0 ? void 0 : _h.stroke;
2572
- if (strokeToLoad) {
2573
- if (strokeToLoad instanceof Array) {
2574
- this.stroke = strokeToLoad.map((s => {
2575
- const tmp = new Stroke;
2576
- tmp.load(s);
2577
- return tmp;
2578
- }));
2579
- } else {
2580
- if (this.stroke instanceof Array) {
2581
- this.stroke = new Stroke;
2582
- }
2583
- this.stroke.load(strokeToLoad);
2584
- }
2585
- }
2586
- const gradientToLoad = data.gradient;
2587
- if (gradientToLoad) {
2588
- if (gradientToLoad instanceof Array) {
2589
- this.gradient = gradientToLoad.map((s => {
2590
- const tmp = new AnimatableGradient;
2591
- tmp.load(s);
2592
- return tmp;
2593
- }));
2594
- } else {
2595
- if (this.gradient instanceof Array) {
2596
- this.gradient = new AnimatableGradient;
2597
- }
2598
- this.gradient.load(gradientToLoad);
2599
- }
2600
- }
2601
- }
2602
- }
2603
- class Responsive_Responsive {
2604
- constructor() {
2605
- this.maxWidth = Infinity;
2606
- this.options = {};
2607
- this.mode = "canvas";
2608
- }
2609
- load(data) {
2610
- if (!data) {
2611
- return;
2612
- }
2613
- if (data.maxWidth !== undefined) {
2614
- this.maxWidth = data.maxWidth;
2615
- }
2616
- if (data.mode !== undefined) {
2617
- if (data.mode === "screen") {
2618
- this.mode = "screen";
2619
- } else {
2620
- this.mode = "canvas";
2621
- }
2622
- }
2623
- if (data.options !== undefined) {
2624
- this.options = deepExtend({}, data.options);
2625
- }
2626
- }
2627
- }
2628
- class Theme_Theme {
2629
- constructor() {
2630
- this.name = "";
2631
- this.default = new ThemeDefault;
2632
- }
2633
- load(data) {
2634
- if (data === undefined) {
2635
- return;
2636
- }
2637
- if (data.name !== undefined) {
2638
- this.name = data.name;
2639
- }
2640
- this.default.load(data.default);
2641
- if (data.options !== undefined) {
2642
- this.options = deepExtend({}, data.options);
2643
- }
2644
- }
2645
- }
2646
- var Options_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
2647
- if (kind === "m") throw new TypeError("Private method is not writable");
2648
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
2649
- 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");
2650
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
2651
- value;
2652
- };
2653
- var Options_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
2654
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2655
- 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");
2656
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2657
- };
2658
- var _Options_instances, _Options_engine, _Options_findDefaultTheme;
2659
- class Options_Options {
2660
- constructor(engine) {
2661
- _Options_instances.add(this);
2662
- _Options_engine.set(this, void 0);
2663
- Options_classPrivateFieldSet(this, _Options_engine, engine, "f");
2664
- this.autoPlay = true;
2665
- this.background = new Background;
2666
- this.backgroundMask = new BackgroundMask;
2667
- this.fullScreen = new FullScreen;
2668
- this.detectRetina = true;
2669
- this.duration = 0;
2670
- this.fpsLimit = 120;
2671
- this.interactivity = new Interactivity;
2672
- this.manualParticles = [];
2673
- this.motion = new Motion;
2674
- this.particles = new ParticlesOptions;
2675
- this.pauseOnBlur = true;
2676
- this.pauseOnOutsideViewport = true;
2677
- this.responsive = [];
2678
- this.style = {};
2679
- this.themes = [];
2680
- this.zLayers = 100;
2681
- }
2682
- get fps_limit() {
2683
- return this.fpsLimit;
2684
- }
2685
- set fps_limit(value) {
2686
- this.fpsLimit = value;
2687
- }
2688
- get retina_detect() {
2689
- return this.detectRetina;
2690
- }
2691
- set retina_detect(value) {
2692
- this.detectRetina = value;
2693
- }
2694
- get backgroundMode() {
2695
- return this.fullScreen;
2696
- }
2697
- set backgroundMode(value) {
2698
- this.fullScreen.load(value);
2699
- }
2700
- load(data) {
2701
- var _a, _b, _c, _d, _e;
2702
- if (data === undefined) {
2703
- return;
2704
- }
2705
- if (data.preset !== undefined) {
2706
- if (data.preset instanceof Array) {
2707
- for (const preset of data.preset) {
2708
- this.importPreset(preset);
2709
- }
2710
- } else {
2711
- this.importPreset(data.preset);
2712
- }
2713
- }
2714
- if (data.autoPlay !== undefined) {
2715
- this.autoPlay = data.autoPlay;
2716
- }
2717
- const detectRetina = (_a = data.detectRetina) !== null && _a !== void 0 ? _a : data.retina_detect;
2718
- if (detectRetina !== undefined) {
2719
- this.detectRetina = detectRetina;
2720
- }
2721
- if (data.duration !== undefined) {
2722
- this.duration = data.duration;
2723
- }
2724
- const fpsLimit = (_b = data.fpsLimit) !== null && _b !== void 0 ? _b : data.fps_limit;
2725
- if (fpsLimit !== undefined) {
2726
- this.fpsLimit = fpsLimit;
2727
- }
2728
- if (data.pauseOnBlur !== undefined) {
2729
- this.pauseOnBlur = data.pauseOnBlur;
2730
- }
2731
- if (data.pauseOnOutsideViewport !== undefined) {
2732
- this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
2733
- }
2734
- if (data.zLayers !== undefined) {
2735
- this.zLayers = data.zLayers;
2736
- }
2737
- this.background.load(data.background);
2738
- const fullScreen = (_c = data.fullScreen) !== null && _c !== void 0 ? _c : data.backgroundMode;
2739
- if (typeof fullScreen === "boolean") {
2740
- this.fullScreen.enable = fullScreen;
2741
- } else {
2742
- this.fullScreen.load(fullScreen);
2743
- }
2744
- this.backgroundMask.load(data.backgroundMask);
2745
- this.interactivity.load(data.interactivity);
2746
- if (data.manualParticles !== undefined) {
2747
- this.manualParticles = data.manualParticles.map((t => {
2748
- const tmp = new ManualParticle;
2749
- tmp.load(t);
2750
- return tmp;
2751
- }));
2752
- }
2753
- this.motion.load(data.motion);
2754
- this.particles.load(data.particles);
2755
- this.style = deepExtend(this.style, data.style);
2756
- Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.loadOptions(this, data);
2757
- if (data.responsive !== undefined) {
2758
- for (const responsive of data.responsive) {
2759
- const optResponsive = new Responsive;
2760
- optResponsive.load(responsive);
2761
- this.responsive.push(optResponsive);
2762
- }
2763
- }
2764
- this.responsive.sort(((a, b) => a.maxWidth - b.maxWidth));
2765
- if (data.themes !== undefined) {
2766
- for (const theme of data.themes) {
2767
- const optTheme = new Theme;
2768
- optTheme.load(theme);
2769
- this.themes.push(optTheme);
2770
- }
2771
- }
2772
- this.defaultDarkTheme = (_d = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
2773
- this.defaultLightTheme = (_e = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
2774
- }
2775
- setTheme(name) {
2776
- if (name) {
2777
- const chosenTheme = this.themes.find((theme => theme.name === name));
2778
- if (chosenTheme) {
2779
- this.load(chosenTheme.options);
2780
- }
2781
- } else {
2782
- 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");
2783
- if (defaultTheme) {
2784
- this.load(defaultTheme.options);
2785
- }
2786
- }
2787
- }
2788
- setResponsive(width, pxRatio, defaultOptions) {
2789
- this.load(defaultOptions);
2790
- const responsiveOptions = this.responsive.find((t => t.mode === "screen" && screen ? t.maxWidth * pxRatio > screen.availWidth : t.maxWidth * pxRatio > width));
2791
- this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
2792
- return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
2793
- }
2794
- importPreset(preset) {
2795
- this.load(Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.getPreset(preset));
2796
- }
2797
- }
2798
- _Options_engine = new WeakMap, _Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
2799
- var _a;
2800
- 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"));
2801
- };
2802
- var Particle_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
2803
- if (kind === "m") throw new TypeError("Private method is not writable");
2804
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
2805
- 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");
2806
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
2807
- value;
2808
- };
2809
- var Particle_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
2810
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2811
- 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");
2812
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2813
- };
2814
- var _Particle_engine;
2815
- const fixOutMode = data => {
2816
- if (isInArray(data.outMode, data.checkModes) || isInArray(data.outMode, data.checkModes)) {
2817
- if (data.coord > data.maxCoord - data.radius * 2) {
2818
- data.setCb(-data.radius);
2819
- } else if (data.coord < data.radius * 2) {
2820
- data.setCb(data.radius);
2821
- }
2822
- }
2823
- };
2824
- class Particle_Particle {
2825
- constructor(engine, id, container, position, overrideOptions, group) {
2826
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2827
- this.id = id;
2828
- this.container = container;
2829
- this.group = group;
2830
- _Particle_engine.set(this, void 0);
2831
- Particle_classPrivateFieldSet(this, _Particle_engine, engine, "f");
2832
- this.fill = true;
2833
- this.close = true;
2834
- this.lastPathTime = 0;
2835
- this.destroyed = false;
2836
- this.unbreakable = false;
2837
- this.splitCount = 0;
2838
- this.misplaced = false;
2839
- this.retina = {
2840
- maxDistance: {}
2841
- };
2842
- this.ignoresResizeRatio = true;
2843
- const pxRatio = container.retina.pixelRatio;
2844
- const mainOptions = container.actualOptions;
2845
- const particlesOptions = new ParticlesOptions;
2846
- particlesOptions.load(mainOptions.particles);
2847
- const shapeType = particlesOptions.shape.type;
2848
- const reduceDuplicates = particlesOptions.reduceDuplicates;
2849
- this.shape = shapeType instanceof Array ? itemFromArray(shapeType, this.id, reduceDuplicates) : shapeType;
2850
- if (overrideOptions === null || overrideOptions === void 0 ? void 0 : overrideOptions.shape) {
2851
- if (overrideOptions.shape.type) {
2852
- const overrideShapeType = overrideOptions.shape.type;
2853
- this.shape = overrideShapeType instanceof Array ? itemFromArray(overrideShapeType, this.id, reduceDuplicates) : overrideShapeType;
2854
- }
2855
- const shapeOptions = new Shape;
2856
- shapeOptions.load(overrideOptions.shape);
2857
- if (this.shape) {
2858
- this.shapeData = this.loadShapeData(shapeOptions, reduceDuplicates);
2859
- }
2860
- } else {
2861
- this.shapeData = this.loadShapeData(particlesOptions.shape, reduceDuplicates);
2862
- }
2863
- if (overrideOptions !== undefined) {
2864
- particlesOptions.load(overrideOptions);
2865
- }
2866
- if (((_a = this.shapeData) === null || _a === void 0 ? void 0 : _a.particles) !== undefined) {
2867
- particlesOptions.load((_b = this.shapeData) === null || _b === void 0 ? void 0 : _b.particles);
2868
- }
2869
- this.fill = (_d = (_c = this.shapeData) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.fill;
2870
- this.close = (_f = (_e = this.shapeData) === null || _e === void 0 ? void 0 : _e.close) !== null && _f !== void 0 ? _f : this.close;
2871
- this.options = particlesOptions;
2872
- this.pathDelay = getValue(this.options.move.path.delay) * 1e3;
2873
- const zIndexValue = getRangeValue(this.options.zIndex.value);
2874
- container.retina.initParticle(this);
2875
- const sizeOptions = this.options.size, sizeRange = sizeOptions.value;
2876
- this.size = {
2877
- enable: sizeOptions.animation.enable,
2878
- value: getValue(sizeOptions) * container.retina.pixelRatio,
2879
- max: getRangeMax(sizeRange) * pxRatio,
2880
- min: getRangeMin(sizeRange) * pxRatio,
2881
- loops: 0,
2882
- maxLoops: getRangeValue(sizeOptions.animation.count)
2883
- };
2884
- const sizeAnimation = sizeOptions.animation;
2885
- if (sizeAnimation.enable) {
2886
- this.size.status = 0;
2887
- switch (sizeAnimation.startValue) {
2888
- case "min":
2889
- this.size.value = this.size.min;
2890
- this.size.status = 0;
2891
- break;
2892
-
2893
- case "random":
2894
- this.size.value = randomInRange(this.size) * pxRatio;
2895
- this.size.status = Math.random() >= .5 ? 0 : 1;
2896
- break;
2897
-
2898
- case "max":
2899
- default:
2900
- this.size.value = this.size.max;
2901
- this.size.status = 1;
2902
- break;
2903
- }
2904
- this.size.velocity = ((_g = this.retina.sizeAnimationSpeed) !== null && _g !== void 0 ? _g : container.retina.sizeAnimationSpeed) / 100 * container.retina.reduceFactor;
2905
- if (!sizeAnimation.sync) {
2906
- this.size.velocity *= Math.random();
2907
- }
2908
- }
2909
- this.direction = getParticleDirectionAngle(this.options.move.direction);
2910
- this.bubble = {
2911
- inRange: false
2912
- };
2913
- this.initialVelocity = this.calculateVelocity();
2914
- this.velocity = this.initialVelocity.copy();
2915
- this.moveDecay = 1 - getRangeValue(this.options.move.decay);
2916
- const gravityOptions = this.options.move.gravity;
2917
- this.gravity = {
2918
- enable: gravityOptions.enable,
2919
- acceleration: getRangeValue(gravityOptions.acceleration),
2920
- inverse: gravityOptions.inverse
2921
- };
2922
- this.position = this.calcPosition(container, position, clamp(zIndexValue, 0, container.zLayers));
2923
- this.initialPosition = this.position.copy();
2924
- this.offset = Vector.origin;
2925
- const particles = container.particles;
2926
- particles.needsSort = particles.needsSort || particles.lastZIndex < this.position.z;
2927
- particles.lastZIndex = this.position.z;
2928
- this.zIndexFactor = this.position.z / container.zLayers;
2929
- this.sides = 24;
2930
- let drawer = container.drawers.get(this.shape);
2931
- if (!drawer) {
2932
- drawer = Particle_classPrivateFieldGet(this, _Particle_engine, "f").plugins.getShapeDrawer(this.shape);
2933
- if (drawer) {
2934
- container.drawers.set(this.shape, drawer);
2935
- }
2936
- }
2937
- if (drawer === null || drawer === void 0 ? void 0 : drawer.loadShape) {
2938
- drawer === null || drawer === void 0 ? void 0 : drawer.loadShape(this);
2939
- }
2940
- const sideCountFunc = drawer === null || drawer === void 0 ? void 0 : drawer.getSidesCount;
2941
- if (sideCountFunc) {
2942
- this.sides = sideCountFunc(this);
2943
- }
2944
- this.life = this.loadLife();
2945
- this.spawning = this.life.delay > 0;
2946
- if (this.options.move.spin.enable) {
2947
- const spinPos = (_h = this.options.move.spin.position) !== null && _h !== void 0 ? _h : {
2948
- x: 50,
2949
- y: 50
2950
- };
2951
- const spinCenter = {
2952
- x: spinPos.x / 100 * container.canvas.size.width,
2953
- y: spinPos.y / 100 * container.canvas.size.height
2954
- };
2955
- const pos = this.getPosition();
2956
- const distance = getDistance(pos, spinCenter);
2957
- this.spin = {
2958
- center: spinCenter,
2959
- direction: this.velocity.x >= 0 ? "clockwise" : "counter-clockwise",
2960
- angle: this.velocity.angle,
2961
- radius: distance,
2962
- acceleration: (_j = this.retina.spinAcceleration) !== null && _j !== void 0 ? _j : getRangeValue(this.options.move.spin.acceleration)
2963
- };
2964
- }
2965
- this.shadowColor = colorToRgb(this.options.shadow.color);
2966
- for (const updater of container.particles.updaters) {
2967
- if (updater.init) {
2968
- updater.init(this);
2969
- }
2970
- }
2971
- if (drawer && drawer.particleInit) {
2972
- drawer.particleInit(container, this);
2973
- }
2974
- for (const [, plugin] of container.plugins) {
2975
- if (plugin.particleCreated) {
2976
- plugin.particleCreated(this);
2977
- }
2978
- }
2979
- }
2980
- isVisible() {
2981
- return !this.destroyed && !this.spawning && this.isInsideCanvas();
2982
- }
2983
- isInsideCanvas() {
2984
- const radius = this.getRadius();
2985
- const canvasSize = this.container.canvas.size;
2986
- return this.position.x >= -radius && this.position.y >= -radius && this.position.y <= canvasSize.height + radius && this.position.x <= canvasSize.width + radius;
2987
- }
2988
- draw(delta) {
2989
- const container = this.container;
2990
- for (const [, plugin] of container.plugins) {
2991
- container.canvas.drawParticlePlugin(plugin, this, delta);
2992
- }
2993
- container.canvas.drawParticle(this, delta);
2994
- }
2995
- getPosition() {
2996
- return {
2997
- x: this.position.x + this.offset.x,
2998
- y: this.position.y + this.offset.y,
2999
- z: this.position.z
3000
- };
3001
- }
3002
- getRadius() {
3003
- var _a;
3004
- return (_a = this.bubble.radius) !== null && _a !== void 0 ? _a : this.size.value;
3005
- }
3006
- getMass() {
3007
- return this.getRadius() ** 2 * Math.PI / 2;
3008
- }
3009
- getFillColor() {
3010
- var _a, _b;
3011
- const color = (_a = this.bubble.color) !== null && _a !== void 0 ? _a : getHslFromAnimation(this.color);
3012
- if (color && this.roll && (this.backColor || this.roll.alter)) {
3013
- 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;
3014
- if (rolled) {
3015
- if (this.backColor) {
3016
- return this.backColor;
3017
- }
3018
- if (this.roll.alter) {
3019
- return alterHsl(color, this.roll.alter.type, this.roll.alter.value);
3020
- }
3021
- }
3022
- }
3023
- return color;
3024
- }
3025
- getStrokeColor() {
3026
- var _a, _b;
3027
- return (_b = (_a = this.bubble.color) !== null && _a !== void 0 ? _a : getHslFromAnimation(this.strokeColor)) !== null && _b !== void 0 ? _b : this.getFillColor();
3028
- }
3029
- destroy(override) {
3030
- this.destroyed = true;
3031
- this.bubble.inRange = false;
3032
- if (this.unbreakable) {
3033
- return;
3034
- }
3035
- this.destroyed = true;
3036
- this.bubble.inRange = false;
3037
- for (const [, plugin] of this.container.plugins) {
3038
- if (plugin.particleDestroyed) {
3039
- plugin.particleDestroyed(this, override);
3040
- }
3041
- }
3042
- if (override) {
3043
- return;
3044
- }
3045
- const destroyOptions = this.options.destroy;
3046
- if (destroyOptions.mode === "split") {
3047
- this.split();
3048
- }
3049
- }
3050
- reset() {
3051
- if (this.opacity) {
3052
- this.opacity.loops = 0;
3053
- }
3054
- this.size.loops = 0;
3055
- }
3056
- split() {
3057
- const splitOptions = this.options.destroy.split;
3058
- if (splitOptions.count >= 0 && this.splitCount++ > splitOptions.count) {
3059
- return;
3060
- }
3061
- const rate = getRangeValue(splitOptions.rate.value);
3062
- for (let i = 0; i < rate; i++) {
3063
- this.container.particles.addSplitParticle(this);
3064
- }
3065
- }
3066
- calcPosition(container, position, zIndex, tryCount = 0) {
3067
- var _a, _b, _c, _d, _e, _f;
3068
- for (const [, plugin] of container.plugins) {
3069
- const pluginPos = plugin.particlePosition !== undefined ? plugin.particlePosition(position, this) : undefined;
3070
- if (pluginPos !== undefined) {
3071
- return Vector3d.create(pluginPos.x, pluginPos.y, zIndex);
3072
- }
3073
- }
3074
- const canvasSize = container.canvas.size;
3075
- 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);
3076
- const radius = this.getRadius();
3077
- const outModes = this.options.move.outModes, fixHorizontal = outMode => {
3078
- fixOutMode({
3079
- outMode: outMode,
3080
- checkModes: [ "bounce", "bounce-horizontal" ],
3081
- coord: pos.x,
3082
- maxCoord: container.canvas.size.width,
3083
- setCb: value => pos.x += value,
3084
- radius: radius
3085
- });
3086
- }, fixVertical = outMode => {
3087
- fixOutMode({
3088
- outMode: outMode,
3089
- checkModes: [ "bounce", "bounce-vertical" ],
3090
- coord: pos.y,
3091
- maxCoord: container.canvas.size.height,
3092
- setCb: value => pos.y += value,
3093
- radius: radius
3094
- });
3095
- };
3096
- fixHorizontal((_c = outModes.left) !== null && _c !== void 0 ? _c : outModes.default);
3097
- fixHorizontal((_d = outModes.right) !== null && _d !== void 0 ? _d : outModes.default);
3098
- fixVertical((_e = outModes.top) !== null && _e !== void 0 ? _e : outModes.default);
3099
- fixVertical((_f = outModes.bottom) !== null && _f !== void 0 ? _f : outModes.default);
3100
- if (this.checkOverlap(pos, tryCount)) {
3101
- return this.calcPosition(container, undefined, zIndex, tryCount + 1);
3102
- }
3103
- return pos;
3104
- }
3105
- checkOverlap(pos, tryCount = 0) {
3106
- const collisionsOptions = this.options.collisions;
3107
- const radius = this.getRadius();
3108
- if (!collisionsOptions.enable) {
3109
- return false;
3110
- }
3111
- const overlapOptions = collisionsOptions.overlap;
3112
- if (overlapOptions.enable) {
3113
- return false;
3114
- }
3115
- const retries = overlapOptions.retries;
3116
- if (retries >= 0 && tryCount > retries) {
3117
- throw new Error("Particle is overlapping and can't be placed");
3118
- }
3119
- let overlaps = false;
3120
- for (const particle of this.container.particles.array) {
3121
- if (getDistance(pos, particle.position) < radius + particle.getRadius()) {
3122
- overlaps = true;
3123
- break;
3124
- }
3125
- }
3126
- return overlaps;
3127
- }
3128
- calculateVelocity() {
3129
- 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 = {
3130
- left: radOffset - rad / 2,
3131
- right: radOffset + rad / 2
3132
- };
3133
- if (!moveOptions.straight) {
3134
- res.angle += randomInRange(setRangeValue(range.left, range.right));
3135
- }
3136
- if (moveOptions.random && typeof moveOptions.speed === "number") {
3137
- res.length *= Math.random();
3138
- }
3139
- return res;
3140
- }
3141
- loadShapeData(shapeOptions, reduceDuplicates) {
3142
- const shapeData = shapeOptions.options[this.shape];
3143
- if (shapeData) {
3144
- return deepExtend({}, shapeData instanceof Array ? itemFromArray(shapeData, this.id, reduceDuplicates) : shapeData);
3145
- }
3146
- }
3147
- loadLife() {
3148
- const container = this.container;
3149
- const particlesOptions = this.options;
3150
- const lifeOptions = particlesOptions.life;
3151
- const life = {
3152
- delay: container.retina.reduceFactor ? getRangeValue(lifeOptions.delay.value) * (lifeOptions.delay.sync ? 1 : Math.random()) / container.retina.reduceFactor * 1e3 : 0,
3153
- delayTime: 0,
3154
- duration: container.retina.reduceFactor ? getRangeValue(lifeOptions.duration.value) * (lifeOptions.duration.sync ? 1 : Math.random()) / container.retina.reduceFactor * 1e3 : 0,
3155
- time: 0,
3156
- count: particlesOptions.life.count
3157
- };
3158
- if (life.duration <= 0) {
3159
- life.duration = -1;
3160
- }
3161
- if (life.count <= 0) {
3162
- life.count = -1;
3163
- }
3164
- return life;
3165
- }
3166
- }
3167
- _Particle_engine = new WeakMap;
3168
- var Particles_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
3169
- if (kind === "m") throw new TypeError("Private method is not writable");
3170
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
3171
- 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");
3172
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
3173
- value;
3174
- };
3175
- var Particles_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
3176
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3177
- 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");
3178
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3179
- };
3180
- var _Particles_engine;
3181
- class Particles_Particles {
3182
- constructor(engine, container) {
3183
- this.container = container;
3184
- _Particles_engine.set(this, void 0);
3185
- Particles_classPrivateFieldSet(this, _Particles_engine, engine, "f");
3186
- this.nextId = 0;
3187
- this.array = [];
3188
- this.zArray = [];
3189
- this.mover = new ParticlesMover(container);
3190
- this.limit = 0;
3191
- this.needsSort = false;
3192
- this.lastZIndex = 0;
3193
- this.freqs = {
3194
- links: new Map,
3195
- triangles: new Map
3196
- };
3197
- this.interactionManager = new InteractionManager(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), container);
3198
- const canvasSize = this.container.canvas.size;
3199
- this.linksColors = new Map;
3200
- this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
3201
- this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
3202
- }
3203
- get count() {
3204
- return this.array.length;
3205
- }
3206
- init() {
3207
- var _a;
3208
- const container = this.container;
3209
- const options = container.actualOptions;
3210
- this.lastZIndex = 0;
3211
- this.needsSort = false;
3212
- this.freqs.links = new Map;
3213
- this.freqs.triangles = new Map;
3214
- let handled = false;
3215
- this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
3216
- this.interactionManager.init();
3217
- for (const [, plugin] of container.plugins) {
3218
- if (plugin.particlesInitialization !== undefined) {
3219
- handled = plugin.particlesInitialization();
3220
- }
3221
- if (handled) {
3222
- break;
3223
- }
3224
- }
3225
- this.addManualParticles();
3226
- if (!handled) {
3227
- for (const group in options.particles.groups) {
3228
- const groupOptions = options.particles.groups[group];
3229
- 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++,
3230
- j++) {
3231
- this.addParticle(undefined, groupOptions, group);
3232
- }
3233
- }
3234
- for (let i = this.count; i < options.particles.number.value; i++) {
3235
- this.addParticle();
3236
- }
3237
- }
3238
- container.pathGenerator.init(container);
3239
- }
3240
- async redraw() {
3241
- this.clear();
3242
- this.init();
3243
- await this.draw({
3244
- value: 0,
3245
- factor: 0
3246
- });
3247
- }
3248
- removeAt(index, quantity = 1, group, override) {
3249
- if (!(index >= 0 && index <= this.count)) {
3250
- return;
3251
- }
3252
- let deleted = 0;
3253
- for (let i = index; deleted < quantity && i < this.count; i++) {
3254
- const particle = this.array[i];
3255
- if (!particle || particle.group !== group) {
3256
- continue;
3257
- }
3258
- particle.destroy(override);
3259
- this.array.splice(i--, 1);
3260
- const zIdx = this.zArray.indexOf(particle);
3261
- this.zArray.splice(zIdx, 1);
3262
- deleted++;
3263
- }
3264
- }
3265
- remove(particle, group, override) {
3266
- this.removeAt(this.array.indexOf(particle), undefined, group, override);
3267
- }
3268
- async update(delta) {
3269
- const container = this.container;
3270
- const particlesToDelete = [];
3271
- container.pathGenerator.update();
3272
- for (const [, plugin] of container.plugins) {
3273
- if (plugin.update !== undefined) {
3274
- plugin.update(delta);
3275
- }
3276
- }
3277
- for (const particle of this.array) {
3278
- const resizeFactor = container.canvas.resizeFactor;
3279
- if (resizeFactor && !particle.ignoresResizeRatio) {
3280
- particle.position.x *= resizeFactor.width;
3281
- particle.position.y *= resizeFactor.height;
3282
- }
3283
- particle.ignoresResizeRatio = false;
3284
- particle.bubble.inRange = false;
3285
- for (const [, plugin] of this.container.plugins) {
3286
- if (particle.destroyed) {
3287
- break;
3288
- }
3289
- if (plugin.particleUpdate) {
3290
- plugin.particleUpdate(particle, delta);
3291
- }
3292
- }
3293
- this.mover.move(particle, delta);
3294
- if (particle.destroyed) {
3295
- particlesToDelete.push(particle);
3296
- continue;
3297
- }
3298
- this.quadTree.insert(new Point(particle.getPosition(), particle));
3299
- }
3300
- for (const particle of particlesToDelete) {
3301
- this.remove(particle);
3302
- }
3303
- await this.interactionManager.externalInteract(delta);
3304
- for (const particle of container.particles.array) {
3305
- for (const updater of this.updaters) {
3306
- updater.update(particle, delta);
3307
- }
3308
- if (!particle.destroyed && !particle.spawning) {
3309
- await this.interactionManager.particlesInteract(particle, delta);
3310
- }
3311
- }
3312
- delete container.canvas.resizeFactor;
3313
- }
3314
- async draw(delta) {
3315
- const container = this.container, canvasSize = this.container.canvas.size;
3316
- this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
3317
- await this.update(delta);
3318
- if (this.needsSort) {
3319
- this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
3320
- this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
3321
- this.needsSort = false;
3322
- }
3323
- container.canvas.clear();
3324
- for (const [, plugin] of container.plugins) {
3325
- container.canvas.drawPlugin(plugin, delta);
3326
- }
3327
- for (const p of this.zArray) {
3328
- p.draw(delta);
3329
- }
3330
- }
3331
- clear() {
3332
- this.array = [];
3333
- this.zArray = [];
3334
- }
3335
- push(nb, mouse, overrideOptions, group) {
3336
- this.pushing = true;
3337
- for (let i = 0; i < nb; i++) {
3338
- this.addParticle(mouse === null || mouse === void 0 ? void 0 : mouse.position, overrideOptions, group);
3339
- }
3340
- this.pushing = false;
3341
- }
3342
- addParticle(position, overrideOptions, group) {
3343
- const container = this.container, options = container.actualOptions, limit = options.particles.number.limit * container.density;
3344
- if (limit > 0) {
3345
- const countToRemove = this.count + 1 - limit;
3346
- if (countToRemove > 0) {
3347
- this.removeQuantity(countToRemove);
3348
- }
3349
- }
3350
- return this.pushParticle(position, overrideOptions, group);
3351
- }
3352
- addSplitParticle(parent) {
3353
- const splitOptions = parent.options.destroy.split, options = new ParticlesOptions;
3354
- options.load(parent.options);
3355
- const factor = getRangeValue(splitOptions.factor.value);
3356
- options.color.load({
3357
- value: {
3358
- hsl: parent.getFillColor()
3359
- }
3360
- });
3361
- if (typeof options.size.value === "number") {
3362
- options.size.value /= factor;
3363
- } else {
3364
- options.size.value.min /= factor;
3365
- options.size.value.max /= factor;
3366
- }
3367
- options.load(splitOptions.particles);
3368
- const offset = splitOptions.sizeOffset ? setRangeValue(-parent.size.value, parent.size.value) : 0;
3369
- const position = {
3370
- x: parent.position.x + randomInRange(offset),
3371
- y: parent.position.y + randomInRange(offset)
3372
- };
3373
- return this.pushParticle(position, options, parent.group, (particle => {
3374
- if (particle.size.value < .5) {
3375
- return false;
3376
- }
3377
- particle.velocity.length = randomInRange(setRangeValue(parent.velocity.length, particle.velocity.length));
3378
- particle.splitCount = parent.splitCount + 1;
3379
- particle.unbreakable = true;
3380
- setTimeout((() => {
3381
- particle.unbreakable = false;
3382
- }), 500);
3383
- return true;
3384
- }));
3385
- }
3386
- removeQuantity(quantity, group) {
3387
- this.removeAt(0, quantity, group);
3388
- }
3389
- getLinkFrequency(p1, p2) {
3390
- const range = setRangeValue(p1.id, p2.id), key = `${getRangeMin(range)}_${getRangeMax(range)}`;
3391
- let res = this.freqs.links.get(key);
3392
- if (res === undefined) {
3393
- res = Math.random();
3394
- this.freqs.links.set(key, res);
3395
- }
3396
- return res;
3397
- }
3398
- getTriangleFrequency(p1, p2, p3) {
3399
- let [id1, id2, id3] = [ p1.id, p2.id, p3.id ];
3400
- if (id1 > id2) {
3401
- [id2, id1] = [ id1, id2 ];
3402
- }
3403
- if (id2 > id3) {
3404
- [id3, id2] = [ id2, id3 ];
3405
- }
3406
- if (id1 > id3) {
3407
- [id3, id1] = [ id1, id3 ];
3408
- }
3409
- const key = `${id1}_${id2}_${id3}`;
3410
- let res = this.freqs.triangles.get(key);
3411
- if (res === undefined) {
3412
- res = Math.random();
3413
- this.freqs.triangles.set(key, res);
3414
- }
3415
- return res;
3416
- }
3417
- addManualParticles() {
3418
- const container = this.container, options = container.actualOptions;
3419
- for (const particle of options.manualParticles) {
3420
- const pos = particle.position ? {
3421
- x: particle.position.x * container.canvas.size.width / 100,
3422
- y: particle.position.y * container.canvas.size.height / 100
3423
- } : undefined;
3424
- this.addParticle(pos, particle.options);
3425
- }
3426
- }
3427
- setDensity() {
3428
- const options = this.container.actualOptions;
3429
- for (const group in options.particles.groups) {
3430
- this.applyDensity(options.particles.groups[group], 0, group);
3431
- }
3432
- this.applyDensity(options.particles, options.manualParticles.length);
3433
- }
3434
- applyDensity(options, manualCount, group) {
3435
- var _a;
3436
- if (!((_a = options.number.density) === null || _a === void 0 ? void 0 : _a.enable)) {
3437
- return;
3438
- }
3439
- const numberOptions = options.number;
3440
- const densityFactor = this.initDensityFactor(numberOptions.density);
3441
- const optParticlesNumber = numberOptions.value;
3442
- const optParticlesLimit = numberOptions.limit > 0 ? numberOptions.limit : optParticlesNumber;
3443
- const particlesNumber = Math.min(optParticlesNumber, optParticlesLimit) * densityFactor + manualCount;
3444
- const particlesCount = Math.min(this.count, this.array.filter((t => t.group === group)).length);
3445
- this.limit = numberOptions.limit * densityFactor;
3446
- if (particlesCount < particlesNumber) {
3447
- this.push(Math.abs(particlesNumber - particlesCount), undefined, options, group);
3448
- } else if (particlesCount > particlesNumber) {
3449
- this.removeQuantity(particlesCount - particlesNumber, group);
3450
- }
3451
- }
3452
- initDensityFactor(densityOptions) {
3453
- const container = this.container;
3454
- if (!container.canvas.element || !densityOptions.enable) {
3455
- return 1;
3456
- }
3457
- const canvas = container.canvas.element, pxRatio = container.retina.pixelRatio;
3458
- return canvas.width * canvas.height / (densityOptions.factor * pxRatio ** 2 * densityOptions.area);
3459
- }
3460
- pushParticle(position, overrideOptions, group, initializer) {
3461
- try {
3462
- const particle = new Particle(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), this.nextId, this.container, position, overrideOptions, group);
3463
- let canAdd = true;
3464
- if (initializer) {
3465
- canAdd = initializer(particle);
3466
- }
3467
- if (!canAdd) {
3468
- return;
3469
- }
3470
- this.array.push(particle);
3471
- this.zArray.push(particle);
3472
- this.nextId++;
3473
- return particle;
3474
- } catch (e) {
3475
- console.warn(`error adding particle: ${e}`);
3476
- return;
3477
- }
3478
- }
3479
- }
3480
- _Particles_engine = new WeakMap;
3481
- class Retina_Retina {
3482
- constructor(container) {
3483
- this.container = container;
3484
- }
3485
- init() {
3486
- const container = this.container;
3487
- const options = container.actualOptions;
3488
- this.pixelRatio = !options.detectRetina || isSsr() ? 1 : window.devicePixelRatio;
3489
- const motionOptions = this.container.actualOptions.motion;
3490
- if (motionOptions && (motionOptions.disable || motionOptions.reduce.value)) {
3491
- if (isSsr() || typeof matchMedia === "undefined" || !matchMedia) {
3492
- this.reduceFactor = 1;
3493
- } else {
3494
- const mediaQuery = matchMedia("(prefers-reduced-motion: reduce)");
3495
- if (mediaQuery) {
3496
- this.handleMotionChange(mediaQuery);
3497
- const handleChange = () => {
3498
- this.handleMotionChange(mediaQuery);
3499
- container.refresh().catch((() => {}));
3500
- };
3501
- if (mediaQuery.addEventListener !== undefined) {
3502
- mediaQuery.addEventListener("change", handleChange);
3503
- } else if (mediaQuery.addListener !== undefined) {
3504
- mediaQuery.addListener(handleChange);
3505
- }
3506
- }
3507
- }
3508
- } else {
3509
- this.reduceFactor = 1;
3510
- }
3511
- const ratio = this.pixelRatio;
3512
- if (container.canvas.element) {
3513
- const element = container.canvas.element;
3514
- container.canvas.size.width = element.offsetWidth * ratio;
3515
- container.canvas.size.height = element.offsetHeight * ratio;
3516
- }
3517
- const particles = options.particles;
3518
- this.attractDistance = getRangeValue(particles.move.attract.distance) * ratio;
3519
- this.linksDistance = particles.links.distance * ratio;
3520
- this.linksWidth = particles.links.width * ratio;
3521
- this.sizeAnimationSpeed = getRangeValue(particles.size.animation.speed) * ratio;
3522
- this.maxSpeed = getRangeValue(particles.move.gravity.maxSpeed) * ratio;
3523
- if (particles.orbit.radius !== undefined) {
3524
- this.orbitRadius = getRangeValue(particles.orbit.radius) * this.container.retina.pixelRatio;
3525
- }
3526
- const modes = options.interactivity.modes;
3527
- this.connectModeDistance = modes.connect.distance * ratio;
3528
- this.connectModeRadius = modes.connect.radius * ratio;
3529
- this.grabModeDistance = modes.grab.distance * ratio;
3530
- this.repulseModeDistance = modes.repulse.distance * ratio;
3531
- this.bounceModeDistance = modes.bounce.distance * ratio;
3532
- this.attractModeDistance = modes.attract.distance * ratio;
3533
- this.slowModeRadius = modes.slow.radius * ratio;
3534
- this.bubbleModeDistance = modes.bubble.distance * ratio;
3535
- if (modes.bubble.size) {
3536
- this.bubbleModeSize = modes.bubble.size * ratio;
3537
- }
3538
- }
3539
- initParticle(particle) {
3540
- const options = particle.options;
3541
- const ratio = this.pixelRatio;
3542
- const moveDistance = options.move.distance;
3543
- const props = particle.retina;
3544
- props.attractDistance = getRangeValue(options.move.attract.distance) * ratio;
3545
- props.linksDistance = options.links.distance * ratio;
3546
- props.linksWidth = options.links.width * ratio;
3547
- props.moveDrift = getRangeValue(options.move.drift) * ratio;
3548
- props.moveSpeed = getRangeValue(options.move.speed) * ratio;
3549
- props.sizeAnimationSpeed = getRangeValue(options.size.animation.speed) * ratio;
3550
- if (particle.spin) {
3551
- props.spinAcceleration = getRangeValue(options.move.spin.acceleration) * ratio;
3552
- }
3553
- const maxDistance = props.maxDistance;
3554
- maxDistance.horizontal = moveDistance.horizontal !== undefined ? moveDistance.horizontal * ratio : undefined;
3555
- maxDistance.vertical = moveDistance.vertical !== undefined ? moveDistance.vertical * ratio : undefined;
3556
- props.maxSpeed = getRangeValue(options.move.gravity.maxSpeed) * ratio;
3557
- }
3558
- handleMotionChange(mediaQuery) {
3559
- const options = this.container.actualOptions;
3560
- if (mediaQuery.matches) {
3561
- const motion = options.motion;
3562
- this.reduceFactor = motion.disable ? 0 : motion.reduce.value ? 1 / motion.reduce.factor : 1;
3563
- } else {
3564
- this.reduceFactor = 1;
3565
- }
3566
- }
3567
- }
3568
- var Container_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
3569
- if (kind === "m") throw new TypeError("Private method is not writable");
3570
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
3571
- 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");
3572
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
3573
- value;
3574
- };
3575
- var Container_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
3576
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3577
- 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");
3578
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3579
- };
3580
- var _Container_engine;
3581
- class Container_Container {
3582
- constructor(engine, id, sourceOptions, ...presets) {
3583
- this.id = id;
3584
- _Container_engine.set(this, void 0);
3585
- Container_classPrivateFieldSet(this, _Container_engine, engine, "f");
3586
- this.fpsLimit = 120;
3587
- this.duration = 0;
3588
- this.lifeTime = 0;
3589
- this.firstStart = true;
3590
- this.started = false;
3591
- this.destroyed = false;
3592
- this.paused = true;
3593
- this.lastFrameTime = 0;
3594
- this.zLayers = 100;
3595
- this.pageHidden = false;
3596
- this._sourceOptions = sourceOptions;
3597
- this._initialSourceOptions = sourceOptions;
3598
- this.retina = new Retina(this);
3599
- this.canvas = new Canvas(this);
3600
- this.particles = new Particles(Container_classPrivateFieldGet(this, _Container_engine, "f"), this);
3601
- this.drawer = new FrameManager(this);
3602
- this.presets = presets;
3603
- this.pathGenerator = {
3604
- generate: () => {
3605
- const v = Vector.create(0, 0);
3606
- v.length = Math.random();
3607
- v.angle = Math.random() * Math.PI * 2;
3608
- return v;
3609
- },
3610
- init: () => {},
3611
- update: () => {}
3612
- };
3613
- this.interactivity = {
3614
- mouse: {
3615
- clicking: false,
3616
- inside: false
3617
- }
3618
- };
3619
- this.bubble = {};
3620
- this.repulse = {
3621
- particles: []
3622
- };
3623
- this.attract = {
3624
- particles: []
3625
- };
3626
- this.plugins = new Map;
3627
- this.drawers = new Map;
3628
- this.density = 1;
3629
- this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
3630
- this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
3631
- this.eventListeners = new EventListeners(this);
3632
- if (typeof IntersectionObserver !== "undefined" && IntersectionObserver) {
3633
- this.intersectionObserver = new IntersectionObserver((entries => this.intersectionManager(entries)));
3634
- }
3635
- }
3636
- get options() {
3637
- return this._options;
3638
- }
3639
- get sourceOptions() {
3640
- return this._sourceOptions;
3641
- }
3642
- play(force) {
3643
- const needsUpdate = this.paused || force;
3644
- if (this.firstStart && !this.actualOptions.autoPlay) {
3645
- this.firstStart = false;
3646
- return;
3647
- }
3648
- if (this.paused) {
3649
- this.paused = false;
3650
- }
3651
- if (needsUpdate) {
3652
- for (const [, plugin] of this.plugins) {
3653
- if (plugin.play) {
3654
- plugin.play();
3655
- }
3656
- }
3657
- }
3658
- this.draw(needsUpdate || false);
3659
- }
3660
- pause() {
3661
- if (this.drawAnimationFrame !== undefined) {
3662
- cancelAnimation()(this.drawAnimationFrame);
3663
- delete this.drawAnimationFrame;
3664
- }
3665
- if (this.paused) {
3666
- return;
3667
- }
3668
- for (const [, plugin] of this.plugins) {
3669
- if (plugin.pause) {
3670
- plugin.pause();
3671
- }
3672
- }
3673
- if (!this.pageHidden) {
3674
- this.paused = true;
3675
- }
3676
- }
3677
- draw(force) {
3678
- let refreshTime = force;
3679
- this.drawAnimationFrame = animate()((async timestamp => {
3680
- if (refreshTime) {
3681
- this.lastFrameTime = undefined;
3682
- refreshTime = false;
3683
- }
3684
- await this.drawer.nextFrame(timestamp);
3685
- }));
3686
- }
3687
- getAnimationStatus() {
3688
- return !this.paused && !this.pageHidden;
3689
- }
3690
- setNoise(noiseOrGenerator, init, update) {
3691
- this.setPath(noiseOrGenerator, init, update);
3692
- }
3693
- setPath(pathOrGenerator, init, update) {
3694
- var _a, _b, _c;
3695
- if (!pathOrGenerator) {
3696
- return;
3697
- }
3698
- if (typeof pathOrGenerator === "function") {
3699
- this.pathGenerator.generate = pathOrGenerator;
3700
- if (init) {
3701
- this.pathGenerator.init = init;
3702
- }
3703
- if (update) {
3704
- this.pathGenerator.update = update;
3705
- }
3706
- } else {
3707
- const oldGenerator = this.pathGenerator;
3708
- this.pathGenerator = pathOrGenerator;
3709
- (_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
3710
- (_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
3711
- (_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
3712
- }
3713
- }
3714
- destroy() {
3715
- this.stop();
3716
- this.canvas.destroy();
3717
- for (const [, drawer] of this.drawers) {
3718
- if (drawer.destroy) {
3719
- drawer.destroy(this);
3720
- }
3721
- }
3722
- for (const key of this.drawers.keys()) {
3723
- this.drawers.delete(key);
3724
- }
3725
- this.destroyed = true;
3726
- }
3727
- exportImg(callback) {
3728
- this.exportImage(callback);
3729
- }
3730
- exportImage(callback, type, quality) {
3731
- var _a;
3732
- return (_a = this.canvas.element) === null || _a === void 0 ? void 0 : _a.toBlob(callback, type !== null && type !== void 0 ? type : "image/png", quality);
3733
- }
3734
- exportConfiguration() {
3735
- return JSON.stringify(this.actualOptions, undefined, 2);
3736
- }
3737
- refresh() {
3738
- this.stop();
3739
- return this.start();
3740
- }
3741
- reset() {
3742
- this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
3743
- return this.refresh();
3744
- }
3745
- stop() {
3746
- if (!this.started) {
3747
- return;
3748
- }
3749
- this.firstStart = true;
3750
- this.started = false;
3751
- this.eventListeners.removeListeners();
3752
- this.pause();
3753
- this.particles.clear();
3754
- this.canvas.clear();
3755
- if (this.interactivity.element instanceof HTMLElement && this.intersectionObserver) {
3756
- this.intersectionObserver.unobserve(this.interactivity.element);
3757
- }
3758
- for (const [, plugin] of this.plugins) {
3759
- if (plugin.stop) {
3760
- plugin.stop();
3761
- }
3762
- }
3763
- for (const key of this.plugins.keys()) {
3764
- this.plugins.delete(key);
3765
- }
3766
- this.particles.linksColors = new Map;
3767
- delete this.particles.grabLineColor;
3768
- delete this.particles.linksColor;
3769
- this._sourceOptions = this._options;
3770
- }
3771
- async loadTheme(name) {
3772
- this.currentTheme = name;
3773
- await this.refresh();
3774
- }
3775
- async start() {
3776
- if (this.started) {
3777
- return;
3778
- }
3779
- await this.init();
3780
- this.started = true;
3781
- this.eventListeners.addListeners();
3782
- if (this.interactivity.element instanceof HTMLElement && this.intersectionObserver) {
3783
- this.intersectionObserver.observe(this.interactivity.element);
3784
- }
3785
- for (const [, plugin] of this.plugins) {
3786
- if (plugin.startAsync !== undefined) {
3787
- await plugin.startAsync();
3788
- } else if (plugin.start !== undefined) {
3789
- plugin.start();
3790
- }
3791
- }
3792
- this.play();
3793
- }
3794
- addClickHandler(callback) {
3795
- const el = this.interactivity.element;
3796
- if (!el) {
3797
- return;
3798
- }
3799
- const clickOrTouchHandler = (e, pos, radius) => {
3800
- if (this.destroyed) {
3801
- return;
3802
- }
3803
- const pxRatio = this.retina.pixelRatio, posRetina = {
3804
- x: pos.x * pxRatio,
3805
- y: pos.y * pxRatio
3806
- }, particles = this.particles.quadTree.queryCircle(posRetina, radius * pxRatio);
3807
- callback(e, particles);
3808
- };
3809
- const clickHandler = e => {
3810
- if (this.destroyed) {
3811
- return;
3812
- }
3813
- const mouseEvent = e;
3814
- const pos = {
3815
- x: mouseEvent.offsetX || mouseEvent.clientX,
3816
- y: mouseEvent.offsetY || mouseEvent.clientY
3817
- };
3818
- clickOrTouchHandler(e, pos, 1);
3819
- };
3820
- const touchStartHandler = () => {
3821
- if (this.destroyed) {
3822
- return;
3823
- }
3824
- touched = true;
3825
- touchMoved = false;
3826
- };
3827
- const touchMoveHandler = () => {
3828
- if (this.destroyed) {
3829
- return;
3830
- }
3831
- touchMoved = true;
3832
- };
3833
- const touchEndHandler = e => {
3834
- var _a, _b, _c;
3835
- if (this.destroyed) {
3836
- return;
3837
- }
3838
- if (touched && !touchMoved) {
3839
- const touchEvent = e;
3840
- let lastTouch = touchEvent.touches[touchEvent.touches.length - 1];
3841
- if (!lastTouch) {
3842
- lastTouch = touchEvent.changedTouches[touchEvent.changedTouches.length - 1];
3843
- if (!lastTouch) {
3844
- return;
3845
- }
3846
- }
3847
- const canvasRect = (_a = this.canvas.element) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
3848
- const pos = {
3849
- x: lastTouch.clientX - ((_b = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.left) !== null && _b !== void 0 ? _b : 0),
3850
- y: lastTouch.clientY - ((_c = canvasRect === null || canvasRect === void 0 ? void 0 : canvasRect.top) !== null && _c !== void 0 ? _c : 0)
3851
- };
3852
- clickOrTouchHandler(e, pos, Math.max(lastTouch.radiusX, lastTouch.radiusY));
3853
- }
3854
- touched = false;
3855
- touchMoved = false;
3856
- };
3857
- const touchCancelHandler = () => {
3858
- if (this.destroyed) {
3859
- return;
3860
- }
3861
- touched = false;
3862
- touchMoved = false;
3863
- };
3864
- let touched = false;
3865
- let touchMoved = false;
3866
- el.addEventListener("click", clickHandler);
3867
- el.addEventListener("touchstart", touchStartHandler);
3868
- el.addEventListener("touchmove", touchMoveHandler);
3869
- el.addEventListener("touchend", touchEndHandler);
3870
- el.addEventListener("touchcancel", touchCancelHandler);
3871
- }
3872
- updateActualOptions() {
3873
- this.actualOptions.responsive = [];
3874
- const newMaxWidth = this.actualOptions.setResponsive(this.canvas.size.width, this.retina.pixelRatio, this._options);
3875
- this.actualOptions.setTheme(this.currentTheme);
3876
- if (this.responsiveMaxWidth != newMaxWidth) {
3877
- this.responsiveMaxWidth = newMaxWidth;
3878
- return true;
3879
- }
3880
- return false;
3881
- }
3882
- async init() {
3883
- this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
3884
- for (const preset of this.presets) {
3885
- this._options.load(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPreset(preset));
3886
- }
3887
- const shapes = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getSupportedShapes();
3888
- for (const type of shapes) {
3889
- const drawer = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getShapeDrawer(type);
3890
- if (drawer) {
3891
- this.drawers.set(type, drawer);
3892
- }
3893
- }
3894
- this._options.load(this._initialSourceOptions);
3895
- this._options.load(this._sourceOptions);
3896
- this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
3897
- this.actualOptions.load(this._options);
3898
- this.retina.init();
3899
- this.canvas.init();
3900
- this.updateActualOptions();
3901
- this.canvas.initBackground();
3902
- this.canvas.resize();
3903
- this.zLayers = this.actualOptions.zLayers;
3904
- this.duration = getRangeValue(this.actualOptions.duration);
3905
- this.lifeTime = 0;
3906
- this.fpsLimit = this.actualOptions.fpsLimit > 0 ? this.actualOptions.fpsLimit : 120;
3907
- const availablePlugins = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getAvailablePlugins(this);
3908
- for (const [id, plugin] of availablePlugins) {
3909
- this.plugins.set(id, plugin);
3910
- }
3911
- for (const [, drawer] of this.drawers) {
3912
- if (drawer.init) {
3913
- await drawer.init(this);
3914
- }
3915
- }
3916
- for (const [, plugin] of this.plugins) {
3917
- if (plugin.init) {
3918
- plugin.init(this.actualOptions);
3919
- } else if (plugin.initAsync !== undefined) {
3920
- await plugin.initAsync(this.actualOptions);
3921
- }
3922
- }
3923
- const pathOptions = this.actualOptions.particles.move.path;
3924
- if (pathOptions.generator) {
3925
- this.setPath(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
3926
- }
3927
- this.particles.init();
3928
- this.particles.setDensity();
3929
- for (const [, plugin] of this.plugins) {
3930
- if (plugin.particlesSetup !== undefined) {
3931
- plugin.particlesSetup();
3932
- }
3933
- }
3934
- }
3935
- intersectionManager(entries) {
3936
- if (!this.actualOptions.pauseOnOutsideViewport) {
3937
- return;
3938
- }
3939
- for (const entry of entries) {
3940
- if (entry.target !== this.interactivity.element) {
3941
- continue;
3942
- }
3943
- if (entry.isIntersecting) {
3944
- this.play();
3945
- } else {
3946
- this.pause();
3947
- }
3948
- }
3949
- }
3950
- }
3951
- _Container_engine = new WeakMap;
3952
- var Loader_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
3953
- if (kind === "m") throw new TypeError("Private method is not writable");
3954
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
3955
- 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");
3956
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
3957
- value;
3958
- };
3959
- var Loader_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
3960
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3961
- 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");
3962
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3963
- };
3964
- var _Loader_engine;
3965
- function fetchError(statusCode) {
3966
- console.error(`Error tsParticles - fetch status: ${statusCode}`);
3967
- console.error("Error tsParticles - File config not found");
3968
- }
3969
- class Loader {
3970
- constructor(engine) {
3971
- _Loader_engine.set(this, void 0);
3972
- Loader_classPrivateFieldSet(this, _Loader_engine, engine, "f");
3973
- }
3974
- dom() {
3975
- return Loader_classPrivateFieldGet(this, _Loader_engine, "f").domArray;
3976
- }
3977
- domItem(index) {
3978
- const dom = this.dom();
3979
- const item = dom[index];
3980
- if (item && !item.destroyed) {
3981
- return item;
3982
- }
3983
- dom.splice(index, 1);
3984
- }
3985
- async loadOptions(params) {
3986
- var _a, _b, _c;
3987
- const tagId = (_a = params.tagId) !== null && _a !== void 0 ? _a : `tsparticles${Math.floor(Math.random() * 1e4)}`;
3988
- const {options: options, index: index} = params;
3989
- let domContainer = (_b = params.element) !== null && _b !== void 0 ? _b : document.getElementById(tagId);
3990
- if (!domContainer) {
3991
- domContainer = document.createElement("div");
3992
- domContainer.id = tagId;
3993
- (_c = document.querySelector("body")) === null || _c === void 0 ? void 0 : _c.append(domContainer);
3994
- }
3995
- const currentOptions = options instanceof Array ? itemFromArray(options, index) : options;
3996
- const dom = this.dom();
3997
- const oldIndex = dom.findIndex((v => v.id === tagId));
3998
- if (oldIndex >= 0) {
3999
- const old = this.domItem(oldIndex);
4000
- if (old && !old.destroyed) {
4001
- old.destroy();
4002
- dom.splice(oldIndex, 1);
4003
- }
4004
- }
4005
- let canvasEl;
4006
- if (domContainer.tagName.toLowerCase() === "canvas") {
4007
- canvasEl = domContainer;
4008
- canvasEl.dataset[Constants.generatedAttribute] = "false";
4009
- } else {
4010
- const existingCanvases = domContainer.getElementsByTagName("canvas");
4011
- if (existingCanvases.length) {
4012
- canvasEl = existingCanvases[0];
4013
- canvasEl.dataset[Constants.generatedAttribute] = "false";
4014
- } else {
4015
- canvasEl = document.createElement("canvas");
4016
- canvasEl.dataset[Constants.generatedAttribute] = "true";
4017
- canvasEl.style.width = "100%";
4018
- canvasEl.style.height = "100%";
4019
- domContainer.appendChild(canvasEl);
4020
- }
4021
- }
4022
- const newItem = new Container(Loader_classPrivateFieldGet(this, _Loader_engine, "f"), tagId, currentOptions);
4023
- if (oldIndex >= 0) {
4024
- dom.splice(oldIndex, 0, newItem);
4025
- } else {
4026
- dom.push(newItem);
4027
- }
4028
- newItem.canvas.loadCanvas(canvasEl);
4029
- await newItem.start();
4030
- return newItem;
4031
- }
4032
- async loadRemoteOptions(params) {
4033
- const {url: jsonUrl, index: index} = params;
4034
- const url = jsonUrl instanceof Array ? itemFromArray(jsonUrl, index) : jsonUrl;
4035
- if (!url) {
4036
- return;
4037
- }
4038
- const response = await fetch(url);
4039
- if (!response.ok) {
4040
- fetchError(response.status);
4041
- return;
4042
- }
4043
- const data = await response.json();
4044
- return this.loadOptions({
4045
- tagId: params.tagId,
4046
- element: params.element,
4047
- index: index,
4048
- options: data
4049
- });
4050
- }
4051
- load(tagId, options, index) {
4052
- const params = {
4053
- index: index
4054
- };
4055
- if (typeof tagId === "string") {
4056
- params.tagId = tagId;
4057
- } else {
4058
- params.options = tagId;
4059
- }
4060
- if (typeof options === "number") {
4061
- params.index = options !== null && options !== void 0 ? options : params.index;
4062
- } else {
4063
- params.options = options !== null && options !== void 0 ? options : params.options;
4064
- }
4065
- return this.loadOptions(params);
4066
- }
4067
- async set(id, domContainer, options, index) {
4068
- const params = {
4069
- index: index
4070
- };
4071
- if (typeof id === "string") {
4072
- params.tagId = id;
4073
- } else {
4074
- params.element = id;
4075
- }
4076
- if (domContainer instanceof HTMLElement) {
4077
- params.element = domContainer;
4078
- } else {
4079
- params.options = domContainer;
4080
- }
4081
- if (typeof options === "number") {
4082
- params.index = options;
4083
- } else {
4084
- params.options = options !== null && options !== void 0 ? options : params.options;
4085
- }
4086
- return this.loadOptions(params);
4087
- }
4088
- async loadJSON(tagId, jsonUrl, index) {
4089
- let url, id;
4090
- if (typeof jsonUrl === "number" || jsonUrl === undefined) {
4091
- url = tagId;
4092
- } else {
4093
- id = tagId;
4094
- url = jsonUrl;
4095
- }
4096
- return this.loadRemoteOptions({
4097
- tagId: id,
4098
- url: url,
4099
- index: index
4100
- });
4101
- }
4102
- async setJSON(id, domContainer, jsonUrl, index) {
4103
- let url, newId, newIndex, element;
4104
- if (id instanceof HTMLElement) {
4105
- element = id;
4106
- url = domContainer;
4107
- newIndex = jsonUrl;
4108
- } else {
4109
- newId = id;
4110
- element = domContainer;
4111
- url = jsonUrl;
4112
- newIndex = index;
4113
- }
4114
- return this.loadRemoteOptions({
4115
- tagId: newId,
4116
- url: url,
4117
- index: newIndex,
4118
- element: element
4119
- });
4120
- }
4121
- setOnClickHandler(callback) {
4122
- const dom = this.dom();
4123
- if (dom.length === 0) {
4124
- throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");
4125
- }
4126
- for (const domItem of dom) {
4127
- domItem.addClickHandler(callback);
4128
- }
4129
- }
4130
- }
4131
- _Loader_engine = new WeakMap;
4132
- function NumberUtils_clamp(num, min, max) {
46
+ function clamp(num, min, max) {
4133
47
  return Math.min(Math.max(num, min), max);
4134
48
  }
4135
49
  function NumberUtils_mix(comp1, comp2, weight1, weight2) {
4136
50
  return Math.floor((comp1 * weight1 + comp2 * weight2) / (weight1 + weight2));
4137
51
  }
4138
- function NumberUtils_randomInRange(r) {
4139
- const max = NumberUtils_getRangeMax(r);
4140
- let min = NumberUtils_getRangeMin(r);
52
+ function randomInRange(r) {
53
+ const max = getRangeMax(r);
54
+ let min = getRangeMin(r);
4141
55
  if (max === min) {
4142
56
  min = 0;
4143
57
  }
4144
58
  return Math.random() * (max - min) + min;
4145
59
  }
4146
60
  function NumberUtils_getRangeValue(value) {
4147
- return typeof value === "number" ? value : NumberUtils_randomInRange(value);
61
+ return typeof value === "number" ? value : randomInRange(value);
4148
62
  }
4149
- function NumberUtils_getRangeMin(value) {
63
+ function getRangeMin(value) {
4150
64
  return typeof value === "number" ? value : value.min;
4151
65
  }
4152
- function NumberUtils_getRangeMax(value) {
66
+ function getRangeMax(value) {
4153
67
  return typeof value === "number" ? value : value.max;
4154
68
  }
4155
- function NumberUtils_setRangeValue(source, value) {
69
+ function setRangeValue(source, value) {
4156
70
  if (source === value || value === undefined && typeof source === "number") {
4157
71
  return source;
4158
72
  }
4159
- const min = NumberUtils_getRangeMin(source), max = NumberUtils_getRangeMax(source);
73
+ const min = getRangeMin(source), max = getRangeMax(source);
4160
74
  return value !== undefined ? {
4161
75
  min: Math.min(min, value),
4162
76
  max: Math.max(max, value)
4163
- } : NumberUtils_setRangeValue(min, max);
77
+ } : setRangeValue(min, max);
4164
78
  }
4165
79
  function NumberUtils_getValue(options) {
4166
- const random = options.random;
4167
- const {enable: enable, minimumValue: minimumValue} = typeof random === "boolean" ? {
80
+ const random = options.random, {enable: enable, minimumValue: minimumValue} = typeof random === "boolean" ? {
4168
81
  enable: random,
4169
82
  minimumValue: 0
4170
83
  } : random;
4171
- 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);
4172
85
  }
4173
86
  function NumberUtils_getDistances(pointA, pointB) {
4174
- const dx = pointA.x - pointB.x;
4175
- const dy = pointA.y - pointB.y;
87
+ const dx = pointA.x - pointB.x, dy = pointA.y - pointB.y;
4176
88
  return {
4177
89
  dx: dx,
4178
90
  dy: dy,
4179
91
  distance: Math.sqrt(dx * dx + dy * dy)
4180
92
  };
4181
93
  }
4182
- function NumberUtils_getDistance(pointA, pointB) {
94
+ function getDistance(pointA, pointB) {
4183
95
  return NumberUtils_getDistances(pointA, pointB).distance;
4184
96
  }
4185
- function NumberUtils_getParticleDirectionAngle(direction) {
97
+ function getParticleDirectionAngle(direction) {
4186
98
  if (typeof direction === "number") {
4187
99
  return direction * Math.PI / 180;
4188
100
  } else {
@@ -4217,7 +129,7 @@
4217
129
  }
4218
130
  }
4219
131
  }
4220
- function NumberUtils_getParticleBaseVelocity(direction) {
132
+ function getParticleBaseVelocity(direction) {
4221
133
  const baseVelocity = Vector.origin;
4222
134
  baseVelocity.length = 1;
4223
135
  baseVelocity.angle = direction;
@@ -4248,8 +160,7 @@
4248
160
 
4249
161
  case "ease-out-back":
4250
162
  {
4251
- const c1 = 1.70158;
4252
- const c3 = c1 + 1;
163
+ const c1 = 1.70158, c3 = c1 + 1;
4253
164
  return 1 + c3 * Math.pow(value - 1, 3) + c1 * Math.pow(value - 1, 2);
4254
165
  }
4255
166
 
@@ -4260,40 +171,100 @@
4260
171
  return value;
4261
172
  }
4262
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_Constants {}
218
+ Constants_Constants.generatedAttribute = "generated";
219
+ Constants_Constants.randomColorValue = "random";
220
+ Constants_Constants.midColorValue = "mid";
221
+ Constants_Constants.touchEndEvent = "touchend";
222
+ Constants_Constants.mouseDownEvent = "mousedown";
223
+ Constants_Constants.mouseUpEvent = "mouseup";
224
+ Constants_Constants.mouseMoveEvent = "mousemove";
225
+ Constants_Constants.touchStartEvent = "touchstart";
226
+ Constants_Constants.touchMoveEvent = "touchmove";
227
+ Constants_Constants.mouseLeaveEvent = "mouseleave";
228
+ Constants_Constants.mouseOutEvent = "mouseout";
229
+ Constants_Constants.touchCancelEvent = "touchcancel";
230
+ Constants_Constants.resizeEvent = "resize";
231
+ Constants_Constants.visibilityChangeEvent = "visibilitychange";
232
+ Constants_Constants.noPolygonDataLoaded = "No polygon data loaded.";
233
+ Constants_Constants.noPolygonFound = "No polygon found, you need to specify SVG url in config.";
4263
234
  function rectSideBounce(pSide, pOtherSide, rectSide, rectOtherSide, velocity, factor) {
4264
235
  const res = {
4265
236
  bounced: false
4266
237
  };
4267
- if (pOtherSide.min >= rectOtherSide.min && pOtherSide.min <= rectOtherSide.max && pOtherSide.max >= rectOtherSide.min && pOtherSide.max <= rectOtherSide.max) {
4268
- 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) {
4269
- res.velocity = velocity * -factor;
4270
- res.bounced = true;
4271
- }
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;
4272
244
  }
4273
245
  return res;
4274
246
  }
4275
247
  function checkSelector(element, selectors) {
4276
- if (selectors instanceof Array) {
4277
- for (const selector of selectors) {
4278
- if (element.matches(selector)) {
4279
- return true;
4280
- }
4281
- }
4282
- return false;
4283
- } else {
248
+ if (!(selectors instanceof Array)) {
4284
249
  return element.matches(selectors);
4285
250
  }
251
+ for (const selector of selectors) {
252
+ if (element.matches(selector)) {
253
+ return true;
254
+ }
255
+ }
256
+ return false;
4286
257
  }
4287
- function Utils_isSsr() {
258
+ function isSsr() {
4288
259
  return typeof window === "undefined" || !window || typeof window.document === "undefined" || !window.document;
4289
260
  }
4290
- function Utils_animate() {
4291
- 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);
4292
263
  }
4293
- function Utils_cancelAnimation() {
4294
- 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);
4295
266
  }
4296
- function Utils_isInArray(value, array) {
267
+ function isInArray(value, array) {
4297
268
  return value === array || array instanceof Array && array.indexOf(value) > -1;
4298
269
  }
4299
270
  async function loadFont(character) {
@@ -4305,7 +276,7 @@
4305
276
  function arrayRandomIndex(array) {
4306
277
  return Math.floor(Math.random() * array.length);
4307
278
  }
4308
- function Utils_itemFromArray(array, index, useIndex = true) {
279
+ function itemFromArray(array, index, useIndex = true) {
4309
280
  const fixedIndex = index !== undefined && useIndex ? index % array.length : arrayRandomIndex(array);
4310
281
  return array[fixedIndex];
4311
282
  }
@@ -4336,7 +307,7 @@
4336
307
  top: point.y - radius
4337
308
  };
4338
309
  }
4339
- function Utils_deepExtend(destination, ...sources) {
310
+ function deepExtend(destination, ...sources) {
4340
311
  for (const source of sources) {
4341
312
  if (source === undefined || source === null) {
4342
313
  continue;
@@ -4355,31 +326,26 @@
4355
326
  if (key === "__proto__") {
4356
327
  continue;
4357
328
  }
4358
- const sourceDict = source;
4359
- const value = sourceDict[key];
4360
- const isObject = typeof value === "object";
4361
- const destDict = destination;
4362
- 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);
4363
331
  }
4364
332
  }
4365
333
  return destination;
4366
334
  }
4367
335
  function isDivModeEnabled(mode, divs) {
4368
- 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);
4369
337
  }
4370
338
  function divModeExecute(mode, divs, callback) {
4371
339
  if (divs instanceof Array) {
4372
340
  for (const div of divs) {
4373
- const divMode = div.mode;
4374
- const divEnabled = div.enable;
4375
- if (divEnabled && Utils_isInArray(mode, divMode)) {
341
+ const divMode = div.mode, divEnabled = div.enable;
342
+ if (divEnabled && isInArray(mode, divMode)) {
4376
343
  singleDivModeExecute(div, callback);
4377
344
  }
4378
345
  }
4379
346
  } else {
4380
- const divMode = divs.mode;
4381
- const divEnabled = divs.enable;
4382
- if (divEnabled && Utils_isInArray(mode, divMode)) {
347
+ const divMode = divs.mode, divEnabled = divs.enable;
348
+ if (divEnabled && isInArray(mode, divMode)) {
4383
349
  singleDivModeExecute(divs, callback);
4384
350
  }
4385
351
  }
@@ -4414,29 +380,18 @@
4414
380
  };
4415
381
  }
4416
382
  function circleBounce(p1, p2) {
4417
- const {x: xVelocityDiff, y: yVelocityDiff} = p1.velocity.sub(p2.velocity);
4418
- const [pos1, pos2] = [ p1.position, p2.position ];
4419
- const {dx: xDist, dy: yDist} = getDistances(pos2, pos1);
4420
- if (xVelocityDiff * xDist + yVelocityDiff * yDist >= 0) {
4421
- const angle = -Math.atan2(yDist, xDist);
4422
- const m1 = p1.mass;
4423
- const m2 = p2.mass;
4424
- const u1 = p1.velocity.rotate(angle);
4425
- const u2 = p2.velocity.rotate(angle);
4426
- const v1 = collisionVelocity(u1, u2, m1, m2);
4427
- const v2 = collisionVelocity(u2, u1, m1, m2);
4428
- const vFinal1 = v1.rotate(-angle);
4429
- const vFinal2 = v2.rotate(-angle);
4430
- p1.velocity.x = vFinal1.x * p1.factor.x;
4431
- p1.velocity.y = vFinal1.y * p1.factor.y;
4432
- p2.velocity.x = vFinal2.x * p2.factor.x;
4433
- 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;
4434
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;
4435
392
  }
4436
393
  function rectBounce(particle, divBounds) {
4437
- const pPos = particle.getPosition();
4438
- const size = particle.getRadius();
4439
- const bounds = calculateBounds(pPos, size);
394
+ const pPos = particle.getPosition(), size = particle.getRadius(), bounds = calculateBounds(pPos, size);
4440
395
  const resH = rectSideBounce({
4441
396
  min: bounds.left,
4442
397
  max: bounds.right
@@ -4540,7 +495,7 @@
4540
495
  } : undefined;
4541
496
  }
4542
497
  }
4543
- function ColorUtils_colorToRgb(input, index, useIndex = true) {
498
+ function colorToRgb(input, index, useIndex = true) {
4544
499
  var _a, _b, _c;
4545
500
  if (input === undefined) {
4546
501
  return;
@@ -4550,20 +505,15 @@
4550
505
  } : input;
4551
506
  let res;
4552
507
  if (typeof color.value === "string") {
4553
- if (color.value === Constants_Constants.randomColorValue) {
4554
- res = getRandomRgbColor();
4555
- } else {
4556
- res = stringToRgb(color.value);
4557
- }
508
+ res = color.value === Constants_Constants.randomColorValue ? getRandomRgbColor() : stringToRgb(color.value);
4558
509
  } else {
4559
510
  if (color.value instanceof Array) {
4560
- const colorSelected = Utils_itemFromArray(color.value, index, useIndex);
4561
- res = ColorUtils_colorToRgb({
511
+ const colorSelected = itemFromArray(color.value, index, useIndex);
512
+ res = colorToRgb({
4562
513
  value: colorSelected
4563
514
  });
4564
515
  } else {
4565
- const colorValue = color.value;
4566
- 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;
4567
517
  if (rgbColor.r !== undefined) {
4568
518
  res = rgbColor;
4569
519
  } else {
@@ -4581,22 +531,19 @@
4581
531
  }
4582
532
  return res;
4583
533
  }
4584
- function ColorUtils_colorToHsl(color, index, useIndex = true) {
4585
- const rgb = ColorUtils_colorToRgb(color, index, useIndex);
534
+ function colorToHsl(color, index, useIndex = true) {
535
+ const rgb = colorToRgb(color, index, useIndex);
4586
536
  return rgb !== undefined ? rgbToHsl(rgb) : undefined;
4587
537
  }
4588
538
  function rgbToHsl(color) {
4589
- const r1 = color.r / 255;
4590
- const g1 = color.g / 255;
4591
- const b1 = color.b / 255;
4592
- const max = Math.max(r1, g1, b1);
4593
- 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);
4594
541
  const res = {
4595
542
  h: 0,
4596
543
  l: (max + min) / 2,
4597
544
  s: 0
4598
545
  };
4599
- if (max != min) {
546
+ if (max !== min) {
4600
547
  res.s = res.l < .5 ? (max - min) / (max + min) : (max - min) / (2 - max - min);
4601
548
  res.h = r1 === max ? (g1 - b1) / (max - min) : res.h = g1 === max ? 2 + (b1 - r1) / (max - min) : 4 + (r1 - g1) / (max - min);
4602
549
  }
@@ -4620,8 +567,7 @@
4620
567
  b: 0,
4621
568
  g: 0,
4622
569
  r: 0
4623
- };
4624
- const hslPercent = {
570
+ }, hslPercent = {
4625
571
  h: hsl.h / 360,
4626
572
  l: hsl.l / 100,
4627
573
  s: hsl.s / 100
@@ -4631,8 +577,7 @@
4631
577
  result.g = hslPercent.l;
4632
578
  result.r = hslPercent.l;
4633
579
  } else {
4634
- const q = hslPercent.l < .5 ? hslPercent.l * (1 + hslPercent.s) : hslPercent.l + hslPercent.s - hslPercent.l * hslPercent.s;
4635
- 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;
4636
581
  result.r = hue2rgb(p, q, hslPercent.h + 1 / 3);
4637
582
  result.g = hue2rgb(p, q, hslPercent.h);
4638
583
  result.b = hue2rgb(p, q, hslPercent.h - 1 / 3);
@@ -4652,8 +597,7 @@
4652
597
  };
4653
598
  }
4654
599
  function hslToHsv(hsl) {
4655
- const l = hsl.l / 100, sl = hsl.s / 100;
4656
- 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);
4657
601
  return {
4658
602
  h: hsl.h,
4659
603
  s: sv * 100,
@@ -4670,8 +614,7 @@
4670
614
  };
4671
615
  }
4672
616
  function hsvToHsl(hsv) {
4673
- const v = hsv.v / 100, sv = hsv.s / 100;
4674
- 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);
4675
618
  return {
4676
619
  h: hsv.h,
4677
620
  l: l * 100,
@@ -4692,8 +635,7 @@
4692
635
  b: 0,
4693
636
  g: 0,
4694
637
  r: 0
4695
- };
4696
- const hsvPercent = {
638
+ }, hsvPercent = {
4697
639
  h: hsv.h / 60,
4698
640
  s: hsv.s / 100,
4699
641
  v: hsv.v / 100
@@ -4787,23 +729,22 @@
4787
729
  function getRandomRgbColor(min) {
4788
730
  const fixedMin = min !== null && min !== void 0 ? min : 0;
4789
731
  return {
4790
- b: Math.floor(NumberUtils_randomInRange(NumberUtils_setRangeValue(fixedMin, 256))),
4791
- g: Math.floor(NumberUtils_randomInRange(NumberUtils_setRangeValue(fixedMin, 256))),
4792
- 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)))
4793
735
  };
4794
736
  }
4795
- function ColorUtils_getStyleFromRgb(color, opacity) {
737
+ function getStyleFromRgb(color, opacity) {
4796
738
  return `rgba(${color.r}, ${color.g}, ${color.b}, ${opacity !== null && opacity !== void 0 ? opacity : 1})`;
4797
739
  }
4798
- function ColorUtils_getStyleFromHsl(color, opacity) {
740
+ function getStyleFromHsl(color, opacity) {
4799
741
  return `hsla(${color.h}, ${color.s}%, ${color.l}%, ${opacity !== null && opacity !== void 0 ? opacity : 1})`;
4800
742
  }
4801
743
  function getStyleFromHsv(color, opacity) {
4802
- return ColorUtils_getStyleFromHsl(hsvToHsl(color), opacity);
744
+ return getStyleFromHsl(hsvToHsl(color), opacity);
4803
745
  }
4804
- function ColorUtils_colorMix(color1, color2, size1, size2) {
4805
- let rgb1 = color1;
4806
- let rgb2 = color2;
746
+ function colorMix(color1, color2, size1, size2) {
747
+ let rgb1 = color1, rgb2 = color2;
4807
748
  if (rgb1.r === undefined) {
4808
749
  rgb1 = hslToRgb(color1);
4809
750
  }
@@ -4821,10 +762,9 @@
4821
762
  if (linkColor === Constants.randomColorValue) {
4822
763
  return getRandomRgbColor();
4823
764
  } else if (linkColor === "mid") {
4824
- const sourceColor = (_a = p1.getFillColor()) !== null && _a !== void 0 ? _a : p1.getStrokeColor();
4825
- 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();
4826
766
  if (sourceColor && destColor && p2) {
4827
- return ColorUtils_colorMix(sourceColor, destColor, p1.getRadius(), p2.getRadius());
767
+ return colorMix(sourceColor, destColor, p1.getRadius(), p2.getRadius());
4828
768
  } else {
4829
769
  const hslColor = sourceColor !== null && sourceColor !== void 0 ? sourceColor : destColor;
4830
770
  if (hslColor) {
@@ -4839,7 +779,7 @@
4839
779
  const color = typeof optColor === "string" ? optColor : optColor.value;
4840
780
  if (color === Constants.randomColorValue) {
4841
781
  if (consent) {
4842
- return ColorUtils_colorToRgb({
782
+ return colorToRgb({
4843
783
  value: color
4844
784
  });
4845
785
  } else if (blink) {
@@ -4848,12 +788,12 @@
4848
788
  return Constants.midColorValue;
4849
789
  }
4850
790
  } else {
4851
- return ColorUtils_colorToRgb({
791
+ return colorToRgb({
4852
792
  value: color
4853
793
  });
4854
794
  }
4855
795
  }
4856
- function ColorUtils_getHslFromAnimation(animation) {
796
+ function getHslFromAnimation(animation) {
4857
797
  return animation !== undefined ? {
4858
798
  h: animation.h.value,
4859
799
  s: animation.s.value,
@@ -4898,284 +838,6 @@
4898
838
  colorValue.velocity = 0;
4899
839
  }
4900
840
  }
4901
- function drawLine(context, begin, end) {
4902
- context.beginPath();
4903
- context.moveTo(begin.x, begin.y);
4904
- context.lineTo(end.x, end.y);
4905
- context.closePath();
4906
- }
4907
- function drawTriangle(context, p1, p2, p3) {
4908
- context.beginPath();
4909
- context.moveTo(p1.x, p1.y);
4910
- context.lineTo(p2.x, p2.y);
4911
- context.lineTo(p3.x, p3.y);
4912
- context.closePath();
4913
- }
4914
- function CanvasUtils_paintBase(context, dimension, baseColor) {
4915
- context.save();
4916
- context.fillStyle = baseColor !== null && baseColor !== void 0 ? baseColor : "rgba(0,0,0,0)";
4917
- context.fillRect(0, 0, dimension.width, dimension.height);
4918
- context.restore();
4919
- }
4920
- function CanvasUtils_clear(context, dimension) {
4921
- context.clearRect(0, 0, dimension.width, dimension.height);
4922
- }
4923
- function drawLinkLine(context, width, begin, end, maxDistance, canvasSize, warp, backgroundMask, composite, colorLine, opacity, shadow) {
4924
- let drawn = false;
4925
- if (getDistance(begin, end) <= maxDistance) {
4926
- drawLine(context, begin, end);
4927
- drawn = true;
4928
- } else if (warp) {
4929
- let pi1;
4930
- let pi2;
4931
- const endNE = {
4932
- x: end.x - canvasSize.width,
4933
- y: end.y
4934
- };
4935
- const d1 = getDistances(begin, endNE);
4936
- if (d1.distance <= maxDistance) {
4937
- const yi = begin.y - d1.dy / d1.dx * begin.x;
4938
- pi1 = {
4939
- x: 0,
4940
- y: yi
4941
- };
4942
- pi2 = {
4943
- x: canvasSize.width,
4944
- y: yi
4945
- };
4946
- } else {
4947
- const endSW = {
4948
- x: end.x,
4949
- y: end.y - canvasSize.height
4950
- };
4951
- const d2 = getDistances(begin, endSW);
4952
- if (d2.distance <= maxDistance) {
4953
- const yi = begin.y - d2.dy / d2.dx * begin.x;
4954
- const xi = -yi / (d2.dy / d2.dx);
4955
- pi1 = {
4956
- x: xi,
4957
- y: 0
4958
- };
4959
- pi2 = {
4960
- x: xi,
4961
- y: canvasSize.height
4962
- };
4963
- } else {
4964
- const endSE = {
4965
- x: end.x - canvasSize.width,
4966
- y: end.y - canvasSize.height
4967
- };
4968
- const d3 = getDistances(begin, endSE);
4969
- if (d3.distance <= maxDistance) {
4970
- const yi = begin.y - d3.dy / d3.dx * begin.x;
4971
- const xi = -yi / (d3.dy / d3.dx);
4972
- pi1 = {
4973
- x: xi,
4974
- y: yi
4975
- };
4976
- pi2 = {
4977
- x: pi1.x + canvasSize.width,
4978
- y: pi1.y + canvasSize.height
4979
- };
4980
- }
4981
- }
4982
- }
4983
- if (pi1 && pi2) {
4984
- drawLine(context, begin, pi1);
4985
- drawLine(context, end, pi2);
4986
- drawn = true;
4987
- }
4988
- }
4989
- if (!drawn) {
4990
- return;
4991
- }
4992
- context.lineWidth = width;
4993
- if (backgroundMask) {
4994
- context.globalCompositeOperation = composite;
4995
- }
4996
- context.strokeStyle = getStyleFromRgb(colorLine, opacity);
4997
- if (shadow.enable) {
4998
- const shadowColor = colorToRgb(shadow.color);
4999
- if (shadowColor) {
5000
- context.shadowBlur = shadow.blur;
5001
- context.shadowColor = getStyleFromRgb(shadowColor);
5002
- }
5003
- }
5004
- context.stroke();
5005
- }
5006
- function drawLinkTriangle(context, pos1, pos2, pos3, backgroundMask, composite, colorTriangle, opacityTriangle) {
5007
- drawTriangle(context, pos1, pos2, pos3);
5008
- if (backgroundMask) {
5009
- context.globalCompositeOperation = composite;
5010
- }
5011
- context.fillStyle = getStyleFromRgb(colorTriangle, opacityTriangle);
5012
- context.fill();
5013
- }
5014
- function CanvasUtils_drawConnectLine(context, width, lineStyle, begin, end) {
5015
- context.save();
5016
- drawLine(context, begin, end);
5017
- context.lineWidth = width;
5018
- context.strokeStyle = lineStyle;
5019
- context.stroke();
5020
- context.restore();
5021
- }
5022
- function CanvasUtils_gradient(context, p1, p2, opacity) {
5023
- const gradStop = Math.floor(p2.getRadius() / p1.getRadius());
5024
- const color1 = p1.getFillColor();
5025
- const color2 = p2.getFillColor();
5026
- if (!color1 || !color2) {
5027
- return;
5028
- }
5029
- const sourcePos = p1.getPosition();
5030
- const destPos = p2.getPosition();
5031
- const midRgb = colorMix(color1, color2, p1.getRadius(), p2.getRadius());
5032
- const grad = context.createLinearGradient(sourcePos.x, sourcePos.y, destPos.x, destPos.y);
5033
- grad.addColorStop(0, getStyleFromHsl(color1, opacity));
5034
- grad.addColorStop(gradStop > 1 ? 1 : gradStop, getStyleFromRgb(midRgb, opacity));
5035
- grad.addColorStop(1, getStyleFromHsl(color2, opacity));
5036
- return grad;
5037
- }
5038
- function CanvasUtils_drawGrabLine(context, width, begin, end, colorLine, opacity) {
5039
- context.save();
5040
- drawLine(context, begin, end);
5041
- context.strokeStyle = getStyleFromRgb(colorLine, opacity);
5042
- context.lineWidth = width;
5043
- context.stroke();
5044
- context.restore();
5045
- }
5046
- function CanvasUtils_drawParticle(container, context, particle, delta, fillColorValue, strokeColorValue, backgroundMask, composite, radius, opacity, shadow, gradient) {
5047
- var _a, _b, _c, _d, _e, _f;
5048
- const pos = particle.getPosition();
5049
- const tiltOptions = particle.options.tilt;
5050
- const rollOptions = particle.options.roll;
5051
- context.save();
5052
- if (tiltOptions.enable || rollOptions.enable) {
5053
- const roll = rollOptions.enable && particle.roll;
5054
- const tilt = tiltOptions.enable && particle.tilt;
5055
- const rollHorizontal = roll && (rollOptions.mode === "horizontal" || rollOptions.mode === "both");
5056
- const rollVertical = roll && (rollOptions.mode === "vertical" || rollOptions.mode === "both");
5057
- 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);
5058
- } else {
5059
- context.translate(pos.x, pos.y);
5060
- }
5061
- context.beginPath();
5062
- 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);
5063
- if (angle !== 0) {
5064
- context.rotate(angle);
5065
- }
5066
- if (backgroundMask) {
5067
- context.globalCompositeOperation = composite;
5068
- }
5069
- const shadowColor = particle.shadowColor;
5070
- if (shadow.enable && shadowColor) {
5071
- context.shadowBlur = shadow.blur;
5072
- context.shadowColor = getStyleFromRgb(shadowColor);
5073
- context.shadowOffsetX = shadow.offset.x;
5074
- context.shadowOffsetY = shadow.offset.y;
5075
- }
5076
- if (gradient) {
5077
- const gradientAngle = gradient.angle.value;
5078
- 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);
5079
- for (const color of gradient.colors) {
5080
- fillGradient.addColorStop(color.stop, getStyleFromHsl({
5081
- h: color.value.h.value,
5082
- s: color.value.s.value,
5083
- l: color.value.l.value
5084
- }, (_d = (_c = color.opacity) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : opacity));
5085
- }
5086
- context.fillStyle = fillGradient;
5087
- } else {
5088
- if (fillColorValue) {
5089
- context.fillStyle = fillColorValue;
5090
- }
5091
- }
5092
- const stroke = particle.stroke;
5093
- context.lineWidth = (_e = particle.strokeWidth) !== null && _e !== void 0 ? _e : 0;
5094
- if (strokeColorValue) {
5095
- context.strokeStyle = strokeColorValue;
5096
- }
5097
- drawShape(container, context, particle, radius, opacity, delta);
5098
- if (((_f = stroke === null || stroke === void 0 ? void 0 : stroke.width) !== null && _f !== void 0 ? _f : 0) > 0) {
5099
- context.stroke();
5100
- }
5101
- if (particle.close) {
5102
- context.closePath();
5103
- }
5104
- if (particle.fill) {
5105
- context.fill();
5106
- }
5107
- context.restore();
5108
- context.save();
5109
- if (tiltOptions.enable && particle.tilt) {
5110
- context.setTransform(1, Math.cos(particle.tilt.value) * particle.tilt.cosDirection, Math.sin(particle.tilt.value) * particle.tilt.sinDirection, 1, pos.x, pos.y);
5111
- } else {
5112
- context.translate(pos.x, pos.y);
5113
- }
5114
- if (angle !== 0) {
5115
- context.rotate(angle);
5116
- }
5117
- if (backgroundMask) {
5118
- context.globalCompositeOperation = composite;
5119
- }
5120
- drawShapeAfterEffect(container, context, particle, radius, opacity, delta);
5121
- context.restore();
5122
- }
5123
- function drawShape(container, context, particle, radius, opacity, delta) {
5124
- if (!particle.shape) {
5125
- return;
5126
- }
5127
- const drawer = container.drawers.get(particle.shape);
5128
- if (!drawer) {
5129
- return;
5130
- }
5131
- drawer.draw(context, particle, radius, opacity, delta, container.retina.pixelRatio);
5132
- }
5133
- function drawShapeAfterEffect(container, context, particle, radius, opacity, delta) {
5134
- if (!particle.shape) {
5135
- return;
5136
- }
5137
- const drawer = container.drawers.get(particle.shape);
5138
- if (!(drawer === null || drawer === void 0 ? void 0 : drawer.afterEffect)) {
5139
- return;
5140
- }
5141
- drawer.afterEffect(context, particle, radius, opacity, delta, container.retina.pixelRatio);
5142
- }
5143
- function CanvasUtils_drawPlugin(context, plugin, delta) {
5144
- if (!plugin.draw) {
5145
- return;
5146
- }
5147
- context.save();
5148
- plugin.draw(context, delta);
5149
- context.restore();
5150
- }
5151
- function CanvasUtils_drawParticlePlugin(context, plugin, particle, delta) {
5152
- if (plugin.drawParticle !== undefined) {
5153
- context.save();
5154
- plugin.drawParticle(context, particle, delta);
5155
- context.restore();
5156
- }
5157
- }
5158
- function drawEllipse(context, particle, fillColorValue, radius, opacity, width, rotation, start, end) {
5159
- const pos = particle.getPosition();
5160
- if (fillColorValue) {
5161
- context.strokeStyle = getStyleFromHsl(fillColorValue, opacity);
5162
- }
5163
- if (width === 0) {
5164
- return;
5165
- }
5166
- context.lineWidth = width;
5167
- const rotationRadian = rotation * Math.PI / 180;
5168
- context.beginPath();
5169
- context.ellipse(pos.x, pos.y, radius / 2, radius * 2, rotationRadian, start, end);
5170
- context.stroke();
5171
- }
5172
- function CanvasUtils_alterHsl(color, type, value) {
5173
- return {
5174
- h: color.h,
5175
- s: color.s,
5176
- l: color.l + (type === "darken" ? -1 : 1) * value
5177
- };
5178
- }
5179
841
  function updateRoll(particle, delta) {
5180
842
  const roll = particle.options.roll;
5181
843
  if (!particle.roll || !roll.enable) {
@@ -5197,7 +859,7 @@
5197
859
  speed: NumberUtils_getRangeValue(rollOpt.speed) / 360
5198
860
  };
5199
861
  if (rollOpt.backColor) {
5200
- particle.backColor = ColorUtils_colorToHsl(rollOpt.backColor);
862
+ particle.backColor = colorToHsl(rollOpt.backColor);
5201
863
  } else if (rollOpt.darken.enable && rollOpt.enlighten.enable) {
5202
864
  const alterType = Math.random() >= .5 ? "darken" : "enlighten";
5203
865
  particle.roll.alter = {