@tsparticles/engine 3.0.0-alpha.1 → 3.0.0-beta.1

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 (498) hide show
  1. package/README.md +244 -188
  2. package/browser/Core/Canvas.js +273 -243
  3. package/browser/Core/Container.js +97 -113
  4. package/browser/Core/Engine.js +271 -0
  5. package/browser/Core/Particle.js +165 -172
  6. package/browser/Core/Particles.js +153 -148
  7. package/browser/Core/Retina.js +17 -15
  8. package/browser/Core/Utils/Circle.js +12 -8
  9. package/browser/Core/Utils/Constants.js +4 -3
  10. package/browser/Core/Utils/EventListeners.js +259 -235
  11. package/browser/Core/Utils/InteractionManager.js +6 -16
  12. package/browser/Core/Utils/QuadTree.js +17 -23
  13. package/browser/Core/Utils/Rectangle.js +2 -2
  14. package/browser/Core/Utils/Vector.js +1 -1
  15. package/browser/Core/Utils/Vector3d.js +17 -9
  16. package/browser/Options/Classes/AnimatableColor.js +4 -3
  17. package/browser/Options/Classes/AnimationOptions.js +5 -4
  18. package/browser/Options/Classes/Background/Background.js +1 -1
  19. package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
  20. package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +1 -1
  21. package/browser/Options/Classes/ColorAnimation.js +5 -1
  22. package/browser/Options/Classes/HslAnimation.js +1 -1
  23. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
  24. package/browser/Options/Classes/Interactivity/Events/Events.js +9 -28
  25. package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +1 -1
  26. package/browser/Options/Classes/Interactivity/Interactivity.js +3 -10
  27. package/browser/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  28. package/browser/Options/Classes/ManualParticle.js +6 -7
  29. package/browser/Options/Classes/Options.js +28 -48
  30. package/browser/Options/Classes/OptionsColor.js +3 -2
  31. package/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +1 -1
  32. package/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +1 -1
  33. package/browser/Options/Classes/Particles/Collisions/Collisions.js +8 -3
  34. package/browser/Options/Classes/Particles/Move/Move.js +20 -50
  35. package/browser/Options/Classes/Particles/Move/MoveAngle.js +1 -1
  36. package/browser/Options/Classes/Particles/Move/MoveAttract.js +10 -21
  37. package/browser/Options/Classes/Particles/Move/MoveGravity.js +1 -1
  38. package/browser/Options/Classes/Particles/Move/MoveTrail.js +3 -9
  39. package/browser/Options/Classes/Particles/Move/MoveTrailFill.js +1 -1
  40. package/browser/Options/Classes/Particles/Move/OutModes.js +4 -5
  41. package/browser/Options/Classes/Particles/Move/Path/MovePath.js +2 -2
  42. package/browser/Options/Classes/Particles/Move/Spin.js +5 -3
  43. package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  44. package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +3 -10
  45. package/browser/Options/Classes/Particles/Opacity/Opacity.js +12 -8
  46. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -10
  47. package/browser/Options/Classes/Particles/ParticlesOptions.js +18 -23
  48. package/browser/Options/Classes/Particles/Shadow.js +1 -1
  49. package/browser/Options/Classes/Particles/Shape/Shape.js +10 -11
  50. package/browser/Options/Classes/Particles/Size/Size.js +12 -8
  51. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +1 -10
  52. package/browser/Options/Classes/Particles/Stroke.js +2 -2
  53. package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +1 -1
  54. package/browser/Options/Classes/Responsive.js +1 -1
  55. package/browser/Options/Classes/Theme/Theme.js +2 -2
  56. package/browser/Options/Classes/ValueWithRandom.js +6 -19
  57. package/browser/Utils/CanvasUtils.js +19 -55
  58. package/browser/Utils/ColorUtils.js +18 -20
  59. package/browser/Utils/EventDispatcher.js +7 -6
  60. package/browser/Utils/HslColorManager.js +4 -6
  61. package/browser/Utils/NumberUtils.js +42 -46
  62. package/browser/Utils/OptionsUtils.js +1 -1
  63. package/browser/Utils/RgbColorManager.js +3 -5
  64. package/browser/Utils/Utils.js +135 -64
  65. package/browser/bundle.js +4 -97
  66. package/browser/export-types.js +97 -0
  67. package/browser/exports.js +89 -0
  68. package/browser/index.js +8 -199
  69. package/browser/init.js +12 -0
  70. package/browser/package.json +1 -0
  71. package/cjs/Core/Canvas.js +278 -248
  72. package/cjs/Core/Container.js +104 -120
  73. package/cjs/Core/Engine.js +275 -0
  74. package/cjs/Core/Particle.js +173 -180
  75. package/cjs/Core/Particles.js +154 -149
  76. package/cjs/Core/Retina.js +20 -18
  77. package/cjs/Core/Utils/Circle.js +14 -10
  78. package/cjs/Core/Utils/Constants.js +5 -4
  79. package/cjs/Core/Utils/EventListeners.js +267 -243
  80. package/cjs/Core/Utils/InteractionManager.js +6 -16
  81. package/cjs/Core/Utils/QuadTree.js +20 -26
  82. package/cjs/Core/Utils/Rectangle.js +4 -4
  83. package/cjs/Core/Utils/Vector.js +2 -2
  84. package/cjs/Core/Utils/Vector3d.js +17 -9
  85. package/cjs/Options/Classes/AnimatableColor.js +6 -5
  86. package/cjs/Options/Classes/AnimationOptions.js +8 -7
  87. package/cjs/Options/Classes/Background/Background.js +3 -3
  88. package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +4 -3
  89. package/cjs/Options/Classes/BackgroundMask/BackgroundMaskCover.js +3 -3
  90. package/cjs/Options/Classes/ColorAnimation.js +9 -5
  91. package/cjs/Options/Classes/HslAnimation.js +4 -4
  92. package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
  93. package/cjs/Options/Classes/Interactivity/Events/Events.js +15 -34
  94. package/cjs/Options/Classes/Interactivity/Events/HoverEvent.js +2 -2
  95. package/cjs/Options/Classes/Interactivity/Interactivity.js +5 -12
  96. package/cjs/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  97. package/cjs/Options/Classes/ManualParticle.js +7 -8
  98. package/cjs/Options/Classes/Options.js +41 -61
  99. package/cjs/Options/Classes/OptionsColor.js +3 -2
  100. package/cjs/Options/Classes/Particles/Bounce/ParticlesBounce.js +3 -3
  101. package/cjs/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +2 -2
  102. package/cjs/Options/Classes/Particles/Collisions/Collisions.js +11 -6
  103. package/cjs/Options/Classes/Particles/Move/Move.js +31 -61
  104. package/cjs/Options/Classes/Particles/Move/MoveAngle.js +3 -3
  105. package/cjs/Options/Classes/Particles/Move/MoveAttract.js +11 -22
  106. package/cjs/Options/Classes/Particles/Move/MoveGravity.js +3 -3
  107. package/cjs/Options/Classes/Particles/Move/MoveTrail.js +4 -10
  108. package/cjs/Options/Classes/Particles/Move/MoveTrailFill.js +2 -2
  109. package/cjs/Options/Classes/Particles/Move/OutModes.js +4 -5
  110. package/cjs/Options/Classes/Particles/Move/Path/MovePath.js +4 -4
  111. package/cjs/Options/Classes/Particles/Move/Spin.js +6 -4
  112. package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  113. package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +4 -11
  114. package/cjs/Options/Classes/Particles/Opacity/Opacity.js +13 -9
  115. package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -11
  116. package/cjs/Options/Classes/Particles/ParticlesOptions.js +32 -37
  117. package/cjs/Options/Classes/Particles/Shadow.js +3 -3
  118. package/cjs/Options/Classes/Particles/Shape/Shape.js +10 -11
  119. package/cjs/Options/Classes/Particles/Size/Size.js +13 -9
  120. package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +2 -11
  121. package/cjs/Options/Classes/Particles/Stroke.js +5 -5
  122. package/cjs/Options/Classes/Particles/ZIndex/ZIndex.js +2 -2
  123. package/cjs/Options/Classes/Responsive.js +2 -2
  124. package/cjs/Options/Classes/Theme/Theme.js +4 -4
  125. package/cjs/Options/Classes/ValueWithRandom.js +10 -23
  126. package/cjs/Utils/CanvasUtils.js +23 -60
  127. package/cjs/Utils/ColorUtils.js +31 -33
  128. package/cjs/Utils/EventDispatcher.js +7 -6
  129. package/cjs/Utils/HslColorManager.js +11 -13
  130. package/cjs/Utils/NumberUtils.js +44 -48
  131. package/cjs/Utils/OptionsUtils.js +2 -2
  132. package/cjs/Utils/RgbColorManager.js +7 -9
  133. package/cjs/Utils/Utils.js +157 -77
  134. package/cjs/bundle.js +4 -97
  135. package/cjs/export-types.js +113 -0
  136. package/cjs/exports.js +105 -0
  137. package/cjs/index.js +8 -199
  138. package/cjs/init.js +16 -0
  139. package/cjs/package.json +1 -0
  140. package/esm/Core/Canvas.js +273 -243
  141. package/esm/Core/Container.js +97 -113
  142. package/esm/Core/Engine.js +271 -0
  143. package/esm/Core/Particle.js +165 -172
  144. package/esm/Core/Particles.js +153 -148
  145. package/esm/Core/Retina.js +17 -15
  146. package/esm/Core/Utils/Circle.js +12 -8
  147. package/esm/Core/Utils/Constants.js +4 -3
  148. package/esm/Core/Utils/EventListeners.js +259 -235
  149. package/esm/Core/Utils/InteractionManager.js +6 -16
  150. package/esm/Core/Utils/QuadTree.js +17 -23
  151. package/esm/Core/Utils/Rectangle.js +2 -2
  152. package/esm/Core/Utils/Vector.js +1 -1
  153. package/esm/Core/Utils/Vector3d.js +17 -9
  154. package/esm/Options/Classes/AnimatableColor.js +4 -3
  155. package/esm/Options/Classes/AnimationOptions.js +5 -4
  156. package/esm/Options/Classes/Background/Background.js +1 -1
  157. package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
  158. package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.js +1 -1
  159. package/esm/Options/Classes/ColorAnimation.js +5 -1
  160. package/esm/Options/Classes/HslAnimation.js +1 -1
  161. package/esm/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
  162. package/esm/Options/Classes/Interactivity/Events/Events.js +9 -28
  163. package/esm/Options/Classes/Interactivity/Events/HoverEvent.js +1 -1
  164. package/esm/Options/Classes/Interactivity/Interactivity.js +3 -10
  165. package/esm/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  166. package/esm/Options/Classes/ManualParticle.js +6 -7
  167. package/esm/Options/Classes/Options.js +28 -48
  168. package/esm/Options/Classes/OptionsColor.js +3 -2
  169. package/esm/Options/Classes/Particles/Bounce/ParticlesBounce.js +1 -1
  170. package/esm/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +1 -1
  171. package/esm/Options/Classes/Particles/Collisions/Collisions.js +8 -3
  172. package/esm/Options/Classes/Particles/Move/Move.js +20 -50
  173. package/esm/Options/Classes/Particles/Move/MoveAngle.js +1 -1
  174. package/esm/Options/Classes/Particles/Move/MoveAttract.js +10 -21
  175. package/esm/Options/Classes/Particles/Move/MoveGravity.js +1 -1
  176. package/esm/Options/Classes/Particles/Move/MoveTrail.js +3 -9
  177. package/esm/Options/Classes/Particles/Move/MoveTrailFill.js +1 -1
  178. package/esm/Options/Classes/Particles/Move/OutModes.js +4 -5
  179. package/esm/Options/Classes/Particles/Move/Path/MovePath.js +2 -2
  180. package/esm/Options/Classes/Particles/Move/Spin.js +5 -3
  181. package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  182. package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +3 -10
  183. package/esm/Options/Classes/Particles/Opacity/Opacity.js +12 -8
  184. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -10
  185. package/esm/Options/Classes/Particles/ParticlesOptions.js +18 -23
  186. package/esm/Options/Classes/Particles/Shadow.js +1 -1
  187. package/esm/Options/Classes/Particles/Shape/Shape.js +10 -11
  188. package/esm/Options/Classes/Particles/Size/Size.js +12 -8
  189. package/esm/Options/Classes/Particles/Size/SizeAnimation.js +1 -10
  190. package/esm/Options/Classes/Particles/Stroke.js +2 -2
  191. package/esm/Options/Classes/Particles/ZIndex/ZIndex.js +1 -1
  192. package/esm/Options/Classes/Responsive.js +1 -1
  193. package/esm/Options/Classes/Theme/Theme.js +2 -2
  194. package/esm/Options/Classes/ValueWithRandom.js +6 -19
  195. package/esm/Utils/CanvasUtils.js +19 -55
  196. package/esm/Utils/ColorUtils.js +18 -20
  197. package/esm/Utils/EventDispatcher.js +7 -6
  198. package/esm/Utils/HslColorManager.js +4 -6
  199. package/esm/Utils/NumberUtils.js +42 -46
  200. package/esm/Utils/OptionsUtils.js +1 -1
  201. package/esm/Utils/RgbColorManager.js +3 -5
  202. package/esm/Utils/Utils.js +135 -64
  203. package/esm/bundle.js +4 -97
  204. package/esm/export-types.js +97 -0
  205. package/esm/exports.js +89 -0
  206. package/esm/index.js +8 -199
  207. package/esm/init.js +12 -0
  208. package/esm/package.json +1 -0
  209. package/package.json +21 -4
  210. package/report.html +4 -4
  211. package/scripts/install.js +90 -33
  212. package/tsparticles.engine.js +1832 -2007
  213. package/tsparticles.engine.min.js +1 -1
  214. package/tsparticles.engine.min.js.LICENSE.txt +1 -10
  215. package/types/Core/Canvas.d.ts +25 -21
  216. package/types/Core/Container.d.ts +21 -25
  217. package/types/Core/Engine.d.ts +71 -0
  218. package/types/Core/Interfaces/Colors.d.ts +2 -2
  219. package/types/Core/Interfaces/IBubbleParticleData.d.ts +1 -1
  220. package/types/Core/Interfaces/ICircleBouncer.d.ts +2 -2
  221. package/types/Core/Interfaces/IColorManager.d.ts +1 -1
  222. package/types/Core/Interfaces/IContainerInteractivity.d.ts +1 -1
  223. package/types/Core/Interfaces/IContainerPlugin.d.ts +8 -6
  224. package/types/Core/Interfaces/ICoordinates.d.ts +3 -3
  225. package/types/Core/Interfaces/IDimension.d.ts +2 -2
  226. package/types/Core/Interfaces/IDrawParticleParams.d.ts +6 -6
  227. package/types/Core/Interfaces/IExternalInteractor.d.ts +7 -7
  228. package/types/Core/Interfaces/IInteractor.d.ts +8 -8
  229. package/types/Core/Interfaces/ILoadParams.d.ts +2 -2
  230. package/types/Core/Interfaces/IMouseData.d.ts +1 -1
  231. package/types/Core/Interfaces/IMovePathGenerator.d.ts +5 -4
  232. package/types/Core/Interfaces/IParticle.d.ts +11 -11
  233. package/types/Core/Interfaces/IParticleHslAnimation.d.ts +1 -1
  234. package/types/Core/Interfaces/IParticleMover.d.ts +2 -2
  235. package/types/Core/Interfaces/IParticleRetinaProps.d.ts +1 -1
  236. package/types/Core/Interfaces/IParticleRoll.d.ts +1 -1
  237. package/types/Core/Interfaces/IParticleUpdater.d.ts +7 -9
  238. package/types/Core/Interfaces/IParticleValueAnimation.d.ts +3 -1
  239. package/types/Core/Interfaces/IParticlesInteractor.d.ts +3 -3
  240. package/types/Core/Interfaces/IPlugin.d.ts +7 -6
  241. package/types/Core/Interfaces/IPositionFromSizeParams.d.ts +2 -2
  242. package/types/Core/Interfaces/IShapeDrawer.d.ts +1 -1
  243. package/types/Core/Interfaces/IShapeValues.d.ts +2 -2
  244. package/types/Core/Interfaces/ITrailFillData.d.ts +1 -1
  245. package/types/Core/Particle.d.ts +27 -27
  246. package/types/Core/Particles.d.ts +24 -21
  247. package/types/Core/Retina.d.ts +2 -2
  248. package/types/Core/Utils/Circle.d.ts +2 -2
  249. package/types/Core/Utils/Constants.d.ts +4 -3
  250. package/types/Core/Utils/EventListeners.d.ts +21 -19
  251. package/types/Core/Utils/ExternalInteractorBase.d.ts +5 -5
  252. package/types/Core/Utils/InteractionManager.d.ts +5 -5
  253. package/types/Core/Utils/ParticlesInteractorBase.d.ts +5 -5
  254. package/types/Core/Utils/Point.d.ts +2 -2
  255. package/types/Core/Utils/QuadTree.d.ts +8 -11
  256. package/types/Core/Utils/Range.d.ts +1 -1
  257. package/types/Core/Utils/Rectangle.d.ts +3 -3
  258. package/types/Core/Utils/Vector.d.ts +2 -2
  259. package/types/Core/Utils/Vector3d.d.ts +3 -2
  260. package/types/Enums/Modes/{SizeMode.d.ts → PixelMode.d.ts} +1 -1
  261. package/types/Options/Classes/AnimatableColor.d.ts +6 -6
  262. package/types/Options/Classes/AnimationOptions.d.ts +7 -7
  263. package/types/Options/Classes/Background/Background.d.ts +4 -4
  264. package/types/Options/Classes/BackgroundMask/BackgroundMask.d.ts +4 -4
  265. package/types/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +4 -4
  266. package/types/Options/Classes/ColorAnimation.d.ts +5 -4
  267. package/types/Options/Classes/FullScreen/FullScreen.d.ts +3 -3
  268. package/types/Options/Classes/HslAnimation.d.ts +4 -4
  269. package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +5 -5
  270. package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +6 -12
  271. package/types/Options/Classes/Interactivity/Events/Events.d.ts +8 -14
  272. package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +6 -6
  273. package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +3 -3
  274. package/types/Options/Classes/Interactivity/Events/ResizeEvent.d.ts +3 -3
  275. package/types/Options/Classes/Interactivity/Interactivity.d.ts +8 -10
  276. package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +5 -5
  277. package/types/Options/Classes/ManualParticle.d.ts +5 -5
  278. package/types/Options/Classes/Options.d.ts +19 -26
  279. package/types/Options/Classes/OptionsColor.d.ts +5 -5
  280. package/types/Options/Classes/Particles/Bounce/ParticlesBounce.d.ts +4 -4
  281. package/types/Options/Classes/Particles/Bounce/ParticlesBounceFactor.d.ts +1 -1
  282. package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +9 -7
  283. package/types/Options/Classes/Particles/Collisions/CollisionsAbsorb.d.ts +3 -3
  284. package/types/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +3 -3
  285. package/types/Options/Classes/Particles/Move/Move.d.ts +15 -26
  286. package/types/Options/Classes/Particles/Move/MoveAngle.d.ts +4 -4
  287. package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +5 -9
  288. package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +5 -5
  289. package/types/Options/Classes/Particles/Move/MoveGravity.d.ts +4 -4
  290. package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +4 -7
  291. package/types/Options/Classes/Particles/Move/MoveTrailFill.d.ts +4 -4
  292. package/types/Options/Classes/Particles/Move/OutModes.d.ts +5 -5
  293. package/types/Options/Classes/Particles/Move/Path/MovePath.d.ts +5 -5
  294. package/types/Options/Classes/Particles/Move/Spin.d.ts +5 -5
  295. package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +3 -9
  296. package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +4 -6
  297. package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +7 -7
  298. package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +5 -7
  299. package/types/Options/Classes/Particles/ParticlesOptions.d.ts +19 -19
  300. package/types/Options/Classes/Particles/Shadow.d.ts +5 -5
  301. package/types/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
  302. package/types/Options/Classes/Particles/Size/Size.d.ts +7 -7
  303. package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +5 -7
  304. package/types/Options/Classes/Particles/Stroke.d.ts +5 -5
  305. package/types/Options/Classes/Particles/ZIndex/ZIndex.d.ts +4 -4
  306. package/types/Options/Classes/Random.d.ts +3 -3
  307. package/types/Options/Classes/Responsive.d.ts +7 -7
  308. package/types/Options/Classes/Theme/Theme.d.ts +6 -6
  309. package/types/Options/Classes/Theme/ThemeDefault.d.ts +4 -4
  310. package/types/Options/Classes/ValueWithRandom.d.ts +7 -11
  311. package/types/Options/Interfaces/Background/IBackground.d.ts +1 -1
  312. package/types/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +2 -2
  313. package/types/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +1 -1
  314. package/types/Options/Interfaces/IAnimatable.d.ts +1 -1
  315. package/types/Options/Interfaces/IAnimatableColor.d.ts +3 -3
  316. package/types/Options/Interfaces/IAnimation.d.ts +4 -4
  317. package/types/Options/Interfaces/IColorAnimation.d.ts +2 -2
  318. package/types/Options/Interfaces/IHslAnimation.d.ts +1 -1
  319. package/types/Options/Interfaces/IManualParticle.d.ts +3 -3
  320. package/types/Options/Interfaces/IOptionLoader.d.ts +1 -1
  321. package/types/Options/Interfaces/IOptions.d.ts +12 -15
  322. package/types/Options/Interfaces/IOptionsColor.d.ts +1 -1
  323. package/types/Options/Interfaces/IResponsive.d.ts +5 -4
  324. package/types/Options/Interfaces/IValueWithRandom.d.ts +3 -3
  325. package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +2 -2
  326. package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +3 -6
  327. package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +5 -8
  328. package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +3 -3
  329. package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +3 -4
  330. package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +1 -2
  331. package/types/Options/Interfaces/Particles/Bounce/IParticlesBounce.d.ts +1 -1
  332. package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +6 -4
  333. package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +15 -15
  334. package/types/Options/Interfaces/Particles/IShadow.d.ts +2 -2
  335. package/types/Options/Interfaces/Particles/IStroke.d.ts +5 -4
  336. package/types/Options/Interfaces/Particles/Move/IMove.d.ts +12 -17
  337. package/types/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +1 -1
  338. package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +2 -4
  339. package/types/Options/Interfaces/Particles/Move/IMoveCenter.d.ts +1 -1
  340. package/types/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +1 -1
  341. package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +1 -3
  342. package/types/Options/Interfaces/Particles/Move/IMoveTrailFill.d.ts +1 -1
  343. package/types/Options/Interfaces/Particles/Move/IOutModes.d.ts +1 -1
  344. package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +2 -2
  345. package/types/Options/Interfaces/Particles/Move/Path/IMovePath.d.ts +2 -2
  346. package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +0 -3
  347. package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +1 -2
  348. package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +2 -3
  349. package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +2 -3
  350. package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +2 -2
  351. package/types/Options/Interfaces/Particles/Size/ISize.d.ts +2 -3
  352. package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +2 -3
  353. package/types/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +1 -1
  354. package/types/Options/Interfaces/Theme/ITheme.d.ts +4 -3
  355. package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +1 -1
  356. package/types/Types/CustomEventArgs.d.ts +1 -1
  357. package/types/Types/CustomEventListener.d.ts +1 -1
  358. package/types/Types/ExportResult.d.ts +5 -0
  359. package/types/Types/ISourceOptions.d.ts +2 -2
  360. package/types/Types/ParticlesGroups.d.ts +1 -1
  361. package/types/Types/RangeValue.d.ts +1 -1
  362. package/types/Types/ShapeData.d.ts +2 -2
  363. package/types/Types/ShapeDrawerFunctions.d.ts +3 -3
  364. package/types/Utils/CanvasUtils.d.ts +11 -14
  365. package/types/Utils/ColorUtils.d.ts +6 -6
  366. package/types/Utils/EventDispatcher.d.ts +2 -2
  367. package/types/Utils/HslColorManager.d.ts +2 -2
  368. package/types/Utils/NumberUtils.d.ts +8 -8
  369. package/types/Utils/OptionsUtils.d.ts +6 -6
  370. package/types/Utils/RgbColorManager.d.ts +2 -2
  371. package/types/Utils/Utils.d.ts +32 -14
  372. package/types/bundle.d.ts +2 -91
  373. package/types/export-types.d.ts +107 -0
  374. package/types/exports.d.ts +89 -0
  375. package/types/index.d.ts +3 -204
  376. package/types/init.d.ts +2 -0
  377. package/umd/Core/Canvas.js +279 -249
  378. package/umd/Core/Container.js +105 -121
  379. package/umd/Core/Engine.js +285 -0
  380. package/umd/Core/Particle.js +174 -181
  381. package/umd/Core/Particles.js +155 -150
  382. package/umd/Core/Retina.js +21 -19
  383. package/umd/Core/Utils/Circle.js +15 -11
  384. package/umd/Core/Utils/Constants.js +5 -4
  385. package/umd/Core/Utils/EventListeners.js +268 -244
  386. package/umd/Core/Utils/InteractionManager.js +6 -16
  387. package/umd/Core/Utils/QuadTree.js +21 -27
  388. package/umd/Core/Utils/Rectangle.js +5 -5
  389. package/umd/Core/Utils/Vector.js +3 -3
  390. package/umd/Core/Utils/Vector3d.js +18 -10
  391. package/umd/Options/Classes/AnimatableColor.js +7 -6
  392. package/umd/Options/Classes/AnimationOptions.js +9 -8
  393. package/umd/Options/Classes/Background/Background.js +4 -4
  394. package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +5 -4
  395. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +4 -4
  396. package/umd/Options/Classes/ColorAnimation.js +10 -6
  397. package/umd/Options/Classes/HslAnimation.js +5 -5
  398. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +1 -25
  399. package/umd/Options/Classes/Interactivity/Events/Events.js +16 -35
  400. package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +3 -3
  401. package/umd/Options/Classes/Interactivity/Interactivity.js +6 -13
  402. package/umd/Options/Classes/Interactivity/Modes/Modes.js +11 -8
  403. package/umd/Options/Classes/ManualParticle.js +8 -9
  404. package/umd/Options/Classes/Options.js +42 -62
  405. package/umd/Options/Classes/OptionsColor.js +4 -3
  406. package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +4 -4
  407. package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +3 -3
  408. package/umd/Options/Classes/Particles/Collisions/Collisions.js +12 -7
  409. package/umd/Options/Classes/Particles/Move/Move.js +32 -62
  410. package/umd/Options/Classes/Particles/Move/MoveAngle.js +4 -4
  411. package/umd/Options/Classes/Particles/Move/MoveAttract.js +12 -23
  412. package/umd/Options/Classes/Particles/Move/MoveGravity.js +4 -4
  413. package/umd/Options/Classes/Particles/Move/MoveTrail.js +5 -11
  414. package/umd/Options/Classes/Particles/Move/MoveTrailFill.js +3 -3
  415. package/umd/Options/Classes/Particles/Move/OutModes.js +4 -5
  416. package/umd/Options/Classes/Particles/Move/Path/MovePath.js +5 -5
  417. package/umd/Options/Classes/Particles/Move/Spin.js +7 -5
  418. package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
  419. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +5 -12
  420. package/umd/Options/Classes/Particles/Opacity/Opacity.js +14 -10
  421. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +3 -12
  422. package/umd/Options/Classes/Particles/ParticlesOptions.js +33 -38
  423. package/umd/Options/Classes/Particles/Shadow.js +4 -4
  424. package/umd/Options/Classes/Particles/Shape/Shape.js +11 -12
  425. package/umd/Options/Classes/Particles/Size/Size.js +14 -10
  426. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +3 -12
  427. package/umd/Options/Classes/Particles/Stroke.js +6 -6
  428. package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +3 -3
  429. package/umd/Options/Classes/Responsive.js +3 -3
  430. package/umd/Options/Classes/Theme/Theme.js +5 -5
  431. package/umd/Options/Classes/ValueWithRandom.js +11 -24
  432. package/umd/Utils/CanvasUtils.js +24 -61
  433. package/umd/Utils/ColorUtils.js +32 -34
  434. package/umd/Utils/EventDispatcher.js +7 -6
  435. package/umd/Utils/HslColorManager.js +12 -14
  436. package/umd/Utils/NumberUtils.js +45 -49
  437. package/umd/Utils/OptionsUtils.js +3 -3
  438. package/umd/Utils/RgbColorManager.js +8 -10
  439. package/umd/Utils/Utils.js +158 -78
  440. package/umd/bundle.js +5 -98
  441. package/umd/export-types.js +123 -0
  442. package/umd/exports.js +115 -0
  443. package/umd/index.js +9 -200
  444. package/umd/init.js +26 -0
  445. package/browser/Core/Utils/FrameManager.js +0 -42
  446. package/browser/Core/Utils/Plugins.js +0 -112
  447. package/browser/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
  448. package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
  449. package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
  450. package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
  451. package/browser/engine.js +0 -175
  452. package/cjs/Core/Utils/FrameManager.js +0 -46
  453. package/cjs/Core/Utils/Plugins.js +0 -116
  454. package/cjs/Enums/Modes/SizeMode.js +0 -2
  455. package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -2
  456. package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +0 -2
  457. package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -2
  458. package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -17
  459. package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +0 -2
  460. package/cjs/engine.js +0 -179
  461. package/esm/Core/Interfaces/IParticleOverride.js +0 -1
  462. package/esm/Core/Interfaces/IParticlesMover.js +0 -1
  463. package/esm/Core/Utils/FrameManager.js +0 -42
  464. package/esm/Core/Utils/Plugins.js +0 -112
  465. package/esm/Enums/Modes/SizeMode.js +0 -1
  466. package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -1
  467. package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
  468. package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
  469. package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
  470. package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
  471. package/esm/engine.js +0 -175
  472. package/types/Core/Interfaces/IParticleOverride.d.ts +0 -6
  473. package/types/Core/Interfaces/IParticlesMover.d.ts +0 -7
  474. package/types/Core/Utils/FrameManager.d.ts +0 -6
  475. package/types/Core/Utils/Plugins.d.ts +0 -51
  476. package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
  477. package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
  478. package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
  479. package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
  480. package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
  481. package/types/engine.d.ts +0 -39
  482. package/umd/Core/Utils/FrameManager.js +0 -56
  483. package/umd/Core/Utils/Plugins.js +0 -126
  484. package/umd/Enums/Modes/SizeMode.js +0 -12
  485. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -12
  486. package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +0 -12
  487. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -12
  488. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -27
  489. package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +0 -12
  490. package/umd/engine.js +0 -189
  491. /package/browser/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
  492. /package/browser/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
  493. /package/cjs/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
  494. /package/cjs/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
  495. /package/{browser/Enums/Modes/SizeMode.js → esm/Enums/Modes/PixelMode.js} +0 -0
  496. /package/{browser/Options/Interfaces/Particles/Shape/ICharacterShape.js → esm/Types/ExportResult.js} +0 -0
  497. /package/umd/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
  498. /package/umd/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
