@tsparticles/engine 3.0.0-alpha.1 → 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 (329) hide show
  1. package/README.md +244 -188
  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 -165
  6. package/browser/Core/Particles.js +148 -143
  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 +258 -234
  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 +4 -3
  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 -6
  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 -10
  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 +133 -62
  47. package/browser/bundle.js +4 -97
  48. package/browser/export-types.js +97 -0
  49. package/browser/exports.js +89 -0
  50. package/browser/index.js +8 -199
  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 -164
  56. package/cjs/Core/Particles.js +148 -143
  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 +257 -233
  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 +4 -3
  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 -6
  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 -10
  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 +146 -66
  97. package/cjs/bundle.js +4 -97
  98. package/cjs/export-types.js +113 -0
  99. package/cjs/exports.js +105 -0
  100. package/cjs/index.js +8 -199
  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 -165
  106. package/esm/Core/Particles.js +148 -143
  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 +258 -234
  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 +4 -3
  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 -6
  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 -10
  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 +133 -62
  147. package/esm/bundle.js +4 -97
  148. package/esm/export-types.js +97 -0
  149. package/esm/exports.js +89 -0
  150. package/esm/index.js +8 -199
  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 +1832 -2007
  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 +2 -2
  163. package/types/Core/Interfaces/IDimension.d.ts +2 -2
  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 -11
  170. package/types/Core/Utils/Constants.d.ts +4 -3
  171. package/types/Core/Utils/EventListeners.d.ts +20 -18
  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/{SizeMode.d.ts → PixelMode.d.ts} +1 -1
  176. package/types/Options/Classes/AnimationOptions.d.ts +1 -1
  177. package/types/Options/Classes/ColorAnimation.d.ts +1 -0
  178. package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -6
  179. package/types/Options/Classes/Interactivity/Events/Events.d.ts +0 -6
  180. package/types/Options/Classes/Interactivity/Interactivity.d.ts +1 -3
  181. package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +1 -1
  182. package/types/Options/Classes/Options.d.ts +5 -12
  183. package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +2 -0
  184. package/types/Options/Classes/Particles/Move/Move.d.ts +0 -11
  185. package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +0 -4
  186. package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +2 -2
  187. package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +0 -3
  188. package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +0 -6
  189. package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -2
  190. package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +4 -4
  191. package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -2
  192. package/types/Options/Classes/Particles/ParticlesOptions.d.ts +1 -1
  193. package/types/Options/Classes/Particles/Size/Size.d.ts +4 -4
  194. package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -2
  195. package/types/Options/Classes/Responsive.d.ts +3 -3
  196. package/types/Options/Classes/Theme/Theme.d.ts +2 -2
  197. package/types/Options/Classes/ValueWithRandom.d.ts +2 -6
  198. package/types/Options/Interfaces/IAnimation.d.ts +1 -1
  199. package/types/Options/Interfaces/IOptions.d.ts +1 -4
  200. package/types/Options/Interfaces/IResponsive.d.ts +4 -3
  201. package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -3
  202. package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -3
  203. package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -1
  204. package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -1
  205. package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +2 -0
  206. package/types/Options/Interfaces/Particles/IStroke.d.ts +2 -1
  207. package/types/Options/Interfaces/Particles/Move/IMove.d.ts +0 -5
  208. package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +0 -2
  209. package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +0 -2
  210. package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +0 -3
  211. package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -1
  212. package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -1
  213. package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -1
  214. package/types/Options/Interfaces/Particles/Size/ISize.d.ts +0 -1
  215. package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -1
  216. package/types/Options/Interfaces/Theme/ITheme.d.ts +3 -2
  217. package/types/Types/ExportResult.d.ts +5 -0
  218. package/types/Utils/CanvasUtils.d.ts +2 -5
  219. package/types/Utils/OptionsUtils.d.ts +1 -1
  220. package/types/Utils/Utils.d.ts +22 -4
  221. package/types/bundle.d.ts +2 -91
  222. package/types/export-types.d.ts +107 -0
  223. package/types/exports.d.ts +89 -0
  224. package/types/index.d.ts +3 -204
  225. package/types/init.d.ts +2 -0
  226. package/umd/Core/Canvas.js +269 -239
  227. package/umd/Core/Container.js +91 -107
  228. package/umd/Core/Engine.js +285 -0
  229. package/umd/Core/Particle.js +158 -165
  230. package/umd/Core/Particles.js +149 -144
  231. package/umd/Core/Retina.js +15 -13
  232. package/umd/Core/Utils/Circle.js +11 -7
  233. package/umd/Core/Utils/Constants.js +5 -4
  234. package/umd/Core/Utils/EventListeners.js +257 -233
  235. package/umd/Core/Utils/InteractionManager.js +6 -16
  236. package/umd/Core/Utils/QuadTree.js +14 -20
  237. package/umd/Core/Utils/Vector3d.js +18 -10
  238. package/umd/Options/Classes/AnimatableColor.js +3 -2
  239. package/umd/Options/Classes/AnimationOptions.js +4 -3
  240. package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
  241. package/umd/Options/Classes/ColorAnimation.js +4 -0
  242. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +1 -25
  243. package/umd/Options/Classes/Interactivity/Events/Events.js +6 -25
  244. package/umd/Options/Classes/Interactivity/Interactivity.js +1 -8
  245. package/umd/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  246. package/umd/Options/Classes/ManualParticle.js +5 -6
  247. package/umd/Options/Classes/Options.js +18 -38
  248. package/umd/Options/Classes/OptionsColor.js +4 -3
  249. package/umd/Options/Classes/Particles/Collisions/Collisions.js +6 -1
  250. package/umd/Options/Classes/Particles/Move/Move.js +12 -42
  251. package/umd/Options/Classes/Particles/Move/MoveAttract.js +9 -20
  252. package/umd/Options/Classes/Particles/Move/MoveTrail.js +2 -8
  253. package/umd/Options/Classes/Particles/Move/OutModes.js +4 -5
  254. package/umd/Options/Classes/Particles/Move/Spin.js +3 -1
  255. package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  256. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
  257. package/umd/Options/Classes/Particles/Opacity/Opacity.js +10 -6
  258. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
  259. package/umd/Options/Classes/Particles/ParticlesOptions.js +6 -11
  260. package/umd/Options/Classes/Particles/Shape/Shape.js +9 -10
  261. package/umd/Options/Classes/Particles/Size/Size.js +12 -8
  262. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
  263. package/umd/Options/Classes/ValueWithRandom.js +5 -18
  264. package/umd/Utils/CanvasUtils.js +21 -58
  265. package/umd/Utils/ColorUtils.js +16 -18
  266. package/umd/Utils/EventDispatcher.js +7 -6
  267. package/umd/Utils/HslColorManager.js +2 -4
  268. package/umd/Utils/NumberUtils.js +42 -46
  269. package/umd/Utils/RgbColorManager.js +2 -4
  270. package/umd/Utils/Utils.js +146 -66
  271. package/umd/bundle.js +5 -98
  272. package/umd/export-types.js +123 -0
  273. package/umd/exports.js +115 -0
  274. package/umd/index.js +9 -200
  275. package/umd/init.js +26 -0
  276. package/browser/Core/Utils/FrameManager.js +0 -42
  277. package/browser/Core/Utils/Plugins.js +0 -112
  278. package/browser/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
  279. package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
  280. package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
  281. package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
  282. package/browser/engine.js +0 -175
  283. package/cjs/Core/Utils/FrameManager.js +0 -46
  284. package/cjs/Core/Utils/Plugins.js +0 -116
  285. package/cjs/Enums/Modes/SizeMode.js +0 -2
  286. package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -2
  287. package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +0 -2
  288. package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -2
  289. package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -17
  290. package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +0 -2
  291. package/cjs/engine.js +0 -179
  292. package/esm/Core/Interfaces/IParticleOverride.js +0 -1
  293. package/esm/Core/Interfaces/IParticlesMover.js +0 -1
  294. package/esm/Core/Utils/FrameManager.js +0 -42
  295. package/esm/Core/Utils/Plugins.js +0 -112
  296. package/esm/Enums/Modes/SizeMode.js +0 -1
  297. package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -1
  298. package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
  299. package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
  300. package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
  301. package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
  302. package/esm/engine.js +0 -175
  303. package/types/Core/Interfaces/IParticleOverride.d.ts +0 -6
  304. package/types/Core/Interfaces/IParticlesMover.d.ts +0 -7
  305. package/types/Core/Utils/FrameManager.d.ts +0 -6
  306. package/types/Core/Utils/Plugins.d.ts +0 -51
  307. package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
  308. package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
  309. package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
  310. package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
  311. package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
  312. package/types/engine.d.ts +0 -39
  313. package/umd/Core/Utils/FrameManager.js +0 -56
  314. package/umd/Core/Utils/Plugins.js +0 -126
  315. package/umd/Enums/Modes/SizeMode.js +0 -12
  316. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -12
  317. package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +0 -12
  318. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -12
  319. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -27
  320. package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +0 -12
  321. package/umd/engine.js +0 -189
  322. /package/browser/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
  323. /package/browser/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
  324. /package/cjs/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
  325. /package/cjs/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
  326. /package/{browser/Enums/Modes/SizeMode.js → esm/Enums/Modes/PixelMode.js} +0 -0
  327. /package/{browser/Options/Interfaces/Particles/Shape/ICharacterShape.js → esm/Types/ExportResult.js} +0 -0
  328. /package/umd/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
  329. /package/umd/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
