tsparticles 1.39.3 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1010) hide show
  1. package/Core/Container.d.ts +4 -2
  2. package/Core/Container.js +33 -32
  3. package/Core/Loader.d.ts +12 -9
  4. package/Core/Loader.js +35 -19
  5. package/Core/Particle.d.ts +3 -1
  6. package/Core/Particle.js +17 -2
  7. package/Core/Particles.d.ts +3 -1
  8. package/Core/Particles.js +20 -5
  9. package/Core/Utils/InteractionManager.d.ts +3 -1
  10. package/Core/Utils/InteractionManager.js +17 -3
  11. package/Core/Utils/Plugins.d.ts +29 -15
  12. package/Core/Utils/Plugins.js +58 -46
  13. package/Options/Classes/Options.d.ts +2 -1
  14. package/Options/Classes/Options.js +13 -6
  15. package/Plugins/Emitters/EmitterInstance.d.ts +6 -3
  16. package/Plugins/Emitters/EmitterInstance.js +46 -16
  17. package/Plugins/Emitters/Emitters.d.ts +3 -1
  18. package/Plugins/Emitters/Emitters.js +17 -2
  19. package/Plugins/Emitters/{EmittersMain.d.ts → EmittersEngine.d.ts} +3 -1
  20. package/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
  21. package/Plugins/Emitters/IEmitterShape.d.ts +2 -2
  22. package/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
  23. package/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
  24. package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +1 -0
  25. package/Plugins/Emitters/ShapeManager.d.ts +6 -3
  26. package/Plugins/Emitters/ShapeManager.js +16 -4
  27. package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
  28. package/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
  29. package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
  30. package/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
  31. package/Plugins/Emitters/index.d.ts +3 -3
  32. package/Plugins/Emitters/index.js +25 -6
  33. package/README.md +1 -1
  34. package/browser/Core/Container.d.ts +5 -2
  35. package/browser/Core/Container.js +35 -33
  36. package/browser/Core/Loader.d.ts +12 -9
  37. package/browser/Core/Loader.js +35 -19
  38. package/browser/Core/Particle.d.ts +3 -1
  39. package/browser/Core/Particle.js +18 -3
  40. package/browser/Core/Particles.d.ts +3 -1
  41. package/browser/Core/Particles.js +21 -6
  42. package/browser/Core/Utils/InteractionManager.d.ts +3 -1
  43. package/browser/Core/Utils/InteractionManager.js +17 -3
  44. package/browser/Core/Utils/Plugins.d.ts +29 -15
  45. package/browser/Core/Utils/Plugins.js +58 -46
  46. package/browser/Options/Classes/Options.d.ts +2 -1
  47. package/browser/Options/Classes/Options.js +13 -6
  48. package/browser/Plugins/Emitters/EmitterInstance.d.ts +6 -3
  49. package/browser/Plugins/Emitters/EmitterInstance.js +46 -16
  50. package/browser/Plugins/Emitters/Emitters.d.ts +3 -1
  51. package/browser/Plugins/Emitters/Emitters.js +17 -2
  52. package/{esm/Plugins/Emitters/EmittersMain.d.ts → browser/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
  53. package/browser/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
  54. package/browser/Plugins/Emitters/IEmitterShape.d.ts +2 -2
  55. package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
  56. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
  57. package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +4 -0
  58. package/browser/Plugins/Emitters/ShapeManager.d.ts +6 -3
  59. package/browser/Plugins/Emitters/ShapeManager.js +16 -4
  60. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
  61. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
  62. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
  63. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
  64. package/browser/Plugins/Emitters/index.d.ts +3 -3
  65. package/browser/Plugins/Emitters/index.js +25 -6
  66. package/browser/engine.d.ts +5 -1
  67. package/browser/engine.js +22 -17
  68. package/engine.d.ts +3 -0
  69. package/engine.js +20 -16
  70. package/esm/Core/Container.d.ts +4 -2
  71. package/esm/Core/Container.js +34 -33
  72. package/esm/Core/Loader.d.ts +12 -9
  73. package/esm/Core/Loader.js +35 -19
  74. package/esm/Core/Particle.d.ts +3 -1
  75. package/esm/Core/Particle.js +18 -3
  76. package/esm/Core/Particles.d.ts +3 -1
  77. package/esm/Core/Particles.js +21 -6
  78. package/esm/Core/Utils/InteractionManager.d.ts +3 -1
  79. package/esm/Core/Utils/InteractionManager.js +17 -3
  80. package/esm/Core/Utils/Plugins.d.ts +29 -15
  81. package/esm/Core/Utils/Plugins.js +58 -46
  82. package/esm/Options/Classes/Options.d.ts +2 -1
  83. package/esm/Options/Classes/Options.js +13 -6
  84. package/esm/Plugins/Emitters/EmitterInstance.d.ts +6 -3
  85. package/esm/Plugins/Emitters/EmitterInstance.js +46 -16
  86. package/esm/Plugins/Emitters/Emitters.d.ts +3 -1
  87. package/esm/Plugins/Emitters/Emitters.js +17 -2
  88. package/{browser/Plugins/Emitters/EmittersMain.d.ts → esm/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
  89. package/esm/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
  90. package/esm/Plugins/Emitters/IEmitterShape.d.ts +2 -2
  91. package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
  92. package/esm/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
  93. package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +1 -0
  94. package/esm/Plugins/Emitters/ShapeManager.d.ts +6 -3
  95. package/esm/Plugins/Emitters/ShapeManager.js +16 -4
  96. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
  97. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
  98. package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
  99. package/esm/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
  100. package/esm/Plugins/Emitters/index.d.ts +3 -3
  101. package/esm/Plugins/Emitters/index.js +25 -6
  102. package/esm/engine.d.ts +3 -0
  103. package/esm/engine.js +20 -16
  104. package/package.json +1 -2
  105. package/report.html +2 -2
  106. package/report.slim.html +2 -2
  107. package/tsparticles.engine.js +227 -134
  108. package/tsparticles.engine.min.js +2 -2
  109. package/tsparticles.interaction.external.attract.js +205 -116
  110. package/tsparticles.interaction.external.attract.min.js +2 -2
  111. package/tsparticles.interaction.external.bounce.js +205 -116
  112. package/tsparticles.interaction.external.bounce.min.js +2 -2
  113. package/tsparticles.interaction.external.bubble.js +205 -116
  114. package/tsparticles.interaction.external.bubble.min.js +2 -2
  115. package/tsparticles.interaction.external.connect.js +205 -116
  116. package/tsparticles.interaction.external.connect.min.js +2 -2
  117. package/tsparticles.interaction.external.grab.js +205 -116
  118. package/tsparticles.interaction.external.grab.min.js +2 -2
  119. package/tsparticles.interaction.external.repulse.js +205 -116
  120. package/tsparticles.interaction.external.repulse.min.js +2 -2
  121. package/tsparticles.interaction.external.trail.js +205 -116
  122. package/tsparticles.interaction.external.trail.min.js +2 -2
  123. package/tsparticles.interaction.particles.attract.js +205 -116
  124. package/tsparticles.interaction.particles.attract.min.js +2 -2
  125. package/tsparticles.interaction.particles.collisions.js +205 -116
  126. package/tsparticles.interaction.particles.collisions.min.js +2 -2
  127. package/tsparticles.interaction.particles.links.js +205 -116
  128. package/tsparticles.interaction.particles.links.min.js +2 -2
  129. package/tsparticles.js +347 -172
  130. package/tsparticles.min.js +2 -2
  131. package/tsparticles.pathseg.min.js +1 -1
  132. package/tsparticles.plugins.absorbers.js +205 -116
  133. package/tsparticles.plugins.absorbers.min.js +2 -2
  134. package/tsparticles.plugins.emitters.js +330 -159
  135. package/tsparticles.plugins.emitters.min.js +2 -2
  136. package/tsparticles.plugins.polygonMask.js +205 -116
  137. package/tsparticles.plugins.polygonMask.min.js +2 -2
  138. package/tsparticles.shape.circle.min.js +1 -1
  139. package/tsparticles.shape.image.js +208 -119
  140. package/tsparticles.shape.image.min.js +2 -2
  141. package/tsparticles.shape.line.min.js +1 -1
  142. package/tsparticles.shape.polygon.min.js +1 -1
  143. package/tsparticles.shape.square.min.js +1 -1
  144. package/tsparticles.shape.star.min.js +1 -1
  145. package/tsparticles.shape.text.js +205 -116
  146. package/tsparticles.shape.text.min.js +2 -2
  147. package/tsparticles.slim.js +227 -134
  148. package/tsparticles.slim.min.js +2 -2
  149. package/tsparticles.updater.angle.js +205 -116
  150. package/tsparticles.updater.angle.min.js +2 -2
  151. package/tsparticles.updater.color.js +205 -116
  152. package/tsparticles.updater.color.min.js +2 -2
  153. package/tsparticles.updater.life.js +205 -116
  154. package/tsparticles.updater.life.min.js +2 -2
  155. package/tsparticles.updater.opacity.js +205 -116
  156. package/tsparticles.updater.opacity.min.js +2 -2
  157. package/tsparticles.updater.outModes.js +205 -116
  158. package/tsparticles.updater.outModes.min.js +2 -2
  159. package/tsparticles.updater.roll.js +205 -116
  160. package/tsparticles.updater.roll.min.js +2 -2
  161. package/tsparticles.updater.size.js +205 -116
  162. package/tsparticles.updater.size.min.js +2 -2
  163. package/tsparticles.updater.strokeColor.js +205 -116
  164. package/tsparticles.updater.strokeColor.min.js +2 -2
  165. package/tsparticles.updater.tilt.js +205 -116
  166. package/tsparticles.updater.tilt.min.js +2 -2
  167. package/tsparticles.updater.wobble.js +205 -116
  168. package/tsparticles.updater.wobble.min.js +2 -2
  169. package/umd/Core/Canvas.d.ts +35 -0
  170. package/umd/Core/Canvas.js +328 -0
  171. package/umd/Core/Container.d.ts +68 -0
  172. package/umd/Core/Container.js +405 -0
  173. package/umd/Core/Interfaces/Colors.d.ts +33 -0
  174. package/umd/Core/Interfaces/Colors.js +12 -0
  175. package/umd/Core/Interfaces/Gradients.d.ts +21 -0
  176. package/umd/Core/Interfaces/Gradients.js +12 -0
  177. package/umd/Core/Interfaces/IAttract.d.ts +7 -0
  178. package/umd/Core/Interfaces/IAttract.js +12 -0
  179. package/umd/Core/Interfaces/IBounds.d.ts +6 -0
  180. package/umd/Core/Interfaces/IBounds.js +12 -0
  181. package/umd/Core/Interfaces/IBubble.d.ts +4 -0
  182. package/umd/Core/Interfaces/IBubble.js +12 -0
  183. package/umd/Core/Interfaces/IBubbleParticleData.d.ts +9 -0
  184. package/umd/Core/Interfaces/IBubbleParticleData.js +12 -0
  185. package/umd/Core/Interfaces/ICircleBouncer.d.ts +9 -0
  186. package/umd/Core/Interfaces/ICircleBouncer.js +12 -0
  187. package/umd/Core/Interfaces/IContainerInteractivity.d.ts +6 -0
  188. package/umd/Core/Interfaces/IContainerInteractivity.js +12 -0
  189. package/umd/Core/Interfaces/IContainerPlugin.d.ts +32 -0
  190. package/umd/Core/Interfaces/IContainerPlugin.js +12 -0
  191. package/umd/Core/Interfaces/ICoordinates.d.ts +7 -0
  192. package/umd/Core/Interfaces/ICoordinates.js +12 -0
  193. package/umd/Core/Interfaces/IDelta.d.ts +4 -0
  194. package/umd/Core/Interfaces/IDelta.js +12 -0
  195. package/umd/Core/Interfaces/IDimension.d.ts +4 -0
  196. package/umd/Core/Interfaces/IDimension.js +12 -0
  197. package/umd/Core/Interfaces/IDistance.d.ts +4 -0
  198. package/umd/Core/Interfaces/IDistance.js +12 -0
  199. package/umd/Core/Interfaces/IExternalInteractor.d.ts +6 -0
  200. package/umd/Core/Interfaces/IExternalInteractor.js +12 -0
  201. package/umd/Core/Interfaces/IInteractor.d.ts +6 -0
  202. package/umd/Core/Interfaces/IInteractor.js +12 -0
  203. package/umd/Core/Interfaces/IMouseData.d.ts +9 -0
  204. package/umd/Core/Interfaces/IMouseData.js +12 -0
  205. package/umd/Core/Interfaces/IMovePathGenerator.d.ts +8 -0
  206. package/umd/Core/Interfaces/IMovePathGenerator.js +12 -0
  207. package/umd/Core/Interfaces/IParticle.d.ts +55 -0
  208. package/umd/Core/Interfaces/IParticle.js +12 -0
  209. package/umd/Core/Interfaces/IParticleGradientAnimation.d.ts +8 -0
  210. package/umd/Core/Interfaces/IParticleGradientAnimation.js +12 -0
  211. package/umd/Core/Interfaces/IParticleGradientColorAnimation.d.ts +7 -0
  212. package/umd/Core/Interfaces/IParticleGradientColorAnimation.js +12 -0
  213. package/umd/Core/Interfaces/IParticleHslAnimation.d.ts +6 -0
  214. package/umd/Core/Interfaces/IParticleHslAnimation.js +12 -0
  215. package/umd/Core/Interfaces/IParticleLife.d.ts +7 -0
  216. package/umd/Core/Interfaces/IParticleLife.js +12 -0
  217. package/umd/Core/Interfaces/IParticleLoops.d.ts +4 -0
  218. package/umd/Core/Interfaces/IParticleLoops.js +12 -0
  219. package/umd/Core/Interfaces/IParticleRetinaProps.d.ts +12 -0
  220. package/umd/Core/Interfaces/IParticleRetinaProps.js +12 -0
  221. package/umd/Core/Interfaces/IParticleRoll.d.ts +9 -0
  222. package/umd/Core/Interfaces/IParticleRoll.js +12 -0
  223. package/umd/Core/Interfaces/IParticleSpin.d.ts +9 -0
  224. package/umd/Core/Interfaces/IParticleSpin.js +12 -0
  225. package/umd/Core/Interfaces/IParticleUpdater.d.ts +9 -0
  226. package/umd/Core/Interfaces/IParticleUpdater.js +12 -0
  227. package/umd/Core/Interfaces/IParticleValueAnimation.d.ts +17 -0
  228. package/umd/Core/Interfaces/IParticleValueAnimation.js +12 -0
  229. package/umd/Core/Interfaces/IParticleWobble.d.ts +4 -0
  230. package/umd/Core/Interfaces/IParticleWobble.js +12 -0
  231. package/umd/Core/Interfaces/IParticlesFrequencies.d.ts +4 -0
  232. package/umd/Core/Interfaces/IParticlesFrequencies.js +12 -0
  233. package/umd/Core/Interfaces/IParticlesInteractor.d.ts +7 -0
  234. package/umd/Core/Interfaces/IParticlesInteractor.js +12 -0
  235. package/umd/Core/Interfaces/IPlugin.d.ts +11 -0
  236. package/umd/Core/Interfaces/IPlugin.js +12 -0
  237. package/umd/Core/Interfaces/IRangeValue.d.ts +4 -0
  238. package/umd/Core/Interfaces/IRangeValue.js +12 -0
  239. package/umd/Core/Interfaces/IRectSideResult.d.ts +5 -0
  240. package/umd/Core/Interfaces/IRectSideResult.js +12 -0
  241. package/umd/Core/Interfaces/IRepulse.d.ts +7 -0
  242. package/umd/Core/Interfaces/IRepulse.js +12 -0
  243. package/umd/Core/Interfaces/IShapeDrawer.d.ts +10 -0
  244. package/umd/Core/Interfaces/IShapeDrawer.js +12 -0
  245. package/umd/Core/Interfaces/IShapeValues.d.ts +8 -0
  246. package/umd/Core/Interfaces/IShapeValues.js +12 -0
  247. package/umd/Core/Interfaces/index.d.ts +36 -0
  248. package/umd/Core/Interfaces/index.js +58 -0
  249. package/umd/Core/Loader.d.ts +32 -0
  250. package/umd/Core/Loader.js +193 -0
  251. package/umd/Core/Particle.d.ts +71 -0
  252. package/umd/Core/Particle.js +394 -0
  253. package/umd/Core/Particles.d.ts +46 -0
  254. package/umd/Core/Particles.js +331 -0
  255. package/umd/Core/Retina.d.ts +26 -0
  256. package/umd/Core/Retina.js +107 -0
  257. package/umd/Core/Utils/Circle.d.ts +8 -0
  258. package/umd/Core/Utils/Circle.js +52 -0
  259. package/umd/Core/Utils/CircleWarp.d.ts +9 -0
  260. package/umd/Core/Utils/CircleWarp.js +70 -0
  261. package/umd/Core/Utils/Constants.d.ts +18 -0
  262. package/umd/Core/Utils/Constants.js +32 -0
  263. package/umd/Core/Utils/EventListeners.d.ts +33 -0
  264. package/umd/Core/Utils/EventListeners.js +383 -0
  265. package/umd/Core/Utils/ExternalInteractorBase.d.ts +12 -0
  266. package/umd/Core/Utils/ExternalInteractorBase.js +20 -0
  267. package/umd/Core/Utils/FrameManager.d.ts +6 -0
  268. package/umd/Core/Utils/FrameManager.js +53 -0
  269. package/umd/Core/Utils/InteractionManager.d.ts +14 -0
  270. package/umd/Core/Utils/InteractionManager.js +69 -0
  271. package/umd/Core/Utils/ParticlesInteractorBase.d.ts +12 -0
  272. package/umd/Core/Utils/ParticlesInteractorBase.js +20 -0
  273. package/umd/Core/Utils/ParticlesMover.d.ts +13 -0
  274. package/umd/Core/Utils/ParticlesMover.js +196 -0
  275. package/umd/Core/Utils/Plugins.d.ts +36 -0
  276. package/umd/Core/Utils/Plugins.js +108 -0
  277. package/umd/Core/Utils/Point.d.ts +7 -0
  278. package/umd/Core/Utils/Point.js +20 -0
  279. package/umd/Core/Utils/QuadTree.d.ts +23 -0
  280. package/umd/Core/Utils/QuadTree.js +88 -0
  281. package/umd/Core/Utils/Range.d.ts +7 -0
  282. package/umd/Core/Utils/Range.js +22 -0
  283. package/umd/Core/Utils/Rectangle.d.ts +8 -0
  284. package/umd/Core/Utils/Rectangle.js +48 -0
  285. package/umd/Core/Utils/Vector.d.ts +29 -0
  286. package/umd/Core/Utils/Vector.js +106 -0
  287. package/umd/Core/Utils/Vector3d.d.ts +18 -0
  288. package/umd/Core/Utils/Vector3d.js +68 -0
  289. package/umd/Core/Utils/index.d.ts +16 -0
  290. package/umd/Core/Utils/index.js +38 -0
  291. package/umd/Core/index.d.ts +8 -0
  292. package/umd/Core/index.js +30 -0
  293. package/umd/Enums/AnimationStatus.d.ts +4 -0
  294. package/umd/Enums/AnimationStatus.js +12 -0
  295. package/umd/Enums/Directions/MoveDirection.d.ts +12 -0
  296. package/umd/Enums/Directions/MoveDirection.js +12 -0
  297. package/umd/Enums/Directions/OutModeDirection.d.ts +6 -0
  298. package/umd/Enums/Directions/OutModeDirection.js +12 -0
  299. package/umd/Enums/Directions/RotateDirection.d.ts +6 -0
  300. package/umd/Enums/Directions/RotateDirection.js +12 -0
  301. package/umd/Enums/Directions/TiltDirection.d.ts +6 -0
  302. package/umd/Enums/Directions/TiltDirection.js +12 -0
  303. package/umd/Enums/Directions/index.d.ts +4 -0
  304. package/umd/Enums/Directions/index.js +26 -0
  305. package/umd/Enums/InteractivityDetect.d.ts +5 -0
  306. package/umd/Enums/InteractivityDetect.js +12 -0
  307. package/umd/Enums/Modes/ClickMode.d.ts +9 -0
  308. package/umd/Enums/Modes/ClickMode.js +12 -0
  309. package/umd/Enums/Modes/CollisionMode.d.ts +5 -0
  310. package/umd/Enums/Modes/CollisionMode.js +12 -0
  311. package/umd/Enums/Modes/DestroyMode.d.ts +4 -0
  312. package/umd/Enums/Modes/DestroyMode.js +12 -0
  313. package/umd/Enums/Modes/DivMode.d.ts +5 -0
  314. package/umd/Enums/Modes/DivMode.js +12 -0
  315. package/umd/Enums/Modes/HoverMode.d.ts +11 -0
  316. package/umd/Enums/Modes/HoverMode.js +12 -0
  317. package/umd/Enums/Modes/OutMode.d.ts +10 -0
  318. package/umd/Enums/Modes/OutMode.js +12 -0
  319. package/umd/Enums/Modes/ResponsiveMode.d.ts +4 -0
  320. package/umd/Enums/Modes/ResponsiveMode.js +12 -0
  321. package/umd/Enums/Modes/RollMode.d.ts +5 -0
  322. package/umd/Enums/Modes/RollMode.js +12 -0
  323. package/umd/Enums/Modes/SizeMode.d.ts +4 -0
  324. package/umd/Enums/Modes/SizeMode.js +12 -0
  325. package/umd/Enums/Modes/ThemeMode.d.ts +5 -0
  326. package/umd/Enums/Modes/ThemeMode.js +12 -0
  327. package/umd/Enums/Modes/index.d.ts +10 -0
  328. package/umd/Enums/Modes/index.js +32 -0
  329. package/umd/Enums/Types/AlterType.d.ts +4 -0
  330. package/umd/Enums/Types/AlterType.js +12 -0
  331. package/umd/Enums/Types/DestroyType.d.ts +5 -0
  332. package/umd/Enums/Types/DestroyType.js +12 -0
  333. package/umd/Enums/Types/DivType.d.ts +4 -0
  334. package/umd/Enums/Types/DivType.js +12 -0
  335. package/umd/Enums/Types/EasingType.d.ts +10 -0
  336. package/umd/Enums/Types/EasingType.js +12 -0
  337. package/umd/Enums/Types/GradientType.d.ts +5 -0
  338. package/umd/Enums/Types/GradientType.js +12 -0
  339. package/umd/Enums/Types/InteractorType.d.ts +4 -0
  340. package/umd/Enums/Types/InteractorType.js +12 -0
  341. package/umd/Enums/Types/OrbitType.d.ts +4 -0
  342. package/umd/Enums/Types/OrbitType.js +12 -0
  343. package/umd/Enums/Types/ShapeType.d.ts +13 -0
  344. package/umd/Enums/Types/ShapeType.js +12 -0
  345. package/umd/Enums/Types/StartValueType.d.ts +5 -0
  346. package/umd/Enums/Types/StartValueType.js +12 -0
  347. package/umd/Enums/Types/index.d.ts +9 -0
  348. package/umd/Enums/Types/index.js +31 -0
  349. package/umd/Enums/index.d.ts +5 -0
  350. package/umd/Enums/index.js +27 -0
  351. package/umd/Interactions/External/Attract/Attractor.d.ts +11 -0
  352. package/umd/Interactions/External/Attract/Attractor.js +85 -0
  353. package/umd/Interactions/External/Attract/index.d.ts +2 -0
  354. package/umd/Interactions/External/Attract/index.js +18 -0
  355. package/umd/Interactions/External/Bounce/Bouncer.d.ts +11 -0
  356. package/umd/Interactions/External/Bounce/Bouncer.js +77 -0
  357. package/umd/Interactions/External/Bounce/index.d.ts +2 -0
  358. package/umd/Interactions/External/Bounce/index.js +18 -0
  359. package/umd/Interactions/External/Bubble/Bubbler.d.ts +16 -0
  360. package/umd/Interactions/External/Bubble/Bubbler.js +261 -0
  361. package/umd/Interactions/External/Bubble/IBubblerProcessParam.d.ts +10 -0
  362. package/umd/Interactions/External/Bubble/IBubblerProcessParam.js +12 -0
  363. package/umd/Interactions/External/Bubble/ProcessBubbleType.d.ts +5 -0
  364. package/umd/Interactions/External/Bubble/ProcessBubbleType.js +12 -0
  365. package/umd/Interactions/External/Bubble/index.d.ts +2 -0
  366. package/umd/Interactions/External/Bubble/index.js +18 -0
  367. package/umd/Interactions/External/Connect/Connector.d.ts +8 -0
  368. package/umd/Interactions/External/Connect/Connector.js +51 -0
  369. package/umd/Interactions/External/Connect/index.d.ts +2 -0
  370. package/umd/Interactions/External/Connect/index.js +18 -0
  371. package/umd/Interactions/External/Grab/Grabber.d.ts +8 -0
  372. package/umd/Interactions/External/Grab/Grabber.js +57 -0
  373. package/umd/Interactions/External/Grab/index.d.ts +2 -0
  374. package/umd/Interactions/External/Grab/index.js +18 -0
  375. package/umd/Interactions/External/Repulse/Repulser.d.ts +12 -0
  376. package/umd/Interactions/External/Repulse/Repulser.js +108 -0
  377. package/umd/Interactions/External/Repulse/index.d.ts +2 -0
  378. package/umd/Interactions/External/Repulse/index.js +18 -0
  379. package/umd/Interactions/External/Trail/TrailMaker.d.ts +10 -0
  380. package/umd/Interactions/External/Trail/TrailMaker.js +63 -0
  381. package/umd/Interactions/External/Trail/index.d.ts +2 -0
  382. package/umd/Interactions/External/Trail/index.js +18 -0
  383. package/umd/Interactions/Particles/Attract/Attractor.d.ts +8 -0
  384. package/umd/Interactions/Particles/Attract/Attractor.js +40 -0
  385. package/umd/Interactions/Particles/Attract/index.d.ts +2 -0
  386. package/umd/Interactions/Particles/Attract/index.js +18 -0
  387. package/umd/Interactions/Particles/Collisions/Collider.d.ts +10 -0
  388. package/umd/Interactions/Particles/Collisions/Collider.js +119 -0
  389. package/umd/Interactions/Particles/Collisions/index.d.ts +2 -0
  390. package/umd/Interactions/Particles/Collisions/index.js +18 -0
  391. package/umd/Interactions/Particles/Links/ILink.d.ts +9 -0
  392. package/umd/Interactions/Particles/Links/ILink.js +12 -0
  393. package/umd/Interactions/Particles/Links/LinkInstance.d.ts +10 -0
  394. package/umd/Interactions/Particles/Links/LinkInstance.js +134 -0
  395. package/umd/Interactions/Particles/Links/LinkParticle.d.ts +5 -0
  396. package/umd/Interactions/Particles/Links/LinkParticle.js +12 -0
  397. package/umd/Interactions/Particles/Links/Linker.d.ts +10 -0
  398. package/umd/Interactions/Particles/Links/Linker.js +115 -0
  399. package/umd/Interactions/Particles/Links/index.d.ts +2 -0
  400. package/umd/Interactions/Particles/Links/index.js +20 -0
  401. package/umd/Interactions/Particles/Links/interaction.d.ts +2 -0
  402. package/umd/Interactions/Particles/Links/interaction.js +18 -0
  403. package/umd/Interactions/Particles/Links/plugin.d.ts +2 -0
  404. package/umd/Interactions/Particles/Links/plugin.js +32 -0
  405. package/umd/Options/Classes/AnimatableColor.d.ts +11 -0
  406. package/umd/Options/Classes/AnimatableColor.js +50 -0
  407. package/umd/Options/Classes/AnimatableGradient.d.ts +53 -0
  408. package/umd/Options/Classes/AnimatableGradient.js +156 -0
  409. package/umd/Options/Classes/AnimationOptions.d.ts +11 -0
  410. package/umd/Options/Classes/AnimationOptions.js +39 -0
  411. package/umd/Options/Classes/Background/Background.d.ts +14 -0
  412. package/umd/Options/Classes/Background/Background.js +49 -0
  413. package/umd/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
  414. package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +38 -0
  415. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
  416. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +32 -0
  417. package/umd/Options/Classes/ColorAnimation.d.ts +12 -0
  418. package/umd/Options/Classes/ColorAnimation.js +44 -0
  419. package/umd/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
  420. package/umd/Options/Classes/FullScreen/FullScreen.js +31 -0
  421. package/umd/Options/Classes/HslAnimation.d.ts +11 -0
  422. package/umd/Options/Classes/HslAnimation.js +30 -0
  423. package/umd/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
  424. package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +31 -0
  425. package/umd/Options/Classes/Interactivity/Events/DivEvent.d.ts +18 -0
  426. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +64 -0
  427. package/umd/Options/Classes/Interactivity/Events/Events.d.ts +20 -0
  428. package/umd/Options/Classes/Interactivity/Events/Events.js +68 -0
  429. package/umd/Options/Classes/Interactivity/Events/HoverEvent.d.ts +12 -0
  430. package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +34 -0
  431. package/umd/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
  432. package/umd/Options/Classes/Interactivity/Events/Parallax.js +35 -0
  433. package/umd/Options/Classes/Interactivity/Interactivity.d.ts +15 -0
  434. package/umd/Options/Classes/Interactivity/Interactivity.js +51 -0
  435. package/umd/Options/Classes/Interactivity/Modes/Attract.d.ts +14 -0
  436. package/umd/Options/Classes/Interactivity/Modes/Attract.js +47 -0
  437. package/umd/Options/Classes/Interactivity/Modes/Bounce.d.ts +8 -0
  438. package/umd/Options/Classes/Interactivity/Modes/Bounce.js +27 -0
  439. package/umd/Options/Classes/Interactivity/Modes/Bubble.d.ts +9 -0
  440. package/umd/Options/Classes/Interactivity/Modes/Bubble.js +37 -0
  441. package/umd/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +13 -0
  442. package/umd/Options/Classes/Interactivity/Modes/BubbleBase.js +53 -0
  443. package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +11 -0
  444. package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.js +41 -0
  445. package/umd/Options/Classes/Interactivity/Modes/Connect.d.ts +15 -0
  446. package/umd/Options/Classes/Interactivity/Modes/Connect.js +47 -0
  447. package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +8 -0
  448. package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.js +25 -0
  449. package/umd/Options/Classes/Interactivity/Modes/Grab.d.ts +14 -0
  450. package/umd/Options/Classes/Interactivity/Modes/Grab.js +43 -0
  451. package/umd/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +12 -0
  452. package/umd/Options/Classes/Interactivity/Modes/GrabLinks.js +39 -0
  453. package/umd/Options/Classes/Interactivity/Modes/Light.d.ts +11 -0
  454. package/umd/Options/Classes/Interactivity/Modes/Light.js +29 -0
  455. package/umd/Options/Classes/Interactivity/Modes/LightArea.d.ts +10 -0
  456. package/umd/Options/Classes/Interactivity/Modes/LightArea.js +30 -0
  457. package/umd/Options/Classes/Interactivity/Modes/LightGradient.d.ts +10 -0
  458. package/umd/Options/Classes/Interactivity/Modes/LightGradient.js +30 -0
  459. package/umd/Options/Classes/Interactivity/Modes/LightShadow.d.ts +10 -0
  460. package/umd/Options/Classes/Interactivity/Modes/LightShadow.js +31 -0
  461. package/umd/Options/Classes/Interactivity/Modes/Modes.d.ts +29 -0
  462. package/umd/Options/Classes/Interactivity/Modes/Modes.js +55 -0
  463. package/umd/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
  464. package/umd/Options/Classes/Interactivity/Modes/Push.js +46 -0
  465. package/umd/Options/Classes/Interactivity/Modes/Remove.d.ts +10 -0
  466. package/umd/Options/Classes/Interactivity/Modes/Remove.js +35 -0
  467. package/umd/Options/Classes/Interactivity/Modes/Repulse.d.ts +9 -0
  468. package/umd/Options/Classes/Interactivity/Modes/Repulse.js +37 -0
  469. package/umd/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +14 -0
  470. package/umd/Options/Classes/Interactivity/Modes/RepulseBase.js +47 -0
  471. package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +11 -0
  472. package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.js +49 -0
  473. package/umd/Options/Classes/Interactivity/Modes/Slow.d.ts +11 -0
  474. package/umd/Options/Classes/Interactivity/Modes/Slow.js +36 -0
  475. package/umd/Options/Classes/Interactivity/Modes/Trail.d.ts +12 -0
  476. package/umd/Options/Classes/Interactivity/Modes/Trail.js +39 -0
  477. package/umd/Options/Classes/ManualParticle.d.ts +10 -0
  478. package/umd/Options/Classes/ManualParticle.js +32 -0
  479. package/umd/Options/Classes/Motion/Motion.d.ts +10 -0
  480. package/umd/Options/Classes/Motion/Motion.js +30 -0
  481. package/umd/Options/Classes/Motion/MotionReduce.d.ts +9 -0
  482. package/umd/Options/Classes/Motion/MotionReduce.js +31 -0
  483. package/umd/Options/Classes/Options.d.ts +48 -0
  484. package/umd/Options/Classes/Options.js +184 -0
  485. package/umd/Options/Classes/OptionsColor.d.ts +10 -0
  486. package/umd/Options/Classes/OptionsColor.js +38 -0
  487. package/umd/Options/Classes/Particles/Bounce/Bounce.d.ts +10 -0
  488. package/umd/Options/Classes/Particles/Bounce/Bounce.js +28 -0
  489. package/umd/Options/Classes/Particles/Bounce/BounceFactor.d.ts +4 -0
  490. package/umd/Options/Classes/Particles/Bounce/BounceFactor.js +22 -0
  491. package/umd/Options/Classes/Particles/Collisions/Collisions.d.ts +14 -0
  492. package/umd/Options/Classes/Particles/Collisions/Collisions.js +37 -0
  493. package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
  494. package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.js +31 -0
  495. package/umd/Options/Classes/Particles/Destroy/Destroy.d.ts +11 -0
  496. package/umd/Options/Classes/Particles/Destroy/Destroy.js +30 -0
  497. package/umd/Options/Classes/Particles/Destroy/Split.d.ts +15 -0
  498. package/umd/Options/Classes/Particles/Destroy/Split.js +41 -0
  499. package/umd/Options/Classes/Particles/Destroy/SplitFactor.d.ts +4 -0
  500. package/umd/Options/Classes/Particles/Destroy/SplitFactor.js +21 -0
  501. package/umd/Options/Classes/Particles/Destroy/SplitRate.d.ts +4 -0
  502. package/umd/Options/Classes/Particles/Destroy/SplitRate.js +21 -0
  503. package/umd/Options/Classes/Particles/Life/Life.d.ts +12 -0
  504. package/umd/Options/Classes/Particles/Life/Life.js +33 -0
  505. package/umd/Options/Classes/Particles/Life/LifeDelay.d.ts +9 -0
  506. package/umd/Options/Classes/Particles/Life/LifeDelay.js +30 -0
  507. package/umd/Options/Classes/Particles/Life/LifeDuration.d.ts +9 -0
  508. package/umd/Options/Classes/Particles/Life/LifeDuration.js +31 -0
  509. package/umd/Options/Classes/Particles/Links/Links.d.ts +22 -0
  510. package/umd/Options/Classes/Particles/Links/Links.js +67 -0
  511. package/umd/Options/Classes/Particles/Links/LinksShadow.d.ts +11 -0
  512. package/umd/Options/Classes/Particles/Links/LinksShadow.js +35 -0
  513. package/umd/Options/Classes/Particles/Links/LinksTriangle.d.ts +12 -0
  514. package/umd/Options/Classes/Particles/Links/LinksTriangle.js +38 -0
  515. package/umd/Options/Classes/Particles/Move/Attract.d.ts +15 -0
  516. package/umd/Options/Classes/Particles/Move/Attract.js +56 -0
  517. package/umd/Options/Classes/Particles/Move/Move.d.ts +44 -0
  518. package/umd/Options/Classes/Particles/Move/Move.js +142 -0
  519. package/umd/Options/Classes/Particles/Move/MoveAngle.d.ts +9 -0
  520. package/umd/Options/Classes/Particles/Move/MoveAngle.js +31 -0
  521. package/umd/Options/Classes/Particles/Move/MoveGravity.d.ts +11 -0
  522. package/umd/Options/Classes/Particles/Move/MoveGravity.js +39 -0
  523. package/umd/Options/Classes/Particles/Move/OutModes.d.ts +13 -0
  524. package/umd/Options/Classes/Particles/Move/OutModes.js +32 -0
  525. package/umd/Options/Classes/Particles/Move/Path/Path.d.ts +13 -0
  526. package/umd/Options/Classes/Particles/Move/Path/Path.js +40 -0
  527. package/umd/Options/Classes/Particles/Move/Path/PathDelay.d.ts +4 -0
  528. package/umd/Options/Classes/Particles/Move/Path/PathDelay.js +20 -0
  529. package/umd/Options/Classes/Particles/Move/Spin.d.ts +11 -0
  530. package/umd/Options/Classes/Particles/Move/Spin.js +33 -0
  531. package/umd/Options/Classes/Particles/Move/Trail.d.ts +11 -0
  532. package/umd/Options/Classes/Particles/Move/Trail.js +35 -0
  533. package/umd/Options/Classes/Particles/Number/Density.d.ts +12 -0
  534. package/umd/Options/Classes/Particles/Number/Density.js +43 -0
  535. package/umd/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
  536. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +42 -0
  537. package/umd/Options/Classes/Particles/Opacity/Opacity.d.ts +12 -0
  538. package/umd/Options/Classes/Particles/Opacity/Opacity.js +43 -0
  539. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +14 -0
  540. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +54 -0
  541. package/umd/Options/Classes/Particles/Orbit/Orbit.d.ts +18 -0
  542. package/umd/Options/Classes/Particles/Orbit/Orbit.js +48 -0
  543. package/umd/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +7 -0
  544. package/umd/Options/Classes/Particles/Orbit/OrbitRotation.js +29 -0
  545. package/umd/Options/Classes/Particles/ParticlesOptions.d.ts +58 -0
  546. package/umd/Options/Classes/Particles/ParticlesOptions.js +153 -0
  547. package/umd/Options/Classes/Particles/Repulse/Repulse.d.ts +13 -0
  548. package/umd/Options/Classes/Particles/Repulse/Repulse.js +46 -0
  549. package/umd/Options/Classes/Particles/Roll/Roll.d.ts +16 -0
  550. package/umd/Options/Classes/Particles/Roll/Roll.js +45 -0
  551. package/umd/Options/Classes/Particles/Roll/RollLight.d.ts +9 -0
  552. package/umd/Options/Classes/Particles/Roll/RollLight.js +31 -0
  553. package/umd/Options/Classes/Particles/Rotate/Rotate.d.ts +13 -0
  554. package/umd/Options/Classes/Particles/Rotate/Rotate.js +38 -0
  555. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +10 -0
  556. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.js +35 -0
  557. package/umd/Options/Classes/Particles/Shadow.d.ts +13 -0
  558. package/umd/Options/Classes/Particles/Shadow.js +48 -0
  559. package/umd/Options/Classes/Particles/Shape/Shape.d.ts +27 -0
  560. package/umd/Options/Classes/Particles/Shape/Shape.js +113 -0
  561. package/umd/Options/Classes/Particles/Size/Size.d.ts +12 -0
  562. package/umd/Options/Classes/Particles/Size/Size.js +43 -0
  563. package/umd/Options/Classes/Particles/Size/SizeAnimation.d.ts +14 -0
  564. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +54 -0
  565. package/umd/Options/Classes/Particles/Stroke.d.ts +11 -0
  566. package/umd/Options/Classes/Particles/Stroke.js +34 -0
  567. package/umd/Options/Classes/Particles/Tilt/Tilt.d.ts +13 -0
  568. package/umd/Options/Classes/Particles/Tilt/Tilt.js +38 -0
  569. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +10 -0
  570. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.js +35 -0
  571. package/umd/Options/Classes/Particles/Twinkle/Twinkle.d.ts +10 -0
  572. package/umd/Options/Classes/Particles/Twinkle/Twinkle.js +28 -0
  573. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +12 -0
  574. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.js +39 -0
  575. package/umd/Options/Classes/Particles/Wobble/Wobble.d.ts +10 -0
  576. package/umd/Options/Classes/Particles/Wobble/Wobble.js +36 -0
  577. package/umd/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
  578. package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +38 -0
  579. package/umd/Options/Classes/Random.d.ts +9 -0
  580. package/umd/Options/Classes/Random.js +31 -0
  581. package/umd/Options/Classes/Responsive.d.ts +12 -0
  582. package/umd/Options/Classes/Responsive.js +41 -0
  583. package/umd/Options/Classes/Theme/Theme.d.ts +12 -0
  584. package/umd/Options/Classes/Theme/Theme.js +34 -0
  585. package/umd/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
  586. package/umd/Options/Classes/Theme/ThemeDefault.js +35 -0
  587. package/umd/Options/Classes/ValueWithRandom.d.ts +10 -0
  588. package/umd/Options/Classes/ValueWithRandom.js +36 -0
  589. package/umd/Options/Interfaces/Background/IBackground.d.ts +9 -0
  590. package/umd/Options/Interfaces/Background/IBackground.js +12 -0
  591. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
  592. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.js +12 -0
  593. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +5 -0
  594. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +12 -0
  595. package/umd/Options/Interfaces/FullScreen/IFullScreen.d.ts +4 -0
  596. package/umd/Options/Interfaces/FullScreen/IFullScreen.js +12 -0
  597. package/umd/Options/Interfaces/IAnimatable.d.ts +4 -0
  598. package/umd/Options/Interfaces/IAnimatable.js +12 -0
  599. package/umd/Options/Interfaces/IAnimatableColor.d.ts +6 -0
  600. package/umd/Options/Interfaces/IAnimatableColor.js +12 -0
  601. package/umd/Options/Interfaces/IAnimatableGradient.d.ts +8 -0
  602. package/umd/Options/Interfaces/IAnimatableGradient.js +12 -0
  603. package/umd/Options/Interfaces/IAnimation.d.ts +6 -0
  604. package/umd/Options/Interfaces/IAnimation.js +12 -0
  605. package/umd/Options/Interfaces/IColorAnimation.d.ts +5 -0
  606. package/umd/Options/Interfaces/IColorAnimation.js +12 -0
  607. package/umd/Options/Interfaces/IHslAnimation.d.ts +6 -0
  608. package/umd/Options/Interfaces/IHslAnimation.js +12 -0
  609. package/umd/Options/Interfaces/IManualParticle.d.ts +7 -0
  610. package/umd/Options/Interfaces/IManualParticle.js +12 -0
  611. package/umd/Options/Interfaces/IOptionLoader.d.ts +4 -0
  612. package/umd/Options/Interfaces/IOptionLoader.js +12 -0
  613. package/umd/Options/Interfaces/IOptions.d.ts +34 -0
  614. package/umd/Options/Interfaces/IOptions.js +12 -0
  615. package/umd/Options/Interfaces/IOptionsColor.d.ts +2 -0
  616. package/umd/Options/Interfaces/IOptionsColor.js +12 -0
  617. package/umd/Options/Interfaces/IOptionsGradient.d.ts +13 -0
  618. package/umd/Options/Interfaces/IOptionsGradient.js +12 -0
  619. package/umd/Options/Interfaces/IRandom.d.ts +4 -0
  620. package/umd/Options/Interfaces/IRandom.js +12 -0
  621. package/umd/Options/Interfaces/IResponsive.d.ts +8 -0
  622. package/umd/Options/Interfaces/IResponsive.js +12 -0
  623. package/umd/Options/Interfaces/IValueWithRandom.d.ts +6 -0
  624. package/umd/Options/Interfaces/IValueWithRandom.js +12 -0
  625. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
  626. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +12 -0
  627. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +11 -0
  628. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +12 -0
  629. package/umd/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
  630. package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +12 -0
  631. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
  632. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +12 -0
  633. package/umd/Options/Interfaces/Interactivity/Events/IParallax.d.ts +5 -0
  634. package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +12 -0
  635. package/umd/Options/Interfaces/Interactivity/IInteractivity.d.ts +9 -0
  636. package/umd/Options/Interfaces/Interactivity/IInteractivity.js +12 -0
  637. package/umd/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +9 -0
  638. package/umd/Options/Interfaces/Interactivity/Modes/IAttract.js +12 -0
  639. package/umd/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +3 -0
  640. package/umd/Options/Interfaces/Interactivity/Modes/IBounce.js +12 -0
  641. package/umd/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +6 -0
  642. package/umd/Options/Interfaces/Interactivity/Modes/IBubble.js +12 -0
  643. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +10 -0
  644. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.js +12 -0
  645. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +4 -0
  646. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.js +12 -0
  647. package/umd/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +8 -0
  648. package/umd/Options/Interfaces/Interactivity/Modes/IConnect.js +12 -0
  649. package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
  650. package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.js +12 -0
  651. package/umd/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +7 -0
  652. package/umd/Options/Interfaces/Interactivity/Modes/IGrab.js +12 -0
  653. package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +7 -0
  654. package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.js +12 -0
  655. package/umd/Options/Interfaces/Interactivity/Modes/ILight.d.ts +6 -0
  656. package/umd/Options/Interfaces/Interactivity/Modes/ILight.js +12 -0
  657. package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +9 -0
  658. package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.js +12 -0
  659. package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +5 -0
  660. package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.js +12 -0
  661. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
  662. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +12 -0
  663. package/umd/Options/Interfaces/Interactivity/Modes/IModes.d.ts +22 -0
  664. package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +12 -0
  665. package/umd/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
  666. package/umd/Options/Interfaces/Interactivity/Modes/IPush.js +12 -0
  667. package/umd/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +4 -0
  668. package/umd/Options/Interfaces/Interactivity/Modes/IRemove.js +12 -0
  669. package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +6 -0
  670. package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.js +12 -0
  671. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +9 -0
  672. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.js +12 -0
  673. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +4 -0
  674. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.js +12 -0
  675. package/umd/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +5 -0
  676. package/umd/Options/Interfaces/Interactivity/Modes/ISlow.js +12 -0
  677. package/umd/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +8 -0
  678. package/umd/Options/Interfaces/Interactivity/Modes/ITrail.js +12 -0
  679. package/umd/Options/Interfaces/Motion/IMotion.d.ts +5 -0
  680. package/umd/Options/Interfaces/Motion/IMotion.js +12 -0
  681. package/umd/Options/Interfaces/Motion/IMotionReduce.d.ts +4 -0
  682. package/umd/Options/Interfaces/Motion/IMotionReduce.js +12 -0
  683. package/umd/Options/Interfaces/Particles/Bounce/IBounce.d.ts +5 -0
  684. package/umd/Options/Interfaces/Particles/Bounce/IBounce.js +12 -0
  685. package/umd/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +9 -0
  686. package/umd/Options/Interfaces/Particles/Collisions/ICollisions.js +12 -0
  687. package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +4 -0
  688. package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +12 -0
  689. package/umd/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +6 -0
  690. package/umd/Options/Interfaces/Particles/Destroy/IDestroy.js +12 -0
  691. package/umd/Options/Interfaces/Particles/Destroy/ISplit.d.ts +10 -0
  692. package/umd/Options/Interfaces/Particles/Destroy/ISplit.js +12 -0
  693. package/umd/Options/Interfaces/Particles/IParticles.d.ts +52 -0
  694. package/umd/Options/Interfaces/Particles/IParticles.js +12 -0
  695. package/umd/Options/Interfaces/Particles/IShadow.d.ts +8 -0
  696. package/umd/Options/Interfaces/Particles/IShadow.js +12 -0
  697. package/umd/Options/Interfaces/Particles/IStroke.d.ts +7 -0
  698. package/umd/Options/Interfaces/Particles/IStroke.js +12 -0
  699. package/umd/Options/Interfaces/Particles/Life/ILife.d.ts +7 -0
  700. package/umd/Options/Interfaces/Particles/Life/ILife.js +12 -0
  701. package/umd/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +4 -0
  702. package/umd/Options/Interfaces/Particles/Life/ILifeDelay.js +12 -0
  703. package/umd/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +4 -0
  704. package/umd/Options/Interfaces/Particles/Life/ILifeDuration.js +12 -0
  705. package/umd/Options/Interfaces/Particles/Links/ILinks.d.ts +17 -0
  706. package/umd/Options/Interfaces/Particles/Links/ILinks.js +12 -0
  707. package/umd/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +6 -0
  708. package/umd/Options/Interfaces/Particles/Links/ILinksShadow.js +12 -0
  709. package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +7 -0
  710. package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.js +12 -0
  711. package/umd/Options/Interfaces/Particles/Move/IAttract.d.ts +8 -0
  712. package/umd/Options/Interfaces/Particles/Move/IAttract.js +12 -0
  713. package/umd/Options/Interfaces/Particles/Move/IMove.d.ts +35 -0
  714. package/umd/Options/Interfaces/Particles/Move/IMove.js +12 -0
  715. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +4 -0
  716. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +12 -0
  717. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +6 -0
  718. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +12 -0
  719. package/umd/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
  720. package/umd/Options/Interfaces/Particles/Move/IOutModes.js +12 -0
  721. package/umd/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
  722. package/umd/Options/Interfaces/Particles/Move/ISpin.js +12 -0
  723. package/umd/Options/Interfaces/Particles/Move/ITrail.d.ts +6 -0
  724. package/umd/Options/Interfaces/Particles/Move/ITrail.js +12 -0
  725. package/umd/Options/Interfaces/Particles/Move/Path/IPath.d.ts +9 -0
  726. package/umd/Options/Interfaces/Particles/Move/Path/IPath.js +12 -0
  727. package/umd/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
  728. package/umd/Options/Interfaces/Particles/Number/IDensity.js +12 -0
  729. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
  730. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +12 -0
  731. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +6 -0
  732. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +12 -0
  733. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +8 -0
  734. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +12 -0
  735. package/umd/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +12 -0
  736. package/umd/Options/Interfaces/Particles/Orbit/IOrbit.js +12 -0
  737. package/umd/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +8 -0
  738. package/umd/Options/Interfaces/Particles/Repulse/IRepulse.js +12 -0
  739. package/umd/Options/Interfaces/Particles/Roll/IRoll.d.ts +12 -0
  740. package/umd/Options/Interfaces/Particles/Roll/IRoll.js +12 -0
  741. package/umd/Options/Interfaces/Particles/Roll/IRollLight.d.ts +4 -0
  742. package/umd/Options/Interfaces/Particles/Roll/IRollLight.js +12 -0
  743. package/umd/Options/Interfaces/Particles/Rotate/IRotate.d.ts +8 -0
  744. package/umd/Options/Interfaces/Particles/Rotate/IRotate.js +12 -0
  745. package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +5 -0
  746. package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.js +12 -0
  747. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
  748. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +12 -0
  749. package/umd/Options/Interfaces/Particles/Shape/IImageShape.d.ts +8 -0
  750. package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +12 -0
  751. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +5 -0
  752. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +12 -0
  753. package/umd/Options/Interfaces/Particles/Shape/IShape.d.ts +16 -0
  754. package/umd/Options/Interfaces/Particles/Shape/IShape.js +12 -0
  755. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +1 -0
  756. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +23 -0
  757. package/umd/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
  758. package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +12 -0
  759. package/umd/Options/Interfaces/Particles/Size/ISize.d.ts +6 -0
  760. package/umd/Options/Interfaces/Particles/Size/ISize.js +12 -0
  761. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +8 -0
  762. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +12 -0
  763. package/umd/Options/Interfaces/Particles/Tilt/ITilt.d.ts +8 -0
  764. package/umd/Options/Interfaces/Particles/Tilt/ITilt.js +12 -0
  765. package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +5 -0
  766. package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.js +12 -0
  767. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +5 -0
  768. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.js +12 -0
  769. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +7 -0
  770. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.js +12 -0
  771. package/umd/Options/Interfaces/Particles/Wobble/IWobble.d.ts +6 -0
  772. package/umd/Options/Interfaces/Particles/Wobble/IWobble.js +12 -0
  773. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +6 -0
  774. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +12 -0
  775. package/umd/Options/Interfaces/Theme/ITheme.d.ts +8 -0
  776. package/umd/Options/Interfaces/Theme/ITheme.js +12 -0
  777. package/umd/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
  778. package/umd/Options/Interfaces/Theme/IThemeDefault.js +12 -0
  779. package/umd/Plugins/Absorbers/AbsorberContainer.d.ts +7 -0
  780. package/umd/Plugins/Absorbers/AbsorberContainer.js +12 -0
  781. package/umd/Plugins/Absorbers/AbsorberInstance.d.ts +33 -0
  782. package/umd/Plugins/Absorbers/AbsorberInstance.js +172 -0
  783. package/umd/Plugins/Absorbers/Absorbers.d.ts +22 -0
  784. package/umd/Plugins/Absorbers/Absorbers.js +128 -0
  785. package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
  786. package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.js +12 -0
  787. package/umd/Plugins/Absorbers/Enums/index.d.ts +1 -0
  788. package/umd/Plugins/Absorbers/Enums/index.js +23 -0
  789. package/umd/Plugins/Absorbers/Options/Classes/Absorber.d.ts +18 -0
  790. package/umd/Plugins/Absorbers/Options/Classes/Absorber.js +57 -0
  791. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +11 -0
  792. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.js +40 -0
  793. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +9 -0
  794. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.js +31 -0
  795. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +13 -0
  796. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.js +12 -0
  797. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +12 -0
  798. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.js +12 -0
  799. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +6 -0
  800. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.js +12 -0
  801. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +4 -0
  802. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.js +12 -0
  803. package/umd/Plugins/Absorbers/index.d.ts +2 -0
  804. package/umd/Plugins/Absorbers/index.js +90 -0
  805. package/umd/Plugins/Emitters/EmitterContainer.d.ts +10 -0
  806. package/umd/Plugins/Emitters/EmitterContainer.js +12 -0
  807. package/umd/Plugins/Emitters/EmitterInstance.d.ts +45 -0
  808. package/umd/Plugins/Emitters/EmitterInstance.js +278 -0
  809. package/umd/Plugins/Emitters/Emitters.d.ts +25 -0
  810. package/umd/Plugins/Emitters/Emitters.js +163 -0
  811. package/umd/Plugins/Emitters/EmittersEngine.d.ts +7 -0
  812. package/umd/Plugins/Emitters/EmittersEngine.js +12 -0
  813. package/umd/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
  814. package/umd/Plugins/Emitters/Enums/EmitterClickMode.js +12 -0
  815. package/umd/Plugins/Emitters/Enums/EmitterShapeType.d.ts +4 -0
  816. package/umd/Plugins/Emitters/Enums/EmitterShapeType.js +12 -0
  817. package/umd/Plugins/Emitters/Enums/index.d.ts +2 -0
  818. package/umd/Plugins/Emitters/Enums/index.js +24 -0
  819. package/umd/Plugins/Emitters/IEmitterShape.d.ts +4 -0
  820. package/umd/Plugins/Emitters/IEmitterShape.js +12 -0
  821. package/umd/Plugins/Emitters/Options/Classes/Emitter.d.ts +28 -0
  822. package/umd/Plugins/Emitters/Options/Classes/Emitter.js +74 -0
  823. package/umd/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +11 -0
  824. package/umd/Plugins/Emitters/Options/Classes/EmitterLife.js +36 -0
  825. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +9 -0
  826. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.js +32 -0
  827. package/umd/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +11 -0
  828. package/umd/Plugins/Emitters/Options/Classes/EmitterSize.js +35 -0
  829. package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +24 -0
  830. package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.js +12 -0
  831. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +6 -0
  832. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.js +12 -0
  833. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +12 -0
  834. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.js +12 -0
  835. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +5 -0
  836. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.js +12 -0
  837. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +5 -0
  838. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.js +12 -0
  839. package/umd/Plugins/Emitters/ShapeManager.d.ts +9 -0
  840. package/umd/Plugins/Emitters/ShapeManager.js +40 -0
  841. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +5 -0
  842. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.js +42 -0
  843. package/umd/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +5 -0
  844. package/umd/Plugins/Emitters/Shapes/Square/SquareShape.js +53 -0
  845. package/umd/Plugins/Emitters/index.d.ts +3 -0
  846. package/umd/Plugins/Emitters/index.js +120 -0
  847. package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  848. package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.js +12 -0
  849. package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  850. package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.js +12 -0
  851. package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +6 -0
  852. package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.js +12 -0
  853. package/umd/Plugins/PolygonMask/Enums/index.d.ts +3 -0
  854. package/umd/Plugins/PolygonMask/Enums/index.js +25 -0
  855. package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +6 -0
  856. package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.js +12 -0
  857. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +24 -0
  858. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.js +76 -0
  859. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +15 -0
  860. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +48 -0
  861. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +11 -0
  862. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +39 -0
  863. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  864. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +27 -0
  865. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  866. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +39 -0
  867. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  868. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +31 -0
  869. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +18 -0
  870. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.js +12 -0
  871. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  872. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +12 -0
  873. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  874. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +12 -0
  875. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  876. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +12 -0
  877. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +6 -0
  878. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +12 -0
  879. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  880. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +12 -0
  881. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +4 -0
  882. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.js +12 -0
  883. package/umd/Plugins/PolygonMask/PolygonMaskInstance.d.ts +38 -0
  884. package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +396 -0
  885. package/umd/Plugins/PolygonMask/Types.d.ts +8 -0
  886. package/umd/Plugins/PolygonMask/Types.js +12 -0
  887. package/umd/Plugins/PolygonMask/Utils.d.ts +11 -0
  888. package/umd/Plugins/PolygonMask/Utils.js +134 -0
  889. package/umd/Plugins/PolygonMask/index.d.ts +2 -0
  890. package/umd/Plugins/PolygonMask/index.js +67 -0
  891. package/umd/Plugins/PolygonMask/pathseg.d.ts +0 -0
  892. package/umd/Plugins/PolygonMask/pathseg.js +1548 -0
  893. package/umd/Shapes/Circle/CircleDrawer.d.ts +5 -0
  894. package/umd/Shapes/Circle/CircleDrawer.js +22 -0
  895. package/umd/Shapes/Circle/index.d.ts +2 -0
  896. package/umd/Shapes/Circle/index.js +18 -0
  897. package/umd/Shapes/Image/ImageDrawer.d.ts +18 -0
  898. package/umd/Shapes/Image/ImageDrawer.js +142 -0
  899. package/umd/Shapes/Image/Utils.d.ts +28 -0
  900. package/umd/Shapes/Image/Utils.js +99 -0
  901. package/umd/Shapes/Image/index.d.ts +2 -0
  902. package/umd/Shapes/Image/index.js +20 -0
  903. package/umd/Shapes/Line/LineDrawer.d.ts +5 -0
  904. package/umd/Shapes/Line/LineDrawer.js +23 -0
  905. package/umd/Shapes/Line/index.d.ts +2 -0
  906. package/umd/Shapes/Line/index.js +18 -0
  907. package/umd/Shapes/Polygon/PolygonDrawer.d.ts +7 -0
  908. package/umd/Shapes/Polygon/PolygonDrawer.js +36 -0
  909. package/umd/Shapes/Polygon/PolygonDrawerBase.d.ts +15 -0
  910. package/umd/Shapes/Polygon/PolygonDrawerBase.js +40 -0
  911. package/umd/Shapes/Polygon/TriangleDrawer.d.ts +8 -0
  912. package/umd/Shapes/Polygon/TriangleDrawer.js +35 -0
  913. package/umd/Shapes/Polygon/index.d.ts +4 -0
  914. package/umd/Shapes/Polygon/index.js +28 -0
  915. package/umd/Shapes/Square/SquareDrawer.d.ts +5 -0
  916. package/umd/Shapes/Square/SquareDrawer.js +23 -0
  917. package/umd/Shapes/Square/index.d.ts +2 -0
  918. package/umd/Shapes/Square/index.js +20 -0
  919. package/umd/Shapes/Star/StarDrawer.d.ts +5 -0
  920. package/umd/Shapes/Star/StarDrawer.js +34 -0
  921. package/umd/Shapes/Star/index.d.ts +2 -0
  922. package/umd/Shapes/Star/index.js +18 -0
  923. package/umd/Shapes/Text/TextDrawer.d.ts +7 -0
  924. package/umd/Shapes/Text/TextDrawer.js +75 -0
  925. package/umd/Shapes/Text/index.d.ts +2 -0
  926. package/umd/Shapes/Text/index.js +21 -0
  927. package/umd/Types/ParticlesGroups.d.ts +4 -0
  928. package/umd/Types/ParticlesGroups.js +12 -0
  929. package/umd/Types/PathOptions.d.ts +3 -0
  930. package/umd/Types/PathOptions.js +12 -0
  931. package/umd/Types/RangeValue.d.ts +2 -0
  932. package/umd/Types/RangeValue.js +12 -0
  933. package/umd/Types/RecursivePartial.d.ts +3 -0
  934. package/umd/Types/RecursivePartial.js +12 -0
  935. package/umd/Types/ShapeData.d.ts +5 -0
  936. package/umd/Types/ShapeData.js +12 -0
  937. package/umd/Types/ShapeDrawerFunctions.d.ts +11 -0
  938. package/umd/Types/ShapeDrawerFunctions.js +12 -0
  939. package/umd/Types/SingleOrMultiple.d.ts +1 -0
  940. package/umd/Types/SingleOrMultiple.js +12 -0
  941. package/umd/Types/index.d.ts +6 -0
  942. package/umd/Types/index.js +28 -0
  943. package/umd/Updaters/Angle/AngleUpdater.d.ts +8 -0
  944. package/umd/Updaters/Angle/AngleUpdater.js +88 -0
  945. package/umd/Updaters/Angle/index.d.ts +2 -0
  946. package/umd/Updaters/Angle/index.js +18 -0
  947. package/umd/Updaters/Color/ColorUpdater.d.ts +8 -0
  948. package/umd/Updaters/Color/ColorUpdater.js +77 -0
  949. package/umd/Updaters/Color/index.d.ts +2 -0
  950. package/umd/Updaters/Color/index.js +18 -0
  951. package/umd/Updaters/Life/LifeUpdater.d.ts +8 -0
  952. package/umd/Updaters/Life/LifeUpdater.js +77 -0
  953. package/umd/Updaters/Life/index.d.ts +2 -0
  954. package/umd/Updaters/Life/index.js +18 -0
  955. package/umd/Updaters/Opacity/OpacityUpdater.d.ts +8 -0
  956. package/umd/Updaters/Opacity/OpacityUpdater.js +129 -0
  957. package/umd/Updaters/Opacity/index.d.ts +2 -0
  958. package/umd/Updaters/Opacity/index.js +18 -0
  959. package/umd/Updaters/OutModes/IBounceData.d.ts +11 -0
  960. package/umd/Updaters/OutModes/IBounceData.js +12 -0
  961. package/umd/Updaters/OutModes/OutOfCanvasUpdater.d.ts +13 -0
  962. package/umd/Updaters/OutModes/OutOfCanvasUpdater.js +156 -0
  963. package/umd/Updaters/OutModes/Utils.d.ts +3 -0
  964. package/umd/Updaters/OutModes/Utils.js +75 -0
  965. package/umd/Updaters/OutModes/index.d.ts +2 -0
  966. package/umd/Updaters/OutModes/index.js +18 -0
  967. package/umd/Updaters/Roll/RollUpdater.d.ts +6 -0
  968. package/umd/Updaters/Roll/RollUpdater.js +73 -0
  969. package/umd/Updaters/Roll/index.d.ts +2 -0
  970. package/umd/Updaters/Roll/index.js +18 -0
  971. package/umd/Updaters/Size/SizeUpdater.d.ts +6 -0
  972. package/umd/Updaters/Size/SizeUpdater.js +86 -0
  973. package/umd/Updaters/Size/index.d.ts +2 -0
  974. package/umd/Updaters/Size/index.js +18 -0
  975. package/umd/Updaters/StrokeColor/StrokeColorUpdater.d.ts +8 -0
  976. package/umd/Updaters/StrokeColor/StrokeColorUpdater.js +94 -0
  977. package/umd/Updaters/StrokeColor/index.d.ts +2 -0
  978. package/umd/Updaters/StrokeColor/index.js +18 -0
  979. package/umd/Updaters/Tilt/TiltUpdater.d.ts +8 -0
  980. package/umd/Updaters/Tilt/TiltUpdater.js +89 -0
  981. package/umd/Updaters/Tilt/index.d.ts +2 -0
  982. package/umd/Updaters/Tilt/index.js +18 -0
  983. package/umd/Updaters/Wobble/WobbleUpdater.d.ts +14 -0
  984. package/umd/Updaters/Wobble/WobbleUpdater.js +61 -0
  985. package/umd/Updaters/Wobble/index.d.ts +2 -0
  986. package/umd/Updaters/Wobble/index.js +18 -0
  987. package/umd/Utils/CanvasUtils.d.ts +19 -0
  988. package/umd/Utils/CanvasUtils.js +297 -0
  989. package/umd/Utils/ColorUtils.d.ts +26 -0
  990. package/umd/Utils/ColorUtils.js +486 -0
  991. package/umd/Utils/NumberUtils.d.ts +23 -0
  992. package/umd/Utils/NumberUtils.js +138 -0
  993. package/umd/Utils/Utils.d.ts +38 -0
  994. package/umd/Utils/Utils.js +279 -0
  995. package/umd/Utils/index.d.ts +4 -0
  996. package/umd/Utils/index.js +26 -0
  997. package/umd/engine.d.ts +26 -0
  998. package/umd/engine.js +108 -0
  999. package/umd/full.d.ts +2 -0
  1000. package/umd/full.js +32 -0
  1001. package/umd/index.d.ts +20 -0
  1002. package/umd/index.engine.d.ts +13 -0
  1003. package/umd/index.engine.js +37 -0
  1004. package/umd/index.js +43 -0
  1005. package/umd/index.slim.d.ts +14 -0
  1006. package/umd/index.slim.js +40 -0
  1007. package/umd/pjs.d.ts +14 -0
  1008. package/umd/pjs.js +36 -0
  1009. package/umd/slim.d.ts +2 -0
  1010. package/umd/slim.js +62 -0
@@ -1,6 +1,7 @@
1
1
  import { FrameManager, Vector } from "./Utils";
2
2
  import type { IAttract, IBubble, IContainerInteractivity, IContainerPlugin, IMovePathGenerator, IRepulse, IShapeDrawer } from "./Interfaces";
3
3
  import { Canvas } from "./Canvas";
4
+ import type { Engine } from "../engine";
4
5
  import type { IOptions } from "../Options/Interfaces/IOptions";
5
6
  import { Options } from "../Options/Classes/Options";
6
7
  import { Particle } from "./Particle";
@@ -8,6 +9,7 @@ import { Particles } from "./Particles";
8
9
  import type { RecursivePartial } from "../Types";
9
10
  import { Retina } from "./Retina";
10
11
  export declare class Container {
12
+ #private;
11
13
  readonly id: string;
12
14
  started: boolean;
13
15
  destroyed: boolean;
@@ -32,7 +34,7 @@ export declare class Container {
32
34
  readonly drawer: FrameManager;
33
35
  readonly drawers: Map<string, IShapeDrawer>;
34
36
  readonly plugins: Map<string, IContainerPlugin>;
35
- readonly pathGenerator: IMovePathGenerator;
37
+ pathGenerator: IMovePathGenerator;
36
38
  private _options;
37
39
  private _sourceOptions;
38
40
  private readonly _initialSourceOptions;
@@ -43,7 +45,7 @@ export declare class Container {
43
45
  private readonly presets;
44
46
  private readonly eventListeners;
45
47
  private readonly intersectionObserver?;
46
- constructor(id: string, sourceOptions?: RecursivePartial<IOptions>, ...presets: string[]);
48
+ constructor(engine: Engine, id: string, sourceOptions?: RecursivePartial<IOptions>, ...presets: string[]);
47
49
  play(force?: boolean): void;
48
50
  pause(): void;
49
51
  draw(force: boolean): void;
package/Core/Container.js CHANGED
@@ -1,4 +1,16 @@
1
1
  "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _Container_engine;
2
14
  Object.defineProperty(exports, "__esModule", { value: true });
3
15
  exports.Container = void 0;
4
16
  const Utils_1 = require("./Utils");
@@ -8,8 +20,10 @@ const Options_1 = require("../Options/Classes/Options");
8
20
  const Particles_1 = require("./Particles");
9
21
  const Retina_1 = require("./Retina");
10
22
  class Container {
11
- constructor(id, sourceOptions, ...presets) {
23
+ constructor(engine, id, sourceOptions, ...presets) {
12
24
  this.id = id;
25
+ _Container_engine.set(this, void 0);
26
+ __classPrivateFieldSet(this, _Container_engine, engine, "f");
13
27
  this.fpsLimit = 120;
14
28
  this.duration = 0;
15
29
  this.lifeTime = 0;
@@ -24,7 +38,7 @@ class Container {
24
38
  this._initialSourceOptions = sourceOptions;
25
39
  this.retina = new Retina_1.Retina(this);
26
40
  this.canvas = new Canvas_1.Canvas(this);
27
- this.particles = new Particles_1.Particles(this);
41
+ this.particles = new Particles_1.Particles(__classPrivateFieldGet(this, _Container_engine, "f"), this);
28
42
  this.drawer = new Utils_1.FrameManager(this);
29
43
  this.presets = presets;
30
44
  this.pathGenerator = {
@@ -51,8 +65,8 @@ class Container {
51
65
  this.plugins = new Map();
52
66
  this.drawers = new Map();
53
67
  this.density = 1;
54
- this._options = new Options_1.Options();
55
- this.actualOptions = new Options_1.Options();
68
+ this._options = new Options_1.Options(__classPrivateFieldGet(this, _Container_engine, "f"));
69
+ this.actualOptions = new Options_1.Options(__classPrivateFieldGet(this, _Container_engine, "f"));
56
70
  this.eventListeners = new Utils_1.EventListeners(this);
57
71
  if (typeof IntersectionObserver !== "undefined" && IntersectionObserver) {
58
72
  this.intersectionObserver = new IntersectionObserver((entries) => this.intersectionManager(entries));
@@ -116,6 +130,7 @@ class Container {
116
130
  this.setPath(noiseOrGenerator, init, update);
117
131
  }
118
132
  setPath(pathOrGenerator, init, update) {
133
+ var _a, _b, _c;
119
134
  if (!pathOrGenerator) {
120
135
  return;
121
136
  }
@@ -129,15 +144,11 @@ class Container {
129
144
  }
130
145
  }
131
146
  else {
132
- if (pathOrGenerator.generate) {
133
- this.pathGenerator.generate = pathOrGenerator.generate;
134
- }
135
- if (pathOrGenerator.init) {
136
- this.pathGenerator.init = pathOrGenerator.init;
137
- }
138
- if (pathOrGenerator.update) {
139
- this.pathGenerator.update = pathOrGenerator.update;
140
- }
147
+ const oldGenerator = this.pathGenerator;
148
+ this.pathGenerator = pathOrGenerator;
149
+ (_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
150
+ (_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
151
+ (_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
141
152
  }
142
153
  }
143
154
  destroy() {
@@ -168,7 +179,7 @@ class Container {
168
179
  return this.start();
169
180
  }
170
181
  reset() {
171
- this._options = new Options_1.Options();
182
+ this._options = new Options_1.Options(__classPrivateFieldGet(this, _Container_engine, "f"));
172
183
  return this.refresh();
173
184
  }
174
185
  stop() {
@@ -310,20 +321,20 @@ class Container {
310
321
  return false;
311
322
  }
312
323
  async init() {
313
- this._options = new Options_1.Options();
324
+ this._options = new Options_1.Options(__classPrivateFieldGet(this, _Container_engine, "f"));
314
325
  for (const preset of this.presets) {
315
- this._options.load(Utils_1.Plugins.getPreset(preset));
326
+ this._options.load(__classPrivateFieldGet(this, _Container_engine, "f").plugins.getPreset(preset));
316
327
  }
317
- const shapes = Utils_1.Plugins.getSupportedShapes();
328
+ const shapes = __classPrivateFieldGet(this, _Container_engine, "f").plugins.getSupportedShapes();
318
329
  for (const type of shapes) {
319
- const drawer = Utils_1.Plugins.getShapeDrawer(type);
330
+ const drawer = __classPrivateFieldGet(this, _Container_engine, "f").plugins.getShapeDrawer(type);
320
331
  if (drawer) {
321
332
  this.drawers.set(type, drawer);
322
333
  }
323
334
  }
324
335
  this._options.load(this._initialSourceOptions);
325
336
  this._options.load(this._sourceOptions);
326
- this.actualOptions = new Options_1.Options();
337
+ this.actualOptions = new Options_1.Options(__classPrivateFieldGet(this, _Container_engine, "f"));
327
338
  this.actualOptions.load(this._options);
328
339
  this.retina.init();
329
340
  this.canvas.init();
@@ -334,7 +345,7 @@ class Container {
334
345
  this.duration = (0, Utils_2.getRangeValue)(this.actualOptions.duration);
335
346
  this.lifeTime = 0;
336
347
  this.fpsLimit = this.actualOptions.fpsLimit > 0 ? this.actualOptions.fpsLimit : 120;
337
- const availablePlugins = Utils_1.Plugins.getAvailablePlugins(this);
348
+ const availablePlugins = __classPrivateFieldGet(this, _Container_engine, "f").plugins.getAvailablePlugins(this);
338
349
  for (const [id, plugin] of availablePlugins) {
339
350
  this.plugins.set(id, plugin);
340
351
  }
@@ -353,18 +364,7 @@ class Container {
353
364
  }
354
365
  const pathOptions = this.actualOptions.particles.move.path;
355
366
  if (pathOptions.generator) {
356
- const customGenerator = Utils_1.Plugins.getPathGenerator(pathOptions.generator);
357
- if (customGenerator) {
358
- if (customGenerator.init) {
359
- this.pathGenerator.init = customGenerator.init;
360
- }
361
- if (customGenerator.generate) {
362
- this.pathGenerator.generate = customGenerator.generate;
363
- }
364
- if (customGenerator.update) {
365
- this.pathGenerator.update = customGenerator.update;
366
- }
367
- }
367
+ this.setPath(__classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
368
368
  }
369
369
  this.particles.init();
370
370
  this.particles.setDensity();
@@ -392,3 +392,4 @@ class Container {
392
392
  }
393
393
  }
394
394
  exports.Container = Container;
395
+ _Container_engine = new WeakMap();
package/Core/Loader.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Container } from "./Container";
2
+ import type { Engine } from "../engine";
2
3
  import type { IOptions } from "../Options/Interfaces/IOptions";
3
4
  import type { Particle } from "./Particle";
4
5
  import type { RecursivePartial } from "../Types";
@@ -16,14 +17,16 @@ interface RemoteLoaderParams {
16
17
  url?: SingleOrMultiple<string>;
17
18
  }
18
19
  export declare class Loader {
19
- static dom(): Container[];
20
- static domItem(index: number): Container | undefined;
21
- static loadOptions(params: LoaderParams): Promise<Container | undefined>;
22
- static loadRemoteOptions(params: RemoteLoaderParams): Promise<Container | undefined>;
23
- static load(tagId: string | SingleOrMultiple<RecursivePartial<IOptions>>, options?: SingleOrMultiple<RecursivePartial<IOptions>> | number, index?: number): Promise<Container | undefined>;
24
- static set(id: string | HTMLElement, domContainer: HTMLElement | SingleOrMultiple<RecursivePartial<IOptions>>, options?: SingleOrMultiple<RecursivePartial<IOptions>> | number, index?: number): Promise<Container | undefined>;
25
- static loadJSON(tagId: string | SingleOrMultiple<string>, jsonUrl?: SingleOrMultiple<string> | number, index?: number): Promise<Container | undefined>;
26
- static setJSON(id: string | HTMLElement, domContainer: HTMLElement | SingleOrMultiple<string>, jsonUrl: SingleOrMultiple<string> | (number | undefined), index?: number): Promise<Container | undefined>;
27
- static setOnClickHandler(callback: (evt: Event, particles?: Particle[]) => void): void;
20
+ #private;
21
+ constructor(engine: Engine);
22
+ dom(): Container[];
23
+ domItem(index: number): Container | undefined;
24
+ loadOptions(params: LoaderParams): Promise<Container | undefined>;
25
+ loadRemoteOptions(params: RemoteLoaderParams): Promise<Container | undefined>;
26
+ load(tagId: string | SingleOrMultiple<RecursivePartial<IOptions>>, options?: SingleOrMultiple<RecursivePartial<IOptions>> | number, index?: number): Promise<Container | undefined>;
27
+ set(id: string | HTMLElement, domContainer: HTMLElement | SingleOrMultiple<RecursivePartial<IOptions>>, options?: SingleOrMultiple<RecursivePartial<IOptions>> | number, index?: number): Promise<Container | undefined>;
28
+ loadJSON(tagId: string | SingleOrMultiple<string>, jsonUrl?: SingleOrMultiple<string> | number, index?: number): Promise<Container | undefined>;
29
+ setJSON(id: string | HTMLElement, domContainer: HTMLElement | SingleOrMultiple<string>, jsonUrl: SingleOrMultiple<string> | (number | undefined), index?: number): Promise<Container | undefined>;
30
+ setOnClickHandler(callback: (evt: Event, particles?: Particle[]) => void): void;
28
31
  }
29
32
  export {};
package/Core/Loader.js CHANGED
@@ -1,27 +1,42 @@
1
1
  "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _Loader_engine;
2
14
  Object.defineProperty(exports, "__esModule", { value: true });
3
15
  exports.Loader = void 0;
4
16
  const Utils_1 = require("./Utils");
5
17
  const Container_1 = require("./Container");
6
18
  const Utils_2 = require("../Utils");
7
- const tsParticlesDom = [];
8
19
  function fetchError(statusCode) {
9
20
  console.error(`Error tsParticles - fetch status: ${statusCode}`);
10
21
  console.error("Error tsParticles - File config not found");
11
22
  }
12
23
  class Loader {
13
- static dom() {
14
- return tsParticlesDom;
24
+ constructor(engine) {
25
+ _Loader_engine.set(this, void 0);
26
+ __classPrivateFieldSet(this, _Loader_engine, engine, "f");
15
27
  }
16
- static domItem(index) {
17
- const dom = Loader.dom();
28
+ dom() {
29
+ return __classPrivateFieldGet(this, _Loader_engine, "f").domArray;
30
+ }
31
+ domItem(index) {
32
+ const dom = this.dom();
18
33
  const item = dom[index];
19
34
  if (item && !item.destroyed) {
20
35
  return item;
21
36
  }
22
37
  dom.splice(index, 1);
23
38
  }
24
- static async loadOptions(params) {
39
+ async loadOptions(params) {
25
40
  var _a, _b, _c;
26
41
  const tagId = (_a = params.tagId) !== null && _a !== void 0 ? _a : `tsparticles${Math.floor(Math.random() * 10000)}`;
27
42
  const { options, index } = params;
@@ -32,10 +47,10 @@ class Loader {
32
47
  (_c = document.querySelector("body")) === null || _c === void 0 ? void 0 : _c.append(domContainer);
33
48
  }
34
49
  const currentOptions = options instanceof Array ? (0, Utils_2.itemFromArray)(options, index) : options;
35
- const dom = Loader.dom();
50
+ const dom = this.dom();
36
51
  const oldIndex = dom.findIndex((v) => v.id === tagId);
37
52
  if (oldIndex >= 0) {
38
- const old = Loader.domItem(oldIndex);
53
+ const old = this.domItem(oldIndex);
39
54
  if (old && !old.destroyed) {
40
55
  old.destroy();
41
56
  dom.splice(oldIndex, 1);
@@ -60,7 +75,7 @@ class Loader {
60
75
  domContainer.appendChild(canvasEl);
61
76
  }
62
77
  }
63
- const newItem = new Container_1.Container(tagId, currentOptions);
78
+ const newItem = new Container_1.Container(__classPrivateFieldGet(this, _Loader_engine, "f"), tagId, currentOptions);
64
79
  if (oldIndex >= 0) {
65
80
  dom.splice(oldIndex, 0, newItem);
66
81
  }
@@ -71,7 +86,7 @@ class Loader {
71
86
  await newItem.start();
72
87
  return newItem;
73
88
  }
74
- static async loadRemoteOptions(params) {
89
+ async loadRemoteOptions(params) {
75
90
  const { url: jsonUrl, index } = params;
76
91
  const url = jsonUrl instanceof Array ? (0, Utils_2.itemFromArray)(jsonUrl, index) : jsonUrl;
77
92
  if (!url) {
@@ -83,14 +98,14 @@ class Loader {
83
98
  return;
84
99
  }
85
100
  const data = await response.json();
86
- return await Loader.loadOptions({
101
+ return this.loadOptions({
87
102
  tagId: params.tagId,
88
103
  element: params.element,
89
104
  index,
90
105
  options: data,
91
106
  });
92
107
  }
93
- static load(tagId, options, index) {
108
+ load(tagId, options, index) {
94
109
  const params = { index };
95
110
  if (typeof tagId === "string") {
96
111
  params.tagId = tagId;
@@ -106,7 +121,7 @@ class Loader {
106
121
  }
107
122
  return this.loadOptions(params);
108
123
  }
109
- static async set(id, domContainer, options, index) {
124
+ async set(id, domContainer, options, index) {
110
125
  const params = { index };
111
126
  if (typeof id === "string") {
112
127
  params.tagId = id;
@@ -128,7 +143,7 @@ class Loader {
128
143
  }
129
144
  return this.loadOptions(params);
130
145
  }
131
- static async loadJSON(tagId, jsonUrl, index) {
146
+ async loadJSON(tagId, jsonUrl, index) {
132
147
  let url, id;
133
148
  if (typeof jsonUrl === "number" || jsonUrl === undefined) {
134
149
  url = tagId;
@@ -137,9 +152,9 @@ class Loader {
137
152
  id = tagId;
138
153
  url = jsonUrl;
139
154
  }
140
- return await Loader.loadRemoteOptions({ tagId: id, url, index });
155
+ return this.loadRemoteOptions({ tagId: id, url, index });
141
156
  }
142
- static async setJSON(id, domContainer, jsonUrl, index) {
157
+ async setJSON(id, domContainer, jsonUrl, index) {
143
158
  let url, newId, newIndex, element;
144
159
  if (id instanceof HTMLElement) {
145
160
  element = id;
@@ -152,10 +167,10 @@ class Loader {
152
167
  url = jsonUrl;
153
168
  newIndex = index;
154
169
  }
155
- return await Loader.loadRemoteOptions({ tagId: newId, url, index: newIndex, element });
170
+ return this.loadRemoteOptions({ tagId: newId, url, index: newIndex, element });
156
171
  }
157
- static setOnClickHandler(callback) {
158
- const dom = Loader.dom();
172
+ setOnClickHandler(callback) {
173
+ const dom = this.dom();
159
174
  if (dom.length === 0) {
160
175
  throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");
161
176
  }
@@ -165,3 +180,4 @@ class Loader {
165
180
  }
166
181
  }
167
182
  exports.Loader = Loader;
183
+ _Loader_engine = new WeakMap();
@@ -2,11 +2,13 @@ import { ShapeType } from "../Enums";
2
2
  import type { IBubbleParticleData, ICoordinates, ICoordinates3d, IDelta, IHsl, IParticle, IParticleGradientAnimation, IParticleHslAnimation, IParticleLife, IParticleNumericValueAnimation, IParticleRetinaProps, IParticleRoll, IParticleSpin, IParticleTiltValueAnimation, IParticleValueAnimation, IParticleWobble, IRgb, IShapeValues } from "./Interfaces";
3
3
  import { Vector, Vector3d } from "./Utils";
4
4
  import type { Container } from "./Container";
5
+ import type { Engine } from "../engine";
5
6
  import type { IParticles } from "../Options/Interfaces/Particles/IParticles";
6
7
  import { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions";
7
8
  import type { RecursivePartial } from "../Types";
8
9
  import type { Stroke } from "../Options/Classes/Particles/Stroke";
9
10
  export declare class Particle implements IParticle {
11
+ #private;
10
12
  readonly id: number;
11
13
  readonly container: Container;
12
14
  readonly group?: string | undefined;
@@ -49,7 +51,7 @@ export declare class Particle implements IParticle {
49
51
  readonly bubble: IBubbleParticleData;
50
52
  readonly zIndexFactor: number;
51
53
  readonly retina: IParticleRetinaProps;
52
- constructor(id: number, container: Container, position?: ICoordinates, overrideOptions?: RecursivePartial<IParticles>, group?: string | undefined);
54
+ constructor(engine: Engine, id: number, container: Container, position?: ICoordinates, overrideOptions?: RecursivePartial<IParticles>, group?: string | undefined);
53
55
  isVisible(): boolean;
54
56
  isInsideCanvas(): boolean;
55
57
  draw(delta: IDelta): void;
package/Core/Particle.js CHANGED
@@ -1,4 +1,16 @@
1
1
  "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _Particle_engine;
2
14
  Object.defineProperty(exports, "__esModule", { value: true });
3
15
  exports.Particle = void 0;
4
16
  const Utils_1 = require("./Utils");
@@ -16,11 +28,13 @@ const fixOutMode = (data) => {
16
28
  }
17
29
  };
18
30
  class Particle {
19
- constructor(id, container, position, overrideOptions, group) {
31
+ constructor(engine, id, container, position, overrideOptions, group) {
20
32
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
21
33
  this.id = id;
22
34
  this.container = container;
23
35
  this.group = group;
36
+ _Particle_engine.set(this, void 0);
37
+ __classPrivateFieldSet(this, _Particle_engine, engine, "f");
24
38
  this.fill = true;
25
39
  this.close = true;
26
40
  this.lastPathTime = 0;
@@ -118,7 +132,7 @@ class Particle {
118
132
  this.sides = 24;
119
133
  let drawer = container.drawers.get(this.shape);
120
134
  if (!drawer) {
121
- drawer = Utils_1.Plugins.getShapeDrawer(this.shape);
135
+ drawer = __classPrivateFieldGet(this, _Particle_engine, "f").plugins.getShapeDrawer(this.shape);
122
136
  if (drawer) {
123
137
  container.drawers.set(this.shape, drawer);
124
138
  }
@@ -367,3 +381,4 @@ class Particle {
367
381
  }
368
382
  }
369
383
  exports.Particle = Particle;
384
+ _Particle_engine = new WeakMap();
@@ -1,10 +1,12 @@
1
1
  import type { ICoordinates, IDelta, IMouseData, IParticle, IRgb } from "./Interfaces";
2
2
  import { QuadTree } from "./Utils";
3
3
  import type { Container } from "./Container";
4
+ import type { Engine } from "../engine";
4
5
  import type { IParticles } from "../Options/Interfaces/Particles/IParticles";
5
6
  import { Particle } from "./Particle";
6
7
  import type { RecursivePartial } from "../Types";
7
8
  export declare class Particles {
9
+ #private;
8
10
  private readonly container;
9
11
  get count(): number;
10
12
  quadTree: QuadTree;
@@ -22,7 +24,7 @@ export declare class Particles {
22
24
  private nextId;
23
25
  private readonly freqs;
24
26
  private readonly mover;
25
- constructor(container: Container);
27
+ constructor(engine: Engine, container: Container);
26
28
  init(): void;
27
29
  redraw(): void;
28
30
  removeAt(index: number, quantity?: number, group?: string, override?: boolean): void;
package/Core/Particles.js CHANGED
@@ -1,4 +1,16 @@
1
1
  "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _Particles_engine;
2
14
  Object.defineProperty(exports, "__esModule", { value: true });
3
15
  exports.Particles = void 0;
4
16
  const Utils_1 = require("./Utils");
@@ -6,8 +18,10 @@ const Utils_2 = require("../Utils");
6
18
  const Particle_1 = require("./Particle");
7
19
  const ParticlesOptions_1 = require("../Options/Classes/Particles/ParticlesOptions");
8
20
  class Particles {
9
- constructor(container) {
21
+ constructor(engine, container) {
10
22
  this.container = container;
23
+ _Particles_engine.set(this, void 0);
24
+ __classPrivateFieldSet(this, _Particles_engine, engine, "f");
11
25
  this.nextId = 0;
12
26
  this.array = [];
13
27
  this.zArray = [];
@@ -19,11 +33,11 @@ class Particles {
19
33
  links: new Map(),
20
34
  triangles: new Map(),
21
35
  };
22
- this.interactionManager = new Utils_1.InteractionManager(container);
36
+ this.interactionManager = new Utils_1.InteractionManager(__classPrivateFieldGet(this, _Particles_engine, "f"), container);
23
37
  const canvasSize = this.container.canvas.size;
24
38
  this.linksColors = new Map();
25
39
  this.quadTree = new Utils_1.QuadTree(new Utils_1.Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, (canvasSize.width * 3) / 2, (canvasSize.height * 3) / 2), 4);
26
- this.updaters = Utils_1.Plugins.getUpdaters(container, true);
40
+ this.updaters = __classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
27
41
  }
28
42
  get count() {
29
43
  return this.array.length;
@@ -37,7 +51,7 @@ class Particles {
37
51
  this.freqs.links = new Map();
38
52
  this.freqs.triangles = new Map();
39
53
  let handled = false;
40
- this.updaters = Utils_1.Plugins.getUpdaters(container, true);
54
+ this.updaters = __classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
41
55
  this.interactionManager.init();
42
56
  for (const [, plugin] of container.plugins) {
43
57
  if (plugin.particlesInitialization !== undefined) {
@@ -284,7 +298,7 @@ class Particles {
284
298
  }
285
299
  pushParticle(position, overrideOptions, group, initializer) {
286
300
  try {
287
- const particle = new Particle_1.Particle(this.nextId, this.container, position, overrideOptions, group);
301
+ const particle = new Particle_1.Particle(__classPrivateFieldGet(this, _Particles_engine, "f"), this.nextId, this.container, position, overrideOptions, group);
288
302
  let canAdd = true;
289
303
  if (initializer) {
290
304
  canAdd = initializer(particle);
@@ -304,3 +318,4 @@ class Particles {
304
318
  }
305
319
  }
306
320
  exports.Particles = Particles;
321
+ _Particles_engine = new WeakMap();
@@ -1,11 +1,13 @@
1
1
  import type { IDelta } from "../Interfaces";
2
2
  import type { Container } from "../Container";
3
+ import type { Engine } from "../../engine";
3
4
  import type { Particle } from "../Particle";
4
5
  export declare class InteractionManager {
6
+ #private;
5
7
  private readonly container;
6
8
  private externalInteractors;
7
9
  private particleInteractors;
8
- constructor(container: Container);
10
+ constructor(engine: Engine, container: Container);
9
11
  init(): void;
10
12
  externalInteract(delta: IDelta): void;
11
13
  particlesInteract(particle: Particle, delta: IDelta): void;
@@ -1,16 +1,29 @@
1
1
  "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _InteractionManager_engine;
2
14
  Object.defineProperty(exports, "__esModule", { value: true });
3
15
  exports.InteractionManager = void 0;
4
- const Utils_1 = require("../Utils");
5
16
  class InteractionManager {
6
- constructor(container) {
17
+ constructor(engine, container) {
7
18
  this.container = container;
19
+ _InteractionManager_engine.set(this, void 0);
20
+ __classPrivateFieldSet(this, _InteractionManager_engine, engine, "f");
8
21
  this.externalInteractors = [];
9
22
  this.particleInteractors = [];
10
23
  this.init();
11
24
  }
12
25
  init() {
13
- const interactors = Utils_1.Plugins.getInteractors(this.container, true);
26
+ const interactors = __classPrivateFieldGet(this, _InteractionManager_engine, "f").plugins.getInteractors(this.container, true);
14
27
  this.externalInteractors = [];
15
28
  this.particleInteractors = [];
16
29
  for (const interactor of interactors) {
@@ -43,3 +56,4 @@ class InteractionManager {
43
56
  }
44
57
  }
45
58
  exports.InteractionManager = InteractionManager;
59
+ _InteractionManager_engine = new WeakMap();
@@ -1,22 +1,36 @@
1
1
  import type { IContainerPlugin, IInteractor, IMovePathGenerator, IParticleUpdater, IPlugin, IShapeDrawer } from "../Interfaces";
2
2
  import type { Container } from "../Container";
3
+ import type { Engine } from "../../engine";
3
4
  import type { IOptions } from "../../Options/Interfaces/IOptions";
4
5
  import type { Options } from "../../Options/Classes/Options";
5
6
  import type { RecursivePartial } from "../../Types";
7
+ declare type InteractorInitializer = (container: Container) => IInteractor;
8
+ declare type UpdaterInitializer = (container: Container) => IParticleUpdater;
6
9
  export declare class Plugins {
7
- static getPlugin(plugin: string): IPlugin | undefined;
8
- static addPlugin(plugin: IPlugin): void;
9
- static getAvailablePlugins(container: Container): Map<string, IContainerPlugin>;
10
- static loadOptions(options: Options, sourceOptions: RecursivePartial<IOptions>): void;
11
- static getPreset(preset: string): RecursivePartial<IOptions> | undefined;
12
- static addPreset(presetKey: string, options: RecursivePartial<IOptions>, override?: boolean): void;
13
- static addShapeDrawer(type: string, drawer: IShapeDrawer): void;
14
- static getShapeDrawer(type: string): IShapeDrawer | undefined;
15
- static getSupportedShapes(): IterableIterator<string>;
16
- static getPathGenerator(type: string): IMovePathGenerator | undefined;
17
- static addPathGenerator(type: string, pathGenerator: IMovePathGenerator): void;
18
- static getInteractors(container: Container, force?: boolean): IInteractor[];
19
- static addInteractor(name: string, initInteractor: (container: Container) => IInteractor): void;
20
- static getUpdaters(container: Container, force?: boolean): IParticleUpdater[];
21
- static addParticleUpdater(name: string, initUpdater: (container: Container) => IParticleUpdater): void;
10
+ #private;
11
+ readonly plugins: IPlugin[];
12
+ readonly interactorsInitializers: Map<string, InteractorInitializer>;
13
+ readonly updatersInitializers: Map<string, UpdaterInitializer>;
14
+ readonly interactors: Map<Container, IInteractor[]>;
15
+ readonly updaters: Map<Container, IParticleUpdater[]>;
16
+ readonly presets: Map<string, RecursivePartial<IOptions>>;
17
+ readonly drawers: Map<string, IShapeDrawer>;
18
+ readonly pathGenerators: Map<string, IMovePathGenerator>;
19
+ constructor(engine: Engine);
20
+ getPlugin(plugin: string): IPlugin | undefined;
21
+ addPlugin(plugin: IPlugin): void;
22
+ getAvailablePlugins(container: Container): Map<string, IContainerPlugin>;
23
+ loadOptions(options: Options, sourceOptions: RecursivePartial<IOptions>): void;
24
+ getPreset(preset: string): RecursivePartial<IOptions> | undefined;
25
+ addPreset(presetKey: string, options: RecursivePartial<IOptions>, override?: boolean): void;
26
+ addShapeDrawer(type: string, drawer: IShapeDrawer): void;
27
+ getShapeDrawer(type: string): IShapeDrawer | undefined;
28
+ getSupportedShapes(): IterableIterator<string>;
29
+ getPathGenerator(type: string): IMovePathGenerator | undefined;
30
+ addPathGenerator(type: string, pathGenerator: IMovePathGenerator): void;
31
+ getInteractors(container: Container, force?: boolean): IInteractor[];
32
+ addInteractor(name: string, initInteractor: (container: Container) => IInteractor): void;
33
+ getUpdaters(container: Container, force?: boolean): IParticleUpdater[];
34
+ addParticleUpdater(name: string, initUpdater: (container: Container) => IParticleUpdater): void;
22
35
  }
36
+ export {};