@tsparticles/engine 4.0.0-alpha.0 → 4.0.0-alpha.14
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/219.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/scripts/install.js +219 -195
- 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,12 +0,0 @@
|
|
|
1
|
-
import type { IDelta } from "./IDelta.js";
|
|
2
|
-
import type { IInteractor } from "./IInteractor.js";
|
|
3
|
-
import type { IModes } from "../../Options/Interfaces/Interactivity/Modes/IModes.js";
|
|
4
|
-
import type { Modes } from "../../Options/Classes/Interactivity/Modes/Modes.js";
|
|
5
|
-
import type { Particle } from "../Particle.js";
|
|
6
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
7
|
-
export interface IExternalInteractor<TParticle extends Particle = Particle> extends IInteractor<TParticle> {
|
|
8
|
-
handleClickMode?: (mode: string) => void;
|
|
9
|
-
loadModeOptions?: (options: Modes, ...sources: RecursivePartial<IModes | undefined>[]) => void;
|
|
10
|
-
interact(delta: IDelta): void;
|
|
11
|
-
isEnabled(particle?: TParticle): boolean;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { IDelta } from "./IDelta.js";
|
|
2
|
-
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
3
|
-
import type { ISourceOptions } from "../../Types/ISourceOptions.js";
|
|
4
|
-
import type { InteractorType } from "../../Enums/Types/InteractorType.js";
|
|
5
|
-
import type { Options } from "../../Options/Classes/Options.js";
|
|
6
|
-
import type { Particle } from "../Particle.js";
|
|
7
|
-
import type { ParticlesOptions } from "../../Options/Classes/Particles/ParticlesOptions.js";
|
|
8
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
9
|
-
export interface IInteractor<TParticle extends Particle = Particle> {
|
|
10
|
-
loadOptions?: (options: Options, ...sources: (ISourceOptions | undefined)[]) => void;
|
|
11
|
-
loadParticlesOptions?: (options: ParticlesOptions, ...sources: (RecursivePartial<IParticlesOptions> | undefined)[]) => void;
|
|
12
|
-
type: InteractorType;
|
|
13
|
-
clear(particle: TParticle, delta: IDelta): void;
|
|
14
|
-
init(): void;
|
|
15
|
-
reset(particle: TParticle): void;
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { IDelta } from "./IDelta.js";
|
|
2
|
-
import type { IInteractor } from "./IInteractor.js";
|
|
3
|
-
import type { Particle } from "../Particle.js";
|
|
4
|
-
export interface IParticlesInteractor<TParticle extends Particle = Particle> extends IInteractor<TParticle> {
|
|
5
|
-
interact(particle: TParticle, delta: IDelta): void;
|
|
6
|
-
isEnabled(particle: TParticle): boolean;
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Container } from "../Container.js";
|
|
2
|
-
import type { IDelta } from "../Interfaces/IDelta.js";
|
|
3
|
-
import type { IExternalInteractor } from "../Interfaces/IExternalInteractor.js";
|
|
4
|
-
import { InteractorType } from "../../Enums/Types/InteractorType.js";
|
|
5
|
-
import type { Particle } from "../Particle.js";
|
|
6
|
-
export declare abstract class ExternalInteractorBase<TContainer extends Container = Container, TParticle extends Particle = Particle> implements IExternalInteractor<TParticle> {
|
|
7
|
-
type: InteractorType;
|
|
8
|
-
protected readonly container: TContainer;
|
|
9
|
-
protected constructor(container: TContainer);
|
|
10
|
-
abstract clear(particle: TParticle, delta: IDelta): void;
|
|
11
|
-
abstract init(): void;
|
|
12
|
-
abstract interact(delta: IDelta): void;
|
|
13
|
-
abstract isEnabled(particle?: TParticle): boolean;
|
|
14
|
-
abstract reset(particle: TParticle): void;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Container } from "../Container.js";
|
|
2
|
-
import type { Engine } from "../Engine.js";
|
|
3
|
-
import type { IDelta } from "../Interfaces/IDelta.js";
|
|
4
|
-
import type { Particle } from "../Particle.js";
|
|
5
|
-
export declare class InteractionManager {
|
|
6
|
-
private readonly container;
|
|
7
|
-
private readonly _engine;
|
|
8
|
-
private _externalInteractors;
|
|
9
|
-
private _interactors;
|
|
10
|
-
private _particleInteractors;
|
|
11
|
-
constructor(engine: Engine, container: Container);
|
|
12
|
-
externalInteract(delta: IDelta): void;
|
|
13
|
-
handleClickMode(mode: string): void;
|
|
14
|
-
init(): Promise<void>;
|
|
15
|
-
particlesInteract(particle: Particle, delta: IDelta): void;
|
|
16
|
-
reset(particle: Particle): void;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Container } from "../Container.js";
|
|
2
|
-
import type { IDelta } from "../Interfaces/IDelta.js";
|
|
3
|
-
import type { IParticlesInteractor } from "../Interfaces/IParticlesInteractor.js";
|
|
4
|
-
import { InteractorType } from "../../Enums/Types/InteractorType.js";
|
|
5
|
-
import type { Particle } from "../Particle.js";
|
|
6
|
-
export declare abstract class ParticlesInteractorBase<TContainer extends Container = Container, TParticle extends Particle = Particle> implements IParticlesInteractor<TParticle> {
|
|
7
|
-
type: InteractorType;
|
|
8
|
-
protected readonly container: TContainer;
|
|
9
|
-
protected constructor(container: TContainer);
|
|
10
|
-
abstract clear(particle: TParticle, delta: IDelta): void;
|
|
11
|
-
abstract init(): void;
|
|
12
|
-
abstract interact(particle: TParticle, delta: IDelta): void;
|
|
13
|
-
abstract isEnabled(particle: TParticle): boolean;
|
|
14
|
-
abstract reset(particle: TParticle): void;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IClickEvent } from "../../../Interfaces/Interactivity/Events/IClickEvent.js";
|
|
2
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
3
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
4
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
5
|
-
export declare class ClickEvent implements IClickEvent, IOptionLoader<IClickEvent> {
|
|
6
|
-
enable: boolean;
|
|
7
|
-
mode: SingleOrMultiple<string>;
|
|
8
|
-
constructor();
|
|
9
|
-
load(data?: RecursivePartial<IClickEvent>): void;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DivType } from "../../../../Enums/Types/DivType.js";
|
|
2
|
-
import type { IDivEvent } from "../../../Interfaces/Interactivity/Events/IDivEvent.js";
|
|
3
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
4
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
6
|
-
export declare class DivEvent implements IDivEvent, IOptionLoader<IDivEvent> {
|
|
7
|
-
enable: boolean;
|
|
8
|
-
mode: SingleOrMultiple<string>;
|
|
9
|
-
selectors: SingleOrMultiple<string>;
|
|
10
|
-
type: DivType | keyof typeof DivType;
|
|
11
|
-
constructor();
|
|
12
|
-
load(data?: RecursivePartial<IDivEvent>): void;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ClickEvent } from "./ClickEvent.js";
|
|
2
|
-
import { DivEvent } from "./DivEvent.js";
|
|
3
|
-
import { HoverEvent } from "./HoverEvent.js";
|
|
4
|
-
import type { IEvents } from "../../../Interfaces/Interactivity/Events/IEvents.js";
|
|
5
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
6
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
7
|
-
import { ResizeEvent } from "./ResizeEvent.js";
|
|
8
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
9
|
-
export declare class Events implements IEvents, IOptionLoader<IEvents> {
|
|
10
|
-
readonly onClick: ClickEvent;
|
|
11
|
-
onDiv: SingleOrMultiple<DivEvent>;
|
|
12
|
-
readonly onHover: HoverEvent;
|
|
13
|
-
readonly resize: ResizeEvent;
|
|
14
|
-
constructor();
|
|
15
|
-
load(data?: RecursivePartial<IEvents>): void;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IHoverEvent } from "../../../Interfaces/Interactivity/Events/IHoverEvent.js";
|
|
2
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
3
|
-
import { Parallax } from "./Parallax.js";
|
|
4
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
6
|
-
export declare class HoverEvent implements IHoverEvent, IOptionLoader<IHoverEvent> {
|
|
7
|
-
enable: boolean;
|
|
8
|
-
mode: SingleOrMultiple<string>;
|
|
9
|
-
readonly parallax: Parallax;
|
|
10
|
-
constructor();
|
|
11
|
-
load(data?: RecursivePartial<IHoverEvent>): void;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
2
|
-
import type { IParallax } from "../../../Interfaces/Interactivity/Events/IParallax.js";
|
|
3
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
4
|
-
export declare class Parallax implements IParallax, IOptionLoader<IParallax> {
|
|
5
|
-
enable: boolean;
|
|
6
|
-
force: number;
|
|
7
|
-
smooth: number;
|
|
8
|
-
constructor();
|
|
9
|
-
load(data?: RecursivePartial<IParallax>): void;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
2
|
-
import type { IResizeEvent } from "../../../Interfaces/Interactivity/Events/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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Container } from "../../../Core/Container.js";
|
|
2
|
-
import type { Engine } from "../../../Core/Engine.js";
|
|
3
|
-
import { Events } from "./Events/Events.js";
|
|
4
|
-
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity.js";
|
|
5
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
6
|
-
import { InteractivityDetect } from "../../../Enums/InteractivityDetect.js";
|
|
7
|
-
import { Modes } from "./Modes/Modes.js";
|
|
8
|
-
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
9
|
-
export declare class Interactivity implements IInteractivity, IOptionLoader<IInteractivity> {
|
|
10
|
-
[name: string]: unknown;
|
|
11
|
-
detectsOn: InteractivityDetect | keyof typeof InteractivityDetect;
|
|
12
|
-
readonly events: Events;
|
|
13
|
-
readonly modes: Modes;
|
|
14
|
-
constructor(engine: Engine, container?: Container);
|
|
15
|
-
load(data?: RecursivePartial<IInteractivity>): void;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Container } from "../../../../Core/Container.js";
|
|
2
|
-
import type { Engine } from "../../../../Core/Engine.js";
|
|
3
|
-
import type { IModes } from "../../../Interfaces/Interactivity/Modes/IModes.js";
|
|
4
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
5
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
6
|
-
export declare class Modes implements IModes, IOptionLoader<IModes> {
|
|
7
|
-
[name: string]: unknown;
|
|
8
|
-
private readonly _container;
|
|
9
|
-
private readonly _engine;
|
|
10
|
-
constructor(engine: Engine, container?: Container);
|
|
11
|
-
load(data?: RecursivePartial<IModes>): void;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ICoordinatesWithMode } from "../../Core/Interfaces/ICoordinates.js";
|
|
2
|
-
import type { IManualParticle } from "../Interfaces/IManualParticle.js";
|
|
3
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
4
|
-
import type { IParticlesOptions } from "../Interfaces/Particles/IParticlesOptions.js";
|
|
5
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
6
|
-
export declare class ManualParticle implements IManualParticle, IOptionLoader<IManualParticle> {
|
|
7
|
-
options?: RecursivePartial<IParticlesOptions>;
|
|
8
|
-
position?: ICoordinatesWithMode;
|
|
9
|
-
load(data?: RecursivePartial<IManualParticle>): void;
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
2
|
-
import type { IResponsive } from "../Interfaces/IResponsive.js";
|
|
3
|
-
import type { ISourceOptions } from "../../Types/ISourceOptions.js";
|
|
4
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
|
-
import { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode.js";
|
|
6
|
-
export declare class Responsive implements IResponsive, IOptionLoader<IResponsive> {
|
|
7
|
-
maxWidth: number;
|
|
8
|
-
mode: ResponsiveMode | keyof typeof ResponsiveMode;
|
|
9
|
-
options: ISourceOptions;
|
|
10
|
-
constructor();
|
|
11
|
-
load(data?: RecursivePartial<IResponsive>): void;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
2
|
-
import type { ISourceOptions } from "../../../Types/ISourceOptions.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
|
-
export declare class Theme implements ITheme, IOptionLoader<ITheme> {
|
|
7
|
-
readonly default: ThemeDefault;
|
|
8
|
-
name: string;
|
|
9
|
-
options?: ISourceOptions;
|
|
10
|
-
constructor();
|
|
11
|
-
load(data?: RecursivePartial<ITheme>): void;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
export declare class ThemeDefault implements IThemeDefault, IOptionLoader<IThemeDefault> {
|
|
6
|
-
auto: boolean;
|
|
7
|
-
mode: ThemeMode | keyof typeof ThemeMode;
|
|
8
|
-
value: boolean;
|
|
9
|
-
constructor();
|
|
10
|
-
load(data?: RecursivePartial<IThemeDefault>): void;
|
|
11
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ICoordinatesWithMode } from "../../Core/Interfaces/ICoordinates.js";
|
|
2
|
-
import type { IParticlesOptions } from "./Particles/IParticlesOptions.js";
|
|
3
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
4
|
-
export interface IManualParticle {
|
|
5
|
-
options?: RecursivePartial<IParticlesOptions>;
|
|
6
|
-
position?: ICoordinatesWithMode;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ISourceOptions } from "../../Types/ISourceOptions.js";
|
|
2
|
-
import type { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode.js";
|
|
3
|
-
export interface IResponsive {
|
|
4
|
-
maxWidth: number;
|
|
5
|
-
mode: ResponsiveMode | keyof typeof ResponsiveMode;
|
|
6
|
-
options: ISourceOptions;
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DivType } from "../../../../Enums/Types/DivType.js";
|
|
2
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
3
|
-
export interface IDivEvent {
|
|
4
|
-
enable: boolean;
|
|
5
|
-
mode: SingleOrMultiple<string>;
|
|
6
|
-
selectors: SingleOrMultiple<string>;
|
|
7
|
-
type: DivType | keyof typeof DivType;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IClickEvent } from "./IClickEvent.js";
|
|
2
|
-
import type { IDivEvent } from "./IDivEvent.js";
|
|
3
|
-
import type { IHoverEvent } from "./IHoverEvent.js";
|
|
4
|
-
import type { IResizeEvent } from "./IResizeEvent.js";
|
|
5
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
6
|
-
export interface IEvents {
|
|
7
|
-
onClick: IClickEvent;
|
|
8
|
-
onDiv: SingleOrMultiple<IDivEvent>;
|
|
9
|
-
onHover: IHoverEvent;
|
|
10
|
-
resize: IResizeEvent;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IEvents } from "./Events/IEvents.js";
|
|
2
|
-
import type { IModes } from "./Modes/IModes.js";
|
|
3
|
-
import type { InteractivityDetect } from "../../../Enums/InteractivityDetect.js";
|
|
4
|
-
export interface IInteractivity {
|
|
5
|
-
[name: string]: unknown;
|
|
6
|
-
detectsOn: InteractivityDetect | keyof typeof InteractivityDetect;
|
|
7
|
-
events: IEvents;
|
|
8
|
-
modes: IModes;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type IModes = Record<string, unknown>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../../Enums/Types/InteractorType.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ExternalInteractorBase = void 0;
|
|
13
|
-
const InteractorType_js_1 = require("../../Enums/Types/InteractorType.js");
|
|
14
|
-
class ExternalInteractorBase {
|
|
15
|
-
constructor(container) {
|
|
16
|
-
this.type = InteractorType_js_1.InteractorType.external;
|
|
17
|
-
this.container = container;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.ExternalInteractorBase = ExternalInteractorBase;
|
|
21
|
-
});
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../../Enums/Types/InteractorType.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InteractionManager = void 0;
|
|
13
|
-
const InteractorType_js_1 = require("../../Enums/Types/InteractorType.js");
|
|
14
|
-
class InteractionManager {
|
|
15
|
-
constructor(engine, container) {
|
|
16
|
-
this.container = container;
|
|
17
|
-
this._engine = engine;
|
|
18
|
-
this._interactors = [];
|
|
19
|
-
this._externalInteractors = [];
|
|
20
|
-
this._particleInteractors = [];
|
|
21
|
-
}
|
|
22
|
-
externalInteract(delta) {
|
|
23
|
-
for (const interactor of this._externalInteractors) {
|
|
24
|
-
if (interactor.isEnabled()) {
|
|
25
|
-
interactor.interact(delta);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
handleClickMode(mode) {
|
|
30
|
-
for (const interactor of this._externalInteractors) {
|
|
31
|
-
interactor.handleClickMode?.(mode);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
async init() {
|
|
35
|
-
this._interactors = await this._engine.getInteractors(this.container, true);
|
|
36
|
-
this._externalInteractors = [];
|
|
37
|
-
this._particleInteractors = [];
|
|
38
|
-
for (const interactor of this._interactors) {
|
|
39
|
-
switch (interactor.type) {
|
|
40
|
-
case InteractorType_js_1.InteractorType.external:
|
|
41
|
-
this._externalInteractors.push(interactor);
|
|
42
|
-
break;
|
|
43
|
-
case InteractorType_js_1.InteractorType.particles:
|
|
44
|
-
this._particleInteractors.push(interactor);
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
interactor.init();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
particlesInteract(particle, delta) {
|
|
51
|
-
for (const interactor of this._externalInteractors) {
|
|
52
|
-
interactor.clear(particle, delta);
|
|
53
|
-
}
|
|
54
|
-
for (const interactor of this._particleInteractors) {
|
|
55
|
-
if (interactor.isEnabled(particle)) {
|
|
56
|
-
interactor.interact(particle, delta);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
reset(particle) {
|
|
61
|
-
for (const interactor of this._externalInteractors) {
|
|
62
|
-
if (interactor.isEnabled()) {
|
|
63
|
-
interactor.reset(particle);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
for (const interactor of this._particleInteractors) {
|
|
67
|
-
if (interactor.isEnabled(particle)) {
|
|
68
|
-
interactor.reset(particle);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.InteractionManager = InteractionManager;
|
|
74
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../../Enums/Types/InteractorType.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ParticlesInteractorBase = void 0;
|
|
13
|
-
const InteractorType_js_1 = require("../../Enums/Types/InteractorType.js");
|
|
14
|
-
class ParticlesInteractorBase {
|
|
15
|
-
constructor(container) {
|
|
16
|
-
this.type = InteractorType_js_1.InteractorType.particles;
|
|
17
|
-
this.container = container;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.ParticlesInteractorBase = ParticlesInteractorBase;
|
|
21
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InteractivityDetect = void 0;
|
|
13
|
-
var InteractivityDetect;
|
|
14
|
-
(function (InteractivityDetect) {
|
|
15
|
-
InteractivityDetect["canvas"] = "canvas";
|
|
16
|
-
InteractivityDetect["parent"] = "parent";
|
|
17
|
-
InteractivityDetect["window"] = "window";
|
|
18
|
-
})(InteractivityDetect || (exports.InteractivityDetect = InteractivityDetect = {}));
|
|
19
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResponsiveMode = void 0;
|
|
13
|
-
var ResponsiveMode;
|
|
14
|
-
(function (ResponsiveMode) {
|
|
15
|
-
ResponsiveMode["screen"] = "screen";
|
|
16
|
-
ResponsiveMode["canvas"] = "canvas";
|
|
17
|
-
})(ResponsiveMode || (exports.ResponsiveMode = ResponsiveMode = {}));
|
|
18
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ThemeMode = void 0;
|
|
13
|
-
var ThemeMode;
|
|
14
|
-
(function (ThemeMode) {
|
|
15
|
-
ThemeMode["any"] = "any";
|
|
16
|
-
ThemeMode["dark"] = "dark";
|
|
17
|
-
ThemeMode["light"] = "light";
|
|
18
|
-
})(ThemeMode || (exports.ThemeMode = ThemeMode = {}));
|
|
19
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DivType = void 0;
|
|
13
|
-
var DivType;
|
|
14
|
-
(function (DivType) {
|
|
15
|
-
DivType["circle"] = "circle";
|
|
16
|
-
DivType["rectangle"] = "rectangle";
|
|
17
|
-
})(DivType || (exports.DivType = DivType = {}));
|
|
18
|
-
});
|