@tsparticles/engine 4.0.0-alpha.2 → 4.0.0-alpha.20
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.
- package/515.min.js +1 -0
- package/README.md +2 -5
- package/browser/Core/Canvas.js +238 -154
- package/browser/Core/Container.js +111 -227
- package/browser/Core/Engine.js +84 -124
- package/browser/Core/Particle.js +236 -140
- package/browser/Core/Particles.js +212 -123
- package/browser/Core/Retina.js +5 -0
- package/browser/Core/Utils/Constants.js +2 -2
- package/browser/Core/Utils/EventListeners.js +69 -310
- package/browser/Core/Utils/Point.js +2 -0
- package/browser/Core/Utils/QuadTree.js +13 -8
- package/browser/Core/Utils/Ranges.js +4 -0
- package/browser/Core/Utils/Vectors.js +7 -4
- package/browser/Enums/Types/EasingType.js +18 -3
- package/browser/Options/Classes/AnimatableColor.js +1 -0
- package/browser/Options/Classes/AnimationOptions.js +8 -0
- package/browser/Options/Classes/Background/Background.js +6 -0
- package/browser/Options/Classes/ColorAnimation.js +1 -0
- package/browser/Options/Classes/FullScreen/FullScreen.js +2 -0
- package/browser/Options/Classes/HslAnimation.js +3 -5
- package/browser/Options/Classes/Options.js +32 -78
- package/browser/Options/Classes/OptionsColor.js +1 -0
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
- package/browser/Options/Classes/Particles/Effect/Effect.js +4 -0
- package/browser/Options/Classes/Particles/Move/Move.js +18 -0
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +2 -0
- package/browser/Options/Classes/Particles/Move/MoveAttract.js +3 -0
- package/browser/Options/Classes/Particles/Move/MoveCenter.js +4 -0
- package/browser/Options/Classes/Particles/Move/MoveGravity.js +4 -0
- package/browser/Options/Classes/Particles/Move/OutModes.js +5 -0
- package/browser/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
- package/browser/Options/Classes/Particles/Move/Spin.js +3 -0
- package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +1 -0
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.js +19 -11
- package/browser/Options/Classes/Particles/Shape/Shape.js +4 -0
- package/browser/Options/Classes/Particles/Size/Size.js +1 -0
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
- package/browser/Options/Classes/Particles/Stroke.js +3 -0
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
- package/{esm/Options/Classes/Interactivity/Events → browser/Options/Classes}/ResizeEvent.js +3 -1
- package/browser/Options/Classes/ValueWithRandom.js +3 -4
- package/browser/Utils/CanvasUtils.js +31 -106
- package/browser/Utils/ColorUtils.js +17 -2
- package/browser/Utils/EventDispatcher.js +1 -0
- package/browser/Utils/MathUtils.js +3 -2
- package/browser/Utils/Utils.js +53 -44
- package/browser/exports.js +1 -21
- package/cjs/Core/Canvas.js +238 -154
- package/cjs/Core/Container.js +111 -227
- package/cjs/Core/Engine.js +84 -124
- package/cjs/Core/Particle.js +236 -140
- package/cjs/Core/Particles.js +212 -123
- package/cjs/Core/Retina.js +5 -0
- package/cjs/Core/Utils/Constants.js +2 -2
- package/cjs/Core/Utils/EventListeners.js +69 -310
- package/cjs/Core/Utils/Point.js +2 -0
- package/cjs/Core/Utils/QuadTree.js +13 -8
- package/cjs/Core/Utils/Ranges.js +4 -0
- package/cjs/Core/Utils/Vectors.js +7 -4
- package/cjs/Enums/Types/EasingType.js +18 -3
- package/cjs/Options/Classes/AnimatableColor.js +1 -0
- package/cjs/Options/Classes/AnimationOptions.js +8 -0
- package/cjs/Options/Classes/Background/Background.js +6 -0
- package/cjs/Options/Classes/ColorAnimation.js +1 -0
- package/cjs/Options/Classes/FullScreen/FullScreen.js +2 -0
- package/cjs/Options/Classes/HslAnimation.js +3 -5
- package/cjs/Options/Classes/Options.js +32 -78
- package/cjs/Options/Classes/OptionsColor.js +1 -0
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
- package/cjs/Options/Classes/Particles/Effect/Effect.js +4 -0
- package/cjs/Options/Classes/Particles/Move/Move.js +18 -0
- package/cjs/Options/Classes/Particles/Move/MoveAngle.js +2 -0
- package/cjs/Options/Classes/Particles/Move/MoveAttract.js +3 -0
- package/cjs/Options/Classes/Particles/Move/MoveCenter.js +4 -0
- package/cjs/Options/Classes/Particles/Move/MoveGravity.js +4 -0
- package/cjs/Options/Classes/Particles/Move/OutModes.js +5 -0
- package/cjs/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
- package/cjs/Options/Classes/Particles/Move/Spin.js +3 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +1 -0
- package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +19 -11
- package/cjs/Options/Classes/Particles/Shape/Shape.js +4 -0
- package/cjs/Options/Classes/Particles/Size/Size.js +1 -0
- package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
- package/cjs/Options/Classes/Particles/Stroke.js +3 -0
- package/cjs/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
- package/cjs/Options/Classes/{Interactivity/Events/ResizeEvent.js → ResizeEvent.js} +3 -1
- package/cjs/Options/Classes/ValueWithRandom.js +3 -4
- package/cjs/Utils/CanvasUtils.js +31 -106
- package/cjs/Utils/ColorUtils.js +17 -2
- package/cjs/Utils/EventDispatcher.js +1 -0
- package/cjs/Utils/MathUtils.js +3 -2
- package/cjs/Utils/Utils.js +53 -44
- package/cjs/exports.js +1 -21
- package/dist_browser_Core_Container_js.js +8 -18
- package/esm/Core/Canvas.js +238 -154
- package/esm/Core/Container.js +111 -227
- package/esm/Core/Engine.js +84 -124
- package/esm/Core/Particle.js +236 -140
- package/esm/Core/Particles.js +212 -123
- package/esm/Core/Retina.js +5 -0
- package/esm/Core/Utils/Constants.js +2 -2
- package/esm/Core/Utils/EventListeners.js +69 -310
- package/esm/Core/Utils/Point.js +2 -0
- package/esm/Core/Utils/QuadTree.js +13 -8
- package/esm/Core/Utils/Ranges.js +4 -0
- package/esm/Core/Utils/Vectors.js +7 -4
- package/esm/Enums/Types/EasingType.js +18 -3
- package/esm/Options/Classes/AnimatableColor.js +1 -0
- package/esm/Options/Classes/AnimationOptions.js +8 -0
- package/esm/Options/Classes/Background/Background.js +6 -0
- package/esm/Options/Classes/ColorAnimation.js +1 -0
- package/esm/Options/Classes/FullScreen/FullScreen.js +2 -0
- package/esm/Options/Classes/HslAnimation.js +3 -5
- package/esm/Options/Classes/Options.js +32 -78
- package/esm/Options/Classes/OptionsColor.js +1 -0
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
- package/esm/Options/Classes/Particles/Effect/Effect.js +4 -0
- package/esm/Options/Classes/Particles/Move/Move.js +18 -0
- package/esm/Options/Classes/Particles/Move/MoveAngle.js +2 -0
- package/esm/Options/Classes/Particles/Move/MoveAttract.js +3 -0
- package/esm/Options/Classes/Particles/Move/MoveCenter.js +4 -0
- package/esm/Options/Classes/Particles/Move/MoveGravity.js +4 -0
- package/esm/Options/Classes/Particles/Move/OutModes.js +5 -0
- package/esm/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
- package/esm/Options/Classes/Particles/Move/Spin.js +3 -0
- package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
- package/esm/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +1 -0
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
- package/esm/Options/Classes/Particles/ParticlesOptions.js +19 -11
- package/esm/Options/Classes/Particles/Shape/Shape.js +4 -0
- package/esm/Options/Classes/Particles/Size/Size.js +1 -0
- package/esm/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
- package/esm/Options/Classes/Particles/Stroke.js +3 -0
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
- package/{browser/Options/Classes/Interactivity/Events → esm/Options/Classes}/ResizeEvent.js +3 -1
- package/esm/Options/Classes/ValueWithRandom.js +3 -4
- package/esm/Utils/CanvasUtils.js +31 -106
- package/esm/Utils/ColorUtils.js +17 -2
- package/esm/Utils/EventDispatcher.js +1 -0
- package/esm/Utils/MathUtils.js +3 -2
- package/esm/Utils/Utils.js +53 -44
- package/esm/exports.js +1 -21
- package/package.json +1 -1
- package/report.html +3 -3
- package/tsparticles.engine.js +67 -247
- package/tsparticles.engine.min.js +2 -2
- package/types/Core/Canvas.d.ts +15 -4
- package/types/Core/Container.d.ts +5 -20
- package/types/Core/Engine.d.ts +18 -32
- package/types/Core/Interfaces/IColorManager.d.ts +0 -1
- package/types/Core/Interfaces/IContainerPlugin.d.ts +12 -2
- package/types/Core/Interfaces/IDrawParticleParams.d.ts +1 -1
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +1 -2
- package/types/Core/Interfaces/IParticleOpacityData.d.ts +4 -0
- package/types/Core/Interfaces/IParticleRotateData.d.ts +4 -0
- package/types/Core/Interfaces/IParticleTransformValues.d.ts +4 -4
- package/types/Core/Interfaces/IParticleUpdater.d.ts +1 -1
- package/types/Core/Interfaces/IPlugin.d.ts +5 -1
- package/types/Core/Interfaces/IShapeDrawer.d.ts +0 -1
- package/types/Core/Particle.d.ts +13 -2
- package/types/Core/Particles.d.ts +17 -8
- package/types/Core/Utils/Constants.d.ts +2 -2
- package/types/Core/Utils/EventListeners.d.ts +0 -14
- package/types/Enums/Types/EasingType.d.ts +20 -5
- package/types/Options/Classes/HslAnimation.d.ts +3 -4
- package/types/Options/Classes/Options.d.ts +2 -11
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +0 -2
- package/types/Options/Classes/ResizeEvent.d.ts +9 -0
- package/types/Options/Classes/ValueWithRandom.d.ts +0 -1
- package/types/Options/Interfaces/IOptions.d.ts +2 -8
- package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +0 -3
- package/types/Types/CustomEventListener.d.ts +1 -1
- package/types/Types/EngineInitializers.d.ts +19 -0
- package/types/Utils/CanvasUtils.d.ts +6 -25
- package/types/Utils/EventDispatcher.d.ts +1 -1
- package/types/Utils/Utils.d.ts +5 -7
- package/types/export-types.d.ts +3 -19
- package/types/exports.d.ts +1 -21
- package/umd/Core/Canvas.js +236 -152
- package/umd/Core/Container.js +111 -227
- package/umd/Core/Engine.js +83 -123
- package/umd/Core/Particle.js +236 -140
- package/umd/Core/Particles.js +213 -124
- package/umd/Core/Retina.js +5 -0
- package/umd/Core/Utils/Constants.js +3 -3
- package/umd/Core/Utils/EventListeners.js +69 -310
- package/umd/Core/Utils/Point.js +2 -0
- package/umd/Core/Utils/QuadTree.js +13 -8
- package/umd/Core/Utils/Ranges.js +4 -0
- package/umd/Core/Utils/Vectors.js +7 -4
- package/umd/Enums/Types/EasingType.js +18 -3
- package/umd/Options/Classes/AnimatableColor.js +1 -0
- package/umd/Options/Classes/AnimationOptions.js +8 -0
- package/umd/Options/Classes/Background/Background.js +6 -0
- package/umd/Options/Classes/ColorAnimation.js +1 -0
- package/umd/Options/Classes/FullScreen/FullScreen.js +2 -0
- package/umd/Options/Classes/HslAnimation.js +3 -5
- package/umd/Options/Classes/Options.js +32 -78
- package/umd/Options/Classes/OptionsColor.js +1 -0
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
- package/umd/Options/Classes/Particles/Effect/Effect.js +4 -0
- package/umd/Options/Classes/Particles/Move/Move.js +18 -0
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +2 -0
- package/umd/Options/Classes/Particles/Move/MoveAttract.js +3 -0
- package/umd/Options/Classes/Particles/Move/MoveCenter.js +4 -0
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +4 -0
- package/umd/Options/Classes/Particles/Move/OutModes.js +5 -0
- package/umd/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
- package/umd/Options/Classes/Particles/Move/Spin.js +3 -0
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +1 -0
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
- package/umd/Options/Classes/Particles/ParticlesOptions.js +19 -11
- package/umd/Options/Classes/Particles/Shape/Shape.js +4 -0
- package/umd/Options/Classes/Particles/Size/Size.js +1 -0
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
- package/umd/Options/Classes/Particles/Stroke.js +3 -0
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
- package/umd/Options/Classes/{Interactivity/Events/ResizeEvent.js → ResizeEvent.js} +4 -2
- package/umd/Options/Classes/ValueWithRandom.js +3 -4
- package/umd/Utils/CanvasUtils.js +30 -108
- package/umd/Utils/ColorUtils.js +17 -2
- package/umd/Utils/EventDispatcher.js +1 -0
- package/umd/Utils/MathUtils.js +3 -2
- package/umd/Utils/Utils.js +55 -48
- package/umd/exports.js +2 -22
- package/638.min.js +0 -2
- package/638.min.js.LICENSE.txt +0 -1
- package/browser/Core/Utils/ExternalInteractorBase.js +0 -7
- package/browser/Core/Utils/InteractionManager.js +0 -60
- package/browser/Core/Utils/ParticlesInteractorBase.js +0 -7
- package/browser/Enums/InteractivityDetect.js +0 -6
- package/browser/Enums/Modes/ResponsiveMode.js +0 -5
- package/browser/Enums/Modes/ThemeMode.js +0 -6
- package/browser/Enums/Types/DivType.js +0 -5
- package/browser/Enums/Types/InteractorType.js +0 -5
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +0 -18
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +0 -27
- package/browser/Options/Classes/Interactivity/Events/Events.js +0 -30
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +0 -21
- package/browser/Options/Classes/Interactivity/Events/Parallax.js +0 -22
- package/browser/Options/Classes/Interactivity/Interactivity.js +0 -22
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +0 -25
- package/browser/Options/Classes/ManualParticle.js +0 -21
- package/browser/Options/Classes/Responsive.js +0 -29
- package/browser/Options/Classes/Theme/Theme.js +0 -21
- package/browser/Options/Classes/Theme/ThemeDefault.js +0 -23
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.js +0 -1
- package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -1
- package/browser/Options/Interfaces/Interactivity/Events/IParallax.js +0 -1
- package/browser/Options/Interfaces/Interactivity/IInteractivity.js +0 -1
- package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -1
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.js +0 -1
- package/browser/Options/Interfaces/Theme/ITheme.js +0 -1
- package/browser/Options/Interfaces/Theme/IThemeDefault.js +0 -1
- package/cjs/Core/Interfaces/IContainerInteractivity.js +0 -1
- package/cjs/Core/Interfaces/IExternalInteractor.js +0 -1
- package/cjs/Core/Interfaces/IInteractor.js +0 -1
- package/cjs/Core/Interfaces/IMouseData.js +0 -1
- package/cjs/Core/Interfaces/IParticlesInteractor.js +0 -1
- package/cjs/Core/Utils/ExternalInteractorBase.js +0 -7
- package/cjs/Core/Utils/InteractionManager.js +0 -60
- package/cjs/Core/Utils/ParticlesInteractorBase.js +0 -7
- package/cjs/Enums/InteractivityDetect.js +0 -6
- package/cjs/Enums/Modes/ResponsiveMode.js +0 -5
- package/cjs/Enums/Modes/ThemeMode.js +0 -6
- package/cjs/Enums/Types/DivType.js +0 -5
- package/cjs/Enums/Types/InteractorType.js +0 -5
- package/cjs/Options/Classes/Interactivity/Events/ClickEvent.js +0 -18
- package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +0 -27
- package/cjs/Options/Classes/Interactivity/Events/Events.js +0 -30
- package/cjs/Options/Classes/Interactivity/Events/HoverEvent.js +0 -21
- package/cjs/Options/Classes/Interactivity/Events/Parallax.js +0 -22
- package/cjs/Options/Classes/Interactivity/Interactivity.js +0 -22
- package/cjs/Options/Classes/Interactivity/Modes/Modes.js +0 -25
- package/cjs/Options/Classes/ManualParticle.js +0 -21
- package/cjs/Options/Classes/Responsive.js +0 -29
- package/cjs/Options/Classes/Theme/Theme.js +0 -21
- package/cjs/Options/Classes/Theme/ThemeDefault.js +0 -23
- package/cjs/Options/Interfaces/IManualParticle.js +0 -1
- package/cjs/Options/Interfaces/IResponsive.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/Events/IClickEvent.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/Events/IDivEvent.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/Events/IEvents.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/Events/IParallax.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/IInteractivity.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -1
- package/cjs/Options/Interfaces/Interactivity/Modes/IModes.js +0 -1
- package/cjs/Options/Interfaces/Theme/ITheme.js +0 -1
- package/cjs/Options/Interfaces/Theme/IThemeDefault.js +0 -1
- package/esm/Core/Interfaces/IContainerInteractivity.js +0 -1
- package/esm/Core/Interfaces/IExternalInteractor.js +0 -1
- package/esm/Core/Interfaces/IInteractor.js +0 -1
- package/esm/Core/Interfaces/IMouseData.js +0 -1
- package/esm/Core/Interfaces/IParticlesInteractor.js +0 -1
- package/esm/Core/Utils/ExternalInteractorBase.js +0 -7
- package/esm/Core/Utils/InteractionManager.js +0 -60
- package/esm/Core/Utils/ParticlesInteractorBase.js +0 -7
- package/esm/Enums/InteractivityDetect.js +0 -6
- package/esm/Enums/Modes/ResponsiveMode.js +0 -5
- package/esm/Enums/Modes/ThemeMode.js +0 -6
- package/esm/Enums/Types/DivType.js +0 -5
- package/esm/Enums/Types/InteractorType.js +0 -5
- package/esm/Options/Classes/Interactivity/Events/ClickEvent.js +0 -18
- package/esm/Options/Classes/Interactivity/Events/DivEvent.js +0 -27
- package/esm/Options/Classes/Interactivity/Events/Events.js +0 -30
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.js +0 -21
- package/esm/Options/Classes/Interactivity/Events/Parallax.js +0 -22
- package/esm/Options/Classes/Interactivity/Interactivity.js +0 -22
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +0 -25
- package/esm/Options/Classes/ManualParticle.js +0 -21
- package/esm/Options/Classes/Responsive.js +0 -29
- package/esm/Options/Classes/Theme/Theme.js +0 -21
- package/esm/Options/Classes/Theme/ThemeDefault.js +0 -23
- package/esm/Options/Interfaces/IManualParticle.js +0 -1
- package/esm/Options/Interfaces/IResponsive.js +0 -1
- package/esm/Options/Interfaces/Interactivity/Events/IClickEvent.js +0 -1
- package/esm/Options/Interfaces/Interactivity/Events/IDivEvent.js +0 -1
- package/esm/Options/Interfaces/Interactivity/Events/IEvents.js +0 -1
- package/esm/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -1
- package/esm/Options/Interfaces/Interactivity/Events/IParallax.js +0 -1
- package/esm/Options/Interfaces/Interactivity/IInteractivity.js +0 -1
- package/esm/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -1
- package/esm/Options/Interfaces/Interactivity/Modes/IModes.js +0 -1
- package/esm/Options/Interfaces/Theme/ITheme.js +0 -1
- package/esm/Options/Interfaces/Theme/IThemeDefault.js +0 -1
- package/tsparticles.engine.min.js.LICENSE.txt +0 -1
- package/types/Core/Interfaces/IContainerInteractivity.d.ts +0 -6
- package/types/Core/Interfaces/IExternalInteractor.d.ts +0 -12
- package/types/Core/Interfaces/IInteractor.d.ts +0 -16
- package/types/Core/Interfaces/IMouseData.d.ts +0 -9
- package/types/Core/Interfaces/IParticlesInteractor.d.ts +0 -7
- package/types/Core/Utils/ExternalInteractorBase.d.ts +0 -15
- package/types/Core/Utils/InteractionManager.d.ts +0 -17
- package/types/Core/Utils/ParticlesInteractorBase.d.ts +0 -15
- package/types/Enums/InteractivityDetect.d.ts +0 -5
- package/types/Enums/Modes/ResponsiveMode.d.ts +0 -4
- package/types/Enums/Modes/ThemeMode.d.ts +0 -5
- package/types/Enums/Types/DivType.d.ts +0 -4
- package/types/Enums/Types/InteractorType.d.ts +0 -4
- package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
- package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -13
- package/types/Options/Classes/Interactivity/Events/Events.d.ts +0 -16
- package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
- package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
- package/types/Options/Classes/Interactivity/Events/ResizeEvent.d.ts +0 -9
- package/types/Options/Classes/Interactivity/Interactivity.d.ts +0 -16
- package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -12
- package/types/Options/Classes/ManualParticle.d.ts +0 -10
- package/types/Options/Classes/Responsive.d.ts +0 -12
- package/types/Options/Classes/Theme/Theme.d.ts +0 -12
- package/types/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
- package/types/Options/Interfaces/IManualParticle.d.ts +0 -7
- package/types/Options/Interfaces/IResponsive.d.ts +0 -7
- package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -5
- package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -8
- package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -11
- package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -7
- package/types/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -5
- package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
- package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -4
- package/types/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -1
- package/types/Options/Interfaces/Theme/ITheme.d.ts +0 -7
- package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
- package/umd/Core/Interfaces/IMouseData.js +0 -12
- package/umd/Core/Interfaces/IParticlesInteractor.js +0 -12
- package/umd/Core/Utils/ExternalInteractorBase.js +0 -21
- package/umd/Core/Utils/InteractionManager.js +0 -74
- package/umd/Core/Utils/ParticlesInteractorBase.js +0 -21
- package/umd/Enums/InteractivityDetect.js +0 -19
- package/umd/Enums/Modes/ResponsiveMode.js +0 -18
- package/umd/Enums/Modes/ThemeMode.js +0 -19
- package/umd/Enums/Types/DivType.js +0 -18
- package/umd/Enums/Types/InteractorType.js +0 -18
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +0 -32
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +0 -41
- package/umd/Options/Classes/Interactivity/Events/Events.js +0 -44
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +0 -35
- package/umd/Options/Classes/Interactivity/Events/Parallax.js +0 -36
- package/umd/Options/Classes/Interactivity/Interactivity.js +0 -36
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +0 -39
- package/umd/Options/Classes/ManualParticle.js +0 -35
- package/umd/Options/Classes/Responsive.js +0 -43
- package/umd/Options/Classes/Theme/Theme.js +0 -35
- package/umd/Options/Classes/Theme/ThemeDefault.js +0 -37
- package/umd/Options/Interfaces/IManualParticle.js +0 -12
- package/umd/Options/Interfaces/IResponsive.js +0 -12
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +0 -12
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +0 -12
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +0 -12
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -12
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +0 -12
- package/umd/Options/Interfaces/Interactivity/IInteractivity.js +0 -12
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -12
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +0 -12
- package/umd/Options/Interfaces/Theme/ITheme.js +0 -12
- package/umd/Options/Interfaces/Theme/IThemeDefault.js +0 -12
- /package/browser/Core/Interfaces/{IContainerInteractivity.js → IParticleOpacityData.js} +0 -0
- /package/browser/Core/Interfaces/{IExternalInteractor.js → IParticleRotateData.js} +0 -0
- /package/browser/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
- /package/browser/{Core/Interfaces/IInteractor.js → Types/EngineInitializers.js} +0 -0
- /package/{browser/Core/Interfaces/IMouseData.js → cjs/Core/Interfaces/IParticleOpacityData.js} +0 -0
- /package/{browser/Core/Interfaces/IParticlesInteractor.js → cjs/Core/Interfaces/IParticleRotateData.js} +0 -0
- /package/cjs/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
- /package/{browser/Options/Interfaces/IManualParticle.js → cjs/Types/EngineInitializers.js} +0 -0
- /package/{browser/Options/Interfaces/IResponsive.js → esm/Core/Interfaces/IParticleOpacityData.js} +0 -0
- /package/{browser/Options/Interfaces/Interactivity/Events/IClickEvent.js → esm/Core/Interfaces/IParticleRotateData.js} +0 -0
- /package/esm/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
- /package/{browser/Options/Interfaces/Interactivity/Events/IDivEvent.js → esm/Types/EngineInitializers.js} +0 -0
- /package/types/Options/Interfaces/{Interactivity/Events/IResizeEvent.d.ts → IResizeEvent.d.ts} +0 -0
- /package/umd/Core/Interfaces/{IContainerInteractivity.js → IParticleOpacityData.js} +0 -0
- /package/umd/Core/Interfaces/{IExternalInteractor.js → IParticleRotateData.js} +0 -0
- /package/umd/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
- /package/umd/{Core/Interfaces/IInteractor.js → Types/EngineInitializers.js} +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { Container } from "../Container.js";
|
|
2
2
|
import type { IContainerPlugin } from "./IContainerPlugin.js";
|
|
3
|
+
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
3
4
|
import type { ISourceOptions } from "../../Types/ISourceOptions.js";
|
|
4
5
|
import type { Options } from "../../Options/Classes/Options.js";
|
|
6
|
+
import type { ParticlesOptions } from "../../Options/Classes/Particles/ParticlesOptions.js";
|
|
7
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
8
|
export interface IPlugin {
|
|
6
9
|
readonly id: string;
|
|
10
|
+
loadParticlesOptions?: (container: Container, options: ParticlesOptions, source?: RecursivePartial<IParticlesOptions>) => void;
|
|
7
11
|
getPlugin(container: Container): Promise<IContainerPlugin>;
|
|
8
|
-
loadOptions(options: Options, source?: ISourceOptions): void;
|
|
12
|
+
loadOptions(container: Container, options: Options, source?: ISourceOptions): void;
|
|
9
13
|
needsPlugin(options?: ISourceOptions): boolean;
|
|
10
14
|
}
|
|
@@ -11,5 +11,4 @@ export interface IShapeDrawer<TParticle extends Particle = Particle> {
|
|
|
11
11
|
loadShape?: (particle: TParticle) => void;
|
|
12
12
|
particleDestroy?: (particle: TParticle) => void;
|
|
13
13
|
particleInit?: (container: Container, particle: TParticle) => void;
|
|
14
|
-
readonly validTypes: readonly string[];
|
|
15
14
|
}
|
package/types/Core/Particle.d.ts
CHANGED
|
@@ -8,12 +8,14 @@ import type { IHsl } from "./Interfaces/Colors.js";
|
|
|
8
8
|
import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator.js";
|
|
9
9
|
import type { IParticleHslAnimation } from "./Interfaces/IParticleHslAnimation.js";
|
|
10
10
|
import type { IParticleNumericValueAnimation } from "./Interfaces/IParticleValueAnimation.js";
|
|
11
|
+
import type { IParticleOpacityData } from "./Interfaces/IParticleOpacityData.js";
|
|
11
12
|
import type { IParticleRetinaProps } from "./Interfaces/IParticleRetinaProps.js";
|
|
12
13
|
import type { IParticleRoll } from "./Interfaces/IParticleRoll.js";
|
|
14
|
+
import type { IParticleRotateData } from "./Interfaces/IParticleRotateData.js";
|
|
15
|
+
import type { IParticleTransformValues } from "../export-types.js";
|
|
13
16
|
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
14
17
|
import type { IShapeValues } from "./Interfaces/IShapeValues.js";
|
|
15
18
|
import type { ISlowParticleData } from "./Interfaces/ISlowParticleData.js";
|
|
16
|
-
import { Interactivity } from "../Options/Classes/Interactivity/Interactivity.js";
|
|
17
19
|
import { ParticleOutType } from "../Enums/Types/ParticleOutType.js";
|
|
18
20
|
import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
|
|
19
21
|
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
@@ -33,7 +35,6 @@ export declare class Particle {
|
|
|
33
35
|
ignoresResizeRatio: boolean;
|
|
34
36
|
initialPosition: Vector;
|
|
35
37
|
initialVelocity: Vector;
|
|
36
|
-
interactivity: Interactivity;
|
|
37
38
|
isRotating: boolean;
|
|
38
39
|
lastPathTime: number;
|
|
39
40
|
misplaced: boolean;
|
|
@@ -65,6 +66,10 @@ export declare class Particle {
|
|
|
65
66
|
unbreakable: boolean;
|
|
66
67
|
velocity: Vector;
|
|
67
68
|
zIndexFactor: number;
|
|
69
|
+
private readonly _cachedOpacityData;
|
|
70
|
+
private readonly _cachedPosition;
|
|
71
|
+
private readonly _cachedRotateData;
|
|
72
|
+
private readonly _cachedTransform;
|
|
68
73
|
private readonly _engine;
|
|
69
74
|
constructor(engine: Engine, container: Container);
|
|
70
75
|
destroy(override?: boolean): void;
|
|
@@ -72,15 +77,21 @@ export declare class Particle {
|
|
|
72
77
|
getAngle(): number;
|
|
73
78
|
getFillColor(): IHsl | undefined;
|
|
74
79
|
getMass(): number;
|
|
80
|
+
getOpacity(): IParticleOpacityData;
|
|
75
81
|
getPosition(): ICoordinates3d;
|
|
76
82
|
getRadius(): number;
|
|
83
|
+
getRotateData(): IParticleRotateData;
|
|
77
84
|
getStrokeColor(): IHsl | undefined;
|
|
85
|
+
getTransformData(externalTransform: Partial<IParticleTransformValues>): IParticleTransformValues;
|
|
78
86
|
init(id: number, position?: ICoordinates, overrideOptions?: RecursivePartial<IParticlesOptions>, group?: string): void;
|
|
79
87
|
isInsideCanvas(): boolean;
|
|
88
|
+
isShowingBack(): boolean;
|
|
80
89
|
isVisible(): boolean;
|
|
81
90
|
reset(): void;
|
|
82
91
|
private readonly _calcPosition;
|
|
83
92
|
private readonly _calculateVelocity;
|
|
93
|
+
private readonly _fixHorizontal;
|
|
94
|
+
private readonly _fixVertical;
|
|
84
95
|
private readonly _getRollColor;
|
|
85
96
|
private readonly _initPosition;
|
|
86
97
|
}
|
|
@@ -1,35 +1,46 @@
|
|
|
1
1
|
import type { Container } from "./Container.js";
|
|
2
2
|
import type { Engine } from "./Engine.js";
|
|
3
|
+
import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
|
|
3
4
|
import type { ICoordinates } from "./Interfaces/ICoordinates.js";
|
|
4
5
|
import type { IDelta } from "./Interfaces/IDelta.js";
|
|
5
6
|
import type { IDimension } from "./Interfaces/IDimension.js";
|
|
6
|
-
import type {
|
|
7
|
+
import type { IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
|
|
8
|
+
import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator.js";
|
|
7
9
|
import type { IParticleMover } from "./Interfaces/IParticleMover.js";
|
|
8
10
|
import type { IParticleUpdater } from "./Interfaces/IParticleUpdater.js";
|
|
9
11
|
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
12
|
+
import type { IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
|
|
10
13
|
import { Particle } from "./Particle.js";
|
|
11
14
|
import { QuadTree } from "./Utils/QuadTree.js";
|
|
12
15
|
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
13
16
|
export declare class Particles {
|
|
17
|
+
availablePathGenerators: Map<string, IMovePathGenerator>;
|
|
18
|
+
checkParticlePositionPlugins: IContainerPlugin[];
|
|
19
|
+
effectDrawers: Map<string, IEffectDrawer>;
|
|
14
20
|
movers: IParticleMover[];
|
|
21
|
+
pathGenerators: Map<string, IMovePathGenerator>;
|
|
15
22
|
quadTree: QuadTree;
|
|
23
|
+
shapeDrawers: Map<string, IShapeDrawer>;
|
|
16
24
|
updaters: IParticleUpdater[];
|
|
17
25
|
private _array;
|
|
18
26
|
private readonly _container;
|
|
19
27
|
private readonly _engine;
|
|
20
28
|
private readonly _groupLimits;
|
|
21
|
-
private readonly _interactionManager;
|
|
22
|
-
private _lastZIndex;
|
|
23
29
|
private _limit;
|
|
30
|
+
private _maxZIndex;
|
|
31
|
+
private _minZIndex;
|
|
24
32
|
private _needsSort;
|
|
25
33
|
private _nextId;
|
|
26
|
-
private
|
|
34
|
+
private _particleResetPlugins;
|
|
35
|
+
private _particleUpdatePlugins;
|
|
27
36
|
private readonly _pool;
|
|
37
|
+
private _postParticleUpdatePlugins;
|
|
38
|
+
private _postUpdatePlugins;
|
|
28
39
|
private _resizeFactor?;
|
|
40
|
+
private _updatePlugins;
|
|
29
41
|
private _zArray;
|
|
30
42
|
constructor(engine: Engine, container: Container);
|
|
31
43
|
get count(): number;
|
|
32
|
-
addManualParticles(): void;
|
|
33
44
|
addParticle(position?: ICoordinates, overrideOptions?: RecursivePartial<IParticlesOptions>, group?: string, initializer?: (particle: Particle) => boolean): Particle | undefined;
|
|
34
45
|
clear(): void;
|
|
35
46
|
destroy(): void;
|
|
@@ -37,10 +48,9 @@ export declare class Particles {
|
|
|
37
48
|
filter(condition: (particle: Particle) => boolean): Particle[];
|
|
38
49
|
find(condition: (particle: Particle) => boolean): Particle | undefined;
|
|
39
50
|
get(index: number): Particle | undefined;
|
|
40
|
-
handleClickMode(mode: string): void;
|
|
41
51
|
init(): Promise<void>;
|
|
42
52
|
initPlugins(): Promise<void>;
|
|
43
|
-
push(nb: number,
|
|
53
|
+
push(nb: number, position?: ICoordinates, overrideOptions?: RecursivePartial<IParticlesOptions>, group?: string): void;
|
|
44
54
|
redraw(): Promise<void>;
|
|
45
55
|
remove(particle: Particle, group?: string, override?: boolean): void;
|
|
46
56
|
removeAt(index: number, quantity?: number, group?: string, override?: boolean): void;
|
|
@@ -52,6 +62,5 @@ export declare class Particles {
|
|
|
52
62
|
private readonly _addToPool;
|
|
53
63
|
private readonly _applyDensity;
|
|
54
64
|
private readonly _initDensityFactor;
|
|
55
|
-
private readonly _pushParticle;
|
|
56
65
|
private readonly _removeParticle;
|
|
57
66
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ICoordinates3d } from "../Interfaces/ICoordinates.js";
|
|
2
|
-
export declare const generatedAttribute = "generated",
|
|
2
|
+
export declare const generatedAttribute = "generated", resizeEvent = "resize", visibilityChangeEvent = "visibilitychange", percentDenominator = 100, half = 0.5, millisecondsToSeconds = 1000, originPoint: ICoordinates3d, defaultTransform: {
|
|
3
3
|
a: number;
|
|
4
4
|
b: number;
|
|
5
5
|
c: number;
|
|
6
6
|
d: number;
|
|
7
|
-
}, randomColorValue = "random", midColorValue = "mid", double = 2, doublePI: number, defaultFps = 60, defaultAlpha = 1, generatedTrue = "true", generatedFalse = "false", canvasTag = "canvas", defaultRetryCount = 0, squareExp = 2, qTreeCapacity = 4, defaultRemoveQuantity = 1, defaultRatio = 1, defaultReduceFactor = 1, subdivideCount = 4, inverseFactorNumerator = 1, rgbMax = 255, hMax = 360, sMax = 100, lMax = 100, hMin = 0, sMin = 0, hPhase = 60, empty = 0, quarter = 0.25, threeQuarter: number, minVelocity = 0, defaultTransformValue = 1, minimumSize = 0, minimumLength = 0, zIndexFactorOffset = 1, defaultOpacity = 1, clickRadius = 1, touchEndLengthOffset = 1, minCoordinate = 0, removeDeleteCount = 1, removeMinIndex = 0, defaultFpsLimit = 120, minFpsLimit = 0, canvasFirstIndex = 0, loadRandomFactor = 10000, loadMinIndex = 0, one = 1, none = 0, decayOffset = 1, tryCountIncrement = 1, minRetries = 0,
|
|
7
|
+
}, randomColorValue = "random", midColorValue = "mid", double = 2, doublePI: number, defaultFps = 60, defaultAlpha = 1, generatedTrue = "true", generatedFalse = "false", canvasTag = "canvas", defaultRetryCount = 0, squareExp = 2, qTreeCapacity = 4, defaultRemoveQuantity = 1, defaultRatio = 1, defaultReduceFactor = 1, subdivideCount = 4, inverseFactorNumerator = 1, rgbMax = 255, hMax = 360, sMax = 100, lMax = 100, hMin = 0, sMin = 0, hPhase = 60, empty = 0, quarter = 0.25, threeQuarter: number, minVelocity = 0, defaultTransformValue = 1, minimumSize = 0, minimumLength = 0, zIndexFactorOffset = 1, defaultOpacity = 1, clickRadius = 1, touchEndLengthOffset = 1, minCoordinate = 0, removeDeleteCount = 1, removeMinIndex = 0, defaultFpsLimit = 120, minFpsLimit = 0, canvasFirstIndex = 0, loadRandomFactor = 10000, loadMinIndex = 0, one = 1, none = 0, decayOffset = 1, tryCountIncrement = 1, minRetries = 0, minZ = 0, defaultRadius = 0, posOffset: number, sizeFactor = 1.5, minLimit = 0, countOffset = 1, minCount = 0, minIndex = 0, lengthOffset = 1, defaultDensityFactor = 1, deleteCount = 1, touchDelay = 500, manualDefaultPosition = 50, defaultAngle = 0, identity = 1, minStrokeWidth = 0, lFactor = 1, lMin = 0, triple = 3, sextuple = 6, sNormalizedOffset = 1, phaseNumerator = 1, defaultRgbMin = 0, defaultVelocity = 0, defaultLoops = 0, defaultTime = 0;
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
import type { Container } from "../Container.js";
|
|
2
2
|
export declare class EventListeners {
|
|
3
3
|
private readonly container;
|
|
4
|
-
private _canPush;
|
|
5
4
|
private readonly _handlers;
|
|
6
|
-
private readonly _matchMedia;
|
|
7
5
|
private _resizeObserver?;
|
|
8
6
|
private _resizeTimeout?;
|
|
9
|
-
private readonly _touches;
|
|
10
7
|
constructor(container: Container);
|
|
11
8
|
addListeners(): void;
|
|
12
9
|
removeListeners(): void;
|
|
13
|
-
private readonly _doMouseTouchClick;
|
|
14
|
-
private readonly _handleThemeChange;
|
|
15
10
|
private readonly _handleVisibilityChange;
|
|
16
11
|
private readonly _handleWindowResize;
|
|
17
|
-
private readonly _manageInteractivityListeners;
|
|
18
12
|
private readonly _manageListeners;
|
|
19
|
-
private readonly _manageMediaMatch;
|
|
20
13
|
private readonly _manageResize;
|
|
21
|
-
private readonly _mouseDown;
|
|
22
|
-
private readonly _mouseTouchClick;
|
|
23
|
-
private readonly _mouseTouchFinish;
|
|
24
|
-
private readonly _mouseTouchMove;
|
|
25
|
-
private readonly _touchEnd;
|
|
26
|
-
private readonly _touchEndClick;
|
|
27
|
-
private readonly _touchStart;
|
|
28
14
|
}
|
|
@@ -1,30 +1,45 @@
|
|
|
1
1
|
export declare enum EasingType {
|
|
2
2
|
easeInBack = "ease-in-back",
|
|
3
|
+
easeInBounce = "ease-in-bounce",
|
|
3
4
|
easeInCirc = "ease-in-circ",
|
|
4
5
|
easeInCubic = "ease-in-cubic",
|
|
6
|
+
easeInElastic = "ease-in-elastic",
|
|
7
|
+
easeInExpo = "ease-in-expo",
|
|
8
|
+
easeInGaussian = "ease-in-gaussian",
|
|
5
9
|
easeInLinear = "ease-in-linear",
|
|
6
10
|
easeInQuad = "ease-in-quad",
|
|
7
11
|
easeInQuart = "ease-in-quart",
|
|
8
12
|
easeInQuint = "ease-in-quint",
|
|
9
|
-
|
|
13
|
+
easeInSigmoid = "ease-in-sigmoid",
|
|
10
14
|
easeInSine = "ease-in-sine",
|
|
15
|
+
easeInSmoothstep = "ease-in-smoothstep",
|
|
11
16
|
easeOutBack = "ease-out-back",
|
|
17
|
+
easeOutBounce = "ease-out-bounce",
|
|
12
18
|
easeOutCirc = "ease-out-circ",
|
|
13
19
|
easeOutCubic = "ease-out-cubic",
|
|
20
|
+
easeOutElastic = "ease-out-elastic",
|
|
21
|
+
easeOutExpo = "ease-out-expo",
|
|
22
|
+
easeOutGaussian = "ease-out-gaussian",
|
|
14
23
|
easeOutLinear = "ease-out-linear",
|
|
15
24
|
easeOutQuad = "ease-out-quad",
|
|
16
25
|
easeOutQuart = "ease-out-quart",
|
|
17
26
|
easeOutQuint = "ease-out-quint",
|
|
18
|
-
|
|
27
|
+
easeOutSigmoid = "ease-out-sigmoid",
|
|
19
28
|
easeOutSine = "ease-out-sine",
|
|
29
|
+
easeOutSmoothstep = "ease-out-smoothstep",
|
|
20
30
|
easeInOutBack = "ease-in-out-back",
|
|
31
|
+
easeInOutBounce = "ease-in-out-bounce",
|
|
21
32
|
easeInOutCirc = "ease-in-out-circ",
|
|
22
33
|
easeInOutCubic = "ease-in-out-cubic",
|
|
34
|
+
easeInOutElastic = "ease-in-out-elastic",
|
|
35
|
+
easeInOutExpo = "ease-in-out-expo",
|
|
36
|
+
easeInOutGaussian = "ease-in-out-gaussian",
|
|
23
37
|
easeInOutLinear = "ease-in-out-linear",
|
|
24
38
|
easeInOutQuad = "ease-in-out-quad",
|
|
25
39
|
easeInOutQuart = "ease-in-out-quart",
|
|
26
40
|
easeInOutQuint = "ease-in-out-quint",
|
|
27
|
-
|
|
28
|
-
easeInOutSine = "ease-in-out-sine"
|
|
41
|
+
easeInOutSigmoid = "ease-in-out-sigmoid",
|
|
42
|
+
easeInOutSine = "ease-in-out-sine",
|
|
43
|
+
easeInOutSmoothstep = "ease-in-out-smoothstep"
|
|
29
44
|
}
|
|
30
|
-
export type EasingTypeAlt = "ease-in-back" | "ease-out-back" | "ease-in-out-back" | "ease-in-circ" | "ease-out-circ" | "ease-in-out-circ" | "ease-in-cubic" | "ease-out-cubic" | "ease-in-out-cubic" | "ease-in-quad" | "ease-out-quad" | "ease-in-out-quad" | "ease-in-quart" | "ease-out-quart" | "ease-in-out-quart" | "ease-in-quint" | "ease-out-quint" | "ease-in-out-quint" | "ease-in-
|
|
45
|
+
export type EasingTypeAlt = "ease-in-back" | "ease-out-back" | "ease-in-out-back" | "ease-in-bounce" | "ease-out-bounce" | "ease-in-out-bounce" | "ease-in-circ" | "ease-out-circ" | "ease-in-out-circ" | "ease-in-cubic" | "ease-out-cubic" | "ease-in-out-cubic" | "ease-in-elastic" | "ease-out-elastic" | "ease-in-out-elastic" | "ease-in-expo" | "ease-out-expo" | "ease-in-out-expo" | "ease-in-gaussian" | "ease-out-gaussian" | "ease-in-out-gaussian" | "ease-in-linear" | "ease-out-linear" | "ease-in-out-linear" | "ease-in-quad" | "ease-out-quad" | "ease-in-out-quad" | "ease-in-quart" | "ease-out-quart" | "ease-in-out-quart" | "ease-in-quint" | "ease-out-quint" | "ease-in-out-quint" | "ease-in-sigmoid" | "ease-out-sigmoid" | "ease-in-out-sigmoid" | "ease-in-sine" | "ease-out-sine" | "ease-in-out-sine" | "ease-in-smoothstep" | "ease-out-smoothstep" | "ease-in-out-smoothstep";
|
|
@@ -3,9 +3,8 @@ import type { IHslAnimation } from "../Interfaces/IHslAnimation.js";
|
|
|
3
3
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
4
4
|
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class HslAnimation implements IHslAnimation, IOptionLoader<IHslAnimation> {
|
|
6
|
-
h: ColorAnimation;
|
|
7
|
-
l: ColorAnimation;
|
|
8
|
-
s: ColorAnimation;
|
|
9
|
-
constructor();
|
|
6
|
+
readonly h: ColorAnimation;
|
|
7
|
+
readonly l: ColorAnimation;
|
|
8
|
+
readonly s: ColorAnimation;
|
|
10
9
|
load(data?: RecursivePartial<IHslAnimation>): void;
|
|
11
10
|
}
|
|
@@ -5,13 +5,10 @@ import { FullScreen } from "./FullScreen/FullScreen.js";
|
|
|
5
5
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
6
6
|
import type { IOptions } from "../Interfaces/IOptions.js";
|
|
7
7
|
import type { ISourceOptions } from "../../Types/ISourceOptions.js";
|
|
8
|
-
import { Interactivity } from "./Interactivity/Interactivity.js";
|
|
9
|
-
import { ManualParticle } from "./ManualParticle.js";
|
|
10
8
|
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
11
9
|
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
12
|
-
import {
|
|
10
|
+
import { ResizeEvent } from "./ResizeEvent.js";
|
|
13
11
|
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
|
|
14
|
-
import { Theme } from "./Theme/Theme.js";
|
|
15
12
|
interface DefaultThemes {
|
|
16
13
|
dark?: string;
|
|
17
14
|
light?: string;
|
|
@@ -28,26 +25,20 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
28
25
|
fpsLimit: number;
|
|
29
26
|
readonly fullScreen: FullScreen;
|
|
30
27
|
hdr: boolean;
|
|
31
|
-
readonly interactivity: Interactivity;
|
|
32
28
|
key?: string;
|
|
33
|
-
manualParticles: ManualParticle[];
|
|
34
29
|
name?: string;
|
|
35
30
|
readonly particles: import("./Particles/ParticlesOptions.js").ParticlesOptions;
|
|
36
31
|
pauseOnBlur: boolean;
|
|
37
32
|
pauseOnOutsideViewport: boolean;
|
|
38
33
|
preset?: SingleOrMultiple<string>;
|
|
39
|
-
|
|
34
|
+
readonly resize: ResizeEvent;
|
|
40
35
|
smooth: boolean;
|
|
41
36
|
style: RecursivePartial<CSSStyleDeclaration>;
|
|
42
|
-
readonly themes: Theme[];
|
|
43
37
|
zLayers: number;
|
|
44
38
|
private readonly _container;
|
|
45
39
|
private readonly _engine;
|
|
46
40
|
constructor(engine: Engine, container: Container);
|
|
47
41
|
load(data?: ISourceOptions): void;
|
|
48
|
-
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
|
|
49
|
-
setTheme(name?: string): void;
|
|
50
|
-
private readonly _findDefaultTheme;
|
|
51
42
|
private readonly _importPreset;
|
|
52
43
|
}
|
|
53
44
|
export {};
|
|
@@ -2,7 +2,6 @@ import { AnimatableColor } from "../AnimatableColor.js";
|
|
|
2
2
|
import type { Container } from "../../../Core/Container.js";
|
|
3
3
|
import { Effect } from "./Effect/Effect.js";
|
|
4
4
|
import type { Engine } from "../../../Core/Engine.js";
|
|
5
|
-
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity.js";
|
|
6
5
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
7
6
|
import type { IParticlesOptions } from "../../Interfaces/Particles/IParticlesOptions.js";
|
|
8
7
|
import { Move } from "./Move/Move.js";
|
|
@@ -22,7 +21,6 @@ export declare class ParticlesOptions implements IParticlesOptions, IOptionLoade
|
|
|
22
21
|
color: AnimatableColor;
|
|
23
22
|
readonly effect: Effect;
|
|
24
23
|
readonly groups: ParticlesGroups;
|
|
25
|
-
interactivity?: RecursivePartial<IInteractivity>;
|
|
26
24
|
readonly move: Move;
|
|
27
25
|
readonly number: ParticlesNumber;
|
|
28
26
|
readonly opacity: Opacity;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
2
|
+
import type { IResizeEvent } from "../Interfaces/IResizeEvent.js";
|
|
3
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
4
|
+
export declare class ResizeEvent implements IResizeEvent, IOptionLoader<IResizeEvent> {
|
|
5
|
+
delay: number;
|
|
6
|
+
enable: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
load(data?: RecursivePartial<IResizeEvent>): void;
|
|
9
|
+
}
|
|
@@ -10,7 +10,6 @@ export declare class ValueWithRandom implements IValueWithRandom, IOptionLoader<
|
|
|
10
10
|
}
|
|
11
11
|
export declare class AnimationValueWithRandom extends ValueWithRandom implements IOptionLoader<IAnimationValueWithRandom> {
|
|
12
12
|
readonly animation: AnimationOptions;
|
|
13
|
-
constructor();
|
|
14
13
|
load(data?: RecursivePartial<IAnimationValueWithRandom>): void;
|
|
15
14
|
}
|
|
16
15
|
export declare class RangedAnimationValueWithRandom extends AnimationValueWithRandom implements IOptionLoader<IRangedAnimationValueWithRandom> {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { IBackground } from "./Background/IBackground.js";
|
|
2
2
|
import type { IFullScreen } from "./FullScreen/IFullScreen.js";
|
|
3
|
-
import type { IInteractivity } from "./Interactivity/IInteractivity.js";
|
|
4
|
-
import type { IManualParticle } from "./IManualParticle.js";
|
|
5
3
|
import type { IParticlesOptions } from "./Particles/IParticlesOptions.js";
|
|
6
|
-
import type {
|
|
7
|
-
import type { ITheme } from "./Theme/ITheme.js";
|
|
4
|
+
import type { IResizeEvent } from "./IResizeEvent.js";
|
|
8
5
|
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
9
6
|
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
10
7
|
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
|
|
@@ -19,17 +16,14 @@ export interface IOptions {
|
|
|
19
16
|
fpsLimit: number;
|
|
20
17
|
fullScreen: RecursivePartial<IFullScreen> | boolean;
|
|
21
18
|
hdr: boolean;
|
|
22
|
-
interactivity: IInteractivity;
|
|
23
19
|
key?: string;
|
|
24
|
-
manualParticles: IManualParticle[];
|
|
25
20
|
name?: string;
|
|
26
21
|
particles: IParticlesOptions;
|
|
27
22
|
pauseOnBlur: boolean;
|
|
28
23
|
pauseOnOutsideViewport: boolean;
|
|
29
24
|
preset?: SingleOrMultiple<string>;
|
|
30
|
-
|
|
25
|
+
resize: IResizeEvent;
|
|
31
26
|
smooth: boolean;
|
|
32
27
|
style: RecursivePartial<CSSStyleDeclaration>;
|
|
33
|
-
themes: ITheme[];
|
|
34
28
|
zLayers: number;
|
|
35
29
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IAnimatableColor } from "../IAnimatableColor.js";
|
|
2
2
|
import type { IEffect } from "./Effect/IEffect.js";
|
|
3
|
-
import type { IInteractivity } from "../Interactivity/IInteractivity.js";
|
|
4
3
|
import type { IMove } from "./Move/IMove.js";
|
|
5
4
|
import type { IOpacity } from "./Opacity/IOpacity.js";
|
|
6
5
|
import type { IParticlesBounce } from "./Bounce/IParticlesBounce.js";
|
|
@@ -10,7 +9,6 @@ import type { ISize } from "./Size/ISize.js";
|
|
|
10
9
|
import type { IStroke } from "./IStroke.js";
|
|
11
10
|
import type { IZIndex } from "./ZIndex/IZIndex.js";
|
|
12
11
|
import type { ParticlesGroups } from "../../../Types/ParticlesGroups.js";
|
|
13
|
-
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
14
12
|
import type { SingleOrMultiple } from "../../../Types/SingleOrMultiple.js";
|
|
15
13
|
export interface IParticlesOptions {
|
|
16
14
|
[name: string]: unknown;
|
|
@@ -18,7 +16,6 @@ export interface IParticlesOptions {
|
|
|
18
16
|
color: IAnimatableColor;
|
|
19
17
|
effect: IEffect;
|
|
20
18
|
groups: ParticlesGroups;
|
|
21
|
-
interactivity?: RecursivePartial<IInteractivity>;
|
|
22
19
|
move: IMove;
|
|
23
20
|
number: IParticlesNumber;
|
|
24
21
|
opacity: IOpacity;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { CustomEventArgs } from "./CustomEventArgs.js";
|
|
2
|
-
export type CustomEventListener = (args
|
|
2
|
+
export type CustomEventListener = (args?: CustomEventArgs) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Container } from "../Core/Container.js";
|
|
2
|
+
import type { IEffectDrawer } from "../Core/Interfaces/IEffectDrawer.js";
|
|
3
|
+
import type { IMovePathGenerator } from "../Core/Interfaces/IMovePathGenerator.js";
|
|
4
|
+
import type { IParticleMover } from "../Core/Interfaces/IParticleMover.js";
|
|
5
|
+
import type { IParticleUpdater } from "../Core/Interfaces/IParticleUpdater.js";
|
|
6
|
+
import type { IShapeDrawer } from "../Core/Interfaces/IShapeDrawer.js";
|
|
7
|
+
export type GenericInitializer<T> = (container: Container) => Promise<T>;
|
|
8
|
+
export type EffectInitializer = GenericInitializer<IEffectDrawer>;
|
|
9
|
+
export type MoverInitializer = GenericInitializer<IParticleMover>;
|
|
10
|
+
export type PathGeneratorInitializer = GenericInitializer<IMovePathGenerator>;
|
|
11
|
+
export type ShapeInitializer = GenericInitializer<IShapeDrawer>;
|
|
12
|
+
export type UpdaterInitializer = GenericInitializer<IParticleUpdater>;
|
|
13
|
+
export interface Initializers {
|
|
14
|
+
effects: Map<string, EffectInitializer>;
|
|
15
|
+
movers: Map<string, MoverInitializer>;
|
|
16
|
+
pathGenerators: Map<string, PathGeneratorInitializer>;
|
|
17
|
+
shapes: Map<string, ShapeInitializer>;
|
|
18
|
+
updaters: Map<string, UpdaterInitializer>;
|
|
19
|
+
}
|
|
@@ -1,39 +1,20 @@
|
|
|
1
1
|
import { AlterType } from "../Enums/Types/AlterType.js";
|
|
2
2
|
import type { Container } from "../Core/Container.js";
|
|
3
3
|
import type { IContainerPlugin } from "../Core/Interfaces/IContainerPlugin.js";
|
|
4
|
-
import type { ICoordinates } from "../Core/Interfaces/ICoordinates.js";
|
|
5
4
|
import type { IDelta } from "../Core/Interfaces/IDelta.js";
|
|
6
5
|
import type { IDimension } from "../Core/Interfaces/IDimension.js";
|
|
7
6
|
import type { IDrawParticleParams } from "../Core/Interfaces/IDrawParticleParams.js";
|
|
8
7
|
import type { IHsl } from "../Core/Interfaces/Colors.js";
|
|
8
|
+
import type { IShapeDrawData } from "../export-types.js";
|
|
9
9
|
import type { Particle } from "../Core/Particle.js";
|
|
10
|
-
export declare function clearDrawPlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, delta: IDelta): void;
|
|
11
|
-
export declare function drawLine(context: CanvasRenderingContext2D, begin: ICoordinates, end: ICoordinates): void;
|
|
12
10
|
export declare function paintBase(context: CanvasRenderingContext2D, dimension: IDimension, baseColor?: string): void;
|
|
13
11
|
export declare function paintImage(context: CanvasRenderingContext2D, dimension: IDimension, image: HTMLImageElement | undefined, opacity: number): void;
|
|
14
12
|
export declare function clear(context: CanvasRenderingContext2D, dimension: IDimension): void;
|
|
15
13
|
export declare function drawParticle(data: IDrawParticleParams): void;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
particle: Particle;
|
|
22
|
-
radius: number;
|
|
23
|
-
strokeWidth: number;
|
|
24
|
-
transformData: {
|
|
25
|
-
a: number;
|
|
26
|
-
b: number;
|
|
27
|
-
c: number;
|
|
28
|
-
d: number;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export declare function drawAfterEffect(data: DrawShapeData): void;
|
|
32
|
-
export declare function drawBeforeEffect(data: DrawShapeData): void;
|
|
33
|
-
export declare function drawShape(data: DrawShapeData): void;
|
|
34
|
-
export declare function drawShapeAfterDraw(data: DrawShapeData): void;
|
|
35
|
-
export declare function drawShapeBeforeDraw(data: DrawShapeData): void;
|
|
36
|
-
export declare function drawPlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, delta: IDelta): void;
|
|
14
|
+
export declare function drawAfterEffect(container: Container, data: IShapeDrawData): void;
|
|
15
|
+
export declare function drawBeforeEffect(container: Container, data: IShapeDrawData): void;
|
|
16
|
+
export declare function drawShape(container: Container, data: IShapeDrawData): void;
|
|
17
|
+
export declare function drawShapeAfterDraw(container: Container, data: IShapeDrawData): void;
|
|
18
|
+
export declare function drawShapeBeforeDraw(container: Container, data: IShapeDrawData): void;
|
|
37
19
|
export declare function drawParticlePlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, particle: Particle, delta: IDelta): void;
|
|
38
20
|
export declare function alterHsl(color: IHsl, type: AlterType, value: number): IHsl;
|
|
39
|
-
export {};
|
|
@@ -4,7 +4,7 @@ export declare class EventDispatcher {
|
|
|
4
4
|
private _listeners;
|
|
5
5
|
constructor();
|
|
6
6
|
addEventListener(type: string, listener: CustomEventListener): void;
|
|
7
|
-
dispatchEvent(type: string, args
|
|
7
|
+
dispatchEvent(type: string, args?: CustomEventArgs): void;
|
|
8
8
|
hasEventListener(type: string): boolean;
|
|
9
9
|
removeAllEventListeners(type?: string): void;
|
|
10
10
|
removeEventListener(type: string, listener: CustomEventListener): void;
|
package/types/Utils/Utils.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ICoordinates, ICoordinatesWithMode } from "../Core/Interfaces/ICoordinates.js";
|
|
2
2
|
import type { IDimension, IDimensionWithMode } from "../Core/Interfaces/IDimension.js";
|
|
3
|
+
import type { Container } from "../Core/Container.js";
|
|
3
4
|
import { DestroyType } from "../Enums/Types/DestroyType.js";
|
|
4
|
-
import type {
|
|
5
|
+
import type { GenericInitializer } from "../Types/EngineInitializers.js";
|
|
5
6
|
import type { IBounds } from "../Core/Interfaces/IBounds.js";
|
|
6
7
|
import type { ICircleBouncer } from "../Core/Interfaces/ICircleBouncer.js";
|
|
7
8
|
import type { IDelta } from "../Core/Interfaces/IDelta.js";
|
|
8
|
-
import type { IModeDiv } from "../Options/Interfaces/Interactivity/Modes/IModeDiv.js";
|
|
9
9
|
import type { IParticleNumericValueAnimation } from "../Core/Interfaces/IParticleValueAnimation.js";
|
|
10
10
|
import { OutModeDirection } from "../Enums/Directions/OutModeDirection.js";
|
|
11
11
|
import type { Particle } from "../Core/Particle.js";
|
|
@@ -17,17 +17,12 @@ export declare function safeMatchMedia(query: string): MediaQueryList | undefine
|
|
|
17
17
|
export declare function safeIntersectionObserver(callback: (records: IntersectionObserverEntry[]) => void): IntersectionObserver | undefined;
|
|
18
18
|
export declare function safeMutationObserver(callback: (records: MutationRecord[]) => void): MutationObserver | undefined;
|
|
19
19
|
export declare function isInArray<T>(value: T, array: SingleOrMultiple<T>): boolean;
|
|
20
|
-
export declare function loadFont(font?: string, weight?: string): Promise<void>;
|
|
21
20
|
export declare function arrayRandomIndex(array: unknown[]): number;
|
|
22
21
|
export declare function itemFromArray<T>(array: T[], index?: number, useIndex?: boolean): T | undefined;
|
|
23
22
|
export declare function isPointInside(point: ICoordinates, size: IDimension, offset: ICoordinates, radius?: number, direction?: OutModeDirection): boolean;
|
|
24
23
|
export declare function areBoundsInside(bounds: IBounds, size: IDimension, offset: ICoordinates, direction?: OutModeDirection): boolean;
|
|
25
24
|
export declare function calculateBounds(point: ICoordinates, radius: number): IBounds;
|
|
26
25
|
export declare function deepExtend(destination: unknown, ...sources: unknown[]): unknown;
|
|
27
|
-
export declare function isDivModeEnabled(mode: string, divs: SingleOrMultiple<DivEvent>): boolean;
|
|
28
|
-
export declare function divModeExecute(mode: string, divs: SingleOrMultiple<DivEvent>, callback: (id: string, div: DivEvent) => void): void;
|
|
29
|
-
export declare function singleDivModeExecute(div: DivEvent, callback: (selector: string, div: DivEvent) => void): void;
|
|
30
|
-
export declare function divMode<T extends IModeDiv>(divs?: SingleOrMultiple<T>, element?: HTMLElement): T | undefined;
|
|
31
26
|
export declare function circleBounceDataFromParticle(p: Particle): ICircleBouncer;
|
|
32
27
|
export declare function circleBounce(p1: ICircleBouncer, p2: ICircleBouncer): void;
|
|
33
28
|
export declare function executeOnSingleOrMultiple<T, U = void>(obj: SingleOrMultiple<T>, callback: (obj: T, index: number) => U): SingleOrMultiple<U>;
|
|
@@ -39,3 +34,6 @@ export declare function getSize(size: IDimensionWithMode, canvasSize: IDimension
|
|
|
39
34
|
export declare function updateAnimation(particle: Particle, data: IParticleNumericValueAnimation, changeDirection: boolean, destroyType: DestroyType | keyof typeof DestroyType, delta: IDelta): void;
|
|
40
35
|
export declare function cloneStyle(style: Partial<CSSStyleDeclaration>): CSSStyleDeclaration;
|
|
41
36
|
export declare const getFullScreenStyle: (zIndex: number) => CSSStyleDeclaration;
|
|
37
|
+
export declare function manageListener(element: HTMLElement | Node | Window | MediaQueryList | typeof globalThis, event: string, handler: EventListenerOrEventListenerObject, add: boolean, options?: boolean | AddEventListenerOptions | EventListenerObject): void;
|
|
38
|
+
export declare function getItemsFromInitializer<TItem, TInitializer extends GenericInitializer<TItem>>(container: Container, map: Map<Container, TItem[]>, initializers: Map<string, TInitializer>, force?: boolean): Promise<TItem[]>;
|
|
39
|
+
export declare function getItemMapFromInitializer<TItem, TInitializer extends GenericInitializer<TItem>>(container: Container, map: Map<Container, Map<string, TItem>>, initializers: Map<string, TInitializer>, force?: boolean): Promise<Map<string, TItem>>;
|
package/types/export-types.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export type * from "./Core/Interfaces/IBounds.js";
|
|
|
3
3
|
export type * from "./Core/Interfaces/IBubbleParticleData.js";
|
|
4
4
|
export type * from "./Core/Interfaces/ICircleBouncer.js";
|
|
5
5
|
export type * from "./Core/Interfaces/IColorManager.js";
|
|
6
|
-
export type * from "./Core/Interfaces/IContainerInteractivity.js";
|
|
7
6
|
export type * from "./Core/Interfaces/IContainerPlugin.js";
|
|
8
7
|
export type * from "./Core/Interfaces/ICoordinates.js";
|
|
9
8
|
export type * from "./Core/Interfaces/IDelta.js";
|
|
@@ -11,10 +10,7 @@ export type * from "./Core/Interfaces/IDimension.js";
|
|
|
11
10
|
export type * from "./Core/Interfaces/IDistance.js";
|
|
12
11
|
export type * from "./Core/Interfaces/IDrawParticleParams.js";
|
|
13
12
|
export type * from "./Core/Interfaces/IEffectDrawer.js";
|
|
14
|
-
export type * from "./Core/Interfaces/IExternalInteractor.js";
|
|
15
|
-
export type * from "./Core/Interfaces/IInteractor.js";
|
|
16
13
|
export type * from "./Core/Interfaces/ILoadParams.js";
|
|
17
|
-
export type * from "./Core/Interfaces/IMouseData.js";
|
|
18
14
|
export type * from "./Core/Interfaces/IMovePathGenerator.js";
|
|
19
15
|
export type * from "./Core/Interfaces/IParticleColorStyle.js";
|
|
20
16
|
export type * from "./Core/Interfaces/IParticleHslAnimation.js";
|
|
@@ -25,7 +21,6 @@ export type * from "./Core/Interfaces/IParticleRoll.js";
|
|
|
25
21
|
export type * from "./Core/Interfaces/IParticleTransformValues.js";
|
|
26
22
|
export type * from "./Core/Interfaces/IParticleUpdater.js";
|
|
27
23
|
export type * from "./Core/Interfaces/IParticleValueAnimation.js";
|
|
28
|
-
export type * from "./Core/Interfaces/IParticlesInteractor.js";
|
|
29
24
|
export type * from "./Core/Interfaces/IPlugin.js";
|
|
30
25
|
export type * from "./Core/Interfaces/IPositionFromSizeParams.js";
|
|
31
26
|
export type * from "./Core/Interfaces/IRangeValue.js";
|
|
@@ -40,21 +35,11 @@ export type * from "./Options/Interfaces/IAnimatableColor.js";
|
|
|
40
35
|
export type * from "./Options/Interfaces/IAnimation.js";
|
|
41
36
|
export type * from "./Options/Interfaces/IColorAnimation.js";
|
|
42
37
|
export type * from "./Options/Interfaces/IHslAnimation.js";
|
|
43
|
-
export type * from "./Options/Interfaces/IManualParticle.js";
|
|
44
38
|
export type * from "./Options/Interfaces/IOptionLoader.js";
|
|
45
39
|
export type * from "./Options/Interfaces/IOptions.js";
|
|
46
40
|
export type * from "./Options/Interfaces/IOptionsColor.js";
|
|
47
|
-
export type * from "./Options/Interfaces/
|
|
41
|
+
export type * from "./Options/Interfaces/IResizeEvent.js";
|
|
48
42
|
export type * from "./Options/Interfaces/IValueWithRandom.js";
|
|
49
|
-
export type * from "./Options/Interfaces/Interactivity/Events/IClickEvent.js";
|
|
50
|
-
export type * from "./Options/Interfaces/Interactivity/Events/IDivEvent.js";
|
|
51
|
-
export type * from "./Options/Interfaces/Interactivity/Events/IEvents.js";
|
|
52
|
-
export type * from "./Options/Interfaces/Interactivity/Events/IHoverEvent.js";
|
|
53
|
-
export type * from "./Options/Interfaces/Interactivity/Events/IParallax.js";
|
|
54
|
-
export type * from "./Options/Interfaces/Interactivity/Events/IResizeEvent.js";
|
|
55
|
-
export type * from "./Options/Interfaces/Interactivity/Modes/IModeDiv.js";
|
|
56
|
-
export type * from "./Options/Interfaces/Interactivity/Modes/IModes.js";
|
|
57
|
-
export type * from "./Options/Interfaces/Interactivity/IInteractivity.js";
|
|
58
43
|
export type * from "./Options/Interfaces/Particles/Bounce/IParticlesBounce.js";
|
|
59
44
|
export type * from "./Options/Interfaces/Particles/Effect/IEffect.js";
|
|
60
45
|
export type * from "./Options/Interfaces/Particles/IParticlesOptions.js";
|
|
@@ -76,10 +61,10 @@ export type * from "./Options/Interfaces/Particles/Shape/IShape.js";
|
|
|
76
61
|
export type * from "./Options/Interfaces/Particles/Size/ISize.js";
|
|
77
62
|
export type * from "./Options/Interfaces/Particles/Size/ISizeAnimation.js";
|
|
78
63
|
export type * from "./Options/Interfaces/Particles/ZIndex/IZIndex.js";
|
|
79
|
-
export type * from "./Options/Interfaces/Theme/ITheme.js";
|
|
80
|
-
export type * from "./Options/Interfaces/Theme/IThemeDefault.js";
|
|
81
64
|
export type * from "./Types/CustomEventArgs.js";
|
|
82
65
|
export type * from "./Types/CustomEventListener.js";
|
|
66
|
+
export type * from "./Types/EasingFunction.js";
|
|
67
|
+
export type * from "./Types/EngineInitializers.js";
|
|
83
68
|
export type * from "./Types/ExportResult.js";
|
|
84
69
|
export type * from "./Types/ISourceOptions.js";
|
|
85
70
|
export type * from "./Types/ParticlesGroups.js";
|
|
@@ -89,7 +74,6 @@ export type * from "./Types/RecursivePartial.js";
|
|
|
89
74
|
export type * from "./Types/ShapeData.js";
|
|
90
75
|
export type * from "./Types/SingleOrMultiple.js";
|
|
91
76
|
export type { EventListeners } from "./Core/Utils/EventListeners.js";
|
|
92
|
-
export type { InteractionManager } from "./Core/Utils/InteractionManager.js";
|
|
93
77
|
export type { QuadTree } from "./Core/Utils/QuadTree.js";
|
|
94
78
|
export type { Canvas } from "./Core/Canvas.js";
|
|
95
79
|
export type { Container } from "./Core/Container.js";
|