tsparticles 1.39.0 → 1.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (953) hide show
  1. package/Core/Canvas.d.ts +1 -1
  2. package/Core/Canvas.js +27 -27
  3. package/Core/Container.d.ts +5 -5
  4. package/Core/Container.js +3 -3
  5. package/Core/Interfaces/Gradients.d.ts +2 -2
  6. package/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  7. package/Core/Interfaces/IContainerPlugin.d.ts +4 -4
  8. package/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  9. package/Core/Interfaces/IInteractor.d.ts +1 -1
  10. package/Core/Interfaces/IParticle.d.ts +8 -8
  11. package/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
  12. package/Core/Interfaces/IParticleSpin.d.ts +1 -1
  13. package/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
  14. package/Core/Interfaces/IPlugin.d.ts +1 -1
  15. package/Core/Loader.d.ts +1 -1
  16. package/Core/Loader.js +7 -7
  17. package/Core/Particle.d.ts +3 -3
  18. package/Core/Particle.js +31 -31
  19. package/Core/Particles.d.ts +3 -3
  20. package/Core/Particles.js +15 -15
  21. package/Core/Utils/Circle.d.ts +1 -1
  22. package/Core/Utils/CircleWarp.d.ts +1 -1
  23. package/Core/Utils/CircleWarp.js +1 -1
  24. package/Core/Utils/EventListeners.js +1 -1
  25. package/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  26. package/Core/Utils/InteractionManager.d.ts +1 -1
  27. package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  28. package/Core/Utils/ParticlesMover.d.ts +1 -1
  29. package/Core/Utils/Plugins.d.ts +1 -1
  30. package/Core/Utils/QuadTree.d.ts +3 -3
  31. package/Core/Utils/QuadTree.js +1 -1
  32. package/Core/Utils/Rectangle.d.ts +1 -1
  33. package/Core/Utils/Vector3d.d.ts +1 -1
  34. package/Interactions/External/Attract/Attractor.d.ts +1 -1
  35. package/Interactions/External/Attract/Attractor.js +1 -1
  36. package/Interactions/External/Attract/index.d.ts +1 -1
  37. package/Interactions/External/Attract/index.js +2 -2
  38. package/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  39. package/Interactions/External/Bounce/Bouncer.js +1 -1
  40. package/Interactions/External/Bounce/index.d.ts +1 -1
  41. package/Interactions/External/Bounce/index.js +2 -2
  42. package/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  43. package/Interactions/External/Bubble/Bubbler.js +1 -1
  44. package/Interactions/External/Bubble/index.d.ts +1 -1
  45. package/Interactions/External/Bubble/index.js +2 -2
  46. package/Interactions/External/Connect/Connector.js +1 -1
  47. package/Interactions/External/Connect/index.d.ts +1 -1
  48. package/Interactions/External/Connect/index.js +2 -2
  49. package/Interactions/External/Grab/Grabber.d.ts +1 -1
  50. package/Interactions/External/Grab/Grabber.js +1 -1
  51. package/Interactions/External/Grab/index.d.ts +1 -1
  52. package/Interactions/External/Grab/index.js +2 -2
  53. package/Interactions/External/Repulse/Repulser.d.ts +1 -1
  54. package/Interactions/External/Repulse/Repulser.js +1 -1
  55. package/Interactions/External/Repulse/index.d.ts +1 -1
  56. package/Interactions/External/Repulse/index.js +2 -2
  57. package/Interactions/External/Trail/TrailMaker.js +1 -1
  58. package/Interactions/External/Trail/index.d.ts +1 -1
  59. package/Interactions/External/Trail/index.js +2 -2
  60. package/Interactions/Particles/Attract/Attractor.js +1 -1
  61. package/Interactions/Particles/Attract/index.d.ts +1 -1
  62. package/Interactions/Particles/Attract/index.js +2 -2
  63. package/Interactions/Particles/Collisions/index.d.ts +1 -1
  64. package/Interactions/Particles/Collisions/index.js +2 -2
  65. package/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  66. package/Interactions/Particles/Links/Linker.d.ts +1 -1
  67. package/Interactions/Particles/Links/Linker.js +1 -1
  68. package/Interactions/Particles/Links/index.d.ts +1 -1
  69. package/Interactions/Particles/Links/index.js +4 -4
  70. package/Interactions/Particles/Links/interaction.d.ts +1 -1
  71. package/Interactions/Particles/Links/interaction.js +2 -2
  72. package/Interactions/Particles/Links/plugin.d.ts +1 -1
  73. package/Interactions/Particles/Links/plugin.js +2 -2
  74. package/Options/Classes/AnimatableColor.d.ts +3 -3
  75. package/Options/Classes/AnimatableColor.js +1 -1
  76. package/Options/Classes/AnimatableGradient.d.ts +6 -6
  77. package/Options/Classes/AnimationOptions.d.ts +2 -2
  78. package/Options/Classes/Background/Background.d.ts +2 -2
  79. package/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
  80. package/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
  81. package/Options/Classes/ColorAnimation.d.ts +1 -1
  82. package/Options/Classes/HslAnimation.d.ts +2 -2
  83. package/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
  84. package/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
  85. package/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
  86. package/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
  87. package/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
  88. package/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
  89. package/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
  90. package/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
  91. package/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
  92. package/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
  93. package/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
  94. package/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
  95. package/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
  96. package/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
  97. package/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
  98. package/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
  99. package/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
  100. package/Options/Classes/Interactivity/Modes/Modes.js +4 -4
  101. package/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
  102. package/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
  103. package/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
  104. package/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
  105. package/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
  106. package/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
  107. package/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
  108. package/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
  109. package/Options/Classes/ManualParticle.d.ts +2 -2
  110. package/Options/Classes/Motion/Motion.d.ts +1 -1
  111. package/Options/Classes/Options.d.ts +7 -7
  112. package/Options/Classes/Options.js +7 -7
  113. package/Options/Classes/OptionsColor.d.ts +2 -2
  114. package/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
  115. package/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
  116. package/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
  117. package/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
  118. package/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
  119. package/Options/Classes/Particles/Life/Life.d.ts +1 -1
  120. package/Options/Classes/Particles/Links/Links.d.ts +2 -2
  121. package/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
  122. package/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
  123. package/Options/Classes/Particles/Move/Attract.d.ts +2 -2
  124. package/Options/Classes/Particles/Move/Move.d.ts +5 -5
  125. package/Options/Classes/Particles/Move/Move.js +3 -3
  126. package/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
  127. package/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
  128. package/Options/Classes/Particles/Move/Spin.d.ts +3 -3
  129. package/Options/Classes/Particles/Move/Trail.d.ts +2 -2
  130. package/Options/Classes/Particles/Number/Density.d.ts +1 -1
  131. package/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
  132. package/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
  133. package/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
  134. package/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
  135. package/Options/Classes/Particles/Orbit/Orbit.js +2 -2
  136. package/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
  137. package/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
  138. package/Options/Classes/Particles/ParticlesOptions.js +13 -13
  139. package/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
  140. package/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
  141. package/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
  142. package/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
  143. package/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
  144. package/Options/Classes/Particles/Shadow.d.ts +3 -3
  145. package/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
  146. package/Options/Classes/Particles/Size/Size.d.ts +2 -2
  147. package/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
  148. package/Options/Classes/Particles/Stroke.d.ts +2 -2
  149. package/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
  150. package/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
  151. package/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
  152. package/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
  153. package/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
  154. package/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
  155. package/Options/Classes/Random.d.ts +1 -1
  156. package/Options/Classes/Responsive.d.ts +2 -2
  157. package/Options/Classes/Theme/Theme.d.ts +2 -2
  158. package/Options/Classes/Theme/Theme.js +1 -1
  159. package/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
  160. package/Options/Classes/ValueWithRandom.d.ts +2 -2
  161. package/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
  162. package/Options/Interfaces/IAnimatableColor.d.ts +1 -1
  163. package/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
  164. package/Options/Interfaces/IColorAnimation.d.ts +1 -1
  165. package/Options/Interfaces/IManualParticle.d.ts +1 -1
  166. package/Options/Interfaces/IOptions.d.ts +6 -6
  167. package/Options/Interfaces/IOptionsGradient.d.ts +2 -2
  168. package/Options/Interfaces/IResponsive.d.ts +2 -2
  169. package/Options/Interfaces/IValueWithRandom.d.ts +1 -1
  170. package/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
  171. package/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
  172. package/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
  173. package/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
  174. package/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
  175. package/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
  176. package/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
  177. package/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
  178. package/Options/Interfaces/Particles/IParticles.d.ts +14 -14
  179. package/Options/Interfaces/Particles/IShadow.d.ts +1 -1
  180. package/Options/Interfaces/Particles/IStroke.d.ts +1 -1
  181. package/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
  182. package/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
  183. package/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
  184. package/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
  185. package/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
  186. package/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
  187. package/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
  188. package/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
  189. package/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
  190. package/Options/Interfaces/Theme/ITheme.d.ts +2 -2
  191. package/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
  192. package/Plugins/Absorbers/AbsorberInstance.js +18 -18
  193. package/Plugins/Absorbers/Absorbers.d.ts +3 -3
  194. package/Plugins/Absorbers/Absorbers.js +1 -1
  195. package/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
  196. package/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
  197. package/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
  198. package/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
  199. package/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
  200. package/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
  201. package/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
  202. package/Plugins/Absorbers/index.d.ts +1 -1
  203. package/Plugins/Absorbers/index.js +3 -3
  204. package/Plugins/Emitters/EmitterContainer.d.ts +2 -1
  205. package/Plugins/Emitters/EmitterInstance.d.ts +5 -3
  206. package/Plugins/Emitters/EmitterInstance.js +34 -35
  207. package/Plugins/Emitters/Emitters.d.ts +3 -3
  208. package/Plugins/Emitters/Emitters.js +11 -3
  209. package/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
  210. package/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
  211. package/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
  212. package/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
  213. package/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
  214. package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
  215. package/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
  216. package/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
  217. package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  218. package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  219. package/Plugins/Emitters/index.d.ts +1 -1
  220. package/Plugins/Emitters/index.js +9 -9
  221. package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
  222. package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  223. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
  224. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
  225. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
  226. package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
  227. package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
  228. package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
  229. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
  230. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
  231. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
  232. package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
  233. package/Plugins/PolygonMask/PolygonMaskInstance.js +12 -12
  234. package/Plugins/PolygonMask/Types.d.ts +1 -1
  235. package/Plugins/PolygonMask/index.d.ts +1 -1
  236. package/Plugins/PolygonMask/index.js +3 -3
  237. package/README.md +160 -16
  238. package/Shapes/Circle/index.d.ts +1 -1
  239. package/Shapes/Circle/index.js +2 -2
  240. package/Shapes/Image/index.d.ts +1 -1
  241. package/Shapes/Image/index.js +3 -3
  242. package/Shapes/Line/index.d.ts +1 -1
  243. package/Shapes/Line/index.js +2 -2
  244. package/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  245. package/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  246. package/Shapes/Polygon/index.d.ts +3 -3
  247. package/Shapes/Polygon/index.js +7 -7
  248. package/Shapes/Square/index.d.ts +1 -1
  249. package/Shapes/Square/index.js +3 -3
  250. package/Shapes/Star/index.d.ts +1 -1
  251. package/Shapes/Star/index.js +2 -2
  252. package/Shapes/Text/index.d.ts +1 -1
  253. package/Shapes/Text/index.js +2 -2
  254. package/Types/ShapeData.d.ts +1 -1
  255. package/Types/ShapeDrawerFunctions.d.ts +1 -1
  256. package/Updaters/Angle/index.d.ts +1 -1
  257. package/Updaters/Angle/index.js +2 -2
  258. package/Updaters/Color/index.d.ts +1 -1
  259. package/Updaters/Color/index.js +2 -2
  260. package/Updaters/Life/index.d.ts +1 -1
  261. package/Updaters/Life/index.js +2 -2
  262. package/Updaters/Opacity/index.d.ts +1 -1
  263. package/Updaters/Opacity/index.js +2 -2
  264. package/Updaters/OutModes/IBounceData.d.ts +1 -1
  265. package/Updaters/OutModes/OutOfCanvasUpdater.js +9 -9
  266. package/Updaters/OutModes/index.d.ts +1 -1
  267. package/Updaters/OutModes/index.js +2 -2
  268. package/Updaters/Roll/index.d.ts +1 -1
  269. package/Updaters/Roll/index.js +2 -2
  270. package/Updaters/Size/index.d.ts +1 -1
  271. package/Updaters/Size/index.js +2 -2
  272. package/Updaters/StrokeColor/index.d.ts +1 -1
  273. package/Updaters/StrokeColor/index.js +2 -2
  274. package/Updaters/Tilt/index.d.ts +1 -1
  275. package/Updaters/Tilt/index.js +2 -2
  276. package/Updaters/Wobble/index.d.ts +1 -1
  277. package/Updaters/Wobble/index.js +2 -2
  278. package/Utils/CanvasUtils.d.ts +2 -3
  279. package/Utils/CanvasUtils.js +1 -1
  280. package/Utils/ColorUtils.js +1 -1
  281. package/Utils/NumberUtils.d.ts +2 -2
  282. package/Utils/Utils.d.ts +3 -3
  283. package/browser/Core/Canvas.d.ts +1 -1
  284. package/browser/Core/Canvas.js +1 -1
  285. package/browser/Core/Container.d.ts +5 -5
  286. package/browser/Core/Container.js +3 -3
  287. package/browser/Core/Interfaces/Gradients.d.ts +2 -2
  288. package/browser/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  289. package/browser/Core/Interfaces/IContainerPlugin.d.ts +4 -4
  290. package/browser/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  291. package/browser/Core/Interfaces/IInteractor.d.ts +1 -1
  292. package/browser/Core/Interfaces/IParticle.d.ts +8 -8
  293. package/browser/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
  294. package/browser/Core/Interfaces/IParticleSpin.d.ts +1 -1
  295. package/browser/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
  296. package/browser/Core/Interfaces/IPlugin.d.ts +1 -1
  297. package/browser/Core/Loader.d.ts +1 -1
  298. package/browser/Core/Loader.js +1 -1
  299. package/browser/Core/Particle.d.ts +3 -3
  300. package/browser/Core/Particle.js +2 -2
  301. package/browser/Core/Particles.d.ts +3 -3
  302. package/browser/Core/Particles.js +2 -2
  303. package/browser/Core/Utils/Circle.d.ts +1 -1
  304. package/browser/Core/Utils/CircleWarp.d.ts +1 -1
  305. package/browser/Core/Utils/CircleWarp.js +1 -1
  306. package/browser/Core/Utils/EventListeners.js +1 -1
  307. package/browser/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  308. package/browser/Core/Utils/InteractionManager.d.ts +1 -1
  309. package/browser/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  310. package/browser/Core/Utils/ParticlesMover.d.ts +1 -1
  311. package/browser/Core/Utils/Plugins.d.ts +1 -1
  312. package/browser/Core/Utils/QuadTree.d.ts +3 -3
  313. package/browser/Core/Utils/QuadTree.js +1 -1
  314. package/browser/Core/Utils/Rectangle.d.ts +1 -1
  315. package/browser/Core/Utils/Vector3d.d.ts +1 -1
  316. package/browser/Interactions/External/Attract/Attractor.d.ts +1 -1
  317. package/browser/Interactions/External/Attract/Attractor.js +1 -1
  318. package/browser/Interactions/External/Attract/index.d.ts +1 -1
  319. package/browser/Interactions/External/Attract/index.js +2 -2
  320. package/browser/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  321. package/browser/Interactions/External/Bounce/Bouncer.js +1 -1
  322. package/browser/Interactions/External/Bounce/index.d.ts +1 -1
  323. package/browser/Interactions/External/Bounce/index.js +2 -2
  324. package/browser/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  325. package/browser/Interactions/External/Bubble/Bubbler.js +1 -1
  326. package/browser/Interactions/External/Bubble/index.d.ts +1 -1
  327. package/browser/Interactions/External/Bubble/index.js +2 -2
  328. package/browser/Interactions/External/Connect/Connector.js +1 -1
  329. package/browser/Interactions/External/Connect/index.d.ts +1 -1
  330. package/browser/Interactions/External/Connect/index.js +2 -2
  331. package/browser/Interactions/External/Grab/Grabber.d.ts +1 -1
  332. package/browser/Interactions/External/Grab/Grabber.js +1 -1
  333. package/browser/Interactions/External/Grab/index.d.ts +1 -1
  334. package/browser/Interactions/External/Grab/index.js +2 -2
  335. package/browser/Interactions/External/Repulse/Repulser.d.ts +1 -1
  336. package/browser/Interactions/External/Repulse/Repulser.js +1 -1
  337. package/browser/Interactions/External/Repulse/index.d.ts +1 -1
  338. package/browser/Interactions/External/Repulse/index.js +2 -2
  339. package/browser/Interactions/External/Trail/TrailMaker.js +1 -1
  340. package/browser/Interactions/External/Trail/index.d.ts +1 -1
  341. package/browser/Interactions/External/Trail/index.js +2 -2
  342. package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
  343. package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
  344. package/browser/Interactions/Particles/Attract/index.js +2 -2
  345. package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
  346. package/browser/Interactions/Particles/Collisions/index.js +2 -2
  347. package/browser/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  348. package/browser/Interactions/Particles/Links/Linker.d.ts +1 -1
  349. package/browser/Interactions/Particles/Links/Linker.js +1 -1
  350. package/browser/Interactions/Particles/Links/index.d.ts +1 -1
  351. package/browser/Interactions/Particles/Links/index.js +4 -4
  352. package/browser/Interactions/Particles/Links/interaction.d.ts +1 -1
  353. package/browser/Interactions/Particles/Links/interaction.js +2 -2
  354. package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
  355. package/browser/Interactions/Particles/Links/plugin.js +2 -2
  356. package/browser/Options/Classes/AnimatableColor.d.ts +3 -3
  357. package/browser/Options/Classes/AnimatableColor.js +1 -1
  358. package/browser/Options/Classes/AnimatableGradient.d.ts +6 -6
  359. package/browser/Options/Classes/AnimationOptions.d.ts +2 -2
  360. package/browser/Options/Classes/Background/Background.d.ts +2 -2
  361. package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
  362. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
  363. package/browser/Options/Classes/ColorAnimation.d.ts +1 -1
  364. package/browser/Options/Classes/HslAnimation.d.ts +2 -2
  365. package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
  366. package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
  367. package/browser/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
  368. package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
  369. package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
  370. package/browser/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
  371. package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
  372. package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
  373. package/browser/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
  374. package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
  375. package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
  376. package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
  377. package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
  378. package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
  379. package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
  380. package/browser/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
  381. package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
  382. package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -4
  383. package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
  384. package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
  385. package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
  386. package/browser/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
  387. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
  388. package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
  389. package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
  390. package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
  391. package/browser/Options/Classes/ManualParticle.d.ts +2 -2
  392. package/browser/Options/Classes/Motion/Motion.d.ts +1 -1
  393. package/browser/Options/Classes/Options.d.ts +7 -7
  394. package/browser/Options/Classes/Options.js +7 -7
  395. package/browser/Options/Classes/OptionsColor.d.ts +2 -2
  396. package/browser/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
  397. package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
  398. package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
  399. package/browser/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
  400. package/browser/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
  401. package/browser/Options/Classes/Particles/Life/Life.d.ts +1 -1
  402. package/browser/Options/Classes/Particles/Links/Links.d.ts +2 -2
  403. package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
  404. package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
  405. package/browser/Options/Classes/Particles/Move/Attract.d.ts +2 -2
  406. package/browser/Options/Classes/Particles/Move/Move.d.ts +5 -5
  407. package/browser/Options/Classes/Particles/Move/Move.js +3 -3
  408. package/browser/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
  409. package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
  410. package/browser/Options/Classes/Particles/Move/Spin.d.ts +3 -3
  411. package/browser/Options/Classes/Particles/Move/Trail.d.ts +2 -2
  412. package/browser/Options/Classes/Particles/Number/Density.d.ts +1 -1
  413. package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
  414. package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
  415. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
  416. package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
  417. package/browser/Options/Classes/Particles/Orbit/Orbit.js +2 -2
  418. package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
  419. package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
  420. package/browser/Options/Classes/Particles/ParticlesOptions.js +13 -13
  421. package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
  422. package/browser/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
  423. package/browser/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
  424. package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
  425. package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
  426. package/browser/Options/Classes/Particles/Shadow.d.ts +3 -3
  427. package/browser/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
  428. package/browser/Options/Classes/Particles/Size/Size.d.ts +2 -2
  429. package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
  430. package/browser/Options/Classes/Particles/Stroke.d.ts +2 -2
  431. package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
  432. package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
  433. package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
  434. package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
  435. package/browser/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
  436. package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
  437. package/browser/Options/Classes/Random.d.ts +1 -1
  438. package/browser/Options/Classes/Responsive.d.ts +2 -2
  439. package/browser/Options/Classes/Theme/Theme.d.ts +2 -2
  440. package/browser/Options/Classes/Theme/Theme.js +1 -1
  441. package/browser/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
  442. package/browser/Options/Classes/ValueWithRandom.d.ts +2 -2
  443. package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
  444. package/browser/Options/Interfaces/IAnimatableColor.d.ts +1 -1
  445. package/browser/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
  446. package/browser/Options/Interfaces/IColorAnimation.d.ts +1 -1
  447. package/browser/Options/Interfaces/IColorAnimation.js +0 -4
  448. package/browser/Options/Interfaces/IManualParticle.d.ts +1 -1
  449. package/browser/Options/Interfaces/IOptions.d.ts +6 -6
  450. package/browser/Options/Interfaces/IOptionsGradient.d.ts +2 -2
  451. package/browser/Options/Interfaces/IResponsive.d.ts +2 -2
  452. package/browser/Options/Interfaces/IValueWithRandom.d.ts +1 -1
  453. package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
  454. package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
  455. package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
  456. package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
  457. package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
  458. package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
  459. package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
  460. package/browser/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
  461. package/browser/Options/Interfaces/Particles/IParticles.d.ts +14 -14
  462. package/browser/Options/Interfaces/Particles/IShadow.d.ts +1 -1
  463. package/browser/Options/Interfaces/Particles/IStroke.d.ts +1 -1
  464. package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
  465. package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
  466. package/browser/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
  467. package/browser/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
  468. package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
  469. package/browser/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
  470. package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
  471. package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
  472. package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
  473. package/browser/Options/Interfaces/Theme/ITheme.d.ts +2 -2
  474. package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
  475. package/browser/Plugins/Absorbers/AbsorberInstance.js +18 -18
  476. package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -3
  477. package/browser/Plugins/Absorbers/Absorbers.js +1 -1
  478. package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
  479. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
  480. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
  481. package/browser/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
  482. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
  483. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
  484. package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
  485. package/browser/Plugins/Absorbers/index.d.ts +1 -1
  486. package/browser/Plugins/Absorbers/index.js +3 -3
  487. package/browser/Plugins/Emitters/EmitterContainer.d.ts +2 -1
  488. package/browser/Plugins/Emitters/EmitterInstance.d.ts +5 -3
  489. package/browser/Plugins/Emitters/EmitterInstance.js +34 -35
  490. package/browser/Plugins/Emitters/Emitters.d.ts +3 -3
  491. package/browser/Plugins/Emitters/Emitters.js +11 -3
  492. package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
  493. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
  494. package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
  495. package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
  496. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
  497. package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
  498. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
  499. package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
  500. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  501. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  502. package/browser/Plugins/Emitters/index.d.ts +1 -1
  503. package/browser/Plugins/Emitters/index.js +9 -9
  504. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
  505. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  506. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
  507. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
  508. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
  509. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
  510. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
  511. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
  512. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
  513. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
  514. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
  515. package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
  516. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
  517. package/browser/Plugins/PolygonMask/Types.d.ts +1 -1
  518. package/browser/Plugins/PolygonMask/index.d.ts +1 -1
  519. package/browser/Plugins/PolygonMask/index.js +3 -3
  520. package/browser/Shapes/Circle/index.d.ts +1 -1
  521. package/browser/Shapes/Circle/index.js +2 -2
  522. package/browser/Shapes/Image/index.d.ts +1 -1
  523. package/browser/Shapes/Image/index.js +3 -3
  524. package/browser/Shapes/Line/index.d.ts +1 -1
  525. package/browser/Shapes/Line/index.js +2 -2
  526. package/browser/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  527. package/browser/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  528. package/browser/Shapes/Polygon/index.d.ts +3 -3
  529. package/browser/Shapes/Polygon/index.js +7 -7
  530. package/browser/Shapes/Square/index.d.ts +1 -1
  531. package/browser/Shapes/Square/index.js +3 -3
  532. package/browser/Shapes/Star/index.d.ts +1 -1
  533. package/browser/Shapes/Star/index.js +2 -2
  534. package/browser/Shapes/Text/index.d.ts +1 -1
  535. package/browser/Shapes/Text/index.js +3 -3
  536. package/browser/Types/ShapeData.d.ts +1 -1
  537. package/browser/Types/ShapeDrawerFunctions.d.ts +1 -1
  538. package/browser/Updaters/Angle/index.d.ts +1 -1
  539. package/browser/Updaters/Angle/index.js +2 -2
  540. package/browser/Updaters/Color/index.d.ts +1 -1
  541. package/browser/Updaters/Color/index.js +2 -2
  542. package/browser/Updaters/Life/index.d.ts +1 -1
  543. package/browser/Updaters/Life/index.js +2 -2
  544. package/browser/Updaters/Opacity/index.d.ts +1 -1
  545. package/browser/Updaters/Opacity/index.js +2 -2
  546. package/browser/Updaters/OutModes/IBounceData.d.ts +1 -1
  547. package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
  548. package/browser/Updaters/OutModes/index.d.ts +1 -1
  549. package/browser/Updaters/OutModes/index.js +2 -2
  550. package/browser/Updaters/Roll/index.d.ts +1 -1
  551. package/browser/Updaters/Roll/index.js +2 -2
  552. package/browser/Updaters/Size/index.d.ts +1 -1
  553. package/browser/Updaters/Size/index.js +2 -2
  554. package/browser/Updaters/StrokeColor/index.d.ts +1 -1
  555. package/browser/Updaters/StrokeColor/index.js +2 -2
  556. package/browser/Updaters/Tilt/index.d.ts +1 -1
  557. package/browser/Updaters/Tilt/index.js +2 -2
  558. package/browser/Updaters/Wobble/index.d.ts +1 -1
  559. package/browser/Updaters/Wobble/index.js +2 -2
  560. package/browser/Utils/CanvasUtils.d.ts +2 -3
  561. package/browser/Utils/CanvasUtils.js +1 -1
  562. package/browser/Utils/ColorUtils.js +1 -1
  563. package/browser/Utils/NumberUtils.d.ts +2 -2
  564. package/browser/Utils/Utils.d.ts +3 -3
  565. package/browser/Utils/Utils.js +1 -1
  566. package/browser/engine.d.ts +2 -2
  567. package/browser/full.d.ts +1 -1
  568. package/browser/full.js +14 -14
  569. package/browser/index.d.ts +1 -1
  570. package/browser/index.engine.d.ts +1 -1
  571. package/browser/index.engine.js +1 -1
  572. package/browser/index.js +1 -1
  573. package/browser/index.slim.d.ts +1 -1
  574. package/browser/index.slim.js +1 -1
  575. package/browser/pjs.d.ts +1 -1
  576. package/browser/slim.d.ts +1 -1
  577. package/browser/slim.js +40 -40
  578. package/engine.d.ts +2 -2
  579. package/esm/Core/Canvas.d.ts +1 -1
  580. package/esm/Core/Canvas.js +1 -1
  581. package/esm/Core/Container.d.ts +5 -5
  582. package/esm/Core/Container.js +3 -3
  583. package/esm/Core/Interfaces/Gradients.d.ts +2 -2
  584. package/esm/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  585. package/esm/Core/Interfaces/IContainerPlugin.d.ts +4 -4
  586. package/esm/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  587. package/esm/Core/Interfaces/IInteractor.d.ts +1 -1
  588. package/esm/Core/Interfaces/IParticle.d.ts +8 -8
  589. package/esm/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
  590. package/esm/Core/Interfaces/IParticleSpin.d.ts +1 -1
  591. package/esm/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
  592. package/esm/Core/Interfaces/IPlugin.d.ts +1 -1
  593. package/esm/Core/Loader.d.ts +1 -1
  594. package/esm/Core/Loader.js +1 -1
  595. package/esm/Core/Particle.d.ts +3 -3
  596. package/esm/Core/Particle.js +2 -2
  597. package/esm/Core/Particles.d.ts +3 -3
  598. package/esm/Core/Particles.js +2 -2
  599. package/esm/Core/Utils/Circle.d.ts +1 -1
  600. package/esm/Core/Utils/CircleWarp.d.ts +1 -1
  601. package/esm/Core/Utils/CircleWarp.js +1 -1
  602. package/esm/Core/Utils/EventListeners.js +1 -1
  603. package/esm/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  604. package/esm/Core/Utils/InteractionManager.d.ts +1 -1
  605. package/esm/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  606. package/esm/Core/Utils/ParticlesMover.d.ts +1 -1
  607. package/esm/Core/Utils/Plugins.d.ts +1 -1
  608. package/esm/Core/Utils/QuadTree.d.ts +3 -3
  609. package/esm/Core/Utils/QuadTree.js +1 -1
  610. package/esm/Core/Utils/Rectangle.d.ts +1 -1
  611. package/esm/Core/Utils/Vector3d.d.ts +1 -1
  612. package/esm/Interactions/External/Attract/Attractor.d.ts +1 -1
  613. package/esm/Interactions/External/Attract/Attractor.js +1 -1
  614. package/esm/Interactions/External/Attract/index.d.ts +1 -1
  615. package/esm/Interactions/External/Attract/index.js +2 -2
  616. package/esm/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  617. package/esm/Interactions/External/Bounce/Bouncer.js +1 -1
  618. package/esm/Interactions/External/Bounce/index.d.ts +1 -1
  619. package/esm/Interactions/External/Bounce/index.js +2 -2
  620. package/esm/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  621. package/esm/Interactions/External/Bubble/Bubbler.js +1 -1
  622. package/esm/Interactions/External/Bubble/index.d.ts +1 -1
  623. package/esm/Interactions/External/Bubble/index.js +2 -2
  624. package/esm/Interactions/External/Connect/Connector.js +1 -1
  625. package/esm/Interactions/External/Connect/index.d.ts +1 -1
  626. package/esm/Interactions/External/Connect/index.js +2 -2
  627. package/esm/Interactions/External/Grab/Grabber.d.ts +1 -1
  628. package/esm/Interactions/External/Grab/Grabber.js +1 -1
  629. package/esm/Interactions/External/Grab/index.d.ts +1 -1
  630. package/esm/Interactions/External/Grab/index.js +2 -2
  631. package/esm/Interactions/External/Repulse/Repulser.d.ts +1 -1
  632. package/esm/Interactions/External/Repulse/Repulser.js +1 -1
  633. package/esm/Interactions/External/Repulse/index.d.ts +1 -1
  634. package/esm/Interactions/External/Repulse/index.js +2 -2
  635. package/esm/Interactions/External/Trail/TrailMaker.js +1 -1
  636. package/esm/Interactions/External/Trail/index.d.ts +1 -1
  637. package/esm/Interactions/External/Trail/index.js +2 -2
  638. package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
  639. package/esm/Interactions/Particles/Attract/index.d.ts +1 -1
  640. package/esm/Interactions/Particles/Attract/index.js +2 -2
  641. package/esm/Interactions/Particles/Collisions/index.d.ts +1 -1
  642. package/esm/Interactions/Particles/Collisions/index.js +2 -2
  643. package/esm/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  644. package/esm/Interactions/Particles/Links/Linker.d.ts +1 -1
  645. package/esm/Interactions/Particles/Links/Linker.js +1 -1
  646. package/esm/Interactions/Particles/Links/index.d.ts +1 -1
  647. package/esm/Interactions/Particles/Links/index.js +4 -4
  648. package/esm/Interactions/Particles/Links/interaction.d.ts +1 -1
  649. package/esm/Interactions/Particles/Links/interaction.js +2 -2
  650. package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
  651. package/esm/Interactions/Particles/Links/plugin.js +2 -2
  652. package/esm/Options/Classes/AnimatableColor.d.ts +3 -3
  653. package/esm/Options/Classes/AnimatableColor.js +1 -1
  654. package/esm/Options/Classes/AnimatableGradient.d.ts +6 -6
  655. package/esm/Options/Classes/AnimationOptions.d.ts +2 -2
  656. package/esm/Options/Classes/Background/Background.d.ts +2 -2
  657. package/esm/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
  658. package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
  659. package/esm/Options/Classes/ColorAnimation.d.ts +1 -1
  660. package/esm/Options/Classes/HslAnimation.d.ts +2 -2
  661. package/esm/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
  662. package/esm/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
  663. package/esm/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
  664. package/esm/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
  665. package/esm/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
  666. package/esm/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
  667. package/esm/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
  668. package/esm/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
  669. package/esm/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
  670. package/esm/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
  671. package/esm/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
  672. package/esm/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
  673. package/esm/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
  674. package/esm/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
  675. package/esm/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
  676. package/esm/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
  677. package/esm/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
  678. package/esm/Options/Classes/Interactivity/Modes/Modes.js +4 -4
  679. package/esm/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
  680. package/esm/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
  681. package/esm/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
  682. package/esm/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
  683. package/esm/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
  684. package/esm/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
  685. package/esm/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
  686. package/esm/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
  687. package/esm/Options/Classes/ManualParticle.d.ts +2 -2
  688. package/esm/Options/Classes/Motion/Motion.d.ts +1 -1
  689. package/esm/Options/Classes/Options.d.ts +7 -7
  690. package/esm/Options/Classes/Options.js +7 -7
  691. package/esm/Options/Classes/OptionsColor.d.ts +2 -2
  692. package/esm/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
  693. package/esm/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
  694. package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
  695. package/esm/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
  696. package/esm/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
  697. package/esm/Options/Classes/Particles/Life/Life.d.ts +1 -1
  698. package/esm/Options/Classes/Particles/Links/Links.d.ts +2 -2
  699. package/esm/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
  700. package/esm/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
  701. package/esm/Options/Classes/Particles/Move/Attract.d.ts +2 -2
  702. package/esm/Options/Classes/Particles/Move/Move.d.ts +5 -5
  703. package/esm/Options/Classes/Particles/Move/Move.js +3 -3
  704. package/esm/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
  705. package/esm/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
  706. package/esm/Options/Classes/Particles/Move/Spin.d.ts +3 -3
  707. package/esm/Options/Classes/Particles/Move/Trail.d.ts +2 -2
  708. package/esm/Options/Classes/Particles/Number/Density.d.ts +1 -1
  709. package/esm/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
  710. package/esm/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
  711. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
  712. package/esm/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
  713. package/esm/Options/Classes/Particles/Orbit/Orbit.js +2 -2
  714. package/esm/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
  715. package/esm/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
  716. package/esm/Options/Classes/Particles/ParticlesOptions.js +13 -13
  717. package/esm/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
  718. package/esm/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
  719. package/esm/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
  720. package/esm/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
  721. package/esm/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
  722. package/esm/Options/Classes/Particles/Shadow.d.ts +3 -3
  723. package/esm/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
  724. package/esm/Options/Classes/Particles/Size/Size.d.ts +2 -2
  725. package/esm/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
  726. package/esm/Options/Classes/Particles/Stroke.d.ts +2 -2
  727. package/esm/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
  728. package/esm/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
  729. package/esm/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
  730. package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
  731. package/esm/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
  732. package/esm/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
  733. package/esm/Options/Classes/Random.d.ts +1 -1
  734. package/esm/Options/Classes/Responsive.d.ts +2 -2
  735. package/esm/Options/Classes/Theme/Theme.d.ts +2 -2
  736. package/esm/Options/Classes/Theme/Theme.js +1 -1
  737. package/esm/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
  738. package/esm/Options/Classes/ValueWithRandom.d.ts +2 -2
  739. package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
  740. package/esm/Options/Interfaces/IAnimatableColor.d.ts +1 -1
  741. package/esm/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
  742. package/esm/Options/Interfaces/IColorAnimation.d.ts +1 -1
  743. package/esm/Options/Interfaces/IManualParticle.d.ts +1 -1
  744. package/esm/Options/Interfaces/IOptions.d.ts +6 -6
  745. package/esm/Options/Interfaces/IOptionsGradient.d.ts +2 -2
  746. package/esm/Options/Interfaces/IResponsive.d.ts +2 -2
  747. package/esm/Options/Interfaces/IValueWithRandom.d.ts +1 -1
  748. package/esm/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
  749. package/esm/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
  750. package/esm/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
  751. package/esm/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
  752. package/esm/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
  753. package/esm/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
  754. package/esm/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
  755. package/esm/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
  756. package/esm/Options/Interfaces/Particles/IParticles.d.ts +14 -14
  757. package/esm/Options/Interfaces/Particles/IShadow.d.ts +1 -1
  758. package/esm/Options/Interfaces/Particles/IStroke.d.ts +1 -1
  759. package/esm/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
  760. package/esm/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
  761. package/esm/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
  762. package/esm/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
  763. package/esm/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
  764. package/esm/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
  765. package/esm/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
  766. package/esm/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
  767. package/esm/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
  768. package/esm/Options/Interfaces/Theme/ITheme.d.ts +2 -2
  769. package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
  770. package/esm/Plugins/Absorbers/AbsorberInstance.js +18 -18
  771. package/esm/Plugins/Absorbers/Absorbers.d.ts +3 -3
  772. package/esm/Plugins/Absorbers/Absorbers.js +1 -1
  773. package/esm/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
  774. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
  775. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
  776. package/esm/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
  777. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
  778. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
  779. package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
  780. package/esm/Plugins/Absorbers/index.d.ts +1 -1
  781. package/esm/Plugins/Absorbers/index.js +3 -3
  782. package/esm/Plugins/Emitters/EmitterContainer.d.ts +2 -1
  783. package/esm/Plugins/Emitters/EmitterInstance.d.ts +5 -3
  784. package/esm/Plugins/Emitters/EmitterInstance.js +34 -35
  785. package/esm/Plugins/Emitters/Emitters.d.ts +3 -3
  786. package/esm/Plugins/Emitters/Emitters.js +11 -3
  787. package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
  788. package/esm/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
  789. package/esm/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
  790. package/esm/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
  791. package/esm/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
  792. package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
  793. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
  794. package/esm/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
  795. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  796. package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  797. package/esm/Plugins/Emitters/index.d.ts +1 -1
  798. package/esm/Plugins/Emitters/index.js +9 -9
  799. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
  800. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
  801. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
  802. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
  803. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
  804. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
  805. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
  806. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
  807. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
  808. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
  809. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
  810. package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
  811. package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
  812. package/esm/Plugins/PolygonMask/Types.d.ts +1 -1
  813. package/esm/Plugins/PolygonMask/index.d.ts +1 -1
  814. package/esm/Plugins/PolygonMask/index.js +3 -3
  815. package/esm/Shapes/Circle/index.d.ts +1 -1
  816. package/esm/Shapes/Circle/index.js +2 -2
  817. package/esm/Shapes/Image/index.d.ts +1 -1
  818. package/esm/Shapes/Image/index.js +3 -3
  819. package/esm/Shapes/Line/index.d.ts +1 -1
  820. package/esm/Shapes/Line/index.js +2 -2
  821. package/esm/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  822. package/esm/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  823. package/esm/Shapes/Polygon/index.d.ts +3 -3
  824. package/esm/Shapes/Polygon/index.js +7 -7
  825. package/esm/Shapes/Square/index.d.ts +1 -1
  826. package/esm/Shapes/Square/index.js +3 -3
  827. package/esm/Shapes/Star/index.d.ts +1 -1
  828. package/esm/Shapes/Star/index.js +2 -2
  829. package/esm/Shapes/Text/index.d.ts +1 -1
  830. package/esm/Shapes/Text/index.js +3 -3
  831. package/esm/Types/ShapeData.d.ts +1 -1
  832. package/esm/Types/ShapeDrawerFunctions.d.ts +1 -1
  833. package/esm/Updaters/Angle/index.d.ts +1 -1
  834. package/esm/Updaters/Angle/index.js +2 -2
  835. package/esm/Updaters/Color/index.d.ts +1 -1
  836. package/esm/Updaters/Color/index.js +2 -2
  837. package/esm/Updaters/Life/index.d.ts +1 -1
  838. package/esm/Updaters/Life/index.js +2 -2
  839. package/esm/Updaters/Opacity/index.d.ts +1 -1
  840. package/esm/Updaters/Opacity/index.js +2 -2
  841. package/esm/Updaters/OutModes/IBounceData.d.ts +1 -1
  842. package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
  843. package/esm/Updaters/OutModes/index.d.ts +1 -1
  844. package/esm/Updaters/OutModes/index.js +2 -2
  845. package/esm/Updaters/Roll/index.d.ts +1 -1
  846. package/esm/Updaters/Roll/index.js +2 -2
  847. package/esm/Updaters/Size/index.d.ts +1 -1
  848. package/esm/Updaters/Size/index.js +2 -2
  849. package/esm/Updaters/StrokeColor/index.d.ts +1 -1
  850. package/esm/Updaters/StrokeColor/index.js +2 -2
  851. package/esm/Updaters/Tilt/index.d.ts +1 -1
  852. package/esm/Updaters/Tilt/index.js +2 -2
  853. package/esm/Updaters/Wobble/index.d.ts +1 -1
  854. package/esm/Updaters/Wobble/index.js +2 -2
  855. package/esm/Utils/CanvasUtils.d.ts +2 -3
  856. package/esm/Utils/CanvasUtils.js +1 -1
  857. package/esm/Utils/ColorUtils.js +1 -1
  858. package/esm/Utils/NumberUtils.d.ts +2 -2
  859. package/esm/Utils/Utils.d.ts +3 -3
  860. package/esm/Utils/Utils.js +1 -1
  861. package/esm/engine.d.ts +2 -2
  862. package/esm/full.d.ts +1 -1
  863. package/esm/full.js +14 -14
  864. package/esm/index.d.ts +1 -1
  865. package/esm/index.engine.d.ts +1 -1
  866. package/esm/index.engine.js +1 -1
  867. package/esm/index.js +1 -1
  868. package/esm/index.slim.d.ts +1 -1
  869. package/esm/index.slim.js +1 -1
  870. package/esm/pjs.d.ts +1 -1
  871. package/esm/slim.d.ts +1 -1
  872. package/esm/slim.js +40 -40
  873. package/full.d.ts +1 -1
  874. package/full.js +14 -14
  875. package/index.d.ts +1 -1
  876. package/index.engine.d.ts +1 -1
  877. package/index.engine.js +1 -1
  878. package/index.js +1 -1
  879. package/index.slim.d.ts +1 -1
  880. package/index.slim.js +1 -1
  881. package/package.json +1 -1
  882. package/pjs.d.ts +1 -1
  883. package/report.html +2 -2
  884. package/report.slim.html +2 -2
  885. package/slim.d.ts +1 -1
  886. package/slim.js +40 -40
  887. package/tsparticles.engine.js +2359 -2359
  888. package/tsparticles.engine.min.js +2 -2
  889. package/tsparticles.interaction.external.attract.js +3943 -3943
  890. package/tsparticles.interaction.external.attract.min.js +2 -2
  891. package/tsparticles.interaction.external.bounce.js +4058 -4058
  892. package/tsparticles.interaction.external.bounce.min.js +2 -2
  893. package/tsparticles.interaction.external.bubble.js +3886 -3886
  894. package/tsparticles.interaction.external.bubble.min.js +2 -2
  895. package/tsparticles.interaction.external.connect.js +4040 -4040
  896. package/tsparticles.interaction.external.connect.min.js +2 -2
  897. package/tsparticles.interaction.external.grab.js +4040 -4040
  898. package/tsparticles.interaction.external.grab.min.js +2 -2
  899. package/tsparticles.interaction.external.repulse.js +4058 -4058
  900. package/tsparticles.interaction.external.repulse.min.js +2 -2
  901. package/tsparticles.interaction.external.trail.js +4040 -4040
  902. package/tsparticles.interaction.external.trail.min.js +2 -2
  903. package/tsparticles.interaction.particles.attract.js +4042 -4042
  904. package/tsparticles.interaction.particles.attract.min.js +2 -2
  905. package/tsparticles.interaction.particles.collisions.js +882 -882
  906. package/tsparticles.interaction.particles.collisions.min.js +1 -1
  907. package/tsparticles.interaction.particles.links.js +4002 -4002
  908. package/tsparticles.interaction.particles.links.min.js +2 -2
  909. package/tsparticles.js +6215 -6209
  910. package/tsparticles.min.js +2 -2
  911. package/tsparticles.pathseg.min.js +1 -1
  912. package/tsparticles.plugins.absorbers.js +1027 -1028
  913. package/tsparticles.plugins.absorbers.min.js +2 -2
  914. package/tsparticles.plugins.emitters.js +1636 -1629
  915. package/tsparticles.plugins.emitters.min.js +2 -2
  916. package/tsparticles.plugins.polygonMask.js +2620 -2620
  917. package/tsparticles.plugins.polygonMask.min.js +2 -2
  918. package/tsparticles.shape.circle.js +2 -2
  919. package/tsparticles.shape.circle.min.js +1 -1
  920. package/tsparticles.shape.image.js +883 -883
  921. package/tsparticles.shape.image.min.js +1 -1
  922. package/tsparticles.shape.line.js +2 -2
  923. package/tsparticles.shape.line.min.js +1 -1
  924. package/tsparticles.shape.polygon.js +7 -7
  925. package/tsparticles.shape.polygon.min.js +1 -1
  926. package/tsparticles.shape.square.js +3 -3
  927. package/tsparticles.shape.square.min.js +1 -1
  928. package/tsparticles.shape.star.js +2 -2
  929. package/tsparticles.shape.star.min.js +1 -1
  930. package/tsparticles.shape.text.js +882 -882
  931. package/tsparticles.shape.text.min.js +1 -1
  932. package/tsparticles.slim.js +3561 -3561
  933. package/tsparticles.slim.min.js +2 -2
  934. package/tsparticles.updater.angle.js +882 -882
  935. package/tsparticles.updater.angle.min.js +1 -1
  936. package/tsparticles.updater.color.js +882 -882
  937. package/tsparticles.updater.color.min.js +1 -1
  938. package/tsparticles.updater.life.js +882 -882
  939. package/tsparticles.updater.life.min.js +1 -1
  940. package/tsparticles.updater.opacity.js +882 -882
  941. package/tsparticles.updater.opacity.min.js +1 -1
  942. package/tsparticles.updater.outModes.js +882 -882
  943. package/tsparticles.updater.outModes.min.js +1 -1
  944. package/tsparticles.updater.roll.js +882 -882
  945. package/tsparticles.updater.roll.min.js +1 -1
  946. package/tsparticles.updater.size.js +882 -882
  947. package/tsparticles.updater.size.min.js +1 -1
  948. package/tsparticles.updater.strokeColor.js +882 -882
  949. package/tsparticles.updater.strokeColor.min.js +1 -1
  950. package/tsparticles.updater.tilt.js +882 -882
  951. package/tsparticles.updater.tilt.min.js +1 -1
  952. package/tsparticles.updater.wobble.js +882 -882
  953. package/tsparticles.updater.wobble.min.js +1 -1
