tsparticles 1.39.0 → 1.40.0
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.d.ts +1 -1
- package/Core/Canvas.js +27 -27
- package/Core/Container.d.ts +8 -6
- package/Core/Container.js +33 -18
- package/Core/Interfaces/Gradients.d.ts +2 -2
- package/Core/Interfaces/ICircleBouncer.d.ts +1 -1
- package/Core/Interfaces/IContainerPlugin.d.ts +4 -4
- package/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/Core/Interfaces/IInteractor.d.ts +1 -1
- package/Core/Interfaces/IParticle.d.ts +8 -8
- package/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
- package/Core/Interfaces/IParticleSpin.d.ts +1 -1
- package/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
- package/Core/Interfaces/IPlugin.d.ts +1 -1
- package/Core/Loader.d.ts +13 -10
- package/Core/Loader.js +42 -26
- package/Core/Particle.d.ts +6 -4
- package/Core/Particle.js +47 -32
- package/Core/Particles.d.ts +6 -4
- package/Core/Particles.js +32 -17
- package/Core/Utils/Circle.d.ts +1 -1
- package/Core/Utils/CircleWarp.d.ts +1 -1
- package/Core/Utils/CircleWarp.js +1 -1
- package/Core/Utils/EventListeners.js +1 -1
- package/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/Core/Utils/InteractionManager.d.ts +6 -4
- package/Core/Utils/InteractionManager.js +19 -3
- package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/Core/Utils/ParticlesMover.d.ts +1 -1
- package/Core/Utils/Plugins.d.ts +30 -16
- package/Core/Utils/Plugins.js +58 -46
- package/Core/Utils/QuadTree.d.ts +3 -3
- package/Core/Utils/QuadTree.js +1 -1
- package/Core/Utils/Rectangle.d.ts +1 -1
- package/Core/Utils/Vector3d.d.ts +1 -1
- package/Interactions/External/Attract/Attractor.d.ts +1 -1
- package/Interactions/External/Attract/Attractor.js +1 -1
- package/Interactions/External/Attract/index.d.ts +1 -1
- package/Interactions/External/Attract/index.js +2 -2
- package/Interactions/External/Bounce/Bouncer.d.ts +1 -1
- package/Interactions/External/Bounce/Bouncer.js +1 -1
- package/Interactions/External/Bounce/index.d.ts +1 -1
- package/Interactions/External/Bounce/index.js +2 -2
- package/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/Interactions/External/Bubble/Bubbler.js +1 -1
- package/Interactions/External/Bubble/index.d.ts +1 -1
- package/Interactions/External/Bubble/index.js +2 -2
- package/Interactions/External/Connect/Connector.js +1 -1
- package/Interactions/External/Connect/index.d.ts +1 -1
- package/Interactions/External/Connect/index.js +2 -2
- package/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/Interactions/External/Grab/Grabber.js +1 -1
- package/Interactions/External/Grab/index.d.ts +1 -1
- package/Interactions/External/Grab/index.js +2 -2
- package/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/Interactions/External/Repulse/Repulser.js +1 -1
- package/Interactions/External/Repulse/index.d.ts +1 -1
- package/Interactions/External/Repulse/index.js +2 -2
- package/Interactions/External/Trail/TrailMaker.js +1 -1
- package/Interactions/External/Trail/index.d.ts +1 -1
- package/Interactions/External/Trail/index.js +2 -2
- package/Interactions/Particles/Attract/Attractor.js +1 -1
- 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/LinkParticle.d.ts +1 -1
- package/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/Interactions/Particles/Links/Linker.js +1 -1
- package/Interactions/Particles/Links/index.d.ts +1 -1
- package/Interactions/Particles/Links/index.js +4 -4
- package/Interactions/Particles/Links/interaction.d.ts +1 -1
- package/Interactions/Particles/Links/interaction.js +2 -2
- package/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/Interactions/Particles/Links/plugin.js +2 -2
- package/Options/Classes/AnimatableColor.d.ts +3 -3
- package/Options/Classes/AnimatableColor.js +1 -1
- package/Options/Classes/AnimatableGradient.d.ts +6 -6
- package/Options/Classes/AnimationOptions.d.ts +2 -2
- package/Options/Classes/Background/Background.d.ts +2 -2
- package/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
- package/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
- package/Options/Classes/ColorAnimation.d.ts +1 -1
- package/Options/Classes/HslAnimation.d.ts +2 -2
- package/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
- package/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
- package/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
- package/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
- package/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
- package/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
- package/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
- package/Options/Classes/Interactivity/Modes/Modes.js +4 -4
- package/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
- package/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
- package/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
- package/Options/Classes/ManualParticle.d.ts +2 -2
- package/Options/Classes/Motion/Motion.d.ts +1 -1
- package/Options/Classes/Options.d.ts +9 -8
- package/Options/Classes/Options.js +20 -13
- package/Options/Classes/OptionsColor.d.ts +2 -2
- package/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
- package/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
- package/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
- package/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
- package/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
- package/Options/Classes/Particles/Life/Life.d.ts +1 -1
- package/Options/Classes/Particles/Links/Links.d.ts +2 -2
- package/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
- package/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
- package/Options/Classes/Particles/Move/Attract.d.ts +2 -2
- package/Options/Classes/Particles/Move/Move.d.ts +5 -5
- package/Options/Classes/Particles/Move/Move.js +3 -3
- package/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
- package/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
- package/Options/Classes/Particles/Move/Spin.d.ts +3 -3
- package/Options/Classes/Particles/Move/Trail.d.ts +2 -2
- package/Options/Classes/Particles/Number/Density.d.ts +1 -1
- package/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
- package/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
- package/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
- package/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
- package/Options/Classes/Particles/Orbit/Orbit.js +2 -2
- package/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
- package/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
- package/Options/Classes/Particles/ParticlesOptions.js +13 -13
- package/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
- package/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
- package/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
- package/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
- package/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
- package/Options/Classes/Particles/Shadow.d.ts +3 -3
- package/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/Options/Classes/Particles/Size/Size.d.ts +2 -2
- package/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
- package/Options/Classes/Particles/Stroke.d.ts +2 -2
- package/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
- package/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
- package/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
- package/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
- package/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
- package/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
- package/Options/Classes/Random.d.ts +1 -1
- package/Options/Classes/Responsive.d.ts +2 -2
- package/Options/Classes/Theme/Theme.d.ts +2 -2
- package/Options/Classes/Theme/Theme.js +1 -1
- package/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
- package/Options/Classes/ValueWithRandom.d.ts +2 -2
- package/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
- package/Options/Interfaces/IAnimatableColor.d.ts +1 -1
- package/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
- package/Options/Interfaces/IColorAnimation.d.ts +1 -1
- package/Options/Interfaces/IManualParticle.d.ts +1 -1
- package/Options/Interfaces/IOptions.d.ts +6 -6
- package/Options/Interfaces/IOptionsGradient.d.ts +2 -2
- package/Options/Interfaces/IResponsive.d.ts +2 -2
- package/Options/Interfaces/IValueWithRandom.d.ts +1 -1
- package/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
- package/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
- package/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
- package/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
- package/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
- package/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
- package/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
- package/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
- package/Options/Interfaces/Particles/IParticles.d.ts +14 -14
- package/Options/Interfaces/Particles/IShadow.d.ts +1 -1
- package/Options/Interfaces/Particles/IStroke.d.ts +1 -1
- package/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
- package/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
- package/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
- package/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
- package/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
- package/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
- package/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
- package/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
- package/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
- package/Options/Interfaces/Theme/ITheme.d.ts +2 -2
- package/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
- package/Plugins/Absorbers/AbsorberInstance.js +18 -18
- package/Plugins/Absorbers/Absorbers.d.ts +3 -3
- package/Plugins/Absorbers/Absorbers.js +1 -1
- package/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
- package/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
- package/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
- package/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
- package/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
- package/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
- package/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
- package/Plugins/Absorbers/index.d.ts +1 -1
- package/Plugins/Absorbers/index.js +3 -3
- package/Plugins/Emitters/EmitterContainer.d.ts +2 -1
- package/Plugins/Emitters/EmitterInstance.d.ts +10 -5
- package/Plugins/Emitters/EmitterInstance.js +78 -49
- package/Plugins/Emitters/Emitters.d.ts +6 -4
- package/Plugins/Emitters/Emitters.js +27 -4
- package/{browser/Plugins/Emitters/EmittersMain.d.ts → Plugins/Emitters/EmittersEngine.d.ts} +3 -1
- package/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/Plugins/Emitters/Options/Classes/Emitter.d.ts +8 -7
- package/Plugins/Emitters/Options/Classes/Emitter.js +4 -3
- package/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
- package/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
- package/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
- package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +7 -6
- package/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
- package/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
- package/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/Plugins/Emitters/ShapeManager.js +16 -4
- package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/Plugins/Emitters/index.d.ts +3 -3
- package/Plugins/Emitters/index.js +33 -14
- package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
- package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
- package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
- package/Plugins/PolygonMask/PolygonMaskInstance.js +12 -12
- package/Plugins/PolygonMask/Types.d.ts +1 -1
- package/Plugins/PolygonMask/index.d.ts +1 -1
- package/Plugins/PolygonMask/index.js +3 -3
- package/README.md +162 -18
- 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/PolygonDrawer.d.ts +1 -1
- package/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
- 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/Types/ShapeData.d.ts +1 -1
- package/Types/ShapeDrawerFunctions.d.ts +1 -1
- 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/IBounceData.d.ts +1 -1
- package/Updaters/OutModes/OutOfCanvasUpdater.js +9 -9
- 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/CanvasUtils.d.ts +2 -3
- package/Utils/CanvasUtils.js +1 -1
- package/Utils/ColorUtils.js +1 -1
- package/Utils/NumberUtils.d.ts +2 -2
- package/Utils/Utils.d.ts +3 -3
- package/browser/Core/Canvas.d.ts +1 -1
- package/browser/Core/Canvas.js +1 -1
- package/browser/Core/Container.d.ts +9 -6
- package/browser/Core/Container.js +34 -18
- package/browser/Core/Interfaces/Gradients.d.ts +2 -2
- package/browser/Core/Interfaces/ICircleBouncer.d.ts +1 -1
- package/browser/Core/Interfaces/IContainerPlugin.d.ts +4 -4
- package/browser/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/browser/Core/Interfaces/IInteractor.d.ts +1 -1
- package/browser/Core/Interfaces/IParticle.d.ts +8 -8
- package/browser/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
- package/browser/Core/Interfaces/IParticleSpin.d.ts +1 -1
- package/browser/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
- package/browser/Core/Interfaces/IPlugin.d.ts +1 -1
- package/browser/Core/Loader.d.ts +13 -10
- package/browser/Core/Loader.js +36 -20
- package/browser/Core/Particle.d.ts +6 -4
- package/browser/Core/Particle.js +19 -4
- package/browser/Core/Particles.d.ts +6 -4
- package/browser/Core/Particles.js +22 -7
- package/browser/Core/Utils/Circle.d.ts +1 -1
- package/browser/Core/Utils/CircleWarp.d.ts +1 -1
- package/browser/Core/Utils/CircleWarp.js +1 -1
- package/browser/Core/Utils/EventListeners.js +1 -1
- package/browser/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/browser/Core/Utils/InteractionManager.d.ts +6 -4
- package/browser/Core/Utils/InteractionManager.js +19 -3
- package/browser/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/browser/Core/Utils/ParticlesMover.d.ts +1 -1
- package/browser/Core/Utils/Plugins.d.ts +30 -16
- package/browser/Core/Utils/Plugins.js +58 -46
- package/browser/Core/Utils/QuadTree.d.ts +3 -3
- package/browser/Core/Utils/QuadTree.js +1 -1
- package/browser/Core/Utils/Rectangle.d.ts +1 -1
- package/browser/Core/Utils/Vector3d.d.ts +1 -1
- package/browser/Interactions/External/Attract/Attractor.d.ts +1 -1
- package/browser/Interactions/External/Attract/Attractor.js +1 -1
- 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.d.ts +1 -1
- package/browser/Interactions/External/Bounce/Bouncer.js +1 -1
- 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 +1 -1
- package/browser/Interactions/External/Bubble/Bubbler.js +1 -1
- 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.js +1 -1
- 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 +1 -1
- package/browser/Interactions/External/Grab/Grabber.js +1 -1
- 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 +1 -1
- package/browser/Interactions/External/Repulse/Repulser.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
- package/browser/Interactions/Particles/Attract/index.js +2 -2
- package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/browser/Interactions/Particles/Collisions/index.js +2 -2
- package/browser/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
- package/browser/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/browser/Interactions/Particles/Links/Linker.js +1 -1
- package/browser/Interactions/Particles/Links/index.d.ts +1 -1
- package/browser/Interactions/Particles/Links/index.js +4 -4
- package/browser/Interactions/Particles/Links/interaction.d.ts +1 -1
- package/browser/Interactions/Particles/Links/interaction.js +2 -2
- package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/browser/Interactions/Particles/Links/plugin.js +2 -2
- package/browser/Options/Classes/AnimatableColor.d.ts +3 -3
- package/browser/Options/Classes/AnimatableColor.js +1 -1
- package/browser/Options/Classes/AnimatableGradient.d.ts +6 -6
- package/browser/Options/Classes/AnimationOptions.d.ts +2 -2
- package/browser/Options/Classes/Background/Background.d.ts +2 -2
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
- package/browser/Options/Classes/ColorAnimation.d.ts +1 -1
- package/browser/Options/Classes/HslAnimation.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
- package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
- package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -4
- package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
- package/browser/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
- package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
- package/browser/Options/Classes/ManualParticle.d.ts +2 -2
- package/browser/Options/Classes/Motion/Motion.d.ts +1 -1
- package/browser/Options/Classes/Options.d.ts +9 -8
- package/browser/Options/Classes/Options.js +20 -13
- package/browser/Options/Classes/OptionsColor.d.ts +2 -2
- package/browser/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
- package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
- package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
- package/browser/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
- package/browser/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
- package/browser/Options/Classes/Particles/Life/Life.d.ts +1 -1
- package/browser/Options/Classes/Particles/Links/Links.d.ts +2 -2
- package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
- package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
- package/browser/Options/Classes/Particles/Move/Attract.d.ts +2 -2
- package/browser/Options/Classes/Particles/Move/Move.d.ts +5 -5
- package/browser/Options/Classes/Particles/Move/Move.js +3 -3
- package/browser/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
- package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
- package/browser/Options/Classes/Particles/Move/Spin.d.ts +3 -3
- package/browser/Options/Classes/Particles/Move/Trail.d.ts +2 -2
- package/browser/Options/Classes/Particles/Number/Density.d.ts +1 -1
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
- package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
- package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
- package/browser/Options/Classes/Particles/Orbit/Orbit.js +2 -2
- package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
- package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
- package/browser/Options/Classes/Particles/ParticlesOptions.js +13 -13
- package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
- package/browser/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
- package/browser/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
- package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
- package/browser/Options/Classes/Particles/Shadow.d.ts +3 -3
- package/browser/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/browser/Options/Classes/Particles/Size/Size.d.ts +2 -2
- package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
- package/browser/Options/Classes/Particles/Stroke.d.ts +2 -2
- package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
- package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
- package/browser/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
- package/browser/Options/Classes/Random.d.ts +1 -1
- package/browser/Options/Classes/Responsive.d.ts +2 -2
- package/browser/Options/Classes/Theme/Theme.d.ts +2 -2
- package/browser/Options/Classes/Theme/Theme.js +1 -1
- package/browser/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
- package/browser/Options/Classes/ValueWithRandom.d.ts +2 -2
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
- package/browser/Options/Interfaces/IAnimatableColor.d.ts +1 -1
- package/browser/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
- package/browser/Options/Interfaces/IColorAnimation.d.ts +1 -1
- package/browser/Options/Interfaces/IColorAnimation.js +0 -4
- package/browser/Options/Interfaces/IManualParticle.d.ts +1 -1
- package/browser/Options/Interfaces/IOptions.d.ts +6 -6
- package/browser/Options/Interfaces/IOptionsGradient.d.ts +2 -2
- package/browser/Options/Interfaces/IResponsive.d.ts +2 -2
- package/browser/Options/Interfaces/IValueWithRandom.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/IParticles.d.ts +14 -14
- package/browser/Options/Interfaces/Particles/IShadow.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/IStroke.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
- package/browser/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
- package/browser/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
- package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
- package/browser/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
- package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
- package/browser/Options/Interfaces/Theme/ITheme.d.ts +2 -2
- package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
- package/browser/Plugins/Absorbers/AbsorberInstance.js +18 -18
- package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -3
- package/browser/Plugins/Absorbers/Absorbers.js +1 -1
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
- package/browser/Plugins/Absorbers/index.d.ts +1 -1
- package/browser/Plugins/Absorbers/index.js +3 -3
- package/browser/Plugins/Emitters/EmitterContainer.d.ts +2 -1
- package/browser/Plugins/Emitters/EmitterInstance.d.ts +10 -5
- package/browser/Plugins/Emitters/EmitterInstance.js +78 -49
- package/browser/Plugins/Emitters/Emitters.d.ts +6 -4
- package/browser/Plugins/Emitters/Emitters.js +27 -4
- package/{esm/Plugins/Emitters/EmittersMain.d.ts → browser/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
- package/browser/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/browser/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +8 -7
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +4 -3
- package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +10 -6
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
- package/browser/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/browser/Plugins/Emitters/ShapeManager.js +16 -4
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/browser/Plugins/Emitters/index.d.ts +3 -3
- package/browser/Plugins/Emitters/index.js +33 -14
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
- package/browser/Plugins/PolygonMask/Types.d.ts +1 -1
- package/browser/Plugins/PolygonMask/index.d.ts +1 -1
- package/browser/Plugins/PolygonMask/index.js +3 -3
- package/browser/Shapes/Circle/index.d.ts +1 -1
- package/browser/Shapes/Circle/index.js +2 -2
- package/browser/Shapes/Image/index.d.ts +1 -1
- package/browser/Shapes/Image/index.js +3 -3
- package/browser/Shapes/Line/index.d.ts +1 -1
- package/browser/Shapes/Line/index.js +2 -2
- package/browser/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
- package/browser/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
- package/browser/Shapes/Polygon/index.d.ts +3 -3
- package/browser/Shapes/Polygon/index.js +7 -7
- package/browser/Shapes/Square/index.d.ts +1 -1
- package/browser/Shapes/Square/index.js +3 -3
- package/browser/Shapes/Star/index.d.ts +1 -1
- package/browser/Shapes/Star/index.js +2 -2
- package/browser/Shapes/Text/index.d.ts +1 -1
- package/browser/Shapes/Text/index.js +3 -3
- package/browser/Types/ShapeData.d.ts +1 -1
- package/browser/Types/ShapeDrawerFunctions.d.ts +1 -1
- package/browser/Updaters/Angle/index.d.ts +1 -1
- package/browser/Updaters/Angle/index.js +2 -2
- package/browser/Updaters/Color/index.d.ts +1 -1
- package/browser/Updaters/Color/index.js +2 -2
- package/browser/Updaters/Life/index.d.ts +1 -1
- package/browser/Updaters/Life/index.js +2 -2
- package/browser/Updaters/Opacity/index.d.ts +1 -1
- package/browser/Updaters/Opacity/index.js +2 -2
- package/browser/Updaters/OutModes/IBounceData.d.ts +1 -1
- package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
- 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/index.d.ts +1 -1
- package/browser/Updaters/Size/index.js +2 -2
- 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.d.ts +2 -3
- package/browser/Utils/CanvasUtils.js +1 -1
- package/browser/Utils/ColorUtils.js +1 -1
- package/browser/Utils/NumberUtils.d.ts +2 -2
- package/browser/Utils/Utils.d.ts +3 -3
- package/browser/Utils/Utils.js +1 -1
- package/browser/engine.d.ts +7 -3
- package/browser/engine.js +22 -17
- package/browser/full.d.ts +1 -1
- package/browser/full.js +14 -14
- package/browser/index.d.ts +1 -1
- package/browser/index.engine.d.ts +1 -1
- package/browser/index.engine.js +1 -1
- package/browser/index.js +1 -1
- package/browser/index.slim.d.ts +1 -1
- package/browser/index.slim.js +1 -1
- package/browser/pjs.d.ts +1 -1
- package/browser/slim.d.ts +1 -1
- package/browser/slim.js +40 -40
- package/engine.d.ts +5 -2
- package/engine.js +20 -16
- package/esm/Core/Canvas.d.ts +1 -1
- package/esm/Core/Canvas.js +1 -1
- package/esm/Core/Container.d.ts +8 -6
- package/esm/Core/Container.js +33 -18
- package/esm/Core/Interfaces/Gradients.d.ts +2 -2
- package/esm/Core/Interfaces/ICircleBouncer.d.ts +1 -1
- package/esm/Core/Interfaces/IContainerPlugin.d.ts +4 -4
- package/esm/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/esm/Core/Interfaces/IInteractor.d.ts +1 -1
- package/esm/Core/Interfaces/IParticle.d.ts +8 -8
- package/esm/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
- package/esm/Core/Interfaces/IParticleSpin.d.ts +1 -1
- package/esm/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
- package/esm/Core/Interfaces/IPlugin.d.ts +1 -1
- package/esm/Core/Loader.d.ts +13 -10
- package/esm/Core/Loader.js +36 -20
- package/esm/Core/Particle.d.ts +6 -4
- package/esm/Core/Particle.js +19 -4
- package/esm/Core/Particles.d.ts +6 -4
- package/esm/Core/Particles.js +22 -7
- package/esm/Core/Utils/Circle.d.ts +1 -1
- package/esm/Core/Utils/CircleWarp.d.ts +1 -1
- package/esm/Core/Utils/CircleWarp.js +1 -1
- package/esm/Core/Utils/EventListeners.js +1 -1
- package/esm/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/esm/Core/Utils/InteractionManager.d.ts +6 -4
- package/esm/Core/Utils/InteractionManager.js +19 -3
- package/esm/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/esm/Core/Utils/ParticlesMover.d.ts +1 -1
- package/esm/Core/Utils/Plugins.d.ts +30 -16
- package/esm/Core/Utils/Plugins.js +58 -46
- package/esm/Core/Utils/QuadTree.d.ts +3 -3
- package/esm/Core/Utils/QuadTree.js +1 -1
- package/esm/Core/Utils/Rectangle.d.ts +1 -1
- package/esm/Core/Utils/Vector3d.d.ts +1 -1
- package/esm/Interactions/External/Attract/Attractor.d.ts +1 -1
- package/esm/Interactions/External/Attract/Attractor.js +1 -1
- package/esm/Interactions/External/Attract/index.d.ts +1 -1
- package/esm/Interactions/External/Attract/index.js +2 -2
- package/esm/Interactions/External/Bounce/Bouncer.d.ts +1 -1
- package/esm/Interactions/External/Bounce/Bouncer.js +1 -1
- package/esm/Interactions/External/Bounce/index.d.ts +1 -1
- package/esm/Interactions/External/Bounce/index.js +2 -2
- package/esm/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/esm/Interactions/External/Bubble/Bubbler.js +1 -1
- package/esm/Interactions/External/Bubble/index.d.ts +1 -1
- package/esm/Interactions/External/Bubble/index.js +2 -2
- package/esm/Interactions/External/Connect/Connector.js +1 -1
- package/esm/Interactions/External/Connect/index.d.ts +1 -1
- package/esm/Interactions/External/Connect/index.js +2 -2
- package/esm/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/esm/Interactions/External/Grab/Grabber.js +1 -1
- package/esm/Interactions/External/Grab/index.d.ts +1 -1
- package/esm/Interactions/External/Grab/index.js +2 -2
- package/esm/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/esm/Interactions/External/Repulse/Repulser.js +1 -1
- package/esm/Interactions/External/Repulse/index.d.ts +1 -1
- package/esm/Interactions/External/Repulse/index.js +2 -2
- package/esm/Interactions/External/Trail/TrailMaker.js +1 -1
- package/esm/Interactions/External/Trail/index.d.ts +1 -1
- package/esm/Interactions/External/Trail/index.js +2 -2
- package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
- 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/LinkParticle.d.ts +1 -1
- package/esm/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/esm/Interactions/Particles/Links/Linker.js +1 -1
- package/esm/Interactions/Particles/Links/index.d.ts +1 -1
- package/esm/Interactions/Particles/Links/index.js +4 -4
- package/esm/Interactions/Particles/Links/interaction.d.ts +1 -1
- package/esm/Interactions/Particles/Links/interaction.js +2 -2
- package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/esm/Interactions/Particles/Links/plugin.js +2 -2
- package/esm/Options/Classes/AnimatableColor.d.ts +3 -3
- package/esm/Options/Classes/AnimatableColor.js +1 -1
- package/esm/Options/Classes/AnimatableGradient.d.ts +6 -6
- package/esm/Options/Classes/AnimationOptions.d.ts +2 -2
- package/esm/Options/Classes/Background/Background.d.ts +2 -2
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
- package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
- package/esm/Options/Classes/ColorAnimation.d.ts +1 -1
- package/esm/Options/Classes/HslAnimation.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
- package/esm/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
- package/esm/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +4 -4
- package/esm/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
- package/esm/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
- package/esm/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
- package/esm/Options/Classes/ManualParticle.d.ts +2 -2
- package/esm/Options/Classes/Motion/Motion.d.ts +1 -1
- package/esm/Options/Classes/Options.d.ts +9 -8
- package/esm/Options/Classes/Options.js +20 -13
- package/esm/Options/Classes/OptionsColor.d.ts +2 -2
- package/esm/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
- package/esm/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
- package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
- package/esm/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
- package/esm/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
- package/esm/Options/Classes/Particles/Life/Life.d.ts +1 -1
- package/esm/Options/Classes/Particles/Links/Links.d.ts +2 -2
- package/esm/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
- package/esm/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
- package/esm/Options/Classes/Particles/Move/Attract.d.ts +2 -2
- package/esm/Options/Classes/Particles/Move/Move.d.ts +5 -5
- package/esm/Options/Classes/Particles/Move/Move.js +3 -3
- package/esm/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
- package/esm/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
- package/esm/Options/Classes/Particles/Move/Spin.d.ts +3 -3
- package/esm/Options/Classes/Particles/Move/Trail.d.ts +2 -2
- package/esm/Options/Classes/Particles/Number/Density.d.ts +1 -1
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
- package/esm/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
- package/esm/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
- package/esm/Options/Classes/Particles/Orbit/Orbit.js +2 -2
- package/esm/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
- package/esm/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
- package/esm/Options/Classes/Particles/ParticlesOptions.js +13 -13
- package/esm/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
- package/esm/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
- package/esm/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
- package/esm/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
- package/esm/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
- package/esm/Options/Classes/Particles/Shadow.d.ts +3 -3
- package/esm/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/esm/Options/Classes/Particles/Size/Size.d.ts +2 -2
- package/esm/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
- package/esm/Options/Classes/Particles/Stroke.d.ts +2 -2
- package/esm/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
- package/esm/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
- package/esm/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
- package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
- package/esm/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
- package/esm/Options/Classes/Random.d.ts +1 -1
- package/esm/Options/Classes/Responsive.d.ts +2 -2
- package/esm/Options/Classes/Theme/Theme.d.ts +2 -2
- package/esm/Options/Classes/Theme/Theme.js +1 -1
- package/esm/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
- package/esm/Options/Classes/ValueWithRandom.d.ts +2 -2
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
- package/esm/Options/Interfaces/IAnimatableColor.d.ts +1 -1
- package/esm/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
- package/esm/Options/Interfaces/IColorAnimation.d.ts +1 -1
- package/esm/Options/Interfaces/IManualParticle.d.ts +1 -1
- package/esm/Options/Interfaces/IOptions.d.ts +6 -6
- package/esm/Options/Interfaces/IOptionsGradient.d.ts +2 -2
- package/esm/Options/Interfaces/IResponsive.d.ts +2 -2
- package/esm/Options/Interfaces/IValueWithRandom.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
- package/esm/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
- package/esm/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
- package/esm/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/IParticles.d.ts +14 -14
- package/esm/Options/Interfaces/Particles/IShadow.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/IStroke.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
- package/esm/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
- package/esm/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
- package/esm/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
- package/esm/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
- package/esm/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
- package/esm/Options/Interfaces/Theme/ITheme.d.ts +2 -2
- package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
- package/esm/Plugins/Absorbers/AbsorberInstance.js +18 -18
- package/esm/Plugins/Absorbers/Absorbers.d.ts +3 -3
- package/esm/Plugins/Absorbers/Absorbers.js +1 -1
- package/esm/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
- package/esm/Plugins/Absorbers/index.d.ts +1 -1
- package/esm/Plugins/Absorbers/index.js +3 -3
- package/esm/Plugins/Emitters/EmitterContainer.d.ts +2 -1
- package/esm/Plugins/Emitters/EmitterInstance.d.ts +10 -5
- package/esm/Plugins/Emitters/EmitterInstance.js +78 -49
- package/esm/Plugins/Emitters/Emitters.d.ts +6 -4
- package/esm/Plugins/Emitters/Emitters.js +27 -4
- package/{Plugins/Emitters/EmittersMain.d.ts → esm/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
- package/esm/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/esm/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +8 -7
- package/esm/Plugins/Emitters/Options/Classes/Emitter.js +4 -3
- package/esm/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +7 -6
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
- package/esm/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/esm/Plugins/Emitters/ShapeManager.js +16 -4
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/esm/Plugins/Emitters/index.d.ts +3 -3
- package/esm/Plugins/Emitters/index.js +33 -14
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
- package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
- package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
- package/esm/Plugins/PolygonMask/Types.d.ts +1 -1
- package/esm/Plugins/PolygonMask/index.d.ts +1 -1
- package/esm/Plugins/PolygonMask/index.js +3 -3
- 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/PolygonDrawer.d.ts +1 -1
- package/esm/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
- 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 +3 -3
- package/esm/Types/ShapeData.d.ts +1 -1
- package/esm/Types/ShapeDrawerFunctions.d.ts +1 -1
- 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/IBounceData.d.ts +1 -1
- package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
- 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/CanvasUtils.d.ts +2 -3
- package/esm/Utils/CanvasUtils.js +1 -1
- package/esm/Utils/ColorUtils.js +1 -1
- package/esm/Utils/NumberUtils.d.ts +2 -2
- package/esm/Utils/Utils.d.ts +3 -3
- package/esm/Utils/Utils.js +1 -1
- package/esm/engine.d.ts +5 -2
- package/esm/engine.js +20 -16
- package/esm/full.d.ts +1 -1
- package/esm/full.js +14 -14
- package/esm/index.d.ts +1 -1
- package/esm/index.engine.d.ts +1 -1
- package/esm/index.engine.js +1 -1
- package/esm/index.js +1 -1
- package/esm/index.slim.d.ts +1 -1
- package/esm/index.slim.js +1 -1
- package/esm/pjs.d.ts +1 -1
- package/esm/slim.d.ts +1 -1
- package/esm/slim.js +40 -40
- package/full.d.ts +1 -1
- package/full.js +14 -14
- package/index.d.ts +1 -1
- package/index.engine.d.ts +1 -1
- package/index.engine.js +1 -1
- package/index.js +1 -1
- package/index.slim.d.ts +1 -1
- package/index.slim.js +1 -1
- package/package.json +11 -5
- package/pjs.d.ts +1 -1
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/slim.d.ts +1 -1
- package/slim.js +40 -40
- package/tsparticles.engine.js +2537 -2428
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +4093 -3988
- package/tsparticles.interaction.external.attract.min.js +2 -2
- package/tsparticles.interaction.external.bounce.js +4102 -3997
- package/tsparticles.interaction.external.bounce.min.js +2 -2
- package/tsparticles.interaction.external.bubble.js +4102 -3997
- package/tsparticles.interaction.external.bubble.min.js +2 -2
- package/tsparticles.interaction.external.connect.js +4288 -4183
- package/tsparticles.interaction.external.connect.min.js +2 -2
- package/tsparticles.interaction.external.grab.js +4288 -4183
- package/tsparticles.interaction.external.grab.min.js +2 -2
- package/tsparticles.interaction.external.repulse.js +4102 -3997
- package/tsparticles.interaction.external.repulse.min.js +2 -2
- package/tsparticles.interaction.external.trail.js +4288 -4183
- package/tsparticles.interaction.external.trail.min.js +2 -2
- package/tsparticles.interaction.particles.attract.js +4288 -4183
- package/tsparticles.interaction.particles.attract.min.js +2 -2
- package/tsparticles.interaction.particles.collisions.js +1249 -1144
- package/tsparticles.interaction.particles.collisions.min.js +2 -2
- package/tsparticles.interaction.particles.links.js +4400 -4295
- package/tsparticles.interaction.particles.links.min.js +2 -2
- package/tsparticles.js +5946 -5749
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +1210 -1106
- package/tsparticles.plugins.absorbers.min.js +2 -2
- package/tsparticles.plugins.emitters.js +1875 -1681
- package/tsparticles.plugins.emitters.min.js +2 -2
- package/tsparticles.plugins.polygonMask.js +2785 -2680
- package/tsparticles.plugins.polygonMask.min.js +2 -2
- package/tsparticles.shape.circle.js +2 -2
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.js +1237 -1132
- package/tsparticles.shape.image.min.js +2 -2
- package/tsparticles.shape.line.js +2 -2
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.js +7 -7
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.js +3 -3
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.js +2 -2
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.js +1249 -1144
- package/tsparticles.shape.text.min.js +2 -2
- package/tsparticles.slim.js +3710 -3601
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +1249 -1144
- package/tsparticles.updater.angle.min.js +2 -2
- package/tsparticles.updater.color.js +1249 -1144
- package/tsparticles.updater.color.min.js +2 -2
- package/tsparticles.updater.life.js +1249 -1144
- package/tsparticles.updater.life.min.js +2 -2
- package/tsparticles.updater.opacity.js +1249 -1144
- package/tsparticles.updater.opacity.min.js +2 -2
- package/tsparticles.updater.outModes.js +1249 -1144
- package/tsparticles.updater.outModes.min.js +2 -2
- package/tsparticles.updater.roll.js +1249 -1144
- package/tsparticles.updater.roll.min.js +2 -2
- package/tsparticles.updater.size.js +1249 -1144
- package/tsparticles.updater.size.min.js +2 -2
- package/tsparticles.updater.strokeColor.js +1249 -1144
- package/tsparticles.updater.strokeColor.min.js +2 -2
- package/tsparticles.updater.tilt.js +1249 -1144
- package/tsparticles.updater.tilt.min.js +2 -2
- package/tsparticles.updater.wobble.js +1249 -1144
- package/tsparticles.updater.wobble.min.js +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Linker = void 0;
|
|
4
|
-
const Utils_1 = require("../../../Utils");
|
|
5
4
|
const Core_1 = require("../../../Core");
|
|
5
|
+
const Utils_1 = require("../../../Utils");
|
|
6
6
|
function getLinkDistance(pos1, pos2, optDistance, canvasSize, warp) {
|
|
7
7
|
let distance = (0, Utils_1.getDistance)(pos1, pos2);
|
|
8
8
|
if (!warp || distance <= optDistance) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../../engine";
|
|
2
|
-
export declare function loadParticlesLinksInteraction(
|
|
2
|
+
export declare function loadParticlesLinksInteraction(engine: Engine): Promise<void>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadParticlesLinksInteraction = void 0;
|
|
4
|
-
const plugin_1 = require("./plugin");
|
|
5
4
|
const interaction_1 = require("./interaction");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
await (0,
|
|
5
|
+
const plugin_1 = require("./plugin");
|
|
6
|
+
async function loadParticlesLinksInteraction(engine) {
|
|
7
|
+
await (0, interaction_1.loadInteraction)(engine);
|
|
8
|
+
await (0, plugin_1.loadPlugin)(engine);
|
|
9
9
|
}
|
|
10
10
|
exports.loadParticlesLinksInteraction = loadParticlesLinksInteraction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../../engine";
|
|
2
|
-
export declare function loadInteraction(
|
|
2
|
+
export declare function loadInteraction(engine: Engine): Promise<void>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadInteraction = void 0;
|
|
4
4
|
const Linker_1 = require("./Linker");
|
|
5
|
-
async function loadInteraction(
|
|
6
|
-
await
|
|
5
|
+
async function loadInteraction(engine) {
|
|
6
|
+
await engine.addInteractor("particlesLinks", (container) => new Linker_1.Linker(container));
|
|
7
7
|
}
|
|
8
8
|
exports.loadInteraction = loadInteraction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../../engine";
|
|
2
|
-
export declare function loadPlugin(
|
|
2
|
+
export declare function loadPlugin(engine: Engine): Promise<void>;
|
|
@@ -15,8 +15,8 @@ class LinksPlugin {
|
|
|
15
15
|
loadOptions() {
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
async function loadPlugin(
|
|
18
|
+
async function loadPlugin(engine) {
|
|
19
19
|
const plugin = new LinksPlugin();
|
|
20
|
-
await
|
|
20
|
+
await engine.addPlugin(plugin);
|
|
21
21
|
}
|
|
22
22
|
exports.loadPlugin = loadPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IAnimatableColor } from "../Interfaces/IAnimatableColor";
|
|
2
|
-
import { OptionsColor } from "./OptionsColor";
|
|
3
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../Types";
|
|
4
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
5
2
|
import { HslAnimation } from "./HslAnimation";
|
|
3
|
+
import type { IAnimatableColor } from "../Interfaces/IAnimatableColor";
|
|
4
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
5
|
+
import { OptionsColor } from "./OptionsColor";
|
|
6
6
|
export declare class AnimatableColor extends OptionsColor implements IAnimatableColor, IOptionLoader<IAnimatableColor> {
|
|
7
7
|
animation: HslAnimation;
|
|
8
8
|
constructor();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AnimatableColor = void 0;
|
|
4
|
-
const OptionsColor_1 = require("./OptionsColor");
|
|
5
4
|
const HslAnimation_1 = require("./HslAnimation");
|
|
5
|
+
const OptionsColor_1 = require("./OptionsColor");
|
|
6
6
|
class AnimatableColor extends OptionsColor_1.OptionsColor {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { IAnimatableGradient } from "../Interfaces/IAnimatableGradient";
|
|
2
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
3
1
|
import { GradientType, RotateDirection, RotateDirectionAlt, StartValueType } from "../../Enums";
|
|
4
|
-
import type { IGradientAngle, IGradientColorOpacity } from "../../Core/Interfaces";
|
|
5
|
-
import type { IAnimatable } from "../Interfaces/IAnimatable";
|
|
6
|
-
import type { IAnimation } from "../Interfaces/IAnimation";
|
|
7
|
-
import type { RangeValue, RecursivePartial } from "../../Types";
|
|
8
2
|
import type { IAnimatableGradientColor, IGradientColorOpacityAnimation } from "../Interfaces/IOptionsGradient";
|
|
3
|
+
import type { IGradientAngle, IGradientColorOpacity } from "../../Core";
|
|
4
|
+
import type { RangeValue, RecursivePartial } from "../../Types";
|
|
9
5
|
import { AnimatableColor } from "./AnimatableColor";
|
|
6
|
+
import type { IAnimatable } from "../Interfaces/IAnimatable";
|
|
7
|
+
import type { IAnimatableGradient } from "../Interfaces/IAnimatableGradient";
|
|
8
|
+
import type { IAnimation } from "../Interfaces/IAnimation";
|
|
9
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
10
10
|
export declare class AnimatableGradient implements IAnimatableGradient, IOptionLoader<IAnimatableGradient> {
|
|
11
11
|
angle: GradientAngle;
|
|
12
12
|
colors: AnimatableGradientColor[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RecursivePartial } from "../../Types";
|
|
2
|
-
import { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
3
1
|
import { IAnimation } from "../Interfaces/IAnimation";
|
|
2
|
+
import { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
3
|
+
import { RecursivePartial } from "../../Types";
|
|
4
4
|
export declare class AnimationOptions implements IAnimation, IOptionLoader<IAnimation> {
|
|
5
5
|
count: number;
|
|
6
6
|
enable: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IBackground } from "../../Interfaces/Background/IBackground";
|
|
2
|
-
import type { RecursivePartial } from "../../../Types";
|
|
3
|
-
import { OptionsColor } from "../OptionsColor";
|
|
4
2
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
3
|
+
import { OptionsColor } from "../OptionsColor";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types";
|
|
5
5
|
export declare class Background implements IBackground, IOptionLoader<IBackground> {
|
|
6
6
|
color: OptionsColor;
|
|
7
7
|
image: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IBackgroundMask } from "../../Interfaces/BackgroundMask/IBackgroundMask";
|
|
2
|
-
import type { RecursivePartial } from "../../../Types";
|
|
3
1
|
import { BackgroundMaskCover } from "./BackgroundMaskCover";
|
|
2
|
+
import type { IBackgroundMask } from "../../Interfaces/BackgroundMask/IBackgroundMask";
|
|
4
3
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types";
|
|
5
5
|
export declare class BackgroundMask implements IBackgroundMask, IOptionLoader<IBackgroundMask> {
|
|
6
6
|
composite: string;
|
|
7
7
|
cover: BackgroundMaskCover;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { RecursivePartial } from "../../../Types";
|
|
2
|
-
import { OptionsColor } from "../OptionsColor";
|
|
3
1
|
import type { IBackgroundMaskCover } from "../../Interfaces/BackgroundMask/IBackgroundMaskCover";
|
|
4
2
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
3
|
+
import { OptionsColor } from "../OptionsColor";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types";
|
|
5
5
|
export declare class BackgroundMaskCover implements IBackgroundMaskCover, IOptionLoader<IBackgroundMaskCover> {
|
|
6
6
|
color: OptionsColor;
|
|
7
7
|
opacity: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IColorAnimation } from "../Interfaces/IColorAnimation";
|
|
2
1
|
import type { RangeValue, RecursivePartial } from "../../Types";
|
|
2
|
+
import type { IColorAnimation } from "../Interfaces/IColorAnimation";
|
|
3
3
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
4
|
export declare class ColorAnimation implements IColorAnimation, IOptionLoader<IColorAnimation> {
|
|
5
5
|
count: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { RecursivePartial } from "../../Types";
|
|
2
1
|
import { ColorAnimation } from "./ColorAnimation";
|
|
3
|
-
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
2
|
import type { IHslAnimation } from "../Interfaces/IHslAnimation";
|
|
3
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
|
+
import type { RecursivePartial } from "../../Types";
|
|
5
5
|
export declare class HslAnimation implements IHslAnimation, IOptionLoader<IHslAnimation> {
|
|
6
6
|
h: ColorAnimation;
|
|
7
7
|
s: ColorAnimation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IClickEvent } from "../../../Interfaces/Interactivity/Events/IClickEvent";
|
|
2
|
-
import { ClickMode } from "../../../../Enums";
|
|
3
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
2
|
+
import { ClickMode } from "../../../../Enums";
|
|
3
|
+
import type { IClickEvent } from "../../../Interfaces/Interactivity/Events/IClickEvent";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
export declare class ClickEvent implements IClickEvent, IOptionLoader<IClickEvent> {
|
|
6
6
|
enable: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IDivEvent } from "../../../Interfaces/Interactivity/Events/IDivEvent";
|
|
2
1
|
import { DivMode, DivType } from "../../../../Enums";
|
|
3
2
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
3
|
+
import type { IDivEvent } from "../../../Interfaces/Interactivity/Events/IDivEvent";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
export declare class DivEvent implements IDivEvent, IOptionLoader<IDivEvent> {
|
|
6
6
|
get elementId(): SingleOrMultiple<string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
2
2
|
import { ClickEvent } from "./ClickEvent";
|
|
3
3
|
import { DivEvent } from "./DivEvent";
|
|
4
4
|
import { HoverEvent } from "./HoverEvent";
|
|
5
|
-
import type {
|
|
5
|
+
import type { IEvents } from "../../../Interfaces/Interactivity/Events/IEvents";
|
|
6
6
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
7
7
|
export declare class Events implements IEvents, IOptionLoader<IEvents> {
|
|
8
8
|
get onclick(): ClickEvent;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IHoverEvent } from "../../../Interfaces/Interactivity/Events/IHoverEvent";
|
|
2
|
-
import { HoverMode } from "../../../../Enums";
|
|
3
|
-
import { Parallax } from "./Parallax";
|
|
4
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
2
|
+
import { HoverMode } from "../../../../Enums";
|
|
3
|
+
import type { IHoverEvent } from "../../../Interfaces/Interactivity/Events/IHoverEvent";
|
|
5
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
+
import { Parallax } from "./Parallax";
|
|
6
6
|
export declare class HoverEvent implements IHoverEvent, IOptionLoader<IHoverEvent> {
|
|
7
7
|
enable: boolean;
|
|
8
8
|
mode: SingleOrMultiple<HoverMode | keyof typeof HoverMode | string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
1
2
|
import type { IParallax } from "../../../Interfaces/Interactivity/Events/IParallax";
|
|
2
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
4
|
export declare class Parallax implements IParallax, IOptionLoader<IParallax> {
|
|
5
5
|
enable: boolean;
|
|
6
6
|
force: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity";
|
|
2
1
|
import { InteractivityDetect } from "../../../Enums";
|
|
3
2
|
import { Events } from "./Events/Events";
|
|
3
|
+
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity";
|
|
4
|
+
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
4
5
|
import { Modes } from "./Modes/Modes";
|
|
5
6
|
import type { RecursivePartial } from "../../../Types";
|
|
6
|
-
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
7
7
|
export declare class Interactivity implements IInteractivity, IOptionLoader<IInteractivity> {
|
|
8
8
|
get detect_on(): InteractivityDetect | keyof typeof InteractivityDetect;
|
|
9
9
|
set detect_on(value: InteractivityDetect | keyof typeof InteractivityDetect);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { EasingType } from "../../../../Enums";
|
|
1
2
|
import type { IAttract } from "../../../Interfaces/Interactivity/Modes/IAttract";
|
|
2
|
-
import type { RecursivePartial } from "../../../../Types";
|
|
3
3
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
|
-
import {
|
|
4
|
+
import type { RecursivePartial } from "../../../../Types";
|
|
5
5
|
export declare class Attract implements IAttract, IOptionLoader<IAttract> {
|
|
6
6
|
distance: number;
|
|
7
7
|
duration: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IBubble } from "../../../Interfaces/Interactivity/Modes/IBubble";
|
|
2
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
3
|
-
import { BubbleDiv } from "./BubbleDiv";
|
|
4
2
|
import { BubbleBase } from "./BubbleBase";
|
|
3
|
+
import { BubbleDiv } from "./BubbleDiv";
|
|
4
|
+
import type { IBubble } from "../../../Interfaces/Interactivity/Modes/IBubble";
|
|
5
5
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
6
6
|
export declare class Bubble extends BubbleBase implements IBubble, IOptionLoader<IBubble> {
|
|
7
7
|
divs?: SingleOrMultiple<BubbleDiv>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Bubble = void 0;
|
|
4
|
-
const BubbleDiv_1 = require("./BubbleDiv");
|
|
5
4
|
const BubbleBase_1 = require("./BubbleBase");
|
|
5
|
+
const BubbleDiv_1 = require("./BubbleDiv");
|
|
6
6
|
class Bubble extends BubbleBase_1.BubbleBase {
|
|
7
7
|
load(data) {
|
|
8
8
|
super.load(data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBubbleBase } from "../../../Interfaces/Interactivity/Modes/IBubbleBase";
|
|
2
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
2
|
+
import type { IBubbleBase } from "../../../Interfaces/Interactivity/Modes/IBubbleBase";
|
|
3
3
|
import { OptionsColor } from "../../OptionsColor";
|
|
4
4
|
export declare abstract class BubbleBase implements IBubbleBase {
|
|
5
5
|
distance: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
2
|
-
import type { IBubbleDiv } from "../../../Interfaces/Interactivity/Modes/IBubbleDiv";
|
|
3
2
|
import { BubbleBase } from "./BubbleBase";
|
|
3
|
+
import type { IBubbleDiv } from "../../../Interfaces/Interactivity/Modes/IBubbleDiv";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
export declare class BubbleDiv extends BubbleBase implements IBubbleDiv, IOptionLoader<IBubbleDiv> {
|
|
6
6
|
get ids(): SingleOrMultiple<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IConnect } from "../../../Interfaces/Interactivity/Modes/IConnect";
|
|
2
1
|
import { ConnectLinks } from "./ConnectLinks";
|
|
3
|
-
import type {
|
|
2
|
+
import type { IConnect } from "../../../Interfaces/Interactivity/Modes/IConnect";
|
|
4
3
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
|
+
import type { RecursivePartial } from "../../../../Types";
|
|
5
5
|
export declare class Connect implements IConnect, IOptionLoader<IConnect> {
|
|
6
6
|
get line_linked(): ConnectLinks;
|
|
7
7
|
set line_linked(value: ConnectLinks);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IConnectLinks } from "../../../Interfaces/Interactivity/Modes/IConnectLinks";
|
|
2
|
-
import type { RecursivePartial } from "../../../../Types";
|
|
3
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
|
+
import type { RecursivePartial } from "../../../../Types";
|
|
4
4
|
export declare class ConnectLinks implements IConnectLinks, IOptionLoader<IConnectLinks> {
|
|
5
5
|
opacity: number;
|
|
6
6
|
constructor();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IGrab } from "../../../Interfaces/Interactivity/Modes/IGrab";
|
|
2
1
|
import { GrabLinks } from "./GrabLinks";
|
|
3
|
-
import type {
|
|
2
|
+
import type { IGrab } from "../../../Interfaces/Interactivity/Modes/IGrab";
|
|
4
3
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
|
+
import type { RecursivePartial } from "../../../../Types";
|
|
5
5
|
export declare class Grab implements IGrab, IOptionLoader<IGrab> {
|
|
6
6
|
get line_linked(): GrabLinks;
|
|
7
7
|
set line_linked(value: GrabLinks);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IGrabLinks } from "../../../Interfaces/Interactivity/Modes/IGrabLinks";
|
|
2
|
-
import type { RecursivePartial } from "../../../../Types";
|
|
3
|
-
import { OptionsColor } from "../../OptionsColor";
|
|
4
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
|
+
import { OptionsColor } from "../../OptionsColor";
|
|
4
|
+
import type { RecursivePartial } from "../../../../Types";
|
|
5
5
|
export declare class GrabLinks implements IGrabLinks, IOptionLoader<IGrabLinks> {
|
|
6
6
|
blink: boolean;
|
|
7
7
|
color?: OptionsColor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ILight } from "../../../Interfaces/Interactivity/Modes/ILight";
|
|
2
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
|
-
import type { RecursivePartial } from "../../../../Types";
|
|
4
3
|
import { LightArea } from "./LightArea";
|
|
5
4
|
import { LightShadow } from "./LightShadow";
|
|
5
|
+
import type { RecursivePartial } from "../../../../Types";
|
|
6
6
|
export declare class Light implements ILight, IOptionLoader<ILight> {
|
|
7
7
|
area: LightArea;
|
|
8
8
|
shadow: LightShadow;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Attract } from "./Attract";
|
|
2
|
+
import { Bounce } from "./Bounce";
|
|
2
3
|
import { Bubble } from "./Bubble";
|
|
3
4
|
import { Connect } from "./Connect";
|
|
4
5
|
import { Grab } from "./Grab";
|
|
5
|
-
import {
|
|
6
|
+
import type { IModes } from "../../../Interfaces/Interactivity/Modes/IModes";
|
|
7
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
8
|
+
import { Light } from "./Light";
|
|
6
9
|
import { Push } from "./Push";
|
|
10
|
+
import type { RecursivePartial } from "../../../../Types";
|
|
11
|
+
import { Remove } from "./Remove";
|
|
7
12
|
import { Repulse } from "./Repulse";
|
|
8
13
|
import { Slow } from "./Slow";
|
|
9
|
-
import type { RecursivePartial } from "../../../../Types";
|
|
10
14
|
import { Trail } from "./Trail";
|
|
11
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
12
|
-
import { Attract } from "./Attract";
|
|
13
|
-
import { Light } from "./Light";
|
|
14
|
-
import { Bounce } from "./Bounce";
|
|
15
15
|
export declare class Modes implements IModes, IOptionLoader<IModes> {
|
|
16
16
|
attract: Attract;
|
|
17
17
|
bounce: Bounce;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Modes = void 0;
|
|
4
|
+
const Attract_1 = require("./Attract");
|
|
5
|
+
const Bounce_1 = require("./Bounce");
|
|
4
6
|
const Bubble_1 = require("./Bubble");
|
|
5
7
|
const Connect_1 = require("./Connect");
|
|
6
8
|
const Grab_1 = require("./Grab");
|
|
7
|
-
const
|
|
9
|
+
const Light_1 = require("./Light");
|
|
8
10
|
const Push_1 = require("./Push");
|
|
11
|
+
const Remove_1 = require("./Remove");
|
|
9
12
|
const Repulse_1 = require("./Repulse");
|
|
10
13
|
const Slow_1 = require("./Slow");
|
|
11
14
|
const Trail_1 = require("./Trail");
|
|
12
|
-
const Attract_1 = require("./Attract");
|
|
13
|
-
const Light_1 = require("./Light");
|
|
14
|
-
const Bounce_1 = require("./Bounce");
|
|
15
15
|
class Modes {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.attract = new Attract_1.Attract();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
1
2
|
import type { IPush } from "../../../Interfaces/Interactivity/Modes/IPush";
|
|
2
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
4
|
export declare class Push implements IPush, IOptionLoader<IPush> {
|
|
5
5
|
get particles_nb(): number;
|
|
6
6
|
set particles_nb(value: number);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
1
2
|
import type { IRemove } from "../../../Interfaces/Interactivity/Modes/IRemove";
|
|
2
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
4
|
export declare class Remove implements IRemove, IOptionLoader<IRemove> {
|
|
5
5
|
get particles_nb(): number;
|
|
6
6
|
set particles_nb(value: number);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IRepulse } from "../../../Interfaces/Interactivity/Modes/IRepulse";
|
|
2
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
3
|
-
import { RepulseDiv } from "./RepulseDiv";
|
|
4
|
-
import { RepulseBase } from "./RepulseBase";
|
|
5
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
|
+
import type { IRepulse } from "../../../Interfaces/Interactivity/Modes/IRepulse";
|
|
4
|
+
import { RepulseBase } from "./RepulseBase";
|
|
5
|
+
import { RepulseDiv } from "./RepulseDiv";
|
|
6
6
|
export declare class Repulse extends RepulseBase implements IRepulse, IOptionLoader<IRepulse> {
|
|
7
7
|
divs?: SingleOrMultiple<RepulseDiv>;
|
|
8
8
|
load(data?: RecursivePartial<IRepulse>): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Repulse = void 0;
|
|
4
|
-
const RepulseDiv_1 = require("./RepulseDiv");
|
|
5
4
|
const RepulseBase_1 = require("./RepulseBase");
|
|
5
|
+
const RepulseDiv_1 = require("./RepulseDiv");
|
|
6
6
|
class Repulse extends RepulseBase_1.RepulseBase {
|
|
7
7
|
load(data) {
|
|
8
8
|
super.load(data);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { EasingType } from "../../../../Enums";
|
|
2
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
1
3
|
import type { IRepulseBase } from "../../../Interfaces/Interactivity/Modes/IRepulseBase";
|
|
2
4
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
|
-
import { EasingType } from "../../../../Enums";
|
|
4
|
-
import { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
export declare abstract class RepulseBase implements IRepulseBase, IOptionLoader<IRepulseBase> {
|
|
6
6
|
distance: number;
|
|
7
7
|
duration: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RecursivePartial, SingleOrMultiple } from "../../../../Types";
|
|
2
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
2
3
|
import type { IRepulseDiv } from "../../../Interfaces/Interactivity/Modes/IRepulseDiv";
|
|
3
4
|
import { RepulseBase } from "./RepulseBase";
|
|
4
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
export declare class RepulseDiv extends RepulseBase implements IRepulseDiv, IOptionLoader<IRepulseDiv> {
|
|
6
6
|
get ids(): SingleOrMultiple<string>;
|
|
7
7
|
set ids(value: SingleOrMultiple<string>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
1
2
|
import type { ISlow } from "../../../Interfaces/Interactivity/Modes/ISlow";
|
|
2
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
4
|
export declare class Slow implements ISlow, IOptionLoader<ISlow> {
|
|
5
5
|
get active(): boolean;
|
|
6
6
|
set active(_value: boolean);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
2
2
|
import type { IParticles } from "../../../Interfaces/Particles/IParticles";
|
|
3
|
+
import type { ITrail } from "../../../Interfaces/Interactivity/Modes/ITrail";
|
|
3
4
|
import type { RecursivePartial } from "../../../../Types";
|
|
4
|
-
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
export declare class Trail implements ITrail, IOptionLoader<ITrail> {
|
|
6
6
|
delay: number;
|
|
7
7
|
particles?: RecursivePartial<IParticles>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { ICoordinates } from "../../Core";
|
|
1
2
|
import type { IManualParticle } from "../Interfaces/IManualParticle";
|
|
2
3
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
3
|
-
import type { RecursivePartial } from "../../Types";
|
|
4
4
|
import type { IParticles } from "../Interfaces/Particles/IParticles";
|
|
5
|
-
import type {
|
|
5
|
+
import type { RecursivePartial } from "../../Types";
|
|
6
6
|
export declare class ManualParticle implements IManualParticle, IOptionLoader<IManualParticle> {
|
|
7
7
|
options?: RecursivePartial<IParticles>;
|
|
8
8
|
position?: ICoordinates;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IMotion } from "../../Interfaces/Motion/IMotion";
|
|
2
2
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
3
|
-
import type { RecursivePartial } from "../../../Types";
|
|
4
3
|
import { MotionReduce } from "./MotionReduce";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types";
|
|
5
5
|
export declare class Motion implements IMotion, IOptionLoader<IMotion> {
|
|
6
6
|
disable: boolean;
|
|
7
7
|
reduce: MotionReduce;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import type { IOptions } from "../Interfaces/IOptions";
|
|
2
|
-
import { Interactivity } from "./Interactivity/Interactivity";
|
|
3
|
-
import { ParticlesOptions } from "./Particles/ParticlesOptions";
|
|
4
|
-
import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
|
|
5
1
|
import type { RangeValue, RecursivePartial } from "../../Types";
|
|
6
2
|
import { Background } from "./Background/Background";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
3
|
+
import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
|
|
4
|
+
import type { Engine } from "../../engine";
|
|
9
5
|
import { FullScreen } from "./FullScreen/FullScreen";
|
|
10
|
-
import {
|
|
6
|
+
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
7
|
+
import type { IOptions } from "../Interfaces/IOptions";
|
|
8
|
+
import { Interactivity } from "./Interactivity/Interactivity";
|
|
11
9
|
import { ManualParticle } from "./ManualParticle";
|
|
10
|
+
import { Motion } from "./Motion/Motion";
|
|
11
|
+
import { ParticlesOptions } from "./Particles/ParticlesOptions";
|
|
12
12
|
import { Responsive } from "./Responsive";
|
|
13
|
+
import { Theme } from "./Theme/Theme";
|
|
13
14
|
export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
14
15
|
#private;
|
|
15
16
|
get fps_limit(): number;
|
|
@@ -39,7 +40,7 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
39
40
|
defaultDarkTheme?: string;
|
|
40
41
|
defaultLightTheme?: string;
|
|
41
42
|
[name: string]: unknown;
|
|
42
|
-
constructor();
|
|
43
|
+
constructor(engine: Engine);
|
|
43
44
|
load(data?: RecursivePartial<IOptions>): void;
|
|
44
45
|
setTheme(name?: string): void;
|
|
45
46
|
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
|
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
2
8
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
9
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
12
|
};
|
|
7
|
-
var _Options_instances, _Options_findDefaultTheme;
|
|
13
|
+
var _Options_instances, _Options_engine, _Options_findDefaultTheme;
|
|
8
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
15
|
exports.Options = void 0;
|
|
10
|
-
const Interactivity_1 = require("./Interactivity/Interactivity");
|
|
11
|
-
const ParticlesOptions_1 = require("./Particles/ParticlesOptions");
|
|
12
|
-
const BackgroundMask_1 = require("./BackgroundMask/BackgroundMask");
|
|
13
16
|
const Background_1 = require("./Background/Background");
|
|
14
|
-
const
|
|
15
|
-
const Theme_1 = require("./Theme/Theme");
|
|
17
|
+
const BackgroundMask_1 = require("./BackgroundMask/BackgroundMask");
|
|
16
18
|
const FullScreen_1 = require("./FullScreen/FullScreen");
|
|
17
|
-
const
|
|
19
|
+
const Interactivity_1 = require("./Interactivity/Interactivity");
|
|
18
20
|
const ManualParticle_1 = require("./ManualParticle");
|
|
21
|
+
const Motion_1 = require("./Motion/Motion");
|
|
22
|
+
const ParticlesOptions_1 = require("./Particles/ParticlesOptions");
|
|
19
23
|
const Responsive_1 = require("./Responsive");
|
|
20
|
-
const
|
|
24
|
+
const Theme_1 = require("./Theme/Theme");
|
|
25
|
+
const Utils_1 = require("../../Utils");
|
|
21
26
|
class Options {
|
|
22
|
-
constructor() {
|
|
27
|
+
constructor(engine) {
|
|
23
28
|
_Options_instances.add(this);
|
|
29
|
+
_Options_engine.set(this, void 0);
|
|
30
|
+
__classPrivateFieldSet(this, _Options_engine, engine, "f");
|
|
24
31
|
this.autoPlay = true;
|
|
25
32
|
this.background = new Background_1.Background();
|
|
26
33
|
this.backgroundMask = new BackgroundMask_1.BackgroundMask();
|
|
27
34
|
this.fullScreen = new FullScreen_1.FullScreen();
|
|
28
35
|
this.detectRetina = true;
|
|
29
36
|
this.duration = 0;
|
|
30
|
-
this.fpsLimit =
|
|
37
|
+
this.fpsLimit = 120;
|
|
31
38
|
this.interactivity = new Interactivity_1.Interactivity();
|
|
32
39
|
this.manualParticles = [];
|
|
33
40
|
this.motion = new Motion_1.Motion();
|
|
@@ -115,7 +122,7 @@ class Options {
|
|
|
115
122
|
this.motion.load(data.motion);
|
|
116
123
|
this.particles.load(data.particles);
|
|
117
124
|
this.style = (0, Utils_1.deepExtend)(this.style, data.style);
|
|
118
|
-
|
|
125
|
+
__classPrivateFieldGet(this, _Options_engine, "f").plugins.loadOptions(this, data);
|
|
119
126
|
if (data.responsive !== undefined) {
|
|
120
127
|
for (const responsive of data.responsive) {
|
|
121
128
|
const optResponsive = new Responsive_1.Responsive();
|
|
@@ -157,11 +164,11 @@ class Options {
|
|
|
157
164
|
return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
|
|
158
165
|
}
|
|
159
166
|
importPreset(preset) {
|
|
160
|
-
this.load(
|
|
167
|
+
this.load(__classPrivateFieldGet(this, _Options_engine, "f").plugins.getPreset(preset));
|
|
161
168
|
}
|
|
162
169
|
}
|
|
163
170
|
exports.Options = Options;
|
|
164
|
-
_Options_instances = new WeakSet(), _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
171
|
+
_Options_engine = new WeakMap(), _Options_instances = new WeakSet(), _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
165
172
|
var _a;
|
|
166
173
|
return ((_a = this.themes.find((theme) => theme.default.value && theme.default.mode === mode)) !== null && _a !== void 0 ? _a : this.themes.find((theme) => theme.default.value && theme.default.mode === "any"));
|
|
167
174
|
};
|