@tsparticles/engine 3.0.0-alpha.0 → 3.0.0-beta.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 (336) hide show
  1. package/README.md +246 -211
  2. package/browser/Core/Canvas.js +271 -241
  3. package/browser/Core/Container.js +90 -106
  4. package/browser/Core/Engine.js +271 -0
  5. package/browser/Core/Particle.js +158 -162
  6. package/browser/Core/Particles.js +148 -134
  7. package/browser/Core/Retina.js +15 -13
  8. package/browser/Core/Utils/Circle.js +10 -6
  9. package/browser/Core/Utils/Constants.js +4 -3
  10. package/browser/Core/Utils/EventListeners.js +259 -220
  11. package/browser/Core/Utils/InteractionManager.js +6 -16
  12. package/browser/Core/Utils/QuadTree.js +14 -20
  13. package/browser/Core/Utils/Vector3d.js +17 -9
  14. package/browser/Options/Classes/AnimatableColor.js +2 -1
  15. package/browser/Options/Classes/AnimationOptions.js +7 -2
  16. package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +2 -1
  17. package/browser/Options/Classes/ColorAnimation.js +4 -0
  18. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
  19. package/browser/Options/Classes/Interactivity/Events/Events.js +5 -24
  20. package/browser/Options/Classes/Interactivity/Interactivity.js +1 -8
  21. package/browser/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  22. package/browser/Options/Classes/ManualParticle.js +5 -5
  23. package/browser/Options/Classes/Options.js +19 -39
  24. package/browser/Options/Classes/OptionsColor.js +3 -2
  25. package/browser/Options/Classes/Particles/Collisions/Collisions.js +5 -0
  26. package/browser/Options/Classes/Particles/Move/Move.js +11 -41
  27. package/browser/Options/Classes/Particles/Move/MoveAttract.js +9 -20
  28. package/browser/Options/Classes/Particles/Move/MoveTrail.js +2 -8
  29. package/browser/Options/Classes/Particles/Move/OutModes.js +4 -5
  30. package/browser/Options/Classes/Particles/Move/Spin.js +3 -1
  31. package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  32. package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
  33. package/browser/Options/Classes/Particles/Opacity/Opacity.js +11 -7
  34. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
  35. package/browser/Options/Classes/Particles/ParticlesOptions.js +6 -11
  36. package/browser/Options/Classes/Particles/Shape/Shape.js +9 -2
  37. package/browser/Options/Classes/Particles/Size/Size.js +11 -7
  38. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
  39. package/browser/Options/Classes/ValueWithRandom.js +4 -17
  40. package/browser/Utils/CanvasUtils.js +18 -54
  41. package/browser/Utils/ColorUtils.js +17 -19
  42. package/browser/Utils/EventDispatcher.js +7 -6
  43. package/browser/Utils/HslColorManager.js +2 -4
  44. package/browser/Utils/NumberUtils.js +41 -45
  45. package/browser/Utils/RgbColorManager.js +2 -4
  46. package/browser/Utils/Utils.js +150 -59
  47. package/browser/bundle.js +4 -96
  48. package/browser/export-types.js +97 -0
  49. package/browser/exports.js +89 -0
  50. package/browser/index.js +8 -198
  51. package/browser/init.js +12 -0
  52. package/cjs/Core/Canvas.js +269 -239
  53. package/cjs/Core/Container.js +90 -106
  54. package/cjs/Core/Engine.js +275 -0
  55. package/cjs/Core/Particle.js +157 -161
  56. package/cjs/Core/Particles.js +148 -134
  57. package/cjs/Core/Retina.js +15 -13
  58. package/cjs/Core/Utils/Circle.js +10 -6
  59. package/cjs/Core/Utils/Constants.js +5 -4
  60. package/cjs/Core/Utils/EventListeners.js +258 -219
  61. package/cjs/Core/Utils/InteractionManager.js +6 -16
  62. package/cjs/Core/Utils/QuadTree.js +14 -20
  63. package/cjs/Core/Utils/Vector3d.js +17 -9
  64. package/cjs/Options/Classes/AnimatableColor.js +2 -1
  65. package/cjs/Options/Classes/AnimationOptions.js +7 -2
  66. package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +2 -1
  67. package/cjs/Options/Classes/ColorAnimation.js +4 -0
  68. package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
  69. package/cjs/Options/Classes/Interactivity/Events/Events.js +5 -24
  70. package/cjs/Options/Classes/Interactivity/Interactivity.js +1 -8
  71. package/cjs/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  72. package/cjs/Options/Classes/ManualParticle.js +5 -5
  73. package/cjs/Options/Classes/Options.js +18 -38
  74. package/cjs/Options/Classes/OptionsColor.js +3 -2
  75. package/cjs/Options/Classes/Particles/Collisions/Collisions.js +5 -0
  76. package/cjs/Options/Classes/Particles/Move/Move.js +11 -41
  77. package/cjs/Options/Classes/Particles/Move/MoveAttract.js +9 -20
  78. package/cjs/Options/Classes/Particles/Move/MoveTrail.js +2 -8
  79. package/cjs/Options/Classes/Particles/Move/OutModes.js +4 -5
  80. package/cjs/Options/Classes/Particles/Move/Spin.js +3 -1
  81. package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  82. package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
  83. package/cjs/Options/Classes/Particles/Opacity/Opacity.js +10 -6
  84. package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
  85. package/cjs/Options/Classes/Particles/ParticlesOptions.js +6 -11
  86. package/cjs/Options/Classes/Particles/Shape/Shape.js +9 -2
  87. package/cjs/Options/Classes/Particles/Size/Size.js +11 -7
  88. package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
  89. package/cjs/Options/Classes/ValueWithRandom.js +4 -17
  90. package/cjs/Utils/CanvasUtils.js +21 -58
  91. package/cjs/Utils/ColorUtils.js +16 -18
  92. package/cjs/Utils/EventDispatcher.js +7 -6
  93. package/cjs/Utils/HslColorManager.js +2 -4
  94. package/cjs/Utils/NumberUtils.js +41 -45
  95. package/cjs/Utils/RgbColorManager.js +2 -4
  96. package/cjs/Utils/Utils.js +163 -63
  97. package/cjs/bundle.js +4 -96
  98. package/cjs/export-types.js +113 -0
  99. package/cjs/exports.js +105 -0
  100. package/cjs/index.js +8 -198
  101. package/cjs/init.js +16 -0
  102. package/esm/Core/Canvas.js +271 -241
  103. package/esm/Core/Container.js +90 -106
  104. package/esm/Core/Engine.js +271 -0
  105. package/esm/Core/Particle.js +158 -162
  106. package/esm/Core/Particles.js +148 -134
  107. package/esm/Core/Retina.js +15 -13
  108. package/esm/Core/Utils/Circle.js +10 -6
  109. package/esm/Core/Utils/Constants.js +4 -3
  110. package/esm/Core/Utils/EventListeners.js +259 -220
  111. package/esm/Core/Utils/InteractionManager.js +6 -16
  112. package/esm/Core/Utils/QuadTree.js +14 -20
  113. package/esm/Core/Utils/Vector3d.js +17 -9
  114. package/esm/Options/Classes/AnimatableColor.js +2 -1
  115. package/esm/Options/Classes/AnimationOptions.js +7 -2
  116. package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +2 -1
  117. package/esm/Options/Classes/ColorAnimation.js +4 -0
  118. package/esm/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
  119. package/esm/Options/Classes/Interactivity/Events/Events.js +5 -24
  120. package/esm/Options/Classes/Interactivity/Interactivity.js +1 -8
  121. package/esm/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  122. package/esm/Options/Classes/ManualParticle.js +5 -5
  123. package/esm/Options/Classes/Options.js +19 -39
  124. package/esm/Options/Classes/OptionsColor.js +3 -2
  125. package/esm/Options/Classes/Particles/Collisions/Collisions.js +5 -0
  126. package/esm/Options/Classes/Particles/Move/Move.js +11 -41
  127. package/esm/Options/Classes/Particles/Move/MoveAttract.js +9 -20
  128. package/esm/Options/Classes/Particles/Move/MoveTrail.js +2 -8
  129. package/esm/Options/Classes/Particles/Move/OutModes.js +4 -5
  130. package/esm/Options/Classes/Particles/Move/Spin.js +3 -1
  131. package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  132. package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
  133. package/esm/Options/Classes/Particles/Opacity/Opacity.js +11 -7
  134. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
  135. package/esm/Options/Classes/Particles/ParticlesOptions.js +6 -11
  136. package/esm/Options/Classes/Particles/Shape/Shape.js +9 -2
  137. package/esm/Options/Classes/Particles/Size/Size.js +11 -7
  138. package/esm/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
  139. package/esm/Options/Classes/ValueWithRandom.js +4 -17
  140. package/esm/Utils/CanvasUtils.js +18 -54
  141. package/esm/Utils/ColorUtils.js +17 -19
  142. package/esm/Utils/EventDispatcher.js +7 -6
  143. package/esm/Utils/HslColorManager.js +2 -4
  144. package/esm/Utils/NumberUtils.js +41 -45
  145. package/esm/Utils/RgbColorManager.js +2 -4
  146. package/esm/Utils/Utils.js +150 -59
  147. package/esm/bundle.js +4 -96
  148. package/esm/export-types.js +97 -0
  149. package/esm/exports.js +89 -0
  150. package/esm/index.js +8 -198
  151. package/esm/init.js +12 -0
  152. package/package.json +17 -2
  153. package/report.html +4 -4
  154. package/scripts/install.js +90 -33
  155. package/tsparticles.engine.js +1848 -1961
  156. package/tsparticles.engine.min.js +1 -1
  157. package/tsparticles.engine.min.js.LICENSE.txt +1 -10
  158. package/types/Core/Canvas.d.ts +20 -16
  159. package/types/Core/Container.d.ts +10 -14
  160. package/types/Core/Engine.d.ts +71 -0
  161. package/types/Core/Interfaces/IContainerPlugin.d.ts +2 -0
  162. package/types/Core/Interfaces/ICoordinates.d.ts +5 -3
  163. package/types/Core/Interfaces/IDimension.d.ts +4 -0
  164. package/types/Core/Interfaces/IMovePathGenerator.d.ts +2 -1
  165. package/types/Core/Interfaces/IParticleUpdater.d.ts +0 -2
  166. package/types/Core/Interfaces/IParticleValueAnimation.d.ts +2 -0
  167. package/types/Core/Interfaces/IPlugin.d.ts +4 -3
  168. package/types/Core/Particle.d.ts +7 -7
  169. package/types/Core/Particles.d.ts +14 -10
  170. package/types/Core/Utils/Constants.d.ts +4 -3
  171. package/types/Core/Utils/EventListeners.d.ts +20 -14
  172. package/types/Core/Utils/InteractionManager.d.ts +1 -1
  173. package/types/Core/Utils/QuadTree.d.ts +2 -5
  174. package/types/Core/Utils/Vector3d.d.ts +2 -1
  175. package/types/Enums/Modes/AnimationMode.d.ts +6 -0
  176. package/types/Enums/Modes/{SizeMode.d.ts → PixelMode.d.ts} +1 -1
  177. package/types/Options/Classes/AnimationOptions.d.ts +3 -1
  178. package/types/Options/Classes/ColorAnimation.d.ts +1 -0
  179. package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -6
  180. package/types/Options/Classes/Interactivity/Events/Events.d.ts +0 -6
  181. package/types/Options/Classes/Interactivity/Interactivity.d.ts +1 -3
  182. package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +1 -1
  183. package/types/Options/Classes/ManualParticle.d.ts +2 -2
  184. package/types/Options/Classes/Options.d.ts +5 -12
  185. package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +2 -0
  186. package/types/Options/Classes/Particles/Move/Move.d.ts +0 -11
  187. package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +0 -4
  188. package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +2 -2
  189. package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +0 -3
  190. package/types/Options/Classes/Particles/Move/Spin.d.ts +2 -2
  191. package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +0 -6
  192. package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -2
  193. package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +4 -4
  194. package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -2
  195. package/types/Options/Classes/Particles/ParticlesOptions.d.ts +1 -1
  196. package/types/Options/Classes/Particles/Shape/Shape.d.ts +2 -0
  197. package/types/Options/Classes/Particles/Size/Size.d.ts +4 -4
  198. package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -2
  199. package/types/Options/Classes/Responsive.d.ts +3 -3
  200. package/types/Options/Classes/Theme/Theme.d.ts +2 -2
  201. package/types/Options/Classes/ValueWithRandom.d.ts +2 -6
  202. package/types/Options/Interfaces/IAnimation.d.ts +3 -1
  203. package/types/Options/Interfaces/IManualParticle.d.ts +2 -2
  204. package/types/Options/Interfaces/IOptions.d.ts +1 -4
  205. package/types/Options/Interfaces/IResponsive.d.ts +4 -3
  206. package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -3
  207. package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -3
  208. package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -1
  209. package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -1
  210. package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +2 -0
  211. package/types/Options/Interfaces/Particles/IStroke.d.ts +2 -1
  212. package/types/Options/Interfaces/Particles/Move/IMove.d.ts +0 -5
  213. package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +0 -2
  214. package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +0 -2
  215. package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +2 -2
  216. package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +0 -3
  217. package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -1
  218. package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -1
  219. package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -1
  220. package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +2 -0
  221. package/types/Options/Interfaces/Particles/Size/ISize.d.ts +0 -1
  222. package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -1
  223. package/types/Options/Interfaces/Theme/ITheme.d.ts +3 -2
  224. package/types/Types/ExportResult.d.ts +5 -0
  225. package/types/Utils/CanvasUtils.d.ts +2 -5
  226. package/types/Utils/OptionsUtils.d.ts +1 -1
  227. package/types/Utils/Utils.d.ts +22 -4
  228. package/types/bundle.d.ts +2 -90
  229. package/types/export-types.d.ts +107 -0
  230. package/types/exports.d.ts +89 -0
  231. package/types/index.d.ts +3 -203
  232. package/types/init.d.ts +2 -0
  233. package/umd/Core/Canvas.js +269 -239
  234. package/umd/Core/Container.js +91 -107
  235. package/umd/Core/Engine.js +285 -0
  236. package/umd/Core/Particle.js +158 -162
  237. package/umd/Core/Particles.js +149 -135
  238. package/umd/Core/Retina.js +15 -13
  239. package/umd/Core/Utils/Circle.js +11 -7
  240. package/umd/Core/Utils/Constants.js +5 -4
  241. package/umd/Core/Utils/EventListeners.js +258 -219
  242. package/umd/Core/Utils/InteractionManager.js +6 -16
  243. package/umd/Core/Utils/QuadTree.js +14 -20
  244. package/umd/Core/Utils/Vector3d.js +18 -10
  245. package/umd/Options/Classes/AnimatableColor.js +3 -2
  246. package/umd/Options/Classes/AnimationOptions.js +7 -2
  247. package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
  248. package/umd/Options/Classes/ColorAnimation.js +4 -0
  249. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +1 -25
  250. package/umd/Options/Classes/Interactivity/Events/Events.js +6 -25
  251. package/umd/Options/Classes/Interactivity/Interactivity.js +1 -8
  252. package/umd/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  253. package/umd/Options/Classes/ManualParticle.js +5 -5
  254. package/umd/Options/Classes/Options.js +18 -38
  255. package/umd/Options/Classes/OptionsColor.js +4 -3
  256. package/umd/Options/Classes/Particles/Collisions/Collisions.js +6 -1
  257. package/umd/Options/Classes/Particles/Move/Move.js +12 -42
  258. package/umd/Options/Classes/Particles/Move/MoveAttract.js +9 -20
  259. package/umd/Options/Classes/Particles/Move/MoveTrail.js +2 -8
  260. package/umd/Options/Classes/Particles/Move/OutModes.js +4 -5
  261. package/umd/Options/Classes/Particles/Move/Spin.js +3 -1
  262. package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  263. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
  264. package/umd/Options/Classes/Particles/Opacity/Opacity.js +10 -6
  265. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
  266. package/umd/Options/Classes/Particles/ParticlesOptions.js +6 -11
  267. package/umd/Options/Classes/Particles/Shape/Shape.js +9 -2
  268. package/umd/Options/Classes/Particles/Size/Size.js +12 -8
  269. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
  270. package/umd/Options/Classes/ValueWithRandom.js +5 -18
  271. package/umd/Utils/CanvasUtils.js +21 -58
  272. package/umd/Utils/ColorUtils.js +16 -18
  273. package/umd/Utils/EventDispatcher.js +7 -6
  274. package/umd/Utils/HslColorManager.js +2 -4
  275. package/umd/Utils/NumberUtils.js +42 -46
  276. package/umd/Utils/RgbColorManager.js +2 -4
  277. package/umd/Utils/Utils.js +163 -63
  278. package/umd/bundle.js +5 -97
  279. package/umd/export-types.js +123 -0
  280. package/umd/exports.js +115 -0
  281. package/umd/index.js +9 -199
  282. package/umd/init.js +26 -0
  283. package/browser/Core/Utils/FrameManager.js +0 -42
  284. package/browser/Core/Utils/Plugins.js +0 -112
  285. package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
  286. package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
  287. package/browser/engine.js +0 -175
  288. package/cjs/Core/Utils/FrameManager.js +0 -46
  289. package/cjs/Core/Utils/Plugins.js +0 -116
  290. package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -2
  291. package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +0 -2
  292. package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -2
  293. package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -17
  294. package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +0 -2
  295. package/cjs/engine.js +0 -179
  296. package/esm/Core/Interfaces/IParticleOverride.js +0 -1
  297. package/esm/Core/Interfaces/IParticlesMover.js +0 -1
  298. package/esm/Core/Utils/FrameManager.js +0 -42
  299. package/esm/Core/Utils/Plugins.js +0 -112
  300. package/esm/Enums/Modes/SizeMode.js +0 -1
  301. package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -1
  302. package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
  303. package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
  304. package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
  305. package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
  306. package/esm/engine.js +0 -175
  307. package/types/Core/Interfaces/IParticleOverride.d.ts +0 -6
  308. package/types/Core/Interfaces/IParticlesMover.d.ts +0 -7
  309. package/types/Core/Utils/FrameManager.d.ts +0 -6
  310. package/types/Core/Utils/Plugins.d.ts +0 -51
  311. package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
  312. package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
  313. package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
  314. package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
  315. package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
  316. package/types/engine.d.ts +0 -39
  317. package/umd/Core/Utils/FrameManager.js +0 -56
  318. package/umd/Core/Utils/Plugins.js +0 -126
  319. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -12
  320. package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +0 -12
  321. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -12
  322. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -27
  323. package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +0 -12
  324. package/umd/engine.js +0 -189
  325. /package/browser/{Core/Interfaces/IParticleOverride.js → Enums/Modes/AnimationMode.js} +0 -0
  326. /package/browser/{Core/Interfaces/IParticlesMover.js → Enums/Modes/PixelMode.js} +0 -0
  327. /package/browser/{Enums/Modes/SizeMode.js → Types/ExportResult.js} +0 -0
  328. /package/cjs/{Core/Interfaces/IParticleOverride.js → Enums/Modes/AnimationMode.js} +0 -0
  329. /package/cjs/{Core/Interfaces/IParticlesMover.js → Enums/Modes/PixelMode.js} +0 -0
  330. /package/cjs/{Enums/Modes/SizeMode.js → Types/ExportResult.js} +0 -0
  331. /package/{browser/Options/Interfaces/Particles/Shape/ICharacterShape.js → esm/Enums/Modes/AnimationMode.js} +0 -0
  332. /package/{browser/Options/Interfaces/Particles/Shape/IImageShape.js → esm/Enums/Modes/PixelMode.js} +0 -0
  333. /package/{browser/Options/Interfaces/Particles/Shape/IPolygonShape.js → esm/Types/ExportResult.js} +0 -0
  334. /package/umd/{Core/Interfaces/IParticleOverride.js → Enums/Modes/AnimationMode.js} +0 -0
  335. /package/umd/{Core/Interfaces/IParticlesMover.js → Enums/Modes/PixelMode.js} +0 -0
  336. /package/umd/{Enums/Modes/SizeMode.js → Types/ExportResult.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
2
- import type { ISourceOptions } from "../../../Types/ISourceOptions";
2
+ import type { IOptions } from "../../Interfaces/IOptions";
3
3
  import type { ITheme } from "../../Interfaces/Theme/ITheme";
4
4
  import type { RecursivePartial } from "../../../Types/RecursivePartial";
5
5
  import { ThemeDefault } from "./ThemeDefault";
6
6
  export declare class Theme implements ITheme, IOptionLoader<ITheme> {
7
7
  default: ThemeDefault;
8
8
  name: string;
9
- options?: ISourceOptions;
9
+ options?: RecursivePartial<IOptions>;
10
10
  constructor();
11
11
  load(data?: RecursivePartial<ITheme>): void;
12
12
  }
@@ -1,10 +1,8 @@
1
+ import { AnimationOptions, RangedAnimationOptions } from "./AnimationOptions";
1
2
  import type { IAnimationValueWithRandom, IRangedAnimationValueWithRandom, IValueWithRandom } from "../Interfaces/IValueWithRandom";
2
- import { AnimationOptions } from "./AnimationOptions";
3
3
  import type { IOptionLoader } from "../Interfaces/IOptionLoader";
4
- import type { ISize } from "../Interfaces/Particles/Size/ISize";
5
4
  import { Random } from "./Random";
6
5
  import type { RangeValue } from "../../Types/RangeValue";
7
- import { RangedAnimationOptions } from "./AnimationOptions";
8
6
  import type { RecursivePartial } from "../../Types/RecursivePartial";
9
7
  export declare class ValueWithRandom implements IValueWithRandom, IOptionLoader<IValueWithRandom> {
10
8
  random: Random;
@@ -15,9 +13,7 @@ export declare class ValueWithRandom implements IValueWithRandom, IOptionLoader<
15
13
  export declare class AnimationValueWithRandom extends ValueWithRandom implements IOptionLoader<IAnimationValueWithRandom> {
16
14
  animation: AnimationOptions;
17
15
  constructor();
18
- get anim(): AnimationOptions;
19
- set anim(value: AnimationOptions);
20
- load(data?: RecursivePartial<ISize>): void;
16
+ load(data?: RecursivePartial<IAnimationValueWithRandom>): void;
21
17
  }
22
18
  export declare class RangedAnimationValueWithRandom extends AnimationValueWithRandom implements IOptionLoader<IRangedAnimationValueWithRandom> {
23
19
  animation: RangedAnimationOptions;
@@ -1,13 +1,15 @@
1
+ import type { AnimationMode } from "../../Enums/Modes/AnimationMode";
1
2
  import type { RangeValue } from "../../Types/RangeValue";
2
3
  import type { StartValueType } from "../../Enums/Types/StartValueType";
3
4
  export interface IAnimation {
4
5
  count: RangeValue;
5
6
  decay: RangeValue;
7
+ delay: RangeValue;
6
8
  enable: boolean;
7
9
  speed: RangeValue;
8
10
  sync: boolean;
9
11
  }
10
12
  export interface IRangedAnimation extends IAnimation {
11
- minimumValue?: number;
13
+ mode: AnimationMode | keyof typeof AnimationMode;
12
14
  startValue: StartValueType | keyof typeof StartValueType;
13
15
  }
@@ -1,7 +1,7 @@
1
- import type { ICoordinates } from "../../Core/Interfaces/ICoordinates";
1
+ import type { ICoordinatesWithMode } from "../../Core/Interfaces/ICoordinates";
2
2
  import type { IParticlesOptions } from "./Particles/IParticlesOptions";
3
3
  import type { RecursivePartial } from "../../Types/RecursivePartial";
4
4
  export interface IManualParticle {
5
5
  options?: RecursivePartial<IParticlesOptions>;
6
- position?: ICoordinates;
6
+ position?: ICoordinatesWithMode;
7
7
  }
@@ -14,22 +14,19 @@ export interface IOptions {
14
14
  autoPlay: boolean;
15
15
  background: IBackground;
16
16
  backgroundMask: IBackgroundMask;
17
- backgroundMode: RecursivePartial<IFullScreen> | boolean;
18
17
  delay: RangeValue;
19
18
  detectRetina: boolean;
20
19
  duration: RangeValue;
21
20
  fpsLimit: number;
22
- fps_limit: number;
23
21
  fullScreen: RecursivePartial<IFullScreen> | boolean;
24
22
  interactivity: IInteractivity;
25
23
  manualParticles: IManualParticle[];
26
- name: string;
24
+ name?: string;
27
25
  particles: IParticlesOptions;
28
26
  pauseOnBlur: boolean;
29
27
  pauseOnOutsideViewport: boolean;
30
28
  preset?: SingleOrMultiple<string>;
31
29
  responsive: IResponsive[];
32
- retina_detect: boolean;
33
30
  smooth: boolean;
34
31
  style: RecursivePartial<CSSStyleDeclaration>;
35
32
  themes: ITheme[];
@@ -1,7 +1,8 @@
1
- import type { ISourceOptions } from "../../Types/ISourceOptions";
1
+ import type { IOptions } from "./IOptions";
2
+ import type { RecursivePartial } from "../../Types/RecursivePartial";
2
3
  import type { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode";
3
4
  export interface IResponsive {
4
5
  maxWidth: number;
5
- mode: ResponsiveMode;
6
- options: ISourceOptions;
6
+ mode: ResponsiveMode | keyof typeof ResponsiveMode;
7
+ options: RecursivePartial<IOptions>;
7
8
  }
@@ -2,10 +2,7 @@ import type { DivMode } from "../../../../Enums/Modes/DivMode";
2
2
  import type { DivType } from "../../../../Enums/Types/DivType";
3
3
  import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
4
4
  export interface IDivEvent {
5
- el: SingleOrMultiple<string>;
6
- elementId: SingleOrMultiple<string>;
7
5
  enable: boolean;
8
- ids: SingleOrMultiple<string>;
9
6
  mode: SingleOrMultiple<DivMode | keyof typeof DivMode | string>;
10
7
  selectors: SingleOrMultiple<string>;
11
8
  type: DivType | keyof typeof DivType;
@@ -7,8 +7,5 @@ export interface IEvents {
7
7
  onClick: IClickEvent;
8
8
  onDiv: SingleOrMultiple<IDivEvent>;
9
9
  onHover: IHoverEvent;
10
- onclick: IClickEvent;
11
- ondiv: SingleOrMultiple<IDivEvent>;
12
- onhover: IHoverEvent;
13
10
  resize: boolean | IResizeEvent;
14
11
  }
@@ -3,7 +3,6 @@ import type { IModes } from "./Modes/IModes";
3
3
  import type { InteractivityDetect } from "../../../Enums/InteractivityDetect";
4
4
  export interface IInteractivity {
5
5
  [name: string]: unknown;
6
- detect_on: InteractivityDetect | keyof typeof InteractivityDetect;
7
6
  detectsOn: InteractivityDetect | keyof typeof InteractivityDetect;
8
7
  events: IEvents;
9
8
  modes: IModes;
@@ -1,5 +1,4 @@
1
1
  import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
2
2
  export interface IModeDiv {
3
- ids: SingleOrMultiple<string>;
4
3
  selectors: SingleOrMultiple<string>;
5
4
  }
@@ -2,10 +2,12 @@ import type { CollisionMode } from "../../../../Enums/Modes/CollisionMode";
2
2
  import type { ICollisionsAbsorb } from "./ICollisionsAbsorb";
3
3
  import type { ICollisionsOverlap } from "./ICollisionsOverlap";
4
4
  import type { IParticlesBounce } from "../Bounce/IParticlesBounce";
5
+ import type { RangeValue } from "../../../../Types/RangeValue";
5
6
  export interface ICollisions {
6
7
  absorb: ICollisionsAbsorb;
7
8
  bounce: IParticlesBounce;
8
9
  enable: boolean;
10
+ maxSpeed: RangeValue;
9
11
  mode: CollisionMode | keyof typeof CollisionMode;
10
12
  overlap: ICollisionsOverlap;
11
13
  }
@@ -1,8 +1,9 @@
1
1
  import type { IAnimatableColor } from "../IAnimatableColor";
2
2
  import type { IColor } from "../../../Core/Interfaces/Colors";
3
3
  import type { RangeValue } from "../../../Types/RangeValue";
4
+ import type { RecursivePartial } from "../../../Types/RecursivePartial";
4
5
  export interface IStroke {
5
- color?: string | IAnimatableColor | IColor;
6
+ color?: string | RecursivePartial<IAnimatableColor> | RecursivePartial<IColor>;
6
7
  opacity?: RangeValue;
7
8
  width: RangeValue;
8
9
  }
@@ -13,19 +13,14 @@ import type { RangeValue } from "../../../../Types/RangeValue";
13
13
  export interface IMove {
14
14
  angle: number | IMoveAngle;
15
15
  attract: IMoveAttract;
16
- bounce: boolean;
17
16
  center: IMoveCenter;
18
- collisions: boolean;
19
17
  decay: RangeValue;
20
18
  direction: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt | number;
21
19
  distance: number | Partial<IDistance>;
22
20
  drift: RangeValue;
23
21
  enable: boolean;
24
22
  gravity: IMoveGravity;
25
- noise: IMovePath;
26
- outMode: OutMode | keyof typeof OutMode | OutModeAlt;
27
23
  outModes: IOutModes | OutMode | keyof typeof OutMode | OutModeAlt;
28
- out_mode: OutMode | keyof typeof OutMode | OutModeAlt;
29
24
  path: IMovePath;
30
25
  random: boolean;
31
26
  size: boolean;
@@ -4,6 +4,4 @@ export interface IMoveAttract {
4
4
  distance: RangeValue;
5
5
  enable: boolean;
6
6
  rotate: ICoordinates;
7
- rotateX: number;
8
- rotateY: number;
9
7
  }
@@ -1,8 +1,6 @@
1
1
  import type { IMoveTrailFill } from "./IMoveTrailFill";
2
- import type { IOptionsColor } from "../../IOptionsColor";
3
2
  export interface IMoveTrail {
4
3
  enable: boolean;
5
4
  fill: IMoveTrailFill;
6
- fillColor?: string | IOptionsColor;
7
5
  length: number;
8
6
  }
@@ -1,7 +1,7 @@
1
- import type { ICoordinates } from "../../../../Core/Interfaces/ICoordinates";
1
+ import type { ICoordinatesWithMode } from "../../../../Core/Interfaces/ICoordinates";
2
2
  import type { RangeValue } from "../../../../Types/RangeValue";
3
3
  export interface ISpin {
4
4
  acceleration: RangeValue;
5
5
  enable: boolean;
6
- position?: ICoordinates;
6
+ position?: ICoordinatesWithMode;
7
7
  }
@@ -1,8 +1,5 @@
1
1
  export interface IParticlesDensity {
2
- area: number;
3
2
  enable: boolean;
4
- factor: number;
5
3
  height: number;
6
- value_area: number;
7
4
  width: number;
8
5
  }
@@ -2,6 +2,5 @@ import type { IParticlesDensity } from "./IParticlesDensity";
2
2
  export interface IParticlesNumber {
3
3
  density: IParticlesDensity;
4
4
  limit: number;
5
- max: number;
6
5
  value: number;
7
6
  }
@@ -1,6 +1,5 @@
1
1
  import type { IOpacityAnimation } from "./IOpacityAnimation";
2
2
  import type { IValueWithRandom } from "../../IValueWithRandom";
3
3
  export interface IOpacity extends IValueWithRandom {
4
- anim: IOpacityAnimation;
5
4
  animation: IOpacityAnimation;
6
5
  }
@@ -2,5 +2,4 @@ import type { DestroyType } from "../../../../Enums/Types/DestroyType";
2
2
  import type { IRangedAnimation } from "../../IAnimation";
3
3
  export interface IOpacityAnimation extends IRangedAnimation {
4
4
  destroy: DestroyType | keyof typeof DestroyType;
5
- opacity_min?: number;
6
5
  }
@@ -1,6 +1,8 @@
1
1
  import type { ShapeData } from "../../../../Types/ShapeData";
2
2
  import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
3
3
  export interface IShape {
4
+ close: boolean;
5
+ fill: boolean;
4
6
  options: ShapeData;
5
7
  type: SingleOrMultiple<string>;
6
8
  }
@@ -1,6 +1,5 @@
1
1
  import type { ISizeAnimation } from "./ISizeAnimation";
2
2
  import type { IValueWithRandom } from "../../IValueWithRandom";
3
3
  export interface ISize extends IValueWithRandom {
4
- anim: ISizeAnimation;
5
4
  animation: ISizeAnimation;
6
5
  }
@@ -2,5 +2,4 @@ import type { DestroyType } from "../../../../Enums/Types/DestroyType";
2
2
  import type { IRangedAnimation } from "../../IAnimation";
3
3
  export interface ISizeAnimation extends IRangedAnimation {
4
4
  destroy: DestroyType | keyof typeof DestroyType;
5
- size_min?: number;
6
5
  }
@@ -1,7 +1,8 @@
1
- import type { ISourceOptions } from "../../../Types/ISourceOptions";
1
+ import type { IOptions } from "../IOptions";
2
2
  import type { IThemeDefault } from "./IThemeDefault";
3
+ import type { RecursivePartial } from "../../../Types/RecursivePartial";
3
4
  export interface ITheme {
4
5
  default: IThemeDefault;
5
6
  name: string;
6
- options?: ISourceOptions;
7
+ options?: RecursivePartial<IOptions>;
7
8
  }
@@ -0,0 +1,5 @@
1
+ export type ExportResult = {
2
+ blob?: Blob;
3
+ error?: Error;
4
+ supported: boolean;
5
+ };
@@ -6,14 +6,11 @@ import type { IDelta } from "../Core/Interfaces/IDelta";
6
6
  import type { IDimension } from "../Core/Interfaces/IDimension";
7
7
  import type { IDrawParticleParams } from "../Core/Interfaces/IDrawParticleParams";
8
8
  import type { IHsl } from "../Core/Interfaces/Colors";
9
- import type { ITrailFillData } from "../Core/Interfaces/ITrailFillData";
10
- import type { Options } from "../Options/Classes/Options";
11
9
  import type { Particle } from "../Core/Particle";
12
- export declare function getContext(canvas: HTMLCanvasElement): CanvasRenderingContext2D;
13
- export declare function clearCanvas(context: CanvasRenderingContext2D, size: IDimension, options: Options, trailFill?: ITrailFillData, coverColorStyle?: string): void;
14
- export declare function paintCanvas(context: CanvasRenderingContext2D, size: IDimension, options: Options, coverColorStyle?: string): void;
15
10
  export declare function drawLine(context: CanvasRenderingContext2D, begin: ICoordinates, end: ICoordinates): void;
16
11
  export declare function drawTriangle(context: CanvasRenderingContext2D, p1: ICoordinates, p2: ICoordinates, p3: ICoordinates): void;
12
+ export declare function paintBase(context: CanvasRenderingContext2D, dimension: IDimension, baseColor?: string): void;
13
+ export declare function paintImage(context: CanvasRenderingContext2D, dimension: IDimension, image: HTMLImageElement | undefined, opacity: number): void;
17
14
  export declare function clear(context: CanvasRenderingContext2D, dimension: IDimension): void;
18
15
  export declare function drawParticle(data: IDrawParticleParams): void;
19
16
  export declare function drawShape(container: Container, context: CanvasRenderingContext2D, particle: Particle, radius: number, opacity: number, delta: IDelta): void;
@@ -1,5 +1,5 @@
1
1
  import type { Container } from "../Core/Container";
2
- import type { Engine } from "../engine";
2
+ import type { Engine } from "../Core/Engine";
3
3
  import type { IOptionLoader } from "../Options/Interfaces/IOptionLoader";
4
4
  import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions";
5
5
  import { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions";
@@ -1,20 +1,29 @@
1
+ import type { ICoordinates, ICoordinatesWithMode } from "../Core/Interfaces/ICoordinates";
2
+ import type { IDimension, IDimensionWithMode } from "../Core/Interfaces/IDimension";
1
3
  import type { DivEvent } from "../Options/Classes/Interactivity/Events/DivEvent";
2
4
  import type { DivMode } from "../Enums/Modes/DivMode";
3
5
  import type { IBounds } from "../Core/Interfaces/IBounds";
4
6
  import type { ICircleBouncer } from "../Core/Interfaces/ICircleBouncer";
5
- import type { ICoordinates } from "../Core/Interfaces/ICoordinates";
6
- import type { IDimension } from "../Core/Interfaces/IDimension";
7
7
  import type { IModeDiv } from "../Options/Interfaces/Interactivity/Modes/IModeDiv";
8
8
  import type { IParticle } from "../Core/Interfaces/IParticle";
9
9
  import type { IParticleNumericValueAnimation } from "../Core/Interfaces/IParticleValueAnimation";
10
10
  import { OutModeDirection } from "../Enums/Directions/OutModeDirection";
11
11
  import type { RangedAnimationValueWithRandom } from "../Options/Classes/ValueWithRandom";
12
12
  import type { SingleOrMultiple } from "../Types/SingleOrMultiple";
13
+ interface ILogger {
14
+ debug(message?: unknown, ...optionalParams: unknown[]): void;
15
+ error(message?: unknown, ...optionalParams: unknown[]): void;
16
+ info(message?: unknown, ...optionalParams: unknown[]): void;
17
+ log(message?: unknown, ...optionalParams: unknown[]): void;
18
+ verbose(message?: unknown, ...optionalParams: unknown[]): void;
19
+ warning(message?: unknown, ...optionalParams: unknown[]): void;
20
+ }
21
+ export declare function setLogger(logger: ILogger): void;
22
+ export declare function getLogger(): ILogger;
13
23
  export declare function isSsr(): boolean;
14
24
  export declare function hasMatchMedia(): boolean;
15
25
  export declare function safeMatchMedia(query: string): MediaQueryList | undefined;
16
- export declare function animate(): (callback: FrameRequestCallback) => number;
17
- export declare function cancelAnimation(): (handle: number) => void;
26
+ export declare function safeMutationObserver(callback: (records: MutationRecord[]) => void): MutationObserver | undefined;
18
27
  export declare function isInArray<T>(value: T, array: SingleOrMultiple<T>): boolean;
19
28
  export declare function loadFont(font?: string, weight?: string): Promise<void>;
20
29
  export declare function arrayRandomIndex<T>(array: T[]): number;
@@ -34,3 +43,12 @@ export declare function executeOnSingleOrMultiple<T, U = void>(obj: SingleOrMult
34
43
  export declare function itemFromSingleOrMultiple<T>(obj: SingleOrMultiple<T>, index?: number, useIndex?: boolean): T;
35
44
  export declare function findItemFromSingleOrMultiple<T>(obj: SingleOrMultiple<T>, callback: (obj: T, index: number) => boolean): T | undefined;
36
45
  export declare function initParticleNumericAnimationValue(options: RangedAnimationValueWithRandom, pxRatio: number): IParticleNumericValueAnimation;
46
+ export declare function getPosition(position: ICoordinatesWithMode, canvasSize: IDimension): ICoordinates;
47
+ export declare function getSize(size: IDimensionWithMode, canvasSize: IDimension): IDimension;
48
+ export declare function isBoolean(arg: unknown): arg is boolean;
49
+ export declare function isString(arg: unknown): arg is string;
50
+ export declare function isNumber(arg: unknown): arg is number;
51
+ export declare function isFunction(arg: unknown): arg is Function;
52
+ export declare function isObject<T extends object>(arg: unknown): arg is T;
53
+ export declare function isArray<T>(arg: unknown): arg is T[];
54
+ export {};
package/types/bundle.d.ts CHANGED
@@ -1,91 +1,3 @@
1
- import { Engine } from "./engine";
2
- declare const tsParticles: Engine;
3
- export * from "./Core/Utils/Circle";
4
- export * from "./Core/Utils/Constants";
5
- export * from "./Core/Utils/ExternalInteractorBase";
6
- export * from "./Core/Utils/ParticlesInteractorBase";
7
- export * from "./Core/Utils/Point";
8
- export * from "./Core/Utils/Range";
9
- export * from "./Core/Utils/Rectangle";
10
- export * from "./Core/Utils/Vector";
11
- export * from "./Core/Utils/Vector3d";
12
- export * from "./Enums/Directions/MoveDirection";
13
- export * from "./Enums/Directions/RotateDirection";
14
- export * from "./Enums/Directions/OutModeDirection";
15
- export * from "./Enums/Modes/ClickMode";
16
- export * from "./Enums/Modes/DivMode";
17
- export * from "./Enums/Modes/HoverMode";
18
- export * from "./Enums/Modes/CollisionMode";
19
- export * from "./Enums/Modes/OutMode";
20
- export * from "./Enums/Modes/SizeMode";
21
- export * from "./Enums/Modes/ThemeMode";
22
- export * from "./Enums/Modes/ResponsiveMode";
23
- export * from "./Enums/Types/AlterType";
24
- export * from "./Enums/Types/DestroyType";
25
- export * from "./Enums/Types/GradientType";
26
- export * from "./Enums/Types/InteractorType";
27
- export * from "./Enums/Types/ParticleOutType";
28
- export * from "./Enums/Types/StartValueType";
29
- export * from "./Enums/Types/DivType";
30
- export * from "./Enums/Types/EasingType";
31
- export * from "./Enums/AnimationStatus";
32
- export * from "./Enums/InteractivityDetect";
33
- export * from "./Options/Classes/AnimatableColor";
34
- export * from "./Options/Classes/AnimationOptions";
35
- export * from "./Options/Classes/Background/Background";
36
- export * from "./Options/Classes/BackgroundMask/BackgroundMask";
37
- export * from "./Options/Classes/BackgroundMask/BackgroundMaskCover";
38
- export * from "./Options/Classes/ColorAnimation";
39
- export * from "./Options/Classes/FullScreen/FullScreen";
40
- export * from "./Options/Classes/HslAnimation";
41
- export * from "./Options/Classes/Interactivity/Events/ClickEvent";
42
- export * from "./Options/Classes/Interactivity/Events/DivEvent";
43
- export * from "./Options/Classes/Interactivity/Events/ClickEvent";
44
- export * from "./Options/Classes/Interactivity/Events/DivEvent";
45
- export * from "./Options/Classes/Interactivity/Events/Events";
46
- export * from "./Options/Classes/Interactivity/Events/HoverEvent";
47
- export * from "./Options/Classes/Interactivity/Events/Parallax";
48
- export * from "./Options/Classes/Interactivity/Events/ResizeEvent";
49
- export * from "./Options/Classes/Interactivity/Interactivity";
50
- export * from "./Options/Classes/Interactivity/Modes/Modes";
51
- export * from "./Options/Classes/ManualParticle";
52
- export * from "./Options/Classes/Options";
53
- export * from "./Options/Classes/OptionsColor";
54
- export * from "./Options/Classes/Particles/Bounce/ParticlesBounce";
55
- export * from "./Options/Classes/Particles/Bounce/ParticlesBounceFactor";
56
- export * from "./Options/Classes/Particles/Collisions/Collisions";
57
- export * from "./Options/Classes/Particles/Collisions/CollisionsAbsorb";
58
- export * from "./Options/Classes/Particles/Collisions/CollisionsOverlap";
59
- export * from "./Options/Classes/Particles/ParticlesOptions";
60
- export * from "./Options/Classes/Particles/Shadow";
61
- export * from "./Options/Classes/Particles/Stroke";
62
- export * from "./Options/Classes/Particles/Move/MoveAttract";
63
- export * from "./Options/Classes/Particles/Move/Move";
64
- export * from "./Options/Classes/Particles/Move/MoveAngle";
65
- export * from "./Options/Classes/Particles/Move/MoveCenter";
66
- export * from "./Options/Classes/Particles/Move/MoveGravity";
67
- export * from "./Options/Classes/Particles/Move/MoveTrail";
68
- export * from "./Options/Classes/Particles/Move/MoveTrailFill";
69
- export * from "./Options/Classes/Particles/Move/OutModes";
70
- export * from "./Options/Classes/Particles/Move/Path/MovePath";
71
- export * from "./Options/Classes/Particles/Move/Spin";
72
- export * from "./Options/Classes/Particles/Number/ParticlesNumber";
73
- export * from "./Options/Classes/Particles/Number/ParticlesDensity";
74
- export * from "./Options/Classes/Particles/Opacity/Opacity";
75
- export * from "./Options/Classes/Particles/Opacity/OpacityAnimation";
76
- export * from "./Options/Classes/Particles/Shape/Shape";
77
- export * from "./Options/Classes/Particles/Size/Size";
78
- export * from "./Options/Classes/Particles/Size/SizeAnimation";
79
- export * from "./Options/Classes/Particles/ZIndex/ZIndex";
80
- export * from "./Options/Classes/Responsive";
81
- export * from "./Options/Classes/Theme/Theme";
82
- export * from "./Options/Classes/Theme/ThemeDefault";
83
- export * from "./Options/Classes/ValueWithRandom";
84
- export * from "./Utils/CanvasUtils";
85
- export * from "./Utils/ColorUtils";
86
- export * from "./Utils/HslColorManager";
87
- export * from "./Utils/NumberUtils";
88
- export * from "./Utils/OptionsUtils";
89
- export * from "./Utils/RgbColorManager";
90
- export * from "./Utils/Utils";
1
+ declare const tsParticles: import("./export-types").Engine;
2
+ export * from "./exports";
91
3
  export { tsParticles };
@@ -0,0 +1,107 @@
1
+ import type { Engine } from "./Core/Engine";
2
+ export * from "./Core/Interfaces/Colors";
3
+ export * from "./Core/Interfaces/IBounds";
4
+ export * from "./Core/Interfaces/IBubbleParticleData";
5
+ export * from "./Core/Interfaces/ICircleBouncer";
6
+ export * from "./Core/Interfaces/IColorManager";
7
+ export * from "./Core/Interfaces/IContainerInteractivity";
8
+ export * from "./Core/Interfaces/IContainerPlugin";
9
+ export * from "./Core/Interfaces/ICoordinates";
10
+ export * from "./Core/Interfaces/IDelta";
11
+ export * from "./Core/Interfaces/IDimension";
12
+ export * from "./Core/Interfaces/IDistance";
13
+ export * from "./Core/Interfaces/IDrawParticleParams";
14
+ export * from "./Core/Interfaces/IExternalInteractor";
15
+ export * from "./Core/Interfaces/IInteractor";
16
+ export * from "./Core/Interfaces/ILoadParams";
17
+ export * from "./Core/Interfaces/IMouseData";
18
+ export * from "./Core/Interfaces/IMovePathGenerator";
19
+ export * from "./Core/Interfaces/IParticle";
20
+ export * from "./Core/Interfaces/IParticleColorStyle";
21
+ export * from "./Core/Interfaces/IParticleHslAnimation";
22
+ export * from "./Core/Interfaces/IParticleLife";
23
+ export * from "./Core/Interfaces/IParticleMover";
24
+ export * from "./Core/Interfaces/IParticleRetinaProps";
25
+ export * from "./Core/Interfaces/IParticleRoll";
26
+ export * from "./Core/Interfaces/IParticleTransformValues";
27
+ export * from "./Core/Interfaces/IParticleUpdater";
28
+ export * from "./Core/Interfaces/IParticleValueAnimation";
29
+ export * from "./Core/Interfaces/IParticlesInteractor";
30
+ export * from "./Core/Interfaces/IPlugin";
31
+ export * from "./Core/Interfaces/IPositionFromSizeParams";
32
+ export * from "./Core/Interfaces/IRangeValue";
33
+ export * from "./Core/Interfaces/IRectSideResult";
34
+ export * from "./Core/Interfaces/IShapeDrawer";
35
+ export * from "./Core/Interfaces/IShapeValues";
36
+ export * from "./Core/Interfaces/ISlowParticleData";
37
+ export * from "./Core/Interfaces/ITrailFillData";
38
+ export * from "./Options/Interfaces/Background/IBackground";
39
+ export * from "./Options/Interfaces/BackgroundMask/IBackgroundMask";
40
+ export * from "./Options/Interfaces/BackgroundMask/IBackgroundMaskCover";
41
+ export * from "./Options/Interfaces/FullScreen/IFullScreen";
42
+ export * from "./Options/Interfaces/IAnimatable";
43
+ export * from "./Options/Interfaces/IAnimatableColor";
44
+ export * from "./Options/Interfaces/IAnimation";
45
+ export * from "./Options/Interfaces/IColorAnimation";
46
+ export * from "./Options/Interfaces/IHslAnimation";
47
+ export * from "./Options/Interfaces/IManualParticle";
48
+ export * from "./Options/Interfaces/IOptionLoader";
49
+ export * from "./Options/Interfaces/IOptions";
50
+ export * from "./Options/Interfaces/IOptionsColor";
51
+ export * from "./Options/Interfaces/IResponsive";
52
+ export * from "./Options/Interfaces/IValueWithRandom";
53
+ export * from "./Options/Interfaces/Interactivity/Events/IClickEvent";
54
+ export * from "./Options/Interfaces/Interactivity/Events/IDivEvent";
55
+ export * from "./Options/Interfaces/Interactivity/Events/IEvents";
56
+ export * from "./Options/Interfaces/Interactivity/Events/IHoverEvent";
57
+ export * from "./Options/Interfaces/Interactivity/Events/IParallax";
58
+ export * from "./Options/Interfaces/Interactivity/Events/IResizeEvent";
59
+ export * from "./Options/Interfaces/Interactivity/Modes/IModeDiv";
60
+ export * from "./Options/Interfaces/Interactivity/Modes/IModes";
61
+ export * from "./Options/Interfaces/Interactivity/IInteractivity";
62
+ export * from "./Options/Interfaces/Particles/Bounce/IParticlesBounce";
63
+ export * from "./Options/Interfaces/Particles/Collisions/ICollisions";
64
+ export * from "./Options/Interfaces/Particles/Collisions/ICollisionsAbsorb";
65
+ export * from "./Options/Interfaces/Particles/Collisions/ICollisionsOverlap";
66
+ export * from "./Options/Interfaces/Particles/IParticlesOptions";
67
+ export * from "./Options/Interfaces/Particles/IShadow";
68
+ export * from "./Options/Interfaces/Particles/IStroke";
69
+ export * from "./Options/Interfaces/Particles/Move/IMoveAttract";
70
+ export * from "./Options/Interfaces/Particles/Move/IMove";
71
+ export * from "./Options/Interfaces/Particles/Move/IMoveAngle";
72
+ export * from "./Options/Interfaces/Particles/Move/IMoveCenter";
73
+ export * from "./Options/Interfaces/Particles/Move/IMoveGravity";
74
+ export * from "./Options/Interfaces/Particles/Move/Path/IMovePath";
75
+ export * from "./Options/Interfaces/Particles/Move/IOutModes";
76
+ export * from "./Options/Interfaces/Particles/Move/ISpin";
77
+ export * from "./Options/Interfaces/Particles/Move/IMoveTrail";
78
+ export * from "./Options/Interfaces/Particles/Number/IParticlesDensity";
79
+ export * from "./Options/Interfaces/Particles/Number/IParticlesNumber";
80
+ export * from "./Options/Interfaces/Particles/Opacity/IOpacity";
81
+ export * from "./Options/Interfaces/Particles/Opacity/IOpacityAnimation";
82
+ export * from "./Options/Interfaces/Particles/Shape/IShape";
83
+ export * from "./Options/Interfaces/Particles/Size/ISize";
84
+ export * from "./Options/Interfaces/Particles/Size/ISizeAnimation";
85
+ export * from "./Options/Interfaces/Particles/ZIndex/IZIndex";
86
+ export * from "./Options/Interfaces/Theme/ITheme";
87
+ export * from "./Options/Interfaces/Theme/IThemeDefault";
88
+ export * from "./Types/CustomEventArgs";
89
+ export * from "./Types/CustomEventListener";
90
+ export * from "./Types/ExportResult";
91
+ export * from "./Types/ISourceOptions";
92
+ export * from "./Types/ParticlesGroups";
93
+ export * from "./Types/PathOptions";
94
+ export * from "./Types/RangeValue";
95
+ export * from "./Types/RecursivePartial";
96
+ export * from "./Types/ShapeData";
97
+ export * from "./Types/ShapeDrawerFunctions";
98
+ export * from "./Types/SingleOrMultiple";
99
+ export type { EventListeners } from "./Core/Utils/EventListeners";
100
+ export type { InteractionManager } from "./Core/Utils/InteractionManager";
101
+ export type { QuadTree } from "./Core/Utils/QuadTree";
102
+ export type { Canvas } from "./Core/Canvas";
103
+ export type { Container } from "./Core/Container";
104
+ export type { Particle } from "./Core/Particle";
105
+ export type { Particles } from "./Core/Particles";
106
+ export type { Retina } from "./Core/Retina";
107
+ export type { Engine, Engine as Main };