@@ -1170,366 +1170,278 @@
1170
1170
  }));
1171
1171
  }
1172
1172
  }
1173
- class ValueWithRandom_ValueWithRandom {
1173
+ class Trail_Trail {
1174
1174
  constructor() {
1175
- this.random = new Random;
1176
- this.value = 0;
1175
+ this.delay = 1;
1176
+ this.pauseOnStop = false;
1177
+ this.quantity = 1;
1177
1178
  }
1178
1179
  load(data) {
1179
- if (!data) {
1180
+ if (data === undefined) {
1180
1181
  return;
1181
1182
  }
1182
- if (typeof data.random === "boolean") {
1183
- this.random.enable = data.random;
1184
- } else {
1185
- this.random.load(data.random);
1183
+ if (data.delay !== undefined) {
1184
+ this.delay = data.delay;
1186
1185
  }
1187
- if (data.value !== undefined) {
1188
- this.value = setRangeValue(data.value, this.random.enable ? this.random.minimumValue : undefined);
1186
+ if (data.quantity !== undefined) {
1187
+ this.quantity = data.quantity;
1188
+ }
1189
+ if (data.particles !== undefined) {
1190
+ this.particles = deepExtend({}, data.particles);
1191
+ }
1192
+ if (data.pauseOnStop !== undefined) {
1193
+ this.pauseOnStop = data.pauseOnStop;
1189
1194
  }
1190
1195
  }
1191
1196
  }
1192
- class PathDelay_PathDelay extends(null && ValueWithRandom){
1197
+ class Modes_Modes {
1193
1198
  constructor() {
1194
- super();
1199
+ this.attract = new Attract;
1200
+ this.bounce = new Bounce;
1201
+ this.bubble = new Bubble;
1202
+ this.connect = new Connect;
1203
+ this.grab = new Grab;
1204
+ this.light = new Light;
1205
+ this.push = new Push;
1206
+ this.remove = new Remove;
1207
+ this.repulse = new Repulse;
1208
+ this.slow = new Slow;
1209
+ this.trail = new Trail;
1210
+ }
1211
+ load(data) {
1212
+ if (data === undefined) {
1213
+ return;
1214
+ }
1215
+ this.attract.load(data.attract);
1216
+ this.bubble.load(data.bubble);
1217
+ this.connect.load(data.connect);
1218
+ this.grab.load(data.grab);
1219
+ this.light.load(data.light);
1220
+ this.push.load(data.push);
1221
+ this.remove.load(data.remove);
1222
+ this.repulse.load(data.repulse);
1223
+ this.slow.load(data.slow);
1224
+ this.trail.load(data.trail);
1195
1225
  }
1196
1226
  }
1197
- class Path_Path {
1227
+ class Interactivity_Interactivity {
1198
1228
  constructor() {
1199
- this.clamp = true;
1200
- this.delay = new PathDelay;
1201
- this.enable = false;
1202
- this.options = {};
1229
+ this.detectsOn = "window";
1230
+ this.events = new Events;
1231
+ this.modes = new Modes;
1232
+ }
1233
+ get detect_on() {
1234
+ return this.detectsOn;
1235
+ }
1236
+ set detect_on(value) {
1237
+ this.detectsOn = value;
1203
1238
  }
1204
1239
  load(data) {
1240
+ var _a, _b, _c;
1205
1241
  if (data === undefined) {
1206
1242
  return;
1207
1243
  }
1208
- if (data.clamp !== undefined) {
1209
- this.clamp = data.clamp;
1210
- }
1211
- this.delay.load(data.delay);
1212
- if (data.enable !== undefined) {
1213
- this.enable = data.enable;
1244
+ const detectsOn = (_a = data.detectsOn) !== null && _a !== void 0 ? _a : data.detect_on;
1245
+ if (detectsOn !== undefined) {
1246
+ this.detectsOn = detectsOn;
1214
1247
  }
1215
- this.generator = data.generator;
1216
- if (data.options) {
1217
- this.options = deepExtend(this.options, data.options);
1248
+ this.events.load(data.events);
1249
+ this.modes.load(data.modes);
1250
+ if (((_c = (_b = data.modes) === null || _b === void 0 ? void 0 : _b.slow) === null || _c === void 0 ? void 0 : _c.active) === true) {
1251
+ if (this.events.onHover.mode instanceof Array) {
1252
+ if (this.events.onHover.mode.indexOf("slow") < 0) {
1253
+ this.events.onHover.mode.push("slow");
1254
+ }
1255
+ } else if (this.events.onHover.mode !== "slow") {
1256
+ this.events.onHover.mode = [ this.events.onHover.mode, "slow" ];
1257
+ }
1218
1258
  }
1219
1259
  }
1220
1260
  }
1221
- class Spin_Spin {
1222
- constructor() {
1223
- this.acceleration = 0;
1224
- this.enable = false;
1225
- }
1261
+ class ManualParticle_ManualParticle {
1226
1262
  load(data) {
1263
+ var _a, _b;
1227
1264
  if (!data) {
1228
1265
  return;
1229
1266
  }
1230
- if (data.acceleration !== undefined) {
1231
- this.acceleration = setRangeValue(data.acceleration);
1267
+ if (data.position !== undefined) {
1268
+ this.position = {
1269
+ x: (_a = data.position.x) !== null && _a !== void 0 ? _a : 50,
1270
+ y: (_b = data.position.y) !== null && _b !== void 0 ? _b : 50
1271
+ };
1232
1272
  }
1233
- if (data.enable !== undefined) {
1234
- this.enable = data.enable;
1273
+ if (data.options !== undefined) {
1274
+ this.options = deepExtend({}, data.options);
1235
1275
  }
1236
- this.position = data.position ? deepExtend({}, data.position) : undefined;
1237
1276
  }
1238
1277
  }
1239
- class Move_Move {
1278
+ class ColorAnimation_ColorAnimation {
1240
1279
  constructor() {
1241
- this.angle = new MoveAngle;
1242
- this.attract = new Attract;
1243
- this.decay = 0;
1244
- this.distance = {};
1245
- this.direction = "none";
1246
- this.drift = 0;
1280
+ this.count = 0;
1247
1281
  this.enable = false;
1248
- this.gravity = new MoveGravity;
1249
- this.path = new Path;
1250
- this.outModes = new OutModes;
1251
- this.random = false;
1252
- this.size = false;
1253
- this.speed = 2;
1254
- this.spin = new Spin;
1255
- this.straight = false;
1256
- this.trail = new Trail;
1257
- this.vibrate = false;
1258
- this.warp = false;
1259
- }
1260
- get collisions() {
1261
- return false;
1262
- }
1263
- set collisions(value) {}
1264
- get bounce() {
1265
- return this.collisions;
1266
- }
1267
- set bounce(value) {
1268
- this.collisions = value;
1269
- }
1270
- get out_mode() {
1271
- return this.outMode;
1272
- }
1273
- set out_mode(value) {
1274
- this.outMode = value;
1275
- }
1276
- get outMode() {
1277
- return this.outModes.default;
1278
- }
1279
- set outMode(value) {
1280
- this.outModes.default = value;
1281
- }
1282
- get noise() {
1283
- return this.path;
1284
- }
1285
- set noise(value) {
1286
- this.path = value;
1282
+ this.offset = 0;
1283
+ this.speed = 1;
1284
+ this.sync = true;
1287
1285
  }
1288
1286
  load(data) {
1289
- var _a, _b, _c;
1290
1287
  if (data === undefined) {
1291
1288
  return;
1292
1289
  }
1293
- if (data.angle !== undefined) {
1294
- if (typeof data.angle === "number") {
1295
- this.angle.value = data.angle;
1296
- } else {
1297
- this.angle.load(data.angle);
1298
- }
1299
- }
1300
- this.attract.load(data.attract);
1301
- if (data.decay !== undefined) {
1302
- this.decay = data.decay;
1303
- }
1304
- if (data.direction !== undefined) {
1305
- this.direction = data.direction;
1306
- }
1307
- if (data.distance !== undefined) {
1308
- this.distance = typeof data.distance === "number" ? {
1309
- horizontal: data.distance,
1310
- vertical: data.distance
1311
- } : deepExtend({}, data.distance);
1312
- }
1313
- if (data.drift !== undefined) {
1314
- this.drift = setRangeValue(data.drift);
1290
+ if (data.count !== undefined) {
1291
+ this.count = data.count;
1315
1292
  }
1316
1293
  if (data.enable !== undefined) {
1317
1294
  this.enable = data.enable;
1318
1295
  }
1319
- this.gravity.load(data.gravity);
1320
- const outMode = (_a = data.outMode) !== null && _a !== void 0 ? _a : data.out_mode;
1321
- if (data.outModes !== undefined || outMode !== undefined) {
1322
- if (typeof data.outModes === "string" || data.outModes === undefined && outMode !== undefined) {
1323
- this.outModes.load({
1324
- default: (_b = data.outModes) !== null && _b !== void 0 ? _b : outMode
1325
- });
1326
- } else {
1327
- this.outModes.load(data.outModes);
1328
- }
1329
- }
1330
- this.path.load((_c = data.path) !== null && _c !== void 0 ? _c : data.noise);
1331
- if (data.random !== undefined) {
1332
- this.random = data.random;
1333
- }
1334
- if (data.size !== undefined) {
1335
- this.size = data.size;
1296
+ if (data.offset !== undefined) {
1297
+ this.offset = setRangeValue(data.offset);
1336
1298
  }
1337
1299
  if (data.speed !== undefined) {
1338
- this.speed = setRangeValue(data.speed);
1339
- }
1340
- this.spin.load(data.spin);
1341
- if (data.straight !== undefined) {
1342
- this.straight = data.straight;
1343
- }
1344
- this.trail.load(data.trail);
1345
- if (data.vibrate !== undefined) {
1346
- this.vibrate = data.vibrate;
1300
+ this.speed = data.speed;
1347
1301
  }
1348
- if (data.warp !== undefined) {
1349
- this.warp = data.warp;
1302
+ if (data.sync !== undefined) {
1303
+ this.sync = data.sync;
1350
1304
  }
1351
1305
  }
1352
1306
  }
1353
- class Opacity_Opacity extends(null && ValueWithRandom){
1307
+ class HslAnimation_HslAnimation {
1354
1308
  constructor() {
1355
- super();
1356
- this.animation = new OpacityAnimation;
1357
- this.random.minimumValue = .1;
1358
- this.value = 1;
1359
- }
1360
- get anim() {
1361
- return this.animation;
1362
- }
1363
- set anim(value) {
1364
- this.animation = value;
1309
+ this.h = new ColorAnimation;
1310
+ this.s = new ColorAnimation;
1311
+ this.l = new ColorAnimation;
1365
1312
  }
1366
1313
  load(data) {
1367
- var _a;
1368
1314
  if (!data) {
1369
1315
  return;
1370
1316
  }
1371
- super.load(data);
1372
- const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
1373
- if (animation !== undefined) {
1374
- this.animation.load(animation);
1375
- this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
1376
- }
1317
+ this.h.load(data.h);
1318
+ this.s.load(data.s);
1319
+ this.l.load(data.l);
1377
1320
  }
1378
1321
  }
1379
- class Shape_Shape {
1322
+ class AnimatableColor_AnimatableColor extends(null && OptionsColor){
1380
1323
  constructor() {
1381
- this.options = {};
1382
- this.type = "circle";
1383
- }
1384
- get image() {
1385
- var _a;
1386
- return (_a = this.options["image"]) !== null && _a !== void 0 ? _a : this.options["images"];
1324
+ super();
1325
+ this.animation = new HslAnimation;
1387
1326
  }
1388
- set image(value) {
1389
- this.options["image"] = value;
1390
- this.options["images"] = value;
1391
- }
1392
- get custom() {
1393
- return this.options;
1394
- }
1395
- set custom(value) {
1396
- this.options = value;
1397
- }
1398
- get images() {
1399
- return this.image;
1400
- }
1401
- set images(value) {
1402
- this.image = value;
1403
- }
1404
- get stroke() {
1405
- return [];
1406
- }
1407
- set stroke(_value) {}
1408
- get character() {
1409
- var _a;
1410
- return (_a = this.options["character"]) !== null && _a !== void 0 ? _a : this.options["char"];
1411
- }
1412
- set character(value) {
1413
- this.options["character"] = value;
1414
- this.options["char"] = value;
1327
+ static create(source, data) {
1328
+ const color = new AnimatableColor_AnimatableColor;
1329
+ color.load(source);
1330
+ if (data !== undefined) {
1331
+ if (typeof data === "string" || data instanceof Array) {
1332
+ color.load({
1333
+ value: data
1334
+ });
1335
+ } else {
1336
+ color.load(data);
1337
+ }
1338
+ }
1339
+ return color;
1415
1340
  }
1416
- get polygon() {
1417
- var _a;
1418
- return (_a = this.options["polygon"]) !== null && _a !== void 0 ? _a : this.options["star"];
1341
+ load(data) {
1342
+ super.load(data);
1343
+ if (!data) {
1344
+ return;
1345
+ }
1346
+ const colorAnimation = data.animation;
1347
+ if (colorAnimation !== undefined) {
1348
+ if (colorAnimation.enable !== undefined) {
1349
+ this.animation.h.load(colorAnimation);
1350
+ } else {
1351
+ this.animation.load(data.animation);
1352
+ }
1353
+ }
1419
1354
  }
1420
- set polygon(value) {
1421
- this.options["polygon"] = value;
1422
- this.options["star"] = value;
1355
+ }
1356
+ class AnimatableGradient_AnimatableGradient {
1357
+ constructor() {
1358
+ this.angle = new GradientAngle;
1359
+ this.colors = [];
1360
+ this.type = "random";
1423
1361
  }
1424
1362
  load(data) {
1425
- var _a, _b, _c;
1426
- if (data === undefined) {
1363
+ if (!data) {
1427
1364
  return;
1428
1365
  }
1429
- const options = (_a = data.options) !== null && _a !== void 0 ? _a : data.custom;
1430
- if (options !== undefined) {
1431
- for (const shape in options) {
1432
- const item = options[shape];
1433
- if (item !== undefined) {
1434
- this.options[shape] = deepExtend((_b = this.options[shape]) !== null && _b !== void 0 ? _b : {}, item);
1435
- }
1436
- }
1366
+ this.angle.load(data.angle);
1367
+ if (data.colors !== undefined) {
1368
+ this.colors = data.colors.map((s => {
1369
+ const tmp = new AnimatableGradientColor;
1370
+ tmp.load(s);
1371
+ return tmp;
1372
+ }));
1437
1373
  }
1438
- this.loadShape(data.character, "character", "char", true);
1439
- this.loadShape(data.polygon, "polygon", "star", false);
1440
- this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, "image", "images", true);
1441
1374
  if (data.type !== undefined) {
1442
1375
  this.type = data.type;
1443
1376
  }
1444
1377
  }
1445
- loadShape(item, mainKey, altKey, altOverride) {
1446
- var _a, _b, _c, _d;
1447
- if (item === undefined) {
1378
+ }
1379
+ class GradientAngle {
1380
+ constructor() {
1381
+ this.value = 0;
1382
+ this.animation = new GradientAngleAnimation;
1383
+ this.direction = "clockwise";
1384
+ }
1385
+ load(data) {
1386
+ if (!data) {
1448
1387
  return;
1449
1388
  }
1450
- if (item instanceof Array) {
1451
- if (!(this.options[mainKey] instanceof Array)) {
1452
- this.options[mainKey] = [];
1453
- if (!this.options[altKey] || altOverride) {
1454
- this.options[altKey] = [];
1455
- }
1456
- }
1457
- this.options[mainKey] = deepExtend((_a = this.options[mainKey]) !== null && _a !== void 0 ? _a : [], item);
1458
- if (!this.options[altKey] || altOverride) {
1459
- this.options[altKey] = deepExtend((_b = this.options[altKey]) !== null && _b !== void 0 ? _b : [], item);
1460
- }
1461
- } else {
1462
- if (this.options[mainKey] instanceof Array) {
1463
- this.options[mainKey] = {};
1464
- if (!this.options[altKey] || altOverride) {
1465
- this.options[altKey] = {};
1466
- }
1467
- }
1468
- this.options[mainKey] = deepExtend((_c = this.options[mainKey]) !== null && _c !== void 0 ? _c : {}, item);
1469
- if (!this.options[altKey] || altOverride) {
1470
- this.options[altKey] = deepExtend((_d = this.options[altKey]) !== null && _d !== void 0 ? _d : {}, item);
1471
- }
1389
+ this.animation.load(data.animation);
1390
+ if (data.value !== undefined) {
1391
+ this.value = data.value;
1392
+ }
1393
+ if (data.direction !== undefined) {
1394
+ this.direction = data.direction;
1472
1395
  }
1473
1396
  }
1474
1397
  }
1475
- class Size_Size extends(null && ValueWithRandom){
1398
+ class GradientColorOpacity {
1476
1399
  constructor() {
1477
- super();
1478
- this.animation = new SizeAnimation;
1479
- this.random.minimumValue = 1;
1480
- this.value = 3;
1481
- }
1482
- get anim() {
1483
- return this.animation;
1484
- }
1485
- set anim(value) {
1486
- this.animation = value;
1400
+ this.value = 0;
1401
+ this.animation = new GradientColorOpacityAnimation;
1487
1402
  }
1488
1403
  load(data) {
1489
- var _a;
1490
1404
  if (!data) {
1491
1405
  return;
1492
1406
  }
1493
- super.load(data);
1494
- const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
1495
- if (animation !== undefined) {
1496
- this.animation.load(animation);
1497
- this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
1407
+ this.animation.load(data.animation);
1408
+ if (data.value !== undefined) {
1409
+ this.value = setRangeValue(data.value);
1498
1410
  }
1499
1411
  }
1500
1412
  }
1501
- class Rotate_Rotate extends(null && ValueWithRandom){
1413
+ class AnimatableGradientColor {
1502
1414
  constructor() {
1503
- super();
1504
- this.animation = new RotateAnimation;
1505
- this.direction = "clockwise";
1506
- this.path = false;
1507
- this.value = 0;
1415
+ this.stop = 0;
1416
+ this.value = new AnimatableColor;
1508
1417
  }
1509
1418
  load(data) {
1510
1419
  if (!data) {
1511
1420
  return;
1512
1421
  }
1513
- super.load(data);
1514
- if (data.direction !== undefined) {
1515
- this.direction = data.direction;
1422
+ if (data.stop !== undefined) {
1423
+ this.stop = data.stop;
1516
1424
  }
1517
- this.animation.load(data.animation);
1518
- if (data.path !== undefined) {
1519
- this.path = data.path;
1425
+ this.value = AnimatableColor.create(this.value, data.value);
1426
+ if (data.opacity !== undefined) {
1427
+ this.opacity = new GradientColorOpacity;
1428
+ if (typeof data.opacity === "number") {
1429
+ this.opacity.value = data.opacity;
1430
+ } else {
1431
+ this.opacity.load(data.opacity);
1432
+ }
1520
1433
  }
1521
1434
  }
1522
1435
  }
1523
- class ColorAnimation_ColorAnimation {
1436
+ class GradientAngleAnimation {
1524
1437
  constructor() {
1525
1438
  this.count = 0;
1526
1439
  this.enable = false;
1527
- this.offset = 0;
1528
- this.speed = 1;
1529
- this.sync = true;
1440
+ this.speed = 0;
1441
+ this.sync = false;
1530
1442
  }
1531
1443
  load(data) {
1532
- if (data === undefined) {
1444
+ if (!data) {
1533
1445
  return;
1534
1446
  }
1535
1447
  if (data.count !== undefined) {
@@ -1538,9 +1450,6 @@
1538
1450
  if (data.enable !== undefined) {
1539
1451
  this.enable = data.enable;
1540
1452
  }
1541
- if (data.offset !== undefined) {
1542
- this.offset = setRangeValue(data.offset);
1543
- }
1544
1453
  if (data.speed !== undefined) {
1545
1454
  this.speed = data.speed;
1546
1455
  }
@@ -1549,79 +1458,59 @@
1549
1458
  }
1550
1459
  }
1551
1460
  }
1552
- class HslAnimation_HslAnimation {
1461
+ class GradientColorOpacityAnimation {
1553
1462
  constructor() {
1554
- this.h = new ColorAnimation;
1555
- this.s = new ColorAnimation;
1556
- this.l = new ColorAnimation;
1463
+ this.count = 0;
1464
+ this.enable = false;
1465
+ this.speed = 0;
1466
+ this.sync = false;
1467
+ this.startValue = "random";
1557
1468
  }
1558
1469
  load(data) {
1559
1470
  if (!data) {
1560
1471
  return;
1561
1472
  }
1562
- this.h.load(data.h);
1563
- this.s.load(data.s);
1564
- this.l.load(data.l);
1473
+ if (data.count !== undefined) {
1474
+ this.count = data.count;
1475
+ }
1476
+ if (data.enable !== undefined) {
1477
+ this.enable = data.enable;
1478
+ }
1479
+ if (data.speed !== undefined) {
1480
+ this.speed = data.speed;
1481
+ }
1482
+ if (data.sync !== undefined) {
1483
+ this.sync = data.sync;
1484
+ }
1485
+ if (data.startValue !== undefined) {
1486
+ this.startValue = data.startValue;
1487
+ }
1565
1488
  }
1566
1489
  }
1567
- class AnimatableColor_AnimatableColor extends(null && OptionsColor){
1490
+ class ValueWithRandom_ValueWithRandom {
1568
1491
  constructor() {
1569
- super();
1570
- this.animation = new HslAnimation;
1571
- }
1572
- static create(source, data) {
1573
- const color = new AnimatableColor_AnimatableColor;
1574
- color.load(source);
1575
- if (data !== undefined) {
1576
- if (typeof data === "string" || data instanceof Array) {
1577
- color.load({
1578
- value: data
1579
- });
1580
- } else {
1581
- color.load(data);
1582
- }
1583
- }
1584
- return color;
1492
+ this.random = new Random;
1493
+ this.value = 0;
1585
1494
  }
1586
1495
  load(data) {
1587
- super.load(data);
1588
1496
  if (!data) {
1589
1497
  return;
1590
1498
  }
1591
- const colorAnimation = data.animation;
1592
- if (colorAnimation !== undefined) {
1593
- if (colorAnimation.enable !== undefined) {
1594
- this.animation.h.load(colorAnimation);
1595
- } else {
1596
- this.animation.load(data.animation);
1597
- }
1499
+ if (typeof data.random === "boolean") {
1500
+ this.random.enable = data.random;
1501
+ } else {
1502
+ this.random.load(data.random);
1503
+ }
1504
+ if (data.value !== undefined) {
1505
+ this.value = setRangeValue(data.value, this.random.enable ? this.random.minimumValue : undefined);
1598
1506
  }
1599
1507
  }
1600
1508
  }
1601
- class Stroke_Stroke {
1509
+ class BounceFactor_BounceFactor extends(null && ValueWithRandom){
1602
1510
  constructor() {
1603
- this.width = 0;
1604
- }
1605
- load(data) {
1606
- if (data === undefined) {
1607
- return;
1608
- }
1609
- if (data.color !== undefined) {
1610
- this.color = AnimatableColor.create(this.color, data.color);
1611
- }
1612
- if (data.width !== undefined) {
1613
- this.width = data.width;
1614
- }
1615
- if (data.opacity !== undefined) {
1616
- this.opacity = data.opacity;
1617
- }
1618
- }
1619
- }
1620
- class BounceFactor_BounceFactor extends(null && ValueWithRandom){
1621
- constructor() {
1622
- super();
1623
- this.random.minimumValue = .1;
1624
- this.value = 1;
1511
+ super();
1512
+ this.random.minimumValue = .1;
1513
+ this.value = 1;
1625
1514
  }
1626
1515
  }
1627
1516
  class Bounce_Bounce {
@@ -1658,54 +1547,6 @@
1658
1547
  this.overlap.load(data.overlap);
1659
1548
  }
1660
1549
  }
1661
- class LifeDelay_LifeDelay extends(null && ValueWithRandom){
1662
- constructor() {
1663
- super();
1664
- this.sync = false;
1665
- }
1666
- load(data) {
1667
- if (!data) {
1668
- return;
1669
- }
1670
- super.load(data);
1671
- if (data.sync !== undefined) {
1672
- this.sync = data.sync;
1673
- }
1674
- }
1675
- }
1676
- class LifeDuration_LifeDuration extends(null && ValueWithRandom){
1677
- constructor() {
1678
- super();
1679
- this.random.minimumValue = 1e-4;
1680
- this.sync = false;
1681
- }
1682
- load(data) {
1683
- if (data === undefined) {
1684
- return;
1685
- }
1686
- super.load(data);
1687
- if (data.sync !== undefined) {
1688
- this.sync = data.sync;
1689
- }
1690
- }
1691
- }
1692
- class Life_Life {
1693
- constructor() {
1694
- this.count = 0;
1695
- this.delay = new LifeDelay;
1696
- this.duration = new LifeDuration;
1697
- }
1698
- load(data) {
1699
- if (data === undefined) {
1700
- return;
1701
- }
1702
- if (data.count !== undefined) {
1703
- this.count = data.count;
1704
- }
1705
- this.delay.load(data.delay);
1706
- this.duration.load(data.duration);
1707
- }
1708
- }
1709
1550
  class SplitFactor_SplitFactor extends(null && ValueWithRandom){
1710
1551
  constructor() {
1711
1552
  super();
@@ -1760,322 +1601,586 @@
1760
1601
  this.split.load(data.split);
1761
1602
  }
1762
1603
  }
1763
- class Wobble_Wobble {
1764
- constructor() {
1765
- this.distance = 5;
1766
- this.enable = false;
1767
- this.speed = 50;
1768
- }
1769
- load(data) {
1770
- if (!data) {
1771
- return;
1772
- }
1773
- if (data.distance !== undefined) {
1774
- this.distance = setRangeValue(data.distance);
1775
- }
1776
- if (data.enable !== undefined) {
1777
- this.enable = data.enable;
1778
- }
1779
- if (data.speed !== undefined) {
1780
- this.speed = setRangeValue(data.speed);
1781
- }
1782
- }
1783
- }
1784
- class Tilt_Tilt extends(null && ValueWithRandom){
1604
+ class LifeDelay_LifeDelay extends(null && ValueWithRandom){
1785
1605
  constructor() {
1786
1606
  super();
1787
- this.animation = new TiltAnimation;
1788
- this.direction = "clockwise";
1789
- this.enable = false;
1790
- this.value = 0;
1607
+ this.sync = false;
1791
1608
  }
1792
1609
  load(data) {
1793
1610
  if (!data) {
1794
1611
  return;
1795
1612
  }
1796
1613
  super.load(data);
1797
- this.animation.load(data.animation);
1798
- if (data.direction !== undefined) {
1799
- this.direction = data.direction;
1800
- }
1801
- if (data.enable !== undefined) {
1802
- this.enable = data.enable;
1614
+ if (data.sync !== undefined) {
1615
+ this.sync = data.sync;
1803
1616
  }
1804
1617
  }
1805
1618
  }
1806
- class Roll_Roll {
1619
+ class LifeDuration_LifeDuration extends(null && ValueWithRandom){
1807
1620
  constructor() {
1808
- this.darken = new RollLight;
1809
- this.enable = false;
1810
- this.enlighten = new RollLight;
1811
- this.mode = "vertical";
1812
- this.speed = 25;
1621
+ super();
1622
+ this.random.minimumValue = 1e-4;
1623
+ this.sync = false;
1813
1624
  }
1814
1625
  load(data) {
1815
- if (!data) {
1626
+ if (data === undefined) {
1816
1627
  return;
1817
1628
  }
1818
- if (data.backColor !== undefined) {
1819
- this.backColor = OptionsColor.create(this.backColor, data.backColor);
1820
- }
1821
- this.darken.load(data.darken);
1822
- if (data.enable !== undefined) {
1823
- this.enable = data.enable;
1824
- }
1825
- this.enlighten.load(data.enlighten);
1826
- if (data.mode !== undefined) {
1827
- this.mode = data.mode;
1828
- }
1829
- if (data.speed !== undefined) {
1830
- this.speed = setRangeValue(data.speed);
1629
+ super.load(data);
1630
+ if (data.sync !== undefined) {
1631
+ this.sync = data.sync;
1831
1632
  }
1832
1633
  }
1833
1634
  }
1834
- class ZIndex_ZIndex extends(null && ValueWithRandom){
1635
+ class Life_Life {
1835
1636
  constructor() {
1836
- super();
1837
- this.opacityRate = 1;
1838
- this.sizeRate = 1;
1839
- this.velocityRate = 1;
1637
+ this.count = 0;
1638
+ this.delay = new LifeDelay;
1639
+ this.duration = new LifeDuration;
1840
1640
  }
1841
1641
  load(data) {
1842
- super.load(data);
1843
- if (!data) {
1642
+ if (data === undefined) {
1844
1643
  return;
1845
1644
  }
1846
- if (data.opacityRate !== undefined) {
1847
- this.opacityRate = data.opacityRate;
1848
- }
1849
- if (data.sizeRate !== undefined) {
1850
- this.sizeRate = data.sizeRate;
1851
- }
1852
- if (data.velocityRate !== undefined) {
1853
- this.velocityRate = data.velocityRate;
1645
+ if (data.count !== undefined) {
1646
+ this.count = data.count;
1854
1647
  }
1648
+ this.delay.load(data.delay);
1649
+ this.duration.load(data.duration);
1855
1650
  }
1856
1651
  }
1857
- class OrbitRotation_OrbitRotation extends(null && ValueWithRandom){
1652
+ class PathDelay_PathDelay extends(null && ValueWithRandom){
1858
1653
  constructor() {
1859
1654
  super();
1860
- this.value = 45;
1861
- this.random.enable = false;
1862
- this.random.minimumValue = 0;
1863
- }
1864
- load(data) {
1865
- if (data === undefined) {
1866
- return;
1867
- }
1868
- super.load(data);
1869
1655
  }
1870
1656
  }
1871
- class Orbit_Orbit {
1657
+ class Path_Path {
1872
1658
  constructor() {
1873
- this.animation = new AnimationOptions;
1659
+ this.clamp = true;
1660
+ this.delay = new PathDelay;
1874
1661
  this.enable = false;
1875
- this.opacity = 1;
1876
- this.rotation = new OrbitRotation;
1877
- this.width = 1;
1662
+ this.options = {};
1878
1663
  }
1879
1664
  load(data) {
1880
1665
  if (data === undefined) {
1881
1666
  return;
1882
1667
  }
1883
- this.animation.load(data.animation);
1884
- this.rotation.load(data.rotation);
1668
+ if (data.clamp !== undefined) {
1669
+ this.clamp = data.clamp;
1670
+ }
1671
+ this.delay.load(data.delay);
1885
1672
  if (data.enable !== undefined) {
1886
1673
  this.enable = data.enable;
1887
1674
  }
1888
- if (data.opacity !== undefined) {
1889
- this.opacity = data.opacity;
1890
- }
1891
- if (data.width !== undefined) {
1892
- this.width = data.width;
1893
- }
1894
- if (data.radius !== undefined) {
1895
- this.radius = data.radius;
1896
- }
1897
- if (data.color !== undefined) {
1898
- this.color = OptionsColor.create(this.color, data.color);
1675
+ this.generator = data.generator;
1676
+ if (data.options) {
1677
+ this.options = deepExtend(this.options, data.options);
1899
1678
  }
1900
1679
  }
1901
1680
  }
1902
- class Repulse_Repulse extends(null && ValueWithRandom){
1681
+ class Spin_Spin {
1903
1682
  constructor() {
1904
- super();
1905
- this.enabled = false;
1906
- this.distance = 1;
1907
- this.duration = 1;
1908
- this.factor = 1;
1909
- this.speed = 1;
1683
+ this.acceleration = 0;
1684
+ this.enable = false;
1910
1685
  }
1911
1686
  load(data) {
1912
- super.load(data);
1913
1687
  if (!data) {
1914
1688
  return;
1915
1689
  }
1916
- if (data.enabled !== undefined) {
1917
- this.enabled = data.enabled;
1918
- }
1919
- if (data.distance !== undefined) {
1920
- this.distance = data.distance;
1921
- }
1922
- if (data.duration !== undefined) {
1923
- this.duration = data.duration;
1924
- }
1925
- if (data.factor !== undefined) {
1926
- this.factor = data.factor;
1690
+ if (data.acceleration !== undefined) {
1691
+ this.acceleration = setRangeValue(data.acceleration);
1927
1692
  }
1928
- if (data.speed !== undefined) {
1929
- this.speed = data.speed;
1693
+ if (data.enable !== undefined) {
1694
+ this.enable = data.enable;
1930
1695
  }
1696
+ this.position = data.position ? deepExtend({}, data.position) : undefined;
1931
1697
  }
1932
1698
  }
1933
- class AnimatableGradient_AnimatableGradient {
1699
+ class Move_Move {
1934
1700
  constructor() {
1935
- this.angle = new GradientAngle;
1936
- this.colors = [];
1937
- this.type = "random";
1701
+ this.angle = new MoveAngle;
1702
+ this.attract = new Attract;
1703
+ this.decay = 0;
1704
+ this.distance = {};
1705
+ this.direction = "none";
1706
+ this.drift = 0;
1707
+ this.enable = false;
1708
+ this.gravity = new MoveGravity;
1709
+ this.path = new Path;
1710
+ this.outModes = new OutModes;
1711
+ this.random = false;
1712
+ this.size = false;
1713
+ this.speed = 2;
1714
+ this.spin = new Spin;
1715
+ this.straight = false;
1716
+ this.trail = new Trail;
1717
+ this.vibrate = false;
1718
+ this.warp = false;
1938
1719
  }
1939
- load(data) {
1940
- if (!data) {
1941
- return;
1942
- }
1943
- this.angle.load(data.angle);
1944
- if (data.colors !== undefined) {
1945
- this.colors = data.colors.map((s => {
1946
- const tmp = new AnimatableGradientColor;
1947
- tmp.load(s);
1948
- return tmp;
1949
- }));
1950
- }
1951
- if (data.type !== undefined) {
1952
- this.type = data.type;
1953
- }
1720
+ get collisions() {
1721
+ return false;
1954
1722
  }
1955
- }
1956
- class GradientAngle {
1957
- constructor() {
1958
- this.value = 0;
1959
- this.animation = new GradientAngleAnimation;
1960
- this.direction = "clockwise";
1723
+ set collisions(value) {}
1724
+ get bounce() {
1725
+ return this.collisions;
1726
+ }
1727
+ set bounce(value) {
1728
+ this.collisions = value;
1729
+ }
1730
+ get out_mode() {
1731
+ return this.outMode;
1732
+ }
1733
+ set out_mode(value) {
1734
+ this.outMode = value;
1735
+ }
1736
+ get outMode() {
1737
+ return this.outModes.default;
1738
+ }
1739
+ set outMode(value) {
1740
+ this.outModes.default = value;
1741
+ }
1742
+ get noise() {
1743
+ return this.path;
1744
+ }
1745
+ set noise(value) {
1746
+ this.path = value;
1961
1747
  }
1962
1748
  load(data) {
1963
- if (!data) {
1749
+ var _a, _b, _c;
1750
+ if (data === undefined) {
1964
1751
  return;
1965
1752
  }
1966
- this.animation.load(data.animation);
1967
- if (data.value !== undefined) {
1968
- this.value = data.value;
1753
+ if (data.angle !== undefined) {
1754
+ if (typeof data.angle === "number") {
1755
+ this.angle.value = data.angle;
1756
+ } else {
1757
+ this.angle.load(data.angle);
1758
+ }
1759
+ }
1760
+ this.attract.load(data.attract);
1761
+ if (data.decay !== undefined) {
1762
+ this.decay = data.decay;
1969
1763
  }
1970
1764
  if (data.direction !== undefined) {
1971
1765
  this.direction = data.direction;
1972
1766
  }
1767
+ if (data.distance !== undefined) {
1768
+ this.distance = typeof data.distance === "number" ? {
1769
+ horizontal: data.distance,
1770
+ vertical: data.distance
1771
+ } : deepExtend({}, data.distance);
1772
+ }
1773
+ if (data.drift !== undefined) {
1774
+ this.drift = setRangeValue(data.drift);
1775
+ }
1776
+ if (data.enable !== undefined) {
1777
+ this.enable = data.enable;
1778
+ }
1779
+ this.gravity.load(data.gravity);
1780
+ const outMode = (_a = data.outMode) !== null && _a !== void 0 ? _a : data.out_mode;
1781
+ if (data.outModes !== undefined || outMode !== undefined) {
1782
+ if (typeof data.outModes === "string" || data.outModes === undefined && outMode !== undefined) {
1783
+ this.outModes.load({
1784
+ default: (_b = data.outModes) !== null && _b !== void 0 ? _b : outMode
1785
+ });
1786
+ } else {
1787
+ this.outModes.load(data.outModes);
1788
+ }
1789
+ }
1790
+ this.path.load((_c = data.path) !== null && _c !== void 0 ? _c : data.noise);
1791
+ if (data.random !== undefined) {
1792
+ this.random = data.random;
1793
+ }
1794
+ if (data.size !== undefined) {
1795
+ this.size = data.size;
1796
+ }
1797
+ if (data.speed !== undefined) {
1798
+ this.speed = setRangeValue(data.speed);
1799
+ }
1800
+ this.spin.load(data.spin);
1801
+ if (data.straight !== undefined) {
1802
+ this.straight = data.straight;
1803
+ }
1804
+ this.trail.load(data.trail);
1805
+ if (data.vibrate !== undefined) {
1806
+ this.vibrate = data.vibrate;
1807
+ }
1808
+ if (data.warp !== undefined) {
1809
+ this.warp = data.warp;
1810
+ }
1973
1811
  }
1974
1812
  }
1975
- class GradientColorOpacity {
1813
+ class Opacity_Opacity extends(null && ValueWithRandom){
1976
1814
  constructor() {
1977
- this.value = 0;
1978
- this.animation = new GradientColorOpacityAnimation;
1815
+ super();
1816
+ this.animation = new OpacityAnimation;
1817
+ this.random.minimumValue = .1;
1818
+ this.value = 1;
1819
+ }
1820
+ get anim() {
1821
+ return this.animation;
1822
+ }
1823
+ set anim(value) {
1824
+ this.animation = value;
1979
1825
  }
1980
1826
  load(data) {
1827
+ var _a;
1981
1828
  if (!data) {
1982
1829
  return;
1983
1830
  }
1984
- this.animation.load(data.animation);
1985
- if (data.value !== undefined) {
1986
- this.value = setRangeValue(data.value);
1831
+ super.load(data);
1832
+ const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
1833
+ if (animation !== undefined) {
1834
+ this.animation.load(animation);
1835
+ this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
1987
1836
  }
1988
1837
  }
1989
1838
  }
1990
- class AnimatableGradientColor {
1839
+ class OrbitRotation_OrbitRotation extends(null && ValueWithRandom){
1991
1840
  constructor() {
1992
- this.stop = 0;
1993
- this.value = new AnimatableColor;
1841
+ super();
1842
+ this.value = 45;
1843
+ this.random.enable = false;
1844
+ this.random.minimumValue = 0;
1994
1845
  }
1995
1846
  load(data) {
1996
- if (!data) {
1847
+ if (data === undefined) {
1997
1848
  return;
1998
1849
  }
1999
- if (data.stop !== undefined) {
2000
- this.stop = data.stop;
1850
+ super.load(data);
1851
+ }
1852
+ }
1853
+ class Orbit_Orbit {
1854
+ constructor() {
1855
+ this.animation = new AnimationOptions;
1856
+ this.enable = false;
1857
+ this.opacity = 1;
1858
+ this.rotation = new OrbitRotation;
1859
+ this.width = 1;
1860
+ }
1861
+ load(data) {
1862
+ if (data === undefined) {
1863
+ return;
1864
+ }
1865
+ this.animation.load(data.animation);
1866
+ this.rotation.load(data.rotation);
1867
+ if (data.enable !== undefined) {
1868
+ this.enable = data.enable;
2001
1869
  }
2002
- this.value = AnimatableColor.create(this.value, data.value);
2003
1870
  if (data.opacity !== undefined) {
2004
- this.opacity = new GradientColorOpacity;
2005
- if (typeof data.opacity === "number") {
2006
- this.opacity.value = data.opacity;
2007
- } else {
2008
- this.opacity.load(data.opacity);
2009
- }
1871
+ this.opacity = data.opacity;
1872
+ }
1873
+ if (data.width !== undefined) {
1874
+ this.width = data.width;
1875
+ }
1876
+ if (data.radius !== undefined) {
1877
+ this.radius = data.radius;
1878
+ }
1879
+ if (data.color !== undefined) {
1880
+ this.color = OptionsColor.create(this.color, data.color);
2010
1881
  }
2011
1882
  }
2012
1883
  }
2013
- class GradientAngleAnimation {
1884
+ class Repulse_Repulse extends(null && ValueWithRandom){
2014
1885
  constructor() {
2015
- this.count = 0;
2016
- this.enable = false;
2017
- this.speed = 0;
2018
- this.sync = false;
1886
+ super();
1887
+ this.enabled = false;
1888
+ this.distance = 1;
1889
+ this.duration = 1;
1890
+ this.factor = 1;
1891
+ this.speed = 1;
2019
1892
  }
2020
1893
  load(data) {
1894
+ super.load(data);
2021
1895
  if (!data) {
2022
1896
  return;
2023
1897
  }
2024
- if (data.count !== undefined) {
2025
- this.count = data.count;
1898
+ if (data.enabled !== undefined) {
1899
+ this.enabled = data.enabled;
2026
1900
  }
2027
- if (data.enable !== undefined) {
2028
- this.enable = data.enable;
1901
+ if (data.distance !== undefined) {
1902
+ this.distance = data.distance;
1903
+ }
1904
+ if (data.duration !== undefined) {
1905
+ this.duration = data.duration;
1906
+ }
1907
+ if (data.factor !== undefined) {
1908
+ this.factor = data.factor;
2029
1909
  }
2030
1910
  if (data.speed !== undefined) {
2031
1911
  this.speed = data.speed;
2032
1912
  }
2033
- if (data.sync !== undefined) {
2034
- this.sync = data.sync;
2035
- }
2036
1913
  }
2037
1914
  }
2038
- class GradientColorOpacityAnimation {
1915
+ class Roll_Roll {
2039
1916
  constructor() {
2040
- this.count = 0;
1917
+ this.darken = new RollLight;
2041
1918
  this.enable = false;
2042
- this.speed = 0;
2043
- this.sync = false;
2044
- this.startValue = "random";
1919
+ this.enlighten = new RollLight;
1920
+ this.mode = "vertical";
1921
+ this.speed = 25;
2045
1922
  }
2046
1923
  load(data) {
2047
1924
  if (!data) {
2048
1925
  return;
2049
1926
  }
2050
- if (data.count !== undefined) {
2051
- this.count = data.count;
1927
+ if (data.backColor !== undefined) {
1928
+ this.backColor = OptionsColor.create(this.backColor, data.backColor);
2052
1929
  }
1930
+ this.darken.load(data.darken);
2053
1931
  if (data.enable !== undefined) {
2054
1932
  this.enable = data.enable;
2055
1933
  }
1934
+ this.enlighten.load(data.enlighten);
1935
+ if (data.mode !== undefined) {
1936
+ this.mode = data.mode;
1937
+ }
2056
1938
  if (data.speed !== undefined) {
2057
- this.speed = data.speed;
1939
+ this.speed = setRangeValue(data.speed);
2058
1940
  }
2059
- if (data.sync !== undefined) {
2060
- this.sync = data.sync;
1941
+ }
1942
+ }
1943
+ class Rotate_Rotate extends(null && ValueWithRandom){
1944
+ constructor() {
1945
+ super();
1946
+ this.animation = new RotateAnimation;
1947
+ this.direction = "clockwise";
1948
+ this.path = false;
1949
+ this.value = 0;
1950
+ }
1951
+ load(data) {
1952
+ if (!data) {
1953
+ return;
2061
1954
  }
2062
- if (data.startValue !== undefined) {
2063
- this.startValue = data.startValue;
1955
+ super.load(data);
1956
+ if (data.direction !== undefined) {
1957
+ this.direction = data.direction;
1958
+ }
1959
+ this.animation.load(data.animation);
1960
+ if (data.path !== undefined) {
1961
+ this.path = data.path;
2064
1962
  }
2065
1963
  }
2066
1964
  }
2067
- class ParticlesOptions_ParticlesOptions {
1965
+ class Shape_Shape {
2068
1966
  constructor() {
2069
- this.bounce = new Bounce;
2070
- this.collisions = new Collisions;
2071
- this.color = new AnimatableColor;
2072
- this.destroy = new Destroy;
2073
- this.gradient = [];
2074
- this.groups = {};
2075
- this.life = new Life;
2076
- this.links = new Links;
2077
- this.move = new Move;
2078
- this.number = new ParticlesNumber;
1967
+ this.options = {};
1968
+ this.type = "circle";
1969
+ }
1970
+ get image() {
1971
+ var _a;
1972
+ return (_a = this.options["image"]) !== null && _a !== void 0 ? _a : this.options["images"];
1973
+ }
1974
+ set image(value) {
1975
+ this.options["image"] = value;
1976
+ this.options["images"] = value;
1977
+ }
1978
+ get custom() {
1979
+ return this.options;
1980
+ }
1981
+ set custom(value) {
1982
+ this.options = value;
1983
+ }
1984
+ get images() {
1985
+ return this.image;
1986
+ }
1987
+ set images(value) {
1988
+ this.image = value;
1989
+ }
1990
+ get stroke() {
1991
+ return [];
1992
+ }
1993
+ set stroke(_value) {}
1994
+ get character() {
1995
+ var _a;
1996
+ return (_a = this.options["character"]) !== null && _a !== void 0 ? _a : this.options["char"];
1997
+ }
1998
+ set character(value) {
1999
+ this.options["character"] = value;
2000
+ this.options["char"] = value;
2001
+ }
2002
+ get polygon() {
2003
+ var _a;
2004
+ return (_a = this.options["polygon"]) !== null && _a !== void 0 ? _a : this.options["star"];
2005
+ }
2006
+ set polygon(value) {
2007
+ this.options["polygon"] = value;
2008
+ this.options["star"] = value;
2009
+ }
2010
+ load(data) {
2011
+ var _a, _b, _c;
2012
+ if (data === undefined) {
2013
+ return;
2014
+ }
2015
+ const options = (_a = data.options) !== null && _a !== void 0 ? _a : data.custom;
2016
+ if (options !== undefined) {
2017
+ for (const shape in options) {
2018
+ const item = options[shape];
2019
+ if (item !== undefined) {
2020
+ this.options[shape] = deepExtend((_b = this.options[shape]) !== null && _b !== void 0 ? _b : {}, item);
2021
+ }
2022
+ }
2023
+ }
2024
+ this.loadShape(data.character, "character", "char", true);
2025
+ this.loadShape(data.polygon, "polygon", "star", false);
2026
+ this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, "image", "images", true);
2027
+ if (data.type !== undefined) {
2028
+ this.type = data.type;
2029
+ }
2030
+ }
2031
+ loadShape(item, mainKey, altKey, altOverride) {
2032
+ var _a, _b, _c, _d;
2033
+ if (item === undefined) {
2034
+ return;
2035
+ }
2036
+ if (item instanceof Array) {
2037
+ if (!(this.options[mainKey] instanceof Array)) {
2038
+ this.options[mainKey] = [];
2039
+ if (!this.options[altKey] || altOverride) {
2040
+ this.options[altKey] = [];
2041
+ }
2042
+ }
2043
+ this.options[mainKey] = deepExtend((_a = this.options[mainKey]) !== null && _a !== void 0 ? _a : [], item);
2044
+ if (!this.options[altKey] || altOverride) {
2045
+ this.options[altKey] = deepExtend((_b = this.options[altKey]) !== null && _b !== void 0 ? _b : [], item);
2046
+ }
2047
+ } else {
2048
+ if (this.options[mainKey] instanceof Array) {
2049
+ this.options[mainKey] = {};
2050
+ if (!this.options[altKey] || altOverride) {
2051
+ this.options[altKey] = {};
2052
+ }
2053
+ }
2054
+ this.options[mainKey] = deepExtend((_c = this.options[mainKey]) !== null && _c !== void 0 ? _c : {}, item);
2055
+ if (!this.options[altKey] || altOverride) {
2056
+ this.options[altKey] = deepExtend((_d = this.options[altKey]) !== null && _d !== void 0 ? _d : {}, item);
2057
+ }
2058
+ }
2059
+ }
2060
+ }
2061
+ class Size_Size extends(null && ValueWithRandom){
2062
+ constructor() {
2063
+ super();
2064
+ this.animation = new SizeAnimation;
2065
+ this.random.minimumValue = 1;
2066
+ this.value = 3;
2067
+ }
2068
+ get anim() {
2069
+ return this.animation;
2070
+ }
2071
+ set anim(value) {
2072
+ this.animation = value;
2073
+ }
2074
+ load(data) {
2075
+ var _a;
2076
+ if (!data) {
2077
+ return;
2078
+ }
2079
+ super.load(data);
2080
+ const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
2081
+ if (animation !== undefined) {
2082
+ this.animation.load(animation);
2083
+ this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
2084
+ }
2085
+ }
2086
+ }
2087
+ class Stroke_Stroke {
2088
+ constructor() {
2089
+ this.width = 0;
2090
+ }
2091
+ load(data) {
2092
+ if (data === undefined) {
2093
+ return;
2094
+ }
2095
+ if (data.color !== undefined) {
2096
+ this.color = AnimatableColor.create(this.color, data.color);
2097
+ }
2098
+ if (data.width !== undefined) {
2099
+ this.width = data.width;
2100
+ }
2101
+ if (data.opacity !== undefined) {
2102
+ this.opacity = data.opacity;
2103
+ }
2104
+ }
2105
+ }
2106
+ class Tilt_Tilt extends(null && ValueWithRandom){
2107
+ constructor() {
2108
+ super();
2109
+ this.animation = new TiltAnimation;
2110
+ this.direction = "clockwise";
2111
+ this.enable = false;
2112
+ this.value = 0;
2113
+ }
2114
+ load(data) {
2115
+ if (!data) {
2116
+ return;
2117
+ }
2118
+ super.load(data);
2119
+ this.animation.load(data.animation);
2120
+ if (data.direction !== undefined) {
2121
+ this.direction = data.direction;
2122
+ }
2123
+ if (data.enable !== undefined) {
2124
+ this.enable = data.enable;
2125
+ }
2126
+ }
2127
+ }
2128
+ class Wobble_Wobble {
2129
+ constructor() {
2130
+ this.distance = 5;
2131
+ this.enable = false;
2132
+ this.speed = 50;
2133
+ }
2134
+ load(data) {
2135
+ if (!data) {
2136
+ return;
2137
+ }
2138
+ if (data.distance !== undefined) {
2139
+ this.distance = setRangeValue(data.distance);
2140
+ }
2141
+ if (data.enable !== undefined) {
2142
+ this.enable = data.enable;
2143
+ }
2144
+ if (data.speed !== undefined) {
2145
+ this.speed = setRangeValue(data.speed);
2146
+ }
2147
+ }
2148
+ }
2149
+ class ZIndex_ZIndex extends(null && ValueWithRandom){
2150
+ constructor() {
2151
+ super();
2152
+ this.opacityRate = 1;
2153
+ this.sizeRate = 1;
2154
+ this.velocityRate = 1;
2155
+ }
2156
+ load(data) {
2157
+ super.load(data);
2158
+ if (!data) {
2159
+ return;
2160
+ }
2161
+ if (data.opacityRate !== undefined) {
2162
+ this.opacityRate = data.opacityRate;
2163
+ }
2164
+ if (data.sizeRate !== undefined) {
2165
+ this.sizeRate = data.sizeRate;
2166
+ }
2167
+ if (data.velocityRate !== undefined) {
2168
+ this.velocityRate = data.velocityRate;
2169
+ }
2170
+ }
2171
+ }
2172
+ class ParticlesOptions_ParticlesOptions {
2173
+ constructor() {
2174
+ this.bounce = new Bounce;
2175
+ this.collisions = new Collisions;
2176
+ this.color = new AnimatableColor;
2177
+ this.destroy = new Destroy;
2178
+ this.gradient = [];
2179
+ this.groups = {};
2180
+ this.life = new Life;
2181
+ this.links = new Links;
2182
+ this.move = new Move;
2183
+ this.number = new ParticlesNumber;
2079
2184
  this.opacity = new Opacity;
2080
2185
  this.orbit = new Orbit;
2081
2186
  this.reduceDuplicates = false;
@@ -2178,25 +2283,215 @@
2178
2283
  }
2179
2284
  }
2180
2285
  }
2181
- const fixOutMode = data => {
2182
- if (isInArray(data.outMode, data.checkModes) || isInArray(data.outMode, data.checkModes)) {
2183
- if (data.coord > data.maxCoord - data.radius * 2) {
2184
- data.setCb(-data.radius);
2185
- } else if (data.coord < data.radius * 2) {
2186
- data.setCb(data.radius);
2286
+ class Responsive_Responsive {
2287
+ constructor() {
2288
+ this.maxWidth = Infinity;
2289
+ this.options = {};
2290
+ this.mode = "canvas";
2291
+ }
2292
+ load(data) {
2293
+ if (!data) {
2294
+ return;
2295
+ }
2296
+ if (data.maxWidth !== undefined) {
2297
+ this.maxWidth = data.maxWidth;
2298
+ }
2299
+ if (data.mode !== undefined) {
2300
+ if (data.mode === "screen") {
2301
+ this.mode = "screen";
2302
+ } else {
2303
+ this.mode = "canvas";
2304
+ }
2305
+ }
2306
+ if (data.options !== undefined) {
2307
+ this.options = deepExtend({}, data.options);
2187
2308
  }
2188
2309
  }
2189
- };
2190
- class Particle_Particle {
2191
- constructor(id, container, position, overrideOptions, group) {
2192
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2193
- this.id = id;
2194
- this.container = container;
2195
- this.group = group;
2196
- this.fill = true;
2197
- this.close = true;
2198
- this.lastPathTime = 0;
2199
- this.destroyed = false;
2310
+ }
2311
+ class Theme_Theme {
2312
+ constructor() {
2313
+ this.name = "";
2314
+ this.default = new ThemeDefault;
2315
+ }
2316
+ load(data) {
2317
+ if (data === undefined) {
2318
+ return;
2319
+ }
2320
+ if (data.name !== undefined) {
2321
+ this.name = data.name;
2322
+ }
2323
+ this.default.load(data.default);
2324
+ if (data.options !== undefined) {
2325
+ this.options = deepExtend({}, data.options);
2326
+ }
2327
+ }
2328
+ }
2329
+ var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
2330
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2331
+ 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");
2332
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2333
+ };
2334
+ var _Options_instances, _Options_findDefaultTheme;
2335
+ class Options_Options {
2336
+ constructor() {
2337
+ _Options_instances.add(this);
2338
+ this.autoPlay = true;
2339
+ this.background = new Background;
2340
+ this.backgroundMask = new BackgroundMask;
2341
+ this.fullScreen = new FullScreen;
2342
+ this.detectRetina = true;
2343
+ this.duration = 0;
2344
+ this.fpsLimit = 60;
2345
+ this.interactivity = new Interactivity;
2346
+ this.manualParticles = [];
2347
+ this.motion = new Motion;
2348
+ this.particles = new ParticlesOptions;
2349
+ this.pauseOnBlur = true;
2350
+ this.pauseOnOutsideViewport = true;
2351
+ this.responsive = [];
2352
+ this.style = {};
2353
+ this.themes = [];
2354
+ this.zLayers = 100;
2355
+ }
2356
+ get fps_limit() {
2357
+ return this.fpsLimit;
2358
+ }
2359
+ set fps_limit(value) {
2360
+ this.fpsLimit = value;
2361
+ }
2362
+ get retina_detect() {
2363
+ return this.detectRetina;
2364
+ }
2365
+ set retina_detect(value) {
2366
+ this.detectRetina = value;
2367
+ }
2368
+ get backgroundMode() {
2369
+ return this.fullScreen;
2370
+ }
2371
+ set backgroundMode(value) {
2372
+ this.fullScreen.load(value);
2373
+ }
2374
+ load(data) {
2375
+ var _a, _b, _c, _d, _e;
2376
+ if (data === undefined) {
2377
+ return;
2378
+ }
2379
+ if (data.preset !== undefined) {
2380
+ if (data.preset instanceof Array) {
2381
+ for (const preset of data.preset) {
2382
+ this.importPreset(preset);
2383
+ }
2384
+ } else {
2385
+ this.importPreset(data.preset);
2386
+ }
2387
+ }
2388
+ if (data.autoPlay !== undefined) {
2389
+ this.autoPlay = data.autoPlay;
2390
+ }
2391
+ const detectRetina = (_a = data.detectRetina) !== null && _a !== void 0 ? _a : data.retina_detect;
2392
+ if (detectRetina !== undefined) {
2393
+ this.detectRetina = detectRetina;
2394
+ }
2395
+ if (data.duration !== undefined) {
2396
+ this.duration = data.duration;
2397
+ }
2398
+ const fpsLimit = (_b = data.fpsLimit) !== null && _b !== void 0 ? _b : data.fps_limit;
2399
+ if (fpsLimit !== undefined) {
2400
+ this.fpsLimit = fpsLimit;
2401
+ }
2402
+ if (data.pauseOnBlur !== undefined) {
2403
+ this.pauseOnBlur = data.pauseOnBlur;
2404
+ }
2405
+ if (data.pauseOnOutsideViewport !== undefined) {
2406
+ this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
2407
+ }
2408
+ if (data.zLayers !== undefined) {
2409
+ this.zLayers = data.zLayers;
2410
+ }
2411
+ this.background.load(data.background);
2412
+ const fullScreen = (_c = data.fullScreen) !== null && _c !== void 0 ? _c : data.backgroundMode;
2413
+ if (typeof fullScreen === "boolean") {
2414
+ this.fullScreen.enable = fullScreen;
2415
+ } else {
2416
+ this.fullScreen.load(fullScreen);
2417
+ }
2418
+ this.backgroundMask.load(data.backgroundMask);
2419
+ this.interactivity.load(data.interactivity);
2420
+ if (data.manualParticles !== undefined) {
2421
+ this.manualParticles = data.manualParticles.map((t => {
2422
+ const tmp = new ManualParticle;
2423
+ tmp.load(t);
2424
+ return tmp;
2425
+ }));
2426
+ }
2427
+ this.motion.load(data.motion);
2428
+ this.particles.load(data.particles);
2429
+ this.style = deepExtend(this.style, data.style);
2430
+ Plugins.loadOptions(this, data);
2431
+ if (data.responsive !== undefined) {
2432
+ for (const responsive of data.responsive) {
2433
+ const optResponsive = new Responsive;
2434
+ optResponsive.load(responsive);
2435
+ this.responsive.push(optResponsive);
2436
+ }
2437
+ }
2438
+ this.responsive.sort(((a, b) => a.maxWidth - b.maxWidth));
2439
+ if (data.themes !== undefined) {
2440
+ for (const theme of data.themes) {
2441
+ const optTheme = new Theme;
2442
+ optTheme.load(theme);
2443
+ this.themes.push(optTheme);
2444
+ }
2445
+ }
2446
+ this.defaultDarkTheme = (_d = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
2447
+ this.defaultLightTheme = (_e = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
2448
+ }
2449
+ setTheme(name) {
2450
+ if (name) {
2451
+ const chosenTheme = this.themes.find((theme => theme.name === name));
2452
+ if (chosenTheme) {
2453
+ this.load(chosenTheme.options);
2454
+ }
2455
+ } else {
2456
+ const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? "dark" : "light");
2457
+ if (defaultTheme) {
2458
+ this.load(defaultTheme.options);
2459
+ }
2460
+ }
2461
+ }
2462
+ setResponsive(width, pxRatio, defaultOptions) {
2463
+ this.load(defaultOptions);
2464
+ const responsiveOptions = this.responsive.find((t => t.mode === "screen" && screen ? t.maxWidth * pxRatio > screen.availWidth : t.maxWidth * pxRatio > width));
2465
+ this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
2466
+ return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
2467
+ }
2468
+ importPreset(preset) {
2469
+ this.load(Plugins.getPreset(preset));
2470
+ }
2471
+ }
2472
+ _Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
2473
+ var _a;
2474
+ 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"));
2475
+ };
2476
+ const fixOutMode = data => {
2477
+ if (isInArray(data.outMode, data.checkModes) || isInArray(data.outMode, data.checkModes)) {
2478
+ if (data.coord > data.maxCoord - data.radius * 2) {
2479
+ data.setCb(-data.radius);
2480
+ } else if (data.coord < data.radius * 2) {
2481
+ data.setCb(data.radius);
2482
+ }
2483
+ }
2484
+ };
2485
+ class Particle_Particle {
2486
+ constructor(id, container, position, overrideOptions, group) {
2487
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2488
+ this.id = id;
2489
+ this.container = container;
2490
+ this.group = group;
2491
+ this.fill = true;
2492
+ this.close = true;
2493
+ this.lastPathTime = 0;
2494
+ this.destroyed = false;
2200
2495
  this.unbreakable = false;
2201
2496
  this.splitCount = 0;
2202
2497
  this.misplaced = false;
@@ -2910,301 +3205,6 @@
2910
3205
  }
2911
3206
  }
2912
3207
  }
2913
- class Trail_Trail {
2914
- constructor() {
2915
- this.delay = 1;
2916
- this.pauseOnStop = false;
2917
- this.quantity = 1;
2918
- }
2919
- load(data) {
2920
- if (data === undefined) {
2921
- return;
2922
- }
2923
- if (data.delay !== undefined) {
2924
- this.delay = data.delay;
2925
- }
2926
- if (data.quantity !== undefined) {
2927
- this.quantity = data.quantity;
2928
- }
2929
- if (data.particles !== undefined) {
2930
- this.particles = deepExtend({}, data.particles);
2931
- }
2932
- if (data.pauseOnStop !== undefined) {
2933
- this.pauseOnStop = data.pauseOnStop;
2934
- }
2935
- }
2936
- }
2937
- class Modes_Modes {
2938
- constructor() {
2939
- this.attract = new Attract;
2940
- this.bounce = new Bounce;
2941
- this.bubble = new Bubble;
2942
- this.connect = new Connect;
2943
- this.grab = new Grab;
2944
- this.light = new Light;
2945
- this.push = new Push;
2946
- this.remove = new Remove;
2947
- this.repulse = new Repulse;
2948
- this.slow = new Slow;
2949
- this.trail = new Trail;
2950
- }
2951
- load(data) {
2952
- if (data === undefined) {
2953
- return;
2954
- }
2955
- this.attract.load(data.attract);
2956
- this.bubble.load(data.bubble);
2957
- this.connect.load(data.connect);
2958
- this.grab.load(data.grab);
2959
- this.light.load(data.light);
2960
- this.push.load(data.push);
2961
- this.remove.load(data.remove);
2962
- this.repulse.load(data.repulse);
2963
- this.slow.load(data.slow);
2964
- this.trail.load(data.trail);
2965
- }
2966
- }
2967
- class Interactivity_Interactivity {
2968
- constructor() {
2969
- this.detectsOn = "window";
2970
- this.events = new Events;
2971
- this.modes = new Modes;
2972
- }
2973
- get detect_on() {
2974
- return this.detectsOn;
2975
- }
2976
- set detect_on(value) {
2977
- this.detectsOn = value;
2978
- }
2979
- load(data) {
2980
- var _a, _b, _c;
2981
- if (data === undefined) {
2982
- return;
2983
- }
2984
- const detectsOn = (_a = data.detectsOn) !== null && _a !== void 0 ? _a : data.detect_on;
2985
- if (detectsOn !== undefined) {
2986
- this.detectsOn = detectsOn;
2987
- }
2988
- this.events.load(data.events);
2989
- this.modes.load(data.modes);
2990
- if (((_c = (_b = data.modes) === null || _b === void 0 ? void 0 : _b.slow) === null || _c === void 0 ? void 0 : _c.active) === true) {
2991
- if (this.events.onHover.mode instanceof Array) {
2992
- if (this.events.onHover.mode.indexOf("slow") < 0) {
2993
- this.events.onHover.mode.push("slow");
2994
- }
2995
- } else if (this.events.onHover.mode !== "slow") {
2996
- this.events.onHover.mode = [ this.events.onHover.mode, "slow" ];
2997
- }
2998
- }
2999
- }
3000
- }
3001
- class Theme_Theme {
3002
- constructor() {
3003
- this.name = "";
3004
- this.default = new ThemeDefault;
3005
- }
3006
- load(data) {
3007
- if (data === undefined) {
3008
- return;
3009
- }
3010
- if (data.name !== undefined) {
3011
- this.name = data.name;
3012
- }
3013
- this.default.load(data.default);
3014
- if (data.options !== undefined) {
3015
- this.options = deepExtend({}, data.options);
3016
- }
3017
- }
3018
- }
3019
- class ManualParticle_ManualParticle {
3020
- load(data) {
3021
- var _a, _b;
3022
- if (!data) {
3023
- return;
3024
- }
3025
- if (data.position !== undefined) {
3026
- this.position = {
3027
- x: (_a = data.position.x) !== null && _a !== void 0 ? _a : 50,
3028
- y: (_b = data.position.y) !== null && _b !== void 0 ? _b : 50
3029
- };
3030
- }
3031
- if (data.options !== undefined) {
3032
- this.options = deepExtend({}, data.options);
3033
- }
3034
- }
3035
- }
3036
- class Responsive_Responsive {
3037
- constructor() {
3038
- this.maxWidth = Infinity;
3039
- this.options = {};
3040
- this.mode = "canvas";
3041
- }
3042
- load(data) {
3043
- if (!data) {
3044
- return;
3045
- }
3046
- if (data.maxWidth !== undefined) {
3047
- this.maxWidth = data.maxWidth;
3048
- }
3049
- if (data.mode !== undefined) {
3050
- if (data.mode === "screen") {
3051
- this.mode = "screen";
3052
- } else {
3053
- this.mode = "canvas";
3054
- }
3055
- }
3056
- if (data.options !== undefined) {
3057
- this.options = deepExtend({}, data.options);
3058
- }
3059
- }
3060
- }
3061
- var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
3062
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3063
- 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");
3064
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3065
- };
3066
- var _Options_instances, _Options_findDefaultTheme;
3067
- class Options_Options {
3068
- constructor() {
3069
- _Options_instances.add(this);
3070
- this.autoPlay = true;
3071
- this.background = new Background;
3072
- this.backgroundMask = new BackgroundMask;
3073
- this.fullScreen = new FullScreen;
3074
- this.detectRetina = true;
3075
- this.duration = 0;
3076
- this.fpsLimit = 60;
3077
- this.interactivity = new Interactivity;
3078
- this.manualParticles = [];
3079
- this.motion = new Motion;
3080
- this.particles = new ParticlesOptions;
3081
- this.pauseOnBlur = true;
3082
- this.pauseOnOutsideViewport = true;
3083
- this.responsive = [];
3084
- this.style = {};
3085
- this.themes = [];
3086
- this.zLayers = 100;
3087
- }
3088
- get fps_limit() {
3089
- return this.fpsLimit;
3090
- }
3091
- set fps_limit(value) {
3092
- this.fpsLimit = value;
3093
- }
3094
- get retina_detect() {
3095
- return this.detectRetina;
3096
- }
3097
- set retina_detect(value) {
3098
- this.detectRetina = value;
3099
- }
3100
- get backgroundMode() {
3101
- return this.fullScreen;
3102
- }
3103
- set backgroundMode(value) {
3104
- this.fullScreen.load(value);
3105
- }
3106
- load(data) {
3107
- var _a, _b, _c, _d, _e;
3108
- if (data === undefined) {
3109
- return;
3110
- }
3111
- if (data.preset !== undefined) {
3112
- if (data.preset instanceof Array) {
3113
- for (const preset of data.preset) {
3114
- this.importPreset(preset);
3115
- }
3116
- } else {
3117
- this.importPreset(data.preset);
3118
- }
3119
- }
3120
- if (data.autoPlay !== undefined) {
3121
- this.autoPlay = data.autoPlay;
3122
- }
3123
- const detectRetina = (_a = data.detectRetina) !== null && _a !== void 0 ? _a : data.retina_detect;
3124
- if (detectRetina !== undefined) {
3125
- this.detectRetina = detectRetina;
3126
- }
3127
- if (data.duration !== undefined) {
3128
- this.duration = data.duration;
3129
- }
3130
- const fpsLimit = (_b = data.fpsLimit) !== null && _b !== void 0 ? _b : data.fps_limit;
3131
- if (fpsLimit !== undefined) {
3132
- this.fpsLimit = fpsLimit;
3133
- }
3134
- if (data.pauseOnBlur !== undefined) {
3135
- this.pauseOnBlur = data.pauseOnBlur;
3136
- }
3137
- if (data.pauseOnOutsideViewport !== undefined) {
3138
- this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
3139
- }
3140
- if (data.zLayers !== undefined) {
3141
- this.zLayers = data.zLayers;
3142
- }
3143
- this.background.load(data.background);
3144
- const fullScreen = (_c = data.fullScreen) !== null && _c !== void 0 ? _c : data.backgroundMode;
3145
- if (typeof fullScreen === "boolean") {
3146
- this.fullScreen.enable = fullScreen;
3147
- } else {
3148
- this.fullScreen.load(fullScreen);
3149
- }
3150
- this.backgroundMask.load(data.backgroundMask);
3151
- this.interactivity.load(data.interactivity);
3152
- if (data.manualParticles !== undefined) {
3153
- this.manualParticles = data.manualParticles.map((t => {
3154
- const tmp = new ManualParticle;
3155
- tmp.load(t);
3156
- return tmp;
3157
- }));
3158
- }
3159
- this.motion.load(data.motion);
3160
- this.particles.load(data.particles);
3161
- this.style = deepExtend(this.style, data.style);
3162
- Plugins.loadOptions(this, data);
3163
- if (data.responsive !== undefined) {
3164
- for (const responsive of data.responsive) {
3165
- const optResponsive = new Responsive;
3166
- optResponsive.load(responsive);
3167
- this.responsive.push(optResponsive);
3168
- }
3169
- }
3170
- this.responsive.sort(((a, b) => a.maxWidth - b.maxWidth));
3171
- if (data.themes !== undefined) {
3172
- for (const theme of data.themes) {
3173
- const optTheme = new Theme;
3174
- optTheme.load(theme);
3175
- this.themes.push(optTheme);
3176
- }
3177
- }
3178
- this.defaultDarkTheme = (_d = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
3179
- this.defaultLightTheme = (_e = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
3180
- }
3181
- setTheme(name) {
3182
- if (name) {
3183
- const chosenTheme = this.themes.find((theme => theme.name === name));
3184
- if (chosenTheme) {
3185
- this.load(chosenTheme.options);
3186
- }
3187
- } else {
3188
- const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? "dark" : "light");
3189
- if (defaultTheme) {
3190
- this.load(defaultTheme.options);
3191
- }
3192
- }
3193
- }
3194
- setResponsive(width, pxRatio, defaultOptions) {
3195
- this.load(defaultOptions);
3196
- const responsiveOptions = this.responsive.find((t => t.mode === "screen" && screen ? t.maxWidth * pxRatio > screen.availWidth : t.maxWidth * pxRatio > width));
3197
- this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
3198
- return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
3199
- }
3200
- importPreset(preset) {
3201
- this.load(Plugins.getPreset(preset));
3202
- }
3203
- }
3204
- _Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
3205
- var _a;
3206
- 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"));
3207
- };
3208
3208
  class Container_Container {
3209
3209
  constructor(id, sourceOptions, ...presets) {
3210
3210
  this.id = id;
@@ -4990,8 +4990,8 @@
4990
4990
  }
4991
4991
  }
4992
4992
  }
4993
- async function loadOutModesUpdater(tsParticles) {
4994
- await tsParticles.addParticleUpdater("outModes", (container => new OutOfCanvasUpdater(container)));
4993
+ async function loadOutModesUpdater(engine) {
4994
+ await engine.addParticleUpdater("outModes", (container => new OutOfCanvasUpdater(container)));
4995
4995
  }
4996
4996
  return __webpack_exports__;
4997
4997
  }();