@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/esm/engine.js
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { Container } from "./Core/Container";
|
|
2
|
+
import { EventDispatcher } from "./Utils/EventDispatcher";
|
|
3
|
+
import { Plugins } from "./Core/Utils/Plugins";
|
|
4
|
+
import { generatedAttribute } from "./Core/Utils/Constants";
|
|
5
|
+
import { getRandom } from "./Utils/NumberUtils";
|
|
6
|
+
import { itemFromSingleOrMultiple } from "./Utils/Utils";
|
|
7
|
+
async function getDataFromUrl(data) {
|
|
8
|
+
const url = itemFromSingleOrMultiple(data.url, data.index);
|
|
9
|
+
if (!url) {
|
|
10
|
+
return data.fallback;
|
|
11
|
+
}
|
|
12
|
+
const response = await fetch(url);
|
|
13
|
+
if (response.ok) {
|
|
14
|
+
return response.json();
|
|
15
|
+
}
|
|
16
|
+
console.error(`tsParticles - Error ${response.status} while retrieving config file`);
|
|
17
|
+
return data.fallback;
|
|
18
|
+
}
|
|
19
|
+
export class Engine {
|
|
20
|
+
constructor() {
|
|
21
|
+
this._configs = new Map();
|
|
22
|
+
this._domArray = [];
|
|
23
|
+
this._eventDispatcher = new EventDispatcher();
|
|
24
|
+
this.plugins = new Plugins(this);
|
|
25
|
+
}
|
|
26
|
+
get configs() {
|
|
27
|
+
const res = {};
|
|
28
|
+
for (const [name, config] of this._configs) {
|
|
29
|
+
res[name] = config;
|
|
30
|
+
}
|
|
31
|
+
return res;
|
|
32
|
+
}
|
|
33
|
+
addConfig(nameOrConfig, config) {
|
|
34
|
+
var _a;
|
|
35
|
+
if (typeof nameOrConfig === "string") {
|
|
36
|
+
if (config) {
|
|
37
|
+
config.name = nameOrConfig;
|
|
38
|
+
this._configs.set(nameOrConfig, config);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this._configs.set((_a = nameOrConfig.name) !== null && _a !== void 0 ? _a : "default", nameOrConfig);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
addEventListener(type, listener) {
|
|
46
|
+
this._eventDispatcher.addEventListener(type, listener);
|
|
47
|
+
}
|
|
48
|
+
async addInteractor(name, interactorInitializer) {
|
|
49
|
+
this.plugins.addInteractor(name, interactorInitializer);
|
|
50
|
+
await this.refresh();
|
|
51
|
+
}
|
|
52
|
+
async addMover(name, moverInitializer) {
|
|
53
|
+
this.plugins.addParticleMover(name, moverInitializer);
|
|
54
|
+
await this.refresh();
|
|
55
|
+
}
|
|
56
|
+
async addParticleUpdater(name, updaterInitializer) {
|
|
57
|
+
this.plugins.addParticleUpdater(name, updaterInitializer);
|
|
58
|
+
await this.refresh();
|
|
59
|
+
}
|
|
60
|
+
async addPathGenerator(name, generator) {
|
|
61
|
+
this.plugins.addPathGenerator(name, generator);
|
|
62
|
+
await this.refresh();
|
|
63
|
+
}
|
|
64
|
+
async addPlugin(plugin) {
|
|
65
|
+
this.plugins.addPlugin(plugin);
|
|
66
|
+
await this.refresh();
|
|
67
|
+
}
|
|
68
|
+
async addPreset(preset, options, override = false) {
|
|
69
|
+
this.plugins.addPreset(preset, options, override);
|
|
70
|
+
await this.refresh();
|
|
71
|
+
}
|
|
72
|
+
async addShape(shape, drawer, init, afterEffect, destroy) {
|
|
73
|
+
let customDrawer;
|
|
74
|
+
if (typeof drawer === "function") {
|
|
75
|
+
customDrawer = {
|
|
76
|
+
afterEffect: afterEffect,
|
|
77
|
+
destroy: destroy,
|
|
78
|
+
draw: drawer,
|
|
79
|
+
init: init,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
customDrawer = drawer;
|
|
84
|
+
}
|
|
85
|
+
this.plugins.addShapeDrawer(shape, customDrawer);
|
|
86
|
+
await this.refresh();
|
|
87
|
+
}
|
|
88
|
+
dispatchEvent(type, args) {
|
|
89
|
+
this._eventDispatcher.dispatchEvent(type, args);
|
|
90
|
+
}
|
|
91
|
+
dom() {
|
|
92
|
+
return this._domArray;
|
|
93
|
+
}
|
|
94
|
+
domItem(index) {
|
|
95
|
+
const dom = this.dom(), item = dom[index];
|
|
96
|
+
if (item && !item.destroyed) {
|
|
97
|
+
return item;
|
|
98
|
+
}
|
|
99
|
+
dom.splice(index, 1);
|
|
100
|
+
}
|
|
101
|
+
async load(params) {
|
|
102
|
+
var _a, _b, _c;
|
|
103
|
+
const id = (_a = params.id) !== null && _a !== void 0 ? _a : `tsparticles${Math.floor(getRandom() * 10000)}`, { index, url } = params, options = url
|
|
104
|
+
? await getDataFromUrl({
|
|
105
|
+
fallback: params.options,
|
|
106
|
+
index,
|
|
107
|
+
url: url,
|
|
108
|
+
})
|
|
109
|
+
: params.options;
|
|
110
|
+
let domContainer = (_b = params.element) !== null && _b !== void 0 ? _b : document.getElementById(id);
|
|
111
|
+
if (!domContainer) {
|
|
112
|
+
domContainer = document.createElement("div");
|
|
113
|
+
domContainer.id = id;
|
|
114
|
+
(_c = document.querySelector("body")) === null || _c === void 0 ? void 0 : _c.append(domContainer);
|
|
115
|
+
}
|
|
116
|
+
const currentOptions = itemFromSingleOrMultiple(options, index), dom = this.dom(), oldIndex = dom.findIndex((v) => v.id === id);
|
|
117
|
+
if (oldIndex >= 0) {
|
|
118
|
+
const old = this.domItem(oldIndex);
|
|
119
|
+
if (old && !old.destroyed) {
|
|
120
|
+
old.destroy();
|
|
121
|
+
dom.splice(oldIndex, 1);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
let canvasEl;
|
|
125
|
+
if (domContainer.tagName.toLowerCase() === "canvas") {
|
|
126
|
+
canvasEl = domContainer;
|
|
127
|
+
canvasEl.dataset[generatedAttribute] = "false";
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
const existingCanvases = domContainer.getElementsByTagName("canvas");
|
|
131
|
+
if (existingCanvases.length) {
|
|
132
|
+
canvasEl = existingCanvases[0];
|
|
133
|
+
canvasEl.dataset[generatedAttribute] = "false";
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
canvasEl = document.createElement("canvas");
|
|
137
|
+
canvasEl.dataset[generatedAttribute] = "true";
|
|
138
|
+
domContainer.appendChild(canvasEl);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (!canvasEl.style.width) {
|
|
142
|
+
canvasEl.style.width = "100%";
|
|
143
|
+
}
|
|
144
|
+
if (!canvasEl.style.height) {
|
|
145
|
+
canvasEl.style.height = "100%";
|
|
146
|
+
}
|
|
147
|
+
const newItem = new Container(this, id, currentOptions);
|
|
148
|
+
if (oldIndex >= 0) {
|
|
149
|
+
dom.splice(oldIndex, 0, newItem);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
dom.push(newItem);
|
|
153
|
+
}
|
|
154
|
+
newItem.canvas.loadCanvas(canvasEl);
|
|
155
|
+
await newItem.start();
|
|
156
|
+
return newItem;
|
|
157
|
+
}
|
|
158
|
+
async refresh() {
|
|
159
|
+
for (const instance of this.dom()) {
|
|
160
|
+
await instance.refresh();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
removeEventListener(type, listener) {
|
|
164
|
+
this._eventDispatcher.removeEventListener(type, listener);
|
|
165
|
+
}
|
|
166
|
+
setOnClickHandler(callback) {
|
|
167
|
+
const dom = this.dom();
|
|
168
|
+
if (!dom.length) {
|
|
169
|
+
throw new Error("Can only set click handlers after calling tsParticles.load()");
|
|
170
|
+
}
|
|
171
|
+
for (const domItem of dom) {
|
|
172
|
+
domItem.addClickHandler(callback);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Engine } from "./engine";
|
|
2
|
+
import { HslColorManager } from "./Utils/HslColorManager";
|
|
3
|
+
import { RgbColorManager } from "./Utils/RgbColorManager";
|
|
4
|
+
import { addColorManager } from "./Utils/ColorUtils";
|
|
5
|
+
const rgbColorManager = new RgbColorManager(), hslColorManager = new HslColorManager();
|
|
6
|
+
addColorManager(rgbColorManager);
|
|
7
|
+
addColorManager(hslColorManager);
|
|
8
|
+
const tsParticles = new Engine();
|
|
9
|
+
export * from "./Core/Interfaces/Colors";
|
|
10
|
+
export * from "./Core/Interfaces/IBounds";
|
|
11
|
+
export * from "./Core/Interfaces/IBubbleParticleData";
|
|
12
|
+
export * from "./Core/Interfaces/ICircleBouncer";
|
|
13
|
+
export * from "./Core/Interfaces/IColorManager";
|
|
14
|
+
export * from "./Core/Interfaces/IContainerInteractivity";
|
|
15
|
+
export * from "./Core/Interfaces/IContainerPlugin";
|
|
16
|
+
export * from "./Core/Interfaces/ICoordinates";
|
|
17
|
+
export * from "./Core/Interfaces/IDelta";
|
|
18
|
+
export * from "./Core/Interfaces/IDimension";
|
|
19
|
+
export * from "./Core/Interfaces/IDistance";
|
|
20
|
+
export * from "./Core/Interfaces/IDrawParticleParams";
|
|
21
|
+
export * from "./Core/Interfaces/IExternalInteractor";
|
|
22
|
+
export * from "./Core/Interfaces/IInteractor";
|
|
23
|
+
export * from "./Core/Interfaces/IMouseData";
|
|
24
|
+
export * from "./Core/Interfaces/IMovePathGenerator";
|
|
25
|
+
export * from "./Core/Interfaces/IParticle";
|
|
26
|
+
export * from "./Core/Interfaces/IParticleColorStyle";
|
|
27
|
+
export * from "./Core/Interfaces/IParticleHslAnimation";
|
|
28
|
+
export * from "./Core/Interfaces/IParticlesInteractor";
|
|
29
|
+
export * from "./Core/Interfaces/IParticleLife";
|
|
30
|
+
export * from "./Core/Interfaces/IParticleOverride";
|
|
31
|
+
export * from "./Core/Interfaces/IParticleRetinaProps";
|
|
32
|
+
export * from "./Core/Interfaces/IParticleRoll";
|
|
33
|
+
export * from "./Core/Interfaces/IParticleTransformValues";
|
|
34
|
+
export * from "./Core/Interfaces/IParticleUpdater";
|
|
35
|
+
export * from "./Core/Interfaces/IParticleValueAnimation";
|
|
36
|
+
export * from "./Core/Interfaces/IParticlesMover";
|
|
37
|
+
export * from "./Core/Interfaces/IPlugin";
|
|
38
|
+
export * from "./Core/Interfaces/IRangeValue";
|
|
39
|
+
export * from "./Core/Interfaces/IRectSideResult";
|
|
40
|
+
export * from "./Core/Interfaces/IShapeDrawer";
|
|
41
|
+
export * from "./Core/Interfaces/IShapeValues";
|
|
42
|
+
export * from "./Core/Interfaces/ISlowParticleData";
|
|
43
|
+
export * from "./Core/Interfaces/ITrailFillData";
|
|
44
|
+
export * from "./Core/Utils/Circle";
|
|
45
|
+
export * from "./Core/Utils/Constants";
|
|
46
|
+
export * from "./Core/Utils/ExternalInteractorBase";
|
|
47
|
+
export * from "./Core/Utils/ParticlesInteractorBase";
|
|
48
|
+
export * from "./Core/Utils/Point";
|
|
49
|
+
export * from "./Core/Utils/Range";
|
|
50
|
+
export * from "./Core/Utils/Rectangle";
|
|
51
|
+
export * from "./Core/Utils/Vector";
|
|
52
|
+
export * from "./Core/Utils/Vector3d";
|
|
53
|
+
export * from "./Enums/Directions/MoveDirection";
|
|
54
|
+
export * from "./Enums/Directions/RotateDirection";
|
|
55
|
+
export * from "./Enums/Directions/OutModeDirection";
|
|
56
|
+
export * from "./Enums/Modes/ClickMode";
|
|
57
|
+
export * from "./Enums/Modes/DivMode";
|
|
58
|
+
export * from "./Enums/Modes/HoverMode";
|
|
59
|
+
export * from "./Enums/Modes/CollisionMode";
|
|
60
|
+
export * from "./Enums/Modes/OutMode";
|
|
61
|
+
export * from "./Enums/Modes/SizeMode";
|
|
62
|
+
export * from "./Enums/Modes/ThemeMode";
|
|
63
|
+
export * from "./Enums/Modes/ResponsiveMode";
|
|
64
|
+
export * from "./Enums/Types/AlterType";
|
|
65
|
+
export * from "./Enums/Types/DestroyType";
|
|
66
|
+
export * from "./Enums/Types/GradientType";
|
|
67
|
+
export * from "./Enums/Types/InteractorType";
|
|
68
|
+
export * from "./Enums/Types/ParticleOutType";
|
|
69
|
+
export * from "./Enums/Types/StartValueType";
|
|
70
|
+
export * from "./Enums/Types/DivType";
|
|
71
|
+
export * from "./Enums/Types/EasingType";
|
|
72
|
+
export * from "./Enums/Types/EventType";
|
|
73
|
+
export * from "./Enums/AnimationStatus";
|
|
74
|
+
export * from "./Enums/InteractivityDetect";
|
|
75
|
+
export * from "./Options/Classes/AnimatableColor";
|
|
76
|
+
export * from "./Options/Classes/AnimationOptions";
|
|
77
|
+
export * from "./Options/Classes/Background/Background";
|
|
78
|
+
export * from "./Options/Classes/BackgroundMask/BackgroundMask";
|
|
79
|
+
export * from "./Options/Classes/BackgroundMask/BackgroundMaskCover";
|
|
80
|
+
export * from "./Options/Classes/ColorAnimation";
|
|
81
|
+
export * from "./Options/Classes/FullScreen/FullScreen";
|
|
82
|
+
export * from "./Options/Classes/HslAnimation";
|
|
83
|
+
export * from "./Options/Classes/Interactivity/Events/ClickEvent";
|
|
84
|
+
export * from "./Options/Classes/Interactivity/Events/DivEvent";
|
|
85
|
+
export * from "./Options/Classes/Interactivity/Events/ClickEvent";
|
|
86
|
+
export * from "./Options/Classes/Interactivity/Events/DivEvent";
|
|
87
|
+
export * from "./Options/Classes/Interactivity/Events/Events";
|
|
88
|
+
export * from "./Options/Classes/Interactivity/Events/HoverEvent";
|
|
89
|
+
export * from "./Options/Classes/Interactivity/Events/Parallax";
|
|
90
|
+
export * from "./Options/Classes/Interactivity/Interactivity";
|
|
91
|
+
export * from "./Options/Classes/Interactivity/Modes/Modes";
|
|
92
|
+
export * from "./Options/Classes/Interactivity/Events/ResizeEvent";
|
|
93
|
+
export * from "./Options/Classes/ManualParticle";
|
|
94
|
+
export * from "./Options/Classes/Options";
|
|
95
|
+
export * from "./Options/Classes/OptionsColor";
|
|
96
|
+
export * from "./Options/Classes/Particles/Bounce/ParticlesBounce";
|
|
97
|
+
export * from "./Options/Classes/Particles/Bounce/ParticlesBounceFactor";
|
|
98
|
+
export * from "./Options/Classes/Particles/Collisions/Collisions";
|
|
99
|
+
export * from "./Options/Classes/Particles/Collisions/CollisionsAbsorb";
|
|
100
|
+
export * from "./Options/Classes/Particles/Collisions/CollisionsOverlap";
|
|
101
|
+
export * from "./Options/Classes/Particles/ParticlesOptions";
|
|
102
|
+
export * from "./Options/Classes/Particles/Shadow";
|
|
103
|
+
export * from "./Options/Classes/Particles/Stroke";
|
|
104
|
+
export * from "./Options/Classes/Particles/Move/MoveAttract";
|
|
105
|
+
export * from "./Options/Classes/Particles/Move/Move";
|
|
106
|
+
export * from "./Options/Classes/Particles/Move/MoveAngle";
|
|
107
|
+
export * from "./Options/Classes/Particles/Move/MoveCenter";
|
|
108
|
+
export * from "./Options/Classes/Particles/Move/MoveGravity";
|
|
109
|
+
export * from "./Options/Classes/Particles/Move/MoveTrail";
|
|
110
|
+
export * from "./Options/Classes/Particles/Move/MoveTrailFill";
|
|
111
|
+
export * from "./Options/Classes/Particles/Move/OutModes";
|
|
112
|
+
export * from "./Options/Classes/Particles/Move/Path/MovePath";
|
|
113
|
+
export * from "./Options/Classes/Particles/Move/Spin";
|
|
114
|
+
export * from "./Options/Classes/Particles/Number/ParticlesNumber";
|
|
115
|
+
export * from "./Options/Classes/Particles/Number/ParticlesDensity";
|
|
116
|
+
export * from "./Options/Classes/Particles/Opacity/Opacity";
|
|
117
|
+
export * from "./Options/Classes/Particles/Opacity/OpacityAnimation";
|
|
118
|
+
export * from "./Options/Classes/Particles/Shape/Shape";
|
|
119
|
+
export * from "./Options/Classes/Particles/Size/Size";
|
|
120
|
+
export * from "./Options/Classes/Particles/Size/SizeAnimation";
|
|
121
|
+
export * from "./Options/Classes/Particles/ZIndex/ZIndex";
|
|
122
|
+
export * from "./Options/Classes/Responsive";
|
|
123
|
+
export * from "./Options/Classes/Theme/Theme";
|
|
124
|
+
export * from "./Options/Classes/Theme/ThemeDefault";
|
|
125
|
+
export * from "./Options/Classes/ValueWithRandom";
|
|
126
|
+
export * from "./Options/Interfaces/Background/IBackground";
|
|
127
|
+
export * from "./Options/Interfaces/BackgroundMask/IBackgroundMask";
|
|
128
|
+
export * from "./Options/Interfaces/BackgroundMask/IBackgroundMaskCover";
|
|
129
|
+
export * from "./Options/Interfaces/FullScreen/IFullScreen";
|
|
130
|
+
export * from "./Options/Interfaces/IAnimatable";
|
|
131
|
+
export * from "./Options/Interfaces/IAnimatableColor";
|
|
132
|
+
export * from "./Options/Interfaces/IAnimation";
|
|
133
|
+
export * from "./Options/Interfaces/IColorAnimation";
|
|
134
|
+
export * from "./Options/Interfaces/IHslAnimation";
|
|
135
|
+
export * from "./Options/Interfaces/IManualParticle";
|
|
136
|
+
export * from "./Options/Interfaces/IOptionLoader";
|
|
137
|
+
export * from "./Options/Interfaces/IOptions";
|
|
138
|
+
export * from "./Options/Interfaces/IOptionsColor";
|
|
139
|
+
export * from "./Options/Interfaces/IResponsive";
|
|
140
|
+
export * from "./Options/Interfaces/IValueWithRandom";
|
|
141
|
+
export * from "./Options/Interfaces/Interactivity/Events/IClickEvent";
|
|
142
|
+
export * from "./Options/Interfaces/Interactivity/Events/IDivEvent";
|
|
143
|
+
export * from "./Options/Interfaces/Interactivity/Events/IEvents";
|
|
144
|
+
export * from "./Options/Interfaces/Interactivity/Events/IHoverEvent";
|
|
145
|
+
export * from "./Options/Interfaces/Interactivity/Events/IParallax";
|
|
146
|
+
export * from "./Options/Interfaces/Interactivity/Events/IResizeEvent";
|
|
147
|
+
export * from "./Options/Interfaces/Interactivity/Modes/IModeDiv";
|
|
148
|
+
export * from "./Options/Interfaces/Interactivity/Modes/IModes";
|
|
149
|
+
export * from "./Options/Interfaces/Interactivity/IInteractivity";
|
|
150
|
+
export * from "./Options/Interfaces/Particles/Bounce/IParticlesBounce";
|
|
151
|
+
export * from "./Options/Interfaces/Particles/Collisions/ICollisions";
|
|
152
|
+
export * from "./Options/Interfaces/Particles/Collisions/ICollisionsAbsorb";
|
|
153
|
+
export * from "./Options/Interfaces/Particles/Collisions/ICollisionsOverlap";
|
|
154
|
+
export * from "./Options/Interfaces/Particles/IParticlesOptions";
|
|
155
|
+
export * from "./Options/Interfaces/Particles/IShadow";
|
|
156
|
+
export * from "./Options/Interfaces/Particles/IStroke";
|
|
157
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveAttract";
|
|
158
|
+
export * from "./Options/Interfaces/Particles/Move/IMove";
|
|
159
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveAngle";
|
|
160
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveCenter";
|
|
161
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveGravity";
|
|
162
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveTrail";
|
|
163
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveTrailFill";
|
|
164
|
+
export * from "./Options/Interfaces/Particles/Move/Path/IMovePath";
|
|
165
|
+
export * from "./Options/Interfaces/Particles/Move/IOutModes";
|
|
166
|
+
export * from "./Options/Interfaces/Particles/Move/ISpin";
|
|
167
|
+
export * from "./Options/Interfaces/Particles/Number/IParticlesDensity";
|
|
168
|
+
export * from "./Options/Interfaces/Particles/Number/IParticlesNumber";
|
|
169
|
+
export * from "./Options/Interfaces/Particles/Opacity/IOpacity";
|
|
170
|
+
export * from "./Options/Interfaces/Particles/Opacity/IOpacityAnimation";
|
|
171
|
+
export * from "./Options/Interfaces/Particles/Shape/ICharacterShape";
|
|
172
|
+
export * from "./Options/Interfaces/Particles/Shape/IImageShape";
|
|
173
|
+
export * from "./Options/Interfaces/Particles/Shape/IPolygonShape";
|
|
174
|
+
export * from "./Options/Interfaces/Particles/Shape/IShape";
|
|
175
|
+
export * from "./Options/Interfaces/Particles/Shape/IShapeValues";
|
|
176
|
+
export * from "./Options/Interfaces/Particles/Shape/IStarShape";
|
|
177
|
+
export * from "./Options/Interfaces/Particles/Size/ISize";
|
|
178
|
+
export * from "./Options/Interfaces/Particles/Size/ISizeAnimation";
|
|
179
|
+
export * from "./Options/Interfaces/Particles/ZIndex/IZIndex";
|
|
180
|
+
export * from "./Options/Interfaces/Theme/ITheme";
|
|
181
|
+
export * from "./Options/Interfaces/Theme/IThemeDefault";
|
|
182
|
+
export * from "./Types/CustomEventArgs";
|
|
183
|
+
export * from "./Types/CustomEventListener";
|
|
184
|
+
export * from "./Types/ISourceOptions";
|
|
185
|
+
export * from "./Types/ParticlesGroups";
|
|
186
|
+
export * from "./Types/PathOptions";
|
|
187
|
+
export * from "./Types/RangeValue";
|
|
188
|
+
export * from "./Types/RecursivePartial";
|
|
189
|
+
export * from "./Types/ShapeData";
|
|
190
|
+
export * from "./Types/ShapeDrawerFunctions";
|
|
191
|
+
export * from "./Types/SingleOrMultiple";
|
|
192
|
+
export * from "./Utils/CanvasUtils";
|
|
193
|
+
export * from "./Utils/ColorUtils";
|
|
194
|
+
export * from "./Utils/HslColorManager";
|
|
195
|
+
export * from "./Utils/NumberUtils";
|
|
196
|
+
export * from "./Utils/OptionsUtils";
|
|
197
|
+
export * from "./Utils/RgbColorManager";
|
|
198
|
+
export * from "./Utils/Utils";
|
|
199
|
+
export { tsParticles };
|
package/package.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsparticles/engine",
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
|
+
"description": "Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",
|
|
5
|
+
"homepage": "https://particles.js.org",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"install": "node ./scripts/install.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/matteobruni/tsparticles.git",
|
|
12
|
+
"directory": "engine"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"front-end",
|
|
16
|
+
"frontend",
|
|
17
|
+
"tsparticles",
|
|
18
|
+
"particles.js",
|
|
19
|
+
"particlesjs",
|
|
20
|
+
"particles",
|
|
21
|
+
"particle",
|
|
22
|
+
"canvas",
|
|
23
|
+
"jsparticles",
|
|
24
|
+
"xparticles",
|
|
25
|
+
"particles-js",
|
|
26
|
+
"particles-bg",
|
|
27
|
+
"particles-bg-vue",
|
|
28
|
+
"particles-ts",
|
|
29
|
+
"particles.ts",
|
|
30
|
+
"react-particles-js",
|
|
31
|
+
"react-particles.js",
|
|
32
|
+
"react-particles",
|
|
33
|
+
"react",
|
|
34
|
+
"reactjs",
|
|
35
|
+
"vue-particles",
|
|
36
|
+
"ngx-particles",
|
|
37
|
+
"angular-particles",
|
|
38
|
+
"particleground",
|
|
39
|
+
"vue",
|
|
40
|
+
"vuejs",
|
|
41
|
+
"preact",
|
|
42
|
+
"preactjs",
|
|
43
|
+
"jquery",
|
|
44
|
+
"angularjs",
|
|
45
|
+
"angular",
|
|
46
|
+
"typescript",
|
|
47
|
+
"javascript",
|
|
48
|
+
"animation",
|
|
49
|
+
"web",
|
|
50
|
+
"html5",
|
|
51
|
+
"web-design",
|
|
52
|
+
"webdesign",
|
|
53
|
+
"css",
|
|
54
|
+
"html",
|
|
55
|
+
"css3",
|
|
56
|
+
"animated",
|
|
57
|
+
"background",
|
|
58
|
+
"confetti",
|
|
59
|
+
"canvas",
|
|
60
|
+
"fireworks",
|
|
61
|
+
"fireworks-js",
|
|
62
|
+
"confetti-js",
|
|
63
|
+
"confettijs",
|
|
64
|
+
"fireworksjs",
|
|
65
|
+
"canvas-confetti"
|
|
66
|
+
],
|
|
67
|
+
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"bugs": {
|
|
70
|
+
"url": "https://github.com/matteobruni/tsparticles/issues"
|
|
71
|
+
},
|
|
72
|
+
"funding": [
|
|
73
|
+
{
|
|
74
|
+
"type": "github",
|
|
75
|
+
"url": "https://github.com/sponsors/matteobruni"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "buymeacoffee",
|
|
79
|
+
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"main": "cjs/index.js",
|
|
83
|
+
"module": "esm/index.js",
|
|
84
|
+
"jsdelivr": "tsparticles.engine.min.js",
|
|
85
|
+
"unpkg": "tsparticles.engine.min.js",
|
|
86
|
+
"types": "types/index.d.ts",
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public"
|
|
89
|
+
}
|
|
90
|
+
}
|