@tsparticles/engine 3.0.0-alpha.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/LICENSE +21 -0
- package/README.md +824 -0
- package/browser/Core/Canvas.js +398 -0
- package/browser/Core/Container.js +436 -0
- package/browser/Core/Interfaces/Colors.js +1 -0
- package/browser/Core/Interfaces/IBounds.js +1 -0
- package/browser/Core/Interfaces/IBubbleParticleData.js +1 -0
- package/browser/Core/Interfaces/ICircleBouncer.js +1 -0
- package/browser/Core/Interfaces/IColorManager.js +1 -0
- package/browser/Core/Interfaces/IContainerInteractivity.js +1 -0
- package/browser/Core/Interfaces/IContainerPlugin.js +1 -0
- package/browser/Core/Interfaces/ICoordinates.js +1 -0
- package/browser/Core/Interfaces/IDelta.js +1 -0
- package/browser/Core/Interfaces/IDimension.js +1 -0
- package/browser/Core/Interfaces/IDistance.js +1 -0
- package/browser/Core/Interfaces/IDrawParticleParams.js +1 -0
- package/browser/Core/Interfaces/IExternalInteractor.js +1 -0
- package/browser/Core/Interfaces/IInteractor.js +1 -0
- package/browser/Core/Interfaces/ILoadParams.js +1 -0
- package/browser/Core/Interfaces/IMouseData.js +1 -0
- package/browser/Core/Interfaces/IMovePathGenerator.js +1 -0
- package/browser/Core/Interfaces/IParticle.js +1 -0
- package/browser/Core/Interfaces/IParticleColorStyle.js +1 -0
- package/browser/Core/Interfaces/IParticleHslAnimation.js +1 -0
- package/browser/Core/Interfaces/IParticleLife.js +1 -0
- package/browser/Core/Interfaces/IParticleMover.js +1 -0
- package/browser/Core/Interfaces/IParticleOverride.js +1 -0
- package/browser/Core/Interfaces/IParticleRetinaProps.js +1 -0
- package/browser/Core/Interfaces/IParticleRoll.js +1 -0
- package/browser/Core/Interfaces/IParticleTransformValues.js +1 -0
- package/browser/Core/Interfaces/IParticleUpdater.js +1 -0
- package/browser/Core/Interfaces/IParticleValueAnimation.js +1 -0
- package/browser/Core/Interfaces/IParticlesInteractor.js +1 -0
- package/browser/Core/Interfaces/IParticlesMover.js +1 -0
- package/browser/Core/Interfaces/IPlugin.js +1 -0
- package/browser/Core/Interfaces/IPositionFromSizeParams.js +1 -0
- package/browser/Core/Interfaces/IRangeValue.js +1 -0
- package/browser/Core/Interfaces/IRectSideResult.js +1 -0
- package/browser/Core/Interfaces/IShapeDrawer.js +1 -0
- package/browser/Core/Interfaces/IShapeValues.js +1 -0
- package/browser/Core/Interfaces/ISlowParticleData.js +1 -0
- package/browser/Core/Interfaces/ITrailFillData.js +1 -0
- package/browser/Core/Particle.js +307 -0
- package/browser/Core/Particles.js +262 -0
- package/browser/Core/Retina.js +33 -0
- package/browser/Core/Utils/Circle.js +23 -0
- package/browser/Core/Utils/Constants.js +12 -0
- package/browser/Core/Utils/EventListeners.js +280 -0
- package/browser/Core/Utils/ExternalInteractorBase.js +6 -0
- package/browser/Core/Utils/FrameManager.js +42 -0
- package/browser/Core/Utils/InteractionManager.js +60 -0
- package/browser/Core/Utils/ParticlesInteractorBase.js +6 -0
- package/browser/Core/Utils/Plugins.js +112 -0
- package/browser/Core/Utils/Point.js +6 -0
- package/browser/Core/Utils/QuadTree.js +64 -0
- package/browser/Core/Utils/Range.js +8 -0
- package/browser/Core/Utils/Rectangle.js +22 -0
- package/browser/Core/Utils/Vector.js +15 -0
- package/browser/Core/Utils/Vector3d.js +96 -0
- package/browser/Enums/AnimationStatus.js +1 -0
- package/browser/Enums/Directions/MoveDirection.js +1 -0
- package/browser/Enums/Directions/OutModeDirection.js +1 -0
- package/browser/Enums/Directions/RotateDirection.js +1 -0
- package/browser/Enums/InteractivityDetect.js +1 -0
- package/browser/Enums/Modes/ClickMode.js +1 -0
- package/browser/Enums/Modes/CollisionMode.js +1 -0
- package/browser/Enums/Modes/DivMode.js +1 -0
- package/browser/Enums/Modes/HoverMode.js +1 -0
- package/browser/Enums/Modes/OutMode.js +1 -0
- package/browser/Enums/Modes/ResponsiveMode.js +1 -0
- package/browser/Enums/Modes/SizeMode.js +1 -0
- package/browser/Enums/Modes/ThemeMode.js +1 -0
- package/browser/Enums/Types/AlterType.js +1 -0
- package/browser/Enums/Types/DestroyType.js +1 -0
- package/browser/Enums/Types/DivType.js +1 -0
- package/browser/Enums/Types/EasingType.js +1 -0
- package/browser/Enums/Types/EventType.js +1 -0
- package/browser/Enums/Types/GradientType.js +1 -0
- package/browser/Enums/Types/InteractorType.js +1 -0
- package/browser/Enums/Types/ParticleOutType.js +1 -0
- package/browser/Enums/Types/StartValueType.js +1 -0
- package/browser/Options/Classes/AnimatableColor.js +36 -0
- package/browser/Options/Classes/AnimationOptions.js +48 -0
- package/browser/Options/Classes/Background/Background.js +35 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +24 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +19 -0
- package/browser/Options/Classes/ColorAnimation.js +34 -0
- package/browser/Options/Classes/FullScreen/FullScreen.js +17 -0
- package/browser/Options/Classes/HslAnimation.js +16 -0
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +17 -0
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +49 -0
- package/browser/Options/Classes/Interactivity/Events/Events.js +53 -0
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +20 -0
- package/browser/Options/Classes/Interactivity/Events/Parallax.js +21 -0
- package/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +17 -0
- package/browser/Options/Classes/Interactivity/Interactivity.js +27 -0
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +21 -0
- package/browser/Options/Classes/ManualParticle.js +18 -0
- package/browser/Options/Classes/Options.js +170 -0
- package/browser/Options/Classes/OptionsColor.js +24 -0
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +14 -0
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +8 -0
- package/browser/Options/Classes/Particles/Collisions/Collisions.js +26 -0
- package/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +13 -0
- package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +17 -0
- package/browser/Options/Classes/Particles/Move/Move.js +124 -0
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +18 -0
- package/browser/Options/Classes/Particles/Move/MoveAttract.js +43 -0
- package/browser/Options/Classes/Particles/Move/MoveCenter.js +25 -0
- package/browser/Options/Classes/Particles/Move/MoveGravity.js +26 -0
- package/browser/Options/Classes/Particles/Move/MoveTrail.js +28 -0
- package/browser/Options/Classes/Particles/Move/MoveTrailFill.js +14 -0
- package/browser/Options/Classes/Particles/Move/OutModes.js +18 -0
- package/browser/Options/Classes/Particles/Move/Path/MovePath.js +26 -0
- package/browser/Options/Classes/Particles/Move/Spin.js +20 -0
- package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +42 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +28 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +16 -0
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +26 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.js +92 -0
- package/browser/Options/Classes/Particles/Shadow.js +34 -0
- package/browser/Options/Classes/Particles/Shape/Shape.js +25 -0
- package/browser/Options/Classes/Particles/Size/Size.js +16 -0
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +26 -0
- package/browser/Options/Classes/Particles/Stroke.js +21 -0
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +24 -0
- package/browser/Options/Classes/Random.js +17 -0
- package/browser/Options/Classes/Responsive.js +27 -0
- package/browser/Options/Classes/Theme/Theme.js +20 -0
- package/browser/Options/Classes/Theme/ThemeDefault.js +21 -0
- package/browser/Options/Classes/ValueWithRandom.js +62 -0
- package/browser/Options/Interfaces/Background/IBackground.js +1 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.js +1 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +1 -0
- package/browser/Options/Interfaces/FullScreen/IFullScreen.js +1 -0
- package/browser/Options/Interfaces/IAnimatable.js +1 -0
- package/browser/Options/Interfaces/IAnimatableColor.js +1 -0
- package/browser/Options/Interfaces/IAnimation.js +1 -0
- package/browser/Options/Interfaces/IColorAnimation.js +1 -0
- package/browser/Options/Interfaces/IHslAnimation.js +1 -0
- package/browser/Options/Interfaces/IManualParticle.js +1 -0
- package/browser/Options/Interfaces/IOptionLoader.js +1 -0
- package/browser/Options/Interfaces/IOptions.js +1 -0
- package/browser/Options/Interfaces/IOptionsColor.js +1 -0
- package/browser/Options/Interfaces/IRandom.js +1 -0
- package/browser/Options/Interfaces/IResponsive.js +1 -0
- package/browser/Options/Interfaces/IValueWithRandom.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IParallax.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IResizeEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/IInteractivity.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.js +1 -0
- package/browser/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +1 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisions.js +1 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +1 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +1 -0
- package/browser/Options/Interfaces/Particles/IParticlesOptions.js +1 -0
- package/browser/Options/Interfaces/Particles/IShadow.js +1 -0
- package/browser/Options/Interfaces/Particles/IStroke.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMove.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveAngle.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveAttract.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveCenter.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveGravity.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveTrail.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveTrailFill.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IOutModes.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/ISpin.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/Path/IMovePath.js +1 -0
- package/browser/Options/Interfaces/Particles/Number/IParticlesDensity.js +1 -0
- package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.js +1 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacity.js +1 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Size/ISize.js +1 -0
- package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.js +1 -0
- package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.js +1 -0
- package/browser/Options/Interfaces/Theme/ITheme.js +1 -0
- package/browser/Options/Interfaces/Theme/IThemeDefault.js +1 -0
- package/browser/Types/CustomEventArgs.js +1 -0
- package/browser/Types/CustomEventListener.js +1 -0
- package/browser/Types/ISourceOptions.js +1 -0
- package/browser/Types/ParticlesGroups.js +1 -0
- package/browser/Types/PathOptions.js +1 -0
- package/browser/Types/RangeValue.js +1 -0
- package/browser/Types/RecursivePartial.js +1 -0
- package/browser/Types/ShapeData.js +1 -0
- package/browser/Types/ShapeDrawerFunctions.js +1 -0
- package/browser/Types/SingleOrMultiple.js +1 -0
- package/browser/Utils/CanvasUtils.js +149 -0
- package/browser/Utils/ColorUtils.js +274 -0
- package/browser/Utils/EventDispatcher.js +44 -0
- package/browser/Utils/HslColorManager.js +40 -0
- package/browser/Utils/NumberUtils.js +149 -0
- package/browser/Utils/OptionsUtils.js +11 -0
- package/browser/Utils/RgbColorManager.js +39 -0
- package/browser/Utils/Utils.js +247 -0
- package/browser/bundle.js +97 -0
- package/browser/engine.js +175 -0
- package/browser/index.js +199 -0
- package/cjs/Core/Canvas.js +402 -0
- package/cjs/Core/Container.js +440 -0
- package/cjs/Core/Interfaces/Colors.js +2 -0
- package/cjs/Core/Interfaces/IBounds.js +2 -0
- package/cjs/Core/Interfaces/IBubbleParticleData.js +2 -0
- package/cjs/Core/Interfaces/ICircleBouncer.js +2 -0
- package/cjs/Core/Interfaces/IColorManager.js +2 -0
- package/cjs/Core/Interfaces/IContainerInteractivity.js +2 -0
- package/cjs/Core/Interfaces/IContainerPlugin.js +2 -0
- package/cjs/Core/Interfaces/ICoordinates.js +2 -0
- package/cjs/Core/Interfaces/IDelta.js +2 -0
- package/cjs/Core/Interfaces/IDimension.js +2 -0
- package/cjs/Core/Interfaces/IDistance.js +2 -0
- package/cjs/Core/Interfaces/IDrawParticleParams.js +2 -0
- package/cjs/Core/Interfaces/IExternalInteractor.js +2 -0
- package/cjs/Core/Interfaces/IInteractor.js +2 -0
- package/cjs/Core/Interfaces/ILoadParams.js +2 -0
- package/cjs/Core/Interfaces/IMouseData.js +2 -0
- package/cjs/Core/Interfaces/IMovePathGenerator.js +2 -0
- package/cjs/Core/Interfaces/IParticle.js +2 -0
- package/cjs/Core/Interfaces/IParticleColorStyle.js +2 -0
- package/cjs/Core/Interfaces/IParticleHslAnimation.js +2 -0
- package/cjs/Core/Interfaces/IParticleLife.js +2 -0
- package/cjs/Core/Interfaces/IParticleMover.js +2 -0
- package/cjs/Core/Interfaces/IParticleOverride.js +2 -0
- package/cjs/Core/Interfaces/IParticleRetinaProps.js +2 -0
- package/cjs/Core/Interfaces/IParticleRoll.js +2 -0
- package/cjs/Core/Interfaces/IParticleTransformValues.js +2 -0
- package/cjs/Core/Interfaces/IParticleUpdater.js +2 -0
- package/cjs/Core/Interfaces/IParticleValueAnimation.js +2 -0
- package/cjs/Core/Interfaces/IParticlesInteractor.js +2 -0
- package/cjs/Core/Interfaces/IParticlesMover.js +2 -0
- package/cjs/Core/Interfaces/IPlugin.js +2 -0
- package/cjs/Core/Interfaces/IPositionFromSizeParams.js +2 -0
- package/cjs/Core/Interfaces/IRangeValue.js +2 -0
- package/cjs/Core/Interfaces/IRectSideResult.js +2 -0
- package/cjs/Core/Interfaces/IShapeDrawer.js +2 -0
- package/cjs/Core/Interfaces/IShapeValues.js +2 -0
- package/cjs/Core/Interfaces/ISlowParticleData.js +2 -0
- package/cjs/Core/Interfaces/ITrailFillData.js +2 -0
- package/cjs/Core/Particle.js +311 -0
- package/cjs/Core/Particles.js +266 -0
- package/cjs/Core/Retina.js +37 -0
- package/cjs/Core/Utils/Circle.js +27 -0
- package/cjs/Core/Utils/Constants.js +15 -0
- package/cjs/Core/Utils/EventListeners.js +284 -0
- package/cjs/Core/Utils/ExternalInteractorBase.js +10 -0
- package/cjs/Core/Utils/FrameManager.js +46 -0
- package/cjs/Core/Utils/InteractionManager.js +64 -0
- package/cjs/Core/Utils/ParticlesInteractorBase.js +10 -0
- package/cjs/Core/Utils/Plugins.js +116 -0
- package/cjs/Core/Utils/Point.js +10 -0
- package/cjs/Core/Utils/QuadTree.js +68 -0
- package/cjs/Core/Utils/Range.js +12 -0
- package/cjs/Core/Utils/Rectangle.js +26 -0
- package/cjs/Core/Utils/Vector.js +19 -0
- package/cjs/Core/Utils/Vector3d.js +100 -0
- package/cjs/Enums/AnimationStatus.js +2 -0
- package/cjs/Enums/Directions/MoveDirection.js +2 -0
- package/cjs/Enums/Directions/OutModeDirection.js +2 -0
- package/cjs/Enums/Directions/RotateDirection.js +2 -0
- package/cjs/Enums/InteractivityDetect.js +2 -0
- package/cjs/Enums/Modes/ClickMode.js +2 -0
- package/cjs/Enums/Modes/CollisionMode.js +2 -0
- package/cjs/Enums/Modes/DivMode.js +2 -0
- package/cjs/Enums/Modes/HoverMode.js +2 -0
- package/cjs/Enums/Modes/OutMode.js +2 -0
- package/cjs/Enums/Modes/ResponsiveMode.js +2 -0
- package/cjs/Enums/Modes/SizeMode.js +2 -0
- package/cjs/Enums/Modes/ThemeMode.js +2 -0
- package/cjs/Enums/Types/AlterType.js +2 -0
- package/cjs/Enums/Types/DestroyType.js +2 -0
- package/cjs/Enums/Types/DivType.js +2 -0
- package/cjs/Enums/Types/EasingType.js +2 -0
- package/cjs/Enums/Types/EventType.js +2 -0
- package/cjs/Enums/Types/GradientType.js +2 -0
- package/cjs/Enums/Types/InteractorType.js +2 -0
- package/cjs/Enums/Types/ParticleOutType.js +2 -0
- package/cjs/Enums/Types/StartValueType.js +2 -0
- package/cjs/Options/Classes/AnimatableColor.js +40 -0
- package/cjs/Options/Classes/AnimationOptions.js +53 -0
- package/cjs/Options/Classes/Background/Background.js +39 -0
- package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +28 -0
- package/cjs/Options/Classes/BackgroundMask/BackgroundMaskCover.js +23 -0
- package/cjs/Options/Classes/ColorAnimation.js +38 -0
- package/cjs/Options/Classes/FullScreen/FullScreen.js +21 -0
- package/cjs/Options/Classes/HslAnimation.js +20 -0
- package/cjs/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
- package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +53 -0
- package/cjs/Options/Classes/Interactivity/Events/Events.js +57 -0
- package/cjs/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
- package/cjs/Options/Classes/Interactivity/Events/Parallax.js +25 -0
- package/cjs/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
- package/cjs/Options/Classes/Interactivity/Interactivity.js +31 -0
- package/cjs/Options/Classes/Interactivity/Modes/Modes.js +25 -0
- package/cjs/Options/Classes/ManualParticle.js +22 -0
- package/cjs/Options/Classes/Options.js +174 -0
- package/cjs/Options/Classes/OptionsColor.js +28 -0
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +12 -0
- package/cjs/Options/Classes/Particles/Collisions/Collisions.js +30 -0
- package/cjs/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
- package/cjs/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
- package/cjs/Options/Classes/Particles/Move/Move.js +128 -0
- package/cjs/Options/Classes/Particles/Move/MoveAngle.js +22 -0
- package/cjs/Options/Classes/Particles/Move/MoveAttract.js +47 -0
- package/cjs/Options/Classes/Particles/Move/MoveCenter.js +29 -0
- package/cjs/Options/Classes/Particles/Move/MoveGravity.js +30 -0
- package/cjs/Options/Classes/Particles/Move/MoveTrail.js +32 -0
- package/cjs/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
- package/cjs/Options/Classes/Particles/Move/OutModes.js +22 -0
- package/cjs/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
- package/cjs/Options/Classes/Particles/Move/Spin.js +24 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +46 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +32 -0
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +20 -0
- package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +30 -0
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +96 -0
- package/cjs/Options/Classes/Particles/Shadow.js +38 -0
- package/cjs/Options/Classes/Particles/Shape/Shape.js +29 -0
- package/cjs/Options/Classes/Particles/Size/Size.js +20 -0
- package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +30 -0
- package/cjs/Options/Classes/Particles/Stroke.js +25 -0
- package/cjs/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
- package/cjs/Options/Classes/Random.js +21 -0
- package/cjs/Options/Classes/Responsive.js +31 -0
- package/cjs/Options/Classes/Theme/Theme.js +24 -0
- package/cjs/Options/Classes/Theme/ThemeDefault.js +25 -0
- package/cjs/Options/Classes/ValueWithRandom.js +68 -0
- package/cjs/Options/Interfaces/Background/IBackground.js +2 -0
- package/cjs/Options/Interfaces/BackgroundMask/IBackgroundMask.js +2 -0
- package/cjs/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +2 -0
- package/cjs/Options/Interfaces/FullScreen/IFullScreen.js +2 -0
- package/cjs/Options/Interfaces/IAnimatable.js +2 -0
- package/cjs/Options/Interfaces/IAnimatableColor.js +2 -0
- package/cjs/Options/Interfaces/IAnimation.js +2 -0
- package/cjs/Options/Interfaces/IColorAnimation.js +2 -0
- package/cjs/Options/Interfaces/IHslAnimation.js +2 -0
- package/cjs/Options/Interfaces/IManualParticle.js +2 -0
- package/cjs/Options/Interfaces/IOptionLoader.js +2 -0
- package/cjs/Options/Interfaces/IOptions.js +2 -0
- package/cjs/Options/Interfaces/IOptionsColor.js +2 -0
- package/cjs/Options/Interfaces/IRandom.js +2 -0
- package/cjs/Options/Interfaces/IResponsive.js +2 -0
- package/cjs/Options/Interfaces/IValueWithRandom.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IClickEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IDivEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IEvents.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IHoverEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IParallax.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IResizeEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/IInteractivity.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Modes/IModeDiv.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Modes/IModes.js +2 -0
- package/cjs/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +2 -0
- package/cjs/Options/Interfaces/Particles/Collisions/ICollisions.js +2 -0
- package/cjs/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +2 -0
- package/cjs/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +2 -0
- package/cjs/Options/Interfaces/Particles/IParticlesOptions.js +2 -0
- package/cjs/Options/Interfaces/Particles/IShadow.js +2 -0
- package/cjs/Options/Interfaces/Particles/IStroke.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMove.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveAngle.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveAttract.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveCenter.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveGravity.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveTrail.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveTrailFill.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IOutModes.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/ISpin.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/Path/IMovePath.js +2 -0
- package/cjs/Options/Interfaces/Particles/Number/IParticlesDensity.js +2 -0
- package/cjs/Options/Interfaces/Particles/Number/IParticlesNumber.js +2 -0
- package/cjs/Options/Interfaces/Particles/Opacity/IOpacity.js +2 -0
- package/cjs/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +17 -0
- package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Size/ISize.js +2 -0
- package/cjs/Options/Interfaces/Particles/Size/ISizeAnimation.js +2 -0
- package/cjs/Options/Interfaces/Particles/ZIndex/IZIndex.js +2 -0
- package/cjs/Options/Interfaces/Theme/ITheme.js +2 -0
- package/cjs/Options/Interfaces/Theme/IThemeDefault.js +2 -0
- package/cjs/Types/CustomEventArgs.js +2 -0
- package/cjs/Types/CustomEventListener.js +2 -0
- package/cjs/Types/ISourceOptions.js +2 -0
- package/cjs/Types/ParticlesGroups.js +2 -0
- package/cjs/Types/PathOptions.js +2 -0
- package/cjs/Types/RangeValue.js +2 -0
- package/cjs/Types/RecursivePartial.js +2 -0
- package/cjs/Types/ShapeData.js +2 -0
- package/cjs/Types/ShapeDrawerFunctions.js +2 -0
- package/cjs/Types/SingleOrMultiple.js +2 -0
- package/cjs/Utils/CanvasUtils.js +164 -0
- package/cjs/Utils/ColorUtils.js +295 -0
- package/cjs/Utils/EventDispatcher.js +48 -0
- package/cjs/Utils/HslColorManager.js +44 -0
- package/cjs/Utils/NumberUtils.js +175 -0
- package/cjs/Utils/OptionsUtils.js +16 -0
- package/cjs/Utils/RgbColorManager.js +43 -0
- package/cjs/Utils/Utils.js +274 -0
- package/cjs/bundle.js +114 -0
- package/cjs/engine.js +179 -0
- package/cjs/index.js +216 -0
- package/esm/Core/Canvas.js +398 -0
- package/esm/Core/Container.js +436 -0
- package/esm/Core/Interfaces/Colors.js +1 -0
- package/esm/Core/Interfaces/IBounds.js +1 -0
- package/esm/Core/Interfaces/IBubbleParticleData.js +1 -0
- package/esm/Core/Interfaces/ICircleBouncer.js +1 -0
- package/esm/Core/Interfaces/IColorManager.js +1 -0
- package/esm/Core/Interfaces/IContainerInteractivity.js +1 -0
- package/esm/Core/Interfaces/IContainerPlugin.js +1 -0
- package/esm/Core/Interfaces/ICoordinates.js +1 -0
- package/esm/Core/Interfaces/IDelta.js +1 -0
- package/esm/Core/Interfaces/IDimension.js +1 -0
- package/esm/Core/Interfaces/IDistance.js +1 -0
- package/esm/Core/Interfaces/IDrawParticleParams.js +1 -0
- package/esm/Core/Interfaces/IExternalInteractor.js +1 -0
- package/esm/Core/Interfaces/IInteractor.js +1 -0
- package/esm/Core/Interfaces/ILoadParams.js +1 -0
- package/esm/Core/Interfaces/IMouseData.js +1 -0
- package/esm/Core/Interfaces/IMovePathGenerator.js +1 -0
- package/esm/Core/Interfaces/IParticle.js +1 -0
- package/esm/Core/Interfaces/IParticleColorStyle.js +1 -0
- package/esm/Core/Interfaces/IParticleHslAnimation.js +1 -0
- package/esm/Core/Interfaces/IParticleLife.js +1 -0
- package/esm/Core/Interfaces/IParticleMover.js +1 -0
- package/esm/Core/Interfaces/IParticleOverride.js +1 -0
- package/esm/Core/Interfaces/IParticleRetinaProps.js +1 -0
- package/esm/Core/Interfaces/IParticleRoll.js +1 -0
- package/esm/Core/Interfaces/IParticleTransformValues.js +1 -0
- package/esm/Core/Interfaces/IParticleUpdater.js +1 -0
- package/esm/Core/Interfaces/IParticleValueAnimation.js +1 -0
- package/esm/Core/Interfaces/IParticlesInteractor.js +1 -0
- package/esm/Core/Interfaces/IParticlesMover.js +1 -0
- package/esm/Core/Interfaces/IPlugin.js +1 -0
- package/esm/Core/Interfaces/IPositionFromSizeParams.js +1 -0
- package/esm/Core/Interfaces/IRangeValue.js +1 -0
- package/esm/Core/Interfaces/IRectSideResult.js +1 -0
- package/esm/Core/Interfaces/IShapeDrawer.js +1 -0
- package/esm/Core/Interfaces/IShapeValues.js +1 -0
- package/esm/Core/Interfaces/ISlowParticleData.js +1 -0
- package/esm/Core/Interfaces/ITrailFillData.js +1 -0
- package/esm/Core/Particle.js +307 -0
- package/esm/Core/Particles.js +262 -0
- package/esm/Core/Retina.js +33 -0
- package/esm/Core/Utils/Circle.js +23 -0
- package/esm/Core/Utils/Constants.js +12 -0
- package/esm/Core/Utils/EventListeners.js +280 -0
- package/esm/Core/Utils/ExternalInteractorBase.js +6 -0
- package/esm/Core/Utils/FrameManager.js +42 -0
- package/esm/Core/Utils/InteractionManager.js +60 -0
- package/esm/Core/Utils/ParticlesInteractorBase.js +6 -0
- package/esm/Core/Utils/Plugins.js +112 -0
- package/esm/Core/Utils/Point.js +6 -0
- package/esm/Core/Utils/QuadTree.js +64 -0
- package/esm/Core/Utils/Range.js +8 -0
- package/esm/Core/Utils/Rectangle.js +22 -0
- package/esm/Core/Utils/Vector.js +15 -0
- package/esm/Core/Utils/Vector3d.js +96 -0
- package/esm/Enums/AnimationStatus.js +1 -0
- package/esm/Enums/Directions/MoveDirection.js +1 -0
- package/esm/Enums/Directions/OutModeDirection.js +1 -0
- package/esm/Enums/Directions/RotateDirection.js +1 -0
- package/esm/Enums/InteractivityDetect.js +1 -0
- package/esm/Enums/Modes/ClickMode.js +1 -0
- package/esm/Enums/Modes/CollisionMode.js +1 -0
- package/esm/Enums/Modes/DivMode.js +1 -0
- package/esm/Enums/Modes/HoverMode.js +1 -0
- package/esm/Enums/Modes/OutMode.js +1 -0
- package/esm/Enums/Modes/ResponsiveMode.js +1 -0
- package/esm/Enums/Modes/SizeMode.js +1 -0
- package/esm/Enums/Modes/ThemeMode.js +1 -0
- package/esm/Enums/Types/AlterType.js +1 -0
- package/esm/Enums/Types/DestroyType.js +1 -0
- package/esm/Enums/Types/DivType.js +1 -0
- package/esm/Enums/Types/EasingType.js +1 -0
- package/esm/Enums/Types/EventType.js +1 -0
- package/esm/Enums/Types/GradientType.js +1 -0
- package/esm/Enums/Types/InteractorType.js +1 -0
- package/esm/Enums/Types/ParticleOutType.js +1 -0
- package/esm/Enums/Types/StartValueType.js +1 -0
- package/esm/Options/Classes/AnimatableColor.js +36 -0
- package/esm/Options/Classes/AnimationOptions.js +48 -0
- package/esm/Options/Classes/Background/Background.js +35 -0
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +24 -0
- package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.js +19 -0
- package/esm/Options/Classes/ColorAnimation.js +34 -0
- package/esm/Options/Classes/FullScreen/FullScreen.js +17 -0
- package/esm/Options/Classes/HslAnimation.js +16 -0
- package/esm/Options/Classes/Interactivity/Events/ClickEvent.js +17 -0
- package/esm/Options/Classes/Interactivity/Events/DivEvent.js +49 -0
- package/esm/Options/Classes/Interactivity/Events/Events.js +53 -0
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.js +20 -0
- package/esm/Options/Classes/Interactivity/Events/Parallax.js +21 -0
- package/esm/Options/Classes/Interactivity/Events/ResizeEvent.js +17 -0
- package/esm/Options/Classes/Interactivity/Interactivity.js +27 -0
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +21 -0
- package/esm/Options/Classes/ManualParticle.js +18 -0
- package/esm/Options/Classes/Options.js +170 -0
- package/esm/Options/Classes/OptionsColor.js +24 -0
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounce.js +14 -0
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +8 -0
- package/esm/Options/Classes/Particles/Collisions/Collisions.js +26 -0
- package/esm/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +13 -0
- package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.js +17 -0
- package/esm/Options/Classes/Particles/Move/Move.js +124 -0
- package/esm/Options/Classes/Particles/Move/MoveAngle.js +18 -0
- package/esm/Options/Classes/Particles/Move/MoveAttract.js +43 -0
- package/esm/Options/Classes/Particles/Move/MoveCenter.js +25 -0
- package/esm/Options/Classes/Particles/Move/MoveGravity.js +26 -0
- package/esm/Options/Classes/Particles/Move/MoveTrail.js +28 -0
- package/esm/Options/Classes/Particles/Move/MoveTrailFill.js +14 -0
- package/esm/Options/Classes/Particles/Move/OutModes.js +18 -0
- package/esm/Options/Classes/Particles/Move/Path/MovePath.js +26 -0
- package/esm/Options/Classes/Particles/Move/Spin.js +20 -0
- package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +42 -0
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +28 -0
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +16 -0
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +26 -0
- package/esm/Options/Classes/Particles/ParticlesOptions.js +92 -0
- package/esm/Options/Classes/Particles/Shadow.js +34 -0
- package/esm/Options/Classes/Particles/Shape/Shape.js +25 -0
- package/esm/Options/Classes/Particles/Size/Size.js +16 -0
- package/esm/Options/Classes/Particles/Size/SizeAnimation.js +26 -0
- package/esm/Options/Classes/Particles/Stroke.js +21 -0
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.js +24 -0
- package/esm/Options/Classes/Random.js +17 -0
- package/esm/Options/Classes/Responsive.js +27 -0
- package/esm/Options/Classes/Theme/Theme.js +20 -0
- package/esm/Options/Classes/Theme/ThemeDefault.js +21 -0
- package/esm/Options/Classes/ValueWithRandom.js +62 -0
- package/esm/Options/Interfaces/Background/IBackground.js +1 -0
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.js +1 -0
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +1 -0
- package/esm/Options/Interfaces/FullScreen/IFullScreen.js +1 -0
- package/esm/Options/Interfaces/IAnimatable.js +1 -0
- package/esm/Options/Interfaces/IAnimatableColor.js +1 -0
- package/esm/Options/Interfaces/IAnimation.js +1 -0
- package/esm/Options/Interfaces/IColorAnimation.js +1 -0
- package/esm/Options/Interfaces/IHslAnimation.js +1 -0
- package/esm/Options/Interfaces/IManualParticle.js +1 -0
- package/esm/Options/Interfaces/IOptionLoader.js +1 -0
- package/esm/Options/Interfaces/IOptions.js +1 -0
- package/esm/Options/Interfaces/IOptionsColor.js +1 -0
- package/esm/Options/Interfaces/IRandom.js +1 -0
- package/esm/Options/Interfaces/IResponsive.js +1 -0
- package/esm/Options/Interfaces/IValueWithRandom.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IClickEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IDivEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IEvents.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IHoverEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IParallax.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IResizeEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/IInteractivity.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Modes/IModeDiv.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Modes/IModes.js +1 -0
- package/esm/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +1 -0
- package/esm/Options/Interfaces/Particles/Collisions/ICollisions.js +1 -0
- package/esm/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +1 -0
- package/esm/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +1 -0
- package/esm/Options/Interfaces/Particles/IParticlesOptions.js +1 -0
- package/esm/Options/Interfaces/Particles/IShadow.js +1 -0
- package/esm/Options/Interfaces/Particles/IStroke.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMove.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveAngle.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveAttract.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveCenter.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveGravity.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveTrail.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveTrailFill.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IOutModes.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/ISpin.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/Path/IMovePath.js +1 -0
- package/esm/Options/Interfaces/Particles/Number/IParticlesDensity.js +1 -0
- package/esm/Options/Interfaces/Particles/Number/IParticlesNumber.js +1 -0
- package/esm/Options/Interfaces/Particles/Opacity/IOpacity.js +1 -0
- package/esm/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Size/ISize.js +1 -0
- package/esm/Options/Interfaces/Particles/Size/ISizeAnimation.js +1 -0
- package/esm/Options/Interfaces/Particles/ZIndex/IZIndex.js +1 -0
- package/esm/Options/Interfaces/Theme/ITheme.js +1 -0
- package/esm/Options/Interfaces/Theme/IThemeDefault.js +1 -0
- package/esm/Types/CustomEventArgs.js +1 -0
- package/esm/Types/CustomEventListener.js +1 -0
- package/esm/Types/ISourceOptions.js +1 -0
- package/esm/Types/ParticlesGroups.js +1 -0
- package/esm/Types/PathOptions.js +1 -0
- package/esm/Types/RangeValue.js +1 -0
- package/esm/Types/RecursivePartial.js +1 -0
- package/esm/Types/ShapeData.js +1 -0
- package/esm/Types/ShapeDrawerFunctions.js +1 -0
- package/esm/Types/SingleOrMultiple.js +1 -0
- package/esm/Utils/CanvasUtils.js +149 -0
- package/esm/Utils/ColorUtils.js +274 -0
- package/esm/Utils/EventDispatcher.js +44 -0
- package/esm/Utils/HslColorManager.js +40 -0
- package/esm/Utils/NumberUtils.js +149 -0
- package/esm/Utils/OptionsUtils.js +11 -0
- package/esm/Utils/RgbColorManager.js +39 -0
- package/esm/Utils/Utils.js +247 -0
- package/esm/bundle.js +97 -0
- package/esm/engine.js +175 -0
- package/esm/index.js +199 -0
- package/package.json +90 -0
- package/report.html +39 -0
- package/scripts/install.js +105 -0
- package/tsparticles.engine.js +5541 -0
- package/tsparticles.engine.min.js +2 -0
- package/tsparticles.engine.min.js.LICENSE.txt +10 -0
- package/types/Core/Canvas.d.ts +47 -0
- package/types/Core/Container.d.ts +72 -0
- package/types/Core/Interfaces/Colors.d.ts +57 -0
- package/types/Core/Interfaces/IBounds.d.ts +6 -0
- package/types/Core/Interfaces/IBubbleParticleData.d.ts +9 -0
- package/types/Core/Interfaces/ICircleBouncer.d.ts +9 -0
- package/types/Core/Interfaces/IColorManager.d.ts +8 -0
- package/types/Core/Interfaces/IContainerInteractivity.d.ts +6 -0
- package/types/Core/Interfaces/IContainerPlugin.d.ts +29 -0
- package/types/Core/Interfaces/ICoordinates.d.ts +20 -0
- package/types/Core/Interfaces/IDelta.d.ts +4 -0
- package/types/Core/Interfaces/IDimension.d.ts +4 -0
- package/types/Core/Interfaces/IDistance.d.ts +4 -0
- package/types/Core/Interfaces/IDrawParticleParams.d.ts +19 -0
- package/types/Core/Interfaces/IExternalInteractor.d.ts +13 -0
- package/types/Core/Interfaces/IInteractor.d.ts +16 -0
- package/types/Core/Interfaces/ILoadParams.d.ts +9 -0
- package/types/Core/Interfaces/IMouseData.d.ts +9 -0
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +9 -0
- package/types/Core/Interfaces/IParticle.d.ts +48 -0
- package/types/Core/Interfaces/IParticleColorStyle.d.ts +4 -0
- package/types/Core/Interfaces/IParticleHslAnimation.d.ts +6 -0
- package/types/Core/Interfaces/IParticleLife.d.ts +7 -0
- package/types/Core/Interfaces/IParticleMover.d.ts +7 -0
- package/types/Core/Interfaces/IParticleOverride.d.ts +6 -0
- package/types/Core/Interfaces/IParticleRetinaProps.d.ts +9 -0
- package/types/Core/Interfaces/IParticleRoll.d.ts +12 -0
- package/types/Core/Interfaces/IParticleTransformValues.d.ts +6 -0
- package/types/Core/Interfaces/IParticleUpdater.d.ts +21 -0
- package/types/Core/Interfaces/IParticleValueAnimation.d.ts +15 -0
- package/types/Core/Interfaces/IParticlesInteractor.d.ts +7 -0
- package/types/Core/Interfaces/IParticlesMover.d.ts +7 -0
- package/types/Core/Interfaces/IPlugin.d.ts +10 -0
- package/types/Core/Interfaces/IPositionFromSizeParams.d.ts +10 -0
- package/types/Core/Interfaces/IRangeValue.d.ts +4 -0
- package/types/Core/Interfaces/IRectSideResult.d.ts +5 -0
- package/types/Core/Interfaces/IShapeDrawer.d.ts +10 -0
- package/types/Core/Interfaces/IShapeValues.d.ts +8 -0
- package/types/Core/Interfaces/ISlowParticleData.d.ts +4 -0
- package/types/Core/Interfaces/ITrailFillData.d.ts +6 -0
- package/types/Core/Particle.d.ts +85 -0
- package/types/Core/Particles.d.ts +45 -0
- package/types/Core/Retina.d.ts +13 -0
- package/types/Core/Utils/Circle.d.ts +8 -0
- package/types/Core/Utils/Constants.d.ts +12 -0
- package/types/Core/Utils/EventListeners.d.ts +21 -0
- package/types/Core/Utils/ExternalInteractorBase.d.ts +15 -0
- package/types/Core/Utils/FrameManager.d.ts +6 -0
- package/types/Core/Utils/InteractionManager.d.ts +18 -0
- package/types/Core/Utils/ParticlesInteractorBase.d.ts +15 -0
- package/types/Core/Utils/Plugins.d.ts +51 -0
- package/types/Core/Utils/Point.d.ts +7 -0
- package/types/Core/Utils/QuadTree.d.ts +22 -0
- package/types/Core/Utils/Range.d.ts +7 -0
- package/types/Core/Utils/Rectangle.d.ts +9 -0
- package/types/Core/Utils/Vector.d.ts +8 -0
- package/types/Core/Utils/Vector3d.d.ts +29 -0
- package/types/Enums/AnimationStatus.d.ts +4 -0
- package/types/Enums/Directions/MoveDirection.d.ts +14 -0
- package/types/Enums/Directions/OutModeDirection.d.ts +6 -0
- package/types/Enums/Directions/RotateDirection.d.ts +6 -0
- package/types/Enums/InteractivityDetect.d.ts +5 -0
- package/types/Enums/Modes/ClickMode.d.ts +9 -0
- package/types/Enums/Modes/CollisionMode.d.ts +5 -0
- package/types/Enums/Modes/DivMode.d.ts +5 -0
- package/types/Enums/Modes/HoverMode.d.ts +11 -0
- package/types/Enums/Modes/OutMode.d.ts +10 -0
- package/types/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/types/Enums/Modes/SizeMode.d.ts +4 -0
- package/types/Enums/Modes/ThemeMode.d.ts +5 -0
- package/types/Enums/Types/AlterType.d.ts +4 -0
- package/types/Enums/Types/DestroyType.d.ts +5 -0
- package/types/Enums/Types/DivType.d.ts +4 -0
- package/types/Enums/Types/EasingType.d.ts +27 -0
- package/types/Enums/Types/EventType.d.ts +12 -0
- package/types/Enums/Types/GradientType.d.ts +5 -0
- package/types/Enums/Types/InteractorType.d.ts +4 -0
- package/types/Enums/Types/ParticleOutType.d.ts +5 -0
- package/types/Enums/Types/StartValueType.d.ts +5 -0
- package/types/Options/Classes/AnimatableColor.d.ts +12 -0
- package/types/Options/Classes/AnimationOptions.d.ts +20 -0
- package/types/Options/Classes/Background/Background.d.ts +14 -0
- package/types/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
- package/types/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
- package/types/Options/Classes/ColorAnimation.d.ts +14 -0
- package/types/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
- package/types/Options/Classes/HslAnimation.d.ts +11 -0
- package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +11 -0
- package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +20 -0
- package/types/Options/Classes/Interactivity/Events/Events.d.ts +22 -0
- package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +13 -0
- package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Events/ResizeEvent.d.ts +9 -0
- package/types/Options/Classes/Interactivity/Interactivity.d.ts +18 -0
- package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +12 -0
- package/types/Options/Classes/ManualParticle.d.ts +10 -0
- package/types/Options/Classes/Options.d.ts +58 -0
- package/types/Options/Classes/OptionsColor.d.ts +11 -0
- package/types/Options/Classes/Particles/Bounce/ParticlesBounce.d.ts +10 -0
- package/types/Options/Classes/Particles/Bounce/ParticlesBounceFactor.d.ts +4 -0
- package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +16 -0
- package/types/Options/Classes/Particles/Collisions/CollisionsAbsorb.d.ts +8 -0
- package/types/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
- package/types/Options/Classes/Particles/Move/Move.d.ts +49 -0
- package/types/Options/Classes/Particles/Move/MoveAngle.d.ts +10 -0
- package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +16 -0
- package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +12 -0
- package/types/Options/Classes/Particles/Move/MoveGravity.d.ts +12 -0
- package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +14 -0
- package/types/Options/Classes/Particles/Move/MoveTrailFill.d.ts +9 -0
- package/types/Options/Classes/Particles/Move/OutModes.d.ts +14 -0
- package/types/Options/Classes/Particles/Move/Path/MovePath.d.ts +14 -0
- package/types/Options/Classes/Particles/Move/Spin.d.ts +12 -0
- package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +16 -0
- package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
- package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +10 -0
- package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +12 -0
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +40 -0
- package/types/Options/Classes/Particles/Shadow.d.ts +13 -0
- package/types/Options/Classes/Particles/Shape/Shape.d.ts +11 -0
- package/types/Options/Classes/Particles/Size/Size.d.ts +10 -0
- package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +12 -0
- package/types/Options/Classes/Particles/Stroke.d.ts +12 -0
- package/types/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
- package/types/Options/Classes/Random.d.ts +9 -0
- package/types/Options/Classes/Responsive.d.ts +12 -0
- package/types/Options/Classes/Theme/Theme.d.ts +12 -0
- package/types/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
- package/types/Options/Classes/ValueWithRandom.d.ts +26 -0
- package/types/Options/Interfaces/Background/IBackground.d.ts +9 -0
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +5 -0
- package/types/Options/Interfaces/FullScreen/IFullScreen.d.ts +4 -0
- package/types/Options/Interfaces/IAnimatable.d.ts +4 -0
- package/types/Options/Interfaces/IAnimatableColor.d.ts +6 -0
- package/types/Options/Interfaces/IAnimation.d.ts +13 -0
- package/types/Options/Interfaces/IColorAnimation.d.ts +5 -0
- package/types/Options/Interfaces/IHslAnimation.d.ts +6 -0
- package/types/Options/Interfaces/IManualParticle.d.ts +7 -0
- package/types/Options/Interfaces/IOptionLoader.d.ts +4 -0
- package/types/Options/Interfaces/IOptions.d.ts +37 -0
- package/types/Options/Interfaces/IOptionsColor.d.ts +2 -0
- package/types/Options/Interfaces/IRandom.d.ts +4 -0
- package/types/Options/Interfaces/IResponsive.d.ts +7 -0
- package/types/Options/Interfaces/IValueWithRandom.d.ts +13 -0
- package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
- package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +12 -0
- package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +14 -0
- package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
- package/types/Options/Interfaces/Interactivity/Events/IParallax.d.ts +5 -0
- package/types/Options/Interfaces/Interactivity/Events/IResizeEvent.d.ts +4 -0
- package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +10 -0
- package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
- package/types/Options/Interfaces/Interactivity/Modes/IModes.d.ts +3 -0
- package/types/Options/Interfaces/Particles/Bounce/IParticlesBounce.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +11 -0
- package/types/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.d.ts +3 -0
- package/types/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +4 -0
- package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +32 -0
- package/types/Options/Interfaces/Particles/IShadow.d.ts +8 -0
- package/types/Options/Interfaces/Particles/IStroke.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Move/IMove.d.ts +38 -0
- package/types/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Move/IMoveCenter.d.ts +2 -0
- package/types/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +7 -0
- package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Move/IMoveTrailFill.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
- package/types/Options/Interfaces/Particles/Move/Path/IMovePath.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
- package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +1 -0
- package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Size/ISize.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +6 -0
- package/types/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +6 -0
- package/types/Options/Interfaces/Theme/ITheme.d.ts +7 -0
- package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
- package/types/Types/CustomEventArgs.d.ts +5 -0
- package/types/Types/CustomEventListener.d.ts +2 -0
- package/types/Types/ISourceOptions.d.ts +3 -0
- package/types/Types/ParticlesGroups.d.ts +4 -0
- package/types/Types/PathOptions.d.ts +3 -0
- package/types/Types/RangeValue.d.ts +2 -0
- package/types/Types/RecursivePartial.d.ts +3 -0
- package/types/Types/ShapeData.d.ts +5 -0
- package/types/Types/ShapeDrawerFunctions.d.ts +10 -0
- package/types/Types/SingleOrMultiple.d.ts +1 -0
- package/types/Utils/CanvasUtils.d.ts +23 -0
- package/types/Utils/ColorUtils.d.ts +24 -0
- package/types/Utils/EventDispatcher.d.ts +11 -0
- package/types/Utils/HslColorManager.d.ts +10 -0
- package/types/Utils/NumberUtils.d.ts +37 -0
- package/types/Utils/OptionsUtils.d.ts +8 -0
- package/types/Utils/RgbColorManager.d.ts +10 -0
- package/types/Utils/Utils.d.ts +36 -0
- package/types/bundle.d.ts +91 -0
- package/types/engine.d.ts +39 -0
- package/types/index.d.ts +204 -0
- package/umd/Core/Canvas.js +412 -0
- package/umd/Core/Container.js +450 -0
- package/umd/Core/Interfaces/Colors.js +12 -0
- package/umd/Core/Interfaces/IBounds.js +12 -0
- package/umd/Core/Interfaces/IBubbleParticleData.js +12 -0
- package/umd/Core/Interfaces/ICircleBouncer.js +12 -0
- package/umd/Core/Interfaces/IColorManager.js +12 -0
- package/umd/Core/Interfaces/IContainerInteractivity.js +12 -0
- package/umd/Core/Interfaces/IContainerPlugin.js +12 -0
- package/umd/Core/Interfaces/ICoordinates.js +12 -0
- package/umd/Core/Interfaces/IDelta.js +12 -0
- package/umd/Core/Interfaces/IDimension.js +12 -0
- package/umd/Core/Interfaces/IDistance.js +12 -0
- package/umd/Core/Interfaces/IDrawParticleParams.js +12 -0
- package/umd/Core/Interfaces/IExternalInteractor.js +12 -0
- package/umd/Core/Interfaces/IInteractor.js +12 -0
- package/umd/Core/Interfaces/ILoadParams.js +12 -0
- package/umd/Core/Interfaces/IMouseData.js +12 -0
- package/umd/Core/Interfaces/IMovePathGenerator.js +12 -0
- package/umd/Core/Interfaces/IParticle.js +12 -0
- package/umd/Core/Interfaces/IParticleColorStyle.js +12 -0
- package/umd/Core/Interfaces/IParticleHslAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleLife.js +12 -0
- package/umd/Core/Interfaces/IParticleMover.js +12 -0
- package/umd/Core/Interfaces/IParticleOverride.js +12 -0
- package/umd/Core/Interfaces/IParticleRetinaProps.js +12 -0
- package/umd/Core/Interfaces/IParticleRoll.js +12 -0
- package/umd/Core/Interfaces/IParticleTransformValues.js +12 -0
- package/umd/Core/Interfaces/IParticleUpdater.js +12 -0
- package/umd/Core/Interfaces/IParticleValueAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticlesInteractor.js +12 -0
- package/umd/Core/Interfaces/IParticlesMover.js +12 -0
- package/umd/Core/Interfaces/IPlugin.js +12 -0
- package/umd/Core/Interfaces/IPositionFromSizeParams.js +12 -0
- package/umd/Core/Interfaces/IRangeValue.js +12 -0
- package/umd/Core/Interfaces/IRectSideResult.js +12 -0
- package/umd/Core/Interfaces/IShapeDrawer.js +12 -0
- package/umd/Core/Interfaces/IShapeValues.js +12 -0
- package/umd/Core/Interfaces/ISlowParticleData.js +12 -0
- package/umd/Core/Interfaces/ITrailFillData.js +12 -0
- package/umd/Core/Particle.js +321 -0
- package/umd/Core/Particles.js +276 -0
- package/umd/Core/Retina.js +47 -0
- package/umd/Core/Utils/Circle.js +37 -0
- package/umd/Core/Utils/Constants.js +25 -0
- package/umd/Core/Utils/EventListeners.js +294 -0
- package/umd/Core/Utils/ExternalInteractorBase.js +20 -0
- package/umd/Core/Utils/FrameManager.js +56 -0
- package/umd/Core/Utils/InteractionManager.js +74 -0
- package/umd/Core/Utils/ParticlesInteractorBase.js +20 -0
- package/umd/Core/Utils/Plugins.js +126 -0
- package/umd/Core/Utils/Point.js +20 -0
- package/umd/Core/Utils/QuadTree.js +78 -0
- package/umd/Core/Utils/Range.js +22 -0
- package/umd/Core/Utils/Rectangle.js +36 -0
- package/umd/Core/Utils/Vector.js +29 -0
- package/umd/Core/Utils/Vector3d.js +110 -0
- package/umd/Enums/AnimationStatus.js +12 -0
- package/umd/Enums/Directions/MoveDirection.js +12 -0
- package/umd/Enums/Directions/OutModeDirection.js +12 -0
- package/umd/Enums/Directions/RotateDirection.js +12 -0
- package/umd/Enums/InteractivityDetect.js +12 -0
- package/umd/Enums/Modes/ClickMode.js +12 -0
- package/umd/Enums/Modes/CollisionMode.js +12 -0
- package/umd/Enums/Modes/DivMode.js +12 -0
- package/umd/Enums/Modes/HoverMode.js +12 -0
- package/umd/Enums/Modes/OutMode.js +12 -0
- package/umd/Enums/Modes/ResponsiveMode.js +12 -0
- package/umd/Enums/Modes/SizeMode.js +12 -0
- package/umd/Enums/Modes/ThemeMode.js +12 -0
- package/umd/Enums/Types/AlterType.js +12 -0
- package/umd/Enums/Types/DestroyType.js +12 -0
- package/umd/Enums/Types/DivType.js +12 -0
- package/umd/Enums/Types/EasingType.js +12 -0
- package/umd/Enums/Types/EventType.js +12 -0
- package/umd/Enums/Types/GradientType.js +12 -0
- package/umd/Enums/Types/InteractorType.js +12 -0
- package/umd/Enums/Types/ParticleOutType.js +12 -0
- package/umd/Enums/Types/StartValueType.js +12 -0
- package/umd/Options/Classes/AnimatableColor.js +50 -0
- package/umd/Options/Classes/AnimationOptions.js +63 -0
- package/umd/Options/Classes/Background/Background.js +49 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +38 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +33 -0
- package/umd/Options/Classes/ColorAnimation.js +48 -0
- package/umd/Options/Classes/FullScreen/FullScreen.js +31 -0
- package/umd/Options/Classes/HslAnimation.js +30 -0
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +31 -0
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +63 -0
- package/umd/Options/Classes/Interactivity/Events/Events.js +67 -0
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +34 -0
- package/umd/Options/Classes/Interactivity/Events/Parallax.js +35 -0
- package/umd/Options/Classes/Interactivity/Events/ResizeEvent.js +31 -0
- package/umd/Options/Classes/Interactivity/Interactivity.js +41 -0
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +35 -0
- package/umd/Options/Classes/ManualParticle.js +32 -0
- package/umd/Options/Classes/Options.js +184 -0
- package/umd/Options/Classes/OptionsColor.js +38 -0
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +28 -0
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +22 -0
- package/umd/Options/Classes/Particles/Collisions/Collisions.js +40 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +27 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.js +31 -0
- package/umd/Options/Classes/Particles/Move/Move.js +138 -0
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +32 -0
- package/umd/Options/Classes/Particles/Move/MoveAttract.js +57 -0
- package/umd/Options/Classes/Particles/Move/MoveCenter.js +39 -0
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +40 -0
- package/umd/Options/Classes/Particles/Move/MoveTrail.js +42 -0
- package/umd/Options/Classes/Particles/Move/MoveTrailFill.js +28 -0
- package/umd/Options/Classes/Particles/Move/OutModes.js +32 -0
- package/umd/Options/Classes/Particles/Move/Path/MovePath.js +40 -0
- package/umd/Options/Classes/Particles/Move/Spin.js +34 -0
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +56 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +42 -0
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +30 -0
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +40 -0
- package/umd/Options/Classes/Particles/ParticlesOptions.js +106 -0
- package/umd/Options/Classes/Particles/Shadow.js +48 -0
- package/umd/Options/Classes/Particles/Shape/Shape.js +39 -0
- package/umd/Options/Classes/Particles/Size/Size.js +30 -0
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +40 -0
- package/umd/Options/Classes/Particles/Stroke.js +35 -0
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +38 -0
- package/umd/Options/Classes/Random.js +31 -0
- package/umd/Options/Classes/Responsive.js +41 -0
- package/umd/Options/Classes/Theme/Theme.js +34 -0
- package/umd/Options/Classes/Theme/ThemeDefault.js +35 -0
- package/umd/Options/Classes/ValueWithRandom.js +78 -0
- package/umd/Options/Interfaces/Background/IBackground.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +12 -0
- package/umd/Options/Interfaces/FullScreen/IFullScreen.js +12 -0
- package/umd/Options/Interfaces/IAnimatable.js +12 -0
- package/umd/Options/Interfaces/IAnimatableColor.js +12 -0
- package/umd/Options/Interfaces/IAnimation.js +12 -0
- package/umd/Options/Interfaces/IColorAnimation.js +12 -0
- package/umd/Options/Interfaces/IHslAnimation.js +12 -0
- package/umd/Options/Interfaces/IManualParticle.js +12 -0
- package/umd/Options/Interfaces/IOptionLoader.js +12 -0
- package/umd/Options/Interfaces/IOptions.js +12 -0
- package/umd/Options/Interfaces/IOptionsColor.js +12 -0
- package/umd/Options/Interfaces/IRandom.js +12 -0
- package/umd/Options/Interfaces/IResponsive.js +12 -0
- package/umd/Options/Interfaces/IValueWithRandom.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IResizeEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/IInteractivity.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +12 -0
- package/umd/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisions.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +12 -0
- package/umd/Options/Interfaces/Particles/IParticlesOptions.js +12 -0
- package/umd/Options/Interfaces/Particles/IShadow.js +12 -0
- package/umd/Options/Interfaces/Particles/IStroke.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMove.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAttract.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveCenter.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveTrail.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveTrailFill.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IOutModes.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/ISpin.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/Path/IMovePath.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesDensity.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +27 -0
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISize.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +12 -0
- package/umd/Options/Interfaces/Theme/ITheme.js +12 -0
- package/umd/Options/Interfaces/Theme/IThemeDefault.js +12 -0
- package/umd/Types/CustomEventArgs.js +12 -0
- package/umd/Types/CustomEventListener.js +12 -0
- package/umd/Types/ISourceOptions.js +12 -0
- package/umd/Types/ParticlesGroups.js +12 -0
- package/umd/Types/PathOptions.js +12 -0
- package/umd/Types/RangeValue.js +12 -0
- package/umd/Types/RecursivePartial.js +12 -0
- package/umd/Types/ShapeData.js +12 -0
- package/umd/Types/ShapeDrawerFunctions.js +12 -0
- package/umd/Types/SingleOrMultiple.js +12 -0
- package/umd/Utils/CanvasUtils.js +174 -0
- package/umd/Utils/ColorUtils.js +305 -0
- package/umd/Utils/EventDispatcher.js +58 -0
- package/umd/Utils/HslColorManager.js +54 -0
- package/umd/Utils/NumberUtils.js +185 -0
- package/umd/Utils/OptionsUtils.js +26 -0
- package/umd/Utils/RgbColorManager.js +53 -0
- package/umd/Utils/Utils.js +284 -0
- package/umd/bundle.js +124 -0
- package/umd/engine.js +189 -0
- package/umd/index.js +226 -0
package/README.md
ADDED
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
[](https://particles.js.org)
|
|
2
|
+
|
|
3
|
+
# tsParticles - TypeScript Particles
|
|
4
|
+
|
|
5
|
+
**A lightweight TypeScript library for creating particles. Dependency free (\*), browser ready and compatible with
|
|
6
|
+
React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.js, Solid.js, and Web Components**
|
|
7
|
+
|
|
8
|
+
[](https://github.com/sponsors/matteobruni)
|
|
9
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles)
|
|
10
|
+
[](https://cdnjs.com/libraries/tsparticles)
|
|
11
|
+
[](https://www.npmjs.com/package/tsparticles)
|
|
12
|
+
[](https://www.npmjs.com/package/tsparticles)
|
|
13
|
+
[](https://lerna.js.org/)
|
|
14
|
+
[](https://www.codefactor.io/repository/github/matteobruni/tsparticles)
|
|
15
|
+
[](https://www.codacy.com/manual/ar3s/tsparticles?utm_source=github.com&utm_medium=referral&utm_content=matteobruni/tsparticles&utm_campaign=Badge_Grade)
|
|
16
|
+
[](https://openbase.com/js/tsparticles?utm_source=embedded&utm_medium=badge&utm_campaign=rating-badge&utm_term=js/tsparticles)
|
|
17
|
+
[](https://gitpod.io/#https://github.com/matteobruni/tsparticles)
|
|
18
|
+
[](https://repl.it/github/matteobruni/tsparticles)
|
|
19
|
+
|
|
20
|
+
[](https://discord.gg/hACwv45Hme)
|
|
21
|
+
[](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI)
|
|
22
|
+
[](https://chat.whatsapp.com/KQyHc9UEbRc2qlqNQR2J5c)
|
|
23
|
+
[](https://t.me/tsparticles)
|
|
24
|
+
[](https://www.reddit.com/r/tsParticles/)
|
|
25
|
+
|
|
26
|
+
[](https://www.producthunt.com/posts/tsparticles?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-tsparticles")
|
|
27
|
+
[](https://www.buymeacoffee.com/matteobruni) <a href="https://linktr.ee/tsparticles"><img alt="Linktree" height="30" src="https://particles.js.org/images/linktree.svg" /></a>
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Table of Contents
|
|
32
|
+
|
|
33
|
+
- [Use for your website](#Do-you-want-to-use-it-on-your-website)
|
|
34
|
+
- [Library installation](#Library-installation)
|
|
35
|
+
- [Official components for some of the most used frameworks](#Official-components-for-some-of-the-most-used-frameworks)
|
|
36
|
+
- [Angular](#Angular)
|
|
37
|
+
- [Inferno](#Inferno)
|
|
38
|
+
- [jQuery](#jQuery)
|
|
39
|
+
- [Preact](#Preact)
|
|
40
|
+
- [ReactJS](#ReactJS)
|
|
41
|
+
- [RiotJS](#RiotJS)
|
|
42
|
+
- [SolidJS](#SolidJS)
|
|
43
|
+
- [Svelte](#Svelte)
|
|
44
|
+
- [VueJS 2.x](#VueJS-2x)
|
|
45
|
+
- [VueJS 3.x](#VueJS-3x)
|
|
46
|
+
- [Web Components](#Web-Components)
|
|
47
|
+
- [WordPress](#WordPress)
|
|
48
|
+
- [Elementor](#Elementor)
|
|
49
|
+
- [Presets](#Presets)
|
|
50
|
+
- [Big Circles](#Big-Circles)
|
|
51
|
+
- [Bubbles](#Bubbles)
|
|
52
|
+
- [Confetti](#Confetti)
|
|
53
|
+
- [Fire](#Fire)
|
|
54
|
+
- [Firefly](#Firefly)
|
|
55
|
+
- [Fireworks](#Fireworks)
|
|
56
|
+
- [Fountain](#fountain)
|
|
57
|
+
- [Links](#links)
|
|
58
|
+
- [Sea Anemone](#Sea-Anemone)
|
|
59
|
+
- [Snow](#Snow)
|
|
60
|
+
- [Stars](#Stars)
|
|
61
|
+
- [Triangles](#Triangles)
|
|
62
|
+
- [Templates and Resources](#Templates-and-Resources)
|
|
63
|
+
- [Demo / Generator](#Demo--Generator)
|
|
64
|
+
- [Characters as particles](#Characters-as-particles)
|
|
65
|
+
- [Mouse hover connections](#Mouse-hover-connections)
|
|
66
|
+
- [Polygon mask](#Polygon-mask)
|
|
67
|
+
- [Animated stars](#Animated-stars)
|
|
68
|
+
- [Nyan cat flying on scrolling stars](#Nyan-cat-flying-on-scrolling-stars)
|
|
69
|
+
- [Background Mask particles](#Background-Mask-particles)
|
|
70
|
+
- [Video Tutorials](#Video-Tutorials)
|
|
71
|
+
- [Migrating from Particles.js](#Migrating-from-Particlesjs)
|
|
72
|
+
- [Plugins/Customizations](#PluginsCustomizations)
|
|
73
|
+
- [Dependency Graphs](#Dependency-Graphs)
|
|
74
|
+
- [Sponsors](#Sponsors)
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Do you want to use it on your website?
|
|
79
|
+
|
|
80
|
+
_Documentation and Development references [here](https://particles.js.org/docs/) 📖_
|
|
81
|
+
|
|
82
|
+
**This library is available on two of the most popular CDNs and it's easy and ready to use, if you were using
|
|
83
|
+
particles.js
|
|
84
|
+
it's even easier**.
|
|
85
|
+
|
|
86
|
+
You'll find the
|
|
87
|
+
instructions [below](https://github.com/matteobruni/tsparticles/blob/main/README.md#library-installation), with all the
|
|
88
|
+
links you need, and _don't be scared by **TypeScript**, it's just the source language_.
|
|
89
|
+
|
|
90
|
+
**The output files are just JavaScript**. 🤩
|
|
91
|
+
|
|
92
|
+
CDNs and `npm` have all the sources you need in **Javascript**, a bundle browser ready (tsparticles.engine.min.js), and
|
|
93
|
+
all
|
|
94
|
+
files splitted for `import` syntax.
|
|
95
|
+
|
|
96
|
+
**If you are interested** there are some _simple instructions_
|
|
97
|
+
just [below](https://github.com/matteobruni/tsparticles/blob/main/README.md#library-installation) to guide you to
|
|
98
|
+
migrate from the old particles.js library.
|
|
99
|
+
|
|
100
|
+
## **_Library installation_**
|
|
101
|
+
|
|
102
|
+
### **_Hosting / CDN_**
|
|
103
|
+
|
|
104
|
+
**_Please use these hosts or your own to load tsParticles on your projects_**
|
|
105
|
+
|
|
106
|
+
#### jsDelivr
|
|
107
|
+
|
|
108
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-engine)
|
|
109
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-slim)
|
|
110
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles)
|
|
111
|
+
|
|
112
|
+
#### cdnjs
|
|
113
|
+
|
|
114
|
+
[](https://cdnjs.com/libraries/tsparticles)
|
|
115
|
+
|
|
116
|
+
#### unpkg
|
|
117
|
+
|
|
118
|
+
<https://unpkg.com/tsparticles-engine/> <https://unpkg.com/tsparticles-slim/> <https://unpkg.com/tsparticles/>
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### **_npm_**
|
|
123
|
+
|
|
124
|
+
_tsParticles Engine_
|
|
125
|
+
|
|
126
|
+
[](https://www.npmjs.com/package/tsparticles-engine) [](https://www.npmjs.com/package/tsparticles-engine)
|
|
127
|
+
|
|
128
|
+
_tsParticles Slim_
|
|
129
|
+
|
|
130
|
+
[](https://www.npmjs.com/package/tsparticles-slim) [](https://www.npmjs.com/package/tsparticles-slim)
|
|
131
|
+
|
|
132
|
+
_tsParticles_
|
|
133
|
+
|
|
134
|
+
[](https://www.npmjs.com/package/tsparticles) [](https://www.npmjs.com/package/tsparticles)
|
|
135
|
+
|
|
136
|
+
```shell
|
|
137
|
+
npm install tsparticles-engine
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### **_yarn_**
|
|
141
|
+
|
|
142
|
+
```shell
|
|
143
|
+
yarn add tsparticles-engine
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### **_pnpm_**
|
|
147
|
+
|
|
148
|
+
```shell
|
|
149
|
+
pnpm install tsparticles-engine
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
#### Import and require
|
|
153
|
+
|
|
154
|
+
Starting from version 1.12.11 `import` and `require` can be used to import `tsParticles` .
|
|
155
|
+
|
|
156
|
+
Now you can write something like this
|
|
157
|
+
|
|
158
|
+
```javascript
|
|
159
|
+
const tsParticles = require("tsparticles-engine");
|
|
160
|
+
|
|
161
|
+
// or
|
|
162
|
+
|
|
163
|
+
import { tsParticles } from "tsparticles-engine";
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
The imported `tsParticles` is the same instance you have when including the script.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
### **_NuGet_**
|
|
171
|
+
|
|
172
|
+
[](https://www.nuget.org/packages/tsParticles/)
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
### **_Usage_**
|
|
177
|
+
|
|
178
|
+
Load tsParticles and configure the particles:
|
|
179
|
+
|
|
180
|
+
[](https://particles.js.org)
|
|
181
|
+
|
|
182
|
+
**index.html**
|
|
183
|
+
|
|
184
|
+
```html
|
|
185
|
+
<div id="tsparticles"></div>
|
|
186
|
+
|
|
187
|
+
<script src="tsparticles.engine.min.js"></script>
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**app.js**
|
|
191
|
+
|
|
192
|
+
```javascript
|
|
193
|
+
// @path-json can be an object or an array, the first will be loaded directly, and the object from the array will be randomly selected
|
|
194
|
+
/* tsParticles.load(@params); */
|
|
195
|
+
|
|
196
|
+
tsParticles
|
|
197
|
+
.load({
|
|
198
|
+
id: "tsparticles",
|
|
199
|
+
url: "presets/default.json",
|
|
200
|
+
})
|
|
201
|
+
.then((container) => {
|
|
202
|
+
console.log("callback - tsparticles config loaded");
|
|
203
|
+
})
|
|
204
|
+
.catch((error) => {
|
|
205
|
+
console.error(error);
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
//or
|
|
209
|
+
|
|
210
|
+
tsParticles.load({
|
|
211
|
+
id: "tsparticles",
|
|
212
|
+
options: {
|
|
213
|
+
/* options here */
|
|
214
|
+
},
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
//or
|
|
218
|
+
|
|
219
|
+
tsParticles.load({
|
|
220
|
+
id: "tsparticles",
|
|
221
|
+
options: [
|
|
222
|
+
{
|
|
223
|
+
/* options here */
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
/* other options here */
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
});
|
|
230
|
+
//random object
|
|
231
|
+
|
|
232
|
+
tsParticles.load({
|
|
233
|
+
id: "tsparticles",
|
|
234
|
+
options: [
|
|
235
|
+
{
|
|
236
|
+
/* options here */
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
/* other options here */
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
index: 1,
|
|
243
|
+
}); //the second one
|
|
244
|
+
// Important! If the index is not in range 0...<array.length, the index will be ignored.
|
|
245
|
+
|
|
246
|
+
// after initialization this can be used.
|
|
247
|
+
|
|
248
|
+
/* tsParticles.setOnClickHandler(@callback); */
|
|
249
|
+
|
|
250
|
+
/* this will be fired from all particles loaded */
|
|
251
|
+
|
|
252
|
+
tsParticles.setOnClickHandler((event, particles) => {
|
|
253
|
+
/* custom on click handler */
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
// now you can control the animations too, it's possible to pause and resume the animations
|
|
257
|
+
// these methods don't change the config so you're safe with all your configurations
|
|
258
|
+
// domItem(0) returns the first tsParticles instance loaded in the dom
|
|
259
|
+
const particles = tsParticles.domItem(0);
|
|
260
|
+
|
|
261
|
+
// play will start the animations, if the move is not enabled it won't enable it, it just updates the frame
|
|
262
|
+
particles.play();
|
|
263
|
+
|
|
264
|
+
// pause will stop the animations
|
|
265
|
+
particles.pause();
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Official components for some of the most used frameworks
|
|
271
|
+
|
|
272
|
+
### Angular
|
|
273
|
+
|
|
274
|
+
`@tsparticles/angular`
|
|
275
|
+
|
|
276
|
+
[](https://www.npmjs.com/package/@tsparticles/angular) [](https://www.npmjs.com/package/@tsparticles/angular)
|
|
277
|
+
|
|
278
|
+
Instructions available [here](https://github.com/tsparticles/angular#readme)
|
|
279
|
+
|
|
280
|
+
### Ember
|
|
281
|
+
|
|
282
|
+
`@tsparticles/ember`
|
|
283
|
+
|
|
284
|
+
[](https://www.npmjs.com/package/@tsparticles/ember) [](https://www.npmjs.com/package/@tsparticles/ember)
|
|
285
|
+
|
|
286
|
+
Instructions available [here](https://github.com/tsparticles/ember#readme)
|
|
287
|
+
|
|
288
|
+
### Inferno
|
|
289
|
+
|
|
290
|
+
`@tsparticles/inferno`
|
|
291
|
+
|
|
292
|
+
[](https://www.npmjs.com/package/@tsparticles/inferno) [](https://www.npmjs.com/package/@tsparticles/inferno)
|
|
293
|
+
|
|
294
|
+
Instructions available [here](https://github.com/tsparticles/inferno#readme)
|
|
295
|
+
|
|
296
|
+
### jQuery
|
|
297
|
+
|
|
298
|
+
`@tsparticles/jquery`
|
|
299
|
+
|
|
300
|
+
[](https://www.npmjs.com/package/@tsparticles/jquery) [](https://www.npmjs.com/package/@tsparticles/jquery)
|
|
301
|
+
|
|
302
|
+
Instructions available [here](https://github.com/tsparticles/jquery#readme)
|
|
303
|
+
|
|
304
|
+
### Preact
|
|
305
|
+
|
|
306
|
+
`@tsparticles/preact`
|
|
307
|
+
|
|
308
|
+
[](https://www.npmjs.com/package/@tsparticles/preact) [](https://www.npmjs.com/package/@tsparticles/preact)
|
|
309
|
+
|
|
310
|
+
Instructions available [here](https://github.com/tsparticles/preact#readme)
|
|
311
|
+
|
|
312
|
+
### ReactJS
|
|
313
|
+
|
|
314
|
+
`@tsparticles/react`
|
|
315
|
+
|
|
316
|
+
[](https://www.npmjs.com/package/@tsparticles/react) [](https://www.npmjs.com/package/@tsparticles/react)
|
|
317
|
+
|
|
318
|
+
Instructions available [here](https://github.com/tsparticles/react#readme)
|
|
319
|
+
|
|
320
|
+
### RiotJS
|
|
321
|
+
|
|
322
|
+
#### `@tsparticles/riot`
|
|
323
|
+
|
|
324
|
+
[](https://www.npmjs.com/package/@tsparticles/riot) [](https://www.npmjs.com/package/@tsparticles/riot)
|
|
325
|
+
|
|
326
|
+
You can find the instructions [here](https://github.com/tsparticles/riot#readme)
|
|
327
|
+
|
|
328
|
+
### SolidJS
|
|
329
|
+
|
|
330
|
+
#### `@tsparticles/solid`
|
|
331
|
+
|
|
332
|
+
[](https://www.npmjs.com/package/@tsparticles/solid) [](https://www.npmjs.com/package/@tsparticles/solid)
|
|
333
|
+
|
|
334
|
+
You can find the instructions [here](https://github.com/tsparticles/solid#readme)
|
|
335
|
+
|
|
336
|
+
### Svelte
|
|
337
|
+
|
|
338
|
+
`@tsparticles/svelte`
|
|
339
|
+
|
|
340
|
+
[](https://www.npmjs.com/package/@tsparticles/svelte) [](https://www.npmjs.com/package/@tsparticles/svelte)
|
|
341
|
+
|
|
342
|
+
Instructions available [here](https://github.com/tsparticles/svelte#readme)
|
|
343
|
+
|
|
344
|
+
### VueJS 2.x
|
|
345
|
+
|
|
346
|
+
`@tsparticles/vue2`
|
|
347
|
+
|
|
348
|
+
[](https://www.npmjs.com/package/@tsparticles/vue2) [](https://www.npmjs.com/package/@tsparticles/vue2)
|
|
349
|
+
|
|
350
|
+
Instructions available [here](https://github.com/tsparticles/vue2#readme)
|
|
351
|
+
|
|
352
|
+
### VueJS 3.x
|
|
353
|
+
|
|
354
|
+
`@tsparticles/vue3`
|
|
355
|
+
|
|
356
|
+
[](https://www.npmjs.com/package/@tsparticles/vue3) [](https://www.npmjs.com/package/@tsparticles/vue3)
|
|
357
|
+
|
|
358
|
+
Instruction available [here](https://github.com/tsparticles/vue3#readme)
|
|
359
|
+
|
|
360
|
+
### Web Components
|
|
361
|
+
|
|
362
|
+
#### `@tsparticles/webcomponents`
|
|
363
|
+
|
|
364
|
+
[](https://www.npmjs.com/package/@tsparticles/webcomponents) [](https://www.npmjs.com/package/@tsparticles/webcomponents)
|
|
365
|
+
|
|
366
|
+
You can find the instructions [here](https://github.com/tsparticles/webcomponents#readme)
|
|
367
|
+
|
|
368
|
+
### WordPress
|
|
369
|
+
|
|
370
|
+
#### `@tsparticles/wordpress`
|
|
371
|
+
|
|
372
|
+
[](https://www.npmjs.com/package/@tsparticles/wordpress) [](https://www.npmjs.com/package/@tsparticles/wordpress) [](https://wordpress.org/plugins/tsparticles-block/) [](https://wordpress.org/plugins/tsparticles-block/)
|
|
373
|
+
|
|
374
|
+
The plugin page hosted on WordPress.org can be
|
|
375
|
+
found [here](https://wordpress.org/plugins/tsparticles-block/#description)
|
|
376
|
+
|
|
377
|
+
### Elementor
|
|
378
|
+
|
|
379
|
+
Actually, an official tsParticles plugin isn't existing, but I have a collaboration with
|
|
380
|
+
the `Premium Addons for Elementor` plugin collection.
|
|
381
|
+
|
|
382
|
+
<div style="float: left; margin-right: 10px;">
|
|
383
|
+
<img width="64" alt="Premium Addons for Elementor" src="https://particles.js.org/images/premium-addons-wordpress-plugin.png" />
|
|
384
|
+
</div>
|
|
385
|
+
<div>
|
|
386
|
+
Premium Addons for Elementor is one of the most common plugins for Elementor that offers 55+ highly customizable Elementor Widgets and Section Add-ons. tsParticles is exclusively included in the Premium Particles Section Add-on for the Elementor Page Builder. <a href="https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/" target="_blank">Check It Now</a>.<br />
|
|
387
|
+
Use Premium Addons for Elementor Page Builder and get the chance to include tsParticles in your next WordPress website without writing a single line of code. <a href="https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/" target="_blank">See a Live Example</a>.
|
|
388
|
+
</div>
|
|
389
|
+
<div style="clear: both;"></div>
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## Presets
|
|
394
|
+
|
|
395
|
+
There are some presets ready to be used in [this repository](https://github.com/tsparticles/presets), and they also have
|
|
396
|
+
a bundle file that contains everything needed to run.
|
|
397
|
+
|
|
398
|
+
### Big Circles
|
|
399
|
+
|
|
400
|
+
[](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)
|
|
401
|
+
|
|
402
|
+
This preset loads big colored circles moving upwards on a white background.
|
|
403
|
+
|
|
404
|
+
[](https://particles.js.org/samples/presets/bigCircles)
|
|
405
|
+
|
|
406
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/bigCircles#readme)
|
|
407
|
+
|
|
408
|
+
### Bubbles
|
|
409
|
+
|
|
410
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles) [](https://www.npmjs.com/package/tsparticles-preset-bubbles) [](https://www.npmjs.com/package/tsparticles-preset-bubbles)
|
|
411
|
+
|
|
412
|
+
This preset loads colored bubbles coming from the bottom of the screen on a white background.
|
|
413
|
+
|
|
414
|
+
[](https://particles.js.org/samples/presets/bubbles)
|
|
415
|
+
|
|
416
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/bubbles/README.md)
|
|
417
|
+
|
|
418
|
+
### Confetti
|
|
419
|
+
|
|
420
|
+
[](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)
|
|
421
|
+
|
|
422
|
+
This preset loads white and red confetti launched from the screen center on a transparent background.
|
|
423
|
+
|
|
424
|
+
[](https://particles.js.org/samples/presets/confetti)
|
|
425
|
+
|
|
426
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/confetti/README.md)
|
|
427
|
+
|
|
428
|
+
### Fire
|
|
429
|
+
|
|
430
|
+
[](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)
|
|
431
|
+
|
|
432
|
+
This preset loads a faded red to a black background with particles colored like fire and ash sparks.
|
|
433
|
+
|
|
434
|
+
[](https://particles.js.org/samples/presets/fire)
|
|
435
|
+
|
|
436
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/fire/README.md)
|
|
437
|
+
|
|
438
|
+
### Firefly
|
|
439
|
+
|
|
440
|
+
[](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)
|
|
441
|
+
|
|
442
|
+
This preset loads a mouse trail made with small fading particles like little fireflies.
|
|
443
|
+
|
|
444
|
+
[](https://particles.js.org/samples/presets/firefly)
|
|
445
|
+
|
|
446
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/firefly/README.md)
|
|
447
|
+
|
|
448
|
+
### Fireworks
|
|
449
|
+
|
|
450
|
+
[](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)
|
|
451
|
+
|
|
452
|
+
This preset loads a beautiful fireworks effect.
|
|
453
|
+
|
|
454
|
+
[](https://particles.js.org/samples/presets/fireworks)
|
|
455
|
+
|
|
456
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/fireworks/README.md)
|
|
457
|
+
|
|
458
|
+
### Fountain
|
|
459
|
+
|
|
460
|
+
[](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)
|
|
461
|
+
|
|
462
|
+
[](https://particles.js.org/samples/presets/fountain)
|
|
463
|
+
|
|
464
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/fountain/README.md)
|
|
465
|
+
|
|
466
|
+
### Links
|
|
467
|
+
|
|
468
|
+
[](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)
|
|
469
|
+
|
|
470
|
+
[](https://particles.js.org/samples/presets/links)
|
|
471
|
+
|
|
472
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/links/README.md)
|
|
473
|
+
|
|
474
|
+
### Sea Anemone
|
|
475
|
+
|
|
476
|
+
[](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)
|
|
477
|
+
|
|
478
|
+
[](https://particles.js.org/samples/presets/seaAnemone)
|
|
479
|
+
|
|
480
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/seaAnemone/README.md)
|
|
481
|
+
|
|
482
|
+
### Snow
|
|
483
|
+
|
|
484
|
+
[](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)
|
|
485
|
+
|
|
486
|
+
[](https://particles.js.org/samples/presets/snow)
|
|
487
|
+
|
|
488
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/snow/README.md)
|
|
489
|
+
|
|
490
|
+
### Stars
|
|
491
|
+
|
|
492
|
+
[](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)
|
|
493
|
+
|
|
494
|
+
[](https://particles.js.org/samples/presets/stars)
|
|
495
|
+
|
|
496
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/stars/README.md)
|
|
497
|
+
|
|
498
|
+
### Triangles
|
|
499
|
+
|
|
500
|
+
[](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)
|
|
501
|
+
|
|
502
|
+
[](https://particles.js.org/samples/presets/triangles)
|
|
503
|
+
|
|
504
|
+
You can find the instructions [here](https://github.com/tsparticles/presets/blob/main/presets/triangles/README.md)
|
|
505
|
+
|
|
506
|
+
---
|
|
507
|
+
|
|
508
|
+
## Templates and Resources
|
|
509
|
+
|
|
510
|
+
You can find some tsParticles related templates [here](https://github.com/tsparticles/templates). The templates are
|
|
511
|
+
created for _Vanilla Javascript_, _ReactJS_, _VueJS_, _Angular_, _SvelteJS_, and other frameworks.
|
|
512
|
+
|
|
513
|
+
The templates will vary, new ones can be created or older ones updated with the latest features or changed to a better
|
|
514
|
+
style. Check them out once in a while.
|
|
515
|
+
|
|
516
|
+
If you created some good design with _tsParticles_ feel free to submit a pull request with your cool template, you'll be
|
|
517
|
+
credited as the template author!
|
|
518
|
+
|
|
519
|
+
<https://github.com/tsparticles/templates>
|
|
520
|
+
|
|
521
|
+
---
|
|
522
|
+
|
|
523
|
+
## **_Demo / Generator_**
|
|
524
|
+
|
|
525
|
+
<https://particles.js.org/samples>
|
|
526
|
+
|
|
527
|
+
[](https://particles.js.org/samples)
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
## **_Video Tutorials_**
|
|
532
|
+
|
|
533
|
+
You can find all video tutorials on the website here: <https://particles.js.org/video.html>
|
|
534
|
+
|
|
535
|
+
_More videos are coming soon! Check every day if there are some new contents._
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
### Characters as particles
|
|
540
|
+
|
|
541
|
+
[](https://particles.js.org/samples/#chars)
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
|
|
545
|
+
### Polygon mask
|
|
546
|
+
|
|
547
|
+
[](https://particles.js.org/samples/#polygonMask)
|
|
548
|
+
|
|
549
|
+
---
|
|
550
|
+
|
|
551
|
+
### Animated stars
|
|
552
|
+
|
|
553
|
+
[](https://particles.js.org/samples/#nasa)
|
|
554
|
+
|
|
555
|
+
---
|
|
556
|
+
|
|
557
|
+
### Nyan cat flying on scrolling stars
|
|
558
|
+
|
|
559
|
+
[](https://particles.js.org/samples/#nyancat2)
|
|
560
|
+
|
|
561
|
+
---
|
|
562
|
+
|
|
563
|
+
### Snow particles
|
|
564
|
+
|
|
565
|
+
[](https://particles.js.org/samples/#snow)
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
569
|
+
### Background Mask particles
|
|
570
|
+
|
|
571
|
+
[](https://particles.js.org/samples/#background)
|
|
572
|
+
|
|
573
|
+
---
|
|
574
|
+
|
|
575
|
+
**particles.json**
|
|
576
|
+
|
|
577
|
+
You can find some config
|
|
578
|
+
samples [here](https://github.com/matteobruni/tsparticles/tree/main/websites/particles.js.org/presets) 📖
|
|
579
|
+
|
|
580
|
+
---
|
|
581
|
+
|
|
582
|
+
## **_Options_**
|
|
583
|
+
|
|
584
|
+
You can find all options
|
|
585
|
+
available [here](https://particles.js.org/docs/interfaces/Options_Interfaces_IOptions.IOptions.html) 📖
|
|
586
|
+
|
|
587
|
+
## Want to see it in action and try it?
|
|
588
|
+
|
|
589
|
+
I've created a tsParticles collection on [CodePen](https://codepen.io/collection/DPOage) 😮 or you can check out
|
|
590
|
+
my [profile](https://codepen.io/matteobruni)
|
|
591
|
+
|
|
592
|
+
Otherwise, there's the demo page link below. Just click/tap the Coronavirus below, don't be scared. **It's safe** 😷.
|
|
593
|
+
|
|
594
|
+
[](https://particles.js.org/samples/#virus)
|
|
595
|
+
|
|
596
|
+
Want to see even more demos? Clone the repository on your computer and follow these instructions
|
|
597
|
+
|
|
598
|
+
```shell
|
|
599
|
+
$ pnpm i
|
|
600
|
+
$ npx lerna run build
|
|
601
|
+
$ cd demo/vanilla
|
|
602
|
+
$ pnpm run start
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
**Boom! 💥** <http://localhost:3000> and you can check out other demos.
|
|
606
|
+
|
|
607
|
+
_If you are brave enough_ you can switch to the `dev` branch for trying the features under development.
|
|
608
|
+
|
|
609
|
+
---
|
|
610
|
+
|
|
611
|
+
## Migrating from Particles.js
|
|
612
|
+
|
|
613
|
+
**tsParticles** has a package that makes this library 100% compatible with the _particles.js_ configuration.
|
|
614
|
+
|
|
615
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-particles.js) [](https://www.npmjs.com/package/tsparticles-particles.js) [](https://www.npmjs.com/package/tsparticles-particles.js)
|
|
616
|
+
|
|
617
|
+
Seriously, you just need to change the script from particles.js to the bundled compatibility package, et-voilà, **you're
|
|
618
|
+
ready** 🧙!
|
|
619
|
+
|
|
620
|
+
You can read more **[here](https://dev.to/matteobruni/migrating-from-particles-js-to-tsparticles-2a6m)**
|
|
621
|
+
|
|
622
|
+
Want to know 5 reasons to do the
|
|
623
|
+
switch? [Read here](https://dev.to/matteobruni/5-reasons-to-use-tsparticles-and-not-particles-js-1gbe)
|
|
624
|
+
|
|
625
|
+
_Below you can find all the information you need to install tsParticles and its new syntax._
|
|
626
|
+
|
|
627
|
+
---
|
|
628
|
+
|
|
629
|
+
## Plugins/Customizations
|
|
630
|
+
|
|
631
|
+
tsParticles now supports some customizations 🥳.
|
|
632
|
+
|
|
633
|
+
**You can create your own plugins**
|
|
634
|
+
|
|
635
|
+
_Read more [here](https://particles.js.org/docs/modules/Core_Interfaces_IPlugin.html)..._
|
|
636
|
+
|
|
637
|
+
---
|
|
638
|
+
|
|
639
|
+
## Dependency Graphs
|
|
640
|
+
|
|
641
|
+
```mermaid
|
|
642
|
+
flowchart TD
|
|
643
|
+
|
|
644
|
+
subgraph c [Components]
|
|
645
|
+
ca[Angular]
|
|
646
|
+
ci[Inferno.js]
|
|
647
|
+
cj[JQuery]
|
|
648
|
+
cp[Preact]
|
|
649
|
+
cre[React.js]
|
|
650
|
+
cri[Riot.js]
|
|
651
|
+
cso[Solid.js]
|
|
652
|
+
csv[Svelte]
|
|
653
|
+
cv2[Vue.js 2.x]
|
|
654
|
+
cv3[Vue.js 3.x]
|
|
655
|
+
cwc[Web Components]
|
|
656
|
+
cwp[WordPress]
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
e[tsParticles Engine] --> c
|
|
660
|
+
```
|
|
661
|
+
|
|
662
|
+
```mermaid
|
|
663
|
+
flowchart LR
|
|
664
|
+
|
|
665
|
+
subgraph b [Bundles]
|
|
666
|
+
bp[Particles.js compatibility bundle] --> bs[tsParticles Slim]
|
|
667
|
+
bs --> bf[tsParticles]
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
e[tsParticles Engine] --> b
|
|
671
|
+
|
|
672
|
+
iea & iebo & iebu & iec & ieg & iepa & iepu & ierem & ierep & ies --> bs
|
|
673
|
+
ipa & ipc & ipl --> bs
|
|
674
|
+
mb & mp --> bs
|
|
675
|
+
ple4 --> bs
|
|
676
|
+
sc & si & sl & sp & ssq & sst & st --> bs
|
|
677
|
+
ua & uc & ul & uop & uou & usi & ust --> bs
|
|
678
|
+
|
|
679
|
+
iet --> bf
|
|
680
|
+
pla & plem --> bf
|
|
681
|
+
ur & uti & utw & uw --> bf
|
|
682
|
+
|
|
683
|
+
subgraph i [Interactions]
|
|
684
|
+
|
|
685
|
+
subgraph ie [Externals]
|
|
686
|
+
iea[Attract]
|
|
687
|
+
iebo[Bounce]
|
|
688
|
+
iebu[Bubble]
|
|
689
|
+
iec[Connect]
|
|
690
|
+
ieg[Grab]
|
|
691
|
+
iepa[Pause]
|
|
692
|
+
iepu[Push]
|
|
693
|
+
ierem[Remove]
|
|
694
|
+
ierep[Repulse]
|
|
695
|
+
ies[Slow]
|
|
696
|
+
iet[Trail]
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
il[Light]
|
|
700
|
+
|
|
701
|
+
subgraph ip [Particles]
|
|
702
|
+
ipa[Attract]
|
|
703
|
+
ipc[Collisions]
|
|
704
|
+
ipl[Links]
|
|
705
|
+
ipr[Repulse]
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
i --> ie
|
|
711
|
+
i --> ip
|
|
712
|
+
|
|
713
|
+
e --> i
|
|
714
|
+
|
|
715
|
+
subgraph m [Movers]
|
|
716
|
+
mb[Base]
|
|
717
|
+
mp[Parallax]
|
|
718
|
+
end
|
|
719
|
+
|
|
720
|
+
e --> m
|
|
721
|
+
|
|
722
|
+
subgraph pa [Paths]
|
|
723
|
+
pac[Curves]
|
|
724
|
+
pape[Perlin Noise]
|
|
725
|
+
papo[Polygon]
|
|
726
|
+
pas[Simplex Noise]
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
e --> pa
|
|
730
|
+
|
|
731
|
+
subgraph pl [Plugins]
|
|
732
|
+
pla[Absorbers]
|
|
733
|
+
plem[Emitters]
|
|
734
|
+
plh[HSV Color]
|
|
735
|
+
pli[Infection]
|
|
736
|
+
plm[Motion]
|
|
737
|
+
plp[Polygon Mask]
|
|
738
|
+
|
|
739
|
+
subgraph plea [Easings]
|
|
740
|
+
pleb[Back]
|
|
741
|
+
pleci[Circ]
|
|
742
|
+
plecu[Cubic]
|
|
743
|
+
plee[Expo]
|
|
744
|
+
ple4[Quad]
|
|
745
|
+
ple5[Quint]
|
|
746
|
+
ples[Sine]
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
pl --> plea
|
|
752
|
+
|
|
753
|
+
e --> pl
|
|
754
|
+
|
|
755
|
+
subgraph s [Shapes]
|
|
756
|
+
sb[Bubble]
|
|
757
|
+
sc[Circle]
|
|
758
|
+
sh[Heart]
|
|
759
|
+
si[Image]
|
|
760
|
+
sl[Line]
|
|
761
|
+
sm[Multiline Text]
|
|
762
|
+
sp[Polygon]
|
|
763
|
+
sr[Rounded Rectangle]
|
|
764
|
+
ssp[Spiral]
|
|
765
|
+
ssq[Square]
|
|
766
|
+
sst[Star]
|
|
767
|
+
st[Text]
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
e --> s
|
|
771
|
+
|
|
772
|
+
subgraph u [Updaters]
|
|
773
|
+
ua[Angle]
|
|
774
|
+
uc[Color]
|
|
775
|
+
ud[Destroy]
|
|
776
|
+
ug[Gradient]
|
|
777
|
+
ul[Life]
|
|
778
|
+
uop[Opacity]
|
|
779
|
+
uor[Orbit]
|
|
780
|
+
uou[Out Modes]
|
|
781
|
+
ur[Roll]
|
|
782
|
+
usi[Size]
|
|
783
|
+
ust[Stroke Color]
|
|
784
|
+
uti[Tilt]
|
|
785
|
+
utw[Twinkle]
|
|
786
|
+
uw[Wobble]
|
|
787
|
+
end
|
|
788
|
+
|
|
789
|
+
e --> u
|
|
790
|
+
|
|
791
|
+
subgraph pr [Presets]
|
|
792
|
+
prbi[Big Circles]
|
|
793
|
+
prbu[Bubbles]
|
|
794
|
+
prc[Confetti]
|
|
795
|
+
prf[Fire]
|
|
796
|
+
prff[Firefly]
|
|
797
|
+
prfw[Fireworks]
|
|
798
|
+
prfo[Fountain]
|
|
799
|
+
prl[Links]
|
|
800
|
+
prsa[Sea Anemone]
|
|
801
|
+
prsn[Snow]
|
|
802
|
+
prst[Stars]
|
|
803
|
+
prt[Triangles]
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
e --> pr
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
---
|
|
810
|
+
|
|
811
|
+
<p>
|
|
812
|
+
<a href="https://www.jetbrains.com/?from=tsParticles">
|
|
813
|
+
<img src="https://raw.githubusercontent.com/matteobruni/tsparticles/gh-pages/images/jetbrains-logos/jetbrains-variant-4.png" height="150" alt="JetBrains" />
|
|
814
|
+
</a>
|
|
815
|
+
<a href="https://www.jetbrains.com/webstorm/?from=tsParticles">
|
|
816
|
+
<img src="https://raw.githubusercontent.com/matteobruni/tsparticles/gh-pages/images/jetbrains-logos/logo.png" height="150" alt="JetBrains" />
|
|
817
|
+
</a>
|
|
818
|
+
</p>
|
|
819
|
+
|
|
820
|
+
### Huge thanks to [JetBrains](https://www.jetbrains.com/?from=tsParticles) for the 2020-2022 Open Source Licenses!
|
|
821
|
+
|
|
822
|
+
[JetBrains WebStorm](https://www.jetbrains.com/webstorm/?from=tsParticles) is used to maintain this project.
|
|
823
|
+
|
|
824
|
+
---
|