tsparticles 1.42.2 → 1.43.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/README.md +1 -1
- package/browser/Core/Canvas.js +47 -60
- package/browser/Core/Container.js +15 -9
- package/browser/Core/Interfaces/{IAttract.js → IParticleColorStyle.js} +0 -0
- package/browser/Core/Interfaces/{IBubble.js → IParticlesMover.js} +0 -0
- package/browser/Core/Interfaces/{IParticleGradientAnimation.js → IPositionFromSizeParams.js} +0 -0
- package/browser/Core/Loader.js +26 -10
- package/browser/Core/Particle.js +38 -48
- package/browser/Core/Particles.js +24 -27
- package/browser/Core/Retina.js +4 -13
- package/browser/Core/Utils/Circle.js +20 -13
- package/browser/Core/Utils/CircleWarp.js +19 -7
- package/browser/Core/Utils/EventListeners.js +53 -94
- package/browser/Core/Utils/ExternalInteractorBase.js +11 -0
- package/browser/Core/Utils/FrameManager.js +2 -3
- package/browser/Core/Utils/InteractionManager.js +28 -0
- package/browser/Core/Utils/ParticlesInteractorBase.js +11 -0
- package/browser/Core/Utils/Plugins.js +100 -3
- package/browser/Core/Utils/Point.js +5 -0
- package/browser/Core/Utils/QuadTree.js +58 -27
- package/browser/Core/Utils/Range.js +6 -0
- package/browser/Core/Utils/Rectangle.js +23 -15
- package/browser/Core/Utils/Vector.js +123 -16
- package/browser/Core/Utils/Vector3d.js +85 -5
- package/browser/Interactions/External/Attract/Attractor.js +37 -3
- package/browser/Interactions/External/Bounce/Bouncer.js +8 -6
- package/browser/Interactions/External/Bubble/Bubbler.js +25 -2
- package/browser/Interactions/External/Connect/Connector.js +2 -2
- package/browser/Interactions/External/Grab/Grabber.js +34 -29
- package/browser/Interactions/External/Pause/Pauser.js +31 -0
- package/browser/Interactions/External/Pause/index.js +4 -0
- package/browser/Interactions/External/Push/Pusher.js +35 -0
- package/browser/Interactions/External/Push/index.js +4 -0
- package/browser/Interactions/External/Remove/Remover.js +28 -0
- package/browser/Interactions/External/Remove/index.js +4 -0
- package/browser/Interactions/External/Repulse/Repulser.js +37 -2
- package/browser/Interactions/External/Trail/TrailMaker.js +2 -2
- package/browser/Interactions/Particles/Attract/Attractor.js +2 -2
- package/browser/Interactions/Particles/Collisions/Collider.js +9 -17
- package/browser/Interactions/Particles/Links/LinkInstance.js +37 -55
- package/browser/Interactions/Particles/Links/Linker.js +9 -14
- package/browser/Movers/Base/BaseMover.js +76 -0
- package/browser/{Core/Interfaces/IParticleGradientColorAnimation.js → Movers/Base/IParticleSpin.js} +0 -0
- package/browser/{Core/Interfaces/IRepulse.js → Movers/Base/Types.js} +0 -0
- package/browser/Movers/Base/Utils.js +97 -0
- package/browser/Movers/Base/index.js +4 -0
- package/browser/Movers/Parallax/ParallaxMover.js +31 -0
- package/browser/Movers/Parallax/index.js +4 -0
- package/browser/Options/Classes/AnimatableGradient.js +1 -1
- package/browser/Options/Classes/AnimationOptions.js +1 -1
- package/browser/Options/Classes/ColorAnimation.js +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Trail.js +1 -1
- package/browser/Options/Classes/ManualParticle.js +1 -1
- package/browser/Options/Classes/Options.js +1 -1
- package/browser/Options/Classes/Particles/Destroy/Split.js +1 -1
- package/browser/Options/Classes/Particles/Move/Attract.js +1 -1
- package/browser/Options/Classes/Particles/Move/Move.js +2 -1
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +1 -1
- package/browser/Options/Classes/Particles/Move/MoveGravity.js +1 -1
- package/browser/Options/Classes/Particles/Move/Path/Path.js +1 -1
- package/browser/Options/Classes/Particles/Move/Spin.js +2 -1
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +1 -1
- package/browser/Options/Classes/Particles/Orbit/Orbit.js +1 -1
- package/browser/Options/Classes/Particles/ParticlesOptions.js +1 -1
- package/browser/Options/Classes/Particles/Repulse/Repulse.js +1 -1
- package/browser/Options/Classes/Particles/Roll/Roll.js +1 -1
- package/browser/Options/Classes/Particles/Roll/RollLight.js +1 -1
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.js +1 -1
- package/browser/Options/Classes/Particles/Shape/Shape.js +1 -1
- package/browser/Options/Classes/Particles/Size/Size.js +1 -1
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.js +1 -1
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.js +1 -1
- package/browser/Options/Classes/Particles/Wobble/Wobble.js +1 -1
- package/browser/Options/Classes/Responsive.js +1 -1
- package/browser/Options/Classes/Theme/Theme.js +1 -1
- package/browser/Options/Classes/ValueWithRandom.js +1 -1
- package/browser/Plugins/Absorbers/AbsorberInstance.js +44 -20
- package/browser/Plugins/Absorbers/Absorbers.js +3 -6
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.js +1 -1
- package/browser/Plugins/Absorbers/index.js +8 -9
- package/browser/Plugins/Emitters/EmitterInstance.js +20 -25
- package/browser/Plugins/Emitters/Emitters.js +3 -6
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +2 -1
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.js +1 -1
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -7
- package/browser/Plugins/Emitters/index.js +4 -1
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +1 -1
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +19 -42
- package/browser/Plugins/PolygonMask/Utils.js +12 -15
- package/browser/Plugins/PolygonMask/index.js +6 -2
- package/browser/Shapes/Image/ImageDrawer.js +61 -20
- package/browser/Shapes/Image/Utils.js +26 -1
- package/browser/Shapes/Image/index.js +4 -0
- package/browser/Shapes/Text/TextDrawer.js +1 -1
- package/browser/Updaters/Angle/AngleUpdater.js +1 -1
- package/browser/Updaters/Color/ColorUpdater.js +2 -1
- package/browser/Updaters/Life/LifeUpdater.js +1 -1
- package/browser/Updaters/Opacity/OpacityUpdater.js +1 -1
- package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
- package/browser/Updaters/OutModes/Utils.js +1 -1
- package/browser/Updaters/Roll/RollUpdater.js +2 -1
- package/browser/Updaters/Size/SizeUpdater.js +1 -1
- package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +3 -1
- package/browser/Updaters/Tilt/TiltUpdater.js +1 -1
- package/browser/Updaters/Twinkle/TwinkleUpdater.js +19 -0
- package/browser/Updaters/Twinkle/index.js +4 -0
- package/browser/Updaters/Wobble/WobbleUpdater.js +26 -1
- package/browser/Utils/CanvasUtils.js +163 -57
- package/browser/Utils/ColorUtils.js +100 -31
- package/browser/Utils/NumberUtils.js +73 -7
- package/browser/Utils/Utils.js +136 -55
- package/browser/engine.js +16 -1
- package/browser/full.js +7 -1
- package/browser/index.engine.js +104 -6
- package/browser/index.js +112 -8
- package/browser/index.slim.js +103 -6
- package/browser/pjs.js +6 -2
- package/browser/slim.js +14 -0
- package/cjs/Core/Canvas.js +306 -0
- package/cjs/Core/Container.js +401 -0
- package/{Core → cjs/Core}/Interfaces/Colors.js +0 -0
- package/{Core → cjs/Core}/Interfaces/Gradients.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IBounds.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IBubbleParticleData.js +0 -0
- package/{Core → cjs/Core}/Interfaces/ICircleBouncer.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IContainerInteractivity.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IContainerPlugin.js +0 -0
- package/{Core → cjs/Core}/Interfaces/ICoordinates.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IDelta.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IDimension.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IDistance.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IExternalInteractor.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IInteractor.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IMouseData.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IMovePathGenerator.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticle.js +0 -0
- package/{Core/Interfaces/IAttract.js → cjs/Core/Interfaces/IParticleColorStyle.js} +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleGravity.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleHslAnimation.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleLife.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleLoops.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleRetinaProps.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleRoll.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleSpin.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleUpdater.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleValueAnimation.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticleWobble.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticlesFrequencies.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IParticlesInteractor.js +0 -0
- package/{Core/Interfaces/IBubble.js → cjs/Core/Interfaces/IParticlesMover.js} +0 -0
- package/{Core → cjs/Core}/Interfaces/IPlugin.js +0 -0
- package/{Core/Interfaces/IParticleGradientAnimation.js → cjs/Core/Interfaces/IPositionFromSizeParams.js} +0 -0
- package/{Core → cjs/Core}/Interfaces/IRangeValue.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IRectSideResult.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IShapeDrawer.js +0 -0
- package/{Core → cjs/Core}/Interfaces/IShapeValues.js +0 -0
- package/cjs/Core/Loader.js +179 -0
- package/cjs/Core/Particle.js +367 -0
- package/cjs/Core/Particles.js +320 -0
- package/cjs/Core/Retina.js +88 -0
- package/cjs/Core/Utils/Circle.js +33 -0
- package/cjs/Core/Utils/CircleWarp.js +55 -0
- package/{Core → cjs/Core}/Utils/Constants.js +0 -0
- package/cjs/Core/Utils/EventListeners.js +302 -0
- package/{Core → cjs/Core}/Utils/ExternalInteractorBase.js +0 -0
- package/cjs/Core/Utils/FrameManager.js +42 -0
- package/cjs/Core/Utils/InteractionManager.js +66 -0
- package/{Core → cjs/Core}/Utils/ParticlesInteractorBase.js +0 -0
- package/cjs/Core/Utils/Plugins.js +111 -0
- package/{Core → cjs/Core}/Utils/Point.js +0 -0
- package/cjs/Core/Utils/QuadTree.js +71 -0
- package/{Core → cjs/Core}/Utils/Range.js +0 -0
- package/cjs/Core/Utils/Rectangle.js +29 -0
- package/cjs/Core/Utils/Vector.js +94 -0
- package/cjs/Core/Utils/Vector3d.js +70 -0
- package/{Enums → cjs/Enums}/AnimationStatus.js +0 -0
- package/{Enums → cjs/Enums}/Directions/MoveDirection.js +0 -0
- package/{Enums → cjs/Enums}/Directions/OutModeDirection.js +0 -0
- package/{Enums → cjs/Enums}/Directions/RotateDirection.js +0 -0
- package/{Enums → cjs/Enums}/Directions/TiltDirection.js +0 -0
- package/{Enums → cjs/Enums}/InteractivityDetect.js +0 -0
- package/{Enums → cjs/Enums}/Modes/ClickMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/CollisionMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/DestroyMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/DivMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/HoverMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/OutMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/ResponsiveMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/RollMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/SizeMode.js +0 -0
- package/{Enums → cjs/Enums}/Modes/ThemeMode.js +0 -0
- package/{Enums → cjs/Enums}/Types/AlterType.js +0 -0
- package/{Enums → cjs/Enums}/Types/DestroyType.js +0 -0
- package/{Enums → cjs/Enums}/Types/DivType.js +0 -0
- package/{Enums → cjs/Enums}/Types/EasingType.js +0 -0
- package/{Enums → cjs/Enums}/Types/GradientType.js +0 -0
- package/{Enums → cjs/Enums}/Types/InteractorType.js +0 -0
- package/{Enums → cjs/Enums}/Types/ShapeType.js +0 -0
- package/{Enums → cjs/Enums}/Types/StartValueType.js +0 -0
- package/cjs/Interactions/External/Attract/Attractor.js +109 -0
- package/{Interactions → cjs/Interactions}/External/Attract/index.js +0 -0
- package/cjs/Interactions/External/Bounce/Bouncer.js +69 -0
- package/{Interactions → cjs/Interactions}/External/Bounce/index.js +0 -0
- package/cjs/Interactions/External/Bubble/Bubbler.js +274 -0
- package/{Interactions → cjs/Interactions}/External/Bubble/IBubblerProcessParam.js +0 -0
- package/{Interactions → cjs/Interactions}/External/Bubble/ProcessBubbleType.js +0 -0
- package/{Interactions → cjs/Interactions}/External/Bubble/index.js +0 -0
- package/cjs/Interactions/External/Connect/Connector.js +41 -0
- package/{Interactions → cjs/Interactions}/External/Connect/index.js +0 -0
- package/cjs/Interactions/External/Grab/Grabber.js +52 -0
- package/{Interactions → cjs/Interactions}/External/Grab/index.js +0 -0
- package/cjs/Interactions/External/Pause/Pauser.js +29 -0
- package/cjs/Interactions/External/Pause/index.js +8 -0
- package/cjs/Interactions/External/Push/Pusher.js +33 -0
- package/cjs/Interactions/External/Push/index.js +8 -0
- package/cjs/Interactions/External/Remove/Remover.js +26 -0
- package/cjs/Interactions/External/Remove/index.js +8 -0
- package/cjs/Interactions/External/Repulse/Repulser.js +133 -0
- package/{Interactions → cjs/Interactions}/External/Repulse/index.js +0 -0
- package/cjs/Interactions/External/Trail/TrailMaker.js +53 -0
- package/{Interactions → cjs/Interactions}/External/Trail/index.js +0 -0
- package/cjs/Interactions/Particles/Attract/Attractor.js +30 -0
- package/{Interactions → cjs/Interactions}/Particles/Attract/index.js +0 -0
- package/cjs/Interactions/Particles/Collisions/Collider.js +101 -0
- package/{Interactions → cjs/Interactions}/Particles/Collisions/index.js +0 -0
- package/{Interactions → cjs/Interactions}/Particles/Links/ILink.js +0 -0
- package/cjs/Interactions/Particles/Links/LinkInstance.js +106 -0
- package/{Interactions → cjs/Interactions}/Particles/Links/LinkParticle.js +0 -0
- package/cjs/Interactions/Particles/Links/Linker.js +100 -0
- package/{Interactions → cjs/Interactions}/Particles/Links/index.js +0 -0
- package/{Interactions → cjs/Interactions}/Particles/Links/interaction.js +0 -0
- package/{Interactions → cjs/Interactions}/Particles/Links/plugin.js +0 -0
- package/cjs/Movers/Base/BaseMover.js +80 -0
- package/{Core/Interfaces/IParticleGradientColorAnimation.js → cjs/Movers/Base/IParticleSpin.js} +0 -0
- package/{Core/Interfaces/IRepulse.js → cjs/Movers/Base/Types.js} +0 -0
- package/cjs/Movers/Base/Utils.js +104 -0
- package/cjs/Movers/Base/index.js +8 -0
- package/cjs/Movers/Parallax/ParallaxMover.js +33 -0
- package/cjs/Movers/Parallax/index.js +8 -0
- package/{Options → cjs/Options}/Classes/AnimatableColor.js +0 -0
- package/cjs/Options/Classes/AnimatableGradient.js +146 -0
- package/cjs/Options/Classes/AnimationOptions.js +30 -0
- package/{Options → cjs/Options}/Classes/Background/Background.js +0 -0
- package/{Options → cjs/Options}/Classes/BackgroundMask/BackgroundMask.js +0 -0
- package/{Options → cjs/Options}/Classes/BackgroundMask/BackgroundMaskCover.js +0 -0
- package/cjs/Options/Classes/ColorAnimation.js +34 -0
- package/{Options → cjs/Options}/Classes/FullScreen/FullScreen.js +0 -0
- package/{Options → cjs/Options}/Classes/HslAnimation.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Events/ClickEvent.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Events/DivEvent.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Events/Events.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Events/HoverEvent.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Events/Parallax.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Interactivity.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Attract.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Bounce.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Bubble.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/BubbleBase.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/BubbleDiv.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Connect.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/ConnectLinks.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Grab.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/GrabLinks.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Light.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/LightArea.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/LightGradient.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/LightShadow.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Modes.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Push.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Remove.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Repulse.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/RepulseBase.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/RepulseDiv.js +0 -0
- package/{Options → cjs/Options}/Classes/Interactivity/Modes/Slow.js +0 -0
- package/cjs/Options/Classes/Interactivity/Modes/Trail.js +29 -0
- package/cjs/Options/Classes/ManualParticle.js +22 -0
- package/{Options → cjs/Options}/Classes/Motion/Motion.js +0 -0
- package/{Options → cjs/Options}/Classes/Motion/MotionReduce.js +0 -0
- package/cjs/Options/Classes/Options.js +174 -0
- package/{Options → cjs/Options}/Classes/OptionsColor.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Bounce/Bounce.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Bounce/BounceFactor.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Collisions/Collisions.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Collisions/CollisionsOverlap.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Destroy/Destroy.js +0 -0
- package/cjs/Options/Classes/Particles/Destroy/Split.js +31 -0
- package/{Options → cjs/Options}/Classes/Particles/Destroy/SplitFactor.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Destroy/SplitRate.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Life/Life.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Life/LifeDelay.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Life/LifeDuration.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Links/Links.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Links/LinksShadow.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Links/LinksTriangle.js +0 -0
- package/cjs/Options/Classes/Particles/Move/Attract.js +47 -0
- package/cjs/Options/Classes/Particles/Move/Move.js +133 -0
- package/cjs/Options/Classes/Particles/Move/MoveAngle.js +22 -0
- package/cjs/Options/Classes/Particles/Move/MoveGravity.js +30 -0
- package/{Options → cjs/Options}/Classes/Particles/Move/OutModes.js +0 -0
- package/cjs/Options/Classes/Particles/Move/Path/Path.js +30 -0
- package/{Options → cjs/Options}/Classes/Particles/Move/Path/PathDelay.js +0 -0
- package/cjs/Options/Classes/Particles/Move/Spin.js +24 -0
- package/{Options → cjs/Options}/Classes/Particles/Move/Trail.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Number/Density.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Number/ParticlesNumber.js +0 -0
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +33 -0
- package/{Options → cjs/Options}/Classes/Particles/Opacity/OpacityAnimation.js +0 -0
- package/cjs/Options/Classes/Particles/Orbit/Orbit.js +39 -0
- package/{Options → cjs/Options}/Classes/Particles/Orbit/OrbitRotation.js +0 -0
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +143 -0
- package/cjs/Options/Classes/Particles/Repulse/Repulse.js +37 -0
- package/cjs/Options/Classes/Particles/Roll/Roll.js +35 -0
- package/cjs/Options/Classes/Particles/Roll/RollLight.js +22 -0
- package/{Options → cjs/Options}/Classes/Particles/Rotate/Rotate.js +0 -0
- package/cjs/Options/Classes/Particles/Rotate/RotateAnimation.js +26 -0
- package/{Options → cjs/Options}/Classes/Particles/Shadow.js +0 -0
- package/cjs/Options/Classes/Particles/Shape/Shape.js +103 -0
- package/cjs/Options/Classes/Particles/Size/Size.js +33 -0
- package/{Options → cjs/Options}/Classes/Particles/Size/SizeAnimation.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Stroke.js +0 -0
- package/{Options → cjs/Options}/Classes/Particles/Tilt/Tilt.js +0 -0
- package/cjs/Options/Classes/Particles/Tilt/TiltAnimation.js +26 -0
- package/{Options → cjs/Options}/Classes/Particles/Twinkle/Twinkle.js +0 -0
- package/cjs/Options/Classes/Particles/Twinkle/TwinkleValues.js +30 -0
- package/cjs/Options/Classes/Particles/Wobble/Wobble.js +26 -0
- package/{Options → cjs/Options}/Classes/Particles/ZIndex/ZIndex.js +0 -0
- package/{Options → cjs/Options}/Classes/Random.js +0 -0
- package/cjs/Options/Classes/Responsive.js +31 -0
- package/cjs/Options/Classes/Theme/Theme.js +24 -0
- package/{Options → cjs/Options}/Classes/Theme/ThemeDefault.js +0 -0
- package/cjs/Options/Classes/ValueWithRandom.js +26 -0
- package/{Options → cjs/Options}/Interfaces/Background/IBackground.js +0 -0
- package/{Options → cjs/Options}/Interfaces/BackgroundMask/IBackgroundMask.js +0 -0
- package/{Options → cjs/Options}/Interfaces/BackgroundMask/IBackgroundMaskCover.js +0 -0
- package/{Options → cjs/Options}/Interfaces/FullScreen/IFullScreen.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IAnimatable.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IAnimatableColor.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IAnimatableGradient.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IAnimation.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IColorAnimation.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IHslAnimation.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IManualParticle.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IOptionLoader.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IOptions.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IOptionsColor.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IOptionsGradient.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IRandom.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IResponsive.js +0 -0
- package/{Options → cjs/Options}/Interfaces/IValueWithRandom.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IClickEvent.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IDivEvent.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IEvents.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IHoverEvent.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Events/IParallax.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/IInteractivity.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IAttract.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBounce.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBubble.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBubbleBase.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IBubbleDiv.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IConnect.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IConnectLinks.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IGrab.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IGrabLinks.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ILight.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ILightArea.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ILightShadow.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IModeDiv.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IModes.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IPush.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRemove.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRepulse.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRepulseBase.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/IRepulseDiv.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ISlow.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Interactivity/Modes/ITrail.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Motion/IMotion.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Motion/IMotionReduce.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Bounce/IBounce.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Collisions/ICollisions.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Collisions/ICollisionsOverlap.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Destroy/IDestroy.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Destroy/ISplit.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/IParticles.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/IShadow.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/IStroke.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Life/ILife.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Life/ILifeDelay.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Life/ILifeDuration.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Links/ILinks.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Links/ILinksShadow.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Links/ILinksTriangle.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/IAttract.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/IMove.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/IMoveAngle.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/IMoveGravity.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/IOutModes.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/ISpin.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/ITrail.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Move/Path/IPath.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Number/IDensity.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Number/IParticlesNumber.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Opacity/IOpacity.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Opacity/IOpacityAnimation.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Orbit/IOrbit.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Repulse/IRepulse.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Roll/IRoll.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Roll/IRollLight.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Rotate/IRotate.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Rotate/IRotateAnimation.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Shape/ICharacterShape.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Shape/IImageShape.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Shape/IPolygonShape.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Shape/IShape.js +0 -0
- package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +17 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Shape/IStarShape.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Size/ISize.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Size/ISizeAnimation.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Tilt/ITilt.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Tilt/ITiltAnimation.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Twinkle/ITwinkle.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Twinkle/ITwinkleValues.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/Wobble/IWobble.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Particles/ZIndex/IZIndex.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Theme/ITheme.js +0 -0
- package/{Options → cjs/Options}/Interfaces/Theme/IThemeDefault.js +0 -0
- package/{Plugins → cjs/Plugins}/Absorbers/AbsorberContainer.js +0 -0
- package/cjs/Plugins/Absorbers/AbsorberInstance.js +158 -0
- package/cjs/Plugins/Absorbers/Absorbers.js +115 -0
- package/{Plugins → cjs/Plugins}/Absorbers/Enums/AbsorberClickMode.js +0 -0
- package/cjs/Plugins/Absorbers/Options/Classes/Absorber.js +51 -0
- package/{Plugins → cjs/Plugins}/Absorbers/Options/Classes/AbsorberSize.js +0 -0
- package/{Plugins → cjs/Plugins}/Absorbers/Options/Classes/AbsorberSizeLimit.js +0 -0
- package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorber.js +0 -0
- package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorberOptions.js +0 -0
- package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorberSize.js +0 -0
- package/{Plugins → cjs/Plugins}/Absorbers/Options/Interfaces/IAbsorberSizeLimit.js +0 -0
- package/cjs/Plugins/Absorbers/index.js +93 -0
- package/{Plugins → cjs/Plugins}/Emitters/EmitterContainer.js +0 -0
- package/cjs/Plugins/Emitters/EmitterInstance.js +264 -0
- package/cjs/Plugins/Emitters/Emitters.js +150 -0
- package/{Plugins → cjs/Plugins}/Emitters/EmittersEngine.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/Enums/EmitterClickMode.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/Enums/EmitterShapeType.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/IEmitterShape.js +0 -0
- package/cjs/Plugins/Emitters/Options/Classes/Emitter.js +68 -0
- package/{Plugins → cjs/Plugins}/Emitters/Options/Classes/EmitterLife.js +0 -0
- package/cjs/Plugins/Emitters/Options/Classes/EmitterRate.js +22 -0
- package/{Plugins → cjs/Plugins}/Emitters/Options/Classes/EmitterSize.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitter.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterLife.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterOptions.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterRate.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/Options/Interfaces/IEmitterSize.js +0 -0
- package/{Plugins → cjs/Plugins}/Emitters/ShapeManager.js +0 -0
- package/cjs/Plugins/Emitters/Shapes/Circle/CircleShape.js +27 -0
- package/{Plugins → cjs/Plugins}/Emitters/Shapes/Square/SquareShape.js +0 -0
- package/cjs/Plugins/Emitters/index.js +117 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Enums/PolygonMaskInlineArrangement.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Enums/PolygonMaskMoveType.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Enums/PolygonMaskType.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Interfaces/ISvgPath.js +0 -0
- package/cjs/Plugins/PolygonMask/Options/Classes/PolygonMask.js +66 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskDraw.js +0 -0
- package/cjs/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +29 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskInline.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Classes/PolygonMaskMove.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMask.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +0 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskOptions.js +0 -0
- package/cjs/Plugins/PolygonMask/PolygonMaskInstance.js +363 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/Types.js +0 -0
- package/cjs/Plugins/PolygonMask/Utils.js +117 -0
- package/cjs/Plugins/PolygonMask/index.js +67 -0
- package/{Plugins → cjs/Plugins}/PolygonMask/pathseg.js +0 -0
- package/{Shapes → cjs/Shapes}/Circle/CircleDrawer.js +0 -0
- package/{Shapes → cjs/Shapes}/Circle/index.js +0 -0
- package/cjs/Shapes/Image/ImageDrawer.js +132 -0
- package/cjs/Shapes/Image/Utils.js +89 -0
- package/{Shapes → cjs/Shapes}/Image/index.js +0 -0
- package/{Shapes → cjs/Shapes}/Line/LineDrawer.js +0 -0
- package/{Shapes → cjs/Shapes}/Line/index.js +0 -0
- package/{Shapes → cjs/Shapes}/Polygon/PolygonDrawer.js +0 -0
- package/{Shapes → cjs/Shapes}/Polygon/PolygonDrawerBase.js +0 -0
- package/{Shapes → cjs/Shapes}/Polygon/TriangleDrawer.js +0 -0
- package/{Shapes → cjs/Shapes}/Polygon/index.js +0 -0
- package/{Shapes → cjs/Shapes}/Square/SquareDrawer.js +0 -0
- package/{Shapes → cjs/Shapes}/Square/index.js +0 -0
- package/{Shapes → cjs/Shapes}/Star/StarDrawer.js +0 -0
- package/{Shapes → cjs/Shapes}/Star/index.js +0 -0
- package/cjs/Shapes/Text/TextDrawer.js +65 -0
- package/{Shapes → cjs/Shapes}/Text/index.js +0 -0
- package/{Types → cjs/Types}/ParticlesGroups.js +0 -0
- package/{Types → cjs/Types}/PathOptions.js +0 -0
- package/{Types → cjs/Types}/RangeValue.js +0 -0
- package/{Types → cjs/Types}/RecursivePartial.js +0 -0
- package/{Types → cjs/Types}/ShapeData.js +0 -0
- package/{Types → cjs/Types}/ShapeDrawerFunctions.js +0 -0
- package/{Types → cjs/Types}/SingleOrMultiple.js +0 -0
- package/cjs/Updaters/Angle/AngleUpdater.js +79 -0
- package/{Updaters → cjs/Updaters}/Angle/index.js +0 -0
- package/cjs/Updaters/Color/ColorUpdater.js +68 -0
- package/{Updaters → cjs/Updaters}/Color/index.js +0 -0
- package/cjs/Updaters/Life/LifeUpdater.js +67 -0
- package/{Updaters → cjs/Updaters}/Life/index.js +0 -0
- package/cjs/Updaters/Opacity/OpacityUpdater.js +122 -0
- package/{Updaters → cjs/Updaters}/Opacity/index.js +0 -0
- package/{Updaters → cjs/Updaters}/OutModes/IBounceData.js +0 -0
- package/cjs/Updaters/OutModes/OutOfCanvasUpdater.js +146 -0
- package/cjs/Updaters/OutModes/Utils.js +65 -0
- package/{Updaters → cjs/Updaters}/OutModes/index.js +0 -0
- package/cjs/Updaters/Roll/RollUpdater.js +64 -0
- package/{Updaters → cjs/Updaters}/Roll/index.js +0 -0
- package/cjs/Updaters/Size/SizeUpdater.js +77 -0
- package/{Updaters → cjs/Updaters}/Size/index.js +0 -0
- package/cjs/Updaters/StrokeColor/StrokeColorUpdater.js +86 -0
- package/{Updaters → cjs/Updaters}/StrokeColor/index.js +0 -0
- package/cjs/Updaters/Tilt/TiltUpdater.js +79 -0
- package/{Updaters → cjs/Updaters}/Tilt/index.js +0 -0
- package/cjs/Updaters/Twinkle/TwinkleUpdater.js +21 -0
- package/cjs/Updaters/Twinkle/index.js +8 -0
- package/cjs/Updaters/Wobble/WobbleUpdater.js +51 -0
- package/{Updaters → cjs/Updaters}/Wobble/index.js +0 -0
- package/cjs/Utils/CanvasUtils.js +256 -0
- package/cjs/Utils/ColorUtils.js +460 -0
- package/cjs/Utils/NumberUtils.js +174 -0
- package/cjs/Utils/Utils.js +252 -0
- package/cjs/engine.js +103 -0
- package/cjs/full.js +24 -0
- package/cjs/index.engine.js +119 -0
- package/cjs/index.js +133 -0
- package/cjs/index.slim.js +121 -0
- package/{pjs.js → cjs/pjs.js} +0 -0
- package/cjs/slim.js +62 -0
- package/esm/Core/Canvas.js +47 -60
- package/esm/Core/Container.js +15 -9
- package/{browser/Enums/Types/OrbitType.js → esm/Core/Interfaces/IParticleColorStyle.js} +0 -0
- package/esm/Core/Interfaces/{IAttract.js → IParticlesMover.js} +0 -0
- package/esm/Core/Interfaces/{IBubble.js → IPositionFromSizeParams.js} +0 -0
- package/esm/Core/Loader.js +6 -10
- package/esm/Core/Particle.js +29 -48
- package/esm/Core/Particles.js +24 -26
- package/esm/Core/Retina.js +4 -13
- package/esm/Core/Utils/Circle.js +4 -13
- package/esm/Core/Utils/CircleWarp.js +2 -7
- package/esm/Core/Utils/EventListeners.js +23 -94
- package/esm/Core/Utils/FrameManager.js +1 -2
- package/esm/Core/Utils/InteractionManager.js +7 -0
- package/esm/Core/Utils/Plugins.js +16 -3
- package/esm/Core/Utils/QuadTree.js +20 -27
- package/esm/Core/Utils/Rectangle.js +6 -15
- package/esm/Core/Utils/Vector.js +13 -15
- package/esm/Core/Utils/Vector3d.js +17 -5
- package/esm/Interactions/External/Attract/Attractor.js +36 -2
- package/esm/Interactions/External/Bounce/Bouncer.js +8 -6
- package/esm/Interactions/External/Bubble/Bubbler.js +25 -2
- package/esm/Interactions/External/Connect/Connector.js +2 -2
- package/esm/Interactions/External/Grab/Grabber.js +30 -25
- package/esm/Interactions/External/Pause/Pauser.js +25 -0
- package/esm/Interactions/External/Pause/index.js +4 -0
- package/esm/Interactions/External/Push/Pusher.js +29 -0
- package/esm/Interactions/External/Push/index.js +4 -0
- package/esm/Interactions/External/Remove/Remover.js +22 -0
- package/esm/Interactions/External/Remove/index.js +4 -0
- package/esm/Interactions/External/Repulse/Repulser.js +37 -2
- package/esm/Interactions/External/Trail/TrailMaker.js +2 -2
- package/esm/Interactions/Particles/Attract/Attractor.js +2 -2
- package/esm/Interactions/Particles/Collisions/Collider.js +9 -17
- package/esm/Interactions/Particles/Links/LinkInstance.js +37 -55
- package/esm/Interactions/Particles/Links/Linker.js +9 -14
- package/esm/Movers/Base/BaseMover.js +76 -0
- package/esm/{Core/Interfaces/IParticleGradientAnimation.js → Movers/Base/IParticleSpin.js} +0 -0
- package/esm/{Core/Interfaces/IParticleGradientColorAnimation.js → Movers/Base/Types.js} +0 -0
- package/esm/Movers/Base/Utils.js +97 -0
- package/esm/Movers/Base/index.js +4 -0
- package/esm/Movers/Parallax/ParallaxMover.js +29 -0
- package/esm/Movers/Parallax/index.js +4 -0
- package/esm/Options/Classes/AnimatableGradient.js +1 -1
- package/esm/Options/Classes/AnimationOptions.js +1 -1
- package/esm/Options/Classes/ColorAnimation.js +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Trail.js +1 -1
- package/esm/Options/Classes/ManualParticle.js +1 -1
- package/esm/Options/Classes/Options.js +1 -1
- package/esm/Options/Classes/Particles/Destroy/Split.js +1 -1
- package/esm/Options/Classes/Particles/Move/Attract.js +1 -1
- package/esm/Options/Classes/Particles/Move/Move.js +2 -1
- package/esm/Options/Classes/Particles/Move/MoveAngle.js +1 -1
- package/esm/Options/Classes/Particles/Move/MoveGravity.js +1 -1
- package/esm/Options/Classes/Particles/Move/Path/Path.js +1 -1
- package/esm/Options/Classes/Particles/Move/Spin.js +2 -1
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +1 -1
- package/esm/Options/Classes/Particles/Orbit/Orbit.js +1 -1
- package/esm/Options/Classes/Particles/ParticlesOptions.js +1 -1
- package/esm/Options/Classes/Particles/Repulse/Repulse.js +1 -1
- package/esm/Options/Classes/Particles/Roll/Roll.js +1 -1
- package/esm/Options/Classes/Particles/Roll/RollLight.js +1 -1
- package/esm/Options/Classes/Particles/Rotate/RotateAnimation.js +1 -1
- package/esm/Options/Classes/Particles/Shape/Shape.js +1 -1
- package/esm/Options/Classes/Particles/Size/Size.js +1 -1
- package/esm/Options/Classes/Particles/Tilt/TiltAnimation.js +1 -1
- package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.js +1 -1
- package/esm/Options/Classes/Particles/Wobble/Wobble.js +1 -1
- package/esm/Options/Classes/Responsive.js +1 -1
- package/esm/Options/Classes/Theme/Theme.js +1 -1
- package/esm/Options/Classes/ValueWithRandom.js +1 -1
- package/esm/Plugins/Absorbers/AbsorberInstance.js +16 -20
- package/esm/Plugins/Absorbers/Absorbers.js +3 -6
- package/esm/Plugins/Absorbers/Options/Classes/Absorber.js +1 -1
- package/esm/Plugins/Absorbers/index.js +8 -9
- package/esm/Plugins/Emitters/EmitterInstance.js +20 -25
- package/esm/Plugins/Emitters/Emitters.js +3 -6
- package/esm/Plugins/Emitters/Options/Classes/Emitter.js +2 -1
- package/esm/Plugins/Emitters/Options/Classes/EmitterRate.js +1 -1
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -7
- package/esm/Plugins/Emitters/index.js +4 -1
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +1 -1
- package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +19 -42
- package/esm/Plugins/PolygonMask/Utils.js +6 -13
- package/esm/Plugins/PolygonMask/index.js +6 -2
- package/esm/Shapes/Image/ImageDrawer.js +20 -20
- package/esm/Shapes/Image/Utils.js +1 -1
- package/esm/Shapes/Text/TextDrawer.js +1 -1
- package/esm/Updaters/Angle/AngleUpdater.js +1 -1
- package/esm/Updaters/Color/ColorUpdater.js +2 -1
- package/esm/Updaters/Life/LifeUpdater.js +1 -1
- package/esm/Updaters/Opacity/OpacityUpdater.js +1 -1
- package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
- package/esm/Updaters/OutModes/Utils.js +1 -1
- package/esm/Updaters/Roll/RollUpdater.js +2 -1
- package/esm/Updaters/Size/SizeUpdater.js +1 -1
- package/esm/Updaters/StrokeColor/StrokeColorUpdater.js +3 -1
- package/esm/Updaters/Tilt/TiltUpdater.js +1 -1
- package/esm/Updaters/Twinkle/TwinkleUpdater.js +17 -0
- package/esm/Updaters/Twinkle/index.js +4 -0
- package/esm/Updaters/Wobble/WobbleUpdater.js +1 -1
- package/esm/Utils/CanvasUtils.js +26 -57
- package/esm/Utils/ColorUtils.js +13 -29
- package/esm/Utils/NumberUtils.js +48 -7
- package/esm/Utils/Utils.js +30 -47
- package/esm/engine.js +6 -1
- package/esm/full.js +3 -1
- package/esm/index.engine.js +93 -5
- package/esm/index.js +101 -8
- package/esm/index.slim.js +92 -5
- package/esm/slim.js +10 -0
- package/package.json +252 -4
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/tsparticles.engine.js +1153 -1460
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +297 -4974
- package/tsparticles.interaction.external.attract.min.js +2 -2
- package/tsparticles.interaction.external.bounce.js +263 -4988
- package/tsparticles.interaction.external.bounce.min.js +2 -2
- package/tsparticles.interaction.external.bubble.js +247 -4546
- package/tsparticles.interaction.external.bubble.min.js +2 -2
- package/tsparticles.interaction.external.connect.js +42 -4968
- package/tsparticles.interaction.external.connect.min.js +2 -2
- package/tsparticles.interaction.external.grab.js +174 -4507
- package/tsparticles.interaction.external.grab.min.js +2 -2
- package/tsparticles.interaction.external.repulse.js +264 -4949
- package/tsparticles.interaction.external.repulse.min.js +2 -2
- package/tsparticles.interaction.external.trail.js +42 -4968
- package/tsparticles.interaction.external.trail.min.js +2 -2
- package/tsparticles.interaction.particles.attract.js +60 -5019
- package/tsparticles.interaction.particles.attract.min.js +2 -2
- package/tsparticles.interaction.particles.collisions.js +149 -4919
- package/tsparticles.interaction.particles.collisions.min.js +2 -2
- package/tsparticles.interaction.particles.links.js +415 -4462
- package/tsparticles.interaction.particles.links.min.js +2 -2
- package/tsparticles.js +1662 -1672
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +347 -4676
- package/tsparticles.plugins.absorbers.min.js +2 -2
- package/tsparticles.plugins.emitters.js +424 -4696
- package/tsparticles.plugins.emitters.min.js +2 -2
- package/tsparticles.plugins.polygonMask.js +263 -4633
- package/tsparticles.plugins.polygonMask.min.js +2 -2
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.js +67 -4777
- package/tsparticles.shape.image.min.js +2 -2
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.js +39 -4965
- package/tsparticles.shape.text.min.js +2 -2
- package/tsparticles.slim.js +1575 -1554
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +55 -5014
- package/tsparticles.updater.angle.min.js +2 -2
- package/tsparticles.updater.color.js +146 -4481
- package/tsparticles.updater.color.min.js +2 -2
- package/tsparticles.updater.life.js +58 -5017
- package/tsparticles.updater.life.min.js +2 -2
- package/tsparticles.updater.opacity.js +62 -5021
- package/tsparticles.updater.opacity.min.js +2 -2
- package/tsparticles.updater.outModes.js +152 -4907
- package/tsparticles.updater.outModes.min.js +2 -2
- package/tsparticles.updater.roll.js +143 -4478
- package/tsparticles.updater.roll.min.js +2 -2
- package/tsparticles.updater.size.js +54 -5013
- package/tsparticles.updater.size.min.js +2 -2
- package/tsparticles.updater.strokeColor.js +147 -4482
- package/tsparticles.updater.strokeColor.min.js +2 -2
- package/tsparticles.updater.tilt.js +55 -5014
- package/tsparticles.updater.tilt.min.js +2 -2
- package/tsparticles.updater.wobble.js +55 -5014
- package/tsparticles.updater.wobble.min.js +2 -2
- package/types/Core/Canvas.d.ts +40 -0
- package/types/Core/Container.d.ts +71 -0
- package/types/Core/Interfaces/Colors.d.ts +33 -0
- package/types/Core/Interfaces/Gradients.d.ts +21 -0
- package/{Core → types/Core}/Interfaces/IBounds.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IBubbleParticleData.d.ts +0 -0
- package/types/Core/Interfaces/ICircleBouncer.d.ts +9 -0
- package/{Core → types/Core}/Interfaces/IContainerInteractivity.d.ts +0 -0
- package/types/Core/Interfaces/IContainerPlugin.d.ts +33 -0
- package/types/Core/Interfaces/ICoordinates.d.ts +15 -0
- package/{Core → types/Core}/Interfaces/IDelta.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IDimension.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IDistance.d.ts +0 -0
- package/types/Core/Interfaces/IExternalInteractor.d.ts +8 -0
- package/types/Core/Interfaces/IInteractor.d.ts +6 -0
- package/{Core → types/Core}/Interfaces/IMouseData.d.ts +0 -0
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +8 -0
- package/types/Core/Interfaces/IParticle.d.ts +51 -0
- package/types/Core/Interfaces/IParticleColorStyle.d.ts +4 -0
- package/{Core → types/Core}/Interfaces/IParticleGravity.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IParticleHslAnimation.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IParticleLife.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IParticleLoops.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IParticleRetinaProps.d.ts +0 -0
- package/types/Core/Interfaces/IParticleRoll.d.ts +9 -0
- package/types/Core/Interfaces/IParticleSpin.d.ts +9 -0
- package/types/Core/Interfaces/IParticleUpdater.d.ts +11 -0
- package/types/Core/Interfaces/IParticleValueAnimation.d.ts +17 -0
- package/{Core → types/Core}/Interfaces/IParticleWobble.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IParticlesFrequencies.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IParticlesInteractor.d.ts +0 -0
- package/types/Core/Interfaces/IParticlesMover.d.ts +7 -0
- package/types/Core/Interfaces/IPlugin.d.ts +11 -0
- package/types/Core/Interfaces/IPositionFromSizeParams.d.ts +10 -0
- package/{Core → types/Core}/Interfaces/IRangeValue.d.ts +0 -0
- package/{Core → types/Core}/Interfaces/IRectSideResult.d.ts +0 -0
- package/types/Core/Interfaces/IShapeDrawer.d.ts +10 -0
- package/types/Core/Interfaces/IShapeValues.d.ts +8 -0
- package/types/Core/Loader.d.ts +32 -0
- package/types/Core/Particle.d.ts +84 -0
- package/types/Core/Particles.d.ts +52 -0
- package/types/Core/Retina.d.ts +25 -0
- package/types/Core/Utils/Circle.d.ts +8 -0
- package/types/Core/Utils/CircleWarp.d.ts +10 -0
- package/{Core → types/Core}/Utils/Constants.d.ts +0 -0
- package/{Core → types/Core}/Utils/EventListeners.d.ts +0 -0
- package/types/Core/Utils/ExternalInteractorBase.d.ts +13 -0
- package/{Core → types/Core}/Utils/FrameManager.d.ts +0 -0
- package/types/Core/Utils/InteractionManager.d.ts +16 -0
- package/types/Core/Utils/ParticlesInteractorBase.d.ts +13 -0
- package/types/Core/Utils/Plugins.d.ts +47 -0
- package/types/Core/Utils/Point.d.ts +7 -0
- package/types/Core/Utils/QuadTree.d.ts +24 -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 +29 -0
- package/types/Core/Utils/Vector3d.d.ts +19 -0
- package/{Enums → types/Enums}/AnimationStatus.d.ts +0 -0
- package/{Enums → types/Enums}/Directions/MoveDirection.d.ts +0 -0
- package/{Enums → types/Enums}/Directions/OutModeDirection.d.ts +0 -0
- package/{Enums → types/Enums}/Directions/RotateDirection.d.ts +0 -0
- package/{Enums → types/Enums}/Directions/TiltDirection.d.ts +0 -0
- package/{Enums → types/Enums}/InteractivityDetect.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/ClickMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/CollisionMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/DestroyMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/DivMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/HoverMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/OutMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/ResponsiveMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/RollMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/SizeMode.d.ts +0 -0
- package/{Enums → types/Enums}/Modes/ThemeMode.d.ts +0 -0
- package/{Enums → types/Enums}/Types/AlterType.d.ts +0 -0
- package/{Enums → types/Enums}/Types/DestroyType.d.ts +0 -0
- package/{Enums → types/Enums}/Types/DivType.d.ts +0 -0
- package/{Enums → types/Enums}/Types/EasingType.d.ts +0 -0
- package/{Enums → types/Enums}/Types/GradientType.d.ts +0 -0
- package/{Enums → types/Enums}/Types/InteractorType.d.ts +0 -0
- package/{Enums → types/Enums}/Types/ShapeType.d.ts +0 -0
- package/{Enums → types/Enums}/Types/StartValueType.d.ts +0 -0
- package/types/Interactions/External/Attract/Attractor.d.ts +24 -0
- package/{Interactions → types/Interactions}/External/Attract/index.d.ts +0 -0
- package/types/Interactions/External/Bounce/Bouncer.d.ts +11 -0
- package/{Interactions → types/Interactions}/External/Bounce/index.d.ts +0 -0
- package/types/Interactions/External/Bubble/Bubbler.d.ts +26 -0
- package/{Interactions → types/Interactions}/External/Bubble/IBubblerProcessParam.d.ts +0 -0
- package/{Interactions → types/Interactions}/External/Bubble/ProcessBubbleType.d.ts +0 -0
- package/{Interactions → types/Interactions}/External/Bubble/index.d.ts +0 -0
- package/types/Interactions/External/Connect/Connector.d.ts +8 -0
- package/{Interactions → types/Interactions}/External/Connect/index.d.ts +0 -0
- package/types/Interactions/External/Grab/Grabber.d.ts +8 -0
- package/{Interactions → types/Interactions}/External/Grab/index.d.ts +0 -0
- package/types/Interactions/External/Pause/Pauser.d.ts +9 -0
- package/types/Interactions/External/Pause/index.d.ts +2 -0
- package/types/Interactions/External/Push/Pusher.d.ts +10 -0
- package/types/Interactions/External/Push/index.d.ts +2 -0
- package/types/Interactions/External/Remove/Remover.d.ts +9 -0
- package/types/Interactions/External/Remove/index.d.ts +2 -0
- package/types/Interactions/External/Repulse/Repulser.d.ts +24 -0
- package/{Interactions → types/Interactions}/External/Repulse/index.d.ts +0 -0
- package/types/Interactions/External/Trail/TrailMaker.d.ts +11 -0
- package/{Interactions → types/Interactions}/External/Trail/index.d.ts +0 -0
- package/types/Interactions/Particles/Attract/Attractor.d.ts +10 -0
- package/{Interactions → types/Interactions}/Particles/Attract/index.d.ts +0 -0
- package/types/Interactions/Particles/Collisions/Collider.d.ts +11 -0
- package/{Interactions → types/Interactions}/Particles/Collisions/index.d.ts +0 -0
- package/{Interactions → types/Interactions}/Particles/Links/ILink.d.ts +0 -0
- package/types/Interactions/Particles/Links/LinkInstance.d.ts +12 -0
- package/types/Interactions/Particles/Links/LinkParticle.d.ts +5 -0
- package/types/Interactions/Particles/Links/Linker.d.ts +11 -0
- package/{Interactions → types/Interactions}/Particles/Links/index.d.ts +0 -0
- package/{Interactions → types/Interactions}/Particles/Links/interaction.d.ts +0 -0
- package/{Interactions → types/Interactions}/Particles/Links/plugin.d.ts +0 -0
- package/types/Movers/Base/BaseMover.d.ts +9 -0
- package/types/Movers/Base/IParticleSpin.d.ts +9 -0
- package/types/Movers/Base/Types.d.ts +8 -0
- package/types/Movers/Base/Utils.d.ts +7 -0
- package/types/Movers/Base/index.d.ts +2 -0
- package/types/Movers/Parallax/ParallaxMover.d.ts +7 -0
- package/types/Movers/Parallax/index.d.ts +2 -0
- package/types/Options/Classes/AnimatableColor.d.ts +12 -0
- package/types/Options/Classes/AnimatableGradient.d.ts +56 -0
- package/types/Options/Classes/AnimationOptions.d.ts +12 -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 +13 -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 +21 -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/Interactivity.d.ts +15 -0
- package/types/Options/Classes/Interactivity/Modes/Attract.d.ts +14 -0
- package/types/Options/Classes/Interactivity/Modes/Bounce.d.ts +8 -0
- package/types/Options/Classes/Interactivity/Modes/Bubble.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +14 -0
- package/types/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +12 -0
- package/types/Options/Classes/Interactivity/Modes/Connect.d.ts +15 -0
- package/types/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +8 -0
- package/types/Options/Classes/Interactivity/Modes/Grab.d.ts +14 -0
- package/types/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +12 -0
- package/types/Options/Classes/Interactivity/Modes/Light.d.ts +11 -0
- package/types/Options/Classes/Interactivity/Modes/LightArea.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Modes/LightGradient.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Modes/LightShadow.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +29 -0
- package/types/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
- package/types/Options/Classes/Interactivity/Modes/Remove.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Modes/Repulse.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +14 -0
- package/types/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +12 -0
- package/types/Options/Classes/Interactivity/Modes/Slow.d.ts +11 -0
- package/types/Options/Classes/Interactivity/Modes/Trail.d.ts +12 -0
- package/types/Options/Classes/ManualParticle.d.ts +10 -0
- package/types/Options/Classes/Motion/Motion.d.ts +10 -0
- package/types/Options/Classes/Motion/MotionReduce.d.ts +9 -0
- package/types/Options/Classes/Options.d.ts +49 -0
- package/types/Options/Classes/OptionsColor.d.ts +11 -0
- package/types/Options/Classes/Particles/Bounce/Bounce.d.ts +10 -0
- package/{Options → types/Options}/Classes/Particles/Bounce/BounceFactor.d.ts +0 -0
- package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +14 -0
- package/types/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
- package/types/Options/Classes/Particles/Destroy/Destroy.d.ts +11 -0
- package/types/Options/Classes/Particles/Destroy/Split.d.ts +15 -0
- package/{Options → types/Options}/Classes/Particles/Destroy/SplitFactor.d.ts +0 -0
- package/{Options → types/Options}/Classes/Particles/Destroy/SplitRate.d.ts +0 -0
- package/types/Options/Classes/Particles/Life/Life.d.ts +12 -0
- package/types/Options/Classes/Particles/Life/LifeDelay.d.ts +9 -0
- package/types/Options/Classes/Particles/Life/LifeDuration.d.ts +9 -0
- package/types/Options/Classes/Particles/Links/Links.d.ts +22 -0
- package/types/Options/Classes/Particles/Links/LinksShadow.d.ts +11 -0
- package/types/Options/Classes/Particles/Links/LinksTriangle.d.ts +12 -0
- package/types/Options/Classes/Particles/Move/Attract.d.ts +16 -0
- package/types/Options/Classes/Particles/Move/Move.d.ts +46 -0
- package/types/Options/Classes/Particles/Move/MoveAngle.d.ts +10 -0
- package/types/Options/Classes/Particles/Move/MoveGravity.d.ts +12 -0
- package/types/Options/Classes/Particles/Move/OutModes.d.ts +13 -0
- package/types/Options/Classes/Particles/Move/Path/Path.d.ts +14 -0
- package/{Options → types/Options}/Classes/Particles/Move/Path/PathDelay.d.ts +0 -0
- package/types/Options/Classes/Particles/Move/Spin.d.ts +12 -0
- package/types/Options/Classes/Particles/Move/Trail.d.ts +11 -0
- package/types/Options/Classes/Particles/Number/Density.d.ts +12 -0
- package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
- package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +12 -0
- package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +15 -0
- package/types/Options/Classes/Particles/Orbit/Orbit.d.ts +19 -0
- package/types/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +7 -0
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +59 -0
- package/types/Options/Classes/Particles/Repulse/Repulse.d.ts +14 -0
- package/types/Options/Classes/Particles/Roll/Roll.d.ts +17 -0
- package/types/Options/Classes/Particles/Roll/RollLight.d.ts +10 -0
- package/types/Options/Classes/Particles/Rotate/Rotate.d.ts +13 -0
- package/types/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +11 -0
- package/types/Options/Classes/Particles/Shadow.d.ts +13 -0
- package/types/Options/Classes/Particles/Shape/Shape.d.ts +29 -0
- package/types/Options/Classes/Particles/Size/Size.d.ts +12 -0
- package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +15 -0
- package/types/Options/Classes/Particles/Stroke.d.ts +11 -0
- package/types/Options/Classes/Particles/Tilt/Tilt.d.ts +13 -0
- package/types/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +11 -0
- package/types/Options/Classes/Particles/Twinkle/Twinkle.d.ts +10 -0
- package/types/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +13 -0
- package/types/Options/Classes/Particles/Wobble/Wobble.d.ts +11 -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 +11 -0
- package/{Options → types/Options}/Interfaces/Background/IBackground.d.ts +0 -0
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
- package/{Options → types/Options}/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/FullScreen/IFullScreen.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/IAnimatable.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/IAnimatableColor.d.ts +0 -0
- package/types/Options/Interfaces/IAnimatableGradient.d.ts +8 -0
- package/types/Options/Interfaces/IAnimation.d.ts +7 -0
- package/types/Options/Interfaces/IColorAnimation.d.ts +5 -0
- package/{Options → types/Options}/Interfaces/IHslAnimation.d.ts +0 -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 +36 -0
- package/types/Options/Interfaces/IOptionsColor.d.ts +2 -0
- package/types/Options/Interfaces/IOptionsGradient.d.ts +13 -0
- package/{Options → types/Options}/Interfaces/IRandom.d.ts +0 -0
- package/types/Options/Interfaces/IResponsive.d.ts +8 -0
- package/types/Options/Interfaces/IValueWithRandom.d.ts +6 -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 +13 -0
- package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Events/IParallax.d.ts +0 -0
- package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +9 -0
- package/types/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +9 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -0
- package/types/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +6 -0
- package/types/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +10 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/ILight.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -0
- package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IModes.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IPush.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -0
- package/types/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +6 -0
- package/types/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +9 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -0
- package/types/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +8 -0
- package/{Options → types/Options}/Interfaces/Motion/IMotion.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Motion/IMotionReduce.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Bounce/IBounce.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +9 -0
- package/{Options → types/Options}/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Destroy/ISplit.d.ts +10 -0
- package/types/Options/Interfaces/Particles/IParticles.d.ts +52 -0
- package/{Options → types/Options}/Interfaces/Particles/IShadow.d.ts +0 -0
- package/types/Options/Interfaces/Particles/IStroke.d.ts +7 -0
- package/{Options → types/Options}/Interfaces/Particles/Life/ILife.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Links/ILinks.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Move/IAttract.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Move/IMove.d.ts +36 -0
- package/types/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +7 -0
- package/types/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
- package/{Options → types/Options}/Interfaces/Particles/Move/ITrail.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Move/Path/IPath.d.ts +9 -0
- package/{Options → types/Options}/Interfaces/Particles/Number/IDensity.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +13 -0
- package/types/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Roll/IRoll.d.ts +13 -0
- package/types/Options/Interfaces/Particles/Roll/IRollLight.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Rotate/IRotate.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
- package/{Options → types/Options}/Interfaces/Particles/Shape/IImageShape.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +17 -0
- package/{Options → types/Options}/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Shape/IStarShape.d.ts +0 -0
- package/{Options → types/Options}/Interfaces/Particles/Size/ISize.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Tilt/ITilt.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +6 -0
- package/{Options → types/Options}/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -0
- package/types/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Wobble/IWobble.d.ts +6 -0
- package/{Options → types/Options}/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -0
- package/types/Options/Interfaces/Theme/ITheme.d.ts +8 -0
- package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
- package/types/Plugins/Absorbers/AbsorberContainer.d.ts +7 -0
- package/types/Plugins/Absorbers/AbsorberInstance.d.ts +36 -0
- package/types/Plugins/Absorbers/Absorbers.d.ts +26 -0
- package/{Plugins → types/Plugins}/Absorbers/Enums/AbsorberClickMode.d.ts +0 -0
- package/types/Plugins/Absorbers/Options/Classes/Absorber.d.ts +18 -0
- package/types/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +11 -0
- package/types/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +9 -0
- package/types/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +14 -0
- package/types/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +12 -0
- package/{Plugins → types/Plugins}/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -0
- package/{Plugins → types/Plugins}/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -0
- package/types/Plugins/Absorbers/index.d.ts +4 -0
- package/types/Plugins/Emitters/EmitterContainer.d.ts +10 -0
- package/types/Plugins/Emitters/EmitterInstance.d.ts +49 -0
- package/types/Plugins/Emitters/Emitters.d.ts +29 -0
- package/{Plugins → types/Plugins}/Emitters/EmittersEngine.d.ts +0 -0
- package/{Plugins → types/Plugins}/Emitters/Enums/EmitterClickMode.d.ts +0 -0
- package/{Plugins → types/Plugins}/Emitters/Enums/EmitterShapeType.d.ts +0 -0
- package/types/Plugins/Emitters/IEmitterShape.d.ts +5 -0
- package/types/Plugins/Emitters/Options/Classes/Emitter.d.ts +28 -0
- package/types/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +11 -0
- package/types/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +10 -0
- package/types/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +11 -0
- package/types/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +24 -0
- package/{Plugins → types/Plugins}/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -0
- package/types/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +12 -0
- package/types/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +5 -0
- package/types/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +5 -0
- package/{Plugins → types/Plugins}/Emitters/ShapeManager.d.ts +0 -0
- package/types/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +6 -0
- package/types/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +6 -0
- package/types/Plugins/Emitters/index.d.ts +6 -0
- package/{Plugins → types/Plugins}/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -0
- package/{Plugins → types/Plugins}/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -0
- package/{Plugins → types/Plugins}/PolygonMask/Enums/PolygonMaskType.d.ts +0 -0
- package/{Plugins → types/Plugins}/PolygonMask/Interfaces/ISvgPath.d.ts +0 -0
- package/types/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +25 -0
- package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +15 -0
- package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +11 -0
- package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
- package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
- package/types/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
- package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +19 -0
- package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
- package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
- package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
- package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +6 -0
- package/types/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
- package/{Plugins → types/Plugins}/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -0
- package/types/Plugins/PolygonMask/PolygonMaskInstance.d.ts +43 -0
- package/{Plugins → types/Plugins}/PolygonMask/Types.d.ts +0 -0
- package/types/Plugins/PolygonMask/Utils.d.ts +11 -0
- package/types/Plugins/PolygonMask/index.d.ts +6 -0
- package/{Plugins → types/Plugins}/PolygonMask/pathseg.d.ts +0 -0
- package/types/Shapes/Circle/CircleDrawer.d.ts +6 -0
- package/{Shapes → types/Shapes}/Circle/index.d.ts +0 -0
- package/types/Shapes/Image/ImageDrawer.d.ts +15 -0
- package/types/Shapes/Image/Utils.d.ts +30 -0
- package/{Shapes → types/Shapes}/Image/index.d.ts +0 -0
- package/types/Shapes/Line/LineDrawer.d.ts +6 -0
- package/{Shapes → types/Shapes}/Line/index.d.ts +0 -0
- package/types/Shapes/Polygon/PolygonDrawer.d.ts +8 -0
- package/types/Shapes/Polygon/PolygonDrawerBase.d.ts +17 -0
- package/types/Shapes/Polygon/TriangleDrawer.d.ts +9 -0
- package/{Shapes → types/Shapes}/Polygon/index.d.ts +0 -0
- package/types/Shapes/Square/SquareDrawer.d.ts +6 -0
- package/{Shapes → types/Shapes}/Square/index.d.ts +0 -0
- package/types/Shapes/Star/StarDrawer.d.ts +6 -0
- package/{Shapes → types/Shapes}/Star/index.d.ts +0 -0
- package/types/Shapes/Text/TextDrawer.d.ts +9 -0
- package/{Shapes → types/Shapes}/Text/index.d.ts +0 -0
- package/{Types → types/Types}/ParticlesGroups.d.ts +0 -0
- package/{Types → types/Types}/PathOptions.d.ts +0 -0
- package/{Types → types/Types}/RangeValue.d.ts +0 -0
- package/{Types → types/Types}/RecursivePartial.d.ts +0 -0
- package/types/Types/ShapeData.d.ts +5 -0
- package/types/Types/ShapeDrawerFunctions.d.ts +11 -0
- package/{Types → types/Types}/SingleOrMultiple.d.ts +0 -0
- package/types/Updaters/Angle/AngleUpdater.d.ts +11 -0
- package/{Updaters → types/Updaters}/Angle/index.d.ts +0 -0
- package/types/Updaters/Color/ColorUpdater.d.ts +11 -0
- package/{Updaters → types/Updaters}/Color/index.d.ts +0 -0
- package/types/Updaters/Life/LifeUpdater.d.ts +11 -0
- package/{Updaters → types/Updaters}/Life/index.d.ts +0 -0
- package/types/Updaters/Opacity/OpacityUpdater.d.ts +11 -0
- package/{Updaters → types/Updaters}/Opacity/index.d.ts +0 -0
- package/types/Updaters/OutModes/IBounceData.d.ts +15 -0
- package/types/Updaters/OutModes/OutOfCanvasUpdater.d.ts +16 -0
- package/{Updaters → types/Updaters}/OutModes/Utils.d.ts +0 -0
- package/{Updaters → types/Updaters}/OutModes/index.d.ts +0 -0
- package/types/Updaters/Roll/RollUpdater.d.ts +8 -0
- package/{Updaters → types/Updaters}/Roll/index.d.ts +0 -0
- package/types/Updaters/Size/SizeUpdater.d.ts +8 -0
- package/{Updaters → types/Updaters}/Size/index.d.ts +0 -0
- package/types/Updaters/StrokeColor/StrokeColorUpdater.d.ts +11 -0
- package/{Updaters → types/Updaters}/StrokeColor/index.d.ts +0 -0
- package/types/Updaters/Tilt/TiltUpdater.d.ts +11 -0
- package/{Updaters → types/Updaters}/Tilt/index.d.ts +0 -0
- package/types/Updaters/Twinkle/TwinkleUpdater.d.ts +9 -0
- package/types/Updaters/Twinkle/index.d.ts +2 -0
- package/types/Updaters/Wobble/WobbleUpdater.d.ts +17 -0
- package/{Updaters → types/Updaters}/Wobble/index.d.ts +0 -0
- package/types/Utils/CanvasUtils.d.ts +26 -0
- package/types/Utils/ColorUtils.d.ts +28 -0
- package/types/Utils/NumberUtils.d.ts +30 -0
- package/types/Utils/Utils.d.ts +43 -0
- package/types/engine.d.ts +36 -0
- package/{browser → types}/full.d.ts +0 -0
- package/types/index.d.ts +114 -0
- package/types/index.engine.d.ts +102 -0
- package/types/index.slim.d.ts +102 -0
- package/types/pjs.d.ts +14 -0
- package/{browser → types}/slim.d.ts +0 -0
- package/umd/Core/Canvas.js +65 -78
- package/umd/Core/Container.js +22 -16
- package/umd/Core/Interfaces/{IAttract.js → IParticleColorStyle.js} +0 -0
- package/umd/Core/Interfaces/{IBubble.js → IParticlesMover.js} +0 -0
- package/umd/Core/Interfaces/{IParticleGradientAnimation.js → IPositionFromSizeParams.js} +0 -0
- package/umd/Core/Loader.js +10 -14
- package/umd/Core/Particle.js +56 -75
- package/umd/Core/Particles.js +33 -35
- package/umd/Core/Retina.js +13 -22
- package/umd/Core/Utils/Circle.js +6 -15
- package/umd/Core/Utils/CircleWarp.js +2 -7
- package/umd/Core/Utils/EventListeners.js +24 -95
- package/umd/Core/Utils/FrameManager.js +1 -2
- package/umd/Core/Utils/InteractionManager.js +7 -0
- package/umd/Core/Utils/Plugins.js +16 -3
- package/umd/Core/Utils/QuadTree.js +21 -28
- package/umd/Core/Utils/Rectangle.js +6 -15
- package/umd/Core/Utils/Vector.js +13 -15
- package/umd/Core/Utils/Vector3d.js +17 -5
- package/umd/Interactions/External/Attract/Attractor.js +44 -10
- package/umd/Interactions/External/Bounce/Bouncer.js +18 -16
- package/umd/Interactions/External/Bubble/Bubbler.js +41 -18
- package/umd/Interactions/External/Connect/Connector.js +4 -4
- package/umd/Interactions/External/Grab/Grabber.js +32 -27
- package/umd/Interactions/External/Pause/Pauser.js +39 -0
- package/umd/Interactions/External/Pause/index.js +18 -0
- package/umd/Interactions/External/Push/Pusher.js +43 -0
- package/umd/Interactions/External/Push/index.js +18 -0
- package/umd/Interactions/External/Remove/Remover.js +36 -0
- package/umd/Interactions/External/Remove/index.js +18 -0
- package/umd/Interactions/External/Repulse/Repulser.js +47 -12
- package/umd/Interactions/External/Trail/TrailMaker.js +4 -4
- package/umd/Interactions/Particles/Attract/Attractor.js +5 -5
- package/umd/Interactions/Particles/Collisions/Collider.js +13 -21
- package/umd/Interactions/Particles/Links/LinkInstance.js +47 -65
- package/umd/Interactions/Particles/Links/Linker.js +17 -22
- package/umd/Movers/Base/BaseMover.js +90 -0
- package/umd/{Core/Interfaces/IParticleGradientColorAnimation.js → Movers/Base/IParticleSpin.js} +0 -0
- package/umd/{Core/Interfaces/IRepulse.js → Movers/Base/Types.js} +0 -0
- package/umd/Movers/Base/Utils.js +114 -0
- package/umd/Movers/Base/index.js +18 -0
- package/umd/Movers/Parallax/ParallaxMover.js +43 -0
- package/umd/Movers/Parallax/index.js +18 -0
- package/umd/Options/Classes/AnimatableGradient.js +7 -7
- package/umd/Options/Classes/AnimationOptions.js +4 -4
- package/umd/Options/Classes/ColorAnimation.js +5 -5
- package/umd/Options/Classes/Interactivity/Modes/Trail.js +2 -2
- package/umd/Options/Classes/ManualParticle.js +2 -2
- package/umd/Options/Classes/Options.js +2 -2
- package/umd/Options/Classes/Particles/Destroy/Split.js +2 -2
- package/umd/Options/Classes/Particles/Move/Attract.js +3 -3
- package/umd/Options/Classes/Particles/Move/Move.js +5 -4
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +4 -4
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +4 -4
- package/umd/Options/Classes/Particles/Move/Path/Path.js +2 -2
- package/umd/Options/Classes/Particles/Move/Spin.js +4 -3
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +3 -3
- package/umd/Options/Classes/Particles/Orbit/Orbit.js +5 -5
- package/umd/Options/Classes/Particles/ParticlesOptions.js +2 -2
- package/umd/Options/Classes/Particles/Repulse/Repulse.js +6 -6
- package/umd/Options/Classes/Particles/Roll/Roll.js +3 -3
- package/umd/Options/Classes/Particles/Roll/RollLight.js +3 -3
- package/umd/Options/Classes/Particles/Rotate/RotateAnimation.js +3 -3
- package/umd/Options/Classes/Particles/Shape/Shape.js +2 -2
- package/umd/Options/Classes/Particles/Size/Size.js +3 -3
- package/umd/Options/Classes/Particles/Tilt/TiltAnimation.js +3 -3
- package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.js +3 -3
- package/umd/Options/Classes/Particles/Wobble/Wobble.js +4 -4
- package/umd/Options/Classes/Responsive.js +2 -2
- package/umd/Options/Classes/Theme/Theme.js +2 -2
- package/umd/Options/Classes/ValueWithRandom.js +3 -3
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +5 -1
- package/umd/Plugins/Absorbers/AbsorberInstance.js +25 -29
- package/umd/Plugins/Absorbers/Absorbers.js +4 -7
- package/umd/Plugins/Absorbers/Options/Classes/Absorber.js +4 -4
- package/umd/Plugins/Absorbers/index.js +23 -10
- package/umd/Plugins/Emitters/EmitterInstance.js +23 -28
- package/umd/Plugins/Emitters/Emitters.js +4 -7
- package/umd/Plugins/Emitters/Options/Classes/Emitter.js +5 -4
- package/umd/Plugins/Emitters/Options/Classes/EmitterRate.js +4 -4
- package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -7
- package/umd/Plugins/Emitters/index.js +10 -3
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.js +2 -2
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +3 -3
- package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +27 -50
- package/umd/Plugins/PolygonMask/Utils.js +11 -18
- package/umd/Plugins/PolygonMask/index.js +15 -4
- package/umd/Shapes/Image/ImageDrawer.js +20 -20
- package/umd/Shapes/Image/Utils.js +3 -3
- package/umd/Shapes/Text/TextDrawer.js +2 -2
- package/umd/Updaters/Angle/AngleUpdater.js +4 -4
- package/umd/Updaters/Color/ColorUpdater.js +6 -5
- package/umd/Updaters/Life/LifeUpdater.js +7 -7
- package/umd/Updaters/Opacity/OpacityUpdater.js +11 -11
- package/umd/Updaters/OutModes/OutOfCanvasUpdater.js +2 -2
- package/umd/Updaters/OutModes/Utils.js +4 -4
- package/umd/Updaters/Roll/RollUpdater.js +8 -7
- package/umd/Updaters/Size/SizeUpdater.js +3 -3
- package/umd/Updaters/StrokeColor/StrokeColorUpdater.js +7 -5
- package/umd/Updaters/Tilt/TiltUpdater.js +4 -4
- package/umd/Updaters/Twinkle/TwinkleUpdater.js +31 -0
- package/umd/Updaters/Twinkle/index.js +18 -0
- package/umd/Updaters/Wobble/WobbleUpdater.js +4 -4
- package/umd/Utils/CanvasUtils.js +26 -57
- package/umd/Utils/ColorUtils.js +18 -34
- package/umd/Utils/NumberUtils.js +57 -11
- package/umd/Utils/Utils.js +32 -49
- package/umd/engine.js +9 -4
- package/umd/full.js +4 -2
- package/umd/index.engine.js +99 -7
- package/umd/index.js +111 -11
- package/umd/index.slim.js +98 -7
- package/umd/slim.js +11 -1
- package/Core/Canvas.d.ts +0 -35
- package/Core/Canvas.js +0 -319
- package/Core/Container.d.ts +0 -68
- package/Core/Container.js +0 -395
- package/Core/Interfaces/Colors.d.ts +0 -33
- package/Core/Interfaces/Gradients.d.ts +0 -21
- package/Core/Interfaces/IAttract.d.ts +0 -7
- package/Core/Interfaces/IBubble.d.ts +0 -4
- package/Core/Interfaces/ICircleBouncer.d.ts +0 -9
- package/Core/Interfaces/IContainerPlugin.d.ts +0 -32
- package/Core/Interfaces/ICoordinates.d.ts +0 -15
- package/Core/Interfaces/IExternalInteractor.d.ts +0 -6
- package/Core/Interfaces/IInteractor.d.ts +0 -6
- package/Core/Interfaces/IMovePathGenerator.d.ts +0 -8
- package/Core/Interfaces/IParticle.d.ts +0 -55
- package/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
- package/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
- package/Core/Interfaces/IParticleRoll.d.ts +0 -9
- package/Core/Interfaces/IParticleSpin.d.ts +0 -9
- package/Core/Interfaces/IParticleUpdater.d.ts +0 -9
- package/Core/Interfaces/IParticleValueAnimation.d.ts +0 -17
- package/Core/Interfaces/IPlugin.d.ts +0 -11
- package/Core/Interfaces/IRepulse.d.ts +0 -7
- package/Core/Interfaces/IShapeDrawer.d.ts +0 -10
- package/Core/Interfaces/IShapeValues.d.ts +0 -8
- package/Core/Interfaces/index.d.ts +0 -37
- package/Core/Interfaces/index.js +0 -49
- package/Core/Loader.d.ts +0 -32
- package/Core/Loader.js +0 -183
- package/Core/Particle.d.ts +0 -73
- package/Core/Particle.js +0 -386
- package/Core/Particles.d.ts +0 -46
- package/Core/Particles.js +0 -322
- package/Core/Retina.d.ts +0 -26
- package/Core/Retina.js +0 -97
- package/Core/Utils/Circle.d.ts +0 -8
- package/Core/Utils/Circle.js +0 -42
- package/Core/Utils/CircleWarp.d.ts +0 -9
- package/Core/Utils/CircleWarp.js +0 -60
- package/Core/Utils/EventListeners.js +0 -373
- package/Core/Utils/ExternalInteractorBase.d.ts +0 -12
- package/Core/Utils/FrameManager.js +0 -43
- package/Core/Utils/InteractionManager.d.ts +0 -14
- package/Core/Utils/InteractionManager.js +0 -59
- package/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
- package/Core/Utils/ParticlesMover.d.ts +0 -13
- package/Core/Utils/ParticlesMover.js +0 -186
- package/Core/Utils/Plugins.d.ts +0 -36
- package/Core/Utils/Plugins.js +0 -98
- package/Core/Utils/Point.d.ts +0 -7
- package/Core/Utils/QuadTree.d.ts +0 -23
- package/Core/Utils/QuadTree.js +0 -78
- package/Core/Utils/Range.d.ts +0 -7
- package/Core/Utils/Rectangle.d.ts +0 -8
- package/Core/Utils/Rectangle.js +0 -38
- package/Core/Utils/Vector.d.ts +0 -29
- package/Core/Utils/Vector.js +0 -96
- package/Core/Utils/Vector3d.d.ts +0 -18
- package/Core/Utils/Vector3d.js +0 -58
- package/Core/Utils/index.d.ts +0 -16
- package/Core/Utils/index.js +0 -28
- package/Core/index.d.ts +0 -8
- package/Core/index.js +0 -20
- package/Enums/Directions/index.d.ts +0 -4
- package/Enums/Directions/index.js +0 -16
- package/Enums/Modes/index.d.ts +0 -10
- package/Enums/Modes/index.js +0 -22
- package/Enums/Types/OrbitType.d.ts +0 -4
- package/Enums/Types/OrbitType.js +0 -2
- package/Enums/Types/index.d.ts +0 -9
- package/Enums/Types/index.js +0 -21
- package/Enums/index.d.ts +0 -5
- package/Enums/index.js +0 -17
- package/Interactions/External/Attract/Attractor.d.ts +0 -11
- package/Interactions/External/Attract/Attractor.js +0 -75
- package/Interactions/External/Bounce/Bouncer.d.ts +0 -11
- package/Interactions/External/Bounce/Bouncer.js +0 -67
- package/Interactions/External/Bubble/Bubbler.d.ts +0 -16
- package/Interactions/External/Bubble/Bubbler.js +0 -251
- package/Interactions/External/Connect/Connector.d.ts +0 -8
- package/Interactions/External/Connect/Connector.js +0 -41
- package/Interactions/External/Grab/Grabber.d.ts +0 -8
- package/Interactions/External/Grab/Grabber.js +0 -47
- package/Interactions/External/Repulse/Repulser.d.ts +0 -12
- package/Interactions/External/Repulse/Repulser.js +0 -98
- package/Interactions/External/Trail/TrailMaker.d.ts +0 -10
- package/Interactions/External/Trail/TrailMaker.js +0 -53
- package/Interactions/Particles/Attract/Attractor.d.ts +0 -8
- package/Interactions/Particles/Attract/Attractor.js +0 -30
- package/Interactions/Particles/Collisions/Collider.d.ts +0 -10
- package/Interactions/Particles/Collisions/Collider.js +0 -109
- package/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
- package/Interactions/Particles/Links/LinkInstance.js +0 -124
- package/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
- package/Interactions/Particles/Links/Linker.d.ts +0 -10
- package/Interactions/Particles/Links/Linker.js +0 -105
- package/Options/Classes/AnimatableColor.d.ts +0 -11
- package/Options/Classes/AnimatableGradient.d.ts +0 -53
- package/Options/Classes/AnimatableGradient.js +0 -146
- package/Options/Classes/AnimationOptions.d.ts +0 -11
- package/Options/Classes/AnimationOptions.js +0 -30
- package/Options/Classes/Background/Background.d.ts +0 -14
- package/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -11
- package/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -10
- package/Options/Classes/ColorAnimation.d.ts +0 -12
- package/Options/Classes/ColorAnimation.js +0 -34
- package/Options/Classes/FullScreen/FullScreen.d.ts +0 -9
- package/Options/Classes/HslAnimation.d.ts +0 -11
- package/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
- package/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -18
- package/Options/Classes/Interactivity/Events/Events.d.ts +0 -20
- package/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
- package/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
- package/Options/Classes/Interactivity/Interactivity.d.ts +0 -15
- package/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -14
- package/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
- package/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -9
- package/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -13
- package/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -11
- package/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -15
- package/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -8
- package/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -14
- package/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -12
- package/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
- package/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
- package/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
- package/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
- package/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -29
- package/Options/Classes/Interactivity/Modes/Push.d.ts +0 -12
- package/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -10
- package/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -9
- package/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -14
- package/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -11
- package/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -11
- package/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -12
- package/Options/Classes/Interactivity/Modes/Trail.js +0 -29
- package/Options/Classes/ManualParticle.d.ts +0 -10
- package/Options/Classes/ManualParticle.js +0 -22
- package/Options/Classes/Motion/Motion.d.ts +0 -10
- package/Options/Classes/Motion/MotionReduce.d.ts +0 -9
- package/Options/Classes/Options.d.ts +0 -48
- package/Options/Classes/Options.js +0 -174
- package/Options/Classes/OptionsColor.d.ts +0 -10
- package/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
- package/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -14
- package/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
- package/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
- package/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
- package/Options/Classes/Particles/Destroy/Split.js +0 -31
- package/Options/Classes/Particles/Life/Life.d.ts +0 -12
- package/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
- package/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
- package/Options/Classes/Particles/Links/Links.d.ts +0 -22
- package/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -11
- package/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -12
- package/Options/Classes/Particles/Move/Attract.d.ts +0 -15
- package/Options/Classes/Particles/Move/Attract.js +0 -47
- package/Options/Classes/Particles/Move/Move.d.ts +0 -44
- package/Options/Classes/Particles/Move/Move.js +0 -132
- package/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -9
- package/Options/Classes/Particles/Move/MoveAngle.js +0 -22
- package/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
- package/Options/Classes/Particles/Move/MoveGravity.js +0 -30
- package/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
- package/Options/Classes/Particles/Move/Path/Path.d.ts +0 -13
- package/Options/Classes/Particles/Move/Path/Path.js +0 -30
- package/Options/Classes/Particles/Move/Spin.d.ts +0 -11
- package/Options/Classes/Particles/Move/Spin.js +0 -23
- package/Options/Classes/Particles/Move/Trail.d.ts +0 -11
- package/Options/Classes/Particles/Number/Density.d.ts +0 -12
- package/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -13
- package/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -12
- package/Options/Classes/Particles/Opacity/Opacity.js +0 -33
- package/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -14
- package/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -18
- package/Options/Classes/Particles/Orbit/Orbit.js +0 -39
- package/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -7
- package/Options/Classes/Particles/ParticlesOptions.d.ts +0 -58
- package/Options/Classes/Particles/ParticlesOptions.js +0 -143
- package/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -13
- package/Options/Classes/Particles/Repulse/Repulse.js +0 -37
- package/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
- package/Options/Classes/Particles/Roll/Roll.js +0 -35
- package/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
- package/Options/Classes/Particles/Roll/RollLight.js +0 -22
- package/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -13
- package/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -10
- package/Options/Classes/Particles/Rotate/RotateAnimation.js +0 -26
- package/Options/Classes/Particles/Shadow.d.ts +0 -13
- package/Options/Classes/Particles/Shape/Shape.d.ts +0 -27
- package/Options/Classes/Particles/Shape/Shape.js +0 -103
- package/Options/Classes/Particles/Size/Size.d.ts +0 -12
- package/Options/Classes/Particles/Size/Size.js +0 -33
- package/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -14
- package/Options/Classes/Particles/Stroke.d.ts +0 -11
- package/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -13
- package/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -10
- package/Options/Classes/Particles/Tilt/TiltAnimation.js +0 -26
- package/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -10
- package/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -12
- package/Options/Classes/Particles/Twinkle/TwinkleValues.js +0 -30
- package/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
- package/Options/Classes/Particles/Wobble/Wobble.js +0 -26
- package/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -11
- package/Options/Classes/Random.d.ts +0 -9
- package/Options/Classes/Responsive.d.ts +0 -12
- package/Options/Classes/Responsive.js +0 -31
- package/Options/Classes/Theme/Theme.d.ts +0 -12
- package/Options/Classes/Theme/Theme.js +0 -24
- package/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
- package/Options/Classes/ValueWithRandom.d.ts +0 -10
- package/Options/Classes/ValueWithRandom.js +0 -26
- package/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -7
- package/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
- package/Options/Interfaces/IAnimation.d.ts +0 -7
- package/Options/Interfaces/IColorAnimation.d.ts +0 -5
- package/Options/Interfaces/IManualParticle.d.ts +0 -7
- package/Options/Interfaces/IOptionLoader.d.ts +0 -4
- package/Options/Interfaces/IOptions.d.ts +0 -34
- package/Options/Interfaces/IOptionsColor.d.ts +0 -2
- package/Options/Interfaces/IOptionsGradient.d.ts +0 -13
- package/Options/Interfaces/IResponsive.d.ts +0 -8
- package/Options/Interfaces/IValueWithRandom.d.ts +0 -6
- package/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -6
- package/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -11
- package/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -13
- package/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -8
- package/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
- package/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -9
- package/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -6
- package/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -10
- package/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -5
- package/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -6
- package/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -9
- package/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -8
- package/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -9
- package/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -6
- package/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
- package/Options/Interfaces/Particles/IParticles.d.ts +0 -52
- package/Options/Interfaces/Particles/IStroke.d.ts +0 -7
- package/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -9
- package/Options/Interfaces/Particles/Move/IMove.d.ts +0 -35
- package/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -5
- package/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
- package/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
- package/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
- package/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -9
- package/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -8
- package/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -13
- package/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -9
- package/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
- package/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
- package/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -8
- package/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -6
- package/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
- package/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -16
- package/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -13
- package/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -8
- package/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -8
- package/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -6
- package/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -8
- package/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
- package/Options/Interfaces/Theme/ITheme.d.ts +0 -8
- package/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
- package/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
- package/Plugins/Absorbers/AbsorberInstance.d.ts +0 -33
- package/Plugins/Absorbers/AbsorberInstance.js +0 -162
- package/Plugins/Absorbers/Absorbers.d.ts +0 -22
- package/Plugins/Absorbers/Absorbers.js +0 -118
- package/Plugins/Absorbers/Enums/index.d.ts +0 -1
- package/Plugins/Absorbers/Enums/index.js +0 -13
- package/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -18
- package/Plugins/Absorbers/Options/Classes/Absorber.js +0 -51
- package/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
- package/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
- package/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -13
- package/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -12
- package/Plugins/Absorbers/index.d.ts +0 -2
- package/Plugins/Absorbers/index.js +0 -80
- package/Plugins/Emitters/EmitterContainer.d.ts +0 -10
- package/Plugins/Emitters/EmitterInstance.d.ts +0 -45
- package/Plugins/Emitters/EmitterInstance.js +0 -269
- package/Plugins/Emitters/Emitters.d.ts +0 -25
- package/Plugins/Emitters/Emitters.js +0 -153
- package/Plugins/Emitters/Enums/index.d.ts +0 -2
- package/Plugins/Emitters/Enums/index.js +0 -14
- package/Plugins/Emitters/IEmitterShape.d.ts +0 -4
- package/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -28
- package/Plugins/Emitters/Options/Classes/Emitter.js +0 -67
- package/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -11
- package/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -9
- package/Plugins/Emitters/Options/Classes/EmitterRate.js +0 -22
- package/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -11
- package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -24
- package/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -12
- package/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -5
- package/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -5
- package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
- package/Plugins/Emitters/Shapes/Circle/CircleShape.js +0 -32
- package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
- package/Plugins/Emitters/index.d.ts +0 -3
- package/Plugins/Emitters/index.js +0 -110
- package/Plugins/PolygonMask/Enums/index.d.ts +0 -3
- package/Plugins/PolygonMask/Enums/index.js +0 -15
- package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -24
- package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +0 -66
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -15
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -11
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +0 -29
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -9
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -11
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -10
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -18
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -8
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -6
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -4
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -6
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -5
- package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -38
- package/Plugins/PolygonMask/PolygonMaskInstance.js +0 -386
- package/Plugins/PolygonMask/Utils.d.ts +0 -11
- package/Plugins/PolygonMask/Utils.js +0 -124
- package/Plugins/PolygonMask/index.d.ts +0 -2
- package/Plugins/PolygonMask/index.js +0 -56
- package/Shapes/Circle/CircleDrawer.d.ts +0 -5
- package/Shapes/Image/ImageDrawer.d.ts +0 -18
- package/Shapes/Image/ImageDrawer.js +0 -132
- package/Shapes/Image/Utils.d.ts +0 -28
- package/Shapes/Image/Utils.js +0 -89
- package/Shapes/Line/LineDrawer.d.ts +0 -5
- package/Shapes/Polygon/PolygonDrawer.d.ts +0 -7
- package/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -15
- package/Shapes/Polygon/TriangleDrawer.d.ts +0 -8
- package/Shapes/Square/SquareDrawer.d.ts +0 -5
- package/Shapes/Star/StarDrawer.d.ts +0 -5
- package/Shapes/Text/TextDrawer.d.ts +0 -7
- package/Shapes/Text/TextDrawer.js +0 -65
- package/Types/ShapeData.d.ts +0 -5
- package/Types/ShapeDrawerFunctions.d.ts +0 -11
- package/Types/index.d.ts +0 -6
- package/Types/index.js +0 -18
- package/Updaters/Angle/AngleUpdater.d.ts +0 -8
- package/Updaters/Angle/AngleUpdater.js +0 -79
- package/Updaters/Color/ColorUpdater.d.ts +0 -8
- package/Updaters/Color/ColorUpdater.js +0 -67
- package/Updaters/Life/LifeUpdater.d.ts +0 -8
- package/Updaters/Life/LifeUpdater.js +0 -67
- package/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
- package/Updaters/Opacity/OpacityUpdater.js +0 -122
- package/Updaters/OutModes/IBounceData.d.ts +0 -11
- package/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
- package/Updaters/OutModes/OutOfCanvasUpdater.js +0 -146
- package/Updaters/OutModes/Utils.js +0 -65
- package/Updaters/Roll/RollUpdater.d.ts +0 -6
- package/Updaters/Roll/RollUpdater.js +0 -63
- package/Updaters/Size/SizeUpdater.d.ts +0 -6
- package/Updaters/Size/SizeUpdater.js +0 -77
- package/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
- package/Updaters/StrokeColor/StrokeColorUpdater.js +0 -84
- package/Updaters/Tilt/TiltUpdater.d.ts +0 -8
- package/Updaters/Tilt/TiltUpdater.js +0 -79
- package/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
- package/Updaters/Wobble/WobbleUpdater.js +0 -51
- package/Utils/CanvasUtils.d.ts +0 -19
- package/Utils/CanvasUtils.js +0 -287
- package/Utils/ColorUtils.d.ts +0 -26
- package/Utils/ColorUtils.js +0 -476
- package/Utils/NumberUtils.d.ts +0 -23
- package/Utils/NumberUtils.js +0 -128
- package/Utils/Utils.d.ts +0 -38
- package/Utils/Utils.js +0 -269
- package/Utils/index.d.ts +0 -4
- package/Utils/index.js +0 -16
- package/browser/Core/Canvas.d.ts +0 -64
- package/browser/Core/Container.d.ts +0 -163
- package/browser/Core/Interfaces/Colors.d.ts +0 -56
- package/browser/Core/Interfaces/Gradients.d.ts +0 -21
- package/browser/Core/Interfaces/IAttract.d.ts +0 -10
- package/browser/Core/Interfaces/IBounds.d.ts +0 -9
- package/browser/Core/Interfaces/IBubble.d.ts +0 -7
- package/browser/Core/Interfaces/IBubbleParticleData.d.ts +0 -12
- package/browser/Core/Interfaces/ICircleBouncer.d.ts +0 -9
- package/browser/Core/Interfaces/IContainerInteractivity.d.ts +0 -9
- package/browser/Core/Interfaces/IContainerPlugin.d.ts +0 -35
- package/browser/Core/Interfaces/ICoordinates.d.ts +0 -18
- package/browser/Core/Interfaces/IDelta.d.ts +0 -7
- package/browser/Core/Interfaces/IDimension.d.ts +0 -7
- package/browser/Core/Interfaces/IDistance.d.ts +0 -4
- package/browser/Core/Interfaces/IExternalInteractor.d.ts +0 -9
- package/browser/Core/Interfaces/IInteractor.d.ts +0 -9
- package/browser/Core/Interfaces/IMouseData.d.ts +0 -12
- package/browser/Core/Interfaces/IMovePathGenerator.d.ts +0 -11
- package/browser/Core/Interfaces/IParticle.d.ts +0 -58
- package/browser/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
- package/browser/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
- package/browser/Core/Interfaces/IParticleGravity.d.ts +0 -5
- package/browser/Core/Interfaces/IParticleHslAnimation.d.ts +0 -6
- package/browser/Core/Interfaces/IParticleLife.d.ts +0 -7
- package/browser/Core/Interfaces/IParticleLoops.d.ts +0 -4
- package/browser/Core/Interfaces/IParticleRetinaProps.d.ts +0 -12
- package/browser/Core/Interfaces/IParticleRoll.d.ts +0 -9
- package/browser/Core/Interfaces/IParticleSpin.d.ts +0 -9
- package/browser/Core/Interfaces/IParticleUpdater.d.ts +0 -9
- package/browser/Core/Interfaces/IParticleValueAnimation.d.ts +0 -20
- package/browser/Core/Interfaces/IParticleWobble.d.ts +0 -4
- package/browser/Core/Interfaces/IParticlesFrequencies.d.ts +0 -4
- package/browser/Core/Interfaces/IParticlesInteractor.d.ts +0 -10
- package/browser/Core/Interfaces/IPlugin.d.ts +0 -19
- package/browser/Core/Interfaces/IRangeValue.d.ts +0 -4
- package/browser/Core/Interfaces/IRectSideResult.d.ts +0 -5
- package/browser/Core/Interfaces/IRepulse.d.ts +0 -10
- package/browser/Core/Interfaces/IShapeDrawer.d.ts +0 -13
- package/browser/Core/Interfaces/IShapeValues.d.ts +0 -11
- package/browser/Core/Interfaces/index.d.ts +0 -37
- package/browser/Core/Interfaces/index.js +0 -37
- package/browser/Core/Loader.d.ts +0 -77
- package/browser/Core/Particle.d.ts +0 -80
- package/browser/Core/Particles.d.ts +0 -59
- package/browser/Core/Retina.d.ts +0 -32
- package/browser/Core/Utils/Circle.d.ts +0 -11
- package/browser/Core/Utils/CircleWarp.d.ts +0 -12
- package/browser/Core/Utils/Constants.d.ts +0 -22
- package/browser/Core/Utils/EventListeners.d.ts +0 -65
- package/browser/Core/Utils/ExternalInteractorBase.d.ts +0 -12
- package/browser/Core/Utils/FrameManager.d.ts +0 -14
- package/browser/Core/Utils/InteractionManager.d.ts +0 -17
- package/browser/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
- package/browser/Core/Utils/ParticlesMover.d.ts +0 -16
- package/browser/Core/Utils/ParticlesMover.js +0 -187
- package/browser/Core/Utils/Plugins.d.ts +0 -39
- package/browser/Core/Utils/Point.d.ts +0 -10
- package/browser/Core/Utils/QuadTree.d.ts +0 -26
- package/browser/Core/Utils/Range.d.ts +0 -10
- package/browser/Core/Utils/Rectangle.d.ts +0 -11
- package/browser/Core/Utils/Vector.d.ts +0 -29
- package/browser/Core/Utils/Vector3d.d.ts +0 -18
- package/browser/Core/Utils/index.d.ts +0 -16
- package/browser/Core/Utils/index.js +0 -16
- package/browser/Core/index.d.ts +0 -8
- package/browser/Core/index.js +0 -8
- package/browser/Enums/AnimationStatus.d.ts +0 -4
- package/browser/Enums/Directions/MoveDirection.d.ts +0 -15
- package/browser/Enums/Directions/OutModeDirection.d.ts +0 -6
- package/browser/Enums/Directions/RotateDirection.d.ts +0 -9
- package/browser/Enums/Directions/TiltDirection.d.ts +0 -9
- package/browser/Enums/Directions/index.d.ts +0 -4
- package/browser/Enums/Directions/index.js +0 -4
- package/browser/Enums/InteractivityDetect.d.ts +0 -8
- package/browser/Enums/Modes/ClickMode.d.ts +0 -12
- package/browser/Enums/Modes/CollisionMode.d.ts +0 -8
- package/browser/Enums/Modes/DestroyMode.d.ts +0 -4
- package/browser/Enums/Modes/DivMode.d.ts +0 -8
- package/browser/Enums/Modes/HoverMode.d.ts +0 -14
- package/browser/Enums/Modes/OutMode.d.ts +0 -13
- package/browser/Enums/Modes/ResponsiveMode.d.ts +0 -4
- package/browser/Enums/Modes/RollMode.d.ts +0 -5
- package/browser/Enums/Modes/SizeMode.d.ts +0 -7
- package/browser/Enums/Modes/ThemeMode.d.ts +0 -5
- package/browser/Enums/Modes/index.d.ts +0 -10
- package/browser/Enums/Modes/index.js +0 -10
- package/browser/Enums/Types/AlterType.d.ts +0 -4
- package/browser/Enums/Types/DestroyType.d.ts +0 -8
- package/browser/Enums/Types/DivType.d.ts +0 -7
- package/browser/Enums/Types/EasingType.d.ts +0 -10
- package/browser/Enums/Types/GradientType.d.ts +0 -5
- package/browser/Enums/Types/InteractorType.d.ts +0 -4
- package/browser/Enums/Types/OrbitType.d.ts +0 -7
- package/browser/Enums/Types/ShapeType.d.ts +0 -16
- package/browser/Enums/Types/StartValueType.d.ts +0 -8
- package/browser/Enums/Types/index.d.ts +0 -9
- package/browser/Enums/Types/index.js +0 -9
- package/browser/Enums/index.d.ts +0 -5
- package/browser/Enums/index.js +0 -5
- package/browser/Interactions/External/Attract/Attractor.d.ts +0 -15
- package/browser/Interactions/External/Attract/index.d.ts +0 -2
- package/browser/Interactions/External/Bounce/Bouncer.d.ts +0 -11
- package/browser/Interactions/External/Bounce/index.d.ts +0 -2
- package/browser/Interactions/External/Bubble/Bubbler.d.ts +0 -20
- package/browser/Interactions/External/Bubble/IBubblerProcessParam.d.ts +0 -16
- package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +0 -8
- package/browser/Interactions/External/Bubble/index.d.ts +0 -2
- package/browser/Interactions/External/Connect/Connector.d.ts +0 -15
- package/browser/Interactions/External/Connect/index.d.ts +0 -2
- package/browser/Interactions/External/Grab/Grabber.d.ts +0 -12
- package/browser/Interactions/External/Grab/index.d.ts +0 -2
- package/browser/Interactions/External/Repulse/Repulser.d.ts +0 -16
- package/browser/Interactions/External/Repulse/index.d.ts +0 -2
- package/browser/Interactions/External/Trail/TrailMaker.d.ts +0 -13
- package/browser/Interactions/External/Trail/index.d.ts +0 -2
- package/browser/Interactions/Particles/Attract/Attractor.d.ts +0 -11
- package/browser/Interactions/Particles/Attract/index.d.ts +0 -2
- package/browser/Interactions/Particles/Collisions/Collider.d.ts +0 -13
- package/browser/Interactions/Particles/Collisions/index.d.ts +0 -2
- package/browser/Interactions/Particles/Links/ILink.d.ts +0 -15
- package/browser/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
- package/browser/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
- package/browser/Interactions/Particles/Links/Linker.d.ts +0 -10
- package/browser/Interactions/Particles/Links/index.d.ts +0 -2
- package/browser/Interactions/Particles/Links/interaction.d.ts +0 -2
- package/browser/Interactions/Particles/Links/plugin.d.ts +0 -2
- package/browser/Options/Classes/AnimatableColor.d.ts +0 -15
- package/browser/Options/Classes/AnimatableGradient.d.ts +0 -53
- package/browser/Options/Classes/AnimationOptions.d.ts +0 -11
- package/browser/Options/Classes/Background/Background.d.ts +0 -18
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -25
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -13
- package/browser/Options/Classes/ColorAnimation.d.ts +0 -15
- package/browser/Options/Classes/FullScreen/FullScreen.d.ts +0 -25
- package/browser/Options/Classes/HslAnimation.d.ts +0 -11
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -20
- package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -55
- package/browser/Options/Classes/Interactivity/Events/Events.d.ts +0 -51
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -16
- package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -13
- package/browser/Options/Classes/Interactivity/Interactivity.d.ts +0 -28
- package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -17
- package/browser/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
- package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -12
- package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -16
- package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -20
- package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -36
- package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -11
- package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -35
- package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -15
- package/browser/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
- package/browser/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
- package/browser/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
- package/browser/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
- package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -33
- package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +0 -24
- package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -22
- package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -12
- package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -17
- package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -20
- package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -20
- package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -15
- package/browser/Options/Classes/ManualParticle.d.ts +0 -10
- package/browser/Options/Classes/Motion/Motion.d.ts +0 -21
- package/browser/Options/Classes/Motion/MotionReduce.d.ts +0 -18
- package/browser/Options/Classes/Options.d.ts +0 -78
- package/browser/Options/Classes/OptionsColor.d.ts +0 -14
- package/browser/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
- package/browser/Options/Classes/Particles/Bounce/BounceFactor.d.ts +0 -4
- package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -18
- package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
- package/browser/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
- package/browser/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
- package/browser/Options/Classes/Particles/Destroy/SplitFactor.d.ts +0 -4
- package/browser/Options/Classes/Particles/Destroy/SplitRate.d.ts +0 -4
- package/browser/Options/Classes/Particles/Life/Life.d.ts +0 -12
- package/browser/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
- package/browser/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
- package/browser/Options/Classes/Particles/Links/Links.d.ts +0 -26
- package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -14
- package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -15
- package/browser/Options/Classes/Particles/Move/Attract.d.ts +0 -36
- package/browser/Options/Classes/Particles/Move/Move.d.ts +0 -86
- package/browser/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -12
- package/browser/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
- package/browser/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
- package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +0 -16
- package/browser/Options/Classes/Particles/Move/Path/PathDelay.d.ts +0 -4
- package/browser/Options/Classes/Particles/Move/Spin.d.ts +0 -11
- package/browser/Options/Classes/Particles/Move/Trail.d.ts +0 -14
- package/browser/Options/Classes/Particles/Number/Density.d.ts +0 -24
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -23
- package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -25
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -29
- package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -22
- package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -10
- package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +0 -80
- package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -16
- package/browser/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
- package/browser/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
- package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -17
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -13
- package/browser/Options/Classes/Particles/Shadow.d.ts +0 -17
- package/browser/Options/Classes/Particles/Shape/Shape.d.ts +0 -69
- package/browser/Options/Classes/Particles/Size/Size.d.ts +0 -25
- package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -29
- package/browser/Options/Classes/Particles/Stroke.d.ts +0 -15
- package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -17
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -13
- package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -14
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -15
- package/browser/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -14
- package/browser/Options/Classes/Random.d.ts +0 -9
- package/browser/Options/Classes/Responsive.d.ts +0 -12
- package/browser/Options/Classes/Theme/Theme.d.ts +0 -12
- package/browser/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
- package/browser/Options/Classes/ValueWithRandom.d.ts +0 -13
- package/browser/Options/Interfaces/Background/IBackground.d.ts +0 -44
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -28
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -15
- package/browser/Options/Interfaces/FullScreen/IFullScreen.d.ts +0 -20
- package/browser/Options/Interfaces/IAnimatable.d.ts +0 -4
- package/browser/Options/Interfaces/IAnimatableColor.d.ts +0 -14
- package/browser/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
- package/browser/Options/Interfaces/IAnimation.d.ts +0 -17
- package/browser/Options/Interfaces/IColorAnimation.d.ts +0 -12
- package/browser/Options/Interfaces/IHslAnimation.d.ts +0 -6
- package/browser/Options/Interfaces/IManualParticle.d.ts +0 -18
- package/browser/Options/Interfaces/IOptionLoader.d.ts +0 -13
- package/browser/Options/Interfaces/IOptions.d.ts +0 -105
- package/browser/Options/Interfaces/IOptionsColor.d.ts +0 -7
- package/browser/Options/Interfaces/IOptionsGradient.d.ts +0 -13
- package/browser/Options/Interfaces/IRandom.d.ts +0 -4
- package/browser/Options/Interfaces/IResponsive.d.ts +0 -8
- package/browser/Options/Interfaces/IValueWithRandom.d.ts +0 -9
- package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -18
- package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -24
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -26
- package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -12
- package/browser/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -8
- package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -29
- package/browser/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -12
- package/browser/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -3
- package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -9
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -13
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -7
- package/browser/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -17
- package/browser/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -6
- package/browser/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -16
- package/browser/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -10
- package/browser/Options/Interfaces/Interactivity/Modes/ILight.d.ts +0 -6
- package/browser/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -9
- package/browser/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -5
- package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -11
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -26
- package/browser/Options/Interfaces/Interactivity/Modes/IPush.d.ts +0 -12
- package/browser/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -10
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -9
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -12
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -7
- package/browser/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -11
- package/browser/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -11
- package/browser/Options/Interfaces/Motion/IMotion.d.ts +0 -16
- package/browser/Options/Interfaces/Motion/IMotionReduce.d.ts +0 -13
- package/browser/Options/Interfaces/Particles/Bounce/IBounce.d.ts +0 -5
- package/browser/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -13
- package/browser/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -4
- package/browser/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -10
- package/browser/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
- package/browser/Options/Interfaces/Particles/IParticles.d.ts +0 -62
- package/browser/Options/Interfaces/Particles/IShadow.d.ts +0 -12
- package/browser/Options/Interfaces/Particles/IStroke.d.ts +0 -21
- package/browser/Options/Interfaces/Particles/Life/ILife.d.ts +0 -7
- package/browser/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -4
- package/browser/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -4
- package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +0 -60
- package/browser/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -9
- package/browser/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -10
- package/browser/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -18
- package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +0 -54
- package/browser/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -8
- package/browser/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
- package/browser/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
- package/browser/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
- package/browser/Options/Interfaces/Particles/Move/ITrail.d.ts +0 -9
- package/browser/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -12
- package/browser/Options/Interfaces/Particles/Number/IDensity.d.ts +0 -12
- package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -14
- package/browser/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -13
- package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -17
- package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -20
- package/browser/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -13
- package/browser/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
- package/browser/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
- package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -12
- package/browser/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -9
- package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -11
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -14
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -11
- package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -38
- package/browser/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -12
- package/browser/Options/Interfaces/Particles/Size/ISize.d.ts +0 -13
- package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -17
- package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -12
- package/browser/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -9
- package/browser/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -9
- package/browser/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -11
- package/browser/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
- package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -10
- package/browser/Options/Interfaces/Theme/ITheme.d.ts +0 -22
- package/browser/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -22
- package/browser/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
- package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +0 -36
- package/browser/Plugins/Absorbers/Absorbers.d.ts +0 -25
- package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +0 -6
- package/browser/Plugins/Absorbers/Enums/index.d.ts +0 -1
- package/browser/Plugins/Absorbers/Enums/index.js +0 -1
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -22
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -42
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -15
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -6
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -4
- package/browser/Plugins/Absorbers/index.d.ts +0 -2
- package/browser/Plugins/Emitters/EmitterContainer.d.ts +0 -10
- package/browser/Plugins/Emitters/EmitterInstance.d.ts +0 -48
- package/browser/Plugins/Emitters/Emitters.d.ts +0 -28
- package/browser/Plugins/Emitters/EmittersEngine.d.ts +0 -7
- package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +0 -6
- package/browser/Plugins/Emitters/Enums/EmitterShapeType.d.ts +0 -4
- package/browser/Plugins/Emitters/Enums/index.d.ts +0 -2
- package/browser/Plugins/Emitters/Enums/index.js +0 -2
- package/browser/Plugins/Emitters/IEmitterShape.d.ts +0 -4
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -32
- package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -14
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -12
- package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -14
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -71
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -25
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -15
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -16
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -8
- package/browser/Plugins/Emitters/ShapeManager.d.ts +0 -9
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
- package/browser/Plugins/Emitters/index.d.ts +0 -3
- package/browser/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -8
- package/browser/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -4
- package/browser/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +0 -6
- package/browser/Plugins/PolygonMask/Enums/index.d.ts +0 -3
- package/browser/Plugins/PolygonMask/Enums/index.js +0 -3
- package/browser/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +0 -6
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -34
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -30
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -14
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -12
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -14
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -13
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -25
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -17
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -9
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -7
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -9
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -8
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -7
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -50
- package/browser/Plugins/PolygonMask/Types.d.ts +0 -8
- package/browser/Plugins/PolygonMask/Utils.d.ts +0 -11
- package/browser/Plugins/PolygonMask/index.d.ts +0 -2
- package/browser/Plugins/PolygonMask/pathseg.d.ts +0 -0
- package/browser/Shapes/Circle/CircleDrawer.d.ts +0 -8
- package/browser/Shapes/Circle/index.d.ts +0 -2
- package/browser/Shapes/Image/ImageDrawer.d.ts +0 -21
- package/browser/Shapes/Image/Utils.d.ts +0 -31
- package/browser/Shapes/Image/index.d.ts +0 -2
- package/browser/Shapes/Line/LineDrawer.d.ts +0 -8
- package/browser/Shapes/Line/index.d.ts +0 -2
- package/browser/Shapes/Polygon/PolygonDrawer.d.ts +0 -10
- package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -18
- package/browser/Shapes/Polygon/TriangleDrawer.d.ts +0 -11
- package/browser/Shapes/Polygon/index.d.ts +0 -4
- package/browser/Shapes/Square/SquareDrawer.d.ts +0 -8
- package/browser/Shapes/Square/index.d.ts +0 -2
- package/browser/Shapes/Star/StarDrawer.d.ts +0 -8
- package/browser/Shapes/Star/index.d.ts +0 -2
- package/browser/Shapes/Text/TextDrawer.d.ts +0 -10
- package/browser/Shapes/Text/index.d.ts +0 -2
- package/browser/Types/ParticlesGroups.d.ts +0 -8
- package/browser/Types/PathOptions.d.ts +0 -3
- package/browser/Types/RangeValue.d.ts +0 -2
- package/browser/Types/RecursivePartial.d.ts +0 -6
- package/browser/Types/ShapeData.d.ts +0 -8
- package/browser/Types/ShapeDrawerFunctions.d.ts +0 -32
- package/browser/Types/SingleOrMultiple.d.ts +0 -4
- package/browser/Types/index.d.ts +0 -6
- package/browser/Types/index.js +0 -6
- package/browser/Updaters/Angle/AngleUpdater.d.ts +0 -8
- package/browser/Updaters/Angle/index.d.ts +0 -2
- package/browser/Updaters/Color/ColorUpdater.d.ts +0 -8
- package/browser/Updaters/Color/index.d.ts +0 -2
- package/browser/Updaters/Life/LifeUpdater.d.ts +0 -8
- package/browser/Updaters/Life/index.d.ts +0 -2
- package/browser/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
- package/browser/Updaters/Opacity/index.d.ts +0 -2
- package/browser/Updaters/OutModes/IBounceData.d.ts +0 -11
- package/browser/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
- package/browser/Updaters/OutModes/Utils.d.ts +0 -3
- package/browser/Updaters/OutModes/index.d.ts +0 -2
- package/browser/Updaters/Roll/RollUpdater.d.ts +0 -6
- package/browser/Updaters/Roll/index.d.ts +0 -2
- package/browser/Updaters/Size/SizeUpdater.d.ts +0 -6
- package/browser/Updaters/Size/index.d.ts +0 -2
- package/browser/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
- package/browser/Updaters/StrokeColor/index.d.ts +0 -2
- package/browser/Updaters/Tilt/TiltUpdater.d.ts +0 -8
- package/browser/Updaters/Tilt/index.d.ts +0 -2
- package/browser/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
- package/browser/Updaters/Wobble/index.d.ts +0 -2
- package/browser/Utils/CanvasUtils.d.ts +0 -19
- package/browser/Utils/ColorUtils.d.ts +0 -46
- package/browser/Utils/NumberUtils.d.ts +0 -50
- package/browser/Utils/Utils.d.ts +0 -43
- package/browser/Utils/index.d.ts +0 -4
- package/browser/Utils/index.js +0 -4
- package/browser/engine.d.ts +0 -119
- package/browser/index.d.ts +0 -20
- package/browser/index.engine.d.ts +0 -13
- package/browser/index.slim.d.ts +0 -14
- package/browser/pjs.d.ts +0 -41
- package/engine.d.ts +0 -26
- package/engine.js +0 -98
- package/esm/Core/Canvas.d.ts +0 -35
- package/esm/Core/Container.d.ts +0 -68
- package/esm/Core/Interfaces/Colors.d.ts +0 -33
- package/esm/Core/Interfaces/Gradients.d.ts +0 -21
- package/esm/Core/Interfaces/IAttract.d.ts +0 -7
- package/esm/Core/Interfaces/IBounds.d.ts +0 -6
- package/esm/Core/Interfaces/IBubble.d.ts +0 -4
- package/esm/Core/Interfaces/IBubbleParticleData.d.ts +0 -9
- package/esm/Core/Interfaces/ICircleBouncer.d.ts +0 -9
- package/esm/Core/Interfaces/IContainerInteractivity.d.ts +0 -6
- package/esm/Core/Interfaces/IContainerPlugin.d.ts +0 -32
- package/esm/Core/Interfaces/ICoordinates.d.ts +0 -15
- package/esm/Core/Interfaces/IDelta.d.ts +0 -4
- package/esm/Core/Interfaces/IDimension.d.ts +0 -4
- package/esm/Core/Interfaces/IDistance.d.ts +0 -4
- package/esm/Core/Interfaces/IExternalInteractor.d.ts +0 -6
- package/esm/Core/Interfaces/IInteractor.d.ts +0 -6
- package/esm/Core/Interfaces/IMouseData.d.ts +0 -9
- package/esm/Core/Interfaces/IMovePathGenerator.d.ts +0 -8
- package/esm/Core/Interfaces/IParticle.d.ts +0 -55
- package/esm/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
- package/esm/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
- package/esm/Core/Interfaces/IParticleGravity.d.ts +0 -5
- package/esm/Core/Interfaces/IParticleHslAnimation.d.ts +0 -6
- package/esm/Core/Interfaces/IParticleLife.d.ts +0 -7
- package/esm/Core/Interfaces/IParticleLoops.d.ts +0 -4
- package/esm/Core/Interfaces/IParticleRetinaProps.d.ts +0 -12
- package/esm/Core/Interfaces/IParticleRoll.d.ts +0 -9
- package/esm/Core/Interfaces/IParticleSpin.d.ts +0 -9
- package/esm/Core/Interfaces/IParticleUpdater.d.ts +0 -9
- package/esm/Core/Interfaces/IParticleValueAnimation.d.ts +0 -17
- package/esm/Core/Interfaces/IParticleWobble.d.ts +0 -4
- package/esm/Core/Interfaces/IParticlesFrequencies.d.ts +0 -4
- package/esm/Core/Interfaces/IParticlesInteractor.d.ts +0 -7
- package/esm/Core/Interfaces/IPlugin.d.ts +0 -11
- package/esm/Core/Interfaces/IRangeValue.d.ts +0 -4
- package/esm/Core/Interfaces/IRectSideResult.d.ts +0 -5
- package/esm/Core/Interfaces/IRepulse.d.ts +0 -7
- package/esm/Core/Interfaces/IRepulse.js +0 -1
- package/esm/Core/Interfaces/IShapeDrawer.d.ts +0 -10
- package/esm/Core/Interfaces/IShapeValues.d.ts +0 -8
- package/esm/Core/Interfaces/index.d.ts +0 -37
- package/esm/Core/Interfaces/index.js +0 -37
- package/esm/Core/Loader.d.ts +0 -32
- package/esm/Core/Particle.d.ts +0 -73
- package/esm/Core/Particles.d.ts +0 -46
- package/esm/Core/Retina.d.ts +0 -26
- package/esm/Core/Utils/Circle.d.ts +0 -8
- package/esm/Core/Utils/CircleWarp.d.ts +0 -9
- package/esm/Core/Utils/Constants.d.ts +0 -18
- package/esm/Core/Utils/EventListeners.d.ts +0 -33
- package/esm/Core/Utils/ExternalInteractorBase.d.ts +0 -12
- package/esm/Core/Utils/FrameManager.d.ts +0 -6
- package/esm/Core/Utils/InteractionManager.d.ts +0 -14
- package/esm/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
- package/esm/Core/Utils/ParticlesMover.d.ts +0 -13
- package/esm/Core/Utils/ParticlesMover.js +0 -182
- package/esm/Core/Utils/Plugins.d.ts +0 -36
- package/esm/Core/Utils/Point.d.ts +0 -7
- package/esm/Core/Utils/QuadTree.d.ts +0 -23
- package/esm/Core/Utils/Range.d.ts +0 -7
- package/esm/Core/Utils/Rectangle.d.ts +0 -8
- package/esm/Core/Utils/Vector.d.ts +0 -29
- package/esm/Core/Utils/Vector3d.d.ts +0 -18
- package/esm/Core/Utils/index.d.ts +0 -16
- package/esm/Core/Utils/index.js +0 -16
- package/esm/Core/index.d.ts +0 -8
- package/esm/Core/index.js +0 -8
- package/esm/Enums/AnimationStatus.d.ts +0 -4
- package/esm/Enums/Directions/MoveDirection.d.ts +0 -12
- package/esm/Enums/Directions/OutModeDirection.d.ts +0 -6
- package/esm/Enums/Directions/RotateDirection.d.ts +0 -6
- package/esm/Enums/Directions/TiltDirection.d.ts +0 -6
- package/esm/Enums/Directions/index.d.ts +0 -4
- package/esm/Enums/Directions/index.js +0 -4
- package/esm/Enums/InteractivityDetect.d.ts +0 -5
- package/esm/Enums/Modes/ClickMode.d.ts +0 -9
- package/esm/Enums/Modes/CollisionMode.d.ts +0 -5
- package/esm/Enums/Modes/DestroyMode.d.ts +0 -4
- package/esm/Enums/Modes/DivMode.d.ts +0 -5
- package/esm/Enums/Modes/HoverMode.d.ts +0 -11
- package/esm/Enums/Modes/OutMode.d.ts +0 -10
- package/esm/Enums/Modes/ResponsiveMode.d.ts +0 -4
- package/esm/Enums/Modes/RollMode.d.ts +0 -5
- package/esm/Enums/Modes/SizeMode.d.ts +0 -4
- package/esm/Enums/Modes/ThemeMode.d.ts +0 -5
- package/esm/Enums/Modes/index.d.ts +0 -10
- package/esm/Enums/Modes/index.js +0 -10
- package/esm/Enums/Types/AlterType.d.ts +0 -4
- package/esm/Enums/Types/DestroyType.d.ts +0 -5
- package/esm/Enums/Types/DivType.d.ts +0 -4
- package/esm/Enums/Types/EasingType.d.ts +0 -10
- package/esm/Enums/Types/GradientType.d.ts +0 -5
- package/esm/Enums/Types/InteractorType.d.ts +0 -4
- package/esm/Enums/Types/OrbitType.d.ts +0 -4
- package/esm/Enums/Types/OrbitType.js +0 -1
- package/esm/Enums/Types/ShapeType.d.ts +0 -13
- package/esm/Enums/Types/StartValueType.d.ts +0 -5
- package/esm/Enums/Types/index.d.ts +0 -9
- package/esm/Enums/Types/index.js +0 -9
- package/esm/Enums/index.d.ts +0 -5
- package/esm/Enums/index.js +0 -5
- package/esm/Interactions/External/Attract/Attractor.d.ts +0 -11
- package/esm/Interactions/External/Attract/index.d.ts +0 -2
- package/esm/Interactions/External/Bounce/Bouncer.d.ts +0 -11
- package/esm/Interactions/External/Bounce/index.d.ts +0 -2
- package/esm/Interactions/External/Bubble/Bubbler.d.ts +0 -16
- package/esm/Interactions/External/Bubble/IBubblerProcessParam.d.ts +0 -10
- package/esm/Interactions/External/Bubble/ProcessBubbleType.d.ts +0 -5
- package/esm/Interactions/External/Bubble/index.d.ts +0 -2
- package/esm/Interactions/External/Connect/Connector.d.ts +0 -8
- package/esm/Interactions/External/Connect/index.d.ts +0 -2
- package/esm/Interactions/External/Grab/Grabber.d.ts +0 -8
- package/esm/Interactions/External/Grab/index.d.ts +0 -2
- package/esm/Interactions/External/Repulse/Repulser.d.ts +0 -12
- package/esm/Interactions/External/Repulse/index.d.ts +0 -2
- package/esm/Interactions/External/Trail/TrailMaker.d.ts +0 -10
- package/esm/Interactions/External/Trail/index.d.ts +0 -2
- package/esm/Interactions/Particles/Attract/Attractor.d.ts +0 -8
- package/esm/Interactions/Particles/Attract/index.d.ts +0 -2
- package/esm/Interactions/Particles/Collisions/Collider.d.ts +0 -10
- package/esm/Interactions/Particles/Collisions/index.d.ts +0 -2
- package/esm/Interactions/Particles/Links/ILink.d.ts +0 -9
- package/esm/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
- package/esm/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
- package/esm/Interactions/Particles/Links/Linker.d.ts +0 -10
- package/esm/Interactions/Particles/Links/index.d.ts +0 -2
- package/esm/Interactions/Particles/Links/interaction.d.ts +0 -2
- package/esm/Interactions/Particles/Links/plugin.d.ts +0 -2
- package/esm/Options/Classes/AnimatableColor.d.ts +0 -11
- package/esm/Options/Classes/AnimatableGradient.d.ts +0 -53
- package/esm/Options/Classes/AnimationOptions.d.ts +0 -11
- package/esm/Options/Classes/Background/Background.d.ts +0 -14
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -11
- package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -10
- package/esm/Options/Classes/ColorAnimation.d.ts +0 -12
- package/esm/Options/Classes/FullScreen/FullScreen.d.ts +0 -9
- package/esm/Options/Classes/HslAnimation.d.ts +0 -11
- package/esm/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
- package/esm/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -18
- package/esm/Options/Classes/Interactivity/Events/Events.d.ts +0 -20
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
- package/esm/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
- package/esm/Options/Classes/Interactivity/Interactivity.d.ts +0 -15
- package/esm/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -14
- package/esm/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
- package/esm/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -9
- package/esm/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -13
- package/esm/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -11
- package/esm/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -15
- package/esm/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -8
- package/esm/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -14
- package/esm/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -12
- package/esm/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
- package/esm/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
- package/esm/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
- package/esm/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
- package/esm/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -29
- package/esm/Options/Classes/Interactivity/Modes/Push.d.ts +0 -12
- package/esm/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -10
- package/esm/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -9
- package/esm/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -14
- package/esm/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -11
- package/esm/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -11
- package/esm/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -12
- package/esm/Options/Classes/ManualParticle.d.ts +0 -10
- package/esm/Options/Classes/Motion/Motion.d.ts +0 -10
- package/esm/Options/Classes/Motion/MotionReduce.d.ts +0 -9
- package/esm/Options/Classes/Options.d.ts +0 -48
- package/esm/Options/Classes/OptionsColor.d.ts +0 -10
- package/esm/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
- package/esm/Options/Classes/Particles/Bounce/BounceFactor.d.ts +0 -4
- package/esm/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -14
- package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
- package/esm/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
- package/esm/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
- package/esm/Options/Classes/Particles/Destroy/SplitFactor.d.ts +0 -4
- package/esm/Options/Classes/Particles/Destroy/SplitRate.d.ts +0 -4
- package/esm/Options/Classes/Particles/Life/Life.d.ts +0 -12
- package/esm/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
- package/esm/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
- package/esm/Options/Classes/Particles/Links/Links.d.ts +0 -22
- package/esm/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -11
- package/esm/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -12
- package/esm/Options/Classes/Particles/Move/Attract.d.ts +0 -15
- package/esm/Options/Classes/Particles/Move/Move.d.ts +0 -44
- package/esm/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -9
- package/esm/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
- package/esm/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
- package/esm/Options/Classes/Particles/Move/Path/Path.d.ts +0 -13
- package/esm/Options/Classes/Particles/Move/Path/PathDelay.d.ts +0 -4
- package/esm/Options/Classes/Particles/Move/Spin.d.ts +0 -11
- package/esm/Options/Classes/Particles/Move/Trail.d.ts +0 -11
- package/esm/Options/Classes/Particles/Number/Density.d.ts +0 -12
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -13
- package/esm/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -12
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -14
- package/esm/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -18
- package/esm/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -7
- package/esm/Options/Classes/Particles/ParticlesOptions.d.ts +0 -58
- package/esm/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -13
- package/esm/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
- package/esm/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
- package/esm/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -13
- package/esm/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -10
- package/esm/Options/Classes/Particles/Shadow.d.ts +0 -13
- package/esm/Options/Classes/Particles/Shape/Shape.d.ts +0 -27
- package/esm/Options/Classes/Particles/Size/Size.d.ts +0 -12
- package/esm/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -14
- package/esm/Options/Classes/Particles/Stroke.d.ts +0 -11
- package/esm/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -13
- package/esm/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -10
- package/esm/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -10
- package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -12
- package/esm/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -11
- package/esm/Options/Classes/Random.d.ts +0 -9
- package/esm/Options/Classes/Responsive.d.ts +0 -12
- package/esm/Options/Classes/Theme/Theme.d.ts +0 -12
- package/esm/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
- package/esm/Options/Classes/ValueWithRandom.d.ts +0 -10
- package/esm/Options/Interfaces/Background/IBackground.d.ts +0 -9
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -7
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -5
- package/esm/Options/Interfaces/FullScreen/IFullScreen.d.ts +0 -4
- package/esm/Options/Interfaces/IAnimatable.d.ts +0 -4
- package/esm/Options/Interfaces/IAnimatableColor.d.ts +0 -6
- package/esm/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
- package/esm/Options/Interfaces/IAnimation.d.ts +0 -7
- package/esm/Options/Interfaces/IColorAnimation.d.ts +0 -5
- package/esm/Options/Interfaces/IHslAnimation.d.ts +0 -6
- package/esm/Options/Interfaces/IManualParticle.d.ts +0 -7
- package/esm/Options/Interfaces/IOptionLoader.d.ts +0 -4
- package/esm/Options/Interfaces/IOptions.d.ts +0 -34
- package/esm/Options/Interfaces/IOptionsColor.d.ts +0 -2
- package/esm/Options/Interfaces/IOptionsGradient.d.ts +0 -13
- package/esm/Options/Interfaces/IRandom.d.ts +0 -4
- package/esm/Options/Interfaces/IResponsive.d.ts +0 -8
- package/esm/Options/Interfaces/IValueWithRandom.d.ts +0 -6
- package/esm/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -6
- package/esm/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -11
- package/esm/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -13
- package/esm/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -8
- package/esm/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -5
- package/esm/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
- package/esm/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -9
- package/esm/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -3
- package/esm/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -6
- package/esm/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -10
- package/esm/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -4
- package/esm/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -8
- package/esm/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -3
- package/esm/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -7
- package/esm/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -7
- package/esm/Options/Interfaces/Interactivity/Modes/ILight.d.ts +0 -6
- package/esm/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -9
- package/esm/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -5
- package/esm/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -5
- package/esm/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -22
- package/esm/Options/Interfaces/Interactivity/Modes/IPush.d.ts +0 -6
- package/esm/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -4
- package/esm/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -6
- package/esm/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -9
- package/esm/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -4
- package/esm/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -5
- package/esm/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -8
- package/esm/Options/Interfaces/Motion/IMotion.d.ts +0 -5
- package/esm/Options/Interfaces/Motion/IMotionReduce.d.ts +0 -4
- package/esm/Options/Interfaces/Particles/Bounce/IBounce.d.ts +0 -5
- package/esm/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -9
- package/esm/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -4
- package/esm/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
- package/esm/Options/Interfaces/Particles/IParticles.d.ts +0 -52
- package/esm/Options/Interfaces/Particles/IShadow.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/IStroke.d.ts +0 -7
- package/esm/Options/Interfaces/Particles/Life/ILife.d.ts +0 -7
- package/esm/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -4
- package/esm/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -4
- package/esm/Options/Interfaces/Particles/Links/ILinks.d.ts +0 -17
- package/esm/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -7
- package/esm/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -9
- package/esm/Options/Interfaces/Particles/Move/IMove.d.ts +0 -35
- package/esm/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -5
- package/esm/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
- package/esm/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
- package/esm/Options/Interfaces/Particles/Move/ITrail.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -9
- package/esm/Options/Interfaces/Particles/Number/IDensity.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -7
- package/esm/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -13
- package/esm/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -9
- package/esm/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
- package/esm/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
- package/esm/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
- package/esm/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -16
- package/esm/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Size/ISize.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -5
- package/esm/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -8
- package/esm/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
- package/esm/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -6
- package/esm/Options/Interfaces/Theme/ITheme.d.ts +0 -8
- package/esm/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
- package/esm/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
- package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +0 -33
- package/esm/Plugins/Absorbers/Absorbers.d.ts +0 -22
- package/esm/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +0 -3
- package/esm/Plugins/Absorbers/Enums/index.d.ts +0 -1
- package/esm/Plugins/Absorbers/Enums/index.js +0 -1
- package/esm/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -18
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -13
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -12
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -6
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -4
- package/esm/Plugins/Absorbers/index.d.ts +0 -2
- package/esm/Plugins/Emitters/EmitterContainer.d.ts +0 -10
- package/esm/Plugins/Emitters/EmitterInstance.d.ts +0 -45
- package/esm/Plugins/Emitters/Emitters.d.ts +0 -25
- package/esm/Plugins/Emitters/EmittersEngine.d.ts +0 -7
- package/esm/Plugins/Emitters/Enums/EmitterClickMode.d.ts +0 -3
- package/esm/Plugins/Emitters/Enums/EmitterShapeType.d.ts +0 -4
- package/esm/Plugins/Emitters/Enums/index.d.ts +0 -2
- package/esm/Plugins/Emitters/Enums/index.js +0 -2
- package/esm/Plugins/Emitters/IEmitterShape.d.ts +0 -4
- package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -28
- package/esm/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -11
- package/esm/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -9
- package/esm/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -11
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -24
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -6
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -12
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -5
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -5
- package/esm/Plugins/Emitters/ShapeManager.d.ts +0 -9
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
- package/esm/Plugins/Emitters/index.d.ts +0 -3
- package/esm/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -8
- package/esm/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -4
- package/esm/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +0 -6
- package/esm/Plugins/PolygonMask/Enums/index.d.ts +0 -3
- package/esm/Plugins/PolygonMask/Enums/index.js +0 -3
- package/esm/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +0 -6
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -24
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -15
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -11
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -9
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -11
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -10
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -18
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -8
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -6
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -4
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -6
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -5
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -4
- package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -38
- package/esm/Plugins/PolygonMask/Types.d.ts +0 -8
- package/esm/Plugins/PolygonMask/Utils.d.ts +0 -11
- package/esm/Plugins/PolygonMask/index.d.ts +0 -2
- package/esm/Plugins/PolygonMask/pathseg.d.ts +0 -0
- package/esm/Shapes/Circle/CircleDrawer.d.ts +0 -5
- package/esm/Shapes/Circle/index.d.ts +0 -2
- package/esm/Shapes/Image/ImageDrawer.d.ts +0 -18
- package/esm/Shapes/Image/Utils.d.ts +0 -28
- package/esm/Shapes/Image/index.d.ts +0 -2
- package/esm/Shapes/Line/LineDrawer.d.ts +0 -5
- package/esm/Shapes/Line/index.d.ts +0 -2
- package/esm/Shapes/Polygon/PolygonDrawer.d.ts +0 -7
- package/esm/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -15
- package/esm/Shapes/Polygon/TriangleDrawer.d.ts +0 -8
- package/esm/Shapes/Polygon/index.d.ts +0 -4
- package/esm/Shapes/Square/SquareDrawer.d.ts +0 -5
- package/esm/Shapes/Square/index.d.ts +0 -2
- package/esm/Shapes/Star/StarDrawer.d.ts +0 -5
- package/esm/Shapes/Star/index.d.ts +0 -2
- package/esm/Shapes/Text/TextDrawer.d.ts +0 -7
- package/esm/Shapes/Text/index.d.ts +0 -2
- package/esm/Types/ParticlesGroups.d.ts +0 -4
- package/esm/Types/PathOptions.d.ts +0 -3
- package/esm/Types/RangeValue.d.ts +0 -2
- package/esm/Types/RecursivePartial.d.ts +0 -3
- package/esm/Types/ShapeData.d.ts +0 -5
- package/esm/Types/ShapeDrawerFunctions.d.ts +0 -11
- package/esm/Types/SingleOrMultiple.d.ts +0 -1
- package/esm/Types/index.d.ts +0 -6
- package/esm/Types/index.js +0 -6
- package/esm/Updaters/Angle/AngleUpdater.d.ts +0 -8
- package/esm/Updaters/Angle/index.d.ts +0 -2
- package/esm/Updaters/Color/ColorUpdater.d.ts +0 -8
- package/esm/Updaters/Color/index.d.ts +0 -2
- package/esm/Updaters/Life/LifeUpdater.d.ts +0 -8
- package/esm/Updaters/Life/index.d.ts +0 -2
- package/esm/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
- package/esm/Updaters/Opacity/index.d.ts +0 -2
- package/esm/Updaters/OutModes/IBounceData.d.ts +0 -11
- package/esm/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
- package/esm/Updaters/OutModes/Utils.d.ts +0 -3
- package/esm/Updaters/OutModes/index.d.ts +0 -2
- package/esm/Updaters/Roll/RollUpdater.d.ts +0 -6
- package/esm/Updaters/Roll/index.d.ts +0 -2
- package/esm/Updaters/Size/SizeUpdater.d.ts +0 -6
- package/esm/Updaters/Size/index.d.ts +0 -2
- package/esm/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
- package/esm/Updaters/StrokeColor/index.d.ts +0 -2
- package/esm/Updaters/Tilt/TiltUpdater.d.ts +0 -8
- package/esm/Updaters/Tilt/index.d.ts +0 -2
- package/esm/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
- package/esm/Updaters/Wobble/index.d.ts +0 -2
- package/esm/Utils/CanvasUtils.d.ts +0 -19
- package/esm/Utils/ColorUtils.d.ts +0 -26
- package/esm/Utils/NumberUtils.d.ts +0 -23
- package/esm/Utils/Utils.d.ts +0 -38
- package/esm/Utils/index.d.ts +0 -4
- package/esm/Utils/index.js +0 -4
- package/esm/engine.d.ts +0 -26
- package/esm/full.d.ts +0 -2
- package/esm/index.d.ts +0 -20
- package/esm/index.engine.d.ts +0 -13
- package/esm/index.slim.d.ts +0 -14
- package/esm/pjs.d.ts +0 -14
- package/esm/slim.d.ts +0 -2
- package/full.d.ts +0 -2
- package/full.js +0 -22
- package/index.d.ts +0 -20
- package/index.engine.d.ts +0 -13
- package/index.engine.js +0 -27
- package/index.js +0 -33
- package/index.slim.d.ts +0 -14
- package/index.slim.js +0 -30
- package/pjs.d.ts +0 -14
- package/slim.d.ts +0 -2
- package/slim.js +0 -52
- package/umd/Core/Canvas.d.ts +0 -35
- package/umd/Core/Container.d.ts +0 -68
- package/umd/Core/Interfaces/Colors.d.ts +0 -33
- package/umd/Core/Interfaces/Gradients.d.ts +0 -21
- package/umd/Core/Interfaces/IAttract.d.ts +0 -7
- package/umd/Core/Interfaces/IBounds.d.ts +0 -6
- package/umd/Core/Interfaces/IBubble.d.ts +0 -4
- package/umd/Core/Interfaces/IBubbleParticleData.d.ts +0 -9
- package/umd/Core/Interfaces/ICircleBouncer.d.ts +0 -9
- package/umd/Core/Interfaces/IContainerInteractivity.d.ts +0 -6
- package/umd/Core/Interfaces/IContainerPlugin.d.ts +0 -32
- package/umd/Core/Interfaces/ICoordinates.d.ts +0 -15
- package/umd/Core/Interfaces/IDelta.d.ts +0 -4
- package/umd/Core/Interfaces/IDimension.d.ts +0 -4
- package/umd/Core/Interfaces/IDistance.d.ts +0 -4
- package/umd/Core/Interfaces/IExternalInteractor.d.ts +0 -6
- package/umd/Core/Interfaces/IInteractor.d.ts +0 -6
- package/umd/Core/Interfaces/IMouseData.d.ts +0 -9
- package/umd/Core/Interfaces/IMovePathGenerator.d.ts +0 -8
- package/umd/Core/Interfaces/IParticle.d.ts +0 -55
- package/umd/Core/Interfaces/IParticleGradientAnimation.d.ts +0 -8
- package/umd/Core/Interfaces/IParticleGradientColorAnimation.d.ts +0 -7
- package/umd/Core/Interfaces/IParticleGravity.d.ts +0 -5
- package/umd/Core/Interfaces/IParticleHslAnimation.d.ts +0 -6
- package/umd/Core/Interfaces/IParticleLife.d.ts +0 -7
- package/umd/Core/Interfaces/IParticleLoops.d.ts +0 -4
- package/umd/Core/Interfaces/IParticleRetinaProps.d.ts +0 -12
- package/umd/Core/Interfaces/IParticleRoll.d.ts +0 -9
- package/umd/Core/Interfaces/IParticleSpin.d.ts +0 -9
- package/umd/Core/Interfaces/IParticleUpdater.d.ts +0 -9
- package/umd/Core/Interfaces/IParticleValueAnimation.d.ts +0 -17
- package/umd/Core/Interfaces/IParticleWobble.d.ts +0 -4
- package/umd/Core/Interfaces/IParticlesFrequencies.d.ts +0 -4
- package/umd/Core/Interfaces/IParticlesInteractor.d.ts +0 -7
- package/umd/Core/Interfaces/IPlugin.d.ts +0 -11
- package/umd/Core/Interfaces/IRangeValue.d.ts +0 -4
- package/umd/Core/Interfaces/IRectSideResult.d.ts +0 -5
- package/umd/Core/Interfaces/IRepulse.d.ts +0 -7
- package/umd/Core/Interfaces/IShapeDrawer.d.ts +0 -10
- package/umd/Core/Interfaces/IShapeValues.d.ts +0 -8
- package/umd/Core/Interfaces/index.d.ts +0 -37
- package/umd/Core/Interfaces/index.js +0 -59
- package/umd/Core/Loader.d.ts +0 -32
- package/umd/Core/Particle.d.ts +0 -73
- package/umd/Core/Particles.d.ts +0 -46
- package/umd/Core/Retina.d.ts +0 -26
- package/umd/Core/Utils/Circle.d.ts +0 -8
- package/umd/Core/Utils/CircleWarp.d.ts +0 -9
- package/umd/Core/Utils/Constants.d.ts +0 -18
- package/umd/Core/Utils/EventListeners.d.ts +0 -33
- package/umd/Core/Utils/ExternalInteractorBase.d.ts +0 -12
- package/umd/Core/Utils/FrameManager.d.ts +0 -6
- package/umd/Core/Utils/InteractionManager.d.ts +0 -14
- package/umd/Core/Utils/ParticlesInteractorBase.d.ts +0 -12
- package/umd/Core/Utils/ParticlesMover.d.ts +0 -13
- package/umd/Core/Utils/ParticlesMover.js +0 -196
- package/umd/Core/Utils/Plugins.d.ts +0 -36
- package/umd/Core/Utils/Point.d.ts +0 -7
- package/umd/Core/Utils/QuadTree.d.ts +0 -23
- package/umd/Core/Utils/Range.d.ts +0 -7
- package/umd/Core/Utils/Rectangle.d.ts +0 -8
- package/umd/Core/Utils/Vector.d.ts +0 -29
- package/umd/Core/Utils/Vector3d.d.ts +0 -18
- package/umd/Core/Utils/index.d.ts +0 -16
- package/umd/Core/Utils/index.js +0 -38
- package/umd/Core/index.d.ts +0 -8
- package/umd/Core/index.js +0 -30
- package/umd/Enums/AnimationStatus.d.ts +0 -4
- package/umd/Enums/Directions/MoveDirection.d.ts +0 -12
- package/umd/Enums/Directions/OutModeDirection.d.ts +0 -6
- package/umd/Enums/Directions/RotateDirection.d.ts +0 -6
- package/umd/Enums/Directions/TiltDirection.d.ts +0 -6
- package/umd/Enums/Directions/index.d.ts +0 -4
- package/umd/Enums/Directions/index.js +0 -26
- package/umd/Enums/InteractivityDetect.d.ts +0 -5
- package/umd/Enums/Modes/ClickMode.d.ts +0 -9
- package/umd/Enums/Modes/CollisionMode.d.ts +0 -5
- package/umd/Enums/Modes/DestroyMode.d.ts +0 -4
- package/umd/Enums/Modes/DivMode.d.ts +0 -5
- package/umd/Enums/Modes/HoverMode.d.ts +0 -11
- package/umd/Enums/Modes/OutMode.d.ts +0 -10
- package/umd/Enums/Modes/ResponsiveMode.d.ts +0 -4
- package/umd/Enums/Modes/RollMode.d.ts +0 -5
- package/umd/Enums/Modes/SizeMode.d.ts +0 -4
- package/umd/Enums/Modes/ThemeMode.d.ts +0 -5
- package/umd/Enums/Modes/index.d.ts +0 -10
- package/umd/Enums/Modes/index.js +0 -32
- package/umd/Enums/Types/AlterType.d.ts +0 -4
- package/umd/Enums/Types/DestroyType.d.ts +0 -5
- package/umd/Enums/Types/DivType.d.ts +0 -4
- package/umd/Enums/Types/EasingType.d.ts +0 -10
- package/umd/Enums/Types/GradientType.d.ts +0 -5
- package/umd/Enums/Types/InteractorType.d.ts +0 -4
- package/umd/Enums/Types/OrbitType.d.ts +0 -4
- package/umd/Enums/Types/OrbitType.js +0 -12
- package/umd/Enums/Types/ShapeType.d.ts +0 -13
- package/umd/Enums/Types/StartValueType.d.ts +0 -5
- package/umd/Enums/Types/index.d.ts +0 -9
- package/umd/Enums/Types/index.js +0 -31
- package/umd/Enums/index.d.ts +0 -5
- package/umd/Enums/index.js +0 -27
- package/umd/Interactions/External/Attract/Attractor.d.ts +0 -11
- package/umd/Interactions/External/Attract/index.d.ts +0 -2
- package/umd/Interactions/External/Bounce/Bouncer.d.ts +0 -11
- package/umd/Interactions/External/Bounce/index.d.ts +0 -2
- package/umd/Interactions/External/Bubble/Bubbler.d.ts +0 -16
- package/umd/Interactions/External/Bubble/IBubblerProcessParam.d.ts +0 -10
- package/umd/Interactions/External/Bubble/ProcessBubbleType.d.ts +0 -5
- package/umd/Interactions/External/Bubble/index.d.ts +0 -2
- package/umd/Interactions/External/Connect/Connector.d.ts +0 -8
- package/umd/Interactions/External/Connect/index.d.ts +0 -2
- package/umd/Interactions/External/Grab/Grabber.d.ts +0 -8
- package/umd/Interactions/External/Grab/index.d.ts +0 -2
- package/umd/Interactions/External/Repulse/Repulser.d.ts +0 -12
- package/umd/Interactions/External/Repulse/index.d.ts +0 -2
- package/umd/Interactions/External/Trail/TrailMaker.d.ts +0 -10
- package/umd/Interactions/External/Trail/index.d.ts +0 -2
- package/umd/Interactions/Particles/Attract/Attractor.d.ts +0 -8
- package/umd/Interactions/Particles/Attract/index.d.ts +0 -2
- package/umd/Interactions/Particles/Collisions/Collider.d.ts +0 -10
- package/umd/Interactions/Particles/Collisions/index.d.ts +0 -2
- package/umd/Interactions/Particles/Links/ILink.d.ts +0 -9
- package/umd/Interactions/Particles/Links/LinkInstance.d.ts +0 -10
- package/umd/Interactions/Particles/Links/LinkParticle.d.ts +0 -5
- package/umd/Interactions/Particles/Links/Linker.d.ts +0 -10
- package/umd/Interactions/Particles/Links/index.d.ts +0 -2
- package/umd/Interactions/Particles/Links/interaction.d.ts +0 -2
- package/umd/Interactions/Particles/Links/plugin.d.ts +0 -2
- package/umd/Options/Classes/AnimatableColor.d.ts +0 -11
- package/umd/Options/Classes/AnimatableGradient.d.ts +0 -53
- package/umd/Options/Classes/AnimationOptions.d.ts +0 -11
- package/umd/Options/Classes/Background/Background.d.ts +0 -14
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.d.ts +0 -11
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +0 -10
- package/umd/Options/Classes/ColorAnimation.d.ts +0 -12
- package/umd/Options/Classes/FullScreen/FullScreen.d.ts +0 -9
- package/umd/Options/Classes/HslAnimation.d.ts +0 -11
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
- package/umd/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -18
- package/umd/Options/Classes/Interactivity/Events/Events.d.ts +0 -20
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
- package/umd/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
- package/umd/Options/Classes/Interactivity/Interactivity.d.ts +0 -15
- package/umd/Options/Classes/Interactivity/Modes/Attract.d.ts +0 -14
- package/umd/Options/Classes/Interactivity/Modes/Bounce.d.ts +0 -8
- package/umd/Options/Classes/Interactivity/Modes/Bubble.d.ts +0 -9
- package/umd/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +0 -13
- package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +0 -11
- package/umd/Options/Classes/Interactivity/Modes/Connect.d.ts +0 -15
- package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +0 -8
- package/umd/Options/Classes/Interactivity/Modes/Grab.d.ts +0 -14
- package/umd/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +0 -12
- package/umd/Options/Classes/Interactivity/Modes/Light.d.ts +0 -11
- package/umd/Options/Classes/Interactivity/Modes/LightArea.d.ts +0 -10
- package/umd/Options/Classes/Interactivity/Modes/LightGradient.d.ts +0 -10
- package/umd/Options/Classes/Interactivity/Modes/LightShadow.d.ts +0 -10
- package/umd/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -29
- package/umd/Options/Classes/Interactivity/Modes/Push.d.ts +0 -12
- package/umd/Options/Classes/Interactivity/Modes/Remove.d.ts +0 -10
- package/umd/Options/Classes/Interactivity/Modes/Repulse.d.ts +0 -9
- package/umd/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +0 -14
- package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +0 -11
- package/umd/Options/Classes/Interactivity/Modes/Slow.d.ts +0 -11
- package/umd/Options/Classes/Interactivity/Modes/Trail.d.ts +0 -12
- package/umd/Options/Classes/ManualParticle.d.ts +0 -10
- package/umd/Options/Classes/Motion/Motion.d.ts +0 -10
- package/umd/Options/Classes/Motion/MotionReduce.d.ts +0 -9
- package/umd/Options/Classes/Options.d.ts +0 -48
- package/umd/Options/Classes/OptionsColor.d.ts +0 -10
- package/umd/Options/Classes/Particles/Bounce/Bounce.d.ts +0 -10
- package/umd/Options/Classes/Particles/Bounce/BounceFactor.d.ts +0 -4
- package/umd/Options/Classes/Particles/Collisions/Collisions.d.ts +0 -14
- package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +0 -9
- package/umd/Options/Classes/Particles/Destroy/Destroy.d.ts +0 -11
- package/umd/Options/Classes/Particles/Destroy/Split.d.ts +0 -15
- package/umd/Options/Classes/Particles/Destroy/SplitFactor.d.ts +0 -4
- package/umd/Options/Classes/Particles/Destroy/SplitRate.d.ts +0 -4
- package/umd/Options/Classes/Particles/Life/Life.d.ts +0 -12
- package/umd/Options/Classes/Particles/Life/LifeDelay.d.ts +0 -9
- package/umd/Options/Classes/Particles/Life/LifeDuration.d.ts +0 -9
- package/umd/Options/Classes/Particles/Links/Links.d.ts +0 -22
- package/umd/Options/Classes/Particles/Links/LinksShadow.d.ts +0 -11
- package/umd/Options/Classes/Particles/Links/LinksTriangle.d.ts +0 -12
- package/umd/Options/Classes/Particles/Move/Attract.d.ts +0 -15
- package/umd/Options/Classes/Particles/Move/Move.d.ts +0 -44
- package/umd/Options/Classes/Particles/Move/MoveAngle.d.ts +0 -9
- package/umd/Options/Classes/Particles/Move/MoveGravity.d.ts +0 -11
- package/umd/Options/Classes/Particles/Move/OutModes.d.ts +0 -13
- package/umd/Options/Classes/Particles/Move/Path/Path.d.ts +0 -13
- package/umd/Options/Classes/Particles/Move/Path/PathDelay.d.ts +0 -4
- package/umd/Options/Classes/Particles/Move/Spin.d.ts +0 -11
- package/umd/Options/Classes/Particles/Move/Trail.d.ts +0 -11
- package/umd/Options/Classes/Particles/Number/Density.d.ts +0 -12
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -13
- package/umd/Options/Classes/Particles/Opacity/Opacity.d.ts +0 -12
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -14
- package/umd/Options/Classes/Particles/Orbit/Orbit.d.ts +0 -18
- package/umd/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +0 -7
- package/umd/Options/Classes/Particles/ParticlesOptions.d.ts +0 -58
- package/umd/Options/Classes/Particles/Repulse/Repulse.d.ts +0 -13
- package/umd/Options/Classes/Particles/Roll/Roll.d.ts +0 -16
- package/umd/Options/Classes/Particles/Roll/RollLight.d.ts +0 -9
- package/umd/Options/Classes/Particles/Rotate/Rotate.d.ts +0 -13
- package/umd/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +0 -10
- package/umd/Options/Classes/Particles/Shadow.d.ts +0 -13
- package/umd/Options/Classes/Particles/Shape/Shape.d.ts +0 -27
- package/umd/Options/Classes/Particles/Size/Size.d.ts +0 -12
- package/umd/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -14
- package/umd/Options/Classes/Particles/Stroke.d.ts +0 -11
- package/umd/Options/Classes/Particles/Tilt/Tilt.d.ts +0 -13
- package/umd/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +0 -10
- package/umd/Options/Classes/Particles/Twinkle/Twinkle.d.ts +0 -10
- package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +0 -12
- package/umd/Options/Classes/Particles/Wobble/Wobble.d.ts +0 -10
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.d.ts +0 -11
- package/umd/Options/Classes/Random.d.ts +0 -9
- package/umd/Options/Classes/Responsive.d.ts +0 -12
- package/umd/Options/Classes/Theme/Theme.d.ts +0 -12
- package/umd/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
- package/umd/Options/Classes/ValueWithRandom.d.ts +0 -10
- package/umd/Options/Interfaces/Background/IBackground.d.ts +0 -9
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +0 -7
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +0 -5
- package/umd/Options/Interfaces/FullScreen/IFullScreen.d.ts +0 -4
- package/umd/Options/Interfaces/IAnimatable.d.ts +0 -4
- package/umd/Options/Interfaces/IAnimatableColor.d.ts +0 -6
- package/umd/Options/Interfaces/IAnimatableGradient.d.ts +0 -8
- package/umd/Options/Interfaces/IAnimation.d.ts +0 -7
- package/umd/Options/Interfaces/IColorAnimation.d.ts +0 -5
- package/umd/Options/Interfaces/IHslAnimation.d.ts +0 -6
- package/umd/Options/Interfaces/IManualParticle.d.ts +0 -7
- package/umd/Options/Interfaces/IOptionLoader.d.ts +0 -4
- package/umd/Options/Interfaces/IOptions.d.ts +0 -34
- package/umd/Options/Interfaces/IOptionsColor.d.ts +0 -2
- package/umd/Options/Interfaces/IOptionsGradient.d.ts +0 -13
- package/umd/Options/Interfaces/IRandom.d.ts +0 -4
- package/umd/Options/Interfaces/IResponsive.d.ts +0 -8
- package/umd/Options/Interfaces/IValueWithRandom.d.ts +0 -6
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -6
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -11
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -13
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -8
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -5
- package/umd/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
- package/umd/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +0 -9
- package/umd/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +0 -3
- package/umd/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +0 -6
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +0 -10
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +0 -4
- package/umd/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +0 -8
- package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +0 -3
- package/umd/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +0 -7
- package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +0 -7
- package/umd/Options/Interfaces/Interactivity/Modes/ILight.d.ts +0 -6
- package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +0 -9
- package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +0 -5
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -5
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -22
- package/umd/Options/Interfaces/Interactivity/Modes/IPush.d.ts +0 -6
- package/umd/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +0 -4
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +0 -6
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +0 -9
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +0 -4
- package/umd/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +0 -5
- package/umd/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +0 -8
- package/umd/Options/Interfaces/Motion/IMotion.d.ts +0 -5
- package/umd/Options/Interfaces/Motion/IMotionReduce.d.ts +0 -4
- package/umd/Options/Interfaces/Particles/Bounce/IBounce.d.ts +0 -5
- package/umd/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +0 -9
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +0 -4
- package/umd/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Destroy/ISplit.d.ts +0 -10
- package/umd/Options/Interfaces/Particles/IParticles.d.ts +0 -52
- package/umd/Options/Interfaces/Particles/IShadow.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/IStroke.d.ts +0 -7
- package/umd/Options/Interfaces/Particles/Life/ILife.d.ts +0 -7
- package/umd/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +0 -4
- package/umd/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +0 -4
- package/umd/Options/Interfaces/Particles/Links/ILinks.d.ts +0 -17
- package/umd/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +0 -7
- package/umd/Options/Interfaces/Particles/Move/IAttract.d.ts +0 -9
- package/umd/Options/Interfaces/Particles/Move/IMove.d.ts +0 -35
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +0 -5
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +0 -7
- package/umd/Options/Interfaces/Particles/Move/IOutModes.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Move/ISpin.d.ts +0 -7
- package/umd/Options/Interfaces/Particles/Move/ITrail.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Move/Path/IPath.d.ts +0 -9
- package/umd/Options/Interfaces/Particles/Number/IDensity.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -7
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +0 -13
- package/umd/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +0 -9
- package/umd/Options/Interfaces/Particles/Roll/IRoll.d.ts +0 -12
- package/umd/Options/Interfaces/Particles/Roll/IRollLight.d.ts +0 -5
- package/umd/Options/Interfaces/Particles/Rotate/IRotate.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
- package/umd/Options/Interfaces/Particles/Shape/IShape.d.ts +0 -16
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Size/ISize.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Tilt/ITilt.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +0 -5
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +0 -8
- package/umd/Options/Interfaces/Particles/Wobble/IWobble.d.ts +0 -6
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +0 -6
- package/umd/Options/Interfaces/Theme/ITheme.d.ts +0 -8
- package/umd/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
- package/umd/Plugins/Absorbers/AbsorberContainer.d.ts +0 -7
- package/umd/Plugins/Absorbers/AbsorberInstance.d.ts +0 -33
- package/umd/Plugins/Absorbers/Absorbers.d.ts +0 -22
- package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +0 -3
- package/umd/Plugins/Absorbers/Enums/index.d.ts +0 -1
- package/umd/Plugins/Absorbers/Enums/index.js +0 -23
- package/umd/Plugins/Absorbers/Options/Classes/Absorber.d.ts +0 -18
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +0 -11
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +0 -9
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +0 -13
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +0 -12
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +0 -6
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +0 -4
- package/umd/Plugins/Absorbers/index.d.ts +0 -2
- package/umd/Plugins/Emitters/EmitterContainer.d.ts +0 -10
- package/umd/Plugins/Emitters/EmitterInstance.d.ts +0 -45
- package/umd/Plugins/Emitters/Emitters.d.ts +0 -25
- package/umd/Plugins/Emitters/EmittersEngine.d.ts +0 -7
- package/umd/Plugins/Emitters/Enums/EmitterClickMode.d.ts +0 -3
- package/umd/Plugins/Emitters/Enums/EmitterShapeType.d.ts +0 -4
- package/umd/Plugins/Emitters/Enums/index.d.ts +0 -2
- package/umd/Plugins/Emitters/Enums/index.js +0 -24
- package/umd/Plugins/Emitters/IEmitterShape.d.ts +0 -4
- package/umd/Plugins/Emitters/Options/Classes/Emitter.d.ts +0 -28
- package/umd/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +0 -11
- package/umd/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +0 -9
- package/umd/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +0 -11
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +0 -24
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +0 -6
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +0 -12
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +0 -5
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +0 -5
- package/umd/Plugins/Emitters/ShapeManager.d.ts +0 -9
- package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +0 -5
- package/umd/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +0 -5
- package/umd/Plugins/Emitters/index.d.ts +0 -3
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +0 -8
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +0 -4
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +0 -6
- package/umd/Plugins/PolygonMask/Enums/index.d.ts +0 -3
- package/umd/Plugins/PolygonMask/Enums/index.js +0 -25
- package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +0 -6
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +0 -24
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +0 -15
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +0 -11
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +0 -9
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +0 -11
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +0 -10
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +0 -18
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +0 -8
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +0 -6
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +0 -4
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +0 -6
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +0 -5
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +0 -4
- package/umd/Plugins/PolygonMask/PolygonMaskInstance.d.ts +0 -38
- package/umd/Plugins/PolygonMask/Types.d.ts +0 -8
- package/umd/Plugins/PolygonMask/Utils.d.ts +0 -11
- package/umd/Plugins/PolygonMask/index.d.ts +0 -2
- package/umd/Plugins/PolygonMask/pathseg.d.ts +0 -0
- package/umd/Shapes/Circle/CircleDrawer.d.ts +0 -5
- package/umd/Shapes/Circle/index.d.ts +0 -2
- package/umd/Shapes/Image/ImageDrawer.d.ts +0 -18
- package/umd/Shapes/Image/Utils.d.ts +0 -28
- package/umd/Shapes/Image/index.d.ts +0 -2
- package/umd/Shapes/Line/LineDrawer.d.ts +0 -5
- package/umd/Shapes/Line/index.d.ts +0 -2
- package/umd/Shapes/Polygon/PolygonDrawer.d.ts +0 -7
- package/umd/Shapes/Polygon/PolygonDrawerBase.d.ts +0 -15
- package/umd/Shapes/Polygon/TriangleDrawer.d.ts +0 -8
- package/umd/Shapes/Polygon/index.d.ts +0 -4
- package/umd/Shapes/Square/SquareDrawer.d.ts +0 -5
- package/umd/Shapes/Square/index.d.ts +0 -2
- package/umd/Shapes/Star/StarDrawer.d.ts +0 -5
- package/umd/Shapes/Star/index.d.ts +0 -2
- package/umd/Shapes/Text/TextDrawer.d.ts +0 -7
- package/umd/Shapes/Text/index.d.ts +0 -2
- package/umd/Types/ParticlesGroups.d.ts +0 -4
- package/umd/Types/PathOptions.d.ts +0 -3
- package/umd/Types/RangeValue.d.ts +0 -2
- package/umd/Types/RecursivePartial.d.ts +0 -3
- package/umd/Types/ShapeData.d.ts +0 -5
- package/umd/Types/ShapeDrawerFunctions.d.ts +0 -11
- package/umd/Types/SingleOrMultiple.d.ts +0 -1
- package/umd/Types/index.d.ts +0 -6
- package/umd/Types/index.js +0 -28
- package/umd/Updaters/Angle/AngleUpdater.d.ts +0 -8
- package/umd/Updaters/Angle/index.d.ts +0 -2
- package/umd/Updaters/Color/ColorUpdater.d.ts +0 -8
- package/umd/Updaters/Color/index.d.ts +0 -2
- package/umd/Updaters/Life/LifeUpdater.d.ts +0 -8
- package/umd/Updaters/Life/index.d.ts +0 -2
- package/umd/Updaters/Opacity/OpacityUpdater.d.ts +0 -8
- package/umd/Updaters/Opacity/index.d.ts +0 -2
- package/umd/Updaters/OutModes/IBounceData.d.ts +0 -11
- package/umd/Updaters/OutModes/OutOfCanvasUpdater.d.ts +0 -13
- package/umd/Updaters/OutModes/Utils.d.ts +0 -3
- package/umd/Updaters/OutModes/index.d.ts +0 -2
- package/umd/Updaters/Roll/RollUpdater.d.ts +0 -6
- package/umd/Updaters/Roll/index.d.ts +0 -2
- package/umd/Updaters/Size/SizeUpdater.d.ts +0 -6
- package/umd/Updaters/Size/index.d.ts +0 -2
- package/umd/Updaters/StrokeColor/StrokeColorUpdater.d.ts +0 -8
- package/umd/Updaters/StrokeColor/index.d.ts +0 -2
- package/umd/Updaters/Tilt/TiltUpdater.d.ts +0 -8
- package/umd/Updaters/Tilt/index.d.ts +0 -2
- package/umd/Updaters/Wobble/WobbleUpdater.d.ts +0 -14
- package/umd/Updaters/Wobble/index.d.ts +0 -2
- package/umd/Utils/CanvasUtils.d.ts +0 -19
- package/umd/Utils/ColorUtils.d.ts +0 -26
- package/umd/Utils/NumberUtils.d.ts +0 -23
- package/umd/Utils/Utils.d.ts +0 -38
- package/umd/Utils/index.d.ts +0 -4
- package/umd/Utils/index.js +0 -26
- package/umd/engine.d.ts +0 -26
- package/umd/full.d.ts +0 -2
- package/umd/index.d.ts +0 -20
- package/umd/index.engine.d.ts +0 -13
- package/umd/index.slim.d.ts +0 -14
- package/umd/pjs.d.ts +0 -14
- package/umd/slim.d.ts +0 -2
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
17
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
18
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
19
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
20
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
21
|
+
};
|
|
22
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
23
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
24
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
25
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
26
|
+
};
|
|
27
|
+
var _EmittersPlugin_engine;
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.loadEmittersPlugin = void 0;
|
|
30
|
+
const CircleShape_1 = require("./Shapes/Circle/CircleShape");
|
|
31
|
+
const Emitter_1 = require("./Options/Classes/Emitter");
|
|
32
|
+
const Emitters_1 = require("./Emitters");
|
|
33
|
+
const ShapeManager_1 = require("./ShapeManager");
|
|
34
|
+
const SquareShape_1 = require("./Shapes/Square/SquareShape");
|
|
35
|
+
const Utils_1 = require("../../Utils/Utils");
|
|
36
|
+
class EmittersPlugin {
|
|
37
|
+
constructor(engine) {
|
|
38
|
+
_EmittersPlugin_engine.set(this, void 0);
|
|
39
|
+
__classPrivateFieldSet(this, _EmittersPlugin_engine, engine, "f");
|
|
40
|
+
this.id = "emitters";
|
|
41
|
+
}
|
|
42
|
+
getPlugin(container) {
|
|
43
|
+
return new Emitters_1.Emitters(__classPrivateFieldGet(this, _EmittersPlugin_engine, "f"), container);
|
|
44
|
+
}
|
|
45
|
+
needsPlugin(options) {
|
|
46
|
+
var _a, _b, _c;
|
|
47
|
+
if (options === undefined) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
const emitters = options.emitters;
|
|
51
|
+
return ((emitters instanceof Array && !!emitters.length) ||
|
|
52
|
+
emitters !== undefined ||
|
|
53
|
+
(!!((_c = (_b = (_a = options.interactivity) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.onClick) === null || _c === void 0 ? void 0 : _c.mode) &&
|
|
54
|
+
(0, Utils_1.isInArray)("emitter", options.interactivity.events.onClick.mode)));
|
|
55
|
+
}
|
|
56
|
+
loadOptions(options, source) {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
if (!this.needsPlugin(options) && !this.needsPlugin(source)) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const optionsCast = options;
|
|
62
|
+
if (source === null || source === void 0 ? void 0 : source.emitters) {
|
|
63
|
+
if ((source === null || source === void 0 ? void 0 : source.emitters) instanceof Array) {
|
|
64
|
+
optionsCast.emitters = source === null || source === void 0 ? void 0 : source.emitters.map((s) => {
|
|
65
|
+
const tmp = new Emitter_1.Emitter();
|
|
66
|
+
tmp.load(s);
|
|
67
|
+
return tmp;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
let emitterOptions = optionsCast.emitters;
|
|
72
|
+
if ((emitterOptions === null || emitterOptions === void 0 ? void 0 : emitterOptions.load) === undefined) {
|
|
73
|
+
optionsCast.emitters = emitterOptions = new Emitter_1.Emitter();
|
|
74
|
+
}
|
|
75
|
+
emitterOptions.load(source === null || source === void 0 ? void 0 : source.emitters);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const interactivityEmitters = (_b = (_a = source === null || source === void 0 ? void 0 : source.interactivity) === null || _a === void 0 ? void 0 : _a.modes) === null || _b === void 0 ? void 0 : _b.emitters;
|
|
79
|
+
if (interactivityEmitters) {
|
|
80
|
+
if (interactivityEmitters instanceof Array) {
|
|
81
|
+
optionsCast.interactivity.modes.emitters = interactivityEmitters.map((s) => {
|
|
82
|
+
const tmp = new Emitter_1.Emitter();
|
|
83
|
+
tmp.load(s);
|
|
84
|
+
return tmp;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
let emitterOptions = optionsCast.interactivity.modes.emitters;
|
|
89
|
+
if ((emitterOptions === null || emitterOptions === void 0 ? void 0 : emitterOptions.load) === undefined) {
|
|
90
|
+
optionsCast.interactivity.modes.emitters = emitterOptions = new Emitter_1.Emitter();
|
|
91
|
+
}
|
|
92
|
+
emitterOptions.load(interactivityEmitters);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
_EmittersPlugin_engine = new WeakMap();
|
|
98
|
+
async function loadEmittersPlugin(engine) {
|
|
99
|
+
if (!engine.emitterShapeManager) {
|
|
100
|
+
engine.emitterShapeManager = new ShapeManager_1.ShapeManager(engine);
|
|
101
|
+
}
|
|
102
|
+
if (!engine.addEmitterShape) {
|
|
103
|
+
engine.addEmitterShape = (name, shape) => {
|
|
104
|
+
var _a;
|
|
105
|
+
(_a = engine.emitterShapeManager) === null || _a === void 0 ? void 0 : _a.addShape(name, shape);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
const plugin = new EmittersPlugin(engine);
|
|
109
|
+
await engine.addPlugin(plugin);
|
|
110
|
+
engine.addEmitterShape("circle", new CircleShape_1.CircleShape());
|
|
111
|
+
engine.addEmitterShape("square", new SquareShape_1.SquareShape());
|
|
112
|
+
}
|
|
113
|
+
exports.loadEmittersPlugin = loadEmittersPlugin;
|
|
114
|
+
__exportStar(require("./EmittersEngine"), exports);
|
|
115
|
+
__exportStar(require("./Enums/EmitterClickMode"), exports);
|
|
116
|
+
__exportStar(require("./Enums/EmitterShapeType"), exports);
|
|
117
|
+
__exportStar(require("./Options/Interfaces/IEmitterOptions"), exports);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolygonMask = void 0;
|
|
4
|
+
const PolygonMaskDraw_1 = require("./PolygonMaskDraw");
|
|
5
|
+
const PolygonMaskInline_1 = require("./PolygonMaskInline");
|
|
6
|
+
const PolygonMaskLocalSvg_1 = require("./PolygonMaskLocalSvg");
|
|
7
|
+
const PolygonMaskMove_1 = require("./PolygonMaskMove");
|
|
8
|
+
const Utils_1 = require("../../../../Utils/Utils");
|
|
9
|
+
class PolygonMask {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.draw = new PolygonMaskDraw_1.PolygonMaskDraw();
|
|
12
|
+
this.enable = false;
|
|
13
|
+
this.inline = new PolygonMaskInline_1.PolygonMaskInline();
|
|
14
|
+
this.move = new PolygonMaskMove_1.PolygonMaskMove();
|
|
15
|
+
this.scale = 1;
|
|
16
|
+
this.type = "none";
|
|
17
|
+
}
|
|
18
|
+
get inlineArrangement() {
|
|
19
|
+
return this.inline.arrangement;
|
|
20
|
+
}
|
|
21
|
+
set inlineArrangement(value) {
|
|
22
|
+
this.inline.arrangement = value;
|
|
23
|
+
}
|
|
24
|
+
load(data) {
|
|
25
|
+
var _a;
|
|
26
|
+
if (!data) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.draw.load(data.draw);
|
|
30
|
+
const inline = (_a = data.inline) !== null && _a !== void 0 ? _a : {
|
|
31
|
+
arrangement: data.inlineArrangement,
|
|
32
|
+
};
|
|
33
|
+
if (inline !== undefined) {
|
|
34
|
+
this.inline.load(inline);
|
|
35
|
+
}
|
|
36
|
+
this.move.load(data.move);
|
|
37
|
+
if (data.scale !== undefined) {
|
|
38
|
+
this.scale = data.scale;
|
|
39
|
+
}
|
|
40
|
+
if (data.type !== undefined) {
|
|
41
|
+
this.type = data.type;
|
|
42
|
+
}
|
|
43
|
+
if (data.enable !== undefined) {
|
|
44
|
+
this.enable = data.enable;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.enable = this.type !== "none";
|
|
48
|
+
}
|
|
49
|
+
if (data.url !== undefined) {
|
|
50
|
+
this.url = data.url;
|
|
51
|
+
}
|
|
52
|
+
if (data.data !== undefined) {
|
|
53
|
+
if (typeof data.data === "string") {
|
|
54
|
+
this.data = data.data;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.data = new PolygonMaskLocalSvg_1.PolygonMaskLocalSvg();
|
|
58
|
+
this.data.load(data.data);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (data.position !== undefined) {
|
|
62
|
+
this.position = (0, Utils_1.deepExtend)({}, data.position);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.PolygonMask = PolygonMask;
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolygonMaskDrawStroke = void 0;
|
|
4
|
+
const OptionsColor_1 = require("../../../../Options/Classes/OptionsColor");
|
|
5
|
+
const ColorUtils_1 = require("../../../../Utils/ColorUtils");
|
|
6
|
+
class PolygonMaskDrawStroke {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.color = new OptionsColor_1.OptionsColor();
|
|
9
|
+
this.width = 0.5;
|
|
10
|
+
this.opacity = 1;
|
|
11
|
+
}
|
|
12
|
+
load(data) {
|
|
13
|
+
var _a;
|
|
14
|
+
if (!data) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
this.color = OptionsColor_1.OptionsColor.create(this.color, data.color);
|
|
18
|
+
if (typeof this.color.value === "string") {
|
|
19
|
+
this.opacity = (_a = (0, ColorUtils_1.stringToAlpha)(this.color.value)) !== null && _a !== void 0 ? _a : this.opacity;
|
|
20
|
+
}
|
|
21
|
+
if (data.opacity !== undefined) {
|
|
22
|
+
this.opacity = data.opacity;
|
|
23
|
+
}
|
|
24
|
+
if (data.width !== undefined) {
|
|
25
|
+
this.width = data.width;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.PolygonMaskDrawStroke = PolygonMaskDrawStroke;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolygonMaskInstance = void 0;
|
|
4
|
+
const Utils_1 = require("./Utils");
|
|
5
|
+
const Utils_2 = require("../../Utils/Utils");
|
|
6
|
+
const NumberUtils_1 = require("../../Utils/NumberUtils");
|
|
7
|
+
const Constants_1 = require("../../Core/Utils/Constants");
|
|
8
|
+
const PolygonMask_1 = require("./Options/Classes/PolygonMask");
|
|
9
|
+
class PolygonMaskInstance {
|
|
10
|
+
constructor(container) {
|
|
11
|
+
this.container = container;
|
|
12
|
+
this.dimension = {
|
|
13
|
+
height: 0,
|
|
14
|
+
width: 0,
|
|
15
|
+
};
|
|
16
|
+
this.path2DSupported = !!window.Path2D;
|
|
17
|
+
this.options = new PolygonMask_1.PolygonMask();
|
|
18
|
+
this.polygonMaskMoveRadius = this.options.move.radius * container.retina.pixelRatio;
|
|
19
|
+
}
|
|
20
|
+
async initAsync(options) {
|
|
21
|
+
this.options.load(options === null || options === void 0 ? void 0 : options.polygon);
|
|
22
|
+
const polygonMaskOptions = this.options;
|
|
23
|
+
this.polygonMaskMoveRadius = polygonMaskOptions.move.radius * this.container.retina.pixelRatio;
|
|
24
|
+
if (polygonMaskOptions.enable) {
|
|
25
|
+
await this.initRawData();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
resize() {
|
|
29
|
+
const container = this.container, options = this.options;
|
|
30
|
+
if (!(options.enable && options.type !== "none")) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (this.redrawTimeout) {
|
|
34
|
+
clearTimeout(this.redrawTimeout);
|
|
35
|
+
}
|
|
36
|
+
this.redrawTimeout = window.setTimeout(async () => {
|
|
37
|
+
await this.initRawData(true);
|
|
38
|
+
await container.particles.redraw();
|
|
39
|
+
}, 250);
|
|
40
|
+
}
|
|
41
|
+
stop() {
|
|
42
|
+
delete this.raw;
|
|
43
|
+
delete this.paths;
|
|
44
|
+
}
|
|
45
|
+
particlesInitialization() {
|
|
46
|
+
const options = this.options;
|
|
47
|
+
if (options.enable &&
|
|
48
|
+
options.type === "inline" &&
|
|
49
|
+
(options.inline.arrangement === "one-per-point" ||
|
|
50
|
+
options.inline.arrangement === "per-point")) {
|
|
51
|
+
this.drawPoints();
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
particlePosition(position) {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
const options = this.options;
|
|
59
|
+
if (!(options.enable && ((_b = (_a = this.raw) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0)) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
return (0, Utils_2.deepExtend)({}, position ? position : this.randomPoint());
|
|
63
|
+
}
|
|
64
|
+
particleBounce(particle, delta, direction) {
|
|
65
|
+
return this.polygonBounce(particle, delta, direction);
|
|
66
|
+
}
|
|
67
|
+
clickPositionValid(position) {
|
|
68
|
+
const options = this.options;
|
|
69
|
+
return (options.enable &&
|
|
70
|
+
options.type !== "none" &&
|
|
71
|
+
options.type !== "inline" &&
|
|
72
|
+
this.checkInsidePolygon(position));
|
|
73
|
+
}
|
|
74
|
+
draw(context) {
|
|
75
|
+
var _a;
|
|
76
|
+
if (!((_a = this.paths) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const options = this.options, polygonDraw = options.draw;
|
|
80
|
+
if (!options.enable || !polygonDraw.enable) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const rawData = this.raw;
|
|
84
|
+
for (const path of this.paths) {
|
|
85
|
+
const path2d = path.path2d, path2dSupported = this.path2DSupported;
|
|
86
|
+
if (!context) {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if (path2dSupported && path2d && this.offset) {
|
|
90
|
+
(0, Utils_1.drawPolygonMaskPath)(context, path2d, polygonDraw.stroke, this.offset);
|
|
91
|
+
}
|
|
92
|
+
else if (rawData) {
|
|
93
|
+
(0, Utils_1.drawPolygonMask)(context, rawData, polygonDraw.stroke);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
polygonBounce(particle, _delta, direction) {
|
|
98
|
+
const options = this.options;
|
|
99
|
+
if (!this.raw || !options.enable || direction !== "top") {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
if (options.type === "inside" || options.type === "outside") {
|
|
103
|
+
let closest, dx, dy;
|
|
104
|
+
const pos = particle.getPosition(), radius = particle.getRadius();
|
|
105
|
+
for (let i = 0, j = this.raw.length - 1; i < this.raw.length; j = i++) {
|
|
106
|
+
const pi = this.raw[i], pj = this.raw[j];
|
|
107
|
+
closest = (0, Utils_1.calcClosestPtOnSegment)(pi, pj, pos);
|
|
108
|
+
const dist = (0, NumberUtils_1.getDistances)(pos, closest);
|
|
109
|
+
[dx, dy] = [dist.dx, dist.dy];
|
|
110
|
+
if (dist.distance < radius) {
|
|
111
|
+
(0, Utils_1.segmentBounce)(pi, pj, particle.velocity);
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (closest && dx !== undefined && dy !== undefined && !this.checkInsidePolygon(pos)) {
|
|
116
|
+
const factor = { x: 1, y: 1 };
|
|
117
|
+
if (particle.position.x >= closest.x) {
|
|
118
|
+
factor.x = -1;
|
|
119
|
+
}
|
|
120
|
+
if (particle.position.y >= closest.y) {
|
|
121
|
+
factor.y = -1;
|
|
122
|
+
}
|
|
123
|
+
particle.position.x = closest.x + radius * 2 * factor.x;
|
|
124
|
+
particle.position.y = closest.y + radius * 2 * factor.y;
|
|
125
|
+
particle.velocity.mult(-1);
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if (options.type === "inline" && particle.initialPosition) {
|
|
130
|
+
const dist = (0, NumberUtils_1.getDistance)(particle.initialPosition, particle.getPosition());
|
|
131
|
+
if (dist > this.polygonMaskMoveRadius) {
|
|
132
|
+
particle.velocity.x = particle.velocity.y / 2 - particle.velocity.x;
|
|
133
|
+
particle.velocity.y = particle.velocity.x / 2 - particle.velocity.y;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
checkInsidePolygon(position) {
|
|
140
|
+
var _a, _b;
|
|
141
|
+
const container = this.container, options = this.options;
|
|
142
|
+
if (!options.enable || options.type === "none" || options.type === "inline") {
|
|
143
|
+
return true;
|
|
144
|
+
}
|
|
145
|
+
if (!this.raw) {
|
|
146
|
+
throw new Error(Constants_1.Constants.noPolygonFound);
|
|
147
|
+
}
|
|
148
|
+
const canvasSize = container.canvas.size, x = (_a = position === null || position === void 0 ? void 0 : position.x) !== null && _a !== void 0 ? _a : Math.random() * canvasSize.width, y = (_b = position === null || position === void 0 ? void 0 : position.y) !== null && _b !== void 0 ? _b : Math.random() * canvasSize.height;
|
|
149
|
+
let inside = false;
|
|
150
|
+
for (let i = 0, j = this.raw.length - 1; i < this.raw.length; j = i++) {
|
|
151
|
+
const pi = this.raw[i], pj = this.raw[j], intersect = pi.y > y !== pj.y > y && x < ((pj.x - pi.x) * (y - pi.y)) / (pj.y - pi.y) + pi.x;
|
|
152
|
+
if (intersect) {
|
|
153
|
+
inside = !inside;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return options.type === "inside"
|
|
157
|
+
? inside
|
|
158
|
+
: options.type === "outside"
|
|
159
|
+
? !inside
|
|
160
|
+
: false;
|
|
161
|
+
}
|
|
162
|
+
parseSvgPath(xml, force) {
|
|
163
|
+
var _a, _b, _c;
|
|
164
|
+
const forceDownload = force !== null && force !== void 0 ? force : false;
|
|
165
|
+
if (this.paths !== undefined && !forceDownload) {
|
|
166
|
+
return this.raw;
|
|
167
|
+
}
|
|
168
|
+
const container = this.container, options = this.options, parser = new DOMParser(), doc = parser.parseFromString(xml, "image/svg+xml"), svg = doc.getElementsByTagName("svg")[0];
|
|
169
|
+
let svgPaths = svg.getElementsByTagName("path");
|
|
170
|
+
if (!svgPaths.length) {
|
|
171
|
+
svgPaths = doc.getElementsByTagName("path");
|
|
172
|
+
}
|
|
173
|
+
this.paths = [];
|
|
174
|
+
for (let i = 0; i < svgPaths.length; i++) {
|
|
175
|
+
const path = svgPaths.item(i);
|
|
176
|
+
if (path) {
|
|
177
|
+
this.paths.push({
|
|
178
|
+
element: path,
|
|
179
|
+
length: path.getTotalLength(),
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const pxRatio = container.retina.pixelRatio, scale = options.scale / pxRatio;
|
|
184
|
+
this.dimension.width = parseFloat((_a = svg.getAttribute("width")) !== null && _a !== void 0 ? _a : "0") * scale;
|
|
185
|
+
this.dimension.height = parseFloat((_b = svg.getAttribute("height")) !== null && _b !== void 0 ? _b : "0") * scale;
|
|
186
|
+
const position = (_c = options.position) !== null && _c !== void 0 ? _c : {
|
|
187
|
+
x: 50,
|
|
188
|
+
y: 50,
|
|
189
|
+
};
|
|
190
|
+
this.offset = {
|
|
191
|
+
x: (container.canvas.size.width * position.x) / (100 * pxRatio) - this.dimension.width / 2,
|
|
192
|
+
y: (container.canvas.size.height * position.y) / (100 * pxRatio) - this.dimension.height / 2,
|
|
193
|
+
};
|
|
194
|
+
return (0, Utils_1.parsePaths)(this.paths, scale, this.offset);
|
|
195
|
+
}
|
|
196
|
+
async downloadSvgPath(svgUrl, force) {
|
|
197
|
+
const options = this.options, url = svgUrl || options.url, forceDownload = force !== null && force !== void 0 ? force : false;
|
|
198
|
+
if (!url || (this.paths !== undefined && !forceDownload)) {
|
|
199
|
+
return this.raw;
|
|
200
|
+
}
|
|
201
|
+
const req = await fetch(url);
|
|
202
|
+
if (!req.ok) {
|
|
203
|
+
throw new Error("tsParticles Error - Error occurred during polygon mask download");
|
|
204
|
+
}
|
|
205
|
+
return this.parseSvgPath(await req.text(), force);
|
|
206
|
+
}
|
|
207
|
+
drawPoints() {
|
|
208
|
+
if (!this.raw) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
for (const item of this.raw) {
|
|
212
|
+
this.container.particles.addParticle({
|
|
213
|
+
x: item.x,
|
|
214
|
+
y: item.y,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
randomPoint() {
|
|
219
|
+
const container = this.container, options = this.options;
|
|
220
|
+
let position;
|
|
221
|
+
if (options.type === "inline") {
|
|
222
|
+
switch (options.inline.arrangement) {
|
|
223
|
+
case "random-point":
|
|
224
|
+
position = this.getRandomPoint();
|
|
225
|
+
break;
|
|
226
|
+
case "random-length":
|
|
227
|
+
position = this.getRandomPointByLength();
|
|
228
|
+
break;
|
|
229
|
+
case "equidistant":
|
|
230
|
+
position = this.getEquidistantPointByIndex(container.particles.count);
|
|
231
|
+
break;
|
|
232
|
+
case "one-per-point":
|
|
233
|
+
case "per-point":
|
|
234
|
+
default:
|
|
235
|
+
position = this.getPointByIndex(container.particles.count);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
position = {
|
|
240
|
+
x: Math.random() * container.canvas.size.width,
|
|
241
|
+
y: Math.random() * container.canvas.size.height,
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
if (this.checkInsidePolygon(position)) {
|
|
245
|
+
return position;
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
return this.randomPoint();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
getRandomPoint() {
|
|
252
|
+
if (!this.raw || !this.raw.length) {
|
|
253
|
+
throw new Error(Constants_1.Constants.noPolygonDataLoaded);
|
|
254
|
+
}
|
|
255
|
+
const coords = (0, Utils_2.itemFromArray)(this.raw);
|
|
256
|
+
return {
|
|
257
|
+
x: coords.x,
|
|
258
|
+
y: coords.y,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
getRandomPointByLength() {
|
|
262
|
+
var _a, _b, _c;
|
|
263
|
+
const options = this.options;
|
|
264
|
+
if (!this.raw || !this.raw.length || !((_a = this.paths) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
265
|
+
throw new Error(Constants_1.Constants.noPolygonDataLoaded);
|
|
266
|
+
}
|
|
267
|
+
const path = (0, Utils_2.itemFromArray)(this.paths), distance = Math.floor(Math.random() * path.length) + 1, point = path.element.getPointAtLength(distance);
|
|
268
|
+
return {
|
|
269
|
+
x: point.x * options.scale + (((_b = this.offset) === null || _b === void 0 ? void 0 : _b.x) || 0),
|
|
270
|
+
y: point.y * options.scale + (((_c = this.offset) === null || _c === void 0 ? void 0 : _c.y) || 0),
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
getEquidistantPointByIndex(index) {
|
|
274
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
275
|
+
const options = this.container.actualOptions, polygonMaskOptions = this.options;
|
|
276
|
+
if (!this.raw || !this.raw.length || !((_a = this.paths) === null || _a === void 0 ? void 0 : _a.length))
|
|
277
|
+
throw new Error(Constants_1.Constants.noPolygonDataLoaded);
|
|
278
|
+
let offset = 0, point;
|
|
279
|
+
const totalLength = this.paths.reduce((tot, path) => tot + path.length, 0), distance = totalLength / options.particles.number.value;
|
|
280
|
+
for (const path of this.paths) {
|
|
281
|
+
const pathDistance = distance * index - offset;
|
|
282
|
+
if (pathDistance <= path.length) {
|
|
283
|
+
point = path.element.getPointAtLength(pathDistance);
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
offset += path.length;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
x: ((_b = point === null || point === void 0 ? void 0 : point.x) !== null && _b !== void 0 ? _b : 0) * polygonMaskOptions.scale + ((_d = (_c = this.offset) === null || _c === void 0 ? void 0 : _c.x) !== null && _d !== void 0 ? _d : 0),
|
|
292
|
+
y: ((_e = point === null || point === void 0 ? void 0 : point.y) !== null && _e !== void 0 ? _e : 0) * polygonMaskOptions.scale + ((_g = (_f = this.offset) === null || _f === void 0 ? void 0 : _f.y) !== null && _g !== void 0 ? _g : 0),
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
getPointByIndex(index) {
|
|
296
|
+
if (!this.raw || !this.raw.length) {
|
|
297
|
+
throw new Error(Constants_1.Constants.noPolygonDataLoaded);
|
|
298
|
+
}
|
|
299
|
+
const coords = this.raw[index % this.raw.length];
|
|
300
|
+
return {
|
|
301
|
+
x: coords.x,
|
|
302
|
+
y: coords.y,
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
createPath2D() {
|
|
306
|
+
var _a, _b;
|
|
307
|
+
const options = this.options;
|
|
308
|
+
if (!this.path2DSupported || !((_a = this.paths) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
for (const path of this.paths) {
|
|
312
|
+
const pathData = (_b = path.element) === null || _b === void 0 ? void 0 : _b.getAttribute("d");
|
|
313
|
+
if (pathData) {
|
|
314
|
+
const path2d = new Path2D(pathData), matrix = document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGMatrix(), finalPath = new Path2D(), transform = matrix.scale(options.scale);
|
|
315
|
+
if (finalPath.addPath) {
|
|
316
|
+
finalPath.addPath(path2d, transform);
|
|
317
|
+
path.path2d = finalPath;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
delete path.path2d;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
delete path.path2d;
|
|
325
|
+
}
|
|
326
|
+
if (path.path2d || !this.raw) {
|
|
327
|
+
continue;
|
|
328
|
+
}
|
|
329
|
+
path.path2d = new Path2D();
|
|
330
|
+
path.path2d.moveTo(this.raw[0].x, this.raw[0].y);
|
|
331
|
+
this.raw.forEach((pos, i) => {
|
|
332
|
+
var _a;
|
|
333
|
+
if (i > 0) {
|
|
334
|
+
(_a = path.path2d) === null || _a === void 0 ? void 0 : _a.lineTo(pos.x, pos.y);
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
path.path2d.closePath();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
async initRawData(force) {
|
|
341
|
+
const options = this.options;
|
|
342
|
+
if (options.url) {
|
|
343
|
+
this.raw = await this.downloadSvgPath(options.url, force);
|
|
344
|
+
}
|
|
345
|
+
else if (options.data) {
|
|
346
|
+
const data = options.data;
|
|
347
|
+
let svg;
|
|
348
|
+
if (typeof data !== "string") {
|
|
349
|
+
const path = data.path instanceof Array
|
|
350
|
+
? data.path.map((t) => `<path d="${t}" />`).join("")
|
|
351
|
+
: `<path d="${data.path}" />`;
|
|
352
|
+
const namespaces = 'xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
353
|
+
svg = `<svg ${namespaces} width="${data.size.width}" height="${data.size.height}">${path}</svg>`;
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
svg = data;
|
|
357
|
+
}
|
|
358
|
+
this.raw = this.parseSvgPath(svg, force);
|
|
359
|
+
}
|
|
360
|
+
this.createPath2D();
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.PolygonMaskInstance = PolygonMaskInstance;
|
|
File without changes
|