@@ -1,14 +1,16 @@
1
- import { CollisionMode } from "../../../../Enums/Modes/CollisionMode";
2
- import { CollisionsAbsorb } from "./CollisionsAbsorb";
3
- import { CollisionsOverlap } from "./CollisionsOverlap";
4
- import type { ICollisions } from "../../../Interfaces/Particles/Collisions/ICollisions";
5
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
6
- import { ParticlesBounce } from "../Bounce/ParticlesBounce";
7
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import { CollisionMode } from "../../../../Enums/Modes/CollisionMode.js";
2
+ import { CollisionsAbsorb } from "./CollisionsAbsorb.js";
3
+ import { CollisionsOverlap } from "./CollisionsOverlap.js";
4
+ import type { ICollisions } from "../../../Interfaces/Particles/Collisions/ICollisions.js";
5
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
6
+ import { ParticlesBounce } from "../Bounce/ParticlesBounce.js";
7
+ import type { RangeValue } from "../../../../Types/RangeValue.js";
8
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
8
9
  export declare class Collisions implements ICollisions, IOptionLoader<ICollisions> {
9
10
  absorb: CollisionsAbsorb;
10
11
  bounce: ParticlesBounce;
11
12
  enable: boolean;
13
+ maxSpeed: RangeValue;
12
14
  mode: CollisionMode | keyof typeof CollisionMode;
13
15
  overlap: CollisionsOverlap;
14
16
  constructor();
@@ -1,6 +1,6 @@
1
- import type { ICollisionsAbsorb } from "../../../Interfaces/Particles/Collisions/ICollisionsAbsorb";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { ICollisionsAbsorb } from "../../../Interfaces/Particles/Collisions/ICollisionsAbsorb.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
4
4
  export declare class CollisionsAbsorb implements ICollisionsAbsorb, IOptionLoader<ICollisionsAbsorb> {
5
5
  speed: number;
6
6
  constructor();
@@ -1,6 +1,6 @@
1
- import type { ICollisionsOverlap } from "../../../Interfaces/Particles/Collisions/ICollisionsOverlap";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { ICollisionsOverlap } from "../../../Interfaces/Particles/Collisions/ICollisionsOverlap.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
4
4
  export declare class CollisionsOverlap implements ICollisionsOverlap, IOptionLoader<ICollisionsOverlap> {
5
5
  enable: boolean;
6
6
  retries: number;
@@ -1,19 +1,18 @@
1
- import type { OutMode, OutModeAlt } from "../../../../Enums/Modes/OutMode";
2
- import type { IDistance } from "../../../../Core/Interfaces/IDistance";
3
- import type { IMove } from "../../../Interfaces/Particles/Move/IMove";
4
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
5
- import { MoveAngle } from "./MoveAngle";
6
- import { MoveAttract } from "./MoveAttract";
7
- import { MoveCenter } from "./MoveCenter";
8
- import { MoveDirection } from "../../../../Enums/Directions/MoveDirection";
9
- import type { MoveDirectionAlt } from "../../../../Enums/Directions/MoveDirection";
10
- import { MoveGravity } from "./MoveGravity";
11
- import { MovePath } from "./Path/MovePath";
12
- import { MoveTrail } from "./MoveTrail";
13
- import { OutModes } from "./OutModes";
14
- import type { RangeValue } from "../../../../Types/RangeValue";
15
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
16
- import { Spin } from "./Spin";
1
+ import type { IDistance } from "../../../../Core/Interfaces/IDistance.js";
2
+ import type { IMove } from "../../../Interfaces/Particles/Move/IMove.js";
3
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
4
+ import { MoveAngle } from "./MoveAngle.js";
5
+ import { MoveAttract } from "./MoveAttract.js";
6
+ import { MoveCenter } from "./MoveCenter.js";
7
+ import { MoveDirection } from "../../../../Enums/Directions/MoveDirection.js";
8
+ import type { MoveDirectionAlt } from "../../../../Enums/Directions/MoveDirection.js";
9
+ import { MoveGravity } from "./MoveGravity.js";
10
+ import { MovePath } from "./Path/MovePath.js";
11
+ import { MoveTrail } from "./MoveTrail.js";
12
+ import { OutModes } from "./OutModes.js";
13
+ import type { RangeValue } from "../../../../Types/RangeValue.js";
14
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
15
+ import { Spin } from "./Spin.js";
17
16
  export declare class Move implements IMove, IOptionLoader<IMove> {
18
17
  angle: MoveAngle;
19
18
  attract: MoveAttract;
@@ -35,15 +34,5 @@ export declare class Move implements IMove, IOptionLoader<IMove> {
35
34
  vibrate: boolean;
36
35
  warp: boolean;
37
36
  constructor();
38
- get bounce(): boolean;
39
- set bounce(value: boolean);
40
- get collisions(): boolean;
41
- set collisions(_: boolean);
42
- get noise(): MovePath;
43
- set noise(value: MovePath);
44
- get outMode(): OutMode | keyof typeof OutMode | OutModeAlt;
45
- set outMode(value: OutMode | keyof typeof OutMode | OutModeAlt);
46
- get out_mode(): OutMode | keyof typeof OutMode | OutModeAlt;
47
- set out_mode(value: OutMode | keyof typeof OutMode | OutModeAlt);
48
37
  load(data?: RecursivePartial<IMove>): void;
49
38
  }
@@ -1,7 +1,7 @@
1
- import type { IMoveAngle } from "../../../Interfaces/Particles/Move/IMoveAngle";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import type { RangeValue } from "../../../../Types/RangeValue";
4
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { IMoveAngle } from "../../../Interfaces/Particles/Move/IMoveAngle.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import type { RangeValue } from "../../../../Types/RangeValue.js";
4
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
5
5
  export declare class MoveAngle implements IMoveAngle, IOptionLoader<IMoveAngle> {
6
6
  offset: RangeValue;
7
7
  value: RangeValue;
@@ -1,16 +1,12 @@
1
- import type { ICoordinates } from "../../../../Core/Interfaces/ICoordinates";
2
- import type { IMoveAttract } from "../../../Interfaces/Particles/Move/IMoveAttract";
3
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
4
- import type { RangeValue } from "../../../../Types/RangeValue";
5
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { ICoordinates } from "../../../../Core/Interfaces/ICoordinates.js";
2
+ import type { IMoveAttract } from "../../../Interfaces/Particles/Move/IMoveAttract.js";
3
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
4
+ import type { RangeValue } from "../../../../Types/RangeValue.js";
5
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
6
6
  export declare class MoveAttract implements IMoveAttract, IOptionLoader<IMoveAttract> {
7
7
  distance: RangeValue;
8
8
  enable: boolean;
9
9
  rotate: ICoordinates;
10
10
  constructor();
11
- get rotateX(): number;
12
- set rotateX(value: number);
13
- get rotateY(): number;
14
- set rotateY(value: number);
15
11
  load(data?: RecursivePartial<IMoveAttract>): void;
16
12
  }
@@ -1,9 +1,9 @@
1
- import type { IMoveCenter } from "../../../Interfaces/Particles/Move/IMoveCenter";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
4
- import { SizeMode } from "../../../../Enums/Modes/SizeMode";
1
+ import type { IMoveCenter } from "../../../Interfaces/Particles/Move/IMoveCenter.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import { PixelMode } from "../../../../Enums/Modes/PixelMode.js";
4
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
5
5
  export declare class MoveCenter implements IMoveCenter, IOptionLoader<IMoveCenter> {
6
- mode: SizeMode;
6
+ mode: PixelMode | keyof typeof PixelMode;
7
7
  radius: number;
8
8
  x: number;
9
9
  y: number;
@@ -1,7 +1,7 @@
1
- import type { IMoveGravity } from "../../../Interfaces/Particles/Move/IMoveGravity";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import type { RangeValue } from "../../../../Types/RangeValue";
4
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { IMoveGravity } from "../../../Interfaces/Particles/Move/IMoveGravity.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import type { RangeValue } from "../../../../Types/RangeValue.js";
4
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
5
5
  export declare class MoveGravity implements IMoveGravity, IOptionLoader<IMoveGravity> {
6
6
  acceleration: RangeValue;
7
7
  enable: boolean;
@@ -1,14 +1,11 @@
1
- import type { IMoveTrail } from "../../../Interfaces/Particles/Move/IMoveTrail";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import { MoveTrailFill } from "./MoveTrailFill";
4
- import type { OptionsColor } from "../../OptionsColor";
5
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { IMoveTrail } from "../../../Interfaces/Particles/Move/IMoveTrail.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import { MoveTrailFill } from "./MoveTrailFill.js";
4
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
6
5
  export declare class MoveTrail implements IMoveTrail, IOptionLoader<IMoveTrail> {
7
6
  enable: boolean;
8
7
  fill: MoveTrailFill;
9
8
  length: number;
10
9
  constructor();
11
- get fillColor(): string | OptionsColor | undefined;
12
- set fillColor(value: string | OptionsColor | undefined);
13
10
  load(data?: RecursivePartial<IMoveTrail>): void;
14
11
  }
@@ -1,7 +1,7 @@
1
- import type { IMoveTrailFill } from "../../../Interfaces/Particles/Move/IMoveTrailFill";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import { OptionsColor } from "../../OptionsColor";
4
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { IMoveTrailFill } from "../../../Interfaces/Particles/Move/IMoveTrailFill.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import { OptionsColor } from "../../OptionsColor.js";
4
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
5
5
  export declare class MoveTrailFill implements IMoveTrailFill, IOptionLoader<IMoveTrailFill> {
6
6
  color?: OptionsColor;
7
7
  image?: string;
@@ -1,8 +1,8 @@
1
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
2
- import type { IOutModes } from "../../../Interfaces/Particles/Move/IOutModes";
3
- import { OutMode } from "../../../../Enums/Modes/OutMode";
4
- import type { OutModeAlt } from "../../../../Enums/Modes/OutMode";
5
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
2
+ import type { IOutModes } from "../../../Interfaces/Particles/Move/IOutModes.js";
3
+ import { OutMode } from "../../../../Enums/Modes/OutMode.js";
4
+ import type { OutModeAlt } from "../../../../Enums/Modes/OutMode.js";
5
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
6
6
  export declare class OutModes implements IOutModes, IOptionLoader<IOutModes> {
7
7
  bottom?: OutMode | keyof typeof OutMode | OutModeAlt;
8
8
  default: OutMode | keyof typeof OutMode | OutModeAlt;
@@ -1,8 +1,8 @@
1
- import type { IMovePath } from "../../../../Interfaces/Particles/Move/Path/IMovePath";
2
- import type { IOptionLoader } from "../../../../Interfaces/IOptionLoader";
3
- import type { PathOptions } from "../../../../../Types/PathOptions";
4
- import type { RecursivePartial } from "../../../../../Types/RecursivePartial";
5
- import { ValueWithRandom } from "../../../ValueWithRandom";
1
+ import type { IMovePath } from "../../../../Interfaces/Particles/Move/Path/IMovePath.js";
2
+ import type { IOptionLoader } from "../../../../Interfaces/IOptionLoader.js";
3
+ import type { PathOptions } from "../../../../../Types/PathOptions.js";
4
+ import type { RecursivePartial } from "../../../../../Types/RecursivePartial.js";
5
+ import { ValueWithRandom } from "../../../ValueWithRandom.js";
6
6
  export declare class MovePath implements IMovePath, IOptionLoader<IMovePath> {
7
7
  clamp: boolean;
8
8
  delay: ValueWithRandom;
@@ -1,8 +1,8 @@
1
- import type { ICoordinatesWithMode } from "../../../../Core/Interfaces/ICoordinates";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import type { ISpin } from "../../../Interfaces/Particles/Move/ISpin";
4
- import type { RangeValue } from "../../../../Types/RangeValue";
5
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { ICoordinatesWithMode } from "../../../../Core/Interfaces/ICoordinates.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import type { ISpin } from "../../../Interfaces/Particles/Move/ISpin.js";
4
+ import type { RangeValue } from "../../../../Types/RangeValue.js";
5
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
6
6
  export declare class Spin implements ISpin, IOptionLoader<ISpin> {
7
7
  acceleration: RangeValue;
8
8
  enable: boolean;
@@ -1,16 +1,10 @@
1
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
2
- import type { IParticlesDensity } from "../../../Interfaces/Particles/Number/IParticlesDensity";
3
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
2
+ import type { IParticlesDensity } from "../../../Interfaces/Particles/Number/IParticlesDensity.js";
3
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
4
4
  export declare class ParticlesDensity implements IParticlesDensity, IOptionLoader<IParticlesDensity> {
5
5
  enable: boolean;
6
6
  height: number;
7
7
  width: number;
8
8
  constructor();
9
- get area(): number;
10
- set area(value: number);
11
- get factor(): number;
12
- set factor(value: number);
13
- get value_area(): number;
14
- set value_area(value: number);
15
9
  load(data?: RecursivePartial<IParticlesDensity>): void;
16
10
  }
@@ -1,13 +1,11 @@
1
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
2
- import type { IParticlesNumber } from "../../../Interfaces/Particles/Number/IParticlesNumber";
3
- import { ParticlesDensity } from "./ParticlesDensity";
4
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
2
+ import type { IParticlesNumber } from "../../../Interfaces/Particles/Number/IParticlesNumber.js";
3
+ import { ParticlesDensity } from "./ParticlesDensity.js";
4
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
5
5
  export declare class ParticlesNumber implements IParticlesNumber, IOptionLoader<IParticlesNumber> {
6
6
  density: ParticlesDensity;
7
7
  limit: number;
8
8
  value: number;
9
9
  constructor();
10
- get max(): number;
11
- set max(value: number);
12
10
  load(data?: RecursivePartial<IParticlesNumber>): void;
13
11
  }
@@ -1,10 +1,10 @@
1
- import type { IOpacity } from "../../../Interfaces/Particles/Opacity/IOpacity";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import { OpacityAnimation } from "./OpacityAnimation";
4
- import { RangedAnimationValueWithRandom } from "../../ValueWithRandom";
5
- export declare class Opacity extends RangedAnimationValueWithRandom implements IOpacity, IOptionLoader<IOpacity> {
1
+ import type { IOpacity } from "../../../Interfaces/Particles/Opacity/IOpacity.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import { OpacityAnimation } from "./OpacityAnimation.js";
4
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
5
+ import { ValueWithRandom } from "../../ValueWithRandom.js";
6
+ export declare class Opacity extends ValueWithRandom implements IOpacity, IOptionLoader<IOpacity> {
6
7
  animation: OpacityAnimation;
7
8
  constructor();
8
- get anim(): OpacityAnimation;
9
- set anim(value: OpacityAnimation);
9
+ load(data?: RecursivePartial<IOpacity>): void;
10
10
  }
@@ -1,12 +1,10 @@
1
- import { DestroyType } from "../../../../Enums/Types/DestroyType";
2
- import type { IOpacityAnimation } from "../../../Interfaces/Particles/Opacity/IOpacityAnimation";
3
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
4
- import { RangedAnimationOptions } from "../../AnimationOptions";
5
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import { DestroyType } from "../../../../Enums/Types/DestroyType.js";
2
+ import type { IOpacityAnimation } from "../../../Interfaces/Particles/Opacity/IOpacityAnimation.js";
3
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
4
+ import { RangedAnimationOptions } from "../../AnimationOptions.js";
5
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
6
6
  export declare class OpacityAnimation extends RangedAnimationOptions implements IOpacityAnimation, IOptionLoader<IOpacityAnimation> {
7
7
  destroy: DestroyType | keyof typeof DestroyType;
8
8
  constructor();
9
- get opacity_min(): number | undefined;
10
- set opacity_min(value: number | undefined);
11
9
  load(data?: RecursivePartial<IOpacityAnimation>): void;
12
10
  }
@@ -1,22 +1,22 @@
1
- import { AnimatableColor } from "../AnimatableColor";
2
- import { Collisions } from "./Collisions/Collisions";
3
- import type { Container } from "../../../Core/Container";
4
- import type { Engine } from "../../../engine";
5
- import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity";
6
- import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
7
- import type { IParticlesOptions } from "../../Interfaces/Particles/IParticlesOptions";
8
- import { Move } from "./Move/Move";
9
- import { Opacity } from "./Opacity/Opacity";
10
- import { ParticlesBounce } from "./Bounce/ParticlesBounce";
11
- import type { ParticlesGroups } from "../../../Types/ParticlesGroups";
12
- import { ParticlesNumber } from "./Number/ParticlesNumber";
13
- import type { RecursivePartial } from "../../../Types/RecursivePartial";
14
- import { Shadow } from "./Shadow";
15
- import { Shape } from "./Shape/Shape";
16
- import type { SingleOrMultiple } from "../../../Types/SingleOrMultiple";
17
- import { Size } from "./Size/Size";
18
- import { Stroke } from "./Stroke";
19
- import { ZIndex } from "./ZIndex/ZIndex";
1
+ import { AnimatableColor } from "../AnimatableColor.js";
2
+ import { Collisions } from "./Collisions/Collisions.js";
3
+ import type { Container } from "../../../Core/Container.js";
4
+ import type { Engine } from "../../../Core/Engine.js";
5
+ import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity.js";
6
+ import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
7
+ import type { IParticlesOptions } from "../../Interfaces/Particles/IParticlesOptions.js";
8
+ import { Move } from "./Move/Move.js";
9
+ import { Opacity } from "./Opacity/Opacity.js";
10
+ import { ParticlesBounce } from "./Bounce/ParticlesBounce.js";
11
+ import type { ParticlesGroups } from "../../../Types/ParticlesGroups.js";
12
+ import { ParticlesNumber } from "./Number/ParticlesNumber.js";
13
+ import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
14
+ import { Shadow } from "./Shadow.js";
15
+ import { Shape } from "./Shape/Shape.js";
16
+ import type { SingleOrMultiple } from "../../../Types/SingleOrMultiple.js";
17
+ import { Size } from "./Size/Size.js";
18
+ import { Stroke } from "./Stroke.js";
19
+ import { ZIndex } from "./ZIndex/ZIndex.js";
20
20
  export declare class ParticlesOptions implements IParticlesOptions, IOptionLoader<IParticlesOptions> {
21
21
  [name: string]: unknown;
22
22
  bounce: ParticlesBounce;
@@ -1,8 +1,8 @@
1
- import type { ICoordinates } from "../../../Core/Interfaces/ICoordinates";
2
- import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
3
- import type { IShadow } from "../../Interfaces/Particles/IShadow";
4
- import { OptionsColor } from "../OptionsColor";
5
- import type { RecursivePartial } from "../../../Types/RecursivePartial";
1
+ import type { ICoordinates } from "../../../Core/Interfaces/ICoordinates.js";
2
+ import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
3
+ import type { IShadow } from "../../Interfaces/Particles/IShadow.js";
4
+ import { OptionsColor } from "../OptionsColor.js";
5
+ import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
6
6
  export declare class Shadow implements IShadow, IOptionLoader<IShadow> {
7
7
  blur: number;
8
8
  color: OptionsColor;
@@ -1,8 +1,8 @@
1
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
2
- import type { IShape } from "../../../Interfaces/Particles/Shape/IShape";
3
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
4
- import type { ShapeData } from "../../../../Types/ShapeData";
5
- import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
1
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
2
+ import type { IShape } from "../../../Interfaces/Particles/Shape/IShape.js";
3
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
4
+ import type { ShapeData } from "../../../../Types/ShapeData.js";
5
+ import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
6
6
  export declare class Shape implements IShape, IOptionLoader<IShape> {
7
7
  close: boolean;
8
8
  fill: boolean;
@@ -1,10 +1,10 @@
1
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
2
- import type { ISize } from "../../../Interfaces/Particles/Size/ISize";
3
- import { RangedAnimationValueWithRandom } from "../../ValueWithRandom";
4
- import { SizeAnimation } from "./SizeAnimation";
5
- export declare class Size extends RangedAnimationValueWithRandom implements ISize, IOptionLoader<ISize> {
1
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
2
+ import type { ISize } from "../../../Interfaces/Particles/Size/ISize.js";
3
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
4
+ import { SizeAnimation } from "./SizeAnimation.js";
5
+ import { ValueWithRandom } from "../../ValueWithRandom.js";
6
+ export declare class Size extends ValueWithRandom implements ISize, IOptionLoader<ISize> {
6
7
  animation: SizeAnimation;
7
8
  constructor();
8
- get anim(): SizeAnimation;
9
- set anim(value: SizeAnimation);
9
+ load(data?: RecursivePartial<ISize>): void;
10
10
  }
@@ -1,12 +1,10 @@
1
- import { DestroyType } from "../../../../Enums/Types/DestroyType";
2
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
3
- import type { ISizeAnimation } from "../../../Interfaces/Particles/Size/ISizeAnimation";
4
- import { RangedAnimationOptions } from "../../AnimationOptions";
5
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
1
+ import { DestroyType } from "../../../../Enums/Types/DestroyType.js";
2
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
3
+ import type { ISizeAnimation } from "../../../Interfaces/Particles/Size/ISizeAnimation.js";
4
+ import { RangedAnimationOptions } from "../../AnimationOptions.js";
5
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
6
6
  export declare class SizeAnimation extends RangedAnimationOptions implements ISizeAnimation, IOptionLoader<ISizeAnimation> {
7
7
  destroy: DestroyType | keyof typeof DestroyType;
8
8
  constructor();
9
- get size_min(): number | undefined;
10
- set size_min(value: number | undefined);
11
9
  load(data?: RecursivePartial<ISizeAnimation>): void;
12
10
  }
@@ -1,8 +1,8 @@
1
- import { AnimatableColor } from "../AnimatableColor";
2
- import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
3
- import type { IStroke } from "../../Interfaces/Particles/IStroke";
4
- import type { RangeValue } from "../../../Types/RangeValue";
5
- import type { RecursivePartial } from "../../../Types/RecursivePartial";
1
+ import { AnimatableColor } from "../AnimatableColor.js";
2
+ import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
3
+ import type { IStroke } from "../../Interfaces/Particles/IStroke.js";
4
+ import type { RangeValue } from "../../../Types/RangeValue.js";
5
+ import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
6
6
  export declare class Stroke implements IStroke, IOptionLoader<IStroke> {
7
7
  color?: AnimatableColor;
8
8
  opacity?: RangeValue;
@@ -1,7 +1,7 @@
1
- import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
2
- import type { IZIndex } from "../../../Interfaces/Particles/ZIndex/IZIndex";
3
- import type { RecursivePartial } from "../../../../Types/RecursivePartial";
4
- import { ValueWithRandom } from "../../ValueWithRandom";
1
+ import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
2
+ import type { IZIndex } from "../../../Interfaces/Particles/ZIndex/IZIndex.js";
3
+ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
4
+ import { ValueWithRandom } from "../../ValueWithRandom.js";
5
5
  export declare class ZIndex extends ValueWithRandom implements IZIndex, IOptionLoader<IZIndex> {
6
6
  opacityRate: number;
7
7
  sizeRate: number;
@@ -1,6 +1,6 @@
1
- import type { IOptionLoader } from "../Interfaces/IOptionLoader";
2
- import type { IRandom } from "../Interfaces/IRandom";
3
- import type { RecursivePartial } from "../../Types/RecursivePartial";
1
+ import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
2
+ import type { IRandom } from "../Interfaces/IRandom.js";
3
+ import type { RecursivePartial } from "../../Types/RecursivePartial.js";
4
4
  export declare class Random implements IRandom, IOptionLoader<IRandom> {
5
5
  enable: boolean;
6
6
  minimumValue: number;
@@ -1,12 +1,12 @@
1
- import type { IOptionLoader } from "../Interfaces/IOptionLoader";
2
- import type { IResponsive } from "../Interfaces/IResponsive";
3
- import type { ISourceOptions } from "../../Types/ISourceOptions";
4
- import type { RecursivePartial } from "../../Types/RecursivePartial";
5
- import { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode";
1
+ import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
2
+ import type { IOptions } from "../Interfaces/IOptions.js";
3
+ import type { IResponsive } from "../Interfaces/IResponsive.js";
4
+ import type { RecursivePartial } from "../../Types/RecursivePartial.js";
5
+ import { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode.js";
6
6
  export declare class Responsive implements IResponsive, IOptionLoader<IResponsive> {
7
7
  maxWidth: number;
8
- mode: ResponsiveMode;
9
- options: ISourceOptions;
8
+ mode: ResponsiveMode | keyof typeof ResponsiveMode;
9
+ options: RecursivePartial<IOptions>;
10
10
  constructor();
11
11
  load(data?: RecursivePartial<IResponsive>): void;
12
12
  }
@@ -1,12 +1,12 @@
1
- import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
2
- import type { ISourceOptions } from "../../../Types/ISourceOptions";
3
- import type { ITheme } from "../../Interfaces/Theme/ITheme";
4
- import type { RecursivePartial } from "../../../Types/RecursivePartial";
5
- import { ThemeDefault } from "./ThemeDefault";
1
+ import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
2
+ import type { IOptions } from "../../Interfaces/IOptions.js";
3
+ import type { ITheme } from "../../Interfaces/Theme/ITheme.js";
4
+ import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
5
+ import { ThemeDefault } from "./ThemeDefault.js";
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,7 +1,7 @@
1
- import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
2
- import type { IThemeDefault } from "../../Interfaces/Theme/IThemeDefault";
3
- import type { RecursivePartial } from "../../../Types/RecursivePartial";
4
- import { ThemeMode } from "../../../Enums/Modes/ThemeMode";
1
+ import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
2
+ import type { IThemeDefault } from "../../Interfaces/Theme/IThemeDefault.js";
3
+ import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
4
+ import { ThemeMode } from "../../../Enums/Modes/ThemeMode.js";
5
5
  export declare class ThemeDefault implements IThemeDefault, IOptionLoader<IThemeDefault> {
6
6
  auto: boolean;
7
7
  mode: ThemeMode | keyof typeof ThemeMode;
@@ -1,11 +1,9 @@
1
- import type { IAnimationValueWithRandom, IRangedAnimationValueWithRandom, IValueWithRandom } from "../Interfaces/IValueWithRandom";
2
- import { AnimationOptions } from "./AnimationOptions";
3
- import type { IOptionLoader } from "../Interfaces/IOptionLoader";
4
- import type { ISize } from "../Interfaces/Particles/Size/ISize";
5
- import { Random } from "./Random";
6
- import type { RangeValue } from "../../Types/RangeValue";
7
- import { RangedAnimationOptions } from "./AnimationOptions";
8
- import type { RecursivePartial } from "../../Types/RecursivePartial";
1
+ import { AnimationOptions, RangedAnimationOptions } from "./AnimationOptions.js";
2
+ import type { IAnimationValueWithRandom, IRangedAnimationValueWithRandom, IValueWithRandom } from "../Interfaces/IValueWithRandom.js";
3
+ import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
4
+ import { Random } from "./Random.js";
5
+ import type { RangeValue } from "../../Types/RangeValue.js";
6
+ import type { RecursivePartial } from "../../Types/RecursivePartial.js";
9
7
  export declare class ValueWithRandom implements IValueWithRandom, IOptionLoader<IValueWithRandom> {
10
8
  random: Random;
11
9
  value: RangeValue;
@@ -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,4 +1,4 @@
1
- import type { IOptionsColor } from "../IOptionsColor";
1
+ import type { IOptionsColor } from "../IOptionsColor.js";
2
2
  export interface IBackground {
3
3
  color: string | IOptionsColor;
4
4
  image: string;
@@ -1,5 +1,5 @@
1
- import type { IBackgroundMaskCover } from "./IBackgroundMaskCover";
2
- import type { IColor } from "../../../Core/Interfaces/Colors";
1
+ import type { IBackgroundMaskCover } from "./IBackgroundMaskCover.js";
2
+ import type { IColor } from "../../../Core/Interfaces/Colors.js";
3
3
  export interface IBackgroundMask {
4
4
  composite: GlobalCompositeOperation;
5
5
  cover: IBackgroundMaskCover | IColor | string;
@@ -1,4 +1,4 @@
1
- import type { IOptionsColor } from "../IOptionsColor";
1
+ import type { IOptionsColor } from "../IOptionsColor.js";
2
2
  export interface IBackgroundMaskCover {
3
3
  color: string | IOptionsColor;
4
4
  opacity: number;
@@ -1,4 +1,4 @@
1
- import type { IAnimation } from "./IAnimation";
1
+ import type { IAnimation } from "./IAnimation.js";
2
2
  export interface IAnimatable<T extends IAnimation> {
3
3
  animation: T;
4
4
  }