@tsparticles/engine 3.0.0-alpha.1 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +244 -188
- package/browser/Core/Canvas.js +273 -243
- package/browser/Core/Container.js +97 -113
- package/browser/Core/Engine.js +271 -0
- package/browser/Core/Particle.js +165 -172
- package/browser/Core/Particles.js +153 -148
- package/browser/Core/Retina.js +17 -15
- package/browser/Core/Utils/Circle.js +12 -8
- package/browser/Core/Utils/Constants.js +4 -3
- package/browser/Core/Utils/EventListeners.js +259 -235
- package/browser/Core/Utils/InteractionManager.js +6 -16
- package/browser/Core/Utils/QuadTree.js +17 -23
- package/browser/Core/Utils/Rectangle.js +2 -2
- package/browser/Core/Utils/Vector.js +1 -1
- package/browser/Core/Utils/Vector3d.js +17 -9
- package/browser/Options/Classes/AnimatableColor.js +4 -3
- package/browser/Options/Classes/AnimationOptions.js +5 -4
- package/browser/Options/Classes/Background/Background.js +1 -1
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +1 -1
- package/browser/Options/Classes/ColorAnimation.js +5 -1
- package/browser/Options/Classes/HslAnimation.js +1 -1
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/browser/Options/Classes/Interactivity/Events/Events.js +9 -28
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +1 -1
- package/browser/Options/Classes/Interactivity/Interactivity.js +3 -10
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/browser/Options/Classes/ManualParticle.js +6 -7
- package/browser/Options/Classes/Options.js +28 -48
- package/browser/Options/Classes/OptionsColor.js +3 -2
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +1 -1
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +1 -1
- package/browser/Options/Classes/Particles/Collisions/Collisions.js +8 -3
- package/browser/Options/Classes/Particles/Move/Move.js +20 -50
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +1 -1
- package/browser/Options/Classes/Particles/Move/MoveAttract.js +10 -21
- package/browser/Options/Classes/Particles/Move/MoveGravity.js +1 -1
- package/browser/Options/Classes/Particles/Move/MoveTrail.js +3 -9
- package/browser/Options/Classes/Particles/Move/MoveTrailFill.js +1 -1
- package/browser/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/browser/Options/Classes/Particles/Move/Path/MovePath.js +2 -2
- package/browser/Options/Classes/Particles/Move/Spin.js +5 -3
- package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +3 -10
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +12 -8
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -10
- package/browser/Options/Classes/Particles/ParticlesOptions.js +18 -23
- package/browser/Options/Classes/Particles/Shadow.js +1 -1
- package/browser/Options/Classes/Particles/Shape/Shape.js +10 -11
- package/browser/Options/Classes/Particles/Size/Size.js +12 -8
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +1 -10
- package/browser/Options/Classes/Particles/Stroke.js +2 -2
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +1 -1
- package/browser/Options/Classes/Responsive.js +1 -1
- package/browser/Options/Classes/Theme/Theme.js +2 -2
- package/browser/Options/Classes/ValueWithRandom.js +6 -19
- package/browser/Utils/CanvasUtils.js +19 -55
- package/browser/Utils/ColorUtils.js +18 -20
- package/browser/Utils/EventDispatcher.js +7 -6
- package/browser/Utils/HslColorManager.js +4 -6
- package/browser/Utils/NumberUtils.js +42 -46
- package/browser/Utils/OptionsUtils.js +1 -1
- package/browser/Utils/RgbColorManager.js +3 -5
- package/browser/Utils/Utils.js +135 -64
- package/browser/bundle.js +4 -97
- package/browser/export-types.js +97 -0
- package/browser/exports.js +89 -0
- package/browser/index.js +8 -199
- package/browser/init.js +12 -0
- package/browser/package.json +1 -0
- package/cjs/Core/Canvas.js +278 -248
- package/cjs/Core/Container.js +104 -120
- package/cjs/Core/Engine.js +275 -0
- package/cjs/Core/Particle.js +173 -180
- package/cjs/Core/Particles.js +154 -149
- package/cjs/Core/Retina.js +20 -18
- package/cjs/Core/Utils/Circle.js +14 -10
- package/cjs/Core/Utils/Constants.js +5 -4
- package/cjs/Core/Utils/EventListeners.js +267 -243
- package/cjs/Core/Utils/InteractionManager.js +6 -16
- package/cjs/Core/Utils/QuadTree.js +20 -26
- package/cjs/Core/Utils/Rectangle.js +4 -4
- package/cjs/Core/Utils/Vector.js +2 -2
- package/cjs/Core/Utils/Vector3d.js +17 -9
- package/cjs/Options/Classes/AnimatableColor.js +6 -5
- package/cjs/Options/Classes/AnimationOptions.js +8 -7
- package/cjs/Options/Classes/Background/Background.js +3 -3
- package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +4 -3
- package/cjs/Options/Classes/BackgroundMask/BackgroundMaskCover.js +3 -3
- package/cjs/Options/Classes/ColorAnimation.js +9 -5
- package/cjs/Options/Classes/HslAnimation.js +4 -4
- package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/cjs/Options/Classes/Interactivity/Events/Events.js +15 -34
- package/cjs/Options/Classes/Interactivity/Events/HoverEvent.js +2 -2
- package/cjs/Options/Classes/Interactivity/Interactivity.js +5 -12
- package/cjs/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/cjs/Options/Classes/ManualParticle.js +7 -8
- package/cjs/Options/Classes/Options.js +41 -61
- package/cjs/Options/Classes/OptionsColor.js +3 -2
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounce.js +3 -3
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +2 -2
- package/cjs/Options/Classes/Particles/Collisions/Collisions.js +11 -6
- package/cjs/Options/Classes/Particles/Move/Move.js +31 -61
- package/cjs/Options/Classes/Particles/Move/MoveAngle.js +3 -3
- package/cjs/Options/Classes/Particles/Move/MoveAttract.js +11 -22
- package/cjs/Options/Classes/Particles/Move/MoveGravity.js +3 -3
- package/cjs/Options/Classes/Particles/Move/MoveTrail.js +4 -10
- package/cjs/Options/Classes/Particles/Move/MoveTrailFill.js +2 -2
- package/cjs/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/cjs/Options/Classes/Particles/Move/Path/MovePath.js +4 -4
- package/cjs/Options/Classes/Particles/Move/Spin.js +6 -4
- package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +4 -11
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +13 -9
- package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -11
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +32 -37
- package/cjs/Options/Classes/Particles/Shadow.js +3 -3
- package/cjs/Options/Classes/Particles/Shape/Shape.js +10 -11
- package/cjs/Options/Classes/Particles/Size/Size.js +13 -9
- package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +2 -11
- package/cjs/Options/Classes/Particles/Stroke.js +5 -5
- package/cjs/Options/Classes/Particles/ZIndex/ZIndex.js +2 -2
- package/cjs/Options/Classes/Responsive.js +2 -2
- package/cjs/Options/Classes/Theme/Theme.js +4 -4
- package/cjs/Options/Classes/ValueWithRandom.js +10 -23
- package/cjs/Utils/CanvasUtils.js +23 -60
- package/cjs/Utils/ColorUtils.js +31 -33
- package/cjs/Utils/EventDispatcher.js +7 -6
- package/cjs/Utils/HslColorManager.js +11 -13
- package/cjs/Utils/NumberUtils.js +44 -48
- package/cjs/Utils/OptionsUtils.js +2 -2
- package/cjs/Utils/RgbColorManager.js +7 -9
- package/cjs/Utils/Utils.js +157 -77
- package/cjs/bundle.js +4 -97
- package/cjs/export-types.js +113 -0
- package/cjs/exports.js +105 -0
- package/cjs/index.js +8 -199
- package/cjs/init.js +16 -0
- package/cjs/package.json +1 -0
- package/esm/Core/Canvas.js +273 -243
- package/esm/Core/Container.js +97 -113
- package/esm/Core/Engine.js +271 -0
- package/esm/Core/Particle.js +165 -172
- package/esm/Core/Particles.js +153 -148
- package/esm/Core/Retina.js +17 -15
- package/esm/Core/Utils/Circle.js +12 -8
- package/esm/Core/Utils/Constants.js +4 -3
- package/esm/Core/Utils/EventListeners.js +259 -235
- package/esm/Core/Utils/InteractionManager.js +6 -16
- package/esm/Core/Utils/QuadTree.js +17 -23
- package/esm/Core/Utils/Rectangle.js +2 -2
- package/esm/Core/Utils/Vector.js +1 -1
- package/esm/Core/Utils/Vector3d.js +17 -9
- package/esm/Options/Classes/AnimatableColor.js +4 -3
- package/esm/Options/Classes/AnimationOptions.js +5 -4
- package/esm/Options/Classes/Background/Background.js +1 -1
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
- package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.js +1 -1
- package/esm/Options/Classes/ColorAnimation.js +5 -1
- package/esm/Options/Classes/HslAnimation.js +1 -1
- package/esm/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/esm/Options/Classes/Interactivity/Events/Events.js +9 -28
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.js +1 -1
- package/esm/Options/Classes/Interactivity/Interactivity.js +3 -10
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/esm/Options/Classes/ManualParticle.js +6 -7
- package/esm/Options/Classes/Options.js +28 -48
- package/esm/Options/Classes/OptionsColor.js +3 -2
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounce.js +1 -1
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +1 -1
- package/esm/Options/Classes/Particles/Collisions/Collisions.js +8 -3
- package/esm/Options/Classes/Particles/Move/Move.js +20 -50
- package/esm/Options/Classes/Particles/Move/MoveAngle.js +1 -1
- package/esm/Options/Classes/Particles/Move/MoveAttract.js +10 -21
- package/esm/Options/Classes/Particles/Move/MoveGravity.js +1 -1
- package/esm/Options/Classes/Particles/Move/MoveTrail.js +3 -9
- package/esm/Options/Classes/Particles/Move/MoveTrailFill.js +1 -1
- package/esm/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/esm/Options/Classes/Particles/Move/Path/MovePath.js +2 -2
- package/esm/Options/Classes/Particles/Move/Spin.js +5 -3
- package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +3 -10
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +12 -8
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -10
- package/esm/Options/Classes/Particles/ParticlesOptions.js +18 -23
- package/esm/Options/Classes/Particles/Shadow.js +1 -1
- package/esm/Options/Classes/Particles/Shape/Shape.js +10 -11
- package/esm/Options/Classes/Particles/Size/Size.js +12 -8
- package/esm/Options/Classes/Particles/Size/SizeAnimation.js +1 -10
- package/esm/Options/Classes/Particles/Stroke.js +2 -2
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.js +1 -1
- package/esm/Options/Classes/Responsive.js +1 -1
- package/esm/Options/Classes/Theme/Theme.js +2 -2
- package/esm/Options/Classes/ValueWithRandom.js +6 -19
- package/esm/Utils/CanvasUtils.js +19 -55
- package/esm/Utils/ColorUtils.js +18 -20
- package/esm/Utils/EventDispatcher.js +7 -6
- package/esm/Utils/HslColorManager.js +4 -6
- package/esm/Utils/NumberUtils.js +42 -46
- package/esm/Utils/OptionsUtils.js +1 -1
- package/esm/Utils/RgbColorManager.js +3 -5
- package/esm/Utils/Utils.js +135 -64
- package/esm/bundle.js +4 -97
- package/esm/export-types.js +97 -0
- package/esm/exports.js +89 -0
- package/esm/index.js +8 -199
- package/esm/init.js +12 -0
- package/esm/package.json +1 -0
- package/package.json +21 -4
- package/report.html +4 -4
- package/scripts/install.js +90 -33
- package/tsparticles.engine.js +1832 -2007
- package/tsparticles.engine.min.js +1 -1
- package/tsparticles.engine.min.js.LICENSE.txt +1 -10
- package/types/Core/Canvas.d.ts +25 -21
- package/types/Core/Container.d.ts +21 -25
- package/types/Core/Engine.d.ts +71 -0
- package/types/Core/Interfaces/Colors.d.ts +2 -2
- package/types/Core/Interfaces/IBubbleParticleData.d.ts +1 -1
- package/types/Core/Interfaces/ICircleBouncer.d.ts +2 -2
- package/types/Core/Interfaces/IColorManager.d.ts +1 -1
- package/types/Core/Interfaces/IContainerInteractivity.d.ts +1 -1
- package/types/Core/Interfaces/IContainerPlugin.d.ts +8 -6
- package/types/Core/Interfaces/ICoordinates.d.ts +3 -3
- package/types/Core/Interfaces/IDimension.d.ts +2 -2
- package/types/Core/Interfaces/IDrawParticleParams.d.ts +6 -6
- package/types/Core/Interfaces/IExternalInteractor.d.ts +7 -7
- package/types/Core/Interfaces/IInteractor.d.ts +8 -8
- package/types/Core/Interfaces/ILoadParams.d.ts +2 -2
- package/types/Core/Interfaces/IMouseData.d.ts +1 -1
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +5 -4
- package/types/Core/Interfaces/IParticle.d.ts +11 -11
- package/types/Core/Interfaces/IParticleHslAnimation.d.ts +1 -1
- package/types/Core/Interfaces/IParticleMover.d.ts +2 -2
- package/types/Core/Interfaces/IParticleRetinaProps.d.ts +1 -1
- package/types/Core/Interfaces/IParticleRoll.d.ts +1 -1
- package/types/Core/Interfaces/IParticleUpdater.d.ts +7 -9
- package/types/Core/Interfaces/IParticleValueAnimation.d.ts +3 -1
- package/types/Core/Interfaces/IParticlesInteractor.d.ts +3 -3
- package/types/Core/Interfaces/IPlugin.d.ts +7 -6
- package/types/Core/Interfaces/IPositionFromSizeParams.d.ts +2 -2
- package/types/Core/Interfaces/IShapeDrawer.d.ts +1 -1
- package/types/Core/Interfaces/IShapeValues.d.ts +2 -2
- package/types/Core/Interfaces/ITrailFillData.d.ts +1 -1
- package/types/Core/Particle.d.ts +27 -27
- package/types/Core/Particles.d.ts +24 -21
- package/types/Core/Retina.d.ts +2 -2
- package/types/Core/Utils/Circle.d.ts +2 -2
- package/types/Core/Utils/Constants.d.ts +4 -3
- package/types/Core/Utils/EventListeners.d.ts +21 -19
- package/types/Core/Utils/ExternalInteractorBase.d.ts +5 -5
- package/types/Core/Utils/InteractionManager.d.ts +5 -5
- package/types/Core/Utils/ParticlesInteractorBase.d.ts +5 -5
- package/types/Core/Utils/Point.d.ts +2 -2
- package/types/Core/Utils/QuadTree.d.ts +8 -11
- package/types/Core/Utils/Range.d.ts +1 -1
- package/types/Core/Utils/Rectangle.d.ts +3 -3
- package/types/Core/Utils/Vector.d.ts +2 -2
- package/types/Core/Utils/Vector3d.d.ts +3 -2
- package/types/Enums/Modes/{SizeMode.d.ts → PixelMode.d.ts} +1 -1
- package/types/Options/Classes/AnimatableColor.d.ts +6 -6
- package/types/Options/Classes/AnimationOptions.d.ts +7 -7
- package/types/Options/Classes/Background/Background.d.ts +4 -4
- package/types/Options/Classes/BackgroundMask/BackgroundMask.d.ts +4 -4
- package/types/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +4 -4
- package/types/Options/Classes/ColorAnimation.d.ts +5 -4
- package/types/Options/Classes/FullScreen/FullScreen.d.ts +3 -3
- package/types/Options/Classes/HslAnimation.d.ts +4 -4
- package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +5 -5
- package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +6 -12
- package/types/Options/Classes/Interactivity/Events/Events.d.ts +8 -14
- package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +6 -6
- package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +3 -3
- package/types/Options/Classes/Interactivity/Events/ResizeEvent.d.ts +3 -3
- package/types/Options/Classes/Interactivity/Interactivity.d.ts +8 -10
- package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +5 -5
- package/types/Options/Classes/ManualParticle.d.ts +5 -5
- package/types/Options/Classes/Options.d.ts +19 -26
- package/types/Options/Classes/OptionsColor.d.ts +5 -5
- package/types/Options/Classes/Particles/Bounce/ParticlesBounce.d.ts +4 -4
- package/types/Options/Classes/Particles/Bounce/ParticlesBounceFactor.d.ts +1 -1
- package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +9 -7
- package/types/Options/Classes/Particles/Collisions/CollisionsAbsorb.d.ts +3 -3
- package/types/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +3 -3
- package/types/Options/Classes/Particles/Move/Move.d.ts +15 -26
- package/types/Options/Classes/Particles/Move/MoveAngle.d.ts +4 -4
- package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +5 -9
- package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +5 -5
- package/types/Options/Classes/Particles/Move/MoveGravity.d.ts +4 -4
- package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +4 -7
- package/types/Options/Classes/Particles/Move/MoveTrailFill.d.ts +4 -4
- package/types/Options/Classes/Particles/Move/OutModes.d.ts +5 -5
- package/types/Options/Classes/Particles/Move/Path/MovePath.d.ts +5 -5
- package/types/Options/Classes/Particles/Move/Spin.d.ts +5 -5
- package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +3 -9
- package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +4 -6
- package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +7 -7
- package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +5 -7
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +19 -19
- package/types/Options/Classes/Particles/Shadow.d.ts +5 -5
- package/types/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/types/Options/Classes/Particles/Size/Size.d.ts +7 -7
- package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +5 -7
- package/types/Options/Classes/Particles/Stroke.d.ts +5 -5
- package/types/Options/Classes/Particles/ZIndex/ZIndex.d.ts +4 -4
- package/types/Options/Classes/Random.d.ts +3 -3
- package/types/Options/Classes/Responsive.d.ts +7 -7
- package/types/Options/Classes/Theme/Theme.d.ts +6 -6
- package/types/Options/Classes/Theme/ThemeDefault.d.ts +4 -4
- package/types/Options/Classes/ValueWithRandom.d.ts +7 -11
- package/types/Options/Interfaces/Background/IBackground.d.ts +1 -1
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +2 -2
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +1 -1
- package/types/Options/Interfaces/IAnimatable.d.ts +1 -1
- package/types/Options/Interfaces/IAnimatableColor.d.ts +3 -3
- package/types/Options/Interfaces/IAnimation.d.ts +4 -4
- package/types/Options/Interfaces/IColorAnimation.d.ts +2 -2
- package/types/Options/Interfaces/IHslAnimation.d.ts +1 -1
- package/types/Options/Interfaces/IManualParticle.d.ts +3 -3
- package/types/Options/Interfaces/IOptionLoader.d.ts +1 -1
- package/types/Options/Interfaces/IOptions.d.ts +12 -15
- package/types/Options/Interfaces/IOptionsColor.d.ts +1 -1
- package/types/Options/Interfaces/IResponsive.d.ts +5 -4
- package/types/Options/Interfaces/IValueWithRandom.d.ts +3 -3
- package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +2 -2
- package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +3 -6
- package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +5 -8
- package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +3 -3
- package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +3 -4
- package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +1 -2
- package/types/Options/Interfaces/Particles/Bounce/IParticlesBounce.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +6 -4
- package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +15 -15
- package/types/Options/Interfaces/Particles/IShadow.d.ts +2 -2
- package/types/Options/Interfaces/Particles/IStroke.d.ts +5 -4
- package/types/Options/Interfaces/Particles/Move/IMove.d.ts +12 -17
- package/types/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +2 -4
- package/types/Options/Interfaces/Particles/Move/IMoveCenter.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +1 -3
- package/types/Options/Interfaces/Particles/Move/IMoveTrailFill.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IOutModes.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +2 -2
- package/types/Options/Interfaces/Particles/Move/Path/IMovePath.d.ts +2 -2
- package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +0 -3
- package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +1 -2
- package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +2 -3
- package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +2 -3
- package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +2 -2
- package/types/Options/Interfaces/Particles/Size/ISize.d.ts +2 -3
- package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +2 -3
- package/types/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +1 -1
- package/types/Options/Interfaces/Theme/ITheme.d.ts +4 -3
- package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +1 -1
- package/types/Types/CustomEventArgs.d.ts +1 -1
- package/types/Types/CustomEventListener.d.ts +1 -1
- package/types/Types/ExportResult.d.ts +5 -0
- package/types/Types/ISourceOptions.d.ts +2 -2
- package/types/Types/ParticlesGroups.d.ts +1 -1
- package/types/Types/RangeValue.d.ts +1 -1
- package/types/Types/ShapeData.d.ts +2 -2
- package/types/Types/ShapeDrawerFunctions.d.ts +3 -3
- package/types/Utils/CanvasUtils.d.ts +11 -14
- package/types/Utils/ColorUtils.d.ts +6 -6
- package/types/Utils/EventDispatcher.d.ts +2 -2
- package/types/Utils/HslColorManager.d.ts +2 -2
- package/types/Utils/NumberUtils.d.ts +8 -8
- package/types/Utils/OptionsUtils.d.ts +6 -6
- package/types/Utils/RgbColorManager.d.ts +2 -2
- package/types/Utils/Utils.d.ts +32 -14
- package/types/bundle.d.ts +2 -91
- package/types/export-types.d.ts +107 -0
- package/types/exports.d.ts +89 -0
- package/types/index.d.ts +3 -204
- package/types/init.d.ts +2 -0
- package/umd/Core/Canvas.js +279 -249
- package/umd/Core/Container.js +105 -121
- package/umd/Core/Engine.js +285 -0
- package/umd/Core/Particle.js +174 -181
- package/umd/Core/Particles.js +155 -150
- package/umd/Core/Retina.js +21 -19
- package/umd/Core/Utils/Circle.js +15 -11
- package/umd/Core/Utils/Constants.js +5 -4
- package/umd/Core/Utils/EventListeners.js +268 -244
- package/umd/Core/Utils/InteractionManager.js +6 -16
- package/umd/Core/Utils/QuadTree.js +21 -27
- package/umd/Core/Utils/Rectangle.js +5 -5
- package/umd/Core/Utils/Vector.js +3 -3
- package/umd/Core/Utils/Vector3d.js +18 -10
- package/umd/Options/Classes/AnimatableColor.js +7 -6
- package/umd/Options/Classes/AnimationOptions.js +9 -8
- package/umd/Options/Classes/Background/Background.js +4 -4
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +5 -4
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +4 -4
- package/umd/Options/Classes/ColorAnimation.js +10 -6
- package/umd/Options/Classes/HslAnimation.js +5 -5
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +1 -25
- package/umd/Options/Classes/Interactivity/Events/Events.js +16 -35
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +3 -3
- package/umd/Options/Classes/Interactivity/Interactivity.js +6 -13
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/umd/Options/Classes/ManualParticle.js +8 -9
- package/umd/Options/Classes/Options.js +42 -62
- package/umd/Options/Classes/OptionsColor.js +4 -3
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +4 -4
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +3 -3
- package/umd/Options/Classes/Particles/Collisions/Collisions.js +12 -7
- package/umd/Options/Classes/Particles/Move/Move.js +32 -62
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +4 -4
- package/umd/Options/Classes/Particles/Move/MoveAttract.js +12 -23
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +4 -4
- package/umd/Options/Classes/Particles/Move/MoveTrail.js +5 -11
- package/umd/Options/Classes/Particles/Move/MoveTrailFill.js +3 -3
- package/umd/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/umd/Options/Classes/Particles/Move/Path/MovePath.js +5 -5
- package/umd/Options/Classes/Particles/Move/Spin.js +7 -5
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +5 -12
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +14 -10
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +3 -12
- package/umd/Options/Classes/Particles/ParticlesOptions.js +33 -38
- package/umd/Options/Classes/Particles/Shadow.js +4 -4
- package/umd/Options/Classes/Particles/Shape/Shape.js +11 -12
- package/umd/Options/Classes/Particles/Size/Size.js +14 -10
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +3 -12
- package/umd/Options/Classes/Particles/Stroke.js +6 -6
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +3 -3
- package/umd/Options/Classes/Responsive.js +3 -3
- package/umd/Options/Classes/Theme/Theme.js +5 -5
- package/umd/Options/Classes/ValueWithRandom.js +11 -24
- package/umd/Utils/CanvasUtils.js +24 -61
- package/umd/Utils/ColorUtils.js +32 -34
- package/umd/Utils/EventDispatcher.js +7 -6
- package/umd/Utils/HslColorManager.js +12 -14
- package/umd/Utils/NumberUtils.js +45 -49
- package/umd/Utils/OptionsUtils.js +3 -3
- package/umd/Utils/RgbColorManager.js +8 -10
- package/umd/Utils/Utils.js +158 -78
- package/umd/bundle.js +5 -98
- package/umd/export-types.js +123 -0
- package/umd/exports.js +115 -0
- package/umd/index.js +9 -200
- package/umd/init.js +26 -0
- package/browser/Core/Utils/FrameManager.js +0 -42
- package/browser/Core/Utils/Plugins.js +0 -112
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
- package/browser/engine.js +0 -175
- package/cjs/Core/Utils/FrameManager.js +0 -46
- package/cjs/Core/Utils/Plugins.js +0 -116
- package/cjs/Enums/Modes/SizeMode.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -17
- package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +0 -2
- package/cjs/engine.js +0 -179
- package/esm/Core/Interfaces/IParticleOverride.js +0 -1
- package/esm/Core/Interfaces/IParticlesMover.js +0 -1
- package/esm/Core/Utils/FrameManager.js +0 -42
- package/esm/Core/Utils/Plugins.js +0 -112
- package/esm/Enums/Modes/SizeMode.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
- package/esm/engine.js +0 -175
- package/types/Core/Interfaces/IParticleOverride.d.ts +0 -6
- package/types/Core/Interfaces/IParticlesMover.d.ts +0 -7
- package/types/Core/Utils/FrameManager.d.ts +0 -6
- package/types/Core/Utils/Plugins.d.ts +0 -51
- package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
- package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
- package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
- package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
- package/types/engine.d.ts +0 -39
- package/umd/Core/Utils/FrameManager.js +0 -56
- package/umd/Core/Utils/Plugins.js +0 -126
- package/umd/Enums/Modes/SizeMode.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -27
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +0 -12
- package/umd/engine.js +0 -189
- /package/browser/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/browser/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
- /package/{browser/Enums/Modes/SizeMode.js → esm/Enums/Modes/PixelMode.js} +0 -0
- /package/{browser/Options/Interfaces/Particles/Shape/ICharacterShape.js → esm/Types/ExportResult.js} +0 -0
- /package/umd/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/umd/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import type { Container } from "../Container";
|
|
1
|
+
import type { Container } from "../Container.js";
|
|
2
2
|
export declare class EventListeners {
|
|
3
3
|
private readonly container;
|
|
4
|
-
private
|
|
5
|
-
private readonly
|
|
6
|
-
private
|
|
7
|
-
private
|
|
4
|
+
private _canPush;
|
|
5
|
+
private readonly _handlers;
|
|
6
|
+
private _resizeObserver?;
|
|
7
|
+
private _resizeTimeout?;
|
|
8
|
+
private readonly _touches;
|
|
8
9
|
constructor(container: Container);
|
|
9
10
|
addListeners(): void;
|
|
10
11
|
removeListeners(): void;
|
|
11
|
-
private _doMouseTouchClick;
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
12
|
+
private readonly _doMouseTouchClick;
|
|
13
|
+
private readonly _handleThemeChange;
|
|
14
|
+
private readonly _handleVisibilityChange;
|
|
15
|
+
private readonly _handleWindowResize;
|
|
16
|
+
private readonly _manageInteractivityListeners;
|
|
17
|
+
private readonly _manageListeners;
|
|
18
|
+
private readonly _manageMediaMatch;
|
|
19
|
+
private readonly _manageResize;
|
|
20
|
+
private readonly _mouseDown;
|
|
21
|
+
private readonly _mouseTouchClick;
|
|
22
|
+
private readonly _mouseTouchFinish;
|
|
23
|
+
private readonly _mouseTouchMove;
|
|
24
|
+
private readonly _touchEnd;
|
|
25
|
+
private readonly _touchEndClick;
|
|
26
|
+
private readonly _touchStart;
|
|
25
27
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Container } from "../Container";
|
|
2
|
-
import type { IDelta } from "../Interfaces/IDelta";
|
|
3
|
-
import type { IExternalInteractor } from "../Interfaces/IExternalInteractor";
|
|
4
|
-
import { InteractorType } from "../../Enums/Types/InteractorType";
|
|
5
|
-
import type { Particle } from "../Particle";
|
|
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
6
|
export declare abstract class ExternalInteractorBase<TContainer extends Container = Container> implements IExternalInteractor {
|
|
7
7
|
protected readonly container: TContainer;
|
|
8
8
|
type: InteractorType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ClickMode } from "../../Enums/Modes/ClickMode";
|
|
2
|
-
import type { Container } from "../Container";
|
|
3
|
-
import type { Engine } from "
|
|
4
|
-
import type { IDelta } from "../Interfaces/IDelta";
|
|
5
|
-
import type { Particle } from "../Particle";
|
|
1
|
+
import type { ClickMode } from "../../Enums/Modes/ClickMode.js";
|
|
2
|
+
import type { Container } from "../Container.js";
|
|
3
|
+
import type { Engine } from "../Engine.js";
|
|
4
|
+
import type { IDelta } from "../Interfaces/IDelta.js";
|
|
5
|
+
import type { Particle } from "../Particle.js";
|
|
6
6
|
export declare class InteractionManager {
|
|
7
7
|
private readonly container;
|
|
8
8
|
private readonly _engine;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Container } from "../Container";
|
|
2
|
-
import type { IDelta } from "../Interfaces/IDelta";
|
|
3
|
-
import type { IParticlesInteractor } from "../Interfaces/IParticlesInteractor";
|
|
4
|
-
import { InteractorType } from "../../Enums/Types/InteractorType";
|
|
5
|
-
import type { Particle } from "../Particle";
|
|
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
6
|
export declare abstract class ParticlesInteractorBase<TContainer extends Container = Container> implements IParticlesInteractor {
|
|
7
7
|
protected readonly container: TContainer;
|
|
8
8
|
type: InteractorType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICoordinates } from "../Interfaces/ICoordinates";
|
|
2
|
-
import type { Particle } from "../Particle";
|
|
1
|
+
import type { ICoordinates } from "../Interfaces/ICoordinates.js";
|
|
2
|
+
import type { Particle } from "../Particle.js";
|
|
3
3
|
export declare class Point {
|
|
4
4
|
readonly position: ICoordinates;
|
|
5
5
|
readonly particle: Particle;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import type { ICoordinates } from "../Interfaces/ICoordinates";
|
|
2
|
-
import type { IDimension } from "../Interfaces/IDimension";
|
|
3
|
-
import type { Particle } from "../Particle";
|
|
4
|
-
import type { Point } from "./Point";
|
|
5
|
-
import type { Range } from "./Range";
|
|
6
|
-
import { Rectangle } from "./Rectangle";
|
|
1
|
+
import type { ICoordinates } from "../Interfaces/ICoordinates.js";
|
|
2
|
+
import type { IDimension } from "../Interfaces/IDimension.js";
|
|
3
|
+
import type { Particle } from "../Particle.js";
|
|
4
|
+
import type { Point } from "./Point.js";
|
|
5
|
+
import type { Range } from "./Range.js";
|
|
6
|
+
import { Rectangle } from "./Rectangle.js";
|
|
7
7
|
export declare class QuadTree {
|
|
8
8
|
readonly rectangle: Rectangle;
|
|
9
9
|
readonly capacity: number;
|
|
10
|
-
private _NE?;
|
|
11
|
-
private _NW?;
|
|
12
|
-
private _SE?;
|
|
13
|
-
private _SW?;
|
|
14
10
|
private _divided;
|
|
15
11
|
private readonly _points;
|
|
12
|
+
private readonly _subs;
|
|
16
13
|
constructor(rectangle: Rectangle, capacity: number);
|
|
17
14
|
insert(point: Point): boolean;
|
|
18
15
|
query(range: Range, check?: (particle: Particle) => boolean, found?: Particle[]): Particle[];
|
|
19
16
|
queryCircle(position: ICoordinates, radius: number, check?: (particle: Particle) => boolean): Particle[];
|
|
20
17
|
queryRectangle(position: ICoordinates, size: IDimension, check?: (particle: Particle) => boolean): Particle[];
|
|
21
|
-
private
|
|
18
|
+
private readonly _subdivide;
|
|
22
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ICoordinates } from "../Interfaces/ICoordinates";
|
|
2
|
-
import type { IDimension } from "../Interfaces/IDimension";
|
|
3
|
-
import { Range } from "./Range";
|
|
1
|
+
import type { ICoordinates } from "../Interfaces/ICoordinates.js";
|
|
2
|
+
import type { IDimension } from "../Interfaces/IDimension.js";
|
|
3
|
+
import { Range } from "./Range.js";
|
|
4
4
|
export declare class Rectangle extends Range {
|
|
5
5
|
readonly size: IDimension;
|
|
6
6
|
constructor(x: number, y: number, width: number, height: number);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICoordinates } from "../Interfaces/ICoordinates";
|
|
2
|
-
import { Vector3d } from "./Vector3d";
|
|
1
|
+
import type { ICoordinates } from "../Interfaces/ICoordinates.js";
|
|
2
|
+
import { Vector3d } from "./Vector3d.js";
|
|
3
3
|
export declare class Vector extends Vector3d {
|
|
4
4
|
protected constructor(xOrCoords: number | ICoordinates, y?: number);
|
|
5
5
|
static get origin(): Vector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICoordinates, ICoordinates3d } from "../Interfaces/ICoordinates";
|
|
1
|
+
import type { ICoordinates, ICoordinates3d } from "../Interfaces/ICoordinates.js";
|
|
2
2
|
export declare class Vector3d implements ICoordinates3d {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
@@ -21,9 +21,10 @@ export declare class Vector3d implements ICoordinates3d {
|
|
|
21
21
|
getLengthSq(): number;
|
|
22
22
|
mult(n: number): Vector3d;
|
|
23
23
|
multTo(n: number): void;
|
|
24
|
+
normalize(): void;
|
|
24
25
|
rotate(angle: number): Vector3d;
|
|
25
26
|
setTo(c: ICoordinates): void;
|
|
26
27
|
sub(v: Vector3d): Vector3d;
|
|
27
28
|
subFrom(v: Vector3d): void;
|
|
28
|
-
private
|
|
29
|
+
private readonly _updateFromAngle;
|
|
29
30
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HslAnimation } from "./HslAnimation";
|
|
2
|
-
import type { IAnimatableColor } from "../Interfaces/IAnimatableColor";
|
|
3
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
|
-
import { OptionsColor } from "./OptionsColor";
|
|
5
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
6
|
-
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple";
|
|
1
|
+
import { HslAnimation } from "./HslAnimation.js";
|
|
2
|
+
import type { IAnimatableColor } from "../Interfaces/IAnimatableColor.js";
|
|
3
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
4
|
+
import { OptionsColor } from "./OptionsColor.js";
|
|
5
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
6
|
+
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
|
|
7
7
|
export declare class AnimatableColor extends OptionsColor implements IAnimatableColor, IOptionLoader<IAnimatableColor> {
|
|
8
8
|
animation: HslAnimation;
|
|
9
9
|
constructor();
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type { IAnimation, IRangedAnimation } from "../Interfaces/IAnimation";
|
|
2
|
-
import { AnimationMode } from "../../Enums/Modes/AnimationMode";
|
|
3
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
|
-
import type { RangeValue } from "../../Types/RangeValue";
|
|
5
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
6
|
-
import { StartValueType } from "../../Enums/Types/StartValueType";
|
|
1
|
+
import type { IAnimation, IRangedAnimation } from "../Interfaces/IAnimation.js";
|
|
2
|
+
import { AnimationMode } from "../../Enums/Modes/AnimationMode.js";
|
|
3
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
4
|
+
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
5
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
6
|
+
import { StartValueType } from "../../Enums/Types/StartValueType.js";
|
|
7
7
|
export declare class AnimationOptions implements IAnimation, IOptionLoader<IAnimation> {
|
|
8
8
|
count: RangeValue;
|
|
9
9
|
decay: RangeValue;
|
|
10
|
+
delay: RangeValue;
|
|
10
11
|
enable: boolean;
|
|
11
12
|
speed: RangeValue;
|
|
12
13
|
sync: boolean;
|
|
@@ -14,7 +15,6 @@ export declare class AnimationOptions implements IAnimation, IOptionLoader<IAnim
|
|
|
14
15
|
load(data?: RecursivePartial<IAnimation>): void;
|
|
15
16
|
}
|
|
16
17
|
export declare class RangedAnimationOptions extends AnimationOptions implements IOptionLoader<IRangedAnimation> {
|
|
17
|
-
minimumValue?: number;
|
|
18
18
|
mode: AnimationMode | keyof typeof AnimationMode;
|
|
19
19
|
startValue: StartValueType | keyof typeof StartValueType;
|
|
20
20
|
constructor();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IBackground } from "../../Interfaces/Background/IBackground";
|
|
2
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
3
|
-
import { OptionsColor } from "../OptionsColor";
|
|
4
|
-
import type { RecursivePartial } from "../../../Types/RecursivePartial";
|
|
1
|
+
import type { IBackground } from "../../Interfaces/Background/IBackground.js";
|
|
2
|
+
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
3
|
+
import { OptionsColor } from "../OptionsColor.js";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class Background implements IBackground, IOptionLoader<IBackground> {
|
|
6
6
|
color: OptionsColor;
|
|
7
7
|
image: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BackgroundMaskCover } from "./BackgroundMaskCover";
|
|
2
|
-
import type { IBackgroundMask } from "../../Interfaces/BackgroundMask/IBackgroundMask";
|
|
3
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
4
|
-
import type { RecursivePartial } from "../../../Types/RecursivePartial";
|
|
1
|
+
import { BackgroundMaskCover } from "./BackgroundMaskCover.js";
|
|
2
|
+
import type { IBackgroundMask } from "../../Interfaces/BackgroundMask/IBackgroundMask.js";
|
|
3
|
+
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class BackgroundMask implements IBackgroundMask, IOptionLoader<IBackgroundMask> {
|
|
6
6
|
composite: GlobalCompositeOperation;
|
|
7
7
|
cover: BackgroundMaskCover;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IBackgroundMaskCover } from "../../Interfaces/BackgroundMask/IBackgroundMaskCover";
|
|
2
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
3
|
-
import { OptionsColor } from "../OptionsColor";
|
|
4
|
-
import type { RecursivePartial } from "../../../Types/RecursivePartial";
|
|
1
|
+
import type { IBackgroundMaskCover } from "../../Interfaces/BackgroundMask/IBackgroundMaskCover.js";
|
|
2
|
+
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
3
|
+
import { OptionsColor } from "../OptionsColor.js";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class BackgroundMaskCover implements IBackgroundMaskCover, IOptionLoader<IBackgroundMaskCover> {
|
|
6
6
|
color: OptionsColor;
|
|
7
7
|
opacity: number;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { IColorAnimation } from "../Interfaces/IColorAnimation";
|
|
2
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
3
|
-
import type { RangeValue } from "../../Types/RangeValue";
|
|
4
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
1
|
+
import type { IColorAnimation } from "../Interfaces/IColorAnimation.js";
|
|
2
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
3
|
+
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
4
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class ColorAnimation implements IColorAnimation, IOptionLoader<IColorAnimation> {
|
|
6
6
|
count: RangeValue;
|
|
7
7
|
decay: RangeValue;
|
|
8
|
+
delay: RangeValue;
|
|
8
9
|
enable: boolean;
|
|
9
10
|
offset: RangeValue;
|
|
10
11
|
speed: RangeValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IFullScreen } from "../../Interfaces/FullScreen/IFullScreen";
|
|
2
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
3
|
-
import type { RecursivePartial } from "../../../Types/RecursivePartial";
|
|
1
|
+
import type { IFullScreen } from "../../Interfaces/FullScreen/IFullScreen.js";
|
|
2
|
+
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
3
|
+
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
4
4
|
export declare class FullScreen implements IFullScreen, IOptionLoader<IFullScreen> {
|
|
5
5
|
enable: boolean;
|
|
6
6
|
zIndex: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColorAnimation } from "./ColorAnimation";
|
|
2
|
-
import type { IHslAnimation } from "../Interfaces/IHslAnimation";
|
|
3
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
1
|
+
import { ColorAnimation } from "./ColorAnimation.js";
|
|
2
|
+
import type { IHslAnimation } from "../Interfaces/IHslAnimation.js";
|
|
3
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
4
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class HslAnimation implements IHslAnimation, IOptionLoader<IHslAnimation> {
|
|
6
6
|
h: ColorAnimation;
|
|
7
7
|
l: ColorAnimation;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ClickMode } from "../../../../Enums/Modes/ClickMode";
|
|
2
|
-
import type { IClickEvent } from "../../../Interfaces/Interactivity/Events/IClickEvent";
|
|
3
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
5
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
|
|
1
|
+
import type { ClickMode } from "../../../../Enums/Modes/ClickMode.js";
|
|
2
|
+
import type { IClickEvent } from "../../../Interfaces/Interactivity/Events/IClickEvent.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
6
|
export declare class ClickEvent implements IClickEvent, IOptionLoader<IClickEvent> {
|
|
7
7
|
enable: boolean;
|
|
8
8
|
mode: SingleOrMultiple<ClickMode | keyof typeof ClickMode | string>;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import type { DivMode } from "../../../../Enums/Modes/DivMode";
|
|
2
|
-
import { DivType } from "../../../../Enums/Types/DivType";
|
|
3
|
-
import type { IDivEvent } from "../../../Interfaces/Interactivity/Events/IDivEvent";
|
|
4
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
6
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
|
|
1
|
+
import type { DivMode } from "../../../../Enums/Modes/DivMode.js";
|
|
2
|
+
import { DivType } from "../../../../Enums/Types/DivType.js";
|
|
3
|
+
import type { IDivEvent } from "../../../Interfaces/Interactivity/Events/IDivEvent.js";
|
|
4
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
5
|
+
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
6
|
+
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
7
7
|
export declare class DivEvent implements IDivEvent, IOptionLoader<IDivEvent> {
|
|
8
8
|
enable: boolean;
|
|
9
9
|
mode: SingleOrMultiple<DivMode | keyof typeof DivMode | string>;
|
|
10
10
|
selectors: SingleOrMultiple<string>;
|
|
11
11
|
type: DivType | keyof typeof DivType;
|
|
12
12
|
constructor();
|
|
13
|
-
get el(): SingleOrMultiple<string>;
|
|
14
|
-
set el(value: SingleOrMultiple<string>);
|
|
15
|
-
get elementId(): SingleOrMultiple<string>;
|
|
16
|
-
set elementId(value: SingleOrMultiple<string>);
|
|
17
|
-
get ids(): SingleOrMultiple<string>;
|
|
18
|
-
set ids(value: SingleOrMultiple<string>);
|
|
19
13
|
load(data?: RecursivePartial<IDivEvent>): void;
|
|
20
14
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import { ClickEvent } from "./ClickEvent";
|
|
2
|
-
import { DivEvent } from "./DivEvent";
|
|
3
|
-
import { HoverEvent } from "./HoverEvent";
|
|
4
|
-
import type { IEvents } from "../../../Interfaces/Interactivity/Events/IEvents";
|
|
5
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
6
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
7
|
-
import { ResizeEvent } from "./ResizeEvent";
|
|
8
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
|
|
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
9
|
export declare class Events implements IEvents, IOptionLoader<IEvents> {
|
|
10
10
|
onClick: ClickEvent;
|
|
11
11
|
onDiv: SingleOrMultiple<DivEvent>;
|
|
12
12
|
onHover: HoverEvent;
|
|
13
13
|
resize: ResizeEvent;
|
|
14
14
|
constructor();
|
|
15
|
-
get onclick(): ClickEvent;
|
|
16
|
-
set onclick(value: ClickEvent);
|
|
17
|
-
get ondiv(): SingleOrMultiple<DivEvent>;
|
|
18
|
-
set ondiv(value: SingleOrMultiple<DivEvent>);
|
|
19
|
-
get onhover(): HoverEvent;
|
|
20
|
-
set onhover(value: HoverEvent);
|
|
21
15
|
load(data?: RecursivePartial<IEvents>): void;
|
|
22
16
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { HoverMode } from "../../../../Enums/Modes/HoverMode";
|
|
2
|
-
import type { IHoverEvent } from "../../../Interfaces/Interactivity/Events/IHoverEvent";
|
|
3
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
|
-
import { Parallax } from "./Parallax";
|
|
5
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
6
|
-
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
|
|
1
|
+
import type { HoverMode } from "../../../../Enums/Modes/HoverMode.js";
|
|
2
|
+
import type { IHoverEvent } from "../../../Interfaces/Interactivity/Events/IHoverEvent.js";
|
|
3
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
4
|
+
import { Parallax } from "./Parallax.js";
|
|
5
|
+
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
6
|
+
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
7
7
|
export declare class HoverEvent implements IHoverEvent, IOptionLoader<IHoverEvent> {
|
|
8
8
|
enable: boolean;
|
|
9
9
|
mode: SingleOrMultiple<HoverMode | keyof typeof HoverMode | string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
2
|
-
import type { IParallax } from "../../../Interfaces/Interactivity/Events/IParallax";
|
|
3
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
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
4
|
export declare class Parallax implements IParallax, IOptionLoader<IParallax> {
|
|
5
5
|
enable: boolean;
|
|
6
6
|
force: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
2
|
-
import type { IResizeEvent } from "../../../Interfaces/Interactivity/Events/IResizeEvent";
|
|
3
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
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
4
|
export declare class ResizeEvent implements IResizeEvent, IOptionLoader<IResizeEvent> {
|
|
5
5
|
delay: number;
|
|
6
6
|
enable: boolean;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import type { Container } from "../../../Core/Container";
|
|
2
|
-
import type { Engine } from "../../../
|
|
3
|
-
import { Events } from "./Events/Events";
|
|
4
|
-
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity";
|
|
5
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
6
|
-
import { InteractivityDetect } from "../../../Enums/InteractivityDetect";
|
|
7
|
-
import { Modes } from "./Modes/Modes";
|
|
8
|
-
import type { RecursivePartial } from "../../../Types/RecursivePartial";
|
|
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
9
|
export declare class Interactivity implements IInteractivity, IOptionLoader<IInteractivity> {
|
|
10
10
|
[name: string]: unknown;
|
|
11
11
|
detectsOn: InteractivityDetect | keyof typeof InteractivityDetect;
|
|
12
12
|
events: Events;
|
|
13
13
|
modes: Modes;
|
|
14
14
|
constructor(engine: Engine, container?: Container);
|
|
15
|
-
get detect_on(): InteractivityDetect | keyof typeof InteractivityDetect;
|
|
16
|
-
set detect_on(value: InteractivityDetect | keyof typeof InteractivityDetect);
|
|
17
15
|
load(data?: RecursivePartial<IInteractivity>): void;
|
|
18
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Container } from "../../../../Core/Container";
|
|
2
|
-
import type { Engine } from "../../../../
|
|
3
|
-
import type { IModes } from "../../../Interfaces/Interactivity/Modes/IModes";
|
|
4
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
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
6
|
export declare class Modes implements IModes, IOptionLoader<IModes> {
|
|
7
7
|
[name: string]: unknown;
|
|
8
8
|
private readonly _container;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ICoordinatesWithMode } from "../../Core/Interfaces/ICoordinates";
|
|
2
|
-
import type { IManualParticle } from "../Interfaces/IManualParticle";
|
|
3
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
|
-
import type { IParticlesOptions } from "../Interfaces/Particles/IParticlesOptions";
|
|
5
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
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
6
|
export declare class ManualParticle implements IManualParticle, IOptionLoader<IManualParticle> {
|
|
7
7
|
options?: RecursivePartial<IParticlesOptions>;
|
|
8
8
|
position?: ICoordinatesWithMode;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { Background } from "./Background/Background";
|
|
2
|
-
import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
|
|
3
|
-
import type { Container } from "../../Core/Container";
|
|
4
|
-
import type { Engine } from "../../
|
|
5
|
-
import { FullScreen } from "./FullScreen/FullScreen";
|
|
6
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
7
|
-
import type { IOptions } from "../Interfaces/IOptions";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import type {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import { Theme } from "./Theme/Theme";
|
|
1
|
+
import { Background } from "./Background/Background.js";
|
|
2
|
+
import { BackgroundMask } from "./BackgroundMask/BackgroundMask.js";
|
|
3
|
+
import type { Container } from "../../Core/Container.js";
|
|
4
|
+
import type { Engine } from "../../Core/Engine.js";
|
|
5
|
+
import { FullScreen } from "./FullScreen/FullScreen.js";
|
|
6
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
7
|
+
import type { IOptions } from "../Interfaces/IOptions.js";
|
|
8
|
+
import { Interactivity } from "./Interactivity/Interactivity.js";
|
|
9
|
+
import { ManualParticle } from "./ManualParticle.js";
|
|
10
|
+
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
11
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
12
|
+
import { Responsive } from "./Responsive.js";
|
|
13
|
+
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
|
|
14
|
+
import { Theme } from "./Theme/Theme.js";
|
|
16
15
|
interface DefaultThemes {
|
|
17
16
|
dark?: string;
|
|
18
17
|
light?: string;
|
|
@@ -30,8 +29,8 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
30
29
|
fullScreen: FullScreen;
|
|
31
30
|
interactivity: Interactivity;
|
|
32
31
|
manualParticles: ManualParticle[];
|
|
33
|
-
name
|
|
34
|
-
particles: import("./Particles/ParticlesOptions").ParticlesOptions;
|
|
32
|
+
name?: string;
|
|
33
|
+
particles: import("./Particles/ParticlesOptions.js").ParticlesOptions;
|
|
35
34
|
pauseOnBlur: boolean;
|
|
36
35
|
pauseOnOutsideViewport: boolean;
|
|
37
36
|
preset?: SingleOrMultiple<string>;
|
|
@@ -43,16 +42,10 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
43
42
|
private readonly _container;
|
|
44
43
|
private readonly _engine;
|
|
45
44
|
constructor(engine: Engine, container: Container);
|
|
46
|
-
|
|
47
|
-
set backgroundMode(value: FullScreen);
|
|
48
|
-
get fps_limit(): number;
|
|
49
|
-
set fps_limit(value: number);
|
|
50
|
-
get retina_detect(): boolean;
|
|
51
|
-
set retina_detect(value: boolean);
|
|
52
|
-
load(data?: ISourceOptions): void;
|
|
45
|
+
load(data?: RecursivePartial<IOptions>): void;
|
|
53
46
|
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
|
|
54
47
|
setTheme(name?: string): void;
|
|
55
|
-
private _findDefaultTheme;
|
|
56
|
-
private _importPreset;
|
|
48
|
+
private readonly _findDefaultTheme;
|
|
49
|
+
private readonly _importPreset;
|
|
57
50
|
}
|
|
58
51
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IRangeHsl, IRangeHsv, IRangeRgb, IRangeValueColor } from "../../Core/Interfaces/Colors";
|
|
2
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
3
|
-
import type { IOptionsColor } from "../Interfaces/IOptionsColor";
|
|
4
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
5
|
-
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple";
|
|
1
|
+
import type { IRangeHsl, IRangeHsv, IRangeRgb, IRangeValueColor } from "../../Core/Interfaces/Colors.js";
|
|
2
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
3
|
+
import type { IOptionsColor } from "../Interfaces/IOptionsColor.js";
|
|
4
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
|
+
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
|
|
6
6
|
export declare class OptionsColor implements IOptionsColor, IOptionLoader<IOptionsColor> {
|
|
7
7
|
value: SingleOrMultiple<SingleOrMultiple<string> | IRangeValueColor | IRangeRgb | IRangeHsl | IRangeHsv>;
|
|
8
8
|
constructor();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
2
|
-
import type { IParticlesBounce } from "../../../Interfaces/Particles/Bounce/IParticlesBounce";
|
|
3
|
-
import { ParticlesBounceFactor } from "./ParticlesBounceFactor";
|
|
4
|
-
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
1
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
2
|
+
import type { IParticlesBounce } from "../../../Interfaces/Particles/Bounce/IParticlesBounce.js";
|
|
3
|
+
import { ParticlesBounceFactor } from "./ParticlesBounceFactor.js";
|
|
4
|
+
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class ParticlesBounce implements IParticlesBounce, IOptionLoader<IParticlesBounce> {
|
|
6
6
|
horizontal: ParticlesBounceFactor;
|
|
7
7
|
vertical: ParticlesBounceFactor;
|