tsparticles 1.38.0 → 1.39.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 (1004) hide show
  1. package/Core/Canvas.js +28 -28
  2. package/Core/Container.d.ts +2 -3
  3. package/Core/Container.js +7 -8
  4. package/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  5. package/Core/Interfaces/IMovePathGenerator.d.ts +1 -1
  6. package/Core/Interfaces/IParticle.d.ts +1 -1
  7. package/Core/Interfaces/index.d.ts +3 -1
  8. package/Core/Interfaces/index.js +3 -1
  9. package/Core/Loader.js +4 -3
  10. package/Core/Particle.d.ts +2 -5
  11. package/Core/Particle.js +16 -18
  12. package/Core/Particles.d.ts +1 -1
  13. package/Core/Particles.js +13 -19
  14. package/{Utils → Core/Utils}/Circle.d.ts +1 -1
  15. package/{Utils → Core/Utils}/Circle.js +2 -2
  16. package/{esm → Core}/Utils/CircleWarp.d.ts +1 -2
  17. package/{Utils → Core/Utils}/CircleWarp.js +0 -0
  18. package/{Utils → Core/Utils}/Constants.d.ts +0 -0
  19. package/{Utils → Core/Utils}/Constants.js +0 -0
  20. package/{Utils → Core/Utils}/EventListeners.d.ts +1 -1
  21. package/{Utils → Core/Utils}/EventListeners.js +10 -11
  22. package/Core/{ExternalInteractorBase.d.ts → Utils/ExternalInteractorBase.d.ts} +4 -4
  23. package/Core/{ExternalInteractorBase.js → Utils/ExternalInteractorBase.js} +1 -2
  24. package/{esm/Core → Core/Utils}/FrameManager.d.ts +1 -1
  25. package/Core/{FrameManager.js → Utils/FrameManager.js} +0 -0
  26. package/{esm/Core → Core/Utils}/InteractionManager.d.ts +3 -3
  27. package/Core/{InteractionManager.js → Utils/InteractionManager.js} +2 -3
  28. package/{esm/Core → Core/Utils}/ParticlesInteractorBase.d.ts +4 -4
  29. package/Core/{ParticlesInteractorBase.js → Utils/ParticlesInteractorBase.js} +1 -2
  30. package/{esm/Core/Particle/Mover.d.ts → Core/Utils/ParticlesMover.d.ts} +1 -1
  31. package/Core/{Particle/Mover.js → Utils/ParticlesMover.js} +6 -7
  32. package/{esm → Core}/Utils/Plugins.d.ts +5 -5
  33. package/{Utils → Core/Utils}/Plugins.js +0 -0
  34. package/{Utils → Core/Utils}/Point.d.ts +2 -2
  35. package/{Utils → Core/Utils}/Point.js +0 -0
  36. package/{Utils → Core/Utils}/QuadTree.d.ts +3 -3
  37. package/{Utils → Core/Utils}/QuadTree.js +2 -2
  38. package/{esm → Core}/Utils/Range.d.ts +1 -1
  39. package/{Utils → Core/Utils}/Range.js +0 -0
  40. package/{esm → Core}/Utils/Rectangle.d.ts +1 -2
  41. package/{Utils → Core/Utils}/Rectangle.js +0 -0
  42. package/Core/{Particle → Utils}/Vector.d.ts +0 -0
  43. package/Core/{Particle → Utils}/Vector.js +0 -0
  44. package/Core/{Particle → Utils}/Vector3d.d.ts +0 -0
  45. package/Core/{Particle → Utils}/Vector3d.js +0 -0
  46. package/Core/Utils/index.d.ts +16 -0
  47. package/Core/Utils/index.js +28 -0
  48. package/Core/index.d.ts +8 -0
  49. package/Core/index.js +20 -0
  50. package/Enums/AnimationStatus.d.ts +1 -1
  51. package/Enums/AnimationStatus.js +0 -6
  52. package/Enums/Directions/MoveDirection.d.ts +1 -1
  53. package/Enums/Directions/MoveDirection.js +0 -13
  54. package/Enums/Directions/OutModeDirection.d.ts +1 -1
  55. package/Enums/Directions/OutModeDirection.js +0 -8
  56. package/Enums/Directions/RotateDirection.d.ts +1 -1
  57. package/Enums/Directions/RotateDirection.js +0 -7
  58. package/Enums/Directions/TiltDirection.d.ts +1 -1
  59. package/Enums/Directions/TiltDirection.js +0 -7
  60. package/Enums/InteractivityDetect.d.ts +1 -1
  61. package/Enums/InteractivityDetect.js +0 -7
  62. package/Enums/Modes/ClickMode.d.ts +1 -1
  63. package/Enums/Modes/ClickMode.js +0 -11
  64. package/Enums/Modes/CollisionMode.d.ts +1 -1
  65. package/Enums/Modes/CollisionMode.js +0 -7
  66. package/Enums/Modes/DestroyMode.d.ts +1 -1
  67. package/Enums/Modes/DestroyMode.js +0 -6
  68. package/Enums/Modes/DivMode.d.ts +1 -1
  69. package/Enums/Modes/DivMode.js +0 -7
  70. package/Enums/Modes/HoverMode.d.ts +1 -1
  71. package/Enums/Modes/HoverMode.js +0 -13
  72. package/Enums/Modes/OutMode.d.ts +1 -1
  73. package/Enums/Modes/OutMode.js +0 -11
  74. package/Enums/Modes/ResponsiveMode.d.ts +1 -1
  75. package/Enums/Modes/ResponsiveMode.js +0 -6
  76. package/Enums/Modes/RollMode.d.ts +1 -1
  77. package/Enums/Modes/RollMode.js +0 -7
  78. package/Enums/Modes/SizeMode.d.ts +1 -1
  79. package/Enums/Modes/SizeMode.js +0 -6
  80. package/Enums/Modes/ThemeMode.d.ts +1 -1
  81. package/Enums/Modes/ThemeMode.js +0 -7
  82. package/Enums/Types/AlterType.d.ts +1 -1
  83. package/Enums/Types/AlterType.js +0 -6
  84. package/Enums/Types/DestroyType.d.ts +1 -1
  85. package/Enums/Types/DestroyType.js +0 -7
  86. package/Enums/Types/DivType.d.ts +1 -1
  87. package/Enums/Types/DivType.js +0 -6
  88. package/Enums/Types/EasingType.d.ts +1 -1
  89. package/Enums/Types/EasingType.js +0 -12
  90. package/Enums/Types/GradientType.d.ts +1 -1
  91. package/Enums/Types/GradientType.js +0 -7
  92. package/Enums/Types/InteractorType.d.ts +1 -1
  93. package/Enums/Types/InteractorType.js +0 -6
  94. package/Enums/Types/OrbitType.d.ts +1 -1
  95. package/Enums/Types/OrbitType.js +0 -6
  96. package/Enums/Types/ShapeType.d.ts +1 -1
  97. package/Enums/Types/ShapeType.js +0 -15
  98. package/Enums/Types/StartValueType.d.ts +1 -1
  99. package/Enums/Types/StartValueType.js +0 -7
  100. package/Interactions/External/Attract/Attractor.d.ts +2 -2
  101. package/Interactions/External/Attract/Attractor.js +9 -11
  102. package/Interactions/External/Attract/index.d.ts +2 -2
  103. package/Interactions/External/Bounce/Bouncer.d.ts +2 -2
  104. package/Interactions/External/Bounce/Bouncer.js +15 -17
  105. package/Interactions/External/Bounce/index.d.ts +2 -2
  106. package/Interactions/External/Bubble/Bubbler.d.ts +3 -3
  107. package/Interactions/External/Bubble/Bubbler.js +20 -22
  108. package/Interactions/External/Bubble/ProcessBubbleType.d.ts +1 -1
  109. package/Interactions/External/Bubble/ProcessBubbleType.js +0 -7
  110. package/Interactions/External/Bubble/index.d.ts +2 -2
  111. package/Interactions/External/Connect/Connector.d.ts +2 -2
  112. package/Interactions/External/Connect/Connector.js +3 -4
  113. package/Interactions/External/Connect/index.d.ts +2 -2
  114. package/Interactions/External/Grab/Grabber.d.ts +2 -2
  115. package/Interactions/External/Grab/Grabber.js +4 -5
  116. package/Interactions/External/Grab/index.d.ts +2 -2
  117. package/Interactions/External/Repulse/Repulser.d.ts +2 -2
  118. package/Interactions/External/Repulse/Repulser.js +15 -17
  119. package/Interactions/External/Repulse/index.d.ts +2 -2
  120. package/Interactions/External/Trail/TrailMaker.d.ts +2 -3
  121. package/Interactions/External/Trail/TrailMaker.js +4 -5
  122. package/Interactions/External/Trail/index.d.ts +2 -2
  123. package/Interactions/Particles/Attract/Attractor.d.ts +2 -4
  124. package/Interactions/Particles/Attract/Attractor.js +2 -2
  125. package/Interactions/Particles/Attract/index.d.ts +2 -2
  126. package/Interactions/Particles/Collisions/Collider.d.ts +2 -3
  127. package/Interactions/Particles/Collisions/Collider.js +5 -6
  128. package/Interactions/Particles/Collisions/index.d.ts +2 -2
  129. package/Interactions/Particles/Links/LinkInstance.d.ts +1 -3
  130. package/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  131. package/Interactions/Particles/Links/Linker.d.ts +3 -4
  132. package/Interactions/Particles/Links/Linker.js +4 -4
  133. package/Interactions/Particles/Links/index.d.ts +2 -3
  134. package/Interactions/Particles/Links/index.js +3 -7
  135. package/Interactions/Particles/Links/interaction.d.ts +2 -0
  136. package/Interactions/Particles/Links/interaction.js +8 -0
  137. package/Interactions/Particles/Links/plugin.d.ts +2 -2
  138. package/Interactions/Particles/Links/plugin.js +2 -2
  139. package/Options/Classes/AnimatableGradient.js +3 -4
  140. package/Options/Classes/Interactivity/Events/DivEvent.js +1 -2
  141. package/Options/Classes/Interactivity/Interactivity.js +5 -6
  142. package/Options/Classes/Interactivity/Modes/Attract.js +1 -2
  143. package/Options/Classes/Interactivity/Modes/RepulseBase.js +1 -2
  144. package/Options/Classes/Options.js +8 -8
  145. package/Options/Classes/Particles/Collisions/Collisions.js +1 -2
  146. package/Options/Classes/Particles/Destroy/Destroy.js +1 -2
  147. package/Options/Classes/Particles/Move/Move.js +1 -2
  148. package/Options/Classes/Particles/Move/OutModes.js +1 -2
  149. package/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -3
  150. package/Options/Classes/Particles/Roll/Roll.js +1 -2
  151. package/Options/Classes/Particles/Rotate/Rotate.js +1 -2
  152. package/Options/Classes/Particles/Shape/Shape.js +13 -14
  153. package/Options/Classes/Particles/Size/SizeAnimation.js +2 -3
  154. package/Options/Classes/Particles/Tilt/Tilt.js +1 -2
  155. package/Options/Classes/Responsive.js +4 -5
  156. package/Options/Classes/Theme/ThemeDefault.js +1 -2
  157. package/Plugins/Absorbers/AbsorberContainer.d.ts +1 -1
  158. package/Plugins/Absorbers/AbsorberInstance.d.ts +2 -4
  159. package/Plugins/Absorbers/AbsorberInstance.js +9 -10
  160. package/Plugins/Absorbers/Absorbers.d.ts +1 -4
  161. package/Plugins/Absorbers/Absorbers.js +1 -2
  162. package/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +1 -1
  163. package/Plugins/Absorbers/Enums/AbsorberClickMode.js +0 -5
  164. package/Plugins/Absorbers/index.d.ts +2 -0
  165. package/Plugins/Absorbers/{plugin.js → index.js} +3 -4
  166. package/Plugins/Emitters/EmitterContainer.d.ts +1 -1
  167. package/Plugins/Emitters/EmitterInstance.d.ts +1 -2
  168. package/Plugins/Emitters/EmitterInstance.js +3 -4
  169. package/Plugins/Emitters/Emitters.d.ts +1 -2
  170. package/Plugins/Emitters/Emitters.js +1 -2
  171. package/Plugins/Emitters/EmittersMain.d.ts +2 -2
  172. package/Plugins/Emitters/Enums/EmitterClickMode.d.ts +1 -1
  173. package/Plugins/Emitters/Enums/EmitterClickMode.js +0 -5
  174. package/Plugins/Emitters/Enums/EmitterShapeType.d.ts +1 -1
  175. package/Plugins/Emitters/Enums/EmitterShapeType.js +0 -6
  176. package/Plugins/Emitters/IEmitterShape.d.ts +1 -1
  177. package/Plugins/Emitters/Options/Classes/Emitter.js +1 -2
  178. package/Plugins/Emitters/Options/Classes/EmitterSize.js +1 -2
  179. package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  180. package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  181. package/Plugins/Emitters/{plugin.d.ts → index.d.ts} +0 -0
  182. package/Plugins/Emitters/{plugin.js → index.js} +3 -4
  183. package/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  184. package/Plugins/PolygonMask/{Options/Interfaces/IDraw.js → Enums/PolygonMaskInlineArrangement.js} +0 -0
  185. package/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  186. package/Plugins/PolygonMask/{Options/Interfaces/IDrawStroke.js → Enums/PolygonMaskMoveType.js} +0 -0
  187. package/{esm/Plugins/PolygonMask/Enums/Type.d.ts → Plugins/PolygonMask/Enums/PolygonMaskType.d.ts} +1 -1
  188. package/Plugins/PolygonMask/{Options/Interfaces/IInline.js → Enums/PolygonMaskType.js} +0 -0
  189. package/Plugins/PolygonMask/Enums/index.d.ts +3 -3
  190. package/Plugins/PolygonMask/Enums/index.js +3 -3
  191. package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +13 -13
  192. package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +42 -42
  193. package/Plugins/PolygonMask/Options/Classes/{Draw.d.ts → PolygonMaskDraw.d.ts} +5 -5
  194. package/Plugins/PolygonMask/Options/Classes/{Draw.js → PolygonMaskDraw.js} +15 -14
  195. package/Plugins/PolygonMask/Options/Classes/{DrawStroke.d.ts → PolygonMaskDrawStroke.d.ts} +3 -3
  196. package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +29 -0
  197. package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  198. package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +17 -0
  199. package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  200. package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +29 -0
  201. package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  202. package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +21 -0
  203. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +12 -13
  204. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  205. package/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.js → IPolygonMaskDraw.js} +0 -0
  206. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  207. package/Plugins/PolygonMask/Options/Interfaces/{IMove.js → IPolygonMaskDrawStroke.js} +0 -0
  208. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  209. package/Plugins/PolygonMask/{types.js → Options/Interfaces/IPolygonMaskInline.js} +0 -0
  210. package/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.d.ts → IPolygonMaskLocalSvg.d.ts} +2 -2
  211. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +2 -0
  212. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  213. package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +2 -0
  214. package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +2 -4
  215. package/Plugins/PolygonMask/PolygonMaskInstance.js +33 -30
  216. package/Plugins/PolygonMask/{types.d.ts → Types.d.ts} +0 -0
  217. package/Plugins/PolygonMask/Types.js +2 -0
  218. package/{esm/Plugins/PolygonMask/utils.d.ts → Plugins/PolygonMask/Utils.d.ts} +5 -5
  219. package/Plugins/PolygonMask/{utils.js → Utils.js} +15 -12
  220. package/Plugins/PolygonMask/index.d.ts +2 -0
  221. package/Plugins/PolygonMask/{plugin.js → index.js} +4 -5
  222. package/Plugins/PolygonMask/pathseg.js +54 -43
  223. package/Shapes/Circle/CircleDrawer.d.ts +1 -1
  224. package/Shapes/Circle/index.d.ts +2 -2
  225. package/Shapes/Image/ImageDrawer.d.ts +3 -7
  226. package/Shapes/Image/ImageDrawer.js +29 -109
  227. package/Shapes/Image/Utils.d.ts +8 -5
  228. package/Shapes/Image/Utils.js +69 -38
  229. package/Shapes/Image/index.d.ts +2 -2
  230. package/Shapes/Line/LineDrawer.d.ts +1 -1
  231. package/Shapes/Line/index.d.ts +2 -2
  232. package/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  233. package/Shapes/Polygon/PolygonDrawerBase.d.ts +1 -1
  234. package/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  235. package/Shapes/Polygon/index.d.ts +4 -4
  236. package/Shapes/Square/SquareDrawer.d.ts +1 -1
  237. package/Shapes/Square/index.d.ts +2 -2
  238. package/Shapes/Star/StarDrawer.d.ts +1 -1
  239. package/Shapes/Star/index.d.ts +2 -2
  240. package/Shapes/Text/TextDrawer.d.ts +1 -2
  241. package/Shapes/Text/index.d.ts +2 -2
  242. package/Updaters/Angle/AngleUpdater.d.ts +1 -3
  243. package/Updaters/Angle/AngleUpdater.js +8 -9
  244. package/Updaters/Angle/index.d.ts +2 -2
  245. package/Updaters/Color/ColorUpdater.d.ts +1 -3
  246. package/Updaters/Color/ColorUpdater.js +3 -4
  247. package/Updaters/Color/index.d.ts +2 -2
  248. package/Updaters/Life/LifeUpdater.d.ts +1 -3
  249. package/Updaters/Life/index.d.ts +2 -2
  250. package/Updaters/Opacity/OpacityUpdater.d.ts +1 -3
  251. package/Updaters/Opacity/OpacityUpdater.js +13 -14
  252. package/Updaters/Opacity/index.d.ts +2 -2
  253. package/Updaters/OutModes/IBounceData.d.ts +1 -2
  254. package/Updaters/OutModes/OutOfCanvasUpdater.d.ts +1 -3
  255. package/Updaters/OutModes/OutOfCanvasUpdater.js +19 -20
  256. package/Updaters/OutModes/Utils.js +12 -13
  257. package/Updaters/OutModes/index.d.ts +2 -2
  258. package/Updaters/Roll/RollUpdater.d.ts +1 -2
  259. package/Updaters/Roll/RollUpdater.js +4 -5
  260. package/Updaters/Roll/index.d.ts +2 -2
  261. package/Updaters/Size/SizeUpdater.d.ts +1 -2
  262. package/Updaters/Size/SizeUpdater.js +6 -7
  263. package/Updaters/Size/index.d.ts +2 -2
  264. package/Updaters/StrokeColor/StrokeColorUpdater.d.ts +1 -3
  265. package/Updaters/StrokeColor/StrokeColorUpdater.js +3 -4
  266. package/Updaters/StrokeColor/index.d.ts +2 -2
  267. package/Updaters/Tilt/TiltUpdater.d.ts +1 -3
  268. package/Updaters/Tilt/TiltUpdater.js +8 -9
  269. package/Updaters/Tilt/index.d.ts +2 -2
  270. package/Updaters/Wobble/WobbleUpdater.d.ts +1 -3
  271. package/Updaters/Wobble/index.d.ts +2 -2
  272. package/Utils/CanvasUtils.d.ts +3 -3
  273. package/Utils/CanvasUtils.js +4 -5
  274. package/Utils/ColorUtils.d.ts +1 -1
  275. package/Utils/ColorUtils.js +7 -8
  276. package/Utils/NumberUtils.d.ts +2 -2
  277. package/Utils/NumberUtils.js +20 -21
  278. package/Utils/Utils.d.ts +1 -1
  279. package/Utils/Utils.js +6 -7
  280. package/Utils/index.d.ts +0 -9
  281. package/Utils/index.js +0 -9
  282. package/browser/Core/Canvas.js +9 -9
  283. package/browser/Core/Container.d.ts +2 -3
  284. package/browser/Core/Container.js +2 -3
  285. package/browser/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  286. package/browser/Core/Interfaces/IMovePathGenerator.d.ts +1 -1
  287. package/browser/Core/Interfaces/IParticle.d.ts +1 -1
  288. package/browser/Core/Interfaces/index.d.ts +3 -1
  289. package/browser/Core/Interfaces/index.js +3 -1
  290. package/browser/Core/Loader.js +2 -1
  291. package/browser/Core/Particle.d.ts +2 -5
  292. package/browser/Core/Particle.js +13 -15
  293. package/browser/Core/Particles.d.ts +1 -1
  294. package/browser/Core/Particles.js +8 -14
  295. package/browser/{Utils → Core/Utils}/Circle.d.ts +1 -1
  296. package/browser/{Utils → Core/Utils}/Circle.js +1 -1
  297. package/browser/{Utils → Core/Utils}/CircleWarp.d.ts +1 -2
  298. package/browser/{Utils → Core/Utils}/CircleWarp.js +0 -0
  299. package/browser/{Utils → Core/Utils}/Constants.d.ts +0 -0
  300. package/browser/{Utils → Core/Utils}/Constants.js +0 -0
  301. package/browser/{Utils → Core/Utils}/EventListeners.d.ts +1 -1
  302. package/browser/{Utils → Core/Utils}/EventListeners.js +10 -11
  303. package/{esm/Core → browser/Core/Utils}/ExternalInteractorBase.d.ts +4 -4
  304. package/browser/Core/{ExternalInteractorBase.js → Utils/ExternalInteractorBase.js} +1 -2
  305. package/browser/Core/{FrameManager.d.ts → Utils/FrameManager.d.ts} +1 -1
  306. package/browser/Core/{FrameManager.js → Utils/FrameManager.js} +0 -0
  307. package/browser/Core/{InteractionManager.d.ts → Utils/InteractionManager.d.ts} +3 -3
  308. package/browser/Core/{InteractionManager.js → Utils/InteractionManager.js} +2 -3
  309. package/{Core → browser/Core/Utils}/ParticlesInteractorBase.d.ts +4 -4
  310. package/{esm/Core → browser/Core/Utils}/ParticlesInteractorBase.js +1 -2
  311. package/browser/Core/{Particle/Mover.d.ts → Utils/ParticlesMover.d.ts} +1 -1
  312. package/browser/Core/{Particle/Mover.js → Utils/ParticlesMover.js} +4 -5
  313. package/browser/{Utils → Core/Utils}/Plugins.d.ts +5 -5
  314. package/browser/{Utils → Core/Utils}/Plugins.js +0 -0
  315. package/browser/{Utils → Core/Utils}/Point.d.ts +2 -2
  316. package/browser/{Utils → Core/Utils}/Point.js +0 -0
  317. package/browser/{Utils → Core/Utils}/QuadTree.d.ts +3 -3
  318. package/browser/{Utils → Core/Utils}/QuadTree.js +1 -1
  319. package/browser/{Utils → Core/Utils}/Range.d.ts +1 -1
  320. package/browser/{Utils → Core/Utils}/Range.js +0 -0
  321. package/browser/{Utils → Core/Utils}/Rectangle.d.ts +1 -2
  322. package/browser/{Utils → Core/Utils}/Rectangle.js +0 -0
  323. package/browser/Core/{Particle → Utils}/Vector.d.ts +0 -0
  324. package/browser/Core/{Particle → Utils}/Vector.js +0 -0
  325. package/browser/Core/{Particle → Utils}/Vector3d.d.ts +0 -0
  326. package/browser/Core/{Particle → Utils}/Vector3d.js +0 -0
  327. package/browser/Core/Utils/index.d.ts +16 -0
  328. package/browser/Core/Utils/index.js +16 -0
  329. package/browser/Core/index.d.ts +8 -0
  330. package/browser/Core/index.js +8 -0
  331. package/browser/Enums/AnimationStatus.d.ts +1 -1
  332. package/browser/Enums/AnimationStatus.js +1 -5
  333. package/browser/Enums/Directions/MoveDirection.d.ts +1 -1
  334. package/browser/Enums/Directions/MoveDirection.js +1 -15
  335. package/browser/Enums/Directions/OutModeDirection.d.ts +1 -1
  336. package/browser/Enums/Directions/OutModeDirection.js +1 -7
  337. package/browser/Enums/Directions/RotateDirection.d.ts +1 -1
  338. package/browser/Enums/Directions/RotateDirection.js +1 -9
  339. package/browser/Enums/Directions/TiltDirection.d.ts +1 -1
  340. package/browser/Enums/Directions/TiltDirection.js +1 -9
  341. package/browser/Enums/InteractivityDetect.d.ts +1 -1
  342. package/browser/Enums/InteractivityDetect.js +1 -9
  343. package/browser/Enums/Modes/ClickMode.d.ts +1 -1
  344. package/browser/Enums/Modes/ClickMode.js +1 -13
  345. package/browser/Enums/Modes/CollisionMode.d.ts +1 -1
  346. package/browser/Enums/Modes/CollisionMode.js +1 -9
  347. package/browser/Enums/Modes/DestroyMode.d.ts +1 -1
  348. package/browser/Enums/Modes/DestroyMode.js +1 -5
  349. package/browser/Enums/Modes/DivMode.d.ts +1 -1
  350. package/browser/Enums/Modes/DivMode.js +1 -9
  351. package/browser/Enums/Modes/HoverMode.d.ts +1 -1
  352. package/browser/Enums/Modes/HoverMode.js +1 -15
  353. package/browser/Enums/Modes/OutMode.d.ts +1 -1
  354. package/browser/Enums/Modes/OutMode.js +1 -13
  355. package/browser/Enums/Modes/ResponsiveMode.d.ts +1 -1
  356. package/browser/Enums/Modes/ResponsiveMode.js +1 -5
  357. package/browser/Enums/Modes/RollMode.d.ts +1 -1
  358. package/browser/Enums/Modes/RollMode.js +1 -6
  359. package/browser/Enums/Modes/SizeMode.d.ts +1 -1
  360. package/browser/Enums/Modes/SizeMode.js +1 -8
  361. package/browser/Enums/Modes/ThemeMode.d.ts +1 -1
  362. package/browser/Enums/Modes/ThemeMode.js +1 -6
  363. package/browser/Enums/Types/AlterType.d.ts +1 -1
  364. package/browser/Enums/Types/AlterType.js +1 -5
  365. package/browser/Enums/Types/DestroyType.d.ts +1 -1
  366. package/browser/Enums/Types/DestroyType.js +1 -9
  367. package/browser/Enums/Types/DivType.d.ts +1 -1
  368. package/browser/Enums/Types/DivType.js +1 -8
  369. package/browser/Enums/Types/EasingType.d.ts +1 -1
  370. package/browser/Enums/Types/EasingType.js +1 -11
  371. package/browser/Enums/Types/GradientType.d.ts +1 -1
  372. package/browser/Enums/Types/GradientType.js +1 -6
  373. package/browser/Enums/Types/InteractorType.d.ts +1 -1
  374. package/browser/Enums/Types/InteractorType.js +1 -5
  375. package/browser/Enums/Types/OrbitType.d.ts +1 -1
  376. package/browser/Enums/Types/OrbitType.js +1 -8
  377. package/browser/Enums/Types/ShapeType.d.ts +1 -1
  378. package/browser/Enums/Types/ShapeType.js +1 -17
  379. package/browser/Enums/Types/StartValueType.d.ts +1 -1
  380. package/browser/Enums/Types/StartValueType.js +1 -9
  381. package/browser/Interactions/External/Attract/Attractor.d.ts +2 -2
  382. package/browser/Interactions/External/Attract/Attractor.js +5 -7
  383. package/browser/Interactions/External/Attract/index.d.ts +2 -2
  384. package/browser/Interactions/External/Bounce/Bouncer.d.ts +2 -2
  385. package/browser/Interactions/External/Bounce/Bouncer.js +7 -9
  386. package/browser/Interactions/External/Bounce/index.d.ts +2 -2
  387. package/browser/Interactions/External/Bubble/Bubbler.d.ts +3 -3
  388. package/browser/Interactions/External/Bubble/Bubbler.js +16 -18
  389. package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +1 -1
  390. package/browser/Interactions/External/Bubble/ProcessBubbleType.js +1 -9
  391. package/browser/Interactions/External/Bubble/index.d.ts +2 -2
  392. package/browser/Interactions/External/Connect/Connector.d.ts +2 -2
  393. package/browser/Interactions/External/Connect/Connector.js +2 -3
  394. package/browser/Interactions/External/Connect/index.d.ts +2 -2
  395. package/browser/Interactions/External/Grab/Grabber.d.ts +2 -2
  396. package/browser/Interactions/External/Grab/Grabber.js +3 -4
  397. package/browser/Interactions/External/Grab/index.d.ts +2 -2
  398. package/browser/Interactions/External/Repulse/Repulser.d.ts +2 -2
  399. package/browser/Interactions/External/Repulse/Repulser.js +8 -10
  400. package/browser/Interactions/External/Repulse/index.d.ts +2 -2
  401. package/browser/Interactions/External/Trail/TrailMaker.d.ts +2 -3
  402. package/browser/Interactions/External/Trail/TrailMaker.js +3 -4
  403. package/browser/Interactions/External/Trail/index.d.ts +2 -2
  404. package/browser/Interactions/Particles/Attract/Attractor.d.ts +2 -4
  405. package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
  406. package/browser/Interactions/Particles/Attract/index.d.ts +2 -2
  407. package/browser/Interactions/Particles/Collisions/Collider.d.ts +2 -3
  408. package/browser/Interactions/Particles/Collisions/Collider.js +4 -5
  409. package/browser/Interactions/Particles/Collisions/index.d.ts +2 -2
  410. package/browser/Interactions/Particles/Links/LinkInstance.d.ts +1 -3
  411. package/browser/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  412. package/browser/Interactions/Particles/Links/Linker.d.ts +3 -4
  413. package/browser/Interactions/Particles/Links/Linker.js +2 -2
  414. package/browser/Interactions/Particles/Links/index.d.ts +2 -3
  415. package/browser/Interactions/Particles/Links/index.js +1 -4
  416. package/browser/Interactions/Particles/Links/interaction.d.ts +2 -0
  417. package/browser/Interactions/Particles/Links/interaction.js +4 -0
  418. package/browser/Interactions/Particles/Links/plugin.d.ts +2 -2
  419. package/browser/Interactions/Particles/Links/plugin.js +2 -2
  420. package/browser/Options/Classes/AnimatableGradient.js +3 -4
  421. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +1 -2
  422. package/browser/Options/Classes/Interactivity/Interactivity.js +5 -6
  423. package/browser/Options/Classes/Interactivity/Modes/Attract.js +1 -2
  424. package/browser/Options/Classes/Interactivity/Modes/RepulseBase.js +1 -2
  425. package/browser/Options/Classes/Options.js +7 -7
  426. package/browser/Options/Classes/Particles/Collisions/Collisions.js +1 -2
  427. package/browser/Options/Classes/Particles/Destroy/Destroy.js +1 -2
  428. package/browser/Options/Classes/Particles/Move/Move.js +1 -2
  429. package/browser/Options/Classes/Particles/Move/OutModes.js +1 -2
  430. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -3
  431. package/browser/Options/Classes/Particles/Roll/Roll.js +1 -2
  432. package/browser/Options/Classes/Particles/Rotate/Rotate.js +1 -2
  433. package/browser/Options/Classes/Particles/Shape/Shape.js +13 -14
  434. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +2 -3
  435. package/browser/Options/Classes/Particles/Tilt/Tilt.js +1 -2
  436. package/browser/Options/Classes/Responsive.js +4 -5
  437. package/browser/Options/Classes/Theme/ThemeDefault.js +1 -2
  438. package/browser/Plugins/Absorbers/AbsorberContainer.d.ts +1 -1
  439. package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +2 -4
  440. package/browser/Plugins/Absorbers/AbsorberInstance.js +4 -5
  441. package/browser/Plugins/Absorbers/Absorbers.d.ts +1 -4
  442. package/browser/Plugins/Absorbers/Absorbers.js +1 -2
  443. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +1 -1
  444. package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.js +1 -7
  445. package/browser/Plugins/Absorbers/index.d.ts +2 -0
  446. package/browser/Plugins/Absorbers/{plugin.js → index.js} +3 -4
  447. package/browser/Plugins/Emitters/EmitterContainer.d.ts +1 -1
  448. package/browser/Plugins/Emitters/EmitterInstance.d.ts +1 -2
  449. package/browser/Plugins/Emitters/EmitterInstance.js +3 -4
  450. package/browser/Plugins/Emitters/Emitters.d.ts +1 -2
  451. package/browser/Plugins/Emitters/Emitters.js +1 -2
  452. package/browser/Plugins/Emitters/EmittersMain.d.ts +2 -2
  453. package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +1 -1
  454. package/browser/Plugins/Emitters/Enums/EmitterClickMode.js +1 -7
  455. package/browser/Plugins/Emitters/Enums/EmitterShapeType.d.ts +1 -1
  456. package/browser/Plugins/Emitters/Enums/EmitterShapeType.js +1 -5
  457. package/browser/Plugins/Emitters/IEmitterShape.d.ts +1 -1
  458. package/browser/Plugins/Emitters/Options/Classes/Emitter.js +1 -2
  459. package/browser/Plugins/Emitters/Options/Classes/EmitterSize.js +1 -2
  460. package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  461. package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  462. package/browser/Plugins/Emitters/{plugin.d.ts → index.d.ts} +0 -0
  463. package/browser/Plugins/Emitters/{plugin.js → index.js} +3 -4
  464. package/browser/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  465. package/browser/Plugins/PolygonMask/{Options/Interfaces/IDraw.js → Enums/PolygonMaskInlineArrangement.js} +0 -0
  466. package/browser/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  467. package/browser/Plugins/PolygonMask/{Options/Interfaces/IDrawStroke.js → Enums/PolygonMaskMoveType.js} +0 -0
  468. package/{Plugins/PolygonMask/Enums/Type.d.ts → browser/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts} +1 -1
  469. package/browser/Plugins/PolygonMask/{Options/Interfaces/IInline.js → Enums/PolygonMaskType.js} +0 -0
  470. package/browser/Plugins/PolygonMask/Enums/index.d.ts +3 -3
  471. package/browser/Plugins/PolygonMask/Enums/index.js +3 -3
  472. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +13 -13
  473. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +42 -42
  474. package/browser/Plugins/PolygonMask/Options/Classes/{Draw.d.ts → PolygonMaskDraw.d.ts} +5 -5
  475. package/browser/Plugins/PolygonMask/Options/Classes/{Draw.js → PolygonMaskDraw.js} +13 -12
  476. package/browser/Plugins/PolygonMask/Options/Classes/{DrawStroke.d.ts → PolygonMaskDrawStroke.d.ts} +3 -3
  477. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +28 -0
  478. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +12 -0
  479. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +16 -0
  480. package/browser/Plugins/PolygonMask/Options/Classes/{LocalSvg.d.ts → PolygonMaskLocalSvg.d.ts} +4 -4
  481. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +28 -0
  482. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +13 -0
  483. package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +20 -0
  484. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +12 -13
  485. package/browser/Plugins/PolygonMask/Options/Interfaces/{IDraw.d.ts → IPolygonMaskDraw.d.ts} +4 -4
  486. package/browser/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.js → IPolygonMaskDraw.js} +0 -0
  487. package/browser/Plugins/PolygonMask/Options/Interfaces/{IDrawStroke.d.ts → IPolygonMaskDrawStroke.d.ts} +2 -2
  488. package/browser/Plugins/PolygonMask/Options/Interfaces/{IMove.js → IPolygonMaskDrawStroke.js} +0 -0
  489. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +7 -0
  490. package/browser/Plugins/PolygonMask/{types.js → Options/Interfaces/IPolygonMaskInline.js} +0 -0
  491. package/browser/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.d.ts → IPolygonMaskLocalSvg.d.ts} +2 -2
  492. package/{esm/Plugins/PolygonMask/Options/Interfaces/IDraw.js → browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js} +0 -0
  493. package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +8 -0
  494. package/{esm/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.js → browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js} +0 -0
  495. package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +2 -4
  496. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +24 -21
  497. package/browser/Plugins/PolygonMask/{types.d.ts → Types.d.ts} +0 -0
  498. package/{esm/Plugins/PolygonMask/Options/Interfaces/IInline.js → browser/Plugins/PolygonMask/Types.js} +0 -0
  499. package/{Plugins/PolygonMask/utils.d.ts → browser/Plugins/PolygonMask/Utils.d.ts} +5 -5
  500. package/browser/Plugins/PolygonMask/{utils.js → Utils.js} +15 -12
  501. package/browser/Plugins/PolygonMask/index.d.ts +2 -0
  502. package/browser/Plugins/PolygonMask/{plugin.js → index.js} +5 -6
  503. package/browser/Plugins/PolygonMask/pathseg.js +54 -44
  504. package/browser/Shapes/Circle/CircleDrawer.d.ts +1 -1
  505. package/browser/Shapes/Circle/index.d.ts +2 -2
  506. package/browser/Shapes/Image/ImageDrawer.d.ts +3 -7
  507. package/browser/Shapes/Image/ImageDrawer.js +28 -111
  508. package/browser/Shapes/Image/Utils.d.ts +8 -5
  509. package/browser/Shapes/Image/Utils.js +71 -37
  510. package/browser/Shapes/Image/index.d.ts +2 -2
  511. package/browser/Shapes/Line/LineDrawer.d.ts +1 -1
  512. package/browser/Shapes/Line/index.d.ts +2 -2
  513. package/browser/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  514. package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +1 -1
  515. package/browser/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  516. package/browser/Shapes/Polygon/index.d.ts +4 -4
  517. package/browser/Shapes/Square/SquareDrawer.d.ts +1 -1
  518. package/browser/Shapes/Square/index.d.ts +2 -2
  519. package/browser/Shapes/Star/StarDrawer.d.ts +1 -1
  520. package/browser/Shapes/Star/index.d.ts +2 -2
  521. package/browser/Shapes/Text/TextDrawer.d.ts +1 -2
  522. package/browser/Shapes/Text/index.d.ts +2 -2
  523. package/browser/Updaters/Angle/AngleUpdater.d.ts +1 -3
  524. package/browser/Updaters/Angle/AngleUpdater.js +8 -9
  525. package/browser/Updaters/Angle/index.d.ts +2 -2
  526. package/browser/Updaters/Color/ColorUpdater.d.ts +1 -3
  527. package/browser/Updaters/Color/ColorUpdater.js +3 -4
  528. package/browser/Updaters/Color/index.d.ts +2 -2
  529. package/browser/Updaters/Life/LifeUpdater.d.ts +1 -3
  530. package/browser/Updaters/Life/index.d.ts +2 -2
  531. package/browser/Updaters/Opacity/OpacityUpdater.d.ts +1 -3
  532. package/browser/Updaters/Opacity/OpacityUpdater.js +13 -14
  533. package/browser/Updaters/Opacity/index.d.ts +2 -2
  534. package/browser/Updaters/OutModes/IBounceData.d.ts +1 -2
  535. package/browser/Updaters/OutModes/OutOfCanvasUpdater.d.ts +1 -3
  536. package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +19 -20
  537. package/browser/Updaters/OutModes/Utils.js +12 -13
  538. package/browser/Updaters/OutModes/index.d.ts +2 -2
  539. package/browser/Updaters/Roll/RollUpdater.d.ts +1 -2
  540. package/browser/Updaters/Roll/RollUpdater.js +4 -5
  541. package/browser/Updaters/Roll/index.d.ts +2 -2
  542. package/browser/Updaters/Size/SizeUpdater.d.ts +1 -2
  543. package/browser/Updaters/Size/SizeUpdater.js +6 -7
  544. package/browser/Updaters/Size/index.d.ts +2 -2
  545. package/browser/Updaters/StrokeColor/StrokeColorUpdater.d.ts +1 -3
  546. package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +3 -4
  547. package/browser/Updaters/StrokeColor/index.d.ts +2 -2
  548. package/browser/Updaters/Tilt/TiltUpdater.d.ts +1 -3
  549. package/browser/Updaters/Tilt/TiltUpdater.js +8 -9
  550. package/browser/Updaters/Tilt/index.d.ts +2 -2
  551. package/browser/Updaters/Wobble/WobbleUpdater.d.ts +1 -3
  552. package/browser/Updaters/Wobble/index.d.ts +2 -2
  553. package/browser/Utils/CanvasUtils.d.ts +3 -3
  554. package/browser/Utils/CanvasUtils.js +4 -5
  555. package/browser/Utils/ColorUtils.d.ts +1 -1
  556. package/browser/Utils/ColorUtils.js +2 -3
  557. package/browser/Utils/NumberUtils.d.ts +2 -2
  558. package/browser/Utils/NumberUtils.js +18 -19
  559. package/browser/Utils/Utils.d.ts +1 -1
  560. package/browser/Utils/Utils.js +5 -6
  561. package/browser/Utils/index.d.ts +0 -9
  562. package/browser/Utils/index.js +0 -9
  563. package/browser/{main.d.ts → engine.d.ts} +4 -6
  564. package/browser/{main.js → engine.js} +10 -11
  565. package/browser/full.d.ts +2 -2
  566. package/browser/full.js +3 -3
  567. package/browser/index.d.ts +6 -16
  568. package/browser/index.engine.d.ts +13 -0
  569. package/browser/index.engine.js +12 -0
  570. package/browser/index.js +5 -13
  571. package/browser/index.slim.d.ts +6 -16
  572. package/browser/index.slim.js +5 -13
  573. package/browser/pjs.d.ts +3 -3
  574. package/browser/pjs.js +6 -5
  575. package/browser/slim.d.ts +2 -2
  576. package/{esm/main.d.ts → engine.d.ts} +2 -4
  577. package/{main.js → engine.js} +24 -25
  578. package/esm/Core/Canvas.js +9 -9
  579. package/esm/Core/Container.d.ts +2 -3
  580. package/esm/Core/Container.js +2 -3
  581. package/esm/Core/Interfaces/ICircleBouncer.d.ts +1 -1
  582. package/esm/Core/Interfaces/IMovePathGenerator.d.ts +1 -1
  583. package/esm/Core/Interfaces/IParticle.d.ts +1 -1
  584. package/esm/Core/Interfaces/index.d.ts +3 -1
  585. package/esm/Core/Interfaces/index.js +3 -1
  586. package/esm/Core/Loader.js +2 -1
  587. package/esm/Core/Particle.d.ts +2 -5
  588. package/esm/Core/Particle.js +13 -15
  589. package/esm/Core/Particles.d.ts +1 -1
  590. package/esm/Core/Particles.js +8 -14
  591. package/esm/{Utils → Core/Utils}/Circle.d.ts +1 -1
  592. package/esm/{Utils → Core/Utils}/Circle.js +1 -1
  593. package/{Utils → esm/Core/Utils}/CircleWarp.d.ts +1 -2
  594. package/esm/{Utils → Core/Utils}/CircleWarp.js +0 -0
  595. package/esm/{Utils → Core/Utils}/Constants.d.ts +0 -0
  596. package/esm/{Utils → Core/Utils}/Constants.js +0 -0
  597. package/esm/{Utils → Core/Utils}/EventListeners.d.ts +1 -1
  598. package/esm/{Utils → Core/Utils}/EventListeners.js +10 -11
  599. package/{browser/Core → esm/Core/Utils}/ExternalInteractorBase.d.ts +4 -4
  600. package/esm/Core/{ExternalInteractorBase.js → Utils/ExternalInteractorBase.js} +1 -2
  601. package/{Core → esm/Core/Utils}/FrameManager.d.ts +1 -1
  602. package/esm/Core/{FrameManager.js → Utils/FrameManager.js} +0 -0
  603. package/{Core → esm/Core/Utils}/InteractionManager.d.ts +3 -3
  604. package/esm/Core/{InteractionManager.js → Utils/InteractionManager.js} +2 -3
  605. package/{browser/Core → esm/Core/Utils}/ParticlesInteractorBase.d.ts +4 -4
  606. package/{browser/Core → esm/Core/Utils}/ParticlesInteractorBase.js +1 -2
  607. package/{Core/Particle/Mover.d.ts → esm/Core/Utils/ParticlesMover.d.ts} +1 -1
  608. package/esm/Core/{Particle/Mover.js → Utils/ParticlesMover.js} +4 -5
  609. package/{Utils → esm/Core/Utils}/Plugins.d.ts +5 -5
  610. package/esm/{Utils → Core/Utils}/Plugins.js +0 -0
  611. package/esm/{Utils → Core/Utils}/Point.d.ts +2 -2
  612. package/esm/{Utils → Core/Utils}/Point.js +0 -0
  613. package/esm/{Utils → Core/Utils}/QuadTree.d.ts +3 -3
  614. package/esm/{Utils → Core/Utils}/QuadTree.js +1 -1
  615. package/{Utils → esm/Core/Utils}/Range.d.ts +1 -1
  616. package/esm/{Utils → Core/Utils}/Range.js +0 -0
  617. package/{Utils → esm/Core/Utils}/Rectangle.d.ts +1 -2
  618. package/esm/{Utils → Core/Utils}/Rectangle.js +0 -0
  619. package/esm/Core/{Particle → Utils}/Vector.d.ts +0 -0
  620. package/esm/Core/{Particle → Utils}/Vector.js +0 -0
  621. package/esm/Core/{Particle → Utils}/Vector3d.d.ts +0 -0
  622. package/esm/Core/{Particle → Utils}/Vector3d.js +0 -0
  623. package/esm/Core/Utils/index.d.ts +16 -0
  624. package/esm/Core/Utils/index.js +16 -0
  625. package/esm/Core/index.d.ts +8 -0
  626. package/esm/Core/index.js +8 -0
  627. package/esm/Enums/AnimationStatus.d.ts +1 -1
  628. package/esm/Enums/AnimationStatus.js +1 -5
  629. package/esm/Enums/Directions/MoveDirection.d.ts +1 -1
  630. package/esm/Enums/Directions/MoveDirection.js +1 -12
  631. package/esm/Enums/Directions/OutModeDirection.d.ts +1 -1
  632. package/esm/Enums/Directions/OutModeDirection.js +1 -7
  633. package/esm/Enums/Directions/RotateDirection.d.ts +1 -1
  634. package/esm/Enums/Directions/RotateDirection.js +1 -6
  635. package/esm/Enums/Directions/TiltDirection.d.ts +1 -1
  636. package/esm/Enums/Directions/TiltDirection.js +1 -6
  637. package/esm/Enums/InteractivityDetect.d.ts +1 -1
  638. package/esm/Enums/InteractivityDetect.js +1 -6
  639. package/esm/Enums/Modes/ClickMode.d.ts +1 -1
  640. package/esm/Enums/Modes/ClickMode.js +1 -10
  641. package/esm/Enums/Modes/CollisionMode.d.ts +1 -1
  642. package/esm/Enums/Modes/CollisionMode.js +1 -6
  643. package/esm/Enums/Modes/DestroyMode.d.ts +1 -1
  644. package/esm/Enums/Modes/DestroyMode.js +1 -5
  645. package/esm/Enums/Modes/DivMode.d.ts +1 -1
  646. package/esm/Enums/Modes/DivMode.js +1 -6
  647. package/esm/Enums/Modes/HoverMode.d.ts +1 -1
  648. package/esm/Enums/Modes/HoverMode.js +1 -12
  649. package/esm/Enums/Modes/OutMode.d.ts +1 -1
  650. package/esm/Enums/Modes/OutMode.js +1 -10
  651. package/esm/Enums/Modes/ResponsiveMode.d.ts +1 -1
  652. package/esm/Enums/Modes/ResponsiveMode.js +1 -5
  653. package/esm/Enums/Modes/RollMode.d.ts +1 -1
  654. package/esm/Enums/Modes/RollMode.js +1 -6
  655. package/esm/Enums/Modes/SizeMode.d.ts +1 -1
  656. package/esm/Enums/Modes/SizeMode.js +1 -5
  657. package/esm/Enums/Modes/ThemeMode.d.ts +1 -1
  658. package/esm/Enums/Modes/ThemeMode.js +1 -6
  659. package/esm/Enums/Types/AlterType.d.ts +1 -1
  660. package/esm/Enums/Types/AlterType.js +1 -5
  661. package/esm/Enums/Types/DestroyType.d.ts +1 -1
  662. package/esm/Enums/Types/DestroyType.js +1 -6
  663. package/esm/Enums/Types/DivType.d.ts +1 -1
  664. package/esm/Enums/Types/DivType.js +1 -5
  665. package/esm/Enums/Types/EasingType.d.ts +1 -1
  666. package/esm/Enums/Types/EasingType.js +1 -11
  667. package/esm/Enums/Types/GradientType.d.ts +1 -1
  668. package/esm/Enums/Types/GradientType.js +1 -6
  669. package/esm/Enums/Types/InteractorType.d.ts +1 -1
  670. package/esm/Enums/Types/InteractorType.js +1 -5
  671. package/esm/Enums/Types/OrbitType.d.ts +1 -1
  672. package/esm/Enums/Types/OrbitType.js +1 -5
  673. package/esm/Enums/Types/ShapeType.d.ts +1 -1
  674. package/esm/Enums/Types/ShapeType.js +1 -14
  675. package/esm/Enums/Types/StartValueType.d.ts +1 -1
  676. package/esm/Enums/Types/StartValueType.js +1 -6
  677. package/esm/Interactions/External/Attract/Attractor.d.ts +2 -2
  678. package/esm/Interactions/External/Attract/Attractor.js +5 -7
  679. package/esm/Interactions/External/Attract/index.d.ts +2 -2
  680. package/esm/Interactions/External/Bounce/Bouncer.d.ts +2 -2
  681. package/esm/Interactions/External/Bounce/Bouncer.js +7 -9
  682. package/esm/Interactions/External/Bounce/index.d.ts +2 -2
  683. package/esm/Interactions/External/Bubble/Bubbler.d.ts +3 -3
  684. package/esm/Interactions/External/Bubble/Bubbler.js +16 -18
  685. package/esm/Interactions/External/Bubble/ProcessBubbleType.d.ts +1 -1
  686. package/esm/Interactions/External/Bubble/ProcessBubbleType.js +1 -6
  687. package/esm/Interactions/External/Bubble/index.d.ts +2 -2
  688. package/esm/Interactions/External/Connect/Connector.d.ts +2 -2
  689. package/esm/Interactions/External/Connect/Connector.js +2 -3
  690. package/esm/Interactions/External/Connect/index.d.ts +2 -2
  691. package/esm/Interactions/External/Grab/Grabber.d.ts +2 -2
  692. package/esm/Interactions/External/Grab/Grabber.js +3 -4
  693. package/esm/Interactions/External/Grab/index.d.ts +2 -2
  694. package/esm/Interactions/External/Repulse/Repulser.d.ts +2 -2
  695. package/esm/Interactions/External/Repulse/Repulser.js +8 -10
  696. package/esm/Interactions/External/Repulse/index.d.ts +2 -2
  697. package/esm/Interactions/External/Trail/TrailMaker.d.ts +2 -3
  698. package/esm/Interactions/External/Trail/TrailMaker.js +3 -4
  699. package/esm/Interactions/External/Trail/index.d.ts +2 -2
  700. package/esm/Interactions/Particles/Attract/Attractor.d.ts +2 -4
  701. package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
  702. package/esm/Interactions/Particles/Attract/index.d.ts +2 -2
  703. package/esm/Interactions/Particles/Collisions/Collider.d.ts +2 -3
  704. package/esm/Interactions/Particles/Collisions/Collider.js +4 -5
  705. package/esm/Interactions/Particles/Collisions/index.d.ts +2 -2
  706. package/esm/Interactions/Particles/Links/LinkInstance.d.ts +1 -3
  707. package/esm/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
  708. package/esm/Interactions/Particles/Links/Linker.d.ts +3 -4
  709. package/esm/Interactions/Particles/Links/Linker.js +2 -2
  710. package/esm/Interactions/Particles/Links/index.d.ts +2 -3
  711. package/esm/Interactions/Particles/Links/index.js +1 -4
  712. package/esm/Interactions/Particles/Links/interaction.d.ts +2 -0
  713. package/esm/Interactions/Particles/Links/interaction.js +4 -0
  714. package/esm/Interactions/Particles/Links/plugin.d.ts +2 -2
  715. package/esm/Interactions/Particles/Links/plugin.js +2 -2
  716. package/esm/Options/Classes/AnimatableGradient.js +3 -4
  717. package/esm/Options/Classes/Interactivity/Events/DivEvent.js +1 -2
  718. package/esm/Options/Classes/Interactivity/Interactivity.js +5 -6
  719. package/esm/Options/Classes/Interactivity/Modes/Attract.js +1 -2
  720. package/esm/Options/Classes/Interactivity/Modes/RepulseBase.js +1 -2
  721. package/esm/Options/Classes/Options.js +7 -7
  722. package/esm/Options/Classes/Particles/Collisions/Collisions.js +1 -2
  723. package/esm/Options/Classes/Particles/Destroy/Destroy.js +1 -2
  724. package/esm/Options/Classes/Particles/Move/Move.js +1 -2
  725. package/esm/Options/Classes/Particles/Move/OutModes.js +1 -2
  726. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -3
  727. package/esm/Options/Classes/Particles/Roll/Roll.js +1 -2
  728. package/esm/Options/Classes/Particles/Rotate/Rotate.js +1 -2
  729. package/esm/Options/Classes/Particles/Shape/Shape.js +13 -14
  730. package/esm/Options/Classes/Particles/Size/SizeAnimation.js +2 -3
  731. package/esm/Options/Classes/Particles/Tilt/Tilt.js +1 -2
  732. package/esm/Options/Classes/Responsive.js +4 -5
  733. package/esm/Options/Classes/Theme/ThemeDefault.js +1 -2
  734. package/esm/Plugins/Absorbers/AbsorberContainer.d.ts +1 -1
  735. package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +2 -4
  736. package/esm/Plugins/Absorbers/AbsorberInstance.js +4 -5
  737. package/esm/Plugins/Absorbers/Absorbers.d.ts +1 -4
  738. package/esm/Plugins/Absorbers/Absorbers.js +1 -2
  739. package/esm/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +1 -1
  740. package/esm/Plugins/Absorbers/Enums/AbsorberClickMode.js +1 -4
  741. package/esm/Plugins/Absorbers/index.d.ts +2 -0
  742. package/esm/Plugins/Absorbers/{plugin.js → index.js} +3 -4
  743. package/esm/Plugins/Emitters/EmitterContainer.d.ts +1 -1
  744. package/esm/Plugins/Emitters/EmitterInstance.d.ts +1 -2
  745. package/esm/Plugins/Emitters/EmitterInstance.js +3 -4
  746. package/esm/Plugins/Emitters/Emitters.d.ts +1 -2
  747. package/esm/Plugins/Emitters/Emitters.js +1 -2
  748. package/esm/Plugins/Emitters/EmittersMain.d.ts +2 -2
  749. package/esm/Plugins/Emitters/Enums/EmitterClickMode.d.ts +1 -1
  750. package/esm/Plugins/Emitters/Enums/EmitterClickMode.js +1 -4
  751. package/esm/Plugins/Emitters/Enums/EmitterShapeType.d.ts +1 -1
  752. package/esm/Plugins/Emitters/Enums/EmitterShapeType.js +1 -5
  753. package/esm/Plugins/Emitters/IEmitterShape.d.ts +1 -1
  754. package/esm/Plugins/Emitters/Options/Classes/Emitter.js +1 -2
  755. package/esm/Plugins/Emitters/Options/Classes/EmitterSize.js +1 -2
  756. package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
  757. package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
  758. package/esm/Plugins/Emitters/{plugin.d.ts → index.d.ts} +0 -0
  759. package/esm/Plugins/Emitters/{plugin.js → index.js} +3 -4
  760. package/esm/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  761. package/esm/Plugins/PolygonMask/{Options/Interfaces/ILocalSvg.js → Enums/PolygonMaskInlineArrangement.js} +0 -0
  762. package/esm/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  763. package/esm/Plugins/PolygonMask/{Options/Interfaces/IMove.js → Enums/PolygonMaskMoveType.js} +0 -0
  764. package/{browser/Plugins/PolygonMask/Enums/Type.d.ts → esm/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts} +1 -1
  765. package/esm/Plugins/PolygonMask/{types.js → Enums/PolygonMaskType.js} +0 -0
  766. package/esm/Plugins/PolygonMask/Enums/index.d.ts +3 -3
  767. package/esm/Plugins/PolygonMask/Enums/index.js +3 -3
  768. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +13 -13
  769. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +42 -42
  770. package/esm/Plugins/PolygonMask/Options/Classes/{Draw.d.ts → PolygonMaskDraw.d.ts} +5 -5
  771. package/esm/Plugins/PolygonMask/Options/Classes/{Draw.js → PolygonMaskDraw.js} +13 -12
  772. package/esm/Plugins/PolygonMask/Options/Classes/{DrawStroke.d.ts → PolygonMaskDrawStroke.d.ts} +3 -3
  773. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +25 -0
  774. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  775. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +13 -0
  776. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  777. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +25 -0
  778. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  779. package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +17 -0
  780. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +12 -13
  781. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  782. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +1 -0
  783. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  784. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +1 -0
  785. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  786. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +1 -0
  787. package/esm/Plugins/PolygonMask/Options/Interfaces/{ILocalSvg.d.ts → IPolygonMaskLocalSvg.d.ts} +2 -2
  788. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +1 -0
  789. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  790. package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +1 -0
  791. package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +2 -4
  792. package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +24 -21
  793. package/esm/Plugins/PolygonMask/{types.d.ts → Types.d.ts} +0 -0
  794. package/esm/Plugins/PolygonMask/Types.js +1 -0
  795. package/{browser/Plugins/PolygonMask/utils.d.ts → esm/Plugins/PolygonMask/Utils.d.ts} +5 -5
  796. package/esm/Plugins/PolygonMask/{utils.js → Utils.js} +15 -12
  797. package/esm/Plugins/PolygonMask/index.d.ts +2 -0
  798. package/esm/Plugins/PolygonMask/{plugin.js → index.js} +4 -5
  799. package/esm/Plugins/PolygonMask/pathseg.js +54 -43
  800. package/esm/Shapes/Circle/CircleDrawer.d.ts +1 -1
  801. package/esm/Shapes/Circle/index.d.ts +2 -2
  802. package/esm/Shapes/Image/ImageDrawer.d.ts +3 -7
  803. package/esm/Shapes/Image/ImageDrawer.js +28 -108
  804. package/esm/Shapes/Image/Utils.d.ts +8 -5
  805. package/esm/Shapes/Image/Utils.js +67 -36
  806. package/esm/Shapes/Image/index.d.ts +2 -2
  807. package/esm/Shapes/Line/LineDrawer.d.ts +1 -1
  808. package/esm/Shapes/Line/index.d.ts +2 -2
  809. package/esm/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
  810. package/esm/Shapes/Polygon/PolygonDrawerBase.d.ts +1 -1
  811. package/esm/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
  812. package/esm/Shapes/Polygon/index.d.ts +4 -4
  813. package/esm/Shapes/Square/SquareDrawer.d.ts +1 -1
  814. package/esm/Shapes/Square/index.d.ts +2 -2
  815. package/esm/Shapes/Star/StarDrawer.d.ts +1 -1
  816. package/esm/Shapes/Star/index.d.ts +2 -2
  817. package/esm/Shapes/Text/TextDrawer.d.ts +1 -2
  818. package/esm/Shapes/Text/index.d.ts +2 -2
  819. package/esm/Updaters/Angle/AngleUpdater.d.ts +1 -3
  820. package/esm/Updaters/Angle/AngleUpdater.js +8 -9
  821. package/esm/Updaters/Angle/index.d.ts +2 -2
  822. package/esm/Updaters/Color/ColorUpdater.d.ts +1 -3
  823. package/esm/Updaters/Color/ColorUpdater.js +3 -4
  824. package/esm/Updaters/Color/index.d.ts +2 -2
  825. package/esm/Updaters/Life/LifeUpdater.d.ts +1 -3
  826. package/esm/Updaters/Life/index.d.ts +2 -2
  827. package/esm/Updaters/Opacity/OpacityUpdater.d.ts +1 -3
  828. package/esm/Updaters/Opacity/OpacityUpdater.js +13 -14
  829. package/esm/Updaters/Opacity/index.d.ts +2 -2
  830. package/esm/Updaters/OutModes/IBounceData.d.ts +1 -2
  831. package/esm/Updaters/OutModes/OutOfCanvasUpdater.d.ts +1 -3
  832. package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +19 -20
  833. package/esm/Updaters/OutModes/Utils.js +12 -13
  834. package/esm/Updaters/OutModes/index.d.ts +2 -2
  835. package/esm/Updaters/Roll/RollUpdater.d.ts +1 -2
  836. package/esm/Updaters/Roll/RollUpdater.js +4 -5
  837. package/esm/Updaters/Roll/index.d.ts +2 -2
  838. package/esm/Updaters/Size/SizeUpdater.d.ts +1 -2
  839. package/esm/Updaters/Size/SizeUpdater.js +6 -7
  840. package/esm/Updaters/Size/index.d.ts +2 -2
  841. package/esm/Updaters/StrokeColor/StrokeColorUpdater.d.ts +1 -3
  842. package/esm/Updaters/StrokeColor/StrokeColorUpdater.js +3 -4
  843. package/esm/Updaters/StrokeColor/index.d.ts +2 -2
  844. package/esm/Updaters/Tilt/TiltUpdater.d.ts +1 -3
  845. package/esm/Updaters/Tilt/TiltUpdater.js +8 -9
  846. package/esm/Updaters/Tilt/index.d.ts +2 -2
  847. package/esm/Updaters/Wobble/WobbleUpdater.d.ts +1 -3
  848. package/esm/Updaters/Wobble/index.d.ts +2 -2
  849. package/esm/Utils/CanvasUtils.d.ts +3 -3
  850. package/esm/Utils/CanvasUtils.js +4 -5
  851. package/esm/Utils/ColorUtils.d.ts +1 -1
  852. package/esm/Utils/ColorUtils.js +2 -3
  853. package/esm/Utils/NumberUtils.d.ts +2 -2
  854. package/esm/Utils/NumberUtils.js +18 -19
  855. package/esm/Utils/Utils.d.ts +1 -1
  856. package/esm/Utils/Utils.js +5 -6
  857. package/esm/Utils/index.d.ts +0 -9
  858. package/esm/Utils/index.js +0 -9
  859. package/{main.d.ts → esm/engine.d.ts} +2 -4
  860. package/esm/{main.js → engine.js} +8 -9
  861. package/esm/full.d.ts +2 -2
  862. package/esm/full.js +3 -3
  863. package/esm/index.d.ts +6 -16
  864. package/esm/index.engine.d.ts +13 -0
  865. package/esm/index.engine.js +11 -0
  866. package/esm/index.js +5 -13
  867. package/esm/index.slim.d.ts +6 -16
  868. package/esm/index.slim.js +5 -13
  869. package/esm/pjs.d.ts +3 -3
  870. package/esm/pjs.js +6 -5
  871. package/esm/slim.d.ts +2 -2
  872. package/full.d.ts +2 -2
  873. package/full.js +6 -6
  874. package/index.d.ts +6 -16
  875. package/index.engine.d.ts +13 -0
  876. package/index.engine.js +27 -0
  877. package/index.js +7 -19
  878. package/index.slim.d.ts +6 -16
  879. package/index.slim.js +7 -19
  880. package/package.json +1 -1
  881. package/pjs.d.ts +3 -3
  882. package/pjs.js +6 -5
  883. package/report.html +2 -2
  884. package/report.slim.html +2 -2
  885. package/slim.d.ts +2 -2
  886. package/tsparticles.engine.js +6746 -0
  887. package/tsparticles.engine.min.js +2 -0
  888. package/tsparticles.interaction.external.attract.js +4976 -0
  889. package/tsparticles.interaction.external.attract.min.js +2 -0
  890. package/tsparticles.interaction.external.bounce.js +4997 -0
  891. package/tsparticles.interaction.external.bounce.min.js +2 -0
  892. package/tsparticles.interaction.external.bubble.js +5083 -0
  893. package/tsparticles.interaction.external.bubble.min.js +2 -0
  894. package/tsparticles.interaction.external.connect.js +4845 -0
  895. package/tsparticles.interaction.external.connect.min.js +2 -0
  896. package/tsparticles.interaction.external.grab.js +4851 -0
  897. package/tsparticles.interaction.external.grab.min.js +2 -0
  898. package/tsparticles.interaction.external.repulse.js +5028 -0
  899. package/tsparticles.interaction.external.repulse.min.js +2 -0
  900. package/tsparticles.interaction.external.trail.js +4853 -0
  901. package/tsparticles.interaction.external.trail.min.js +2 -0
  902. package/tsparticles.interaction.particles.attract.js +4834 -0
  903. package/tsparticles.interaction.particles.attract.min.js +2 -0
  904. package/tsparticles.interaction.particles.collisions.js +4999 -0
  905. package/tsparticles.interaction.particles.collisions.min.js +2 -0
  906. package/tsparticles.interaction.particles.links.js +5071 -0
  907. package/tsparticles.interaction.particles.links.min.js +2 -0
  908. package/tsparticles.js +1263 -1572
  909. package/tsparticles.min.js +2 -2
  910. package/tsparticles.pathseg.min.js +2 -0
  911. package/tsparticles.plugins.absorbers.js +5332 -0
  912. package/tsparticles.plugins.absorbers.min.js +2 -0
  913. package/tsparticles.plugins.emitters.js +5419 -0
  914. package/tsparticles.plugins.emitters.min.js +2 -0
  915. package/tsparticles.plugins.polygonMask.js +5862 -0
  916. package/tsparticles.plugins.polygonMask.min.js +2 -0
  917. package/tsparticles.shape.circle.js +59 -0
  918. package/tsparticles.shape.circle.min.js +2 -0
  919. package/tsparticles.shape.image.js +5021 -0
  920. package/tsparticles.shape.image.min.js +2 -0
  921. package/tsparticles.shape.line.js +60 -0
  922. package/tsparticles.shape.line.min.js +2 -0
  923. package/tsparticles.shape.polygon.js +131 -0
  924. package/tsparticles.shape.polygon.min.js +2 -0
  925. package/tsparticles.shape.square.js +62 -0
  926. package/tsparticles.shape.square.min.js +2 -0
  927. package/tsparticles.shape.star.js +71 -0
  928. package/tsparticles.shape.star.min.js +2 -0
  929. package/tsparticles.shape.text.js +4865 -0
  930. package/tsparticles.shape.text.min.js +2 -0
  931. package/tsparticles.slim.js +1052 -1314
  932. package/tsparticles.slim.min.js +2 -2
  933. package/tsparticles.updater.angle.js +4880 -0
  934. package/tsparticles.updater.angle.min.js +2 -0
  935. package/tsparticles.updater.color.js +4862 -0
  936. package/tsparticles.updater.color.min.js +2 -0
  937. package/tsparticles.updater.life.js +4864 -0
  938. package/tsparticles.updater.life.min.js +2 -0
  939. package/tsparticles.updater.opacity.js +4914 -0
  940. package/tsparticles.updater.opacity.min.js +2 -0
  941. package/tsparticles.updater.outModes.js +4998 -0
  942. package/tsparticles.updater.outModes.min.js +2 -0
  943. package/tsparticles.updater.roll.js +4862 -0
  944. package/tsparticles.updater.roll.min.js +2 -0
  945. package/tsparticles.updater.size.js +4870 -0
  946. package/tsparticles.updater.size.min.js +2 -0
  947. package/tsparticles.updater.strokeColor.js +4875 -0
  948. package/tsparticles.updater.strokeColor.min.js +2 -0
  949. package/tsparticles.updater.tilt.js +4881 -0
  950. package/tsparticles.updater.tilt.min.js +2 -0
  951. package/tsparticles.updater.wobble.js +4850 -0
  952. package/tsparticles.updater.wobble.min.js +2 -0
  953. package/Plugins/Absorbers/plugin.d.ts +0 -2
  954. package/Plugins/PolygonMask/Enums/InlineArrangement.d.ts +0 -8
  955. package/Plugins/PolygonMask/Enums/InlineArrangement.js +0 -11
  956. package/Plugins/PolygonMask/Enums/MoveType.d.ts +0 -4
  957. package/Plugins/PolygonMask/Enums/MoveType.js +0 -8
  958. package/Plugins/PolygonMask/Enums/Type.js +0 -10
  959. package/Plugins/PolygonMask/Options/Classes/DrawStroke.js +0 -28
  960. package/Plugins/PolygonMask/Options/Classes/Inline.d.ts +0 -9
  961. package/Plugins/PolygonMask/Options/Classes/Inline.js +0 -17
  962. package/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +0 -11
  963. package/Plugins/PolygonMask/Options/Classes/LocalSvg.js +0 -28
  964. package/Plugins/PolygonMask/Options/Classes/Move.d.ts +0 -10
  965. package/Plugins/PolygonMask/Options/Classes/Move.js +0 -21
  966. package/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +0 -8
  967. package/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +0 -6
  968. package/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +0 -4
  969. package/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +0 -5
  970. package/Plugins/PolygonMask/plugin.d.ts +0 -2
  971. package/browser/Plugins/Absorbers/plugin.d.ts +0 -2
  972. package/browser/Plugins/PolygonMask/Enums/InlineArrangement.d.ts +0 -8
  973. package/browser/Plugins/PolygonMask/Enums/InlineArrangement.js +0 -8
  974. package/browser/Plugins/PolygonMask/Enums/MoveType.d.ts +0 -4
  975. package/browser/Plugins/PolygonMask/Enums/MoveType.js +0 -5
  976. package/browser/Plugins/PolygonMask/Enums/Type.js +0 -7
  977. package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.js +0 -27
  978. package/browser/Plugins/PolygonMask/Options/Classes/Inline.d.ts +0 -12
  979. package/browser/Plugins/PolygonMask/Options/Classes/Inline.js +0 -16
  980. package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.js +0 -27
  981. package/browser/Plugins/PolygonMask/Options/Classes/Move.d.ts +0 -13
  982. package/browser/Plugins/PolygonMask/Options/Classes/Move.js +0 -20
  983. package/browser/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +0 -7
  984. package/browser/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +0 -8
  985. package/browser/Plugins/PolygonMask/plugin.d.ts +0 -2
  986. package/esm/Plugins/Absorbers/plugin.d.ts +0 -2
  987. package/esm/Plugins/PolygonMask/Enums/InlineArrangement.d.ts +0 -8
  988. package/esm/Plugins/PolygonMask/Enums/InlineArrangement.js +0 -8
  989. package/esm/Plugins/PolygonMask/Enums/MoveType.d.ts +0 -4
  990. package/esm/Plugins/PolygonMask/Enums/MoveType.js +0 -5
  991. package/esm/Plugins/PolygonMask/Enums/Type.js +0 -7
  992. package/esm/Plugins/PolygonMask/Options/Classes/DrawStroke.js +0 -24
  993. package/esm/Plugins/PolygonMask/Options/Classes/Inline.d.ts +0 -9
  994. package/esm/Plugins/PolygonMask/Options/Classes/Inline.js +0 -13
  995. package/esm/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +0 -11
  996. package/esm/Plugins/PolygonMask/Options/Classes/LocalSvg.js +0 -24
  997. package/esm/Plugins/PolygonMask/Options/Classes/Move.d.ts +0 -10
  998. package/esm/Plugins/PolygonMask/Options/Classes/Move.js +0 -17
  999. package/esm/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +0 -8
  1000. package/esm/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +0 -6
  1001. package/esm/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +0 -4
  1002. package/esm/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +0 -5
  1003. package/esm/Plugins/PolygonMask/plugin.d.ts +0 -2
  1004. package/tsparticles.pathseg.js +0 -1472
