tsparticles 1.40.2 → 1.41.3

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