tsparticles 1.35.4 → 1.37.2
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/Core/Canvas.js +4 -6
- package/Core/Container.d.ts +5 -2
- package/Core/Container.js +23 -12
- package/Core/InteractionManager.d.ts +1 -0
- package/Core/InteractionManager.js +4 -1
- package/Core/Particles.d.ts +1 -1
- package/Core/Particles.js +3 -1
- package/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/Enums/Modes/ResponsiveMode.js +8 -0
- package/Enums/Modes/index.d.ts +1 -0
- package/Enums/Modes/index.js +1 -0
- package/Interactions/External/Attract/index.d.ts +1 -1
- package/Interactions/External/Attract/index.js +2 -2
- package/Interactions/External/Bounce/index.d.ts +1 -1
- package/Interactions/External/Bounce/index.js +2 -2
- package/Interactions/External/Bubble/index.d.ts +1 -1
- package/Interactions/External/Bubble/index.js +2 -2
- package/Interactions/External/Connect/index.d.ts +1 -1
- package/Interactions/External/Connect/index.js +2 -2
- package/Interactions/External/Grab/index.d.ts +1 -1
- package/Interactions/External/Grab/index.js +2 -2
- package/Interactions/External/Repulse/index.d.ts +1 -1
- package/Interactions/External/Repulse/index.js +2 -2
- package/Interactions/External/Trail/index.d.ts +1 -1
- package/Interactions/External/Trail/index.js +2 -2
- package/Interactions/Particles/Attract/index.d.ts +1 -1
- package/Interactions/Particles/Attract/index.js +2 -2
- package/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/Interactions/Particles/Collisions/index.js +2 -2
- package/Interactions/Particles/Links/index.d.ts +2 -2
- package/Interactions/Particles/Links/index.js +5 -5
- package/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/Interactions/Particles/Links/plugin.js +2 -2
- package/Options/Classes/FullScreen/FullScreen.js +2 -2
- package/Options/Classes/Interactivity/Interactivity.js +1 -1
- package/Options/Classes/Options.d.ts +1 -1
- package/Options/Classes/Options.js +5 -2
- package/Options/Classes/Responsive.d.ts +2 -0
- package/Options/Classes/Responsive.js +10 -0
- package/Options/Interfaces/IResponsive.d.ts +2 -0
- package/Plugins/Absorbers/plugin.d.ts +1 -1
- package/Plugins/Absorbers/plugin.js +2 -2
- package/Plugins/Emitters/plugin.d.ts +1 -1
- package/Plugins/Emitters/plugin.js +2 -2
- package/Plugins/PolygonMask/plugin.js +1 -1
- package/Shapes/Circle/index.d.ts +1 -1
- package/Shapes/Circle/index.js +2 -2
- package/Shapes/Image/index.d.ts +1 -1
- package/Shapes/Image/index.js +3 -3
- package/Shapes/Line/index.d.ts +1 -1
- package/Shapes/Line/index.js +2 -2
- package/Shapes/Polygon/index.d.ts +3 -3
- package/Shapes/Polygon/index.js +7 -7
- package/Shapes/Square/index.d.ts +1 -1
- package/Shapes/Square/index.js +3 -3
- package/Shapes/Star/index.d.ts +1 -1
- package/Shapes/Star/index.js +2 -2
- package/Shapes/Text/index.d.ts +1 -1
- package/Shapes/Text/index.js +2 -2
- package/Updaters/Angle/index.d.ts +1 -1
- package/Updaters/Angle/index.js +2 -2
- package/Updaters/Color/index.d.ts +1 -1
- package/Updaters/Color/index.js +2 -2
- package/Updaters/Life/index.d.ts +1 -1
- package/Updaters/Life/index.js +2 -2
- package/Updaters/Opacity/index.d.ts +1 -1
- package/Updaters/Opacity/index.js +2 -2
- package/Updaters/OutModes/index.d.ts +1 -1
- package/Updaters/OutModes/index.js +2 -2
- package/Updaters/Roll/index.d.ts +1 -1
- package/Updaters/Roll/index.js +2 -2
- package/Updaters/Size/index.d.ts +1 -1
- package/Updaters/Size/index.js +2 -2
- package/Updaters/StrokeColor/index.d.ts +1 -1
- package/Updaters/StrokeColor/index.js +2 -2
- package/Updaters/Tilt/index.d.ts +1 -1
- package/Updaters/Tilt/index.js +2 -2
- package/Updaters/Wobble/index.d.ts +1 -1
- package/Updaters/Wobble/index.js +2 -2
- package/Utils/Plugins.d.ts +2 -2
- package/Utils/Plugins.js +4 -4
- package/Utils/Utils.d.ts +1 -2
- package/browser/Core/Canvas.d.ts +29 -0
- package/browser/Core/Canvas.js +26 -6
- package/browser/Core/Container.d.ts +99 -2
- package/browser/Core/Container.js +106 -12
- package/browser/Core/FrameManager.d.ts +8 -0
- package/browser/Core/FrameManager.js +9 -0
- package/browser/Core/InteractionManager.d.ts +4 -0
- package/browser/Core/InteractionManager.js +8 -1
- package/browser/Core/Interfaces/Colors.d.ts +23 -0
- package/browser/Core/Interfaces/IAttract.d.ts +3 -0
- package/browser/Core/Interfaces/IBounds.d.ts +3 -0
- package/browser/Core/Interfaces/IBubble.d.ts +3 -0
- package/browser/Core/Interfaces/IBubbleParticleData.d.ts +3 -0
- package/browser/Core/Interfaces/IContainerInteractivity.d.ts +3 -0
- package/browser/Core/Interfaces/IContainerPlugin.d.ts +3 -0
- package/browser/Core/Interfaces/ICoordinates.d.ts +3 -0
- package/browser/Core/Interfaces/IDelta.d.ts +3 -0
- package/browser/Core/Interfaces/IDimension.d.ts +3 -0
- package/browser/Core/Interfaces/IExternalInteractor.d.ts +3 -0
- package/browser/Core/Interfaces/IInteractor.d.ts +3 -0
- package/browser/Core/Interfaces/IMouseData.d.ts +3 -0
- package/browser/Core/Interfaces/IMovePathGenerator.d.ts +3 -0
- package/browser/Core/Interfaces/IParticle.d.ts +3 -0
- package/browser/Core/Interfaces/IParticleValueAnimation.d.ts +3 -0
- package/browser/Core/Interfaces/IParticlesInteractor.d.ts +3 -0
- package/browser/Core/Interfaces/IPlugin.d.ts +8 -0
- package/browser/Core/Interfaces/IRepulse.d.ts +3 -0
- package/browser/Core/Interfaces/IShapeDrawer.d.ts +3 -0
- package/browser/Core/Interfaces/IShapeValues.d.ts +3 -0
- package/browser/Core/Loader.d.ts +45 -0
- package/browser/Core/Loader.js +51 -0
- package/browser/Core/Particle/Mover.d.ts +3 -0
- package/browser/Core/Particle/Mover.js +7 -2
- package/browser/Core/Particle.d.ts +7 -0
- package/browser/Core/Particle.js +13 -0
- package/browser/Core/Particles.d.ts +14 -1
- package/browser/Core/Particles.js +28 -1
- package/browser/Core/Retina.d.ts +6 -0
- package/browser/Core/Retina.js +9 -0
- package/browser/Enums/Directions/MoveDirection.d.ts +3 -0
- package/browser/Enums/Directions/MoveDirection.js +3 -0
- package/browser/Enums/Directions/RotateDirection.d.ts +3 -0
- package/browser/Enums/Directions/RotateDirection.js +3 -0
- package/browser/Enums/Directions/TiltDirection.d.ts +3 -0
- package/browser/Enums/Directions/TiltDirection.js +3 -0
- package/browser/Enums/InteractivityDetect.d.ts +3 -0
- package/browser/Enums/InteractivityDetect.js +3 -0
- package/browser/Enums/Modes/ClickMode.d.ts +3 -0
- package/browser/Enums/Modes/ClickMode.js +3 -0
- package/browser/Enums/Modes/CollisionMode.d.ts +3 -0
- package/browser/Enums/Modes/CollisionMode.js +3 -0
- package/browser/Enums/Modes/DivMode.d.ts +3 -0
- package/browser/Enums/Modes/DivMode.js +3 -0
- package/browser/Enums/Modes/HoverMode.d.ts +3 -0
- package/browser/Enums/Modes/HoverMode.js +3 -0
- package/browser/Enums/Modes/OutMode.d.ts +3 -0
- package/browser/Enums/Modes/OutMode.js +3 -0
- package/browser/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/browser/Enums/Modes/ResponsiveMode.js +5 -0
- package/browser/Enums/Modes/SizeMode.d.ts +3 -0
- package/browser/Enums/Modes/SizeMode.js +3 -0
- package/browser/Enums/Modes/index.d.ts +1 -0
- package/browser/Enums/Modes/index.js +1 -0
- package/browser/Enums/Types/DestroyType.d.ts +3 -0
- package/browser/Enums/Types/DestroyType.js +3 -0
- package/browser/Enums/Types/DivType.d.ts +3 -0
- package/browser/Enums/Types/DivType.js +3 -0
- package/browser/Enums/Types/OrbitType.d.ts +3 -0
- package/browser/Enums/Types/OrbitType.js +3 -0
- package/browser/Enums/Types/ShapeType.d.ts +3 -0
- package/browser/Enums/Types/ShapeType.js +3 -0
- package/browser/Enums/Types/StartValueType.d.ts +3 -0
- package/browser/Enums/Types/StartValueType.js +3 -0
- package/browser/Interactions/External/Attract/Attractor.d.ts +4 -0
- package/browser/Interactions/External/Attract/Attractor.js +5 -0
- package/browser/Interactions/External/Attract/index.d.ts +1 -1
- package/browser/Interactions/External/Attract/index.js +2 -2
- package/browser/Interactions/External/Bounce/Bouncer.js +1 -0
- package/browser/Interactions/External/Bounce/index.d.ts +1 -1
- package/browser/Interactions/External/Bounce/index.js +2 -2
- package/browser/Interactions/External/Bubble/Bubbler.d.ts +4 -0
- package/browser/Interactions/External/Bubble/Bubbler.js +14 -0
- package/browser/Interactions/External/Bubble/IBubblerProcessParam.d.ts +6 -0
- package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +3 -0
- package/browser/Interactions/External/Bubble/ProcessBubbleType.js +3 -0
- package/browser/Interactions/External/Bubble/index.d.ts +1 -1
- package/browser/Interactions/External/Bubble/index.js +2 -2
- package/browser/Interactions/External/Connect/Connector.d.ts +7 -0
- package/browser/Interactions/External/Connect/Connector.js +8 -0
- package/browser/Interactions/External/Connect/index.d.ts +1 -1
- package/browser/Interactions/External/Connect/index.js +2 -2
- package/browser/Interactions/External/Grab/Grabber.d.ts +4 -0
- package/browser/Interactions/External/Grab/Grabber.js +9 -0
- package/browser/Interactions/External/Grab/index.d.ts +1 -1
- package/browser/Interactions/External/Grab/index.js +2 -2
- package/browser/Interactions/External/Repulse/Repulser.d.ts +4 -0
- package/browser/Interactions/External/Repulse/Repulser.js +162 -0
- package/browser/Interactions/External/Repulse/index.d.ts +1 -1
- package/browser/Interactions/External/Repulse/index.js +2 -2
- package/browser/Interactions/External/Trail/TrailMaker.d.ts +3 -0
- package/browser/Interactions/External/Trail/TrailMaker.js +4 -0
- package/browser/Interactions/External/Trail/index.d.ts +1 -1
- package/browser/Interactions/External/Trail/index.js +2 -2
- package/browser/Interactions/Particles/Attract/Attractor.d.ts +3 -0
- package/browser/Interactions/Particles/Attract/Attractor.js +4 -0
- package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
- package/browser/Interactions/Particles/Attract/index.js +2 -2
- package/browser/Interactions/Particles/Collisions/Collider.d.ts +3 -0
- package/browser/Interactions/Particles/Collisions/Collider.js +4 -0
- package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/browser/Interactions/Particles/Collisions/index.js +2 -2
- package/browser/Interactions/Particles/Links/ILink.d.ts +6 -0
- package/browser/Interactions/Particles/Links/LinkInstance.js +8 -0
- package/browser/Interactions/Particles/Links/Linker.js +2 -0
- package/browser/Interactions/Particles/Links/index.d.ts +2 -2
- package/browser/Interactions/Particles/Links/index.js +5 -5
- package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/browser/Interactions/Particles/Links/plugin.js +3 -2
- package/browser/Options/Classes/AnimatableColor.d.ts +4 -0
- package/browser/Options/Classes/AnimatableColor.js +4 -0
- package/browser/Options/Classes/Background/Background.d.ts +4 -0
- package/browser/Options/Classes/Background/Background.js +4 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +14 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +4 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +3 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +3 -0
- package/browser/Options/Classes/ColorAnimation.d.ts +3 -0
- package/browser/Options/Classes/ColorAnimation.js +3 -0
- package/browser/Options/Classes/FullScreen/FullScreen.d.ts +16 -0
- package/browser/Options/Classes/FullScreen/FullScreen.js +8 -2
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +4 -0
- package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +37 -0
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +33 -0
- package/browser/Options/Classes/Interactivity/Events/Events.d.ts +31 -0
- package/browser/Options/Classes/Interactivity/Events/Events.js +31 -0
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +4 -0
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +4 -0
- package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Events/Parallax.js +3 -0
- package/browser/Options/Classes/Interactivity/Interactivity.d.ts +13 -0
- package/browser/Options/Classes/Interactivity/Interactivity.js +14 -1
- package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Attract.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Bubble.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleBase.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +9 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.js +9 -0
- package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +21 -0
- package/browser/Options/Classes/Interactivity/Modes/Connect.js +21 -0
- package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +21 -0
- package/browser/Options/Classes/Interactivity/Modes/Grab.js +21 -0
- package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/GrabLinks.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +4 -0
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -0
- package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Push.js +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Remove.js +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Repulse.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseBase.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +9 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.js +11 -0
- package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +9 -0
- package/browser/Options/Classes/Interactivity/Modes/Slow.js +10 -0
- package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Trail.js +3 -0
- package/browser/Options/Classes/Motion/Motion.d.ts +11 -0
- package/browser/Options/Classes/Motion/Motion.js +4 -0
- package/browser/Options/Classes/Motion/MotionReduce.d.ts +9 -0
- package/browser/Options/Classes/Motion/MotionReduce.js +3 -0
- package/browser/Options/Classes/Options.d.ts +31 -1
- package/browser/Options/Classes/Options.js +36 -3
- package/browser/Options/Classes/OptionsColor.d.ts +4 -0
- package/browser/Options/Classes/OptionsColor.js +4 -0
- package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -0
- package/browser/Options/Classes/Particles/Collisions/Collisions.js +4 -0
- package/browser/Options/Classes/Particles/Links/Links.d.ts +4 -0
- package/browser/Options/Classes/Particles/Links/Links.js +4 -0
- package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +3 -0
- package/browser/Options/Classes/Particles/Links/LinksShadow.js +3 -0
- package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +3 -0
- package/browser/Options/Classes/Particles/Links/LinksTriangle.js +3 -0
- package/browser/Options/Classes/Particles/Move/Attract.d.ts +21 -0
- package/browser/Options/Classes/Particles/Move/Attract.js +21 -0
- package/browser/Options/Classes/Particles/Move/Move.d.ts +42 -0
- package/browser/Options/Classes/Particles/Move/Move.js +43 -0
- package/browser/Options/Classes/Particles/Move/MoveAngle.d.ts +3 -0
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +4 -1
- package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -0
- package/browser/Options/Classes/Particles/Move/Path/Path.js +3 -0
- package/browser/Options/Classes/Particles/Move/Trail.d.ts +3 -0
- package/browser/Options/Classes/Particles/Move/Trail.js +3 -0
- package/browser/Options/Classes/Particles/Number/Density.d.ts +12 -0
- package/browser/Options/Classes/Particles/Number/Density.js +12 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +10 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +10 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +13 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +13 -0
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +15 -0
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +12 -0
- package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +4 -0
- package/browser/Options/Classes/Particles/Orbit/Orbit.js +4 -0
- package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +3 -0
- package/browser/Options/Classes/Particles/Orbit/OrbitRotation.js +3 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +22 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.js +22 -0
- package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +3 -0
- package/browser/Options/Classes/Particles/Repulse/Repulse.js +3 -0
- package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +4 -0
- package/browser/Options/Classes/Particles/Rotate/Rotate.js +4 -0
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +3 -0
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.js +3 -0
- package/browser/Options/Classes/Particles/Shadow.d.ts +4 -0
- package/browser/Options/Classes/Particles/Shadow.js +4 -0
- package/browser/Options/Classes/Particles/Shape/Shape.d.ts +42 -0
- package/browser/Options/Classes/Particles/Shape/Shape.js +43 -0
- package/browser/Options/Classes/Particles/Size/Size.d.ts +13 -0
- package/browser/Options/Classes/Particles/Size/Size.js +13 -0
- package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +15 -0
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +12 -0
- package/browser/Options/Classes/Particles/Stroke.d.ts +4 -0
- package/browser/Options/Classes/Particles/Stroke.js +4 -0
- package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +4 -0
- package/browser/Options/Classes/Particles/Tilt/Tilt.js +4 -0
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +3 -0
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.js +3 -0
- package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +4 -0
- package/browser/Options/Classes/Particles/Twinkle/Twinkle.js +4 -0
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +3 -0
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.js +3 -0
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +3 -0
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
- package/browser/Options/Classes/Responsive.d.ts +2 -0
- package/browser/Options/Classes/Responsive.js +11 -0
- package/browser/Options/Classes/ValueWithRandom.d.ts +3 -0
- package/browser/Options/Interfaces/Background/IBackground.d.ts +35 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +21 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +10 -0
- package/browser/Options/Interfaces/FullScreen/IFullScreen.d.ts +16 -0
- package/browser/Options/Interfaces/IAnimatableColor.d.ts +8 -0
- package/browser/Options/Interfaces/IAnimation.d.ts +10 -0
- package/browser/Options/Interfaces/IColorAnimation.d.ts +7 -0
- package/browser/Options/Interfaces/IColorAnimation.js +4 -0
- package/browser/Options/Interfaces/IManualParticle.d.ts +11 -0
- package/browser/Options/Interfaces/IOptionLoader.d.ts +9 -0
- package/browser/Options/Interfaces/IOptions.d.ts +71 -0
- package/browser/Options/Interfaces/IOptionsColor.d.ts +5 -0
- package/browser/Options/Interfaces/IResponsive.d.ts +2 -0
- package/browser/Options/Interfaces/IValueWithRandom.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +12 -0
- package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +13 -0
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
- package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +4 -0
- package/browser/Options/Interfaces/Interactivity/Events/IParallax.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +20 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +9 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +9 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +4 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +3 -0
- package/browser/Options/Interfaces/Motion/IMotion.d.ts +11 -0
- package/browser/Options/Interfaces/Motion/IMotionReduce.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/IParticles.d.ts +10 -0
- package/browser/Options/Interfaces/Particles/IShadow.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/IStroke.d.ts +14 -0
- package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +43 -0
- package/browser/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Move/IAttract.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +19 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Move/ITrail.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Move/Path/iPath.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +22 -0
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Size/ISize.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +4 -0
- package/browser/Options/Interfaces/Theme/ITheme.d.ts +14 -0
- package/browser/Options/Interfaces/Theme/IThemeDefault.d.ts +16 -0
- package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +3 -0
- package/browser/Plugins/Absorbers/AbsorberInstance.js +3 -0
- package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -0
- package/browser/Plugins/Absorbers/Absorbers.js +3 -0
- package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
- package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.js +3 -0
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -0
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.js +4 -0
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +29 -0
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +3 -0
- package/browser/Plugins/Absorbers/plugin.d.ts +1 -1
- package/browser/Plugins/Absorbers/plugin.js +5 -2
- package/browser/Plugins/Emitters/EmitterInstance.d.ts +3 -0
- package/browser/Plugins/Emitters/EmitterInstance.js +3 -0
- package/browser/Plugins/Emitters/Emitters.d.ts +3 -0
- package/browser/Plugins/Emitters/Emitters.js +3 -0
- package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
- package/browser/Plugins/Emitters/Enums/EmitterClickMode.js +3 -0
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +4 -0
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +4 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterLife.js +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.js +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterSize.js +3 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +44 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +19 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +11 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +3 -0
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -0
- package/browser/Plugins/Emitters/plugin.d.ts +1 -1
- package/browser/Plugins/Emitters/plugin.js +5 -2
- package/browser/Plugins/PolygonMask/Options/Classes/Draw.d.ts +15 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Draw.js +15 -0
- package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Inline.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Inline.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Move.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Move.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +10 -0
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +10 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +9 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/ILocalSvg.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +7 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +3 -0
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +12 -0
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +22 -0
- package/browser/Plugins/PolygonMask/pathseg.js +55 -1
- package/browser/Plugins/PolygonMask/plugin.js +10 -2
- package/browser/Plugins/PolygonMask/utils.js +14 -2
- package/browser/Shapes/Circle/CircleDrawer.d.ts +3 -0
- package/browser/Shapes/Circle/CircleDrawer.js +3 -0
- package/browser/Shapes/Circle/index.d.ts +1 -1
- package/browser/Shapes/Circle/index.js +2 -2
- package/browser/Shapes/Image/ImageDrawer.d.ts +3 -0
- package/browser/Shapes/Image/ImageDrawer.js +6 -0
- package/browser/Shapes/Image/Utils.d.ts +3 -0
- package/browser/Shapes/Image/Utils.js +1 -0
- package/browser/Shapes/Image/index.d.ts +1 -1
- package/browser/Shapes/Image/index.js +3 -3
- package/browser/Shapes/Line/LineDrawer.d.ts +3 -0
- package/browser/Shapes/Line/LineDrawer.js +3 -0
- package/browser/Shapes/Line/index.d.ts +1 -1
- package/browser/Shapes/Line/index.js +2 -2
- package/browser/Shapes/Polygon/PolygonDrawer.d.ts +3 -0
- package/browser/Shapes/Polygon/PolygonDrawer.js +3 -0
- package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +3 -0
- package/browser/Shapes/Polygon/PolygonDrawerBase.js +5 -1
- package/browser/Shapes/Polygon/TriangleDrawer.d.ts +3 -0
- package/browser/Shapes/Polygon/TriangleDrawer.js +3 -0
- package/browser/Shapes/Polygon/index.d.ts +3 -3
- package/browser/Shapes/Polygon/index.js +7 -7
- package/browser/Shapes/Square/SquareDrawer.d.ts +3 -0
- package/browser/Shapes/Square/SquareDrawer.js +3 -0
- package/browser/Shapes/Square/index.d.ts +1 -1
- package/browser/Shapes/Square/index.js +3 -3
- package/browser/Shapes/Star/StarDrawer.d.ts +3 -0
- package/browser/Shapes/Star/StarDrawer.js +3 -0
- package/browser/Shapes/Star/index.d.ts +1 -1
- package/browser/Shapes/Star/index.js +2 -2
- package/browser/Shapes/Text/TextDrawer.d.ts +3 -0
- package/browser/Shapes/Text/TextDrawer.js +3 -0
- package/browser/Shapes/Text/index.d.ts +1 -1
- package/browser/Shapes/Text/index.js +2 -2
- package/browser/Types/ParticlesGroups.d.ts +4 -0
- package/browser/Types/RecursivePartial.d.ts +3 -0
- package/browser/Types/ShapeData.d.ts +3 -0
- package/browser/Types/ShapeDrawerFunctions.d.ts +21 -0
- package/browser/Types/SingleOrMultiple.d.ts +3 -0
- package/browser/Updaters/Angle/index.d.ts +1 -1
- package/browser/Updaters/Angle/index.js +2 -2
- package/browser/Updaters/Color/ColorUpdater.js +1 -0
- package/browser/Updaters/Color/index.d.ts +1 -1
- package/browser/Updaters/Color/index.js +2 -2
- package/browser/Updaters/Life/LifeUpdater.js +1 -0
- package/browser/Updaters/Life/index.d.ts +1 -1
- package/browser/Updaters/Life/index.js +2 -2
- package/browser/Updaters/Opacity/OpacityUpdater.js +1 -0
- package/browser/Updaters/Opacity/index.d.ts +1 -1
- package/browser/Updaters/Opacity/index.js +2 -2
- package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -0
- package/browser/Updaters/OutModes/index.d.ts +1 -1
- package/browser/Updaters/OutModes/index.js +2 -2
- package/browser/Updaters/Roll/index.d.ts +1 -1
- package/browser/Updaters/Roll/index.js +2 -2
- package/browser/Updaters/Size/SizeUpdater.js +1 -0
- package/browser/Updaters/Size/index.d.ts +1 -1
- package/browser/Updaters/Size/index.js +2 -2
- package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +1 -0
- package/browser/Updaters/StrokeColor/index.d.ts +1 -1
- package/browser/Updaters/StrokeColor/index.js +2 -2
- package/browser/Updaters/Tilt/index.d.ts +1 -1
- package/browser/Updaters/Tilt/index.js +2 -2
- package/browser/Updaters/Wobble/index.d.ts +1 -1
- package/browser/Updaters/Wobble/index.js +2 -2
- package/browser/Utils/CanvasUtils.js +4 -0
- package/browser/Utils/Circle.d.ts +3 -0
- package/browser/Utils/Circle.js +3 -0
- package/browser/Utils/CircleWarp.d.ts +3 -0
- package/browser/Utils/CircleWarp.js +3 -0
- package/browser/Utils/ColorUtils.d.ts +20 -0
- package/browser/Utils/ColorUtils.js +33 -1
- package/browser/Utils/Constants.d.ts +7 -0
- package/browser/Utils/Constants.js +7 -0
- package/browser/Utils/EventListeners.d.ts +32 -0
- package/browser/Utils/EventListeners.js +40 -0
- package/browser/Utils/NumberUtils.d.ts +27 -0
- package/browser/Utils/NumberUtils.js +27 -0
- package/browser/Utils/Plugins.d.ts +5 -2
- package/browser/Utils/Plugins.js +7 -4
- package/browser/Utils/Point.d.ts +3 -0
- package/browser/Utils/Point.js +3 -0
- package/browser/Utils/QuadTree.d.ts +3 -0
- package/browser/Utils/QuadTree.js +3 -0
- package/browser/Utils/Range.d.ts +3 -0
- package/browser/Utils/Range.js +3 -0
- package/browser/Utils/Rectangle.d.ts +3 -0
- package/browser/Utils/Rectangle.js +3 -0
- package/browser/Utils/Utils.d.ts +6 -2
- package/browser/Utils/Utils.js +14 -0
- package/browser/full.d.ts +1 -1
- package/browser/full.js +14 -6
- package/browser/index.d.ts +1 -2
- package/browser/index.js +2 -2
- package/browser/index.slim.d.ts +1 -2
- package/browser/index.slim.js +3 -2
- package/browser/main.d.ts +99 -6
- package/browser/main.js +114 -11
- package/browser/pjs.d.ts +27 -0
- package/browser/pjs.js +23 -0
- package/browser/slim.d.ts +1 -1
- package/browser/slim.js +39 -47
- package/esm/Core/Canvas.js +4 -6
- package/esm/Core/Container.d.ts +5 -2
- package/esm/Core/Container.js +23 -12
- package/esm/Core/InteractionManager.d.ts +1 -0
- package/esm/Core/InteractionManager.js +4 -1
- package/esm/Core/Particles.d.ts +1 -1
- package/esm/Core/Particles.js +3 -1
- package/esm/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/esm/Enums/Modes/ResponsiveMode.js +5 -0
- package/esm/Enums/Modes/index.d.ts +1 -0
- package/esm/Enums/Modes/index.js +1 -0
- package/esm/Interactions/External/Attract/index.d.ts +1 -1
- package/esm/Interactions/External/Attract/index.js +2 -2
- package/esm/Interactions/External/Bounce/index.d.ts +1 -1
- package/esm/Interactions/External/Bounce/index.js +2 -2
- package/esm/Interactions/External/Bubble/index.d.ts +1 -1
- package/esm/Interactions/External/Bubble/index.js +2 -2
- package/esm/Interactions/External/Connect/index.d.ts +1 -1
- package/esm/Interactions/External/Connect/index.js +2 -2
- package/esm/Interactions/External/Grab/index.d.ts +1 -1
- package/esm/Interactions/External/Grab/index.js +2 -2
- package/esm/Interactions/External/Repulse/index.d.ts +1 -1
- package/esm/Interactions/External/Repulse/index.js +2 -2
- package/esm/Interactions/External/Trail/index.d.ts +1 -1
- package/esm/Interactions/External/Trail/index.js +2 -2
- package/esm/Interactions/Particles/Attract/index.d.ts +1 -1
- package/esm/Interactions/Particles/Attract/index.js +2 -2
- package/esm/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/esm/Interactions/Particles/Collisions/index.js +2 -2
- package/esm/Interactions/Particles/Links/index.d.ts +2 -2
- package/esm/Interactions/Particles/Links/index.js +5 -5
- package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/esm/Interactions/Particles/Links/plugin.js +2 -2
- package/esm/Options/Classes/FullScreen/FullScreen.js +2 -2
- package/esm/Options/Classes/Interactivity/Interactivity.js +1 -1
- package/esm/Options/Classes/Options.d.ts +1 -1
- package/esm/Options/Classes/Options.js +6 -3
- package/esm/Options/Classes/Responsive.d.ts +2 -0
- package/esm/Options/Classes/Responsive.js +10 -0
- package/esm/Options/Interfaces/IResponsive.d.ts +2 -0
- package/esm/Plugins/Absorbers/plugin.d.ts +1 -1
- package/esm/Plugins/Absorbers/plugin.js +2 -2
- package/esm/Plugins/Emitters/plugin.d.ts +1 -1
- package/esm/Plugins/Emitters/plugin.js +2 -2
- package/esm/Plugins/PolygonMask/plugin.js +1 -1
- package/esm/Shapes/Circle/index.d.ts +1 -1
- package/esm/Shapes/Circle/index.js +2 -2
- package/esm/Shapes/Image/index.d.ts +1 -1
- package/esm/Shapes/Image/index.js +3 -3
- package/esm/Shapes/Line/index.d.ts +1 -1
- package/esm/Shapes/Line/index.js +2 -2
- package/esm/Shapes/Polygon/index.d.ts +3 -3
- package/esm/Shapes/Polygon/index.js +7 -7
- package/esm/Shapes/Square/index.d.ts +1 -1
- package/esm/Shapes/Square/index.js +3 -3
- package/esm/Shapes/Star/index.d.ts +1 -1
- package/esm/Shapes/Star/index.js +2 -2
- package/esm/Shapes/Text/index.d.ts +1 -1
- package/esm/Shapes/Text/index.js +2 -2
- package/esm/Updaters/Angle/index.d.ts +1 -1
- package/esm/Updaters/Angle/index.js +2 -2
- package/esm/Updaters/Color/index.d.ts +1 -1
- package/esm/Updaters/Color/index.js +2 -2
- package/esm/Updaters/Life/index.d.ts +1 -1
- package/esm/Updaters/Life/index.js +2 -2
- package/esm/Updaters/Opacity/index.d.ts +1 -1
- package/esm/Updaters/Opacity/index.js +2 -2
- package/esm/Updaters/OutModes/index.d.ts +1 -1
- package/esm/Updaters/OutModes/index.js +2 -2
- package/esm/Updaters/Roll/index.d.ts +1 -1
- package/esm/Updaters/Roll/index.js +2 -2
- package/esm/Updaters/Size/index.d.ts +1 -1
- package/esm/Updaters/Size/index.js +2 -2
- package/esm/Updaters/StrokeColor/index.d.ts +1 -1
- package/esm/Updaters/StrokeColor/index.js +2 -2
- package/esm/Updaters/Tilt/index.d.ts +1 -1
- package/esm/Updaters/Tilt/index.js +2 -2
- package/esm/Updaters/Wobble/index.d.ts +1 -1
- package/esm/Updaters/Wobble/index.js +2 -2
- package/esm/Utils/Plugins.d.ts +2 -2
- package/esm/Utils/Plugins.js +4 -4
- package/esm/Utils/Utils.d.ts +1 -2
- package/esm/full.d.ts +1 -1
- package/esm/full.js +14 -6
- package/esm/index.d.ts +1 -2
- package/esm/index.js +2 -2
- package/esm/index.slim.d.ts +1 -2
- package/esm/index.slim.js +2 -2
- package/esm/main.d.ts +7 -6
- package/esm/main.js +18 -7
- package/esm/slim.d.ts +1 -1
- package/esm/slim.js +39 -47
- package/full.d.ts +1 -1
- package/full.js +14 -6
- package/index.d.ts +1 -2
- package/index.js +2 -3
- package/index.slim.d.ts +1 -2
- package/index.slim.js +2 -3
- package/main.d.ts +7 -6
- package/main.js +18 -7
- package/package.json +1 -1
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/slim.d.ts +1 -1
- package/slim.js +39 -47
- package/tsparticles.js +10586 -13650
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.js +1472 -0
- package/tsparticles.slim.js +8521 -11340
- package/tsparticles.slim.min.js +2 -2
- package/167.js +0 -1779
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category Options
|
|
3
|
+
*/
|
|
1
4
|
export interface IMotionReduce {
|
|
5
|
+
/**
|
|
6
|
+
* Factor used to reduce motion, the higher the value, the higher the motion reduction
|
|
7
|
+
*/
|
|
2
8
|
factor: number;
|
|
9
|
+
/**
|
|
10
|
+
* Reduces motion settings for users with `prefer-reduced-motion` enabled
|
|
11
|
+
*/
|
|
3
12
|
value: boolean;
|
|
4
13
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { CollisionMode } from "../../../../Enums";
|
|
2
2
|
import type { IBounce } from "../Bounce/IBounce";
|
|
3
3
|
import type { ICollisionsOverlap } from "./ICollisionsOverlap";
|
|
4
|
+
/**
|
|
5
|
+
* @category Options
|
|
6
|
+
* [[include:Collisions.md]]
|
|
7
|
+
*/
|
|
4
8
|
export interface ICollisions {
|
|
5
9
|
bounce: IBounce;
|
|
6
10
|
enable: boolean;
|
|
@@ -22,8 +22,18 @@ import type { ParticlesGroups } from "../../../Types/ParticlesGroups";
|
|
|
22
22
|
import type { IOrbit } from "./Orbit/IOrbit";
|
|
23
23
|
import type { IRepulse } from "./Repulse/IRepulse";
|
|
24
24
|
import type { IAnimatableGradient } from "../IAnimatableGradient";
|
|
25
|
+
/**
|
|
26
|
+
* [[include:Options/Particles.md]]
|
|
27
|
+
* @category Options
|
|
28
|
+
*/
|
|
25
29
|
export interface IParticles {
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated use the new links instead
|
|
32
|
+
*/
|
|
26
33
|
line_linked: ILinks;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated use the new links instead
|
|
36
|
+
*/
|
|
27
37
|
lineLinked: ILinks;
|
|
28
38
|
bounce: IBounce;
|
|
29
39
|
collisions: ICollisions;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { ICoordinates } from "../../../Core/Interfaces/ICoordinates";
|
|
2
2
|
import type { IColor } from "../../../Core/Interfaces/Colors";
|
|
3
|
+
/**
|
|
4
|
+
* @category Options
|
|
5
|
+
* [[include:Shadow.md]]
|
|
6
|
+
*/
|
|
3
7
|
export interface IShadow {
|
|
4
8
|
blur: number;
|
|
5
9
|
color: string | IColor;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import type { IAnimatableColor } from "../IAnimatableColor";
|
|
2
2
|
import type { IColor } from "../../../Core/Interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Particle stroke, outlines the particle with a customizable line
|
|
5
|
+
* [[include:Options/Particles/Stroke.md]]
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
3
8
|
export interface IStroke {
|
|
9
|
+
/**
|
|
10
|
+
* The stroke color, can be animated too
|
|
11
|
+
*/
|
|
4
12
|
color?: string | IAnimatableColor | IColor;
|
|
13
|
+
/**
|
|
14
|
+
* The stroke opacity
|
|
15
|
+
*/
|
|
5
16
|
opacity?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The stroke line width
|
|
19
|
+
*/
|
|
6
20
|
width: number;
|
|
7
21
|
}
|
|
@@ -1,17 +1,60 @@
|
|
|
1
1
|
import type { ILinksShadow } from "./ILinksShadow";
|
|
2
2
|
import type { ILinksTriangle } from "./ILinksTriangle";
|
|
3
3
|
import type { IColor } from "../../../../Core/Interfaces/Colors";
|
|
4
|
+
/**
|
|
5
|
+
* Particles Links options, this configures how the particles link together
|
|
6
|
+
* [[include:Options/Particles/Links.md]]
|
|
7
|
+
* @category Options
|
|
8
|
+
*/
|
|
4
9
|
export interface ILinks {
|
|
10
|
+
/**
|
|
11
|
+
* Enables random blinking, if set to true and [[color]] is set to "random"
|
|
12
|
+
* the link will have a random color each frame resulting in a blinking animation
|
|
13
|
+
*/
|
|
5
14
|
blink: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Link line color, can be a string or an [[IColor]] object.
|
|
17
|
+
* If the value is "random", if [[blink]] is `true` sets a random color each frame,
|
|
18
|
+
* if [[consent]] is `true` a random color is used for all links,
|
|
19
|
+
* if [[blink]] and [[consent]] are false the color will be a gradient with the two linked particles color
|
|
20
|
+
*/
|
|
6
21
|
color: string | IColor;
|
|
22
|
+
/**
|
|
23
|
+
* If enabled the links will have a single random color, if [[color]] value is "random"
|
|
24
|
+
*/
|
|
7
25
|
consent: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the maximum particles link line length
|
|
28
|
+
*/
|
|
8
29
|
distance: number;
|
|
30
|
+
/**
|
|
31
|
+
* Enables the particles links
|
|
32
|
+
*/
|
|
9
33
|
enable: boolean;
|
|
10
34
|
frequency: number;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the link id, if two particles have a different link id they won't link together
|
|
37
|
+
*/
|
|
11
38
|
id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the maximum link opacity
|
|
41
|
+
*/
|
|
12
42
|
opacity: number;
|
|
43
|
+
/**
|
|
44
|
+
* Enables the link line shadow
|
|
45
|
+
* **Shadows in canvas are really heavy and this can affect negatively on performances, use with caution**
|
|
46
|
+
*/
|
|
13
47
|
shadow: ILinksShadow;
|
|
48
|
+
/**
|
|
49
|
+
* Fills the triangles made by link lines
|
|
50
|
+
*/
|
|
14
51
|
triangles: ILinksTriangle;
|
|
52
|
+
/**
|
|
53
|
+
* Enable link lines warp, linking particles between edges like there's a warp portal at the edges
|
|
54
|
+
*/
|
|
15
55
|
warp: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the link line width
|
|
58
|
+
*/
|
|
16
59
|
width: number;
|
|
17
60
|
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import type { ICoordinates } from "../../../../Core/Interfaces/ICoordinates";
|
|
2
|
+
/**
|
|
3
|
+
* @category Options
|
|
4
|
+
*/
|
|
2
5
|
export interface IAttract {
|
|
3
6
|
distance: number;
|
|
4
7
|
enable: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use the new rotate.x instead
|
|
10
|
+
*/
|
|
5
11
|
rotateX: number;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use the new rotate.y instead
|
|
14
|
+
*/
|
|
6
15
|
rotateY: number;
|
|
7
16
|
rotate: ICoordinates;
|
|
8
17
|
}
|
|
@@ -8,11 +8,30 @@ import type { IOutModes } from "./IOutModes";
|
|
|
8
8
|
import type { RangeValue } from "../../../../Types";
|
|
9
9
|
import { IDistance } from "../../../../Core/Interfaces";
|
|
10
10
|
import { ISpin } from "./ISpin";
|
|
11
|
+
/**
|
|
12
|
+
* [[include:Options/Particles/Move.md]]
|
|
13
|
+
* @category Options
|
|
14
|
+
*/
|
|
11
15
|
export interface IMove {
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use the new collisions property on particles instead
|
|
18
|
+
*/
|
|
12
19
|
bounce: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use the new collisions property on particles instead
|
|
22
|
+
*/
|
|
13
23
|
collisions: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated use the new outModes instead
|
|
26
|
+
*/
|
|
14
27
|
out_mode: OutMode | keyof typeof OutMode | OutModeAlt;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated use the new outModes instead
|
|
30
|
+
*/
|
|
15
31
|
outMode: OutMode | keyof typeof OutMode | OutModeAlt;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated use the new [[path]] property instead
|
|
34
|
+
*/
|
|
16
35
|
noise: IPath;
|
|
17
36
|
angle: number | IMoveAngle;
|
|
18
37
|
attract: IAttract;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { IDensity } from "./IDensity";
|
|
2
|
+
/**
|
|
3
|
+
* [[include:Options/Particles/Number.md]]
|
|
4
|
+
* @category Options
|
|
5
|
+
*/
|
|
2
6
|
export interface IParticlesNumber {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated the property max is deprecated, use the new limit instead
|
|
9
|
+
*/
|
|
3
10
|
max: number;
|
|
4
11
|
density: IDensity;
|
|
5
12
|
limit: number;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { IOpacityAnimation } from "./IOpacityAnimation";
|
|
2
2
|
import type { IValueWithRandom } from "../../IValueWithRandom";
|
|
3
|
+
/**
|
|
4
|
+
* [[include:Options/Particles/Opacity.md]]
|
|
5
|
+
* @category Options
|
|
6
|
+
*/
|
|
3
7
|
export interface IOpacity extends IValueWithRandom {
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use the new animation instead
|
|
10
|
+
*/
|
|
4
11
|
anim: IOpacityAnimation;
|
|
5
12
|
animation: IOpacityAnimation;
|
|
6
13
|
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import type { DestroyType, StartValueType } from "../../../../Enums";
|
|
2
2
|
import type { IAnimation } from "../../IAnimation";
|
|
3
|
+
/**
|
|
4
|
+
* @category Options
|
|
5
|
+
*/
|
|
3
6
|
export interface IOpacityAnimation extends IAnimation {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use the new minimumValue instead
|
|
9
|
+
*/
|
|
4
10
|
opacity_min?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use the new min/max object in opacity value
|
|
13
|
+
*/
|
|
5
14
|
minimumValue?: number;
|
|
6
15
|
destroy: DestroyType | keyof typeof DestroyType;
|
|
7
16
|
startValue: StartValueType | keyof typeof StartValueType;
|
|
@@ -2,8 +2,15 @@ import type { IColor } from "../../../../Core/Interfaces";
|
|
|
2
2
|
import type { IValueWithRandom } from "../../IValueWithRandom";
|
|
3
3
|
import type { IAnimation } from "../../IAnimation";
|
|
4
4
|
import type { IAnimatable } from "../../IAnimatable";
|
|
5
|
+
/**
|
|
6
|
+
* @category Options
|
|
7
|
+
* [[include:Options/Particles/Orbit.md]]
|
|
8
|
+
*/
|
|
5
9
|
export interface IOrbit extends IAnimatable<IAnimation> {
|
|
6
10
|
color?: string | IColor;
|
|
11
|
+
/**
|
|
12
|
+
* Enables/disables the animation
|
|
13
|
+
*/
|
|
7
14
|
enable: boolean;
|
|
8
15
|
radius?: number;
|
|
9
16
|
rotation: IValueWithRandom;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { IRotateAnimation } from "./IRotateAnimation";
|
|
2
2
|
import type { RotateDirection, RotateDirectionAlt } from "../../../../Enums";
|
|
3
3
|
import type { IValueWithRandom } from "../../IValueWithRandom";
|
|
4
|
+
/**
|
|
5
|
+
* [[include:Options/Particles/Rotate.md]]
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
4
8
|
export interface IRotate extends IValueWithRandom {
|
|
5
9
|
animation: IRotateAnimation;
|
|
6
10
|
direction: RotateDirection | keyof typeof RotateDirection | RotateDirectionAlt;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { IShapeValues } from "./IShapeValues";
|
|
2
|
+
/**
|
|
3
|
+
* @category Options
|
|
4
|
+
*/
|
|
2
5
|
export interface IImageShape extends IShapeValues {
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use the new replaceColor instead
|
|
8
|
+
*/
|
|
3
9
|
replace_color: boolean;
|
|
4
10
|
replaceColor: boolean;
|
|
5
11
|
src: string;
|
|
@@ -4,13 +4,35 @@ import type { ICharacterShape } from "./ICharacterShape";
|
|
|
4
4
|
import type { IPolygonShape } from "./IPolygonShape";
|
|
5
5
|
import type { IStroke } from "../IStroke";
|
|
6
6
|
import type { ShapeData, SingleOrMultiple } from "../../../../Types";
|
|
7
|
+
/**
|
|
8
|
+
* [[include:Options/Particles/Shape.md]]
|
|
9
|
+
* @category Options
|
|
10
|
+
*/
|
|
7
11
|
export interface IShape {
|
|
8
12
|
type: SingleOrMultiple<ShapeType | keyof typeof ShapeType | string>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated this property was moved to particles section
|
|
15
|
+
*/
|
|
9
16
|
stroke: SingleOrMultiple<IStroke>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated this property is now integrated in custom shape management
|
|
19
|
+
*/
|
|
10
20
|
polygon: SingleOrMultiple<IPolygonShape>;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated this property is now integrated in custom shape management
|
|
23
|
+
*/
|
|
11
24
|
character: SingleOrMultiple<ICharacterShape>;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated this property was integrated in custom shape management
|
|
27
|
+
*/
|
|
12
28
|
image: SingleOrMultiple<IImageShape>;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated this property was integrated in custom shape management
|
|
31
|
+
*/
|
|
13
32
|
images: SingleOrMultiple<IImageShape>;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated this property has been renamed to options
|
|
35
|
+
*/
|
|
14
36
|
custom: ShapeData;
|
|
15
37
|
options: ShapeData;
|
|
16
38
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { ISizeAnimation } from "./ISizeAnimation";
|
|
2
2
|
import type { IValueWithRandom } from "../../IValueWithRandom";
|
|
3
|
+
/**
|
|
4
|
+
* [[include:Options/Particles/Size.md]]
|
|
5
|
+
* @category Options
|
|
6
|
+
*/
|
|
3
7
|
export interface ISize extends IValueWithRandom {
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use the new animation instead
|
|
10
|
+
*/
|
|
4
11
|
anim: ISizeAnimation;
|
|
5
12
|
animation: ISizeAnimation;
|
|
6
13
|
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import type { DestroyType, StartValueType } from "../../../../Enums";
|
|
2
2
|
import type { IAnimation } from "../../IAnimation";
|
|
3
|
+
/**
|
|
4
|
+
* @category Options
|
|
5
|
+
*/
|
|
3
6
|
export interface ISizeAnimation extends IAnimation {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use the new minimumValue instead
|
|
9
|
+
*/
|
|
4
10
|
size_min?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use the new min/max object in the size value
|
|
13
|
+
*/
|
|
5
14
|
minimumValue?: number;
|
|
6
15
|
destroy: DestroyType | keyof typeof DestroyType;
|
|
7
16
|
startValue: StartValueType | keyof typeof StartValueType;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ITiltAnimation } from "./ITiltAnimation";
|
|
2
2
|
import type { TiltDirection, TiltDirectionAlt } from "../../../../Enums";
|
|
3
3
|
import type { IValueWithRandom } from "../../IValueWithRandom";
|
|
4
|
+
/**
|
|
5
|
+
* [[include:Options/Particles/Rotate.md]]
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
4
8
|
export interface ITilt extends IValueWithRandom {
|
|
5
9
|
animation: ITiltAnimation;
|
|
6
10
|
direction: TiltDirection | keyof typeof TiltDirection | TiltDirectionAlt;
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import type { RecursivePartial } from "../../../Types";
|
|
2
2
|
import type { IThemeDefault } from "./IThemeDefault";
|
|
3
3
|
import type { IOptions } from "../IOptions";
|
|
4
|
+
/**
|
|
5
|
+
* The options to configure themes that can be easily switched
|
|
6
|
+
* [[include:Options/Themes.md]]
|
|
7
|
+
* @category Options
|
|
8
|
+
*/
|
|
4
9
|
export interface ITheme {
|
|
10
|
+
/**
|
|
11
|
+
* Theme name, use it when changing theme
|
|
12
|
+
*/
|
|
5
13
|
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* Options to set the default theme
|
|
16
|
+
*/
|
|
6
17
|
default: IThemeDefault;
|
|
18
|
+
/**
|
|
19
|
+
* All options the theme will override
|
|
20
|
+
*/
|
|
7
21
|
options?: RecursivePartial<IOptions>;
|
|
8
22
|
}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import type { ThemeMode } from "../../../Enums";
|
|
2
|
+
/**
|
|
3
|
+
* Options to set the default theme
|
|
4
|
+
*/
|
|
2
5
|
export interface IThemeDefault {
|
|
6
|
+
/**
|
|
7
|
+
* If set to true, this theme will be switched when the mode matches the user OS theme
|
|
8
|
+
*/
|
|
3
9
|
auto: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Default theme mode
|
|
12
|
+
* `any`: Sets the default theme for every configuration
|
|
13
|
+
* `dark`: Sets the default theme when the user has dark mode set
|
|
14
|
+
* `light`: Sets the default theme when the user has light mode set
|
|
15
|
+
* If `dark` or `light` themes are set, the `any` default theme will be used only for unset modes
|
|
16
|
+
*/
|
|
4
17
|
mode: ThemeMode | keyof ThemeMode;
|
|
18
|
+
/**
|
|
19
|
+
* Sets or unsets the default flag to this theme and mode
|
|
20
|
+
*/
|
|
5
21
|
value: boolean;
|
|
6
22
|
}
|
|
@@ -10,6 +10,9 @@ declare type OrbitingParticle = Particle & {
|
|
|
10
10
|
absorberOrbitDirection?: RotateDirection;
|
|
11
11
|
needsNewPosition?: boolean;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @category Absorbers Plugin
|
|
15
|
+
*/
|
|
13
16
|
export declare class AbsorberInstance {
|
|
14
17
|
private readonly absorbers;
|
|
15
18
|
private readonly container;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { colorToRgb, getDistance, getDistances, getRangeValue, getStyleFromRgb, isPointInside } from "../../Utils";
|
|
2
2
|
import { Vector } from "../../Core/Particle/Vector";
|
|
3
3
|
import { RotateDirection } from "../../Enums";
|
|
4
|
+
/**
|
|
5
|
+
* @category Absorbers Plugin
|
|
6
|
+
*/
|
|
4
7
|
export class AbsorberInstance {
|
|
5
8
|
constructor(absorbers, container, options, position) {
|
|
6
9
|
var _a, _b, _c;
|
|
@@ -8,6 +8,9 @@ import type { SingleOrMultiple, RecursivePartial } from "../../Types";
|
|
|
8
8
|
import type { IOptions } from "../../Options/Interfaces/IOptions";
|
|
9
9
|
import type { IAbsorberOptions } from "./Options/Interfaces/IAbsorberOptions";
|
|
10
10
|
import type { ICoordinates } from "../../Core/Interfaces/ICoordinates";
|
|
11
|
+
/**
|
|
12
|
+
* @category Absorbers Plugin
|
|
13
|
+
*/
|
|
11
14
|
export declare class Absorbers implements IContainerPlugin {
|
|
12
15
|
private readonly container;
|
|
13
16
|
array: AbsorberInstance[];
|
|
@@ -2,6 +2,9 @@ import { AbsorberInstance } from "./AbsorberInstance";
|
|
|
2
2
|
import { Absorber } from "./Options/Classes/Absorber";
|
|
3
3
|
import { AbsorberClickMode } from "./Enums";
|
|
4
4
|
import { itemFromArray } from "../../Utils";
|
|
5
|
+
/**
|
|
6
|
+
* @category Absorbers Plugin
|
|
7
|
+
*/
|
|
5
8
|
export class Absorbers {
|
|
6
9
|
constructor(container) {
|
|
7
10
|
this.container = container;
|
|
@@ -4,6 +4,10 @@ import type { RecursivePartial } from "../../../../Types";
|
|
|
4
4
|
import { AbsorberSize } from "./AbsorberSize";
|
|
5
5
|
import { OptionsColor } from "../../../../Options/Classes/OptionsColor";
|
|
6
6
|
import type { IOptionLoader } from "../../../../Options/Interfaces/IOptionLoader";
|
|
7
|
+
/**
|
|
8
|
+
* [[include:Options/Plugins/Absorbers.md]]
|
|
9
|
+
* @category Absorbers Plugin
|
|
10
|
+
*/
|
|
7
11
|
export declare class Absorber implements IAbsorber, IOptionLoader<IAbsorber> {
|
|
8
12
|
color: OptionsColor;
|
|
9
13
|
draggable: boolean;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { AbsorberSize } from "./AbsorberSize";
|
|
2
2
|
import { OptionsColor } from "../../../../Options/Classes/OptionsColor";
|
|
3
|
+
/**
|
|
4
|
+
* [[include:Options/Plugins/Absorbers.md]]
|
|
5
|
+
* @category Absorbers Plugin
|
|
6
|
+
*/
|
|
3
7
|
export class Absorber {
|
|
4
8
|
constructor() {
|
|
5
9
|
this.color = new OptionsColor();
|