package/types/index.d.ts CHANGED
@@ -1,205 +1,4 @@
1
- import { Engine } from "./engine";
2
- declare const tsParticles: Engine;
3
- export * from "./Core/Interfaces/Colors";
4
- export * from "./Core/Interfaces/IBounds";
5
- export * from "./Core/Interfaces/IBubbleParticleData";
6
- export * from "./Core/Interfaces/ICircleBouncer";
7
- export * from "./Core/Interfaces/IColorManager";
8
- export * from "./Core/Interfaces/IContainerInteractivity";
9
- export * from "./Core/Interfaces/IContainerPlugin";
10
- export * from "./Core/Interfaces/ICoordinates";
11
- export * from "./Core/Interfaces/IDelta";
12
- export * from "./Core/Interfaces/IDimension";
13
- export * from "./Core/Interfaces/IDistance";
14
- export * from "./Core/Interfaces/IDrawParticleParams";
15
- export * from "./Core/Interfaces/IExternalInteractor";
16
- export * from "./Core/Interfaces/IInteractor";
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/IParticlesInteractor";
23
- export * from "./Core/Interfaces/IParticleLife";
24
- export * from "./Core/Interfaces/IParticleOverride";
25
- export * from "./Core/Interfaces/IParticleRetinaProps";
26
- export * from "./Core/Interfaces/IParticleRoll";
27
- export * from "./Core/Interfaces/IParticleTransformValues";
28
- export * from "./Core/Interfaces/IParticleUpdater";
29
- export * from "./Core/Interfaces/IParticleValueAnimation";
30
- export * from "./Core/Interfaces/IParticlesMover";
31
- export * from "./Core/Interfaces/IPlugin";
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 "./Core/Utils/Circle";
39
- export * from "./Core/Utils/Constants";
40
- export * from "./Core/Utils/ExternalInteractorBase";
41
- export * from "./Core/Utils/ParticlesInteractorBase";
42
- export * from "./Core/Utils/Point";
43
- export * from "./Core/Utils/Range";
44
- export * from "./Core/Utils/Rectangle";
45
- export * from "./Core/Utils/Vector";
46
- export * from "./Core/Utils/Vector3d";
47
- export type { EventListeners } from "./Core/Utils/EventListeners";
48
- export type { FrameManager } from "./Core/Utils/FrameManager";
49
- export type { InteractionManager } from "./Core/Utils/InteractionManager";
50
- export type { Plugins } from "./Core/Utils/Plugins";
51
- export type { QuadTree } from "./Core/Utils/QuadTree";
52
- export type { Canvas } from "./Core/Canvas";
53
- export type { Container } from "./Core/Container";
54
- export type { Particle } from "./Core/Particle";
55
- export type { Particles } from "./Core/Particles";
56
- export type { Retina } from "./Core/Retina";
57
- export * from "./Enums/Directions/MoveDirection";
58
- export * from "./Enums/Directions/RotateDirection";
59
- export * from "./Enums/Directions/OutModeDirection";
60
- export * from "./Enums/Modes/AnimationMode";
61
- export * from "./Enums/Modes/ClickMode";
62
- export * from "./Enums/Modes/DivMode";
63
- export * from "./Enums/Modes/HoverMode";
64
- export * from "./Enums/Modes/CollisionMode";
65
- export * from "./Enums/Modes/OutMode";
66
- export * from "./Enums/Modes/SizeMode";
67
- export * from "./Enums/Modes/ThemeMode";
68
- export * from "./Enums/Modes/ResponsiveMode";
69
- export * from "./Enums/Types/AlterType";
70
- export * from "./Enums/Types/DestroyType";
71
- export * from "./Enums/Types/GradientType";
72
- export * from "./Enums/Types/InteractorType";
73
- export * from "./Enums/Types/ParticleOutType";
74
- export * from "./Enums/Types/StartValueType";
75
- export * from "./Enums/Types/DivType";
76
- export * from "./Enums/Types/EasingType";
77
- export * from "./Enums/Types/EventType";
78
- export * from "./Enums/AnimationStatus";
79
- export * from "./Enums/InteractivityDetect";
80
- export * from "./Options/Classes/AnimatableColor";
81
- export * from "./Options/Classes/AnimationOptions";
82
- export * from "./Options/Classes/Background/Background";
83
- export * from "./Options/Classes/BackgroundMask/BackgroundMask";
84
- export * from "./Options/Classes/BackgroundMask/BackgroundMaskCover";
85
- export * from "./Options/Classes/ColorAnimation";
86
- export * from "./Options/Classes/FullScreen/FullScreen";
87
- export * from "./Options/Classes/HslAnimation";
88
- export * from "./Options/Classes/Interactivity/Events/ClickEvent";
89
- export * from "./Options/Classes/Interactivity/Events/DivEvent";
90
- export * from "./Options/Classes/Interactivity/Events/ClickEvent";
91
- export * from "./Options/Classes/Interactivity/Events/DivEvent";
92
- export * from "./Options/Classes/Interactivity/Events/Events";
93
- export * from "./Options/Classes/Interactivity/Events/HoverEvent";
94
- export * from "./Options/Classes/Interactivity/Events/Parallax";
95
- export * from "./Options/Classes/Interactivity/Interactivity";
96
- export * from "./Options/Classes/Interactivity/Modes/Modes";
97
- export * from "./Options/Classes/Interactivity/Events/ResizeEvent";
98
- export * from "./Options/Classes/ManualParticle";
99
- export * from "./Options/Classes/Options";
100
- export * from "./Options/Classes/OptionsColor";
101
- export * from "./Options/Classes/Particles/Bounce/ParticlesBounce";
102
- export * from "./Options/Classes/Particles/Bounce/ParticlesBounceFactor";
103
- export * from "./Options/Classes/Particles/Collisions/Collisions";
104
- export * from "./Options/Classes/Particles/Collisions/CollisionsAbsorb";
105
- export * from "./Options/Classes/Particles/Collisions/CollisionsOverlap";
106
- export * from "./Options/Classes/Particles/ParticlesOptions";
107
- export * from "./Options/Classes/Particles/Shadow";
108
- export * from "./Options/Classes/Particles/Stroke";
109
- export * from "./Options/Classes/Particles/Move/MoveAttract";
110
- export * from "./Options/Classes/Particles/Move/Move";
111
- export * from "./Options/Classes/Particles/Move/MoveAngle";
112
- export * from "./Options/Classes/Particles/Move/MoveCenter";
113
- export * from "./Options/Classes/Particles/Move/MoveGravity";
114
- export * from "./Options/Classes/Particles/Move/MoveTrail";
115
- export * from "./Options/Classes/Particles/Move/MoveTrailFill";
116
- export * from "./Options/Classes/Particles/Move/OutModes";
117
- export * from "./Options/Classes/Particles/Move/Path/MovePath";
118
- export * from "./Options/Classes/Particles/Move/Spin";
119
- export * from "./Options/Classes/Particles/Number/ParticlesNumber";
120
- export * from "./Options/Classes/Particles/Number/ParticlesDensity";
121
- export * from "./Options/Classes/Particles/Opacity/Opacity";
122
- export * from "./Options/Classes/Particles/Opacity/OpacityAnimation";
123
- export * from "./Options/Classes/Particles/Shape/Shape";
124
- export * from "./Options/Classes/Particles/Size/Size";
125
- export * from "./Options/Classes/Particles/Size/SizeAnimation";
126
- export * from "./Options/Classes/Particles/ZIndex/ZIndex";
127
- export * from "./Options/Classes/Responsive";
128
- export * from "./Options/Classes/Theme/Theme";
129
- export * from "./Options/Classes/Theme/ThemeDefault";
130
- export * from "./Options/Classes/ValueWithRandom";
131
- export * from "./Options/Interfaces/Background/IBackground";
132
- export * from "./Options/Interfaces/BackgroundMask/IBackgroundMask";
133
- export * from "./Options/Interfaces/BackgroundMask/IBackgroundMaskCover";
134
- export * from "./Options/Interfaces/FullScreen/IFullScreen";
135
- export * from "./Options/Interfaces/IAnimatable";
136
- export * from "./Options/Interfaces/IAnimatableColor";
137
- export * from "./Options/Interfaces/IAnimation";
138
- export * from "./Options/Interfaces/IColorAnimation";
139
- export * from "./Options/Interfaces/IHslAnimation";
140
- export * from "./Options/Interfaces/IManualParticle";
141
- export * from "./Options/Interfaces/IOptionLoader";
142
- export * from "./Options/Interfaces/IOptions";
143
- export * from "./Options/Interfaces/IOptionsColor";
144
- export * from "./Options/Interfaces/IResponsive";
145
- export * from "./Options/Interfaces/IValueWithRandom";
146
- export * from "./Options/Interfaces/Interactivity/Events/IClickEvent";
147
- export * from "./Options/Interfaces/Interactivity/Events/IDivEvent";
148
- export * from "./Options/Interfaces/Interactivity/Events/IEvents";
149
- export * from "./Options/Interfaces/Interactivity/Events/IHoverEvent";
150
- export * from "./Options/Interfaces/Interactivity/Events/IParallax";
151
- export * from "./Options/Interfaces/Interactivity/Events/IResizeEvent";
152
- export * from "./Options/Interfaces/Interactivity/Modes/IModeDiv";
153
- export * from "./Options/Interfaces/Interactivity/Modes/IModes";
154
- export * from "./Options/Interfaces/Interactivity/IInteractivity";
155
- export * from "./Options/Interfaces/Particles/Bounce/IParticlesBounce";
156
- export * from "./Options/Interfaces/Particles/Collisions/ICollisions";
157
- export * from "./Options/Interfaces/Particles/Collisions/ICollisionsAbsorb";
158
- export * from "./Options/Interfaces/Particles/Collisions/ICollisionsOverlap";
159
- export * from "./Options/Interfaces/Particles/IParticlesOptions";
160
- export * from "./Options/Interfaces/Particles/IShadow";
161
- export * from "./Options/Interfaces/Particles/IStroke";
162
- export * from "./Options/Interfaces/Particles/Move/IMoveAttract";
163
- export * from "./Options/Interfaces/Particles/Move/IMove";
164
- export * from "./Options/Interfaces/Particles/Move/IMoveAngle";
165
- export * from "./Options/Interfaces/Particles/Move/IMoveCenter";
166
- export * from "./Options/Interfaces/Particles/Move/IMoveGravity";
167
- export * from "./Options/Interfaces/Particles/Move/IMoveTrail";
168
- export * from "./Options/Interfaces/Particles/Move/IMoveTrailFill";
169
- export * from "./Options/Interfaces/Particles/Move/Path/IMovePath";
170
- export * from "./Options/Interfaces/Particles/Move/IOutModes";
171
- export * from "./Options/Interfaces/Particles/Move/ISpin";
172
- export * from "./Options/Interfaces/Particles/Number/IParticlesDensity";
173
- export * from "./Options/Interfaces/Particles/Number/IParticlesNumber";
174
- export * from "./Options/Interfaces/Particles/Opacity/IOpacity";
175
- export * from "./Options/Interfaces/Particles/Opacity/IOpacityAnimation";
176
- export * from "./Options/Interfaces/Particles/Shape/ICharacterShape";
177
- export * from "./Options/Interfaces/Particles/Shape/IImageShape";
178
- export * from "./Options/Interfaces/Particles/Shape/IPolygonShape";
179
- export * from "./Options/Interfaces/Particles/Shape/IShape";
180
- export * from "./Options/Interfaces/Particles/Shape/IShapeValues";
181
- export * from "./Options/Interfaces/Particles/Shape/IStarShape";
182
- export * from "./Options/Interfaces/Particles/Size/ISize";
183
- export * from "./Options/Interfaces/Particles/Size/ISizeAnimation";
184
- export * from "./Options/Interfaces/Particles/ZIndex/IZIndex";
185
- export * from "./Options/Interfaces/Theme/ITheme";
186
- export * from "./Options/Interfaces/Theme/IThemeDefault";
187
- export * from "./Types/CustomEventArgs";
188
- export * from "./Types/CustomEventListener";
189
- export * from "./Types/ISourceOptions";
190
- export * from "./Types/ParticlesGroups";
191
- export * from "./Types/PathOptions";
192
- export * from "./Types/RangeValue";
193
- export * from "./Types/RecursivePartial";
194
- export * from "./Types/ShapeData";
195
- export * from "./Types/ShapeDrawerFunctions";
196
- export * from "./Types/SingleOrMultiple";
197
- export * from "./Utils/CanvasUtils";
198
- export * from "./Utils/ColorUtils";
199
- export * from "./Utils/HslColorManager";
200
- export * from "./Utils/NumberUtils";
201
- export * from "./Utils/OptionsUtils";
202
- export * from "./Utils/RgbColorManager";
203
- export * from "./Utils/Utils";
1
+ declare const tsParticles: import("./export-types").Engine;
2
+ export * from "./exports";
3
+ export * from "./export-types";
204
4
  export { tsParticles };
205
- export type { Engine };
@@ -0,0 +1,2 @@
1
+ import { Engine } from "./Core/Engine";
2
+ export declare function init(): Engine;