@@ -1,6 +1,4 @@
1
- import type { IContainerPlugin } from "../../../Core/Interfaces";
2
- import type { Particle } from "../../../Core/Particle";
3
- import type { Container } from "../../../Core/Container";
1
+ import type { Container, IContainerPlugin, Particle } from "../../../Core";
4
2
  export declare class LinkInstance implements IContainerPlugin {
5
3
  private readonly container;
6
4
  constructor(container: Container);
@@ -1,4 +1,4 @@
1
- import type { Particle } from "../../../Core/Particle";
1
+ import type { Particle } from "../../../Core";
2
2
  import type { ILink } from "./ILink";
3
3
  export declare type LinkParticle = Particle & {
4
4
  links: ILink[];
@@ -1,7 +1,6 @@
1
- import { Particle } from "../../../Core/Particle";
2
- import type { Container } from "../../../Core/Container";
3
- import { ParticlesInteractorBase } from "../../../Core/ParticlesInteractorBase";
4
- import { LinkParticle } from "./LinkParticle";
1
+ import type { Container, Particle } from "../../../Core";
2
+ import { ParticlesInteractorBase } from "../../../Core";
3
+ import type { LinkParticle } from "./LinkParticle";
5
4
  export declare class Linker extends ParticlesInteractorBase {
6
5
  constructor(container: Container);
7
6
  isEnabled(particle: Particle): boolean;
@@ -1,5 +1,5 @@
1
- import { Circle, CircleWarp, getDistance, getLinkRandomColor } from "../../../Utils";
2
- import { ParticlesInteractorBase } from "../../../Core/ParticlesInteractorBase";
1
+ import { getDistance, getLinkRandomColor } from "../../../Utils";
2
+ import { Circle, CircleWarp, ParticlesInteractorBase } from "../../../Core";
3
3
  function getLinkDistance(pos1, pos2, optDistance, canvasSize, warp) {
4
4
  let distance = getDistance(pos1, pos2);
5
5
  if (!warp || distance <= optDistance) {
@@ -1,3 +1,2 @@
1
- import type { Main } from "../../../main";
2
- export declare function loadInteraction(tsParticles: Main): Promise<void>;
3
- export declare function loadParticlesLinksInteraction(tsParticles: Main): Promise<void>;
1
+ import type { Engine } from "../../../engine";
2
+ export declare function loadParticlesLinksInteraction(tsParticles: Engine): Promise<void>;
@@ -1,8 +1,5 @@
1
- import { Linker } from "./Linker";
2
1
  import { loadPlugin } from "./plugin";
3
- export async function loadInteraction(tsParticles) {
4
- await tsParticles.addInteractor("particlesLinks", (container) => new Linker(container));
5
- }
2
+ import { loadInteraction } from "./interaction";
6
3
  export async function loadParticlesLinksInteraction(tsParticles) {
7
4
  await loadInteraction(tsParticles);
8
5
  await loadPlugin(tsParticles);
@@ -0,0 +1,2 @@
1
+ import type { Engine } from "../../../engine";
2
+ export declare function loadInteraction(tsParticles: Engine): Promise<void>;
@@ -0,0 +1,4 @@
1
+ import { Linker } from "./Linker";
2
+ export async function loadInteraction(tsParticles) {
3
+ await tsParticles.addInteractor("particlesLinks", (container) => new Linker(container));
4
+ }
@@ -1,2 +1,2 @@
1
- import type { Main } from "../../../main";
2
- export declare function loadPlugin(tsParticles: Main): Promise<void>;
1
+ import type { Engine } from "../../../engine";
2
+ export declare function loadPlugin(tsParticles: Engine): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { LinkInstance } from "./LinkInstance";
2
- class Plugin {
2
+ class LinksPlugin {
3
3
  constructor() {
4
4
  this.id = "links";
5
5
  }
@@ -14,6 +14,6 @@ class Plugin {
14
14
  }
15
15
  }
16
16
  export async function loadPlugin(tsParticles) {
17
- const plugin = new Plugin();
17
+ const plugin = new LinksPlugin();
18
18
  await tsParticles.addPlugin(plugin);
19
19
  }
@@ -1,11 +1,10 @@
1
- import { GradientType, RotateDirection, StartValueType } from "../../Enums";
2
1
  import { AnimatableColor } from "./AnimatableColor";
3
2
  import { setRangeValue } from "../../Utils";
4
3
  export class AnimatableGradient {
5
4
  constructor() {
6
5
  this.angle = new GradientAngle();
7
6
  this.colors = [];
8
- this.type = GradientType.random;
7
+ this.type = "random" /* random */;
9
8
  }
10
9
  load(data) {
11
10
  if (!data) {
@@ -28,7 +27,7 @@ export class GradientAngle {
28
27
  constructor() {
29
28
  this.value = 0;
30
29
  this.animation = new GradientAngleAnimation();
31
- this.direction = RotateDirection.clockwise;
30
+ this.direction = "clockwise" /* clockwise */;
32
31
  }
33
32
  load(data) {
34
33
  if (!data) {
@@ -113,7 +112,7 @@ export class GradientColorOpacityAnimation {
113
112
  this.enable = false;
114
113
  this.speed = 0;
115
114
  this.sync = false;
116
- this.startValue = StartValueType.random;
115
+ this.startValue = "random" /* random */;
117
116
  }
118
117
  load(data) {
119
118
  if (!data) {
@@ -1,4 +1,3 @@
1
- import { DivType } from "../../../../Enums";
2
1
  /**
3
2
  * [[include:Options/Interactivity/Div.md]]
4
3
  * @category Options
@@ -8,7 +7,7 @@ export class DivEvent {
8
7
  this.selectors = [];
9
8
  this.enable = false;
10
9
  this.mode = [];
11
- this.type = DivType.circle;
10
+ this.type = "circle" /* circle */;
12
11
  }
13
12
  /**
14
13
  * The element id to detect the event
@@ -1,4 +1,3 @@
1
- import { HoverMode, InteractivityDetect } from "../../../Enums";
2
1
  import { Events } from "./Events/Events";
3
2
  import { Modes } from "./Modes/Modes";
4
3
  /**
@@ -7,7 +6,7 @@ import { Modes } from "./Modes/Modes";
7
6
  */
8
7
  export class Interactivity {
9
8
  constructor() {
10
- this.detectsOn = InteractivityDetect.window;
9
+ this.detectsOn = "window" /* window */;
11
10
  this.events = new Events();
12
11
  this.modes = new Modes();
13
12
  }
@@ -39,12 +38,12 @@ export class Interactivity {
39
38
  this.modes.load(data.modes);
40
39
  if (((_c = (_b = data.modes) === null || _b === void 0 ? void 0 : _b.slow) === null || _c === void 0 ? void 0 : _c.active) === true) {
41
40
  if (this.events.onHover.mode instanceof Array) {
42
- if (this.events.onHover.mode.indexOf(HoverMode.slow) < 0) {
43
- this.events.onHover.mode.push(HoverMode.slow);
41
+ if (this.events.onHover.mode.indexOf("slow" /* slow */) < 0) {
42
+ this.events.onHover.mode.push("slow" /* slow */);
44
43
  }
45
44
  }
46
- else if (this.events.onHover.mode !== HoverMode.slow) {
47
- this.events.onHover.mode = [this.events.onHover.mode, HoverMode.slow];
45
+ else if (this.events.onHover.mode !== "slow" /* slow */) {
46
+ this.events.onHover.mode = [this.events.onHover.mode, "slow" /* slow */];
48
47
  }
49
48
  }
50
49
  }
@@ -1,4 +1,3 @@
1
- import { EasingType } from "../../../../Enums";
2
1
  /**
3
2
  * @category Options
4
3
  */
@@ -6,7 +5,7 @@ export class Attract {
6
5
  constructor() {
7
6
  this.distance = 200;
8
7
  this.duration = 0.4;
9
- this.easing = EasingType.easeOutQuad;
8
+ this.easing = "ease-out-quad" /* easeOutQuad */;
10
9
  this.factor = 1;
11
10
  this.maxSpeed = 50;
12
11
  this.speed = 1;
@@ -1,4 +1,3 @@
1
- import { EasingType } from "../../../../Enums";
2
1
  /**
3
2
  * @category Options
4
3
  */
@@ -9,7 +8,7 @@ export class RepulseBase {
9
8
  this.factor = 100;
10
9
  this.speed = 1;
11
10
  this.maxSpeed = 50;
12
- this.easing = EasingType.easeOutQuad;
11
+ this.easing = "ease-out-quad" /* easeOutQuad */;
13
12
  }
14
13
  load(data) {
15
14
  if (!data) {
@@ -8,13 +8,13 @@ import { Interactivity } from "./Interactivity/Interactivity";
8
8
  import { ParticlesOptions } from "./Particles/ParticlesOptions";
9
9
  import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
10
10
  import { Background } from "./Background/Background";
11
- import { deepExtend, Plugins } from "../../Utils";
11
+ import { deepExtend } from "../../Utils";
12
12
  import { Theme } from "./Theme/Theme";
13
- import { ResponsiveMode, ThemeMode } from "../../Enums";
14
13
  import { FullScreen } from "./FullScreen/FullScreen";
15
14
  import { Motion } from "./Motion/Motion";
16
15
  import { ManualParticle } from "./ManualParticle";
17
16
  import { Responsive } from "./Responsive";
17
+ import { Plugins } from "../../Core";
18
18
  /**
19
19
  * [[include:Options.md]]
20
20
  * @category Options
@@ -158,8 +158,8 @@ export class Options {
158
158
  this.themes.push(optTheme);
159
159
  }
160
160
  }
161
- this.defaultDarkTheme = (_d = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, ThemeMode.dark)) === null || _d === void 0 ? void 0 : _d.name;
162
- this.defaultLightTheme = (_e = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, ThemeMode.light)) === null || _e === void 0 ? void 0 : _e.name;
161
+ this.defaultDarkTheme = (_d = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark" /* dark */)) === null || _d === void 0 ? void 0 : _d.name;
162
+ this.defaultLightTheme = (_e = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light" /* light */)) === null || _e === void 0 ? void 0 : _e.name;
163
163
  }
164
164
  setTheme(name) {
165
165
  if (name) {
@@ -169,7 +169,7 @@ export class Options {
169
169
  }
170
170
  }
171
171
  else {
172
- const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? ThemeMode.dark : ThemeMode.light);
172
+ const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? "dark" /* dark */ : "light" /* light */);
173
173
  if (defaultTheme) {
174
174
  this.load(defaultTheme.options);
175
175
  }
@@ -177,7 +177,7 @@ export class Options {
177
177
  }
178
178
  setResponsive(width, pxRatio, defaultOptions) {
179
179
  this.load(defaultOptions);
180
- const responsiveOptions = this.responsive.find((t) => t.mode === ResponsiveMode.screen && screen
180
+ const responsiveOptions = this.responsive.find((t) => t.mode === "screen" /* screen */ && screen
181
181
  ? t.maxWidth * pxRatio > screen.availWidth
182
182
  : t.maxWidth * pxRatio > width);
183
183
  this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
@@ -189,5 +189,5 @@ export class Options {
189
189
  }
190
190
  _Options_instances = new WeakSet(), _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
191
191
  var _a;
192
- return ((_a = this.themes.find((theme) => theme.default.value && theme.default.mode === mode)) !== null && _a !== void 0 ? _a : this.themes.find((theme) => theme.default.value && theme.default.mode === ThemeMode.any));
192
+ return ((_a = this.themes.find((theme) => theme.default.value && theme.default.mode === mode)) !== null && _a !== void 0 ? _a : this.themes.find((theme) => theme.default.value && theme.default.mode === "any" /* any */));
193
193
  };
@@ -1,4 +1,3 @@
1
- import { CollisionMode } from "../../../../Enums";
2
1
  import { Bounce } from "../Bounce/Bounce";
3
2
  import { CollisionsOverlap } from "./CollisionsOverlap";
4
3
  /**
@@ -9,7 +8,7 @@ export class Collisions {
9
8
  constructor() {
10
9
  this.bounce = new Bounce();
11
10
  this.enable = false;
12
- this.mode = CollisionMode.bounce;
11
+ this.mode = "bounce" /* bounce */;
13
12
  this.overlap = new CollisionsOverlap();
14
13
  }
15
14
  load(data) {
@@ -1,8 +1,7 @@
1
- import { DestroyMode } from "../../../../Enums";
2
1
  import { Split } from "./Split";
3
2
  export class Destroy {
4
3
  constructor() {
5
- this.mode = DestroyMode.none;
4
+ this.mode = "none" /* none */;
6
5
  this.split = new Split();
7
6
  }
8
7
  load(data) {
@@ -1,5 +1,4 @@
1
1
  import { Attract } from "./Attract";
2
- import { MoveDirection } from "../../../../Enums";
3
2
  import { Trail } from "./Trail";
4
3
  import { Path } from "./Path/Path";
5
4
  import { MoveAngle } from "./MoveAngle";
@@ -17,7 +16,7 @@ export class Move {
17
16
  this.attract = new Attract();
18
17
  this.decay = 0;
19
18
  this.distance = {};
20
- this.direction = MoveDirection.none;
19
+ this.direction = "none" /* none */;
21
20
  this.drift = 0;
22
21
  this.enable = false;
23
22
  this.gravity = new MoveGravity();
@@ -1,7 +1,6 @@
1
- import { OutMode } from "../../../../Enums/Modes";
2
1
  export class OutModes {
3
2
  constructor() {
4
- this.default = OutMode.out;
3
+ this.default = "out" /* out */;
5
4
  }
6
5
  load(data) {
7
6
  var _a, _b, _c, _d;
@@ -1,4 +1,3 @@
1
- import { DestroyType, StartValueType } from "../../../../Enums";
2
1
  import { AnimationOptions } from "../../AnimationOptions";
3
2
  /**
4
3
  * @category Options
@@ -6,10 +5,10 @@ import { AnimationOptions } from "../../AnimationOptions";
6
5
  export class OpacityAnimation extends AnimationOptions {
7
6
  constructor() {
8
7
  super();
9
- this.destroy = DestroyType.none;
8
+ this.destroy = "none" /* none */;
10
9
  this.enable = false;
11
10
  this.speed = 2;
12
- this.startValue = StartValueType.random;
11
+ this.startValue = "random" /* random */;
13
12
  this.sync = false;
14
13
  }
15
14
  /**
@@ -1,13 +1,12 @@
1
1
  import { OptionsColor } from "../../OptionsColor";
2
2
  import { RollLight } from "./RollLight";
3
3
  import { setRangeValue } from "../../../../Utils";
4
- import { RollMode } from "../../../../Enums";
5
4
  export class Roll {
6
5
  constructor() {
7
6
  this.darken = new RollLight();
8
7
  this.enable = false;
9
8
  this.enlighten = new RollLight();
10
- this.mode = RollMode.vertical;
9
+ this.mode = "vertical" /* vertical */;
11
10
  this.speed = 25;
12
11
  }
13
12
  load(data) {
@@ -1,5 +1,4 @@
1
1
  import { RotateAnimation } from "./RotateAnimation";
2
- import { RotateDirection } from "../../../../Enums";
3
2
  import { ValueWithRandom } from "../../ValueWithRandom";
4
3
  /**
5
4
  * [[include:Options/Particles/Rotate.md]]
@@ -9,7 +8,7 @@ export class Rotate extends ValueWithRandom {
9
8
  constructor() {
10
9
  super();
11
10
  this.animation = new RotateAnimation();
12
- this.direction = RotateDirection.clockwise;
11
+ this.direction = "clockwise" /* clockwise */;
13
12
  this.path = false;
14
13
  this.value = 0;
15
14
  }
@@ -1,4 +1,3 @@
1
- import { ShapeType } from "../../../../Enums";
2
1
  import { deepExtend } from "../../../../Utils";
3
2
  /**
4
3
  * [[include:Options/Particles/Shape.md]]
@@ -7,22 +6,22 @@ import { deepExtend } from "../../../../Utils";
7
6
  export class Shape {
8
7
  constructor() {
9
8
  this.options = {};
10
- this.type = ShapeType.circle;
9
+ this.type = "circle" /* circle */;
11
10
  }
12
11
  /**
13
12
  * @deprecated this property was integrated in custom shape management
14
13
  */
15
14
  get image() {
16
15
  var _a;
17
- return ((_a = this.options[ShapeType.image]) !== null && _a !== void 0 ? _a : this.options[ShapeType.images]);
16
+ return ((_a = this.options["image" /* image */]) !== null && _a !== void 0 ? _a : this.options["images" /* images */]);
18
17
  }
19
18
  /**
20
19
  * @deprecated this property was integrated in custom shape management
21
20
  * @param value
22
21
  */
23
22
  set image(value) {
24
- this.options[ShapeType.image] = value;
25
- this.options[ShapeType.images] = value;
23
+ this.options["image" /* image */] = value;
24
+ this.options["images" /* images */] = value;
26
25
  }
27
26
  /**
28
27
  * @deprecated This options has been renamed options
@@ -66,28 +65,28 @@ export class Shape {
66
65
  */
67
66
  get character() {
68
67
  var _a;
69
- return ((_a = this.options[ShapeType.character]) !== null && _a !== void 0 ? _a : this.options[ShapeType.char]);
68
+ return ((_a = this.options["character" /* character */]) !== null && _a !== void 0 ? _a : this.options["char" /* char */]);
70
69
  }
71
70
  /**
72
71
  * @deprecated this property was integrated in custom shape management
73
72
  */
74
73
  set character(value) {
75
- this.options[ShapeType.character] = value;
76
- this.options[ShapeType.char] = value;
74
+ this.options["character" /* character */] = value;
75
+ this.options["char" /* char */] = value;
77
76
  }
78
77
  /**
79
78
  * @deprecated this property was integrated in custom shape management
80
79
  */
81
80
  get polygon() {
82
81
  var _a;
83
- return ((_a = this.options[ShapeType.polygon]) !== null && _a !== void 0 ? _a : this.options[ShapeType.star]);
82
+ return ((_a = this.options["polygon" /* polygon */]) !== null && _a !== void 0 ? _a : this.options["star" /* star */]);
84
83
  }
85
84
  /**
86
85
  * @deprecated this property was integrated in custom shape management
87
86
  */
88
87
  set polygon(value) {
89
- this.options[ShapeType.polygon] = value;
90
- this.options[ShapeType.star] = value;
88
+ this.options["polygon" /* polygon */] = value;
89
+ this.options["star" /* star */] = value;
91
90
  }
92
91
  load(data) {
93
92
  var _a, _b, _c;
@@ -103,9 +102,9 @@ export class Shape {
103
102
  }
104
103
  }
105
104
  }
106
- this.loadShape(data.character, ShapeType.character, ShapeType.char, true);
107
- this.loadShape(data.polygon, ShapeType.polygon, ShapeType.star, false);
108
- this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, ShapeType.image, ShapeType.images, true);
105
+ this.loadShape(data.character, "character" /* character */, "char" /* char */, true);
106
+ this.loadShape(data.polygon, "polygon" /* polygon */, "star" /* star */, false);
107
+ this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, "image" /* image */, "images" /* images */, true);
109
108
  if (data.type !== undefined) {
110
109
  this.type = data.type;
111
110
  }
@@ -1,4 +1,3 @@
1
- import { DestroyType, StartValueType } from "../../../../Enums";
2
1
  import { AnimationOptions } from "../../AnimationOptions";
3
2
  /**
4
3
  * @category Options
@@ -6,10 +5,10 @@ import { AnimationOptions } from "../../AnimationOptions";
6
5
  export class SizeAnimation extends AnimationOptions {
7
6
  constructor() {
8
7
  super();
9
- this.destroy = DestroyType.none;
8
+ this.destroy = "none" /* none */;
10
9
  this.enable = false;
11
10
  this.speed = 5;
12
- this.startValue = StartValueType.random;
11
+ this.startValue = "random" /* random */;
13
12
  this.sync = false;
14
13
  }
15
14
  /**
@@ -1,5 +1,4 @@
1
1
  import { TiltAnimation } from "./TiltAnimation";
2
- import { TiltDirection } from "../../../../Enums";
3
2
  import { ValueWithRandom } from "../../ValueWithRandom";
4
3
  /**
5
4
  * [[include:Options/Particles/Rotate.md]]
@@ -9,7 +8,7 @@ export class Tilt extends ValueWithRandom {
9
8
  constructor() {
10
9
  super();
11
10
  this.animation = new TiltAnimation();
12
- this.direction = TiltDirection.clockwise;
11
+ this.direction = "clockwise" /* clockwise */;
13
12
  this.enable = false;
14
13
  this.value = 0;
15
14
  }
@@ -1,10 +1,9 @@
1
1
  import { deepExtend } from "../../Utils";
2
- import { ResponsiveMode } from "../../Enums";
3
2
  export class Responsive {
4
3
  constructor() {
5
4
  this.maxWidth = Infinity;
6
5
  this.options = {};
7
- this.mode = ResponsiveMode.canvas;
6
+ this.mode = "canvas" /* canvas */;
8
7
  }
9
8
  load(data) {
10
9
  if (!data) {
@@ -15,11 +14,11 @@ export class Responsive {
15
14
  }
16
15
  if (data.mode !== undefined) {
17
16
  // not enforcing an error here as this should largely be an opt-in setting
18
- if (data.mode === ResponsiveMode.screen) {
19
- this.mode = ResponsiveMode.screen;
17
+ if (data.mode === "screen" /* screen */) {
18
+ this.mode = "screen" /* screen */;
20
19
  }
21
20
  else {
22
- this.mode = ResponsiveMode.canvas;
21
+ this.mode = "canvas" /* canvas */;
23
22
  }
24
23
  }
25
24
  if (data.options !== undefined) {
@@ -1,8 +1,7 @@
1
- import { ThemeMode } from "../../../Enums";
2
1
  export class ThemeDefault {
3
2
  constructor() {
4
3
  this.auto = false;
5
- this.mode = ThemeMode.any;
4
+ this.mode = "any" /* any */;
6
5
  this.value = false;
7
6
  }
8
7
  load(data) {
@@ -1,6 +1,6 @@
1
1
  import type { AbsorberInstance } from "./AbsorberInstance";
2
2
  import type { IAbsorber } from "./Options/Interfaces/IAbsorber";
3
- import type { ICoordinates } from "../../Core/Interfaces/ICoordinates";
3
+ import type { ICoordinates } from "../../Core";
4
4
  export interface AbsorberContainer {
5
5
  addAbsorber: (options: IAbsorber, position: ICoordinates) => AbsorberInstance;
6
6
  getAbsorber: (idxOrName?: number | string) => AbsorberInstance | undefined;
@@ -1,9 +1,7 @@
1
- import type { ICoordinates, IRgb } from "../../Core/Interfaces";
2
- import type { Container } from "../../Core/Container";
3
- import type { Particle } from "../../Core/Particle";
1
+ import type { Container, ICoordinates, IRgb, Particle } from "../../Core";
4
2
  import type { IAbsorber } from "./Options/Interfaces/IAbsorber";
5
3
  import type { Absorbers } from "./Absorbers";
6
- import { Vector } from "../../Core/Particle/Vector";
4
+ import { Vector } from "../../Core";
7
5
  import { RotateDirection } from "../../Enums";
8
6
  import { IAbsorberSizeLimit } from "./Options/Interfaces/IAbsorberSizeLimit";
9
7
  declare type OrbitingParticle = Particle & {
@@ -1,6 +1,5 @@
1
1
  import { colorToRgb, getDistance, getDistances, getRangeValue, getStyleFromRgb, isPointInside } from "../../Utils";
2
- import { Vector } from "../../Core/Particle/Vector";
3
- import { RotateDirection } from "../../Enums";
2
+ import { Vector } from "../../Core";
4
3
  /**
5
4
  * @category Absorbers Plugin
6
5
  */
@@ -134,7 +133,7 @@ export class AbsorberInstance {
134
133
  }
135
134
  if (particle.absorberOrbitDirection === undefined) {
136
135
  particle.absorberOrbitDirection =
137
- particle.velocity.x >= 0 ? RotateDirection.clockwise : RotateDirection.counterClockwise;
136
+ particle.velocity.x >= 0 ? "clockwise" /* clockwise */ : "counter-clockwise" /* counterClockwise */;
138
137
  }
139
138
  const orbitRadius = particle.absorberOrbit.length;
140
139
  const orbitAngle = particle.absorberOrbit.angle;
@@ -142,8 +141,8 @@ export class AbsorberInstance {
142
141
  particle.velocity.x = 0;
143
142
  particle.velocity.y = 0;
144
143
  const updateFunc = {
145
- x: orbitDirection === RotateDirection.clockwise ? Math.cos : Math.sin,
146
- y: orbitDirection === RotateDirection.clockwise ? Math.sin : Math.cos,
144
+ x: orbitDirection === "clockwise" /* clockwise */ ? Math.cos : Math.sin,
145
+ y: orbitDirection === "clockwise" /* clockwise */ ? Math.sin : Math.cos,
147
146
  };
148
147
  particle.position.x = this.position.x + orbitRadius * updateFunc.x(orbitAngle);
149
148
  particle.position.y = this.position.y + orbitRadius * updateFunc.y(orbitAngle);
@@ -1,13 +1,10 @@
1
- import type { IContainerPlugin } from "../../Core/Interfaces/IContainerPlugin";
1
+ import type { Container, IContainerPlugin, ICoordinates, Particle } from "../../Core";
2
2
  import { AbsorberInstance } from "./AbsorberInstance";
3
- import type { Container } from "../../Core/Container";
4
- import type { Particle } from "../../Core/Particle";
5
3
  import type { IAbsorber } from "./Options/Interfaces/IAbsorber";
6
4
  import { Absorber } from "./Options/Classes/Absorber";
7
5
  import type { SingleOrMultiple, RecursivePartial } from "../../Types";
8
6
  import type { IOptions } from "../../Options/Interfaces/IOptions";
9
7
  import type { IAbsorberOptions } from "./Options/Interfaces/IAbsorberOptions";
10
- import type { ICoordinates } from "../../Core/Interfaces/ICoordinates";
11
8
  /**
12
9
  * @category Absorbers Plugin
13
10
  */
@@ -1,6 +1,5 @@
1
1
  import { AbsorberInstance } from "./AbsorberInstance";
2
2
  import { Absorber } from "./Options/Classes/Absorber";
3
- import { AbsorberClickMode } from "./Enums";
4
3
  import { itemFromArray } from "../../Utils";
5
4
  /**
6
5
  * @category Absorbers Plugin
@@ -89,7 +88,7 @@ export class Absorbers {
89
88
  const container = this.container;
90
89
  const absorberOptions = this.absorbers;
91
90
  const modeAbsorbers = this.interactivityAbsorbers;
92
- if (mode === AbsorberClickMode.absorber) {
91
+ if (mode === "absorber" /* absorber */) {
93
92
  let absorbersModeOptions;
94
93
  if (modeAbsorbers instanceof Array) {
95
94
  if (modeAbsorbers.length > 0) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @category Absorbers Plugin
3
3
  */
4
- export declare enum AbsorberClickMode {
4
+ export declare const enum AbsorberClickMode {
5
5
  absorber = "absorber"
6
6
  }
@@ -1,7 +1 @@
1
- /**
2
- * @category Absorbers Plugin
3
- */
4
- export var AbsorberClickMode;
5
- (function (AbsorberClickMode) {
6
- AbsorberClickMode["absorber"] = "absorber";
7
- })(AbsorberClickMode || (AbsorberClickMode = {}));
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { Engine } from "../../engine";
2
+ export declare function loadAbsorbersPlugin(tsParticles: Engine): Promise<void>;