tsparticles 1.39.0 → 1.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Core/Canvas.d.ts +1 -1
- package/Core/Canvas.js +27 -27
- package/Core/Container.d.ts +5 -5
- package/Core/Container.js +3 -3
- 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 +1 -1
- package/Core/Loader.js +7 -7
- package/Core/Particle.d.ts +3 -3
- package/Core/Particle.js +31 -31
- package/Core/Particles.d.ts +3 -3
- package/Core/Particles.js +15 -15
- 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 +1 -1
- package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/Core/Utils/ParticlesMover.d.ts +1 -1
- package/Core/Utils/Plugins.d.ts +1 -1
- 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 +7 -7
- package/Options/Classes/Options.js +7 -7
- 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 +5 -3
- package/Plugins/Emitters/EmitterInstance.js +34 -35
- package/Plugins/Emitters/Emitters.d.ts +3 -3
- package/Plugins/Emitters/Emitters.js +11 -3
- package/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
- package/Plugins/Emitters/Options/Classes/Emitter.js +3 -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 +6 -6
- package/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
- package/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
- package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
- package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
- package/Plugins/Emitters/index.d.ts +1 -1
- package/Plugins/Emitters/index.js +9 -9
- 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 +160 -16
- 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 +5 -5
- package/browser/Core/Container.js +3 -3
- 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 +1 -1
- package/browser/Core/Loader.js +1 -1
- package/browser/Core/Particle.d.ts +3 -3
- package/browser/Core/Particle.js +2 -2
- package/browser/Core/Particles.d.ts +3 -3
- package/browser/Core/Particles.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +7 -7
- package/browser/Options/Classes/Options.js +7 -7
- 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 +5 -3
- package/browser/Plugins/Emitters/EmitterInstance.js +34 -35
- package/browser/Plugins/Emitters/Emitters.d.ts +3 -3
- package/browser/Plugins/Emitters/Emitters.js +11 -3
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +3 -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 +6 -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/Shapes/Circle/CircleShape.d.ts +1 -1
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
- package/browser/Plugins/Emitters/index.d.ts +1 -1
- package/browser/Plugins/Emitters/index.js +9 -9
- 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 +2 -2
- 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 +2 -2
- package/esm/Core/Canvas.d.ts +1 -1
- package/esm/Core/Canvas.js +1 -1
- package/esm/Core/Container.d.ts +5 -5
- package/esm/Core/Container.js +3 -3
- 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 +1 -1
- package/esm/Core/Loader.js +1 -1
- package/esm/Core/Particle.d.ts +3 -3
- package/esm/Core/Particle.js +2 -2
- package/esm/Core/Particles.d.ts +3 -3
- package/esm/Core/Particles.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +7 -7
- package/esm/Options/Classes/Options.js +7 -7
- 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 +5 -3
- package/esm/Plugins/Emitters/EmitterInstance.js +34 -35
- package/esm/Plugins/Emitters/Emitters.d.ts +3 -3
- package/esm/Plugins/Emitters/Emitters.js +11 -3
- package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
- package/esm/Plugins/Emitters/Options/Classes/Emitter.js +3 -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 +6 -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/Shapes/Circle/CircleShape.d.ts +1 -1
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
- package/esm/Plugins/Emitters/index.d.ts +1 -1
- package/esm/Plugins/Emitters/index.js +9 -9
- 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 +2 -2
- 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 +1 -1
- 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 +2359 -2359
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +3943 -3943
- package/tsparticles.interaction.external.attract.min.js +2 -2
- package/tsparticles.interaction.external.bounce.js +4058 -4058
- package/tsparticles.interaction.external.bounce.min.js +2 -2
- package/tsparticles.interaction.external.bubble.js +3886 -3886
- package/tsparticles.interaction.external.bubble.min.js +2 -2
- package/tsparticles.interaction.external.connect.js +4040 -4040
- package/tsparticles.interaction.external.connect.min.js +2 -2
- package/tsparticles.interaction.external.grab.js +4040 -4040
- package/tsparticles.interaction.external.grab.min.js +2 -2
- package/tsparticles.interaction.external.repulse.js +4058 -4058
- package/tsparticles.interaction.external.repulse.min.js +2 -2
- package/tsparticles.interaction.external.trail.js +4040 -4040
- package/tsparticles.interaction.external.trail.min.js +2 -2
- package/tsparticles.interaction.particles.attract.js +4042 -4042
- package/tsparticles.interaction.particles.attract.min.js +2 -2
- package/tsparticles.interaction.particles.collisions.js +882 -882
- package/tsparticles.interaction.particles.collisions.min.js +1 -1
- package/tsparticles.interaction.particles.links.js +4002 -4002
- package/tsparticles.interaction.particles.links.min.js +2 -2
- package/tsparticles.js +6215 -6209
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +1027 -1028
- package/tsparticles.plugins.absorbers.min.js +2 -2
- package/tsparticles.plugins.emitters.js +1636 -1629
- package/tsparticles.plugins.emitters.min.js +2 -2
- package/tsparticles.plugins.polygonMask.js +2620 -2620
- 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 +883 -883
- package/tsparticles.shape.image.min.js +1 -1
- 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 +882 -882
- package/tsparticles.shape.text.min.js +1 -1
- package/tsparticles.slim.js +3561 -3561
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +882 -882
- package/tsparticles.updater.angle.min.js +1 -1
- package/tsparticles.updater.color.js +882 -882
- package/tsparticles.updater.color.min.js +1 -1
- package/tsparticles.updater.life.js +882 -882
- package/tsparticles.updater.life.min.js +1 -1
- package/tsparticles.updater.opacity.js +882 -882
- package/tsparticles.updater.opacity.min.js +1 -1
- package/tsparticles.updater.outModes.js +882 -882
- package/tsparticles.updater.outModes.min.js +1 -1
- package/tsparticles.updater.roll.js +882 -882
- package/tsparticles.updater.roll.min.js +1 -1
- package/tsparticles.updater.size.js +882 -882
- package/tsparticles.updater.size.min.js +1 -1
- package/tsparticles.updater.strokeColor.js +882 -882
- package/tsparticles.updater.strokeColor.min.js +1 -1
- package/tsparticles.updater.tilt.js +882 -882
- package/tsparticles.updater.tilt.min.js +1 -1
- package/tsparticles.updater.wobble.js +882 -882
- package/tsparticles.updater.wobble.min.js +1 -1
|
@@ -20,8 +20,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.loadPolygonMaskPlugin = void 0;
|
|
23
|
-
const PolygonMaskInstance_1 = require("./PolygonMaskInstance");
|
|
24
23
|
const PolygonMask_1 = require("./Options/Classes/PolygonMask");
|
|
24
|
+
const PolygonMaskInstance_1 = require("./PolygonMaskInstance");
|
|
25
25
|
const Utils_1 = require("../../Utils");
|
|
26
26
|
class PolygonMaskPlugin {
|
|
27
27
|
constructor() {
|
|
@@ -46,11 +46,11 @@ class PolygonMaskPlugin {
|
|
|
46
46
|
polygonOptions.load(source === null || source === void 0 ? void 0 : source.polygon);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
async function loadPolygonMaskPlugin(
|
|
49
|
+
async function loadPolygonMaskPlugin(engine) {
|
|
50
50
|
if (!(0, Utils_1.isSsr)() && !("SVGPathSeg" in window)) {
|
|
51
51
|
await Promise.resolve().then(() => __importStar(require("./pathseg")));
|
|
52
52
|
}
|
|
53
53
|
const plugin = new PolygonMaskPlugin();
|
|
54
|
-
await
|
|
54
|
+
await engine.addPlugin(plugin);
|
|
55
55
|
}
|
|
56
56
|
exports.loadPolygonMaskPlugin = loadPolygonMaskPlugin;
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
**A lightweight TypeScript library for creating particles. Dependency free (\*), browser ready and compatible with
|
|
6
6
|
React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.js, Solid.js, and Web Components**
|
|
7
7
|
|
|
8
|
-
[](https://openbase.com/js/tsparticles?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) [](https://www.jsdelivr.com/package/npm/tsparticles) [](https://cdnjs.com/libraries/tsparticles) [](https://www.npmjs.com/package/tsparticles) [](https://www.npmjs.com/package/tsparticles) [](https://lerna.js.org/) [](https://www.codefactor.io/repository/github/matteobruni/tsparticles) [](https://www.codacy.com/manual/ar3s/tsparticles?utm_source=github.com&utm_medium=referral&utm_content=matteobruni/tsparticles&utm_campaign=Badge_Grade)
|
|
8
|
+
[](https://openbase.com/js/tsparticles?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) [](https://www.jsdelivr.com/package/npm/tsparticles) [](https://cdnjs.com/libraries/tsparticles) [](https://www.npmjs.com/package/tsparticles) [](https://www.npmjs.com/package/tsparticles) [](https://lerna.js.org/) [](https://www.codefactor.io/repository/github/matteobruni/tsparticles) [](https://www.codacy.com/manual/ar3s/tsparticles?utm_source=github.com&utm_medium=referral&utm_content=matteobruni/tsparticles&utm_campaign=Badge_Grade) [](https://gitpod.io/#https://github.com/matteobruni/tsparticles) [](https://repl.it/github/matteobruni/tsparticles)
|
|
9
9
|
|
|
10
10
|
[](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI) [](https://discord.gg/hACwv45Hme) [](https://t.me/tsparticles)
|
|
11
11
|
|
|
@@ -30,6 +30,19 @@ React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.j
|
|
|
30
30
|
- [VueJS 3.x](#VueJS-3x)
|
|
31
31
|
- [Web Components](#Web-Components)
|
|
32
32
|
- [WordPress](#WordPress)
|
|
33
|
+
- [Presets](#Presets)
|
|
34
|
+
- [Big Circles](#Big-Circles)
|
|
35
|
+
- [Bubbles](#Bubbles)
|
|
36
|
+
- [Confetti](#Confetti)
|
|
37
|
+
- [Fire](#Fire)
|
|
38
|
+
- [Firefly](#Firefly)
|
|
39
|
+
- [Fireworks](#Fireworks)
|
|
40
|
+
- [Fountain](#fountain)
|
|
41
|
+
- [Links](#links)
|
|
42
|
+
- [Sea Anemone](#Sea-Anemone)
|
|
43
|
+
- [Snow](#Snow)
|
|
44
|
+
- [Stars](#Stars)
|
|
45
|
+
- [Triangles](#Triangles)
|
|
33
46
|
- [Templates and Resources](#Templates-and-Resources)
|
|
34
47
|
- [Demo / Generator](#Demo--Generator)
|
|
35
48
|
- [Characters as particles](#Characters-as-particles)
|
|
@@ -59,8 +72,9 @@ links you need, and _don't be scared by **TypeScript**, it's just the source lan
|
|
|
59
72
|
CDNs and `npm` have all the sources you need in **Javascript**, a bundle browser ready (tsparticles.min.js) and all
|
|
60
73
|
files splitted for `import` syntax.
|
|
61
74
|
|
|
62
|
-
**If you are
|
|
63
|
-
library
|
|
75
|
+
**If you are interested** there are some _simple instructions_
|
|
76
|
+
just [below](https://github.com/matteobruni/tsparticles/blob/main/README.md#library-installation) to guide you to
|
|
77
|
+
migrate from the old particles.js library.
|
|
64
78
|
|
|
65
79
|
## **_Library installation_**
|
|
66
80
|
|
|
@@ -315,59 +329,189 @@ the `Premium Addons for Elementor` plugin collection.
|
|
|
315
329
|
|
|
316
330
|
---
|
|
317
331
|
|
|
332
|
+
## Presets
|
|
333
|
+
|
|
334
|
+
There are some presets ready to be used in this repository, and they have also a bundle file that contains everything
|
|
335
|
+
needed to run.
|
|
336
|
+
|
|
337
|
+
### Big Circles
|
|
338
|
+
|
|
339
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-big-circles) [](https://www.npmjs.com/package/tsparticles-preset-big-circles) [](https://www.npmjs.com/package/tsparticles-preset-big-circles)
|
|
340
|
+
|
|
341
|
+
This preset loads big colored circles moving upwards on a white background.
|
|
342
|
+
|
|
343
|
+
[](https://particles.js.org/samples/presets/bigCircles)
|
|
344
|
+
|
|
345
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/bigCircles/README.md)
|
|
346
|
+
|
|
347
|
+
### Bubbles
|
|
348
|
+
|
|
349
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles) [](https://www.npmjs.com/package/tsparticles-preset-bubbles) [](https://www.npmjs.com/package/tsparticles-preset-bubbles)
|
|
350
|
+
|
|
351
|
+
This preset loads colored bubbles coming from the bottom of the screen on a white background.
|
|
352
|
+
|
|
353
|
+
[](https://particles.js.org/samples/presets/bubbles)
|
|
354
|
+
|
|
355
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/bubbles/README.md)
|
|
356
|
+
|
|
357
|
+
### Confetti
|
|
358
|
+
|
|
359
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-confetti) [](https://www.npmjs.com/package/tsparticles-preset-confetti) [](https://www.npmjs.com/package/tsparticles-preset-confetti)
|
|
360
|
+
|
|
361
|
+
This preset loads white and red confetti launched from the screen center on a transparent background.
|
|
362
|
+
|
|
363
|
+
[](https://particles.js.org/samples/presets/confetti)
|
|
364
|
+
|
|
365
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/confetti/README.md)
|
|
366
|
+
|
|
367
|
+
### Fire
|
|
368
|
+
|
|
369
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-fire) [](https://www.npmjs.com/package/tsparticles-preset-fire) [](https://www.npmjs.com/package/tsparticles-preset-fire)
|
|
370
|
+
|
|
371
|
+
This preset loads a faded red to black background with particles colored like fire and ash sparks.
|
|
372
|
+
|
|
373
|
+
[](https://particles.js.org/samples/presets/fire)
|
|
374
|
+
|
|
375
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/fire/README.md)
|
|
376
|
+
|
|
377
|
+
### Firefly
|
|
378
|
+
|
|
379
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-firefly) [](https://www.npmjs.com/package/tsparticles-preset-firefly) [](https://www.npmjs.com/package/tsparticles-preset-firefly)
|
|
380
|
+
|
|
381
|
+
This preset loads a mouse trail made with small fading particles like little fireflies.
|
|
382
|
+
|
|
383
|
+
[](https://particles.js.org/samples/presets/firefly)
|
|
384
|
+
|
|
385
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/firefly/README.md)
|
|
386
|
+
|
|
387
|
+
### Fireworks
|
|
388
|
+
|
|
389
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-fireworks) [](https://www.npmjs.com/package/tsparticles-preset-fireworks) [](https://www.npmjs.com/package/tsparticles-preset-fireworks)
|
|
390
|
+
|
|
391
|
+
This preset loads a beautiful fireworks effect.
|
|
392
|
+
|
|
393
|
+
[](https://particles.js.org/samples/presets/fireworks)
|
|
394
|
+
|
|
395
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/fireworks/README.md)
|
|
396
|
+
|
|
397
|
+
### Fountain
|
|
398
|
+
|
|
399
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-fountain) [](https://www.npmjs.com/package/tsparticles-preset-fountain) [](https://www.npmjs.com/package/tsparticles-preset-fountain)
|
|
400
|
+
|
|
401
|
+
[](https://particles.js.org/samples/presets/fountain)
|
|
402
|
+
|
|
403
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/fountain/README.md)
|
|
404
|
+
|
|
405
|
+
### Links
|
|
406
|
+
|
|
407
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-links) [](https://www.npmjs.com/package/tsparticles-preset-links) [](https://www.npmjs.com/package/tsparticles-preset-links)
|
|
408
|
+
|
|
409
|
+
[](https://particles.js.org/samples/presets/links)
|
|
410
|
+
|
|
411
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/links/README.md)
|
|
412
|
+
|
|
413
|
+
### Sea Anemone
|
|
414
|
+
|
|
415
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-sea-anemone) [](https://www.npmjs.com/package/tsparticles-preset-sea-anemone) [](https://www.npmjs.com/package/tsparticles-preset-sea-anemone)
|
|
416
|
+
|
|
417
|
+
[](https://particles.js.org/samples/presets/seaAnemone)
|
|
418
|
+
|
|
419
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/seaAnemone/README.md)
|
|
420
|
+
|
|
421
|
+
### Snow
|
|
422
|
+
|
|
423
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-snow) [](https://www.npmjs.com/package/tsparticles-preset-snow) [](https://www.npmjs.com/package/tsparticles-preset-snow)
|
|
424
|
+
|
|
425
|
+
[](https://particles.js.org/samples/presets/snow)
|
|
426
|
+
|
|
427
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/snow/README.md)
|
|
428
|
+
|
|
429
|
+
### Stars
|
|
430
|
+
|
|
431
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-stars) [](https://www.npmjs.com/package/tsparticles-preset-stars) [](https://www.npmjs.com/package/tsparticles-preset-stars)
|
|
432
|
+
|
|
433
|
+
[](https://particles.js.org/samples/presets/stars)
|
|
434
|
+
|
|
435
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/stars/README.md)
|
|
436
|
+
|
|
437
|
+
### Triangles
|
|
438
|
+
|
|
439
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-preset-triangles) [](https://www.npmjs.com/package/tsparticles-preset-triangles) [](https://www.npmjs.com/package/tsparticles-preset-triangles)
|
|
440
|
+
|
|
441
|
+
[](https://particles.js.org/samples/presets/triangles)
|
|
442
|
+
|
|
443
|
+
You can find the instructions [here](https://github.com/matteobruni/tsparticles/blob/main/preset/triangles/README.md)
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
|
|
447
|
+
## Templates and Resources
|
|
448
|
+
|
|
449
|
+
You can find some tsParticles related templates [here](https://github.com/tsparticles/templates). The templates are
|
|
450
|
+
created for _Vanilla Javascript_, _ReactJS_, _VueJS_, _Angular_, _SvelteJS_ and other frameworks.
|
|
451
|
+
|
|
452
|
+
The templates will vary, new ones can be created or older ones updated with latest features or changed to a better
|
|
453
|
+
style. Check them out once in a while.
|
|
454
|
+
|
|
455
|
+
If you created some good design with _tsParticles_ feel free to submit a pull request with your cool template, you'll be
|
|
456
|
+
credited as the template author!
|
|
457
|
+
|
|
458
|
+
<https://github.com/tsparticles/templates>
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
318
462
|
## **_Demo / Generator_**
|
|
319
463
|
|
|
320
|
-
<https://particles.js.org
|
|
464
|
+
<https://particles.js.org/samples>
|
|
321
465
|
|
|
322
|
-
[](https://particles.js.org/)
|
|
466
|
+
[](https://particles.js.org/samples)
|
|
323
467
|
|
|
324
468
|
---
|
|
325
469
|
|
|
326
470
|
### Characters as particles
|
|
327
471
|
|
|
328
|
-
[](https://particles.js.org
|
|
472
|
+
[](https://particles.js.org/samples#chars)
|
|
329
473
|
|
|
330
474
|
---
|
|
331
475
|
|
|
332
476
|
### Mouse hover connections
|
|
333
477
|
|
|
334
|
-
[](https://particles.js.org
|
|
478
|
+
[](https://particles.js.org/samples#connect)
|
|
335
479
|
|
|
336
480
|
---
|
|
337
481
|
|
|
338
482
|
### Polygon mask
|
|
339
483
|
|
|
340
|
-
[](https://particles.js.org
|
|
484
|
+
[](https://particles.js.org/samples#polygonMask)
|
|
341
485
|
|
|
342
486
|
---
|
|
343
487
|
|
|
344
488
|
### Animated stars
|
|
345
489
|
|
|
346
|
-
[](https://particles.js.org
|
|
490
|
+
[](https://particles.js.org/samples#nasa)
|
|
347
491
|
|
|
348
492
|
---
|
|
349
493
|
|
|
350
494
|
### Nyan cat flying on scrolling stars
|
|
351
495
|
|
|
352
|
-
[](https://particles.js.org
|
|
496
|
+
[](https://particles.js.org/samples#nyancat2)
|
|
353
497
|
|
|
354
498
|
---
|
|
355
499
|
|
|
356
500
|
### Snow particles
|
|
357
501
|
|
|
358
|
-
[](https://particles.js.org
|
|
502
|
+
[](https://particles.js.org/samples#snow)
|
|
359
503
|
|
|
360
504
|
---
|
|
361
505
|
|
|
362
506
|
### Background Mask particles
|
|
363
507
|
|
|
364
|
-
[](https://particles.js.org
|
|
508
|
+
[](https://particles.js.org/samples#background)
|
|
365
509
|
|
|
366
510
|
---
|
|
367
511
|
|
|
368
512
|
#### COVID-19 SARS-CoV-2 particles
|
|
369
513
|
|
|
370
|
-
[](https://particles.js.org
|
|
514
|
+
[](https://particles.js.org/samples#virus)
|
|
371
515
|
|
|
372
516
|
_Don't click! DON'T CLICK! OH NO IT'S SPREADING!!!!_
|
|
373
517
|
|
|
@@ -377,14 +521,14 @@ _Don't click! DON'T CLICK! OH NO IT'S SPREADING!!!!_
|
|
|
377
521
|
|
|
378
522
|
**particles.json**
|
|
379
523
|
|
|
380
|
-
You can find
|
|
524
|
+
You can find some config samples [here](https://github.com/matteobruni/tsparticles/tree/main/website/presets) 📖
|
|
381
525
|
|
|
382
526
|
---
|
|
383
527
|
|
|
384
528
|
## **_Options_**
|
|
385
529
|
|
|
386
530
|
You can find all options
|
|
387
|
-
available [here](https://particles.js.org/docs/interfaces/
|
|
531
|
+
available [here](https://particles.js.org/docs/interfaces/Options_Interfaces_IOptions.IOptions.html) 📖
|
|
388
532
|
|
|
389
533
|
## Want to see it in action and try it?
|
|
390
534
|
|
|
@@ -428,4 +572,4 @@ tsParticles now supports some customizations 🥳.
|
|
|
428
572
|
|
|
429
573
|
**You can create your own plugins**
|
|
430
574
|
|
|
431
|
-
_Read more [here](https://particles.js.org/docs/modules/
|
|
575
|
+
_Read more [here](https://particles.js.org/docs/modules/Core_Interfaces_IPlugin.html)..._
|
package/Shapes/Circle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadCircleShape(
|
|
2
|
+
export declare function loadCircleShape(engine: Engine): Promise<void>;
|
package/Shapes/Circle/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadCircleShape = void 0;
|
|
4
4
|
const CircleDrawer_1 = require("./CircleDrawer");
|
|
5
|
-
async function loadCircleShape(
|
|
6
|
-
await
|
|
5
|
+
async function loadCircleShape(engine) {
|
|
6
|
+
await engine.addShape("circle", new CircleDrawer_1.CircleDrawer());
|
|
7
7
|
}
|
|
8
8
|
exports.loadCircleShape = loadCircleShape;
|
package/Shapes/Image/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadImageShape(
|
|
2
|
+
export declare function loadImageShape(engine: Engine): Promise<void>;
|
package/Shapes/Image/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadImageShape = void 0;
|
|
4
4
|
const ImageDrawer_1 = require("./ImageDrawer");
|
|
5
|
-
async function loadImageShape(
|
|
5
|
+
async function loadImageShape(engine) {
|
|
6
6
|
const imageDrawer = new ImageDrawer_1.ImageDrawer();
|
|
7
|
-
await
|
|
8
|
-
await
|
|
7
|
+
await engine.addShape("image", imageDrawer);
|
|
8
|
+
await engine.addShape("images", imageDrawer);
|
|
9
9
|
}
|
|
10
10
|
exports.loadImageShape = loadImageShape;
|
package/Shapes/Line/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadLineShape(
|
|
2
|
+
export declare function loadLineShape(engine: Engine): Promise<void>;
|
package/Shapes/Line/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadLineShape = void 0;
|
|
4
4
|
const LineDrawer_1 = require("./LineDrawer");
|
|
5
|
-
async function loadLineShape(
|
|
6
|
-
await
|
|
5
|
+
async function loadLineShape(engine) {
|
|
6
|
+
await engine.addShape("line", new LineDrawer_1.LineDrawer());
|
|
7
7
|
}
|
|
8
8
|
exports.loadLineShape = loadLineShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ICoordinates, IParticle } from "../../Core";
|
|
1
2
|
import type { ISide } from "./PolygonDrawerBase";
|
|
2
3
|
import { PolygonDrawerBase } from "./PolygonDrawerBase";
|
|
3
|
-
import type { ICoordinates, IParticle } from "../../Core";
|
|
4
4
|
export declare class PolygonDrawer extends PolygonDrawerBase {
|
|
5
5
|
getSidesData(particle: IParticle, radius: number): ISide;
|
|
6
6
|
getCenter(particle: IParticle, radius: number): ICoordinates;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ISide } from "./PolygonDrawerBase";
|
|
2
1
|
import type { ICoordinates, IParticle } from "../../Core";
|
|
2
|
+
import type { ISide } from "./PolygonDrawerBase";
|
|
3
3
|
import { PolygonDrawerBase } from "./PolygonDrawerBase";
|
|
4
4
|
export declare class TriangleDrawer extends PolygonDrawerBase {
|
|
5
5
|
getSidesCount(): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadGenericPolygonShape(
|
|
3
|
-
export declare function loadTriangleShape(
|
|
4
|
-
export declare function loadPolygonShape(
|
|
2
|
+
export declare function loadGenericPolygonShape(engine: Engine): Promise<void>;
|
|
3
|
+
export declare function loadTriangleShape(engine: Engine): Promise<void>;
|
|
4
|
+
export declare function loadPolygonShape(engine: Engine): Promise<void>;
|
package/Shapes/Polygon/index.js
CHANGED
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.loadPolygonShape = exports.loadTriangleShape = exports.loadGenericPolygonShape = void 0;
|
|
4
4
|
const PolygonDrawer_1 = require("./PolygonDrawer");
|
|
5
5
|
const TriangleDrawer_1 = require("./TriangleDrawer");
|
|
6
|
-
async function loadGenericPolygonShape(
|
|
7
|
-
await
|
|
6
|
+
async function loadGenericPolygonShape(engine) {
|
|
7
|
+
await engine.addShape("polygon", new PolygonDrawer_1.PolygonDrawer());
|
|
8
8
|
}
|
|
9
9
|
exports.loadGenericPolygonShape = loadGenericPolygonShape;
|
|
10
|
-
async function loadTriangleShape(
|
|
11
|
-
await
|
|
10
|
+
async function loadTriangleShape(engine) {
|
|
11
|
+
await engine.addShape("triangle", new TriangleDrawer_1.TriangleDrawer());
|
|
12
12
|
}
|
|
13
13
|
exports.loadTriangleShape = loadTriangleShape;
|
|
14
|
-
async function loadPolygonShape(
|
|
15
|
-
await loadGenericPolygonShape(
|
|
16
|
-
await loadTriangleShape(
|
|
14
|
+
async function loadPolygonShape(engine) {
|
|
15
|
+
await loadGenericPolygonShape(engine);
|
|
16
|
+
await loadTriangleShape(engine);
|
|
17
17
|
}
|
|
18
18
|
exports.loadPolygonShape = loadPolygonShape;
|
package/Shapes/Square/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadSquareShape(
|
|
2
|
+
export declare function loadSquareShape(engine: Engine): Promise<void>;
|
package/Shapes/Square/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadSquareShape = void 0;
|
|
4
4
|
const SquareDrawer_1 = require("./SquareDrawer");
|
|
5
|
-
async function loadSquareShape(
|
|
5
|
+
async function loadSquareShape(engine) {
|
|
6
6
|
const drawer = new SquareDrawer_1.SquareDrawer();
|
|
7
|
-
await
|
|
8
|
-
await
|
|
7
|
+
await engine.addShape("edge", drawer);
|
|
8
|
+
await engine.addShape("square", drawer);
|
|
9
9
|
}
|
|
10
10
|
exports.loadSquareShape = loadSquareShape;
|
package/Shapes/Star/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadStarShape(
|
|
2
|
+
export declare function loadStarShape(engine: Engine): Promise<void>;
|
package/Shapes/Star/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadStarShape = void 0;
|
|
4
4
|
const StarDrawer_1 = require("./StarDrawer");
|
|
5
|
-
async function loadStarShape(
|
|
6
|
-
await
|
|
5
|
+
async function loadStarShape(engine) {
|
|
6
|
+
await engine.addShape("star", new StarDrawer_1.StarDrawer());
|
|
7
7
|
}
|
|
8
8
|
exports.loadStarShape = loadStarShape;
|
package/Shapes/Text/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadTextShape(
|
|
2
|
+
export declare function loadTextShape(engine: Engine): Promise<void>;
|
package/Shapes/Text/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadTextShape = void 0;
|
|
4
4
|
const TextDrawer_1 = require("./TextDrawer");
|
|
5
|
-
async function loadTextShape(
|
|
5
|
+
async function loadTextShape(engine) {
|
|
6
6
|
const drawer = new TextDrawer_1.TextDrawer();
|
|
7
7
|
for (const type of TextDrawer_1.validTypes) {
|
|
8
|
-
await
|
|
8
|
+
await engine.addShape(type, drawer);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.loadTextShape = loadTextShape;
|
package/Types/ShapeData.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SingleOrMultiple } from "./SingleOrMultiple";
|
|
2
1
|
import type { IShapeValues } from "../Options/Interfaces/Particles/Shape/IShapeValues";
|
|
2
|
+
import type { SingleOrMultiple } from "./SingleOrMultiple";
|
|
3
3
|
export declare type ShapeData = {
|
|
4
4
|
[type: string]: SingleOrMultiple<IShapeValues>;
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IParticle } from "../Core/Interfaces/IParticle";
|
|
2
1
|
import type { Container } from "../Core/Container";
|
|
3
2
|
import type { IDelta } from "../Core/Interfaces/IDelta";
|
|
3
|
+
import type { IParticle } from "../Core/Interfaces/IParticle";
|
|
4
4
|
import { Particle } from "../Core/Particle";
|
|
5
5
|
export declare type ShapeDrawerDrawFunction = (context: CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void;
|
|
6
6
|
export declare type ShapeDrawerInitFunction = (container: Container) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadAngleUpdater(
|
|
2
|
+
export declare function loadAngleUpdater(engine: Engine): Promise<void>;
|
package/Updaters/Angle/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadAngleUpdater = void 0;
|
|
4
4
|
const AngleUpdater_1 = require("./AngleUpdater");
|
|
5
|
-
async function loadAngleUpdater(
|
|
6
|
-
await
|
|
5
|
+
async function loadAngleUpdater(engine) {
|
|
6
|
+
await engine.addParticleUpdater("angle", (container) => new AngleUpdater_1.AngleUpdater(container));
|
|
7
7
|
}
|
|
8
8
|
exports.loadAngleUpdater = loadAngleUpdater;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadColorUpdater(
|
|
2
|
+
export declare function loadColorUpdater(engine: Engine): Promise<void>;
|
package/Updaters/Color/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadColorUpdater = void 0;
|
|
4
4
|
const ColorUpdater_1 = require("./ColorUpdater");
|
|
5
|
-
async function loadColorUpdater(
|
|
6
|
-
await
|
|
5
|
+
async function loadColorUpdater(engine) {
|
|
6
|
+
await engine.addParticleUpdater("color", (container) => new ColorUpdater_1.ColorUpdater(container));
|
|
7
7
|
}
|
|
8
8
|
exports.loadColorUpdater = loadColorUpdater;
|
package/Updaters/Life/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadLifeUpdater(
|
|
2
|
+
export declare function loadLifeUpdater(engine: Engine): Promise<void>;
|
package/Updaters/Life/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadLifeUpdater = void 0;
|
|
4
4
|
const LifeUpdater_1 = require("./LifeUpdater");
|
|
5
|
-
async function loadLifeUpdater(
|
|
6
|
-
await
|
|
5
|
+
async function loadLifeUpdater(engine) {
|
|
6
|
+
await engine.addParticleUpdater("life", (container) => new LifeUpdater_1.LifeUpdater(container));
|
|
7
7
|
}
|
|
8
8
|
exports.loadLifeUpdater = loadLifeUpdater;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadOpacityUpdater(
|
|
2
|
+
export declare function loadOpacityUpdater(engine: Engine): Promise<void>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadOpacityUpdater = void 0;
|
|
4
4
|
const OpacityUpdater_1 = require("./OpacityUpdater");
|
|
5
|
-
async function loadOpacityUpdater(
|
|
6
|
-
await
|
|
5
|
+
async function loadOpacityUpdater(engine) {
|
|
6
|
+
await engine.addParticleUpdater("opacity", (container) => new OpacityUpdater_1.OpacityUpdater(container));
|
|
7
7
|
}
|
|
8
8
|
exports.loadOpacityUpdater = loadOpacityUpdater;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OutMode, OutModeAlt, OutModeDirection } from "../../Enums";
|
|
2
1
|
import type { IBounds, ICoordinates, IDimension, Particle } from "../../Core";
|
|
2
|
+
import type { OutMode, OutModeAlt, OutModeDirection } from "../../Enums";
|
|
3
3
|
export interface IBounceData {
|
|
4
4
|
particle: Particle;
|
|
5
5
|
outMode: OutMode | OutModeAlt | keyof typeof OutMode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OutOfCanvasUpdater = void 0;
|
|
4
|
-
const Utils_1 = require("
|
|
5
|
-
const Utils_2 = require("
|
|
4
|
+
const Utils_1 = require("./Utils");
|
|
5
|
+
const Utils_2 = require("../../Utils");
|
|
6
6
|
class OutOfCanvasUpdater {
|
|
7
7
|
constructor(container) {
|
|
8
8
|
this.container = container;
|
|
@@ -44,14 +44,14 @@ class OutOfCanvasUpdater {
|
|
|
44
44
|
}
|
|
45
45
|
destroy(particle, direction) {
|
|
46
46
|
const container = this.container;
|
|
47
|
-
if ((0,
|
|
47
|
+
if ((0, Utils_2.isPointInside)(particle.position, container.canvas.size, particle.getRadius(), direction)) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
container.particles.remove(particle, undefined, true);
|
|
51
51
|
}
|
|
52
52
|
out(particle, direction) {
|
|
53
53
|
const container = this.container;
|
|
54
|
-
if ((0,
|
|
54
|
+
if ((0, Utils_2.isPointInside)(particle.position, container.canvas.size, particle.getRadius(), direction)) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
const wrap = particle.options.move.warp, canvasSize = container.canvas.size, newPos = {
|
|
@@ -59,7 +59,7 @@ class OutOfCanvasUpdater {
|
|
|
59
59
|
left: -particle.getRadius() - particle.offset.x,
|
|
60
60
|
right: canvasSize.width + particle.getRadius() + particle.offset.x,
|
|
61
61
|
top: -particle.getRadius() - particle.offset.y,
|
|
62
|
-
}, sizeValue = particle.getRadius(), nextBounds = (0,
|
|
62
|
+
}, sizeValue = particle.getRadius(), nextBounds = (0, Utils_2.calculateBounds)(particle.position, sizeValue);
|
|
63
63
|
if (direction === "right" && nextBounds.left > canvasSize.width + particle.offset.x) {
|
|
64
64
|
particle.position.x = newPos.left;
|
|
65
65
|
particle.initialPosition.x = particle.position.x;
|
|
@@ -107,9 +107,9 @@ class OutOfCanvasUpdater {
|
|
|
107
107
|
if (handled) {
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
const pos = particle.getPosition(), offset = particle.offset, size = particle.getRadius(), bounds = (0,
|
|
111
|
-
(0,
|
|
112
|
-
(0,
|
|
110
|
+
const pos = particle.getPosition(), offset = particle.offset, size = particle.getRadius(), bounds = (0, Utils_2.calculateBounds)(pos, size), canvasSize = container.canvas.size;
|
|
111
|
+
(0, Utils_1.bounceHorizontal)({ particle, outMode, direction, bounds, canvasSize, offset, size });
|
|
112
|
+
(0, Utils_1.bounceVertical)({ particle, outMode, direction, bounds, canvasSize, offset, size });
|
|
113
113
|
}
|
|
114
114
|
none(particle, direction) {
|
|
115
115
|
if ((particle.options.move.distance.horizontal &&
|
|
@@ -128,7 +128,7 @@ class OutOfCanvasUpdater {
|
|
|
128
128
|
(particle.velocity.x < 0 && particle.position.x >= -pRadius)) {
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
if (!(0,
|
|
131
|
+
if (!(0, Utils_2.isPointInside)(particle.position, container.canvas.size, pRadius, direction)) {
|
|
132
132
|
container.particles.remove(particle);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
|
-
export declare function loadOutModesUpdater(
|
|
2
|
+
export declare function loadOutModesUpdater(engine: Engine): Promise<void>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadOutModesUpdater = void 0;
|
|
4
4
|
const OutOfCanvasUpdater_1 = require("./OutOfCanvasUpdater");
|
|
5
|
-
async function loadOutModesUpdater(
|
|
6
|
-
await
|
|
5
|
+
async function loadOutModesUpdater(engine) {
|
|
6
|
+
await engine.addParticleUpdater("outModes", (container) => new OutOfCanvasUpdater_1.OutOfCanvasUpdater(container));
|
|
7
7
|
}
|
|
8
8
|
exports.loadOutModesUpdater = loadOutModesUpdater;
|