tsparticles 1.39.0 → 1.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Core/Canvas.d.ts +1 -1
- package/Core/Canvas.js +27 -27
- package/Core/Container.d.ts +5 -5
- package/Core/Container.js +3 -3
- package/Core/Interfaces/Gradients.d.ts +2 -2
- package/Core/Interfaces/ICircleBouncer.d.ts +1 -1
- package/Core/Interfaces/IContainerPlugin.d.ts +4 -4
- package/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/Core/Interfaces/IInteractor.d.ts +1 -1
- package/Core/Interfaces/IParticle.d.ts +8 -8
- package/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
- package/Core/Interfaces/IParticleSpin.d.ts +1 -1
- package/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
- package/Core/Interfaces/IPlugin.d.ts +1 -1
- package/Core/Loader.d.ts +1 -1
- package/Core/Loader.js +7 -7
- package/Core/Particle.d.ts +3 -3
- package/Core/Particle.js +31 -31
- package/Core/Particles.d.ts +3 -3
- package/Core/Particles.js +15 -15
- package/Core/Utils/Circle.d.ts +1 -1
- package/Core/Utils/CircleWarp.d.ts +1 -1
- package/Core/Utils/CircleWarp.js +1 -1
- package/Core/Utils/EventListeners.js +1 -1
- package/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/Core/Utils/InteractionManager.d.ts +1 -1
- package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/Core/Utils/ParticlesMover.d.ts +1 -1
- package/Core/Utils/Plugins.d.ts +1 -1
- package/Core/Utils/QuadTree.d.ts +3 -3
- package/Core/Utils/QuadTree.js +1 -1
- package/Core/Utils/Rectangle.d.ts +1 -1
- package/Core/Utils/Vector3d.d.ts +1 -1
- package/Interactions/External/Attract/Attractor.d.ts +1 -1
- package/Interactions/External/Attract/Attractor.js +1 -1
- package/Interactions/External/Attract/index.d.ts +1 -1
- package/Interactions/External/Attract/index.js +2 -2
- package/Interactions/External/Bounce/Bouncer.d.ts +1 -1
- package/Interactions/External/Bounce/Bouncer.js +1 -1
- package/Interactions/External/Bounce/index.d.ts +1 -1
- package/Interactions/External/Bounce/index.js +2 -2
- package/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/Interactions/External/Bubble/Bubbler.js +1 -1
- package/Interactions/External/Bubble/index.d.ts +1 -1
- package/Interactions/External/Bubble/index.js +2 -2
- package/Interactions/External/Connect/Connector.js +1 -1
- package/Interactions/External/Connect/index.d.ts +1 -1
- package/Interactions/External/Connect/index.js +2 -2
- package/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/Interactions/External/Grab/Grabber.js +1 -1
- package/Interactions/External/Grab/index.d.ts +1 -1
- package/Interactions/External/Grab/index.js +2 -2
- package/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/Interactions/External/Repulse/Repulser.js +1 -1
- package/Interactions/External/Repulse/index.d.ts +1 -1
- package/Interactions/External/Repulse/index.js +2 -2
- package/Interactions/External/Trail/TrailMaker.js +1 -1
- package/Interactions/External/Trail/index.d.ts +1 -1
- package/Interactions/External/Trail/index.js +2 -2
- package/Interactions/Particles/Attract/Attractor.js +1 -1
- package/Interactions/Particles/Attract/index.d.ts +1 -1
- package/Interactions/Particles/Attract/index.js +2 -2
- package/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/Interactions/Particles/Collisions/index.js +2 -2
- package/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
- package/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/Interactions/Particles/Links/Linker.js +1 -1
- package/Interactions/Particles/Links/index.d.ts +1 -1
- package/Interactions/Particles/Links/index.js +4 -4
- package/Interactions/Particles/Links/interaction.d.ts +1 -1
- package/Interactions/Particles/Links/interaction.js +2 -2
- package/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/Interactions/Particles/Links/plugin.js +2 -2
- package/Options/Classes/AnimatableColor.d.ts +3 -3
- package/Options/Classes/AnimatableColor.js +1 -1
- package/Options/Classes/AnimatableGradient.d.ts +6 -6
- package/Options/Classes/AnimationOptions.d.ts +2 -2
- package/Options/Classes/Background/Background.d.ts +2 -2
- package/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
- package/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
- package/Options/Classes/ColorAnimation.d.ts +1 -1
- package/Options/Classes/HslAnimation.d.ts +2 -2
- package/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
- package/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
- package/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
- package/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
- package/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
- package/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
- package/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
- package/Options/Classes/Interactivity/Modes/Modes.js +4 -4
- package/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
- package/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
- package/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
- package/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
- package/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
- package/Options/Classes/ManualParticle.d.ts +2 -2
- package/Options/Classes/Motion/Motion.d.ts +1 -1
- package/Options/Classes/Options.d.ts +7 -7
- package/Options/Classes/Options.js +7 -7
- package/Options/Classes/OptionsColor.d.ts +2 -2
- package/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
- package/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
- package/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
- package/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
- package/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
- package/Options/Classes/Particles/Life/Life.d.ts +1 -1
- package/Options/Classes/Particles/Links/Links.d.ts +2 -2
- package/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
- package/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
- package/Options/Classes/Particles/Move/Attract.d.ts +2 -2
- package/Options/Classes/Particles/Move/Move.d.ts +5 -5
- package/Options/Classes/Particles/Move/Move.js +3 -3
- package/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
- package/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
- package/Options/Classes/Particles/Move/Spin.d.ts +3 -3
- package/Options/Classes/Particles/Move/Trail.d.ts +2 -2
- package/Options/Classes/Particles/Number/Density.d.ts +1 -1
- package/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
- package/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
- package/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
- package/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
- package/Options/Classes/Particles/Orbit/Orbit.js +2 -2
- package/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
- package/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
- package/Options/Classes/Particles/ParticlesOptions.js +13 -13
- package/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
- package/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
- package/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
- package/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
- package/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
- package/Options/Classes/Particles/Shadow.d.ts +3 -3
- package/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/Options/Classes/Particles/Size/Size.d.ts +2 -2
- package/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
- package/Options/Classes/Particles/Stroke.d.ts +2 -2
- package/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
- package/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
- package/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
- package/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
- package/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
- package/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
- package/Options/Classes/Random.d.ts +1 -1
- package/Options/Classes/Responsive.d.ts +2 -2
- package/Options/Classes/Theme/Theme.d.ts +2 -2
- package/Options/Classes/Theme/Theme.js +1 -1
- package/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
- package/Options/Classes/ValueWithRandom.d.ts +2 -2
- package/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
- package/Options/Interfaces/IAnimatableColor.d.ts +1 -1
- package/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
- package/Options/Interfaces/IColorAnimation.d.ts +1 -1
- package/Options/Interfaces/IManualParticle.d.ts +1 -1
- package/Options/Interfaces/IOptions.d.ts +6 -6
- package/Options/Interfaces/IOptionsGradient.d.ts +2 -2
- package/Options/Interfaces/IResponsive.d.ts +2 -2
- package/Options/Interfaces/IValueWithRandom.d.ts +1 -1
- package/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
- package/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
- package/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
- package/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
- package/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
- package/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
- package/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
- package/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
- package/Options/Interfaces/Particles/IParticles.d.ts +14 -14
- package/Options/Interfaces/Particles/IShadow.d.ts +1 -1
- package/Options/Interfaces/Particles/IStroke.d.ts +1 -1
- package/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
- package/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
- package/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
- package/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
- package/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
- package/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
- package/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
- package/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
- package/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
- package/Options/Interfaces/Theme/ITheme.d.ts +2 -2
- package/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
- package/Plugins/Absorbers/AbsorberInstance.js +18 -18
- package/Plugins/Absorbers/Absorbers.d.ts +3 -3
- package/Plugins/Absorbers/Absorbers.js +1 -1
- package/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
- package/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
- package/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
- package/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
- package/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
- package/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
- package/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
- package/Plugins/Absorbers/index.d.ts +1 -1
- package/Plugins/Absorbers/index.js +3 -3
- package/Plugins/Emitters/EmitterContainer.d.ts +2 -1
- package/Plugins/Emitters/EmitterInstance.d.ts +5 -3
- package/Plugins/Emitters/EmitterInstance.js +34 -35
- package/Plugins/Emitters/Emitters.d.ts +3 -3
- package/Plugins/Emitters/Emitters.js +11 -3
- package/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
- package/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
- package/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
- package/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
- package/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
- package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
- package/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
- package/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
- package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
- package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
- package/Plugins/Emitters/index.d.ts +1 -1
- package/Plugins/Emitters/index.js +9 -9
- package/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
- package/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
- package/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
- package/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
- package/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
- package/Plugins/PolygonMask/PolygonMaskInstance.js +12 -12
- package/Plugins/PolygonMask/Types.d.ts +1 -1
- package/Plugins/PolygonMask/index.d.ts +1 -1
- package/Plugins/PolygonMask/index.js +3 -3
- package/README.md +160 -16
- package/Shapes/Circle/index.d.ts +1 -1
- package/Shapes/Circle/index.js +2 -2
- package/Shapes/Image/index.d.ts +1 -1
- package/Shapes/Image/index.js +3 -3
- package/Shapes/Line/index.d.ts +1 -1
- package/Shapes/Line/index.js +2 -2
- package/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
- package/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
- package/Shapes/Polygon/index.d.ts +3 -3
- package/Shapes/Polygon/index.js +7 -7
- package/Shapes/Square/index.d.ts +1 -1
- package/Shapes/Square/index.js +3 -3
- package/Shapes/Star/index.d.ts +1 -1
- package/Shapes/Star/index.js +2 -2
- package/Shapes/Text/index.d.ts +1 -1
- package/Shapes/Text/index.js +2 -2
- package/Types/ShapeData.d.ts +1 -1
- package/Types/ShapeDrawerFunctions.d.ts +1 -1
- package/Updaters/Angle/index.d.ts +1 -1
- package/Updaters/Angle/index.js +2 -2
- package/Updaters/Color/index.d.ts +1 -1
- package/Updaters/Color/index.js +2 -2
- package/Updaters/Life/index.d.ts +1 -1
- package/Updaters/Life/index.js +2 -2
- package/Updaters/Opacity/index.d.ts +1 -1
- package/Updaters/Opacity/index.js +2 -2
- package/Updaters/OutModes/IBounceData.d.ts +1 -1
- package/Updaters/OutModes/OutOfCanvasUpdater.js +9 -9
- package/Updaters/OutModes/index.d.ts +1 -1
- package/Updaters/OutModes/index.js +2 -2
- package/Updaters/Roll/index.d.ts +1 -1
- package/Updaters/Roll/index.js +2 -2
- package/Updaters/Size/index.d.ts +1 -1
- package/Updaters/Size/index.js +2 -2
- package/Updaters/StrokeColor/index.d.ts +1 -1
- package/Updaters/StrokeColor/index.js +2 -2
- package/Updaters/Tilt/index.d.ts +1 -1
- package/Updaters/Tilt/index.js +2 -2
- package/Updaters/Wobble/index.d.ts +1 -1
- package/Updaters/Wobble/index.js +2 -2
- package/Utils/CanvasUtils.d.ts +2 -3
- package/Utils/CanvasUtils.js +1 -1
- package/Utils/ColorUtils.js +1 -1
- package/Utils/NumberUtils.d.ts +2 -2
- package/Utils/Utils.d.ts +3 -3
- package/browser/Core/Canvas.d.ts +1 -1
- package/browser/Core/Canvas.js +1 -1
- package/browser/Core/Container.d.ts +5 -5
- package/browser/Core/Container.js +3 -3
- package/browser/Core/Interfaces/Gradients.d.ts +2 -2
- package/browser/Core/Interfaces/ICircleBouncer.d.ts +1 -1
- package/browser/Core/Interfaces/IContainerPlugin.d.ts +4 -4
- package/browser/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/browser/Core/Interfaces/IInteractor.d.ts +1 -1
- package/browser/Core/Interfaces/IParticle.d.ts +8 -8
- package/browser/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
- package/browser/Core/Interfaces/IParticleSpin.d.ts +1 -1
- package/browser/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
- package/browser/Core/Interfaces/IPlugin.d.ts +1 -1
- package/browser/Core/Loader.d.ts +1 -1
- package/browser/Core/Loader.js +1 -1
- package/browser/Core/Particle.d.ts +3 -3
- package/browser/Core/Particle.js +2 -2
- package/browser/Core/Particles.d.ts +3 -3
- package/browser/Core/Particles.js +2 -2
- package/browser/Core/Utils/Circle.d.ts +1 -1
- package/browser/Core/Utils/CircleWarp.d.ts +1 -1
- package/browser/Core/Utils/CircleWarp.js +1 -1
- package/browser/Core/Utils/EventListeners.js +1 -1
- package/browser/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/browser/Core/Utils/InteractionManager.d.ts +1 -1
- package/browser/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/browser/Core/Utils/ParticlesMover.d.ts +1 -1
- package/browser/Core/Utils/Plugins.d.ts +1 -1
- package/browser/Core/Utils/QuadTree.d.ts +3 -3
- package/browser/Core/Utils/QuadTree.js +1 -1
- package/browser/Core/Utils/Rectangle.d.ts +1 -1
- package/browser/Core/Utils/Vector3d.d.ts +1 -1
- package/browser/Interactions/External/Attract/Attractor.d.ts +1 -1
- package/browser/Interactions/External/Attract/Attractor.js +1 -1
- package/browser/Interactions/External/Attract/index.d.ts +1 -1
- package/browser/Interactions/External/Attract/index.js +2 -2
- package/browser/Interactions/External/Bounce/Bouncer.d.ts +1 -1
- package/browser/Interactions/External/Bounce/Bouncer.js +1 -1
- package/browser/Interactions/External/Bounce/index.d.ts +1 -1
- package/browser/Interactions/External/Bounce/index.js +2 -2
- package/browser/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/browser/Interactions/External/Bubble/Bubbler.js +1 -1
- package/browser/Interactions/External/Bubble/index.d.ts +1 -1
- package/browser/Interactions/External/Bubble/index.js +2 -2
- package/browser/Interactions/External/Connect/Connector.js +1 -1
- package/browser/Interactions/External/Connect/index.d.ts +1 -1
- package/browser/Interactions/External/Connect/index.js +2 -2
- package/browser/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/browser/Interactions/External/Grab/Grabber.js +1 -1
- package/browser/Interactions/External/Grab/index.d.ts +1 -1
- package/browser/Interactions/External/Grab/index.js +2 -2
- package/browser/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/browser/Interactions/External/Repulse/Repulser.js +1 -1
- package/browser/Interactions/External/Repulse/index.d.ts +1 -1
- package/browser/Interactions/External/Repulse/index.js +2 -2
- package/browser/Interactions/External/Trail/TrailMaker.js +1 -1
- package/browser/Interactions/External/Trail/index.d.ts +1 -1
- package/browser/Interactions/External/Trail/index.js +2 -2
- package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
- package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
- package/browser/Interactions/Particles/Attract/index.js +2 -2
- package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/browser/Interactions/Particles/Collisions/index.js +2 -2
- package/browser/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
- package/browser/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/browser/Interactions/Particles/Links/Linker.js +1 -1
- package/browser/Interactions/Particles/Links/index.d.ts +1 -1
- package/browser/Interactions/Particles/Links/index.js +4 -4
- package/browser/Interactions/Particles/Links/interaction.d.ts +1 -1
- package/browser/Interactions/Particles/Links/interaction.js +2 -2
- package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/browser/Interactions/Particles/Links/plugin.js +2 -2
- package/browser/Options/Classes/AnimatableColor.d.ts +3 -3
- package/browser/Options/Classes/AnimatableColor.js +1 -1
- package/browser/Options/Classes/AnimatableGradient.d.ts +6 -6
- package/browser/Options/Classes/AnimationOptions.d.ts +2 -2
- package/browser/Options/Classes/Background/Background.d.ts +2 -2
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
- package/browser/Options/Classes/ColorAnimation.d.ts +1 -1
- package/browser/Options/Classes/HslAnimation.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
- package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
- package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -4
- package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
- package/browser/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
- package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
- package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
- package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
- package/browser/Options/Classes/ManualParticle.d.ts +2 -2
- package/browser/Options/Classes/Motion/Motion.d.ts +1 -1
- package/browser/Options/Classes/Options.d.ts +7 -7
- package/browser/Options/Classes/Options.js +7 -7
- package/browser/Options/Classes/OptionsColor.d.ts +2 -2
- package/browser/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
- package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
- package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
- package/browser/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
- package/browser/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
- package/browser/Options/Classes/Particles/Life/Life.d.ts +1 -1
- package/browser/Options/Classes/Particles/Links/Links.d.ts +2 -2
- package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
- package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
- package/browser/Options/Classes/Particles/Move/Attract.d.ts +2 -2
- package/browser/Options/Classes/Particles/Move/Move.d.ts +5 -5
- package/browser/Options/Classes/Particles/Move/Move.js +3 -3
- package/browser/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
- package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
- package/browser/Options/Classes/Particles/Move/Spin.d.ts +3 -3
- package/browser/Options/Classes/Particles/Move/Trail.d.ts +2 -2
- package/browser/Options/Classes/Particles/Number/Density.d.ts +1 -1
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
- package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
- package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
- package/browser/Options/Classes/Particles/Orbit/Orbit.js +2 -2
- package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
- package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
- package/browser/Options/Classes/Particles/ParticlesOptions.js +13 -13
- package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
- package/browser/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
- package/browser/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
- package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
- package/browser/Options/Classes/Particles/Shadow.d.ts +3 -3
- package/browser/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/browser/Options/Classes/Particles/Size/Size.d.ts +2 -2
- package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
- package/browser/Options/Classes/Particles/Stroke.d.ts +2 -2
- package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
- package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
- package/browser/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
- package/browser/Options/Classes/Random.d.ts +1 -1
- package/browser/Options/Classes/Responsive.d.ts +2 -2
- package/browser/Options/Classes/Theme/Theme.d.ts +2 -2
- package/browser/Options/Classes/Theme/Theme.js +1 -1
- package/browser/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
- package/browser/Options/Classes/ValueWithRandom.d.ts +2 -2
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
- package/browser/Options/Interfaces/IAnimatableColor.d.ts +1 -1
- package/browser/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
- package/browser/Options/Interfaces/IColorAnimation.d.ts +1 -1
- package/browser/Options/Interfaces/IColorAnimation.js +0 -4
- package/browser/Options/Interfaces/IManualParticle.d.ts +1 -1
- package/browser/Options/Interfaces/IOptions.d.ts +6 -6
- package/browser/Options/Interfaces/IOptionsGradient.d.ts +2 -2
- package/browser/Options/Interfaces/IResponsive.d.ts +2 -2
- package/browser/Options/Interfaces/IValueWithRandom.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/IParticles.d.ts +14 -14
- package/browser/Options/Interfaces/Particles/IShadow.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/IStroke.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
- package/browser/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
- package/browser/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
- package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
- package/browser/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
- package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
- package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
- package/browser/Options/Interfaces/Theme/ITheme.d.ts +2 -2
- package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
- package/browser/Plugins/Absorbers/AbsorberInstance.js +18 -18
- package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -3
- package/browser/Plugins/Absorbers/Absorbers.js +1 -1
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
- package/browser/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
- package/browser/Plugins/Absorbers/index.d.ts +1 -1
- package/browser/Plugins/Absorbers/index.js +3 -3
- package/browser/Plugins/Emitters/EmitterContainer.d.ts +2 -1
- package/browser/Plugins/Emitters/EmitterInstance.d.ts +5 -3
- package/browser/Plugins/Emitters/EmitterInstance.js +34 -35
- package/browser/Plugins/Emitters/Emitters.d.ts +3 -3
- package/browser/Plugins/Emitters/Emitters.js +11 -3
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
- package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
- package/browser/Plugins/Emitters/index.d.ts +1 -1
- package/browser/Plugins/Emitters/index.js +9 -9
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
- package/browser/Plugins/PolygonMask/Types.d.ts +1 -1
- package/browser/Plugins/PolygonMask/index.d.ts +1 -1
- package/browser/Plugins/PolygonMask/index.js +3 -3
- package/browser/Shapes/Circle/index.d.ts +1 -1
- package/browser/Shapes/Circle/index.js +2 -2
- package/browser/Shapes/Image/index.d.ts +1 -1
- package/browser/Shapes/Image/index.js +3 -3
- package/browser/Shapes/Line/index.d.ts +1 -1
- package/browser/Shapes/Line/index.js +2 -2
- package/browser/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
- package/browser/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
- package/browser/Shapes/Polygon/index.d.ts +3 -3
- package/browser/Shapes/Polygon/index.js +7 -7
- package/browser/Shapes/Square/index.d.ts +1 -1
- package/browser/Shapes/Square/index.js +3 -3
- package/browser/Shapes/Star/index.d.ts +1 -1
- package/browser/Shapes/Star/index.js +2 -2
- package/browser/Shapes/Text/index.d.ts +1 -1
- package/browser/Shapes/Text/index.js +3 -3
- package/browser/Types/ShapeData.d.ts +1 -1
- package/browser/Types/ShapeDrawerFunctions.d.ts +1 -1
- package/browser/Updaters/Angle/index.d.ts +1 -1
- package/browser/Updaters/Angle/index.js +2 -2
- package/browser/Updaters/Color/index.d.ts +1 -1
- package/browser/Updaters/Color/index.js +2 -2
- package/browser/Updaters/Life/index.d.ts +1 -1
- package/browser/Updaters/Life/index.js +2 -2
- package/browser/Updaters/Opacity/index.d.ts +1 -1
- package/browser/Updaters/Opacity/index.js +2 -2
- package/browser/Updaters/OutModes/IBounceData.d.ts +1 -1
- package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
- package/browser/Updaters/OutModes/index.d.ts +1 -1
- package/browser/Updaters/OutModes/index.js +2 -2
- package/browser/Updaters/Roll/index.d.ts +1 -1
- package/browser/Updaters/Roll/index.js +2 -2
- package/browser/Updaters/Size/index.d.ts +1 -1
- package/browser/Updaters/Size/index.js +2 -2
- package/browser/Updaters/StrokeColor/index.d.ts +1 -1
- package/browser/Updaters/StrokeColor/index.js +2 -2
- package/browser/Updaters/Tilt/index.d.ts +1 -1
- package/browser/Updaters/Tilt/index.js +2 -2
- package/browser/Updaters/Wobble/index.d.ts +1 -1
- package/browser/Updaters/Wobble/index.js +2 -2
- package/browser/Utils/CanvasUtils.d.ts +2 -3
- package/browser/Utils/CanvasUtils.js +1 -1
- package/browser/Utils/ColorUtils.js +1 -1
- package/browser/Utils/NumberUtils.d.ts +2 -2
- package/browser/Utils/Utils.d.ts +3 -3
- package/browser/Utils/Utils.js +1 -1
- package/browser/engine.d.ts +2 -2
- package/browser/full.d.ts +1 -1
- package/browser/full.js +14 -14
- package/browser/index.d.ts +1 -1
- package/browser/index.engine.d.ts +1 -1
- package/browser/index.engine.js +1 -1
- package/browser/index.js +1 -1
- package/browser/index.slim.d.ts +1 -1
- package/browser/index.slim.js +1 -1
- package/browser/pjs.d.ts +1 -1
- package/browser/slim.d.ts +1 -1
- package/browser/slim.js +40 -40
- package/engine.d.ts +2 -2
- package/esm/Core/Canvas.d.ts +1 -1
- package/esm/Core/Canvas.js +1 -1
- package/esm/Core/Container.d.ts +5 -5
- package/esm/Core/Container.js +3 -3
- package/esm/Core/Interfaces/Gradients.d.ts +2 -2
- package/esm/Core/Interfaces/ICircleBouncer.d.ts +1 -1
- package/esm/Core/Interfaces/IContainerPlugin.d.ts +4 -4
- package/esm/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/esm/Core/Interfaces/IInteractor.d.ts +1 -1
- package/esm/Core/Interfaces/IParticle.d.ts +8 -8
- package/esm/Core/Interfaces/IParticleGradientAnimation.d.ts +1 -1
- package/esm/Core/Interfaces/IParticleSpin.d.ts +1 -1
- package/esm/Core/Interfaces/IParticlesInteractor.d.ts +2 -2
- package/esm/Core/Interfaces/IPlugin.d.ts +1 -1
- package/esm/Core/Loader.d.ts +1 -1
- package/esm/Core/Loader.js +1 -1
- package/esm/Core/Particle.d.ts +3 -3
- package/esm/Core/Particle.js +2 -2
- package/esm/Core/Particles.d.ts +3 -3
- package/esm/Core/Particles.js +2 -2
- package/esm/Core/Utils/Circle.d.ts +1 -1
- package/esm/Core/Utils/CircleWarp.d.ts +1 -1
- package/esm/Core/Utils/CircleWarp.js +1 -1
- package/esm/Core/Utils/EventListeners.js +1 -1
- package/esm/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/esm/Core/Utils/InteractionManager.d.ts +1 -1
- package/esm/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/esm/Core/Utils/ParticlesMover.d.ts +1 -1
- package/esm/Core/Utils/Plugins.d.ts +1 -1
- package/esm/Core/Utils/QuadTree.d.ts +3 -3
- package/esm/Core/Utils/QuadTree.js +1 -1
- package/esm/Core/Utils/Rectangle.d.ts +1 -1
- package/esm/Core/Utils/Vector3d.d.ts +1 -1
- package/esm/Interactions/External/Attract/Attractor.d.ts +1 -1
- package/esm/Interactions/External/Attract/Attractor.js +1 -1
- package/esm/Interactions/External/Attract/index.d.ts +1 -1
- package/esm/Interactions/External/Attract/index.js +2 -2
- package/esm/Interactions/External/Bounce/Bouncer.d.ts +1 -1
- package/esm/Interactions/External/Bounce/Bouncer.js +1 -1
- package/esm/Interactions/External/Bounce/index.d.ts +1 -1
- package/esm/Interactions/External/Bounce/index.js +2 -2
- package/esm/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/esm/Interactions/External/Bubble/Bubbler.js +1 -1
- package/esm/Interactions/External/Bubble/index.d.ts +1 -1
- package/esm/Interactions/External/Bubble/index.js +2 -2
- package/esm/Interactions/External/Connect/Connector.js +1 -1
- package/esm/Interactions/External/Connect/index.d.ts +1 -1
- package/esm/Interactions/External/Connect/index.js +2 -2
- package/esm/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/esm/Interactions/External/Grab/Grabber.js +1 -1
- package/esm/Interactions/External/Grab/index.d.ts +1 -1
- package/esm/Interactions/External/Grab/index.js +2 -2
- package/esm/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/esm/Interactions/External/Repulse/Repulser.js +1 -1
- package/esm/Interactions/External/Repulse/index.d.ts +1 -1
- package/esm/Interactions/External/Repulse/index.js +2 -2
- package/esm/Interactions/External/Trail/TrailMaker.js +1 -1
- package/esm/Interactions/External/Trail/index.d.ts +1 -1
- package/esm/Interactions/External/Trail/index.js +2 -2
- package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
- package/esm/Interactions/Particles/Attract/index.d.ts +1 -1
- package/esm/Interactions/Particles/Attract/index.js +2 -2
- package/esm/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/esm/Interactions/Particles/Collisions/index.js +2 -2
- package/esm/Interactions/Particles/Links/LinkParticle.d.ts +1 -1
- package/esm/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/esm/Interactions/Particles/Links/Linker.js +1 -1
- package/esm/Interactions/Particles/Links/index.d.ts +1 -1
- package/esm/Interactions/Particles/Links/index.js +4 -4
- package/esm/Interactions/Particles/Links/interaction.d.ts +1 -1
- package/esm/Interactions/Particles/Links/interaction.js +2 -2
- package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/esm/Interactions/Particles/Links/plugin.js +2 -2
- package/esm/Options/Classes/AnimatableColor.d.ts +3 -3
- package/esm/Options/Classes/AnimatableColor.js +1 -1
- package/esm/Options/Classes/AnimatableGradient.d.ts +6 -6
- package/esm/Options/Classes/AnimationOptions.d.ts +2 -2
- package/esm/Options/Classes/Background/Background.d.ts +2 -2
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.d.ts +2 -2
- package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +2 -2
- package/esm/Options/Classes/ColorAnimation.d.ts +1 -1
- package/esm/Options/Classes/HslAnimation.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Events/ClickEvent.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Events/Events.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.d.ts +3 -3
- package/esm/Options/Classes/Interactivity/Events/Parallax.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Attract.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Bubble.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Bubble.js +1 -1
- package/esm/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Connect.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Grab.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/Light.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Modes.d.ts +7 -7
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +4 -4
- package/esm/Options/Classes/Interactivity/Modes/Push.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Remove.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -3
- package/esm/Options/Classes/Interactivity/Modes/Repulse.js +1 -1
- package/esm/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +2 -2
- package/esm/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Slow.d.ts +1 -1
- package/esm/Options/Classes/Interactivity/Modes/Trail.d.ts +2 -2
- package/esm/Options/Classes/ManualParticle.d.ts +2 -2
- package/esm/Options/Classes/Motion/Motion.d.ts +1 -1
- package/esm/Options/Classes/Options.d.ts +7 -7
- package/esm/Options/Classes/Options.js +7 -7
- package/esm/Options/Classes/OptionsColor.d.ts +2 -2
- package/esm/Options/Classes/Particles/Bounce/Bounce.d.ts +1 -1
- package/esm/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -4
- package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +2 -2
- package/esm/Options/Classes/Particles/Destroy/Destroy.d.ts +1 -1
- package/esm/Options/Classes/Particles/Destroy/Split.d.ts +3 -3
- package/esm/Options/Classes/Particles/Life/Life.d.ts +1 -1
- package/esm/Options/Classes/Particles/Links/Links.d.ts +2 -2
- package/esm/Options/Classes/Particles/Links/LinksShadow.d.ts +2 -2
- package/esm/Options/Classes/Particles/Links/LinksTriangle.d.ts +1 -1
- package/esm/Options/Classes/Particles/Move/Attract.d.ts +2 -2
- package/esm/Options/Classes/Particles/Move/Move.d.ts +5 -5
- package/esm/Options/Classes/Particles/Move/Move.js +3 -3
- package/esm/Options/Classes/Particles/Move/OutModes.d.ts +2 -2
- package/esm/Options/Classes/Particles/Move/Path/Path.d.ts +3 -3
- package/esm/Options/Classes/Particles/Move/Spin.d.ts +3 -3
- package/esm/Options/Classes/Particles/Move/Trail.d.ts +2 -2
- package/esm/Options/Classes/Particles/Number/Density.d.ts +1 -1
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.d.ts +2 -2
- package/esm/Options/Classes/Particles/Opacity/Opacity.d.ts +1 -1
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +3 -3
- package/esm/Options/Classes/Particles/Orbit/Orbit.d.ts +5 -5
- package/esm/Options/Classes/Particles/Orbit/Orbit.js +2 -2
- package/esm/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +1 -1
- package/esm/Options/Classes/Particles/ParticlesOptions.d.ts +16 -16
- package/esm/Options/Classes/Particles/ParticlesOptions.js +13 -13
- package/esm/Options/Classes/Particles/Repulse/Repulse.d.ts +1 -1
- package/esm/Options/Classes/Particles/Roll/Roll.d.ts +2 -2
- package/esm/Options/Classes/Particles/Roll/RollLight.d.ts +1 -1
- package/esm/Options/Classes/Particles/Rotate/Rotate.d.ts +3 -3
- package/esm/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +1 -1
- package/esm/Options/Classes/Particles/Shadow.d.ts +3 -3
- package/esm/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/esm/Options/Classes/Particles/Size/Size.d.ts +2 -2
- package/esm/Options/Classes/Particles/Size/SizeAnimation.d.ts +3 -3
- package/esm/Options/Classes/Particles/Stroke.d.ts +2 -2
- package/esm/Options/Classes/Particles/Tilt/Tilt.d.ts +3 -3
- package/esm/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +1 -1
- package/esm/Options/Classes/Particles/Twinkle/Twinkle.d.ts +1 -1
- package/esm/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +2 -2
- package/esm/Options/Classes/Particles/Wobble/Wobble.d.ts +2 -2
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.d.ts +1 -1
- package/esm/Options/Classes/Random.d.ts +1 -1
- package/esm/Options/Classes/Responsive.d.ts +2 -2
- package/esm/Options/Classes/Theme/Theme.d.ts +2 -2
- package/esm/Options/Classes/Theme/Theme.js +1 -1
- package/esm/Options/Classes/Theme/ThemeDefault.d.ts +2 -2
- package/esm/Options/Classes/ValueWithRandom.d.ts +2 -2
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +1 -1
- package/esm/Options/Interfaces/IAnimatableColor.d.ts +1 -1
- package/esm/Options/Interfaces/IAnimatableGradient.d.ts +1 -1
- package/esm/Options/Interfaces/IColorAnimation.d.ts +1 -1
- package/esm/Options/Interfaces/IManualParticle.d.ts +1 -1
- package/esm/Options/Interfaces/IOptions.d.ts +6 -6
- package/esm/Options/Interfaces/IOptionsGradient.d.ts +2 -2
- package/esm/Options/Interfaces/IResponsive.d.ts +2 -2
- package/esm/Options/Interfaces/IValueWithRandom.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/Events/IEvents.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/IInteractivity.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +2 -2
- package/esm/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +1 -1
- package/esm/Options/Interfaces/Interactivity/Modes/IModes.d.ts +2 -2
- package/esm/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +2 -2
- package/esm/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Destroy/ISplit.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/IParticles.d.ts +14 -14
- package/esm/Options/Interfaces/Particles/IShadow.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/IStroke.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Links/ILinks.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Move/IMove.d.ts +5 -5
- package/esm/Options/Interfaces/Particles/Move/Path/{iPath.d.ts → IPath.d.ts} +0 -0
- package/esm/Options/Interfaces/Particles/Move/Path/{iPath.js → IPath.js} +0 -0
- package/esm/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +3 -3
- package/esm/Options/Interfaces/Particles/Roll/IRoll.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Rotate/IRotate.d.ts +1 -1
- package/esm/Options/Interfaces/Particles/Shape/IShape.d.ts +3 -3
- package/esm/Options/Interfaces/Particles/Tilt/ITilt.d.ts +1 -1
- package/esm/Options/Interfaces/Theme/ITheme.d.ts +2 -2
- package/esm/Plugins/Absorbers/AbsorberInstance.d.ts +5 -4
- package/esm/Plugins/Absorbers/AbsorberInstance.js +18 -18
- package/esm/Plugins/Absorbers/Absorbers.d.ts +3 -3
- package/esm/Plugins/Absorbers/Absorbers.js +1 -1
- package/esm/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -4
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +2 -2
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSize.js +1 -1
- package/esm/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +2 -2
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +1 -2
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +1 -1
- package/esm/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +1 -1
- package/esm/Plugins/Absorbers/index.d.ts +1 -1
- package/esm/Plugins/Absorbers/index.js +3 -3
- package/esm/Plugins/Emitters/EmitterContainer.d.ts +2 -1
- package/esm/Plugins/Emitters/EmitterInstance.d.ts +5 -3
- package/esm/Plugins/Emitters/EmitterInstance.js +34 -35
- package/esm/Plugins/Emitters/Emitters.d.ts +3 -3
- package/esm/Plugins/Emitters/Emitters.js +11 -3
- package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +7 -7
- package/esm/Plugins/Emitters/Options/Classes/Emitter.js +3 -3
- package/esm/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +6 -6
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +1 -1
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +1 -1
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +1 -1
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +1 -1
- package/esm/Plugins/Emitters/index.d.ts +1 -1
- package/esm/Plugins/Emitters/index.js +9 -9
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +5 -5
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMask.js +1 -1
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +1 -1
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +3 -3
- package/esm/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +2 -2
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +3 -3
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +1 -1
- package/esm/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +1 -1
- package/esm/Plugins/PolygonMask/PolygonMaskInstance.d.ts +3 -3
- package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +2 -2
- package/esm/Plugins/PolygonMask/Types.d.ts +1 -1
- package/esm/Plugins/PolygonMask/index.d.ts +1 -1
- package/esm/Plugins/PolygonMask/index.js +3 -3
- package/esm/Shapes/Circle/index.d.ts +1 -1
- package/esm/Shapes/Circle/index.js +2 -2
- package/esm/Shapes/Image/index.d.ts +1 -1
- package/esm/Shapes/Image/index.js +3 -3
- package/esm/Shapes/Line/index.d.ts +1 -1
- package/esm/Shapes/Line/index.js +2 -2
- package/esm/Shapes/Polygon/PolygonDrawer.d.ts +1 -1
- package/esm/Shapes/Polygon/TriangleDrawer.d.ts +1 -1
- package/esm/Shapes/Polygon/index.d.ts +3 -3
- package/esm/Shapes/Polygon/index.js +7 -7
- package/esm/Shapes/Square/index.d.ts +1 -1
- package/esm/Shapes/Square/index.js +3 -3
- package/esm/Shapes/Star/index.d.ts +1 -1
- package/esm/Shapes/Star/index.js +2 -2
- package/esm/Shapes/Text/index.d.ts +1 -1
- package/esm/Shapes/Text/index.js +3 -3
- package/esm/Types/ShapeData.d.ts +1 -1
- package/esm/Types/ShapeDrawerFunctions.d.ts +1 -1
- package/esm/Updaters/Angle/index.d.ts +1 -1
- package/esm/Updaters/Angle/index.js +2 -2
- package/esm/Updaters/Color/index.d.ts +1 -1
- package/esm/Updaters/Color/index.js +2 -2
- package/esm/Updaters/Life/index.d.ts +1 -1
- package/esm/Updaters/Life/index.js +2 -2
- package/esm/Updaters/Opacity/index.d.ts +1 -1
- package/esm/Updaters/Opacity/index.js +2 -2
- package/esm/Updaters/OutModes/IBounceData.d.ts +1 -1
- package/esm/Updaters/OutModes/OutOfCanvasUpdater.js +1 -1
- package/esm/Updaters/OutModes/index.d.ts +1 -1
- package/esm/Updaters/OutModes/index.js +2 -2
- package/esm/Updaters/Roll/index.d.ts +1 -1
- package/esm/Updaters/Roll/index.js +2 -2
- package/esm/Updaters/Size/index.d.ts +1 -1
- package/esm/Updaters/Size/index.js +2 -2
- package/esm/Updaters/StrokeColor/index.d.ts +1 -1
- package/esm/Updaters/StrokeColor/index.js +2 -2
- package/esm/Updaters/Tilt/index.d.ts +1 -1
- package/esm/Updaters/Tilt/index.js +2 -2
- package/esm/Updaters/Wobble/index.d.ts +1 -1
- package/esm/Updaters/Wobble/index.js +2 -2
- package/esm/Utils/CanvasUtils.d.ts +2 -3
- package/esm/Utils/CanvasUtils.js +1 -1
- package/esm/Utils/ColorUtils.js +1 -1
- package/esm/Utils/NumberUtils.d.ts +2 -2
- package/esm/Utils/Utils.d.ts +3 -3
- package/esm/Utils/Utils.js +1 -1
- package/esm/engine.d.ts +2 -2
- package/esm/full.d.ts +1 -1
- package/esm/full.js +14 -14
- package/esm/index.d.ts +1 -1
- package/esm/index.engine.d.ts +1 -1
- package/esm/index.engine.js +1 -1
- package/esm/index.js +1 -1
- package/esm/index.slim.d.ts +1 -1
- package/esm/index.slim.js +1 -1
- package/esm/pjs.d.ts +1 -1
- package/esm/slim.d.ts +1 -1
- package/esm/slim.js +40 -40
- package/full.d.ts +1 -1
- package/full.js +14 -14
- package/index.d.ts +1 -1
- package/index.engine.d.ts +1 -1
- package/index.engine.js +1 -1
- package/index.js +1 -1
- package/index.slim.d.ts +1 -1
- package/index.slim.js +1 -1
- package/package.json +1 -1
- package/pjs.d.ts +1 -1
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/slim.d.ts +1 -1
- package/slim.js +40 -40
- package/tsparticles.engine.js +2359 -2359
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +3943 -3943
- package/tsparticles.interaction.external.attract.min.js +2 -2
- package/tsparticles.interaction.external.bounce.js +4058 -4058
- package/tsparticles.interaction.external.bounce.min.js +2 -2
- package/tsparticles.interaction.external.bubble.js +3886 -3886
- package/tsparticles.interaction.external.bubble.min.js +2 -2
- package/tsparticles.interaction.external.connect.js +4040 -4040
- package/tsparticles.interaction.external.connect.min.js +2 -2
- package/tsparticles.interaction.external.grab.js +4040 -4040
- package/tsparticles.interaction.external.grab.min.js +2 -2
- package/tsparticles.interaction.external.repulse.js +4058 -4058
- package/tsparticles.interaction.external.repulse.min.js +2 -2
- package/tsparticles.interaction.external.trail.js +4040 -4040
- package/tsparticles.interaction.external.trail.min.js +2 -2
- package/tsparticles.interaction.particles.attract.js +4042 -4042
- package/tsparticles.interaction.particles.attract.min.js +2 -2
- package/tsparticles.interaction.particles.collisions.js +882 -882
- package/tsparticles.interaction.particles.collisions.min.js +1 -1
- package/tsparticles.interaction.particles.links.js +4002 -4002
- package/tsparticles.interaction.particles.links.min.js +2 -2
- package/tsparticles.js +6215 -6209
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +1027 -1028
- package/tsparticles.plugins.absorbers.min.js +2 -2
- package/tsparticles.plugins.emitters.js +1636 -1629
- package/tsparticles.plugins.emitters.min.js +2 -2
- package/tsparticles.plugins.polygonMask.js +2620 -2620
- package/tsparticles.plugins.polygonMask.min.js +2 -2
- package/tsparticles.shape.circle.js +2 -2
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.js +883 -883
- package/tsparticles.shape.image.min.js +1 -1
- package/tsparticles.shape.line.js +2 -2
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.js +7 -7
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.js +3 -3
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.js +2 -2
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.js +882 -882
- package/tsparticles.shape.text.min.js +1 -1
- package/tsparticles.slim.js +3561 -3561
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +882 -882
- package/tsparticles.updater.angle.min.js +1 -1
- package/tsparticles.updater.color.js +882 -882
- package/tsparticles.updater.color.min.js +1 -1
- package/tsparticles.updater.life.js +882 -882
- package/tsparticles.updater.life.min.js +1 -1
- package/tsparticles.updater.opacity.js +882 -882
- package/tsparticles.updater.opacity.min.js +1 -1
- package/tsparticles.updater.outModes.js +882 -882
- package/tsparticles.updater.outModes.min.js +1 -1
- package/tsparticles.updater.roll.js +882 -882
- package/tsparticles.updater.roll.min.js +1 -1
- package/tsparticles.updater.size.js +882 -882
- package/tsparticles.updater.size.min.js +1 -1
- package/tsparticles.updater.strokeColor.js +882 -882
- package/tsparticles.updater.strokeColor.min.js +1 -1
- package/tsparticles.updater.tilt.js +882 -882
- package/tsparticles.updater.tilt.min.js +1 -1
- package/tsparticles.updater.wobble.js +882 -882
- package/tsparticles.updater.wobble.min.js +1 -1
|
@@ -1170,366 +1170,278 @@
|
|
|
1170
1170
|
}));
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
class
|
|
1173
|
+
class Trail_Trail {
|
|
1174
1174
|
constructor() {
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1175
|
+
this.delay = 1;
|
|
1176
|
+
this.pauseOnStop = false;
|
|
1177
|
+
this.quantity = 1;
|
|
1177
1178
|
}
|
|
1178
1179
|
load(data) {
|
|
1179
|
-
if (
|
|
1180
|
+
if (data === undefined) {
|
|
1180
1181
|
return;
|
|
1181
1182
|
}
|
|
1182
|
-
if (
|
|
1183
|
-
this.
|
|
1184
|
-
} else {
|
|
1185
|
-
this.random.load(data.random);
|
|
1183
|
+
if (data.delay !== undefined) {
|
|
1184
|
+
this.delay = data.delay;
|
|
1186
1185
|
}
|
|
1187
|
-
if (data.
|
|
1188
|
-
this.
|
|
1186
|
+
if (data.quantity !== undefined) {
|
|
1187
|
+
this.quantity = data.quantity;
|
|
1188
|
+
}
|
|
1189
|
+
if (data.particles !== undefined) {
|
|
1190
|
+
this.particles = deepExtend({}, data.particles);
|
|
1191
|
+
}
|
|
1192
|
+
if (data.pauseOnStop !== undefined) {
|
|
1193
|
+
this.pauseOnStop = data.pauseOnStop;
|
|
1189
1194
|
}
|
|
1190
1195
|
}
|
|
1191
1196
|
}
|
|
1192
|
-
class
|
|
1197
|
+
class Modes_Modes {
|
|
1193
1198
|
constructor() {
|
|
1194
|
-
|
|
1199
|
+
this.attract = new Attract;
|
|
1200
|
+
this.bounce = new Bounce;
|
|
1201
|
+
this.bubble = new Bubble;
|
|
1202
|
+
this.connect = new Connect;
|
|
1203
|
+
this.grab = new Grab;
|
|
1204
|
+
this.light = new Light;
|
|
1205
|
+
this.push = new Push;
|
|
1206
|
+
this.remove = new Remove;
|
|
1207
|
+
this.repulse = new Repulse;
|
|
1208
|
+
this.slow = new Slow;
|
|
1209
|
+
this.trail = new Trail;
|
|
1210
|
+
}
|
|
1211
|
+
load(data) {
|
|
1212
|
+
if (data === undefined) {
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1215
|
+
this.attract.load(data.attract);
|
|
1216
|
+
this.bubble.load(data.bubble);
|
|
1217
|
+
this.connect.load(data.connect);
|
|
1218
|
+
this.grab.load(data.grab);
|
|
1219
|
+
this.light.load(data.light);
|
|
1220
|
+
this.push.load(data.push);
|
|
1221
|
+
this.remove.load(data.remove);
|
|
1222
|
+
this.repulse.load(data.repulse);
|
|
1223
|
+
this.slow.load(data.slow);
|
|
1224
|
+
this.trail.load(data.trail);
|
|
1195
1225
|
}
|
|
1196
1226
|
}
|
|
1197
|
-
class
|
|
1227
|
+
class Interactivity_Interactivity {
|
|
1198
1228
|
constructor() {
|
|
1199
|
-
this.
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1202
|
-
|
|
1229
|
+
this.detectsOn = "window";
|
|
1230
|
+
this.events = new Events;
|
|
1231
|
+
this.modes = new Modes;
|
|
1232
|
+
}
|
|
1233
|
+
get detect_on() {
|
|
1234
|
+
return this.detectsOn;
|
|
1235
|
+
}
|
|
1236
|
+
set detect_on(value) {
|
|
1237
|
+
this.detectsOn = value;
|
|
1203
1238
|
}
|
|
1204
1239
|
load(data) {
|
|
1240
|
+
var _a, _b, _c;
|
|
1205
1241
|
if (data === undefined) {
|
|
1206
1242
|
return;
|
|
1207
1243
|
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
this.delay.load(data.delay);
|
|
1212
|
-
if (data.enable !== undefined) {
|
|
1213
|
-
this.enable = data.enable;
|
|
1244
|
+
const detectsOn = (_a = data.detectsOn) !== null && _a !== void 0 ? _a : data.detect_on;
|
|
1245
|
+
if (detectsOn !== undefined) {
|
|
1246
|
+
this.detectsOn = detectsOn;
|
|
1214
1247
|
}
|
|
1215
|
-
this.
|
|
1216
|
-
|
|
1217
|
-
|
|
1248
|
+
this.events.load(data.events);
|
|
1249
|
+
this.modes.load(data.modes);
|
|
1250
|
+
if (((_c = (_b = data.modes) === null || _b === void 0 ? void 0 : _b.slow) === null || _c === void 0 ? void 0 : _c.active) === true) {
|
|
1251
|
+
if (this.events.onHover.mode instanceof Array) {
|
|
1252
|
+
if (this.events.onHover.mode.indexOf("slow") < 0) {
|
|
1253
|
+
this.events.onHover.mode.push("slow");
|
|
1254
|
+
}
|
|
1255
|
+
} else if (this.events.onHover.mode !== "slow") {
|
|
1256
|
+
this.events.onHover.mode = [ this.events.onHover.mode, "slow" ];
|
|
1257
|
+
}
|
|
1218
1258
|
}
|
|
1219
1259
|
}
|
|
1220
1260
|
}
|
|
1221
|
-
class
|
|
1222
|
-
constructor() {
|
|
1223
|
-
this.acceleration = 0;
|
|
1224
|
-
this.enable = false;
|
|
1225
|
-
}
|
|
1261
|
+
class ManualParticle_ManualParticle {
|
|
1226
1262
|
load(data) {
|
|
1263
|
+
var _a, _b;
|
|
1227
1264
|
if (!data) {
|
|
1228
1265
|
return;
|
|
1229
1266
|
}
|
|
1230
|
-
if (data.
|
|
1231
|
-
this.
|
|
1267
|
+
if (data.position !== undefined) {
|
|
1268
|
+
this.position = {
|
|
1269
|
+
x: (_a = data.position.x) !== null && _a !== void 0 ? _a : 50,
|
|
1270
|
+
y: (_b = data.position.y) !== null && _b !== void 0 ? _b : 50
|
|
1271
|
+
};
|
|
1232
1272
|
}
|
|
1233
|
-
if (data.
|
|
1234
|
-
this.
|
|
1273
|
+
if (data.options !== undefined) {
|
|
1274
|
+
this.options = deepExtend({}, data.options);
|
|
1235
1275
|
}
|
|
1236
|
-
this.position = data.position ? deepExtend({}, data.position) : undefined;
|
|
1237
1276
|
}
|
|
1238
1277
|
}
|
|
1239
|
-
class
|
|
1278
|
+
class ColorAnimation_ColorAnimation {
|
|
1240
1279
|
constructor() {
|
|
1241
|
-
this.
|
|
1242
|
-
this.attract = new Attract;
|
|
1243
|
-
this.decay = 0;
|
|
1244
|
-
this.distance = {};
|
|
1245
|
-
this.direction = "none";
|
|
1246
|
-
this.drift = 0;
|
|
1280
|
+
this.count = 0;
|
|
1247
1281
|
this.enable = false;
|
|
1248
|
-
this.
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1251
|
-
this.random = false;
|
|
1252
|
-
this.size = false;
|
|
1253
|
-
this.speed = 2;
|
|
1254
|
-
this.spin = new Spin;
|
|
1255
|
-
this.straight = false;
|
|
1256
|
-
this.trail = new Trail;
|
|
1257
|
-
this.vibrate = false;
|
|
1258
|
-
this.warp = false;
|
|
1259
|
-
}
|
|
1260
|
-
get collisions() {
|
|
1261
|
-
return false;
|
|
1262
|
-
}
|
|
1263
|
-
set collisions(value) {}
|
|
1264
|
-
get bounce() {
|
|
1265
|
-
return this.collisions;
|
|
1266
|
-
}
|
|
1267
|
-
set bounce(value) {
|
|
1268
|
-
this.collisions = value;
|
|
1269
|
-
}
|
|
1270
|
-
get out_mode() {
|
|
1271
|
-
return this.outMode;
|
|
1272
|
-
}
|
|
1273
|
-
set out_mode(value) {
|
|
1274
|
-
this.outMode = value;
|
|
1275
|
-
}
|
|
1276
|
-
get outMode() {
|
|
1277
|
-
return this.outModes.default;
|
|
1278
|
-
}
|
|
1279
|
-
set outMode(value) {
|
|
1280
|
-
this.outModes.default = value;
|
|
1281
|
-
}
|
|
1282
|
-
get noise() {
|
|
1283
|
-
return this.path;
|
|
1284
|
-
}
|
|
1285
|
-
set noise(value) {
|
|
1286
|
-
this.path = value;
|
|
1282
|
+
this.offset = 0;
|
|
1283
|
+
this.speed = 1;
|
|
1284
|
+
this.sync = true;
|
|
1287
1285
|
}
|
|
1288
1286
|
load(data) {
|
|
1289
|
-
var _a, _b, _c;
|
|
1290
1287
|
if (data === undefined) {
|
|
1291
1288
|
return;
|
|
1292
1289
|
}
|
|
1293
|
-
if (data.
|
|
1294
|
-
|
|
1295
|
-
this.angle.value = data.angle;
|
|
1296
|
-
} else {
|
|
1297
|
-
this.angle.load(data.angle);
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
this.attract.load(data.attract);
|
|
1301
|
-
if (data.decay !== undefined) {
|
|
1302
|
-
this.decay = data.decay;
|
|
1303
|
-
}
|
|
1304
|
-
if (data.direction !== undefined) {
|
|
1305
|
-
this.direction = data.direction;
|
|
1306
|
-
}
|
|
1307
|
-
if (data.distance !== undefined) {
|
|
1308
|
-
this.distance = typeof data.distance === "number" ? {
|
|
1309
|
-
horizontal: data.distance,
|
|
1310
|
-
vertical: data.distance
|
|
1311
|
-
} : deepExtend({}, data.distance);
|
|
1312
|
-
}
|
|
1313
|
-
if (data.drift !== undefined) {
|
|
1314
|
-
this.drift = setRangeValue(data.drift);
|
|
1290
|
+
if (data.count !== undefined) {
|
|
1291
|
+
this.count = data.count;
|
|
1315
1292
|
}
|
|
1316
1293
|
if (data.enable !== undefined) {
|
|
1317
1294
|
this.enable = data.enable;
|
|
1318
1295
|
}
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
if (data.outModes !== undefined || outMode !== undefined) {
|
|
1322
|
-
if (typeof data.outModes === "string" || data.outModes === undefined && outMode !== undefined) {
|
|
1323
|
-
this.outModes.load({
|
|
1324
|
-
default: (_b = data.outModes) !== null && _b !== void 0 ? _b : outMode
|
|
1325
|
-
});
|
|
1326
|
-
} else {
|
|
1327
|
-
this.outModes.load(data.outModes);
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
this.path.load((_c = data.path) !== null && _c !== void 0 ? _c : data.noise);
|
|
1331
|
-
if (data.random !== undefined) {
|
|
1332
|
-
this.random = data.random;
|
|
1333
|
-
}
|
|
1334
|
-
if (data.size !== undefined) {
|
|
1335
|
-
this.size = data.size;
|
|
1296
|
+
if (data.offset !== undefined) {
|
|
1297
|
+
this.offset = setRangeValue(data.offset);
|
|
1336
1298
|
}
|
|
1337
1299
|
if (data.speed !== undefined) {
|
|
1338
|
-
this.speed =
|
|
1339
|
-
}
|
|
1340
|
-
this.spin.load(data.spin);
|
|
1341
|
-
if (data.straight !== undefined) {
|
|
1342
|
-
this.straight = data.straight;
|
|
1343
|
-
}
|
|
1344
|
-
this.trail.load(data.trail);
|
|
1345
|
-
if (data.vibrate !== undefined) {
|
|
1346
|
-
this.vibrate = data.vibrate;
|
|
1300
|
+
this.speed = data.speed;
|
|
1347
1301
|
}
|
|
1348
|
-
if (data.
|
|
1349
|
-
this.
|
|
1302
|
+
if (data.sync !== undefined) {
|
|
1303
|
+
this.sync = data.sync;
|
|
1350
1304
|
}
|
|
1351
1305
|
}
|
|
1352
1306
|
}
|
|
1353
|
-
class
|
|
1307
|
+
class HslAnimation_HslAnimation {
|
|
1354
1308
|
constructor() {
|
|
1355
|
-
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.value = 1;
|
|
1359
|
-
}
|
|
1360
|
-
get anim() {
|
|
1361
|
-
return this.animation;
|
|
1362
|
-
}
|
|
1363
|
-
set anim(value) {
|
|
1364
|
-
this.animation = value;
|
|
1309
|
+
this.h = new ColorAnimation;
|
|
1310
|
+
this.s = new ColorAnimation;
|
|
1311
|
+
this.l = new ColorAnimation;
|
|
1365
1312
|
}
|
|
1366
1313
|
load(data) {
|
|
1367
|
-
var _a;
|
|
1368
1314
|
if (!data) {
|
|
1369
1315
|
return;
|
|
1370
1316
|
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
this.animation.load(animation);
|
|
1375
|
-
this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
|
|
1376
|
-
}
|
|
1317
|
+
this.h.load(data.h);
|
|
1318
|
+
this.s.load(data.s);
|
|
1319
|
+
this.l.load(data.l);
|
|
1377
1320
|
}
|
|
1378
1321
|
}
|
|
1379
|
-
class
|
|
1322
|
+
class AnimatableColor_AnimatableColor extends(null && OptionsColor){
|
|
1380
1323
|
constructor() {
|
|
1381
|
-
|
|
1382
|
-
this.
|
|
1383
|
-
}
|
|
1384
|
-
get image() {
|
|
1385
|
-
var _a;
|
|
1386
|
-
return (_a = this.options["image"]) !== null && _a !== void 0 ? _a : this.options["images"];
|
|
1324
|
+
super();
|
|
1325
|
+
this.animation = new HslAnimation;
|
|
1387
1326
|
}
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
set images(value) {
|
|
1402
|
-
this.image = value;
|
|
1403
|
-
}
|
|
1404
|
-
get stroke() {
|
|
1405
|
-
return [];
|
|
1406
|
-
}
|
|
1407
|
-
set stroke(_value) {}
|
|
1408
|
-
get character() {
|
|
1409
|
-
var _a;
|
|
1410
|
-
return (_a = this.options["character"]) !== null && _a !== void 0 ? _a : this.options["char"];
|
|
1411
|
-
}
|
|
1412
|
-
set character(value) {
|
|
1413
|
-
this.options["character"] = value;
|
|
1414
|
-
this.options["char"] = value;
|
|
1327
|
+
static create(source, data) {
|
|
1328
|
+
const color = new AnimatableColor_AnimatableColor;
|
|
1329
|
+
color.load(source);
|
|
1330
|
+
if (data !== undefined) {
|
|
1331
|
+
if (typeof data === "string" || data instanceof Array) {
|
|
1332
|
+
color.load({
|
|
1333
|
+
value: data
|
|
1334
|
+
});
|
|
1335
|
+
} else {
|
|
1336
|
+
color.load(data);
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
return color;
|
|
1415
1340
|
}
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1341
|
+
load(data) {
|
|
1342
|
+
super.load(data);
|
|
1343
|
+
if (!data) {
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
const colorAnimation = data.animation;
|
|
1347
|
+
if (colorAnimation !== undefined) {
|
|
1348
|
+
if (colorAnimation.enable !== undefined) {
|
|
1349
|
+
this.animation.h.load(colorAnimation);
|
|
1350
|
+
} else {
|
|
1351
|
+
this.animation.load(data.animation);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1419
1354
|
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1355
|
+
}
|
|
1356
|
+
class AnimatableGradient_AnimatableGradient {
|
|
1357
|
+
constructor() {
|
|
1358
|
+
this.angle = new GradientAngle;
|
|
1359
|
+
this.colors = [];
|
|
1360
|
+
this.type = "random";
|
|
1423
1361
|
}
|
|
1424
1362
|
load(data) {
|
|
1425
|
-
|
|
1426
|
-
if (data === undefined) {
|
|
1363
|
+
if (!data) {
|
|
1427
1364
|
return;
|
|
1428
1365
|
}
|
|
1429
|
-
|
|
1430
|
-
if (
|
|
1431
|
-
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
}
|
|
1366
|
+
this.angle.load(data.angle);
|
|
1367
|
+
if (data.colors !== undefined) {
|
|
1368
|
+
this.colors = data.colors.map((s => {
|
|
1369
|
+
const tmp = new AnimatableGradientColor;
|
|
1370
|
+
tmp.load(s);
|
|
1371
|
+
return tmp;
|
|
1372
|
+
}));
|
|
1437
1373
|
}
|
|
1438
|
-
this.loadShape(data.character, "character", "char", true);
|
|
1439
|
-
this.loadShape(data.polygon, "polygon", "star", false);
|
|
1440
|
-
this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, "image", "images", true);
|
|
1441
1374
|
if (data.type !== undefined) {
|
|
1442
1375
|
this.type = data.type;
|
|
1443
1376
|
}
|
|
1444
1377
|
}
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1378
|
+
}
|
|
1379
|
+
class GradientAngle {
|
|
1380
|
+
constructor() {
|
|
1381
|
+
this.value = 0;
|
|
1382
|
+
this.animation = new GradientAngleAnimation;
|
|
1383
|
+
this.direction = "clockwise";
|
|
1384
|
+
}
|
|
1385
|
+
load(data) {
|
|
1386
|
+
if (!data) {
|
|
1448
1387
|
return;
|
|
1449
1388
|
}
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
}
|
|
1457
|
-
this.options[mainKey] = deepExtend((_a = this.options[mainKey]) !== null && _a !== void 0 ? _a : [], item);
|
|
1458
|
-
if (!this.options[altKey] || altOverride) {
|
|
1459
|
-
this.options[altKey] = deepExtend((_b = this.options[altKey]) !== null && _b !== void 0 ? _b : [], item);
|
|
1460
|
-
}
|
|
1461
|
-
} else {
|
|
1462
|
-
if (this.options[mainKey] instanceof Array) {
|
|
1463
|
-
this.options[mainKey] = {};
|
|
1464
|
-
if (!this.options[altKey] || altOverride) {
|
|
1465
|
-
this.options[altKey] = {};
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
this.options[mainKey] = deepExtend((_c = this.options[mainKey]) !== null && _c !== void 0 ? _c : {}, item);
|
|
1469
|
-
if (!this.options[altKey] || altOverride) {
|
|
1470
|
-
this.options[altKey] = deepExtend((_d = this.options[altKey]) !== null && _d !== void 0 ? _d : {}, item);
|
|
1471
|
-
}
|
|
1389
|
+
this.animation.load(data.animation);
|
|
1390
|
+
if (data.value !== undefined) {
|
|
1391
|
+
this.value = data.value;
|
|
1392
|
+
}
|
|
1393
|
+
if (data.direction !== undefined) {
|
|
1394
|
+
this.direction = data.direction;
|
|
1472
1395
|
}
|
|
1473
1396
|
}
|
|
1474
1397
|
}
|
|
1475
|
-
class
|
|
1398
|
+
class GradientColorOpacity {
|
|
1476
1399
|
constructor() {
|
|
1477
|
-
|
|
1478
|
-
this.animation = new
|
|
1479
|
-
this.random.minimumValue = 1;
|
|
1480
|
-
this.value = 3;
|
|
1481
|
-
}
|
|
1482
|
-
get anim() {
|
|
1483
|
-
return this.animation;
|
|
1484
|
-
}
|
|
1485
|
-
set anim(value) {
|
|
1486
|
-
this.animation = value;
|
|
1400
|
+
this.value = 0;
|
|
1401
|
+
this.animation = new GradientColorOpacityAnimation;
|
|
1487
1402
|
}
|
|
1488
1403
|
load(data) {
|
|
1489
|
-
var _a;
|
|
1490
1404
|
if (!data) {
|
|
1491
1405
|
return;
|
|
1492
1406
|
}
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
this.animation.load(animation);
|
|
1497
|
-
this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
|
|
1407
|
+
this.animation.load(data.animation);
|
|
1408
|
+
if (data.value !== undefined) {
|
|
1409
|
+
this.value = setRangeValue(data.value);
|
|
1498
1410
|
}
|
|
1499
1411
|
}
|
|
1500
1412
|
}
|
|
1501
|
-
class
|
|
1413
|
+
class AnimatableGradientColor {
|
|
1502
1414
|
constructor() {
|
|
1503
|
-
|
|
1504
|
-
this.
|
|
1505
|
-
this.direction = "clockwise";
|
|
1506
|
-
this.path = false;
|
|
1507
|
-
this.value = 0;
|
|
1415
|
+
this.stop = 0;
|
|
1416
|
+
this.value = new AnimatableColor;
|
|
1508
1417
|
}
|
|
1509
1418
|
load(data) {
|
|
1510
1419
|
if (!data) {
|
|
1511
1420
|
return;
|
|
1512
1421
|
}
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
this.direction = data.direction;
|
|
1422
|
+
if (data.stop !== undefined) {
|
|
1423
|
+
this.stop = data.stop;
|
|
1516
1424
|
}
|
|
1517
|
-
this.
|
|
1518
|
-
if (data.
|
|
1519
|
-
this.
|
|
1425
|
+
this.value = AnimatableColor.create(this.value, data.value);
|
|
1426
|
+
if (data.opacity !== undefined) {
|
|
1427
|
+
this.opacity = new GradientColorOpacity;
|
|
1428
|
+
if (typeof data.opacity === "number") {
|
|
1429
|
+
this.opacity.value = data.opacity;
|
|
1430
|
+
} else {
|
|
1431
|
+
this.opacity.load(data.opacity);
|
|
1432
|
+
}
|
|
1520
1433
|
}
|
|
1521
1434
|
}
|
|
1522
1435
|
}
|
|
1523
|
-
class
|
|
1436
|
+
class GradientAngleAnimation {
|
|
1524
1437
|
constructor() {
|
|
1525
1438
|
this.count = 0;
|
|
1526
1439
|
this.enable = false;
|
|
1527
|
-
this.
|
|
1528
|
-
this.
|
|
1529
|
-
this.sync = true;
|
|
1440
|
+
this.speed = 0;
|
|
1441
|
+
this.sync = false;
|
|
1530
1442
|
}
|
|
1531
1443
|
load(data) {
|
|
1532
|
-
if (data
|
|
1444
|
+
if (!data) {
|
|
1533
1445
|
return;
|
|
1534
1446
|
}
|
|
1535
1447
|
if (data.count !== undefined) {
|
|
@@ -1538,9 +1450,6 @@
|
|
|
1538
1450
|
if (data.enable !== undefined) {
|
|
1539
1451
|
this.enable = data.enable;
|
|
1540
1452
|
}
|
|
1541
|
-
if (data.offset !== undefined) {
|
|
1542
|
-
this.offset = setRangeValue(data.offset);
|
|
1543
|
-
}
|
|
1544
1453
|
if (data.speed !== undefined) {
|
|
1545
1454
|
this.speed = data.speed;
|
|
1546
1455
|
}
|
|
@@ -1549,79 +1458,59 @@
|
|
|
1549
1458
|
}
|
|
1550
1459
|
}
|
|
1551
1460
|
}
|
|
1552
|
-
class
|
|
1461
|
+
class GradientColorOpacityAnimation {
|
|
1553
1462
|
constructor() {
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1463
|
+
this.count = 0;
|
|
1464
|
+
this.enable = false;
|
|
1465
|
+
this.speed = 0;
|
|
1466
|
+
this.sync = false;
|
|
1467
|
+
this.startValue = "random";
|
|
1557
1468
|
}
|
|
1558
1469
|
load(data) {
|
|
1559
1470
|
if (!data) {
|
|
1560
1471
|
return;
|
|
1561
1472
|
}
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1473
|
+
if (data.count !== undefined) {
|
|
1474
|
+
this.count = data.count;
|
|
1475
|
+
}
|
|
1476
|
+
if (data.enable !== undefined) {
|
|
1477
|
+
this.enable = data.enable;
|
|
1478
|
+
}
|
|
1479
|
+
if (data.speed !== undefined) {
|
|
1480
|
+
this.speed = data.speed;
|
|
1481
|
+
}
|
|
1482
|
+
if (data.sync !== undefined) {
|
|
1483
|
+
this.sync = data.sync;
|
|
1484
|
+
}
|
|
1485
|
+
if (data.startValue !== undefined) {
|
|
1486
|
+
this.startValue = data.startValue;
|
|
1487
|
+
}
|
|
1565
1488
|
}
|
|
1566
1489
|
}
|
|
1567
|
-
class
|
|
1490
|
+
class ValueWithRandom_ValueWithRandom {
|
|
1568
1491
|
constructor() {
|
|
1569
|
-
|
|
1570
|
-
this.
|
|
1571
|
-
}
|
|
1572
|
-
static create(source, data) {
|
|
1573
|
-
const color = new AnimatableColor_AnimatableColor;
|
|
1574
|
-
color.load(source);
|
|
1575
|
-
if (data !== undefined) {
|
|
1576
|
-
if (typeof data === "string" || data instanceof Array) {
|
|
1577
|
-
color.load({
|
|
1578
|
-
value: data
|
|
1579
|
-
});
|
|
1580
|
-
} else {
|
|
1581
|
-
color.load(data);
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
return color;
|
|
1492
|
+
this.random = new Random;
|
|
1493
|
+
this.value = 0;
|
|
1585
1494
|
}
|
|
1586
1495
|
load(data) {
|
|
1587
|
-
super.load(data);
|
|
1588
1496
|
if (!data) {
|
|
1589
1497
|
return;
|
|
1590
1498
|
}
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1499
|
+
if (typeof data.random === "boolean") {
|
|
1500
|
+
this.random.enable = data.random;
|
|
1501
|
+
} else {
|
|
1502
|
+
this.random.load(data.random);
|
|
1503
|
+
}
|
|
1504
|
+
if (data.value !== undefined) {
|
|
1505
|
+
this.value = setRangeValue(data.value, this.random.enable ? this.random.minimumValue : undefined);
|
|
1598
1506
|
}
|
|
1599
1507
|
}
|
|
1600
1508
|
}
|
|
1601
|
-
class
|
|
1509
|
+
class BounceFactor_BounceFactor extends(null && ValueWithRandom){
|
|
1602
1510
|
constructor() {
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
if (data === undefined) {
|
|
1607
|
-
return;
|
|
1608
|
-
}
|
|
1609
|
-
if (data.color !== undefined) {
|
|
1610
|
-
this.color = AnimatableColor.create(this.color, data.color);
|
|
1611
|
-
}
|
|
1612
|
-
if (data.width !== undefined) {
|
|
1613
|
-
this.width = data.width;
|
|
1614
|
-
}
|
|
1615
|
-
if (data.opacity !== undefined) {
|
|
1616
|
-
this.opacity = data.opacity;
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
class BounceFactor_BounceFactor extends(null && ValueWithRandom){
|
|
1621
|
-
constructor() {
|
|
1622
|
-
super();
|
|
1623
|
-
this.random.minimumValue = .1;
|
|
1624
|
-
this.value = 1;
|
|
1511
|
+
super();
|
|
1512
|
+
this.random.minimumValue = .1;
|
|
1513
|
+
this.value = 1;
|
|
1625
1514
|
}
|
|
1626
1515
|
}
|
|
1627
1516
|
class Bounce_Bounce {
|
|
@@ -1658,54 +1547,6 @@
|
|
|
1658
1547
|
this.overlap.load(data.overlap);
|
|
1659
1548
|
}
|
|
1660
1549
|
}
|
|
1661
|
-
class LifeDelay_LifeDelay extends(null && ValueWithRandom){
|
|
1662
|
-
constructor() {
|
|
1663
|
-
super();
|
|
1664
|
-
this.sync = false;
|
|
1665
|
-
}
|
|
1666
|
-
load(data) {
|
|
1667
|
-
if (!data) {
|
|
1668
|
-
return;
|
|
1669
|
-
}
|
|
1670
|
-
super.load(data);
|
|
1671
|
-
if (data.sync !== undefined) {
|
|
1672
|
-
this.sync = data.sync;
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
class LifeDuration_LifeDuration extends(null && ValueWithRandom){
|
|
1677
|
-
constructor() {
|
|
1678
|
-
super();
|
|
1679
|
-
this.random.minimumValue = 1e-4;
|
|
1680
|
-
this.sync = false;
|
|
1681
|
-
}
|
|
1682
|
-
load(data) {
|
|
1683
|
-
if (data === undefined) {
|
|
1684
|
-
return;
|
|
1685
|
-
}
|
|
1686
|
-
super.load(data);
|
|
1687
|
-
if (data.sync !== undefined) {
|
|
1688
|
-
this.sync = data.sync;
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
}
|
|
1692
|
-
class Life_Life {
|
|
1693
|
-
constructor() {
|
|
1694
|
-
this.count = 0;
|
|
1695
|
-
this.delay = new LifeDelay;
|
|
1696
|
-
this.duration = new LifeDuration;
|
|
1697
|
-
}
|
|
1698
|
-
load(data) {
|
|
1699
|
-
if (data === undefined) {
|
|
1700
|
-
return;
|
|
1701
|
-
}
|
|
1702
|
-
if (data.count !== undefined) {
|
|
1703
|
-
this.count = data.count;
|
|
1704
|
-
}
|
|
1705
|
-
this.delay.load(data.delay);
|
|
1706
|
-
this.duration.load(data.duration);
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
1550
|
class SplitFactor_SplitFactor extends(null && ValueWithRandom){
|
|
1710
1551
|
constructor() {
|
|
1711
1552
|
super();
|
|
@@ -1760,322 +1601,586 @@
|
|
|
1760
1601
|
this.split.load(data.split);
|
|
1761
1602
|
}
|
|
1762
1603
|
}
|
|
1763
|
-
class
|
|
1764
|
-
constructor() {
|
|
1765
|
-
this.distance = 5;
|
|
1766
|
-
this.enable = false;
|
|
1767
|
-
this.speed = 50;
|
|
1768
|
-
}
|
|
1769
|
-
load(data) {
|
|
1770
|
-
if (!data) {
|
|
1771
|
-
return;
|
|
1772
|
-
}
|
|
1773
|
-
if (data.distance !== undefined) {
|
|
1774
|
-
this.distance = setRangeValue(data.distance);
|
|
1775
|
-
}
|
|
1776
|
-
if (data.enable !== undefined) {
|
|
1777
|
-
this.enable = data.enable;
|
|
1778
|
-
}
|
|
1779
|
-
if (data.speed !== undefined) {
|
|
1780
|
-
this.speed = setRangeValue(data.speed);
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
class Tilt_Tilt extends(null && ValueWithRandom){
|
|
1604
|
+
class LifeDelay_LifeDelay extends(null && ValueWithRandom){
|
|
1785
1605
|
constructor() {
|
|
1786
1606
|
super();
|
|
1787
|
-
this.
|
|
1788
|
-
this.direction = "clockwise";
|
|
1789
|
-
this.enable = false;
|
|
1790
|
-
this.value = 0;
|
|
1607
|
+
this.sync = false;
|
|
1791
1608
|
}
|
|
1792
1609
|
load(data) {
|
|
1793
1610
|
if (!data) {
|
|
1794
1611
|
return;
|
|
1795
1612
|
}
|
|
1796
1613
|
super.load(data);
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
this.direction = data.direction;
|
|
1800
|
-
}
|
|
1801
|
-
if (data.enable !== undefined) {
|
|
1802
|
-
this.enable = data.enable;
|
|
1614
|
+
if (data.sync !== undefined) {
|
|
1615
|
+
this.sync = data.sync;
|
|
1803
1616
|
}
|
|
1804
1617
|
}
|
|
1805
1618
|
}
|
|
1806
|
-
class
|
|
1619
|
+
class LifeDuration_LifeDuration extends(null && ValueWithRandom){
|
|
1807
1620
|
constructor() {
|
|
1808
|
-
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.mode = "vertical";
|
|
1812
|
-
this.speed = 25;
|
|
1621
|
+
super();
|
|
1622
|
+
this.random.minimumValue = 1e-4;
|
|
1623
|
+
this.sync = false;
|
|
1813
1624
|
}
|
|
1814
1625
|
load(data) {
|
|
1815
|
-
if (
|
|
1626
|
+
if (data === undefined) {
|
|
1816
1627
|
return;
|
|
1817
1628
|
}
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
this.darken.load(data.darken);
|
|
1822
|
-
if (data.enable !== undefined) {
|
|
1823
|
-
this.enable = data.enable;
|
|
1824
|
-
}
|
|
1825
|
-
this.enlighten.load(data.enlighten);
|
|
1826
|
-
if (data.mode !== undefined) {
|
|
1827
|
-
this.mode = data.mode;
|
|
1828
|
-
}
|
|
1829
|
-
if (data.speed !== undefined) {
|
|
1830
|
-
this.speed = setRangeValue(data.speed);
|
|
1629
|
+
super.load(data);
|
|
1630
|
+
if (data.sync !== undefined) {
|
|
1631
|
+
this.sync = data.sync;
|
|
1831
1632
|
}
|
|
1832
1633
|
}
|
|
1833
1634
|
}
|
|
1834
|
-
class
|
|
1635
|
+
class Life_Life {
|
|
1835
1636
|
constructor() {
|
|
1836
|
-
|
|
1837
|
-
this.
|
|
1838
|
-
this.
|
|
1839
|
-
this.velocityRate = 1;
|
|
1637
|
+
this.count = 0;
|
|
1638
|
+
this.delay = new LifeDelay;
|
|
1639
|
+
this.duration = new LifeDuration;
|
|
1840
1640
|
}
|
|
1841
1641
|
load(data) {
|
|
1842
|
-
|
|
1843
|
-
if (!data) {
|
|
1642
|
+
if (data === undefined) {
|
|
1844
1643
|
return;
|
|
1845
1644
|
}
|
|
1846
|
-
if (data.
|
|
1847
|
-
this.
|
|
1848
|
-
}
|
|
1849
|
-
if (data.sizeRate !== undefined) {
|
|
1850
|
-
this.sizeRate = data.sizeRate;
|
|
1851
|
-
}
|
|
1852
|
-
if (data.velocityRate !== undefined) {
|
|
1853
|
-
this.velocityRate = data.velocityRate;
|
|
1645
|
+
if (data.count !== undefined) {
|
|
1646
|
+
this.count = data.count;
|
|
1854
1647
|
}
|
|
1648
|
+
this.delay.load(data.delay);
|
|
1649
|
+
this.duration.load(data.duration);
|
|
1855
1650
|
}
|
|
1856
1651
|
}
|
|
1857
|
-
class
|
|
1652
|
+
class PathDelay_PathDelay extends(null && ValueWithRandom){
|
|
1858
1653
|
constructor() {
|
|
1859
1654
|
super();
|
|
1860
|
-
this.value = 45;
|
|
1861
|
-
this.random.enable = false;
|
|
1862
|
-
this.random.minimumValue = 0;
|
|
1863
|
-
}
|
|
1864
|
-
load(data) {
|
|
1865
|
-
if (data === undefined) {
|
|
1866
|
-
return;
|
|
1867
|
-
}
|
|
1868
|
-
super.load(data);
|
|
1869
1655
|
}
|
|
1870
1656
|
}
|
|
1871
|
-
class
|
|
1657
|
+
class Path_Path {
|
|
1872
1658
|
constructor() {
|
|
1873
|
-
this.
|
|
1659
|
+
this.clamp = true;
|
|
1660
|
+
this.delay = new PathDelay;
|
|
1874
1661
|
this.enable = false;
|
|
1875
|
-
this.
|
|
1876
|
-
this.rotation = new OrbitRotation;
|
|
1877
|
-
this.width = 1;
|
|
1662
|
+
this.options = {};
|
|
1878
1663
|
}
|
|
1879
1664
|
load(data) {
|
|
1880
1665
|
if (data === undefined) {
|
|
1881
1666
|
return;
|
|
1882
1667
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1668
|
+
if (data.clamp !== undefined) {
|
|
1669
|
+
this.clamp = data.clamp;
|
|
1670
|
+
}
|
|
1671
|
+
this.delay.load(data.delay);
|
|
1885
1672
|
if (data.enable !== undefined) {
|
|
1886
1673
|
this.enable = data.enable;
|
|
1887
1674
|
}
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
if (data.width !== undefined) {
|
|
1892
|
-
this.width = data.width;
|
|
1893
|
-
}
|
|
1894
|
-
if (data.radius !== undefined) {
|
|
1895
|
-
this.radius = data.radius;
|
|
1896
|
-
}
|
|
1897
|
-
if (data.color !== undefined) {
|
|
1898
|
-
this.color = OptionsColor.create(this.color, data.color);
|
|
1675
|
+
this.generator = data.generator;
|
|
1676
|
+
if (data.options) {
|
|
1677
|
+
this.options = deepExtend(this.options, data.options);
|
|
1899
1678
|
}
|
|
1900
1679
|
}
|
|
1901
1680
|
}
|
|
1902
|
-
class
|
|
1681
|
+
class Spin_Spin {
|
|
1903
1682
|
constructor() {
|
|
1904
|
-
|
|
1905
|
-
this.
|
|
1906
|
-
this.distance = 1;
|
|
1907
|
-
this.duration = 1;
|
|
1908
|
-
this.factor = 1;
|
|
1909
|
-
this.speed = 1;
|
|
1683
|
+
this.acceleration = 0;
|
|
1684
|
+
this.enable = false;
|
|
1910
1685
|
}
|
|
1911
1686
|
load(data) {
|
|
1912
|
-
super.load(data);
|
|
1913
1687
|
if (!data) {
|
|
1914
1688
|
return;
|
|
1915
1689
|
}
|
|
1916
|
-
if (data.
|
|
1917
|
-
this.
|
|
1918
|
-
}
|
|
1919
|
-
if (data.distance !== undefined) {
|
|
1920
|
-
this.distance = data.distance;
|
|
1921
|
-
}
|
|
1922
|
-
if (data.duration !== undefined) {
|
|
1923
|
-
this.duration = data.duration;
|
|
1924
|
-
}
|
|
1925
|
-
if (data.factor !== undefined) {
|
|
1926
|
-
this.factor = data.factor;
|
|
1690
|
+
if (data.acceleration !== undefined) {
|
|
1691
|
+
this.acceleration = setRangeValue(data.acceleration);
|
|
1927
1692
|
}
|
|
1928
|
-
if (data.
|
|
1929
|
-
this.
|
|
1693
|
+
if (data.enable !== undefined) {
|
|
1694
|
+
this.enable = data.enable;
|
|
1930
1695
|
}
|
|
1696
|
+
this.position = data.position ? deepExtend({}, data.position) : undefined;
|
|
1931
1697
|
}
|
|
1932
1698
|
}
|
|
1933
|
-
class
|
|
1699
|
+
class Move_Move {
|
|
1934
1700
|
constructor() {
|
|
1935
|
-
this.angle = new
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1701
|
+
this.angle = new MoveAngle;
|
|
1702
|
+
this.attract = new Attract;
|
|
1703
|
+
this.decay = 0;
|
|
1704
|
+
this.distance = {};
|
|
1705
|
+
this.direction = "none";
|
|
1706
|
+
this.drift = 0;
|
|
1707
|
+
this.enable = false;
|
|
1708
|
+
this.gravity = new MoveGravity;
|
|
1709
|
+
this.path = new Path;
|
|
1710
|
+
this.outModes = new OutModes;
|
|
1711
|
+
this.random = false;
|
|
1712
|
+
this.size = false;
|
|
1713
|
+
this.speed = 2;
|
|
1714
|
+
this.spin = new Spin;
|
|
1715
|
+
this.straight = false;
|
|
1716
|
+
this.trail = new Trail;
|
|
1717
|
+
this.vibrate = false;
|
|
1718
|
+
this.warp = false;
|
|
1938
1719
|
}
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
return;
|
|
1942
|
-
}
|
|
1943
|
-
this.angle.load(data.angle);
|
|
1944
|
-
if (data.colors !== undefined) {
|
|
1945
|
-
this.colors = data.colors.map((s => {
|
|
1946
|
-
const tmp = new AnimatableGradientColor;
|
|
1947
|
-
tmp.load(s);
|
|
1948
|
-
return tmp;
|
|
1949
|
-
}));
|
|
1950
|
-
}
|
|
1951
|
-
if (data.type !== undefined) {
|
|
1952
|
-
this.type = data.type;
|
|
1953
|
-
}
|
|
1720
|
+
get collisions() {
|
|
1721
|
+
return false;
|
|
1954
1722
|
}
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
this.
|
|
1723
|
+
set collisions(value) {}
|
|
1724
|
+
get bounce() {
|
|
1725
|
+
return this.collisions;
|
|
1726
|
+
}
|
|
1727
|
+
set bounce(value) {
|
|
1728
|
+
this.collisions = value;
|
|
1729
|
+
}
|
|
1730
|
+
get out_mode() {
|
|
1731
|
+
return this.outMode;
|
|
1732
|
+
}
|
|
1733
|
+
set out_mode(value) {
|
|
1734
|
+
this.outMode = value;
|
|
1735
|
+
}
|
|
1736
|
+
get outMode() {
|
|
1737
|
+
return this.outModes.default;
|
|
1738
|
+
}
|
|
1739
|
+
set outMode(value) {
|
|
1740
|
+
this.outModes.default = value;
|
|
1741
|
+
}
|
|
1742
|
+
get noise() {
|
|
1743
|
+
return this.path;
|
|
1744
|
+
}
|
|
1745
|
+
set noise(value) {
|
|
1746
|
+
this.path = value;
|
|
1961
1747
|
}
|
|
1962
1748
|
load(data) {
|
|
1963
|
-
|
|
1749
|
+
var _a, _b, _c;
|
|
1750
|
+
if (data === undefined) {
|
|
1964
1751
|
return;
|
|
1965
1752
|
}
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1753
|
+
if (data.angle !== undefined) {
|
|
1754
|
+
if (typeof data.angle === "number") {
|
|
1755
|
+
this.angle.value = data.angle;
|
|
1756
|
+
} else {
|
|
1757
|
+
this.angle.load(data.angle);
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
this.attract.load(data.attract);
|
|
1761
|
+
if (data.decay !== undefined) {
|
|
1762
|
+
this.decay = data.decay;
|
|
1969
1763
|
}
|
|
1970
1764
|
if (data.direction !== undefined) {
|
|
1971
1765
|
this.direction = data.direction;
|
|
1972
1766
|
}
|
|
1767
|
+
if (data.distance !== undefined) {
|
|
1768
|
+
this.distance = typeof data.distance === "number" ? {
|
|
1769
|
+
horizontal: data.distance,
|
|
1770
|
+
vertical: data.distance
|
|
1771
|
+
} : deepExtend({}, data.distance);
|
|
1772
|
+
}
|
|
1773
|
+
if (data.drift !== undefined) {
|
|
1774
|
+
this.drift = setRangeValue(data.drift);
|
|
1775
|
+
}
|
|
1776
|
+
if (data.enable !== undefined) {
|
|
1777
|
+
this.enable = data.enable;
|
|
1778
|
+
}
|
|
1779
|
+
this.gravity.load(data.gravity);
|
|
1780
|
+
const outMode = (_a = data.outMode) !== null && _a !== void 0 ? _a : data.out_mode;
|
|
1781
|
+
if (data.outModes !== undefined || outMode !== undefined) {
|
|
1782
|
+
if (typeof data.outModes === "string" || data.outModes === undefined && outMode !== undefined) {
|
|
1783
|
+
this.outModes.load({
|
|
1784
|
+
default: (_b = data.outModes) !== null && _b !== void 0 ? _b : outMode
|
|
1785
|
+
});
|
|
1786
|
+
} else {
|
|
1787
|
+
this.outModes.load(data.outModes);
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
this.path.load((_c = data.path) !== null && _c !== void 0 ? _c : data.noise);
|
|
1791
|
+
if (data.random !== undefined) {
|
|
1792
|
+
this.random = data.random;
|
|
1793
|
+
}
|
|
1794
|
+
if (data.size !== undefined) {
|
|
1795
|
+
this.size = data.size;
|
|
1796
|
+
}
|
|
1797
|
+
if (data.speed !== undefined) {
|
|
1798
|
+
this.speed = setRangeValue(data.speed);
|
|
1799
|
+
}
|
|
1800
|
+
this.spin.load(data.spin);
|
|
1801
|
+
if (data.straight !== undefined) {
|
|
1802
|
+
this.straight = data.straight;
|
|
1803
|
+
}
|
|
1804
|
+
this.trail.load(data.trail);
|
|
1805
|
+
if (data.vibrate !== undefined) {
|
|
1806
|
+
this.vibrate = data.vibrate;
|
|
1807
|
+
}
|
|
1808
|
+
if (data.warp !== undefined) {
|
|
1809
|
+
this.warp = data.warp;
|
|
1810
|
+
}
|
|
1973
1811
|
}
|
|
1974
1812
|
}
|
|
1975
|
-
class
|
|
1813
|
+
class Opacity_Opacity extends(null && ValueWithRandom){
|
|
1976
1814
|
constructor() {
|
|
1977
|
-
|
|
1978
|
-
this.animation = new
|
|
1815
|
+
super();
|
|
1816
|
+
this.animation = new OpacityAnimation;
|
|
1817
|
+
this.random.minimumValue = .1;
|
|
1818
|
+
this.value = 1;
|
|
1819
|
+
}
|
|
1820
|
+
get anim() {
|
|
1821
|
+
return this.animation;
|
|
1822
|
+
}
|
|
1823
|
+
set anim(value) {
|
|
1824
|
+
this.animation = value;
|
|
1979
1825
|
}
|
|
1980
1826
|
load(data) {
|
|
1827
|
+
var _a;
|
|
1981
1828
|
if (!data) {
|
|
1982
1829
|
return;
|
|
1983
1830
|
}
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1831
|
+
super.load(data);
|
|
1832
|
+
const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
|
|
1833
|
+
if (animation !== undefined) {
|
|
1834
|
+
this.animation.load(animation);
|
|
1835
|
+
this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
|
|
1987
1836
|
}
|
|
1988
1837
|
}
|
|
1989
1838
|
}
|
|
1990
|
-
class
|
|
1839
|
+
class OrbitRotation_OrbitRotation extends(null && ValueWithRandom){
|
|
1991
1840
|
constructor() {
|
|
1992
|
-
|
|
1993
|
-
this.value =
|
|
1841
|
+
super();
|
|
1842
|
+
this.value = 45;
|
|
1843
|
+
this.random.enable = false;
|
|
1844
|
+
this.random.minimumValue = 0;
|
|
1994
1845
|
}
|
|
1995
1846
|
load(data) {
|
|
1996
|
-
if (
|
|
1847
|
+
if (data === undefined) {
|
|
1997
1848
|
return;
|
|
1998
1849
|
}
|
|
1999
|
-
|
|
2000
|
-
|
|
1850
|
+
super.load(data);
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
class Orbit_Orbit {
|
|
1854
|
+
constructor() {
|
|
1855
|
+
this.animation = new AnimationOptions;
|
|
1856
|
+
this.enable = false;
|
|
1857
|
+
this.opacity = 1;
|
|
1858
|
+
this.rotation = new OrbitRotation;
|
|
1859
|
+
this.width = 1;
|
|
1860
|
+
}
|
|
1861
|
+
load(data) {
|
|
1862
|
+
if (data === undefined) {
|
|
1863
|
+
return;
|
|
1864
|
+
}
|
|
1865
|
+
this.animation.load(data.animation);
|
|
1866
|
+
this.rotation.load(data.rotation);
|
|
1867
|
+
if (data.enable !== undefined) {
|
|
1868
|
+
this.enable = data.enable;
|
|
2001
1869
|
}
|
|
2002
|
-
this.value = AnimatableColor.create(this.value, data.value);
|
|
2003
1870
|
if (data.opacity !== undefined) {
|
|
2004
|
-
this.opacity =
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
1871
|
+
this.opacity = data.opacity;
|
|
1872
|
+
}
|
|
1873
|
+
if (data.width !== undefined) {
|
|
1874
|
+
this.width = data.width;
|
|
1875
|
+
}
|
|
1876
|
+
if (data.radius !== undefined) {
|
|
1877
|
+
this.radius = data.radius;
|
|
1878
|
+
}
|
|
1879
|
+
if (data.color !== undefined) {
|
|
1880
|
+
this.color = OptionsColor.create(this.color, data.color);
|
|
2010
1881
|
}
|
|
2011
1882
|
}
|
|
2012
1883
|
}
|
|
2013
|
-
class
|
|
1884
|
+
class Repulse_Repulse extends(null && ValueWithRandom){
|
|
2014
1885
|
constructor() {
|
|
2015
|
-
|
|
2016
|
-
this.
|
|
2017
|
-
this.
|
|
2018
|
-
this.
|
|
1886
|
+
super();
|
|
1887
|
+
this.enabled = false;
|
|
1888
|
+
this.distance = 1;
|
|
1889
|
+
this.duration = 1;
|
|
1890
|
+
this.factor = 1;
|
|
1891
|
+
this.speed = 1;
|
|
2019
1892
|
}
|
|
2020
1893
|
load(data) {
|
|
1894
|
+
super.load(data);
|
|
2021
1895
|
if (!data) {
|
|
2022
1896
|
return;
|
|
2023
1897
|
}
|
|
2024
|
-
if (data.
|
|
2025
|
-
this.
|
|
1898
|
+
if (data.enabled !== undefined) {
|
|
1899
|
+
this.enabled = data.enabled;
|
|
2026
1900
|
}
|
|
2027
|
-
if (data.
|
|
2028
|
-
this.
|
|
1901
|
+
if (data.distance !== undefined) {
|
|
1902
|
+
this.distance = data.distance;
|
|
1903
|
+
}
|
|
1904
|
+
if (data.duration !== undefined) {
|
|
1905
|
+
this.duration = data.duration;
|
|
1906
|
+
}
|
|
1907
|
+
if (data.factor !== undefined) {
|
|
1908
|
+
this.factor = data.factor;
|
|
2029
1909
|
}
|
|
2030
1910
|
if (data.speed !== undefined) {
|
|
2031
1911
|
this.speed = data.speed;
|
|
2032
1912
|
}
|
|
2033
|
-
if (data.sync !== undefined) {
|
|
2034
|
-
this.sync = data.sync;
|
|
2035
|
-
}
|
|
2036
1913
|
}
|
|
2037
1914
|
}
|
|
2038
|
-
class
|
|
1915
|
+
class Roll_Roll {
|
|
2039
1916
|
constructor() {
|
|
2040
|
-
this.
|
|
1917
|
+
this.darken = new RollLight;
|
|
2041
1918
|
this.enable = false;
|
|
2042
|
-
this.
|
|
2043
|
-
this.
|
|
2044
|
-
this.
|
|
1919
|
+
this.enlighten = new RollLight;
|
|
1920
|
+
this.mode = "vertical";
|
|
1921
|
+
this.speed = 25;
|
|
2045
1922
|
}
|
|
2046
1923
|
load(data) {
|
|
2047
1924
|
if (!data) {
|
|
2048
1925
|
return;
|
|
2049
1926
|
}
|
|
2050
|
-
if (data.
|
|
2051
|
-
this.
|
|
1927
|
+
if (data.backColor !== undefined) {
|
|
1928
|
+
this.backColor = OptionsColor.create(this.backColor, data.backColor);
|
|
2052
1929
|
}
|
|
1930
|
+
this.darken.load(data.darken);
|
|
2053
1931
|
if (data.enable !== undefined) {
|
|
2054
1932
|
this.enable = data.enable;
|
|
2055
1933
|
}
|
|
1934
|
+
this.enlighten.load(data.enlighten);
|
|
1935
|
+
if (data.mode !== undefined) {
|
|
1936
|
+
this.mode = data.mode;
|
|
1937
|
+
}
|
|
2056
1938
|
if (data.speed !== undefined) {
|
|
2057
|
-
this.speed = data.speed;
|
|
1939
|
+
this.speed = setRangeValue(data.speed);
|
|
2058
1940
|
}
|
|
2059
|
-
|
|
2060
|
-
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
class Rotate_Rotate extends(null && ValueWithRandom){
|
|
1944
|
+
constructor() {
|
|
1945
|
+
super();
|
|
1946
|
+
this.animation = new RotateAnimation;
|
|
1947
|
+
this.direction = "clockwise";
|
|
1948
|
+
this.path = false;
|
|
1949
|
+
this.value = 0;
|
|
1950
|
+
}
|
|
1951
|
+
load(data) {
|
|
1952
|
+
if (!data) {
|
|
1953
|
+
return;
|
|
2061
1954
|
}
|
|
2062
|
-
|
|
2063
|
-
|
|
1955
|
+
super.load(data);
|
|
1956
|
+
if (data.direction !== undefined) {
|
|
1957
|
+
this.direction = data.direction;
|
|
1958
|
+
}
|
|
1959
|
+
this.animation.load(data.animation);
|
|
1960
|
+
if (data.path !== undefined) {
|
|
1961
|
+
this.path = data.path;
|
|
2064
1962
|
}
|
|
2065
1963
|
}
|
|
2066
1964
|
}
|
|
2067
|
-
class
|
|
1965
|
+
class Shape_Shape {
|
|
2068
1966
|
constructor() {
|
|
2069
|
-
this.
|
|
2070
|
-
this.
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
this.
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
this.
|
|
2078
|
-
this.
|
|
1967
|
+
this.options = {};
|
|
1968
|
+
this.type = "circle";
|
|
1969
|
+
}
|
|
1970
|
+
get image() {
|
|
1971
|
+
var _a;
|
|
1972
|
+
return (_a = this.options["image"]) !== null && _a !== void 0 ? _a : this.options["images"];
|
|
1973
|
+
}
|
|
1974
|
+
set image(value) {
|
|
1975
|
+
this.options["image"] = value;
|
|
1976
|
+
this.options["images"] = value;
|
|
1977
|
+
}
|
|
1978
|
+
get custom() {
|
|
1979
|
+
return this.options;
|
|
1980
|
+
}
|
|
1981
|
+
set custom(value) {
|
|
1982
|
+
this.options = value;
|
|
1983
|
+
}
|
|
1984
|
+
get images() {
|
|
1985
|
+
return this.image;
|
|
1986
|
+
}
|
|
1987
|
+
set images(value) {
|
|
1988
|
+
this.image = value;
|
|
1989
|
+
}
|
|
1990
|
+
get stroke() {
|
|
1991
|
+
return [];
|
|
1992
|
+
}
|
|
1993
|
+
set stroke(_value) {}
|
|
1994
|
+
get character() {
|
|
1995
|
+
var _a;
|
|
1996
|
+
return (_a = this.options["character"]) !== null && _a !== void 0 ? _a : this.options["char"];
|
|
1997
|
+
}
|
|
1998
|
+
set character(value) {
|
|
1999
|
+
this.options["character"] = value;
|
|
2000
|
+
this.options["char"] = value;
|
|
2001
|
+
}
|
|
2002
|
+
get polygon() {
|
|
2003
|
+
var _a;
|
|
2004
|
+
return (_a = this.options["polygon"]) !== null && _a !== void 0 ? _a : this.options["star"];
|
|
2005
|
+
}
|
|
2006
|
+
set polygon(value) {
|
|
2007
|
+
this.options["polygon"] = value;
|
|
2008
|
+
this.options["star"] = value;
|
|
2009
|
+
}
|
|
2010
|
+
load(data) {
|
|
2011
|
+
var _a, _b, _c;
|
|
2012
|
+
if (data === undefined) {
|
|
2013
|
+
return;
|
|
2014
|
+
}
|
|
2015
|
+
const options = (_a = data.options) !== null && _a !== void 0 ? _a : data.custom;
|
|
2016
|
+
if (options !== undefined) {
|
|
2017
|
+
for (const shape in options) {
|
|
2018
|
+
const item = options[shape];
|
|
2019
|
+
if (item !== undefined) {
|
|
2020
|
+
this.options[shape] = deepExtend((_b = this.options[shape]) !== null && _b !== void 0 ? _b : {}, item);
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
this.loadShape(data.character, "character", "char", true);
|
|
2025
|
+
this.loadShape(data.polygon, "polygon", "star", false);
|
|
2026
|
+
this.loadShape((_c = data.image) !== null && _c !== void 0 ? _c : data.images, "image", "images", true);
|
|
2027
|
+
if (data.type !== undefined) {
|
|
2028
|
+
this.type = data.type;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
loadShape(item, mainKey, altKey, altOverride) {
|
|
2032
|
+
var _a, _b, _c, _d;
|
|
2033
|
+
if (item === undefined) {
|
|
2034
|
+
return;
|
|
2035
|
+
}
|
|
2036
|
+
if (item instanceof Array) {
|
|
2037
|
+
if (!(this.options[mainKey] instanceof Array)) {
|
|
2038
|
+
this.options[mainKey] = [];
|
|
2039
|
+
if (!this.options[altKey] || altOverride) {
|
|
2040
|
+
this.options[altKey] = [];
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
this.options[mainKey] = deepExtend((_a = this.options[mainKey]) !== null && _a !== void 0 ? _a : [], item);
|
|
2044
|
+
if (!this.options[altKey] || altOverride) {
|
|
2045
|
+
this.options[altKey] = deepExtend((_b = this.options[altKey]) !== null && _b !== void 0 ? _b : [], item);
|
|
2046
|
+
}
|
|
2047
|
+
} else {
|
|
2048
|
+
if (this.options[mainKey] instanceof Array) {
|
|
2049
|
+
this.options[mainKey] = {};
|
|
2050
|
+
if (!this.options[altKey] || altOverride) {
|
|
2051
|
+
this.options[altKey] = {};
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
this.options[mainKey] = deepExtend((_c = this.options[mainKey]) !== null && _c !== void 0 ? _c : {}, item);
|
|
2055
|
+
if (!this.options[altKey] || altOverride) {
|
|
2056
|
+
this.options[altKey] = deepExtend((_d = this.options[altKey]) !== null && _d !== void 0 ? _d : {}, item);
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
class Size_Size extends(null && ValueWithRandom){
|
|
2062
|
+
constructor() {
|
|
2063
|
+
super();
|
|
2064
|
+
this.animation = new SizeAnimation;
|
|
2065
|
+
this.random.minimumValue = 1;
|
|
2066
|
+
this.value = 3;
|
|
2067
|
+
}
|
|
2068
|
+
get anim() {
|
|
2069
|
+
return this.animation;
|
|
2070
|
+
}
|
|
2071
|
+
set anim(value) {
|
|
2072
|
+
this.animation = value;
|
|
2073
|
+
}
|
|
2074
|
+
load(data) {
|
|
2075
|
+
var _a;
|
|
2076
|
+
if (!data) {
|
|
2077
|
+
return;
|
|
2078
|
+
}
|
|
2079
|
+
super.load(data);
|
|
2080
|
+
const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
|
|
2081
|
+
if (animation !== undefined) {
|
|
2082
|
+
this.animation.load(animation);
|
|
2083
|
+
this.value = setRangeValue(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
class Stroke_Stroke {
|
|
2088
|
+
constructor() {
|
|
2089
|
+
this.width = 0;
|
|
2090
|
+
}
|
|
2091
|
+
load(data) {
|
|
2092
|
+
if (data === undefined) {
|
|
2093
|
+
return;
|
|
2094
|
+
}
|
|
2095
|
+
if (data.color !== undefined) {
|
|
2096
|
+
this.color = AnimatableColor.create(this.color, data.color);
|
|
2097
|
+
}
|
|
2098
|
+
if (data.width !== undefined) {
|
|
2099
|
+
this.width = data.width;
|
|
2100
|
+
}
|
|
2101
|
+
if (data.opacity !== undefined) {
|
|
2102
|
+
this.opacity = data.opacity;
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
class Tilt_Tilt extends(null && ValueWithRandom){
|
|
2107
|
+
constructor() {
|
|
2108
|
+
super();
|
|
2109
|
+
this.animation = new TiltAnimation;
|
|
2110
|
+
this.direction = "clockwise";
|
|
2111
|
+
this.enable = false;
|
|
2112
|
+
this.value = 0;
|
|
2113
|
+
}
|
|
2114
|
+
load(data) {
|
|
2115
|
+
if (!data) {
|
|
2116
|
+
return;
|
|
2117
|
+
}
|
|
2118
|
+
super.load(data);
|
|
2119
|
+
this.animation.load(data.animation);
|
|
2120
|
+
if (data.direction !== undefined) {
|
|
2121
|
+
this.direction = data.direction;
|
|
2122
|
+
}
|
|
2123
|
+
if (data.enable !== undefined) {
|
|
2124
|
+
this.enable = data.enable;
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
class Wobble_Wobble {
|
|
2129
|
+
constructor() {
|
|
2130
|
+
this.distance = 5;
|
|
2131
|
+
this.enable = false;
|
|
2132
|
+
this.speed = 50;
|
|
2133
|
+
}
|
|
2134
|
+
load(data) {
|
|
2135
|
+
if (!data) {
|
|
2136
|
+
return;
|
|
2137
|
+
}
|
|
2138
|
+
if (data.distance !== undefined) {
|
|
2139
|
+
this.distance = setRangeValue(data.distance);
|
|
2140
|
+
}
|
|
2141
|
+
if (data.enable !== undefined) {
|
|
2142
|
+
this.enable = data.enable;
|
|
2143
|
+
}
|
|
2144
|
+
if (data.speed !== undefined) {
|
|
2145
|
+
this.speed = setRangeValue(data.speed);
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
class ZIndex_ZIndex extends(null && ValueWithRandom){
|
|
2150
|
+
constructor() {
|
|
2151
|
+
super();
|
|
2152
|
+
this.opacityRate = 1;
|
|
2153
|
+
this.sizeRate = 1;
|
|
2154
|
+
this.velocityRate = 1;
|
|
2155
|
+
}
|
|
2156
|
+
load(data) {
|
|
2157
|
+
super.load(data);
|
|
2158
|
+
if (!data) {
|
|
2159
|
+
return;
|
|
2160
|
+
}
|
|
2161
|
+
if (data.opacityRate !== undefined) {
|
|
2162
|
+
this.opacityRate = data.opacityRate;
|
|
2163
|
+
}
|
|
2164
|
+
if (data.sizeRate !== undefined) {
|
|
2165
|
+
this.sizeRate = data.sizeRate;
|
|
2166
|
+
}
|
|
2167
|
+
if (data.velocityRate !== undefined) {
|
|
2168
|
+
this.velocityRate = data.velocityRate;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
class ParticlesOptions_ParticlesOptions {
|
|
2173
|
+
constructor() {
|
|
2174
|
+
this.bounce = new Bounce;
|
|
2175
|
+
this.collisions = new Collisions;
|
|
2176
|
+
this.color = new AnimatableColor;
|
|
2177
|
+
this.destroy = new Destroy;
|
|
2178
|
+
this.gradient = [];
|
|
2179
|
+
this.groups = {};
|
|
2180
|
+
this.life = new Life;
|
|
2181
|
+
this.links = new Links;
|
|
2182
|
+
this.move = new Move;
|
|
2183
|
+
this.number = new ParticlesNumber;
|
|
2079
2184
|
this.opacity = new Opacity;
|
|
2080
2185
|
this.orbit = new Orbit;
|
|
2081
2186
|
this.reduceDuplicates = false;
|
|
@@ -2178,25 +2283,215 @@
|
|
|
2178
2283
|
}
|
|
2179
2284
|
}
|
|
2180
2285
|
}
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2286
|
+
class Responsive_Responsive {
|
|
2287
|
+
constructor() {
|
|
2288
|
+
this.maxWidth = Infinity;
|
|
2289
|
+
this.options = {};
|
|
2290
|
+
this.mode = "canvas";
|
|
2291
|
+
}
|
|
2292
|
+
load(data) {
|
|
2293
|
+
if (!data) {
|
|
2294
|
+
return;
|
|
2295
|
+
}
|
|
2296
|
+
if (data.maxWidth !== undefined) {
|
|
2297
|
+
this.maxWidth = data.maxWidth;
|
|
2298
|
+
}
|
|
2299
|
+
if (data.mode !== undefined) {
|
|
2300
|
+
if (data.mode === "screen") {
|
|
2301
|
+
this.mode = "screen";
|
|
2302
|
+
} else {
|
|
2303
|
+
this.mode = "canvas";
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
if (data.options !== undefined) {
|
|
2307
|
+
this.options = deepExtend({}, data.options);
|
|
2187
2308
|
}
|
|
2188
2309
|
}
|
|
2189
|
-
}
|
|
2190
|
-
class
|
|
2191
|
-
constructor(
|
|
2192
|
-
|
|
2193
|
-
this.
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2310
|
+
}
|
|
2311
|
+
class Theme_Theme {
|
|
2312
|
+
constructor() {
|
|
2313
|
+
this.name = "";
|
|
2314
|
+
this.default = new ThemeDefault;
|
|
2315
|
+
}
|
|
2316
|
+
load(data) {
|
|
2317
|
+
if (data === undefined) {
|
|
2318
|
+
return;
|
|
2319
|
+
}
|
|
2320
|
+
if (data.name !== undefined) {
|
|
2321
|
+
this.name = data.name;
|
|
2322
|
+
}
|
|
2323
|
+
this.default.load(data.default);
|
|
2324
|
+
if (data.options !== undefined) {
|
|
2325
|
+
this.options = deepExtend({}, data.options);
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
2330
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2331
|
+
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");
|
|
2332
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2333
|
+
};
|
|
2334
|
+
var _Options_instances, _Options_findDefaultTheme;
|
|
2335
|
+
class Options_Options {
|
|
2336
|
+
constructor() {
|
|
2337
|
+
_Options_instances.add(this);
|
|
2338
|
+
this.autoPlay = true;
|
|
2339
|
+
this.background = new Background;
|
|
2340
|
+
this.backgroundMask = new BackgroundMask;
|
|
2341
|
+
this.fullScreen = new FullScreen;
|
|
2342
|
+
this.detectRetina = true;
|
|
2343
|
+
this.duration = 0;
|
|
2344
|
+
this.fpsLimit = 60;
|
|
2345
|
+
this.interactivity = new Interactivity;
|
|
2346
|
+
this.manualParticles = [];
|
|
2347
|
+
this.motion = new Motion;
|
|
2348
|
+
this.particles = new ParticlesOptions;
|
|
2349
|
+
this.pauseOnBlur = true;
|
|
2350
|
+
this.pauseOnOutsideViewport = true;
|
|
2351
|
+
this.responsive = [];
|
|
2352
|
+
this.style = {};
|
|
2353
|
+
this.themes = [];
|
|
2354
|
+
this.zLayers = 100;
|
|
2355
|
+
}
|
|
2356
|
+
get fps_limit() {
|
|
2357
|
+
return this.fpsLimit;
|
|
2358
|
+
}
|
|
2359
|
+
set fps_limit(value) {
|
|
2360
|
+
this.fpsLimit = value;
|
|
2361
|
+
}
|
|
2362
|
+
get retina_detect() {
|
|
2363
|
+
return this.detectRetina;
|
|
2364
|
+
}
|
|
2365
|
+
set retina_detect(value) {
|
|
2366
|
+
this.detectRetina = value;
|
|
2367
|
+
}
|
|
2368
|
+
get backgroundMode() {
|
|
2369
|
+
return this.fullScreen;
|
|
2370
|
+
}
|
|
2371
|
+
set backgroundMode(value) {
|
|
2372
|
+
this.fullScreen.load(value);
|
|
2373
|
+
}
|
|
2374
|
+
load(data) {
|
|
2375
|
+
var _a, _b, _c, _d, _e;
|
|
2376
|
+
if (data === undefined) {
|
|
2377
|
+
return;
|
|
2378
|
+
}
|
|
2379
|
+
if (data.preset !== undefined) {
|
|
2380
|
+
if (data.preset instanceof Array) {
|
|
2381
|
+
for (const preset of data.preset) {
|
|
2382
|
+
this.importPreset(preset);
|
|
2383
|
+
}
|
|
2384
|
+
} else {
|
|
2385
|
+
this.importPreset(data.preset);
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
if (data.autoPlay !== undefined) {
|
|
2389
|
+
this.autoPlay = data.autoPlay;
|
|
2390
|
+
}
|
|
2391
|
+
const detectRetina = (_a = data.detectRetina) !== null && _a !== void 0 ? _a : data.retina_detect;
|
|
2392
|
+
if (detectRetina !== undefined) {
|
|
2393
|
+
this.detectRetina = detectRetina;
|
|
2394
|
+
}
|
|
2395
|
+
if (data.duration !== undefined) {
|
|
2396
|
+
this.duration = data.duration;
|
|
2397
|
+
}
|
|
2398
|
+
const fpsLimit = (_b = data.fpsLimit) !== null && _b !== void 0 ? _b : data.fps_limit;
|
|
2399
|
+
if (fpsLimit !== undefined) {
|
|
2400
|
+
this.fpsLimit = fpsLimit;
|
|
2401
|
+
}
|
|
2402
|
+
if (data.pauseOnBlur !== undefined) {
|
|
2403
|
+
this.pauseOnBlur = data.pauseOnBlur;
|
|
2404
|
+
}
|
|
2405
|
+
if (data.pauseOnOutsideViewport !== undefined) {
|
|
2406
|
+
this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
|
|
2407
|
+
}
|
|
2408
|
+
if (data.zLayers !== undefined) {
|
|
2409
|
+
this.zLayers = data.zLayers;
|
|
2410
|
+
}
|
|
2411
|
+
this.background.load(data.background);
|
|
2412
|
+
const fullScreen = (_c = data.fullScreen) !== null && _c !== void 0 ? _c : data.backgroundMode;
|
|
2413
|
+
if (typeof fullScreen === "boolean") {
|
|
2414
|
+
this.fullScreen.enable = fullScreen;
|
|
2415
|
+
} else {
|
|
2416
|
+
this.fullScreen.load(fullScreen);
|
|
2417
|
+
}
|
|
2418
|
+
this.backgroundMask.load(data.backgroundMask);
|
|
2419
|
+
this.interactivity.load(data.interactivity);
|
|
2420
|
+
if (data.manualParticles !== undefined) {
|
|
2421
|
+
this.manualParticles = data.manualParticles.map((t => {
|
|
2422
|
+
const tmp = new ManualParticle;
|
|
2423
|
+
tmp.load(t);
|
|
2424
|
+
return tmp;
|
|
2425
|
+
}));
|
|
2426
|
+
}
|
|
2427
|
+
this.motion.load(data.motion);
|
|
2428
|
+
this.particles.load(data.particles);
|
|
2429
|
+
this.style = deepExtend(this.style, data.style);
|
|
2430
|
+
Plugins.loadOptions(this, data);
|
|
2431
|
+
if (data.responsive !== undefined) {
|
|
2432
|
+
for (const responsive of data.responsive) {
|
|
2433
|
+
const optResponsive = new Responsive;
|
|
2434
|
+
optResponsive.load(responsive);
|
|
2435
|
+
this.responsive.push(optResponsive);
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
this.responsive.sort(((a, b) => a.maxWidth - b.maxWidth));
|
|
2439
|
+
if (data.themes !== undefined) {
|
|
2440
|
+
for (const theme of data.themes) {
|
|
2441
|
+
const optTheme = new Theme;
|
|
2442
|
+
optTheme.load(theme);
|
|
2443
|
+
this.themes.push(optTheme);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
this.defaultDarkTheme = (_d = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
|
|
2447
|
+
this.defaultLightTheme = (_e = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
|
|
2448
|
+
}
|
|
2449
|
+
setTheme(name) {
|
|
2450
|
+
if (name) {
|
|
2451
|
+
const chosenTheme = this.themes.find((theme => theme.name === name));
|
|
2452
|
+
if (chosenTheme) {
|
|
2453
|
+
this.load(chosenTheme.options);
|
|
2454
|
+
}
|
|
2455
|
+
} else {
|
|
2456
|
+
const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? "dark" : "light");
|
|
2457
|
+
if (defaultTheme) {
|
|
2458
|
+
this.load(defaultTheme.options);
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
setResponsive(width, pxRatio, defaultOptions) {
|
|
2463
|
+
this.load(defaultOptions);
|
|
2464
|
+
const responsiveOptions = this.responsive.find((t => t.mode === "screen" && screen ? t.maxWidth * pxRatio > screen.availWidth : t.maxWidth * pxRatio > width));
|
|
2465
|
+
this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
|
|
2466
|
+
return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
|
|
2467
|
+
}
|
|
2468
|
+
importPreset(preset) {
|
|
2469
|
+
this.load(Plugins.getPreset(preset));
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
_Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
2473
|
+
var _a;
|
|
2474
|
+
return (_a = this.themes.find((theme => theme.default.value && theme.default.mode === mode))) !== null && _a !== void 0 ? _a : this.themes.find((theme => theme.default.value && theme.default.mode === "any"));
|
|
2475
|
+
};
|
|
2476
|
+
const fixOutMode = data => {
|
|
2477
|
+
if (isInArray(data.outMode, data.checkModes) || isInArray(data.outMode, data.checkModes)) {
|
|
2478
|
+
if (data.coord > data.maxCoord - data.radius * 2) {
|
|
2479
|
+
data.setCb(-data.radius);
|
|
2480
|
+
} else if (data.coord < data.radius * 2) {
|
|
2481
|
+
data.setCb(data.radius);
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
};
|
|
2485
|
+
class Particle_Particle {
|
|
2486
|
+
constructor(id, container, position, overrideOptions, group) {
|
|
2487
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2488
|
+
this.id = id;
|
|
2489
|
+
this.container = container;
|
|
2490
|
+
this.group = group;
|
|
2491
|
+
this.fill = true;
|
|
2492
|
+
this.close = true;
|
|
2493
|
+
this.lastPathTime = 0;
|
|
2494
|
+
this.destroyed = false;
|
|
2200
2495
|
this.unbreakable = false;
|
|
2201
2496
|
this.splitCount = 0;
|
|
2202
2497
|
this.misplaced = false;
|
|
@@ -2910,301 +3205,6 @@
|
|
|
2910
3205
|
}
|
|
2911
3206
|
}
|
|
2912
3207
|
}
|
|
2913
|
-
class Trail_Trail {
|
|
2914
|
-
constructor() {
|
|
2915
|
-
this.delay = 1;
|
|
2916
|
-
this.pauseOnStop = false;
|
|
2917
|
-
this.quantity = 1;
|
|
2918
|
-
}
|
|
2919
|
-
load(data) {
|
|
2920
|
-
if (data === undefined) {
|
|
2921
|
-
return;
|
|
2922
|
-
}
|
|
2923
|
-
if (data.delay !== undefined) {
|
|
2924
|
-
this.delay = data.delay;
|
|
2925
|
-
}
|
|
2926
|
-
if (data.quantity !== undefined) {
|
|
2927
|
-
this.quantity = data.quantity;
|
|
2928
|
-
}
|
|
2929
|
-
if (data.particles !== undefined) {
|
|
2930
|
-
this.particles = deepExtend({}, data.particles);
|
|
2931
|
-
}
|
|
2932
|
-
if (data.pauseOnStop !== undefined) {
|
|
2933
|
-
this.pauseOnStop = data.pauseOnStop;
|
|
2934
|
-
}
|
|
2935
|
-
}
|
|
2936
|
-
}
|
|
2937
|
-
class Modes_Modes {
|
|
2938
|
-
constructor() {
|
|
2939
|
-
this.attract = new Attract;
|
|
2940
|
-
this.bounce = new Bounce;
|
|
2941
|
-
this.bubble = new Bubble;
|
|
2942
|
-
this.connect = new Connect;
|
|
2943
|
-
this.grab = new Grab;
|
|
2944
|
-
this.light = new Light;
|
|
2945
|
-
this.push = new Push;
|
|
2946
|
-
this.remove = new Remove;
|
|
2947
|
-
this.repulse = new Repulse;
|
|
2948
|
-
this.slow = new Slow;
|
|
2949
|
-
this.trail = new Trail;
|
|
2950
|
-
}
|
|
2951
|
-
load(data) {
|
|
2952
|
-
if (data === undefined) {
|
|
2953
|
-
return;
|
|
2954
|
-
}
|
|
2955
|
-
this.attract.load(data.attract);
|
|
2956
|
-
this.bubble.load(data.bubble);
|
|
2957
|
-
this.connect.load(data.connect);
|
|
2958
|
-
this.grab.load(data.grab);
|
|
2959
|
-
this.light.load(data.light);
|
|
2960
|
-
this.push.load(data.push);
|
|
2961
|
-
this.remove.load(data.remove);
|
|
2962
|
-
this.repulse.load(data.repulse);
|
|
2963
|
-
this.slow.load(data.slow);
|
|
2964
|
-
this.trail.load(data.trail);
|
|
2965
|
-
}
|
|
2966
|
-
}
|
|
2967
|
-
class Interactivity_Interactivity {
|
|
2968
|
-
constructor() {
|
|
2969
|
-
this.detectsOn = "window";
|
|
2970
|
-
this.events = new Events;
|
|
2971
|
-
this.modes = new Modes;
|
|
2972
|
-
}
|
|
2973
|
-
get detect_on() {
|
|
2974
|
-
return this.detectsOn;
|
|
2975
|
-
}
|
|
2976
|
-
set detect_on(value) {
|
|
2977
|
-
this.detectsOn = value;
|
|
2978
|
-
}
|
|
2979
|
-
load(data) {
|
|
2980
|
-
var _a, _b, _c;
|
|
2981
|
-
if (data === undefined) {
|
|
2982
|
-
return;
|
|
2983
|
-
}
|
|
2984
|
-
const detectsOn = (_a = data.detectsOn) !== null && _a !== void 0 ? _a : data.detect_on;
|
|
2985
|
-
if (detectsOn !== undefined) {
|
|
2986
|
-
this.detectsOn = detectsOn;
|
|
2987
|
-
}
|
|
2988
|
-
this.events.load(data.events);
|
|
2989
|
-
this.modes.load(data.modes);
|
|
2990
|
-
if (((_c = (_b = data.modes) === null || _b === void 0 ? void 0 : _b.slow) === null || _c === void 0 ? void 0 : _c.active) === true) {
|
|
2991
|
-
if (this.events.onHover.mode instanceof Array) {
|
|
2992
|
-
if (this.events.onHover.mode.indexOf("slow") < 0) {
|
|
2993
|
-
this.events.onHover.mode.push("slow");
|
|
2994
|
-
}
|
|
2995
|
-
} else if (this.events.onHover.mode !== "slow") {
|
|
2996
|
-
this.events.onHover.mode = [ this.events.onHover.mode, "slow" ];
|
|
2997
|
-
}
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
}
|
|
3001
|
-
class Theme_Theme {
|
|
3002
|
-
constructor() {
|
|
3003
|
-
this.name = "";
|
|
3004
|
-
this.default = new ThemeDefault;
|
|
3005
|
-
}
|
|
3006
|
-
load(data) {
|
|
3007
|
-
if (data === undefined) {
|
|
3008
|
-
return;
|
|
3009
|
-
}
|
|
3010
|
-
if (data.name !== undefined) {
|
|
3011
|
-
this.name = data.name;
|
|
3012
|
-
}
|
|
3013
|
-
this.default.load(data.default);
|
|
3014
|
-
if (data.options !== undefined) {
|
|
3015
|
-
this.options = deepExtend({}, data.options);
|
|
3016
|
-
}
|
|
3017
|
-
}
|
|
3018
|
-
}
|
|
3019
|
-
class ManualParticle_ManualParticle {
|
|
3020
|
-
load(data) {
|
|
3021
|
-
var _a, _b;
|
|
3022
|
-
if (!data) {
|
|
3023
|
-
return;
|
|
3024
|
-
}
|
|
3025
|
-
if (data.position !== undefined) {
|
|
3026
|
-
this.position = {
|
|
3027
|
-
x: (_a = data.position.x) !== null && _a !== void 0 ? _a : 50,
|
|
3028
|
-
y: (_b = data.position.y) !== null && _b !== void 0 ? _b : 50
|
|
3029
|
-
};
|
|
3030
|
-
}
|
|
3031
|
-
if (data.options !== undefined) {
|
|
3032
|
-
this.options = deepExtend({}, data.options);
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
|
-
}
|
|
3036
|
-
class Responsive_Responsive {
|
|
3037
|
-
constructor() {
|
|
3038
|
-
this.maxWidth = Infinity;
|
|
3039
|
-
this.options = {};
|
|
3040
|
-
this.mode = "canvas";
|
|
3041
|
-
}
|
|
3042
|
-
load(data) {
|
|
3043
|
-
if (!data) {
|
|
3044
|
-
return;
|
|
3045
|
-
}
|
|
3046
|
-
if (data.maxWidth !== undefined) {
|
|
3047
|
-
this.maxWidth = data.maxWidth;
|
|
3048
|
-
}
|
|
3049
|
-
if (data.mode !== undefined) {
|
|
3050
|
-
if (data.mode === "screen") {
|
|
3051
|
-
this.mode = "screen";
|
|
3052
|
-
} else {
|
|
3053
|
-
this.mode = "canvas";
|
|
3054
|
-
}
|
|
3055
|
-
}
|
|
3056
|
-
if (data.options !== undefined) {
|
|
3057
|
-
this.options = deepExtend({}, data.options);
|
|
3058
|
-
}
|
|
3059
|
-
}
|
|
3060
|
-
}
|
|
3061
|
-
var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
3062
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3063
|
-
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");
|
|
3064
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3065
|
-
};
|
|
3066
|
-
var _Options_instances, _Options_findDefaultTheme;
|
|
3067
|
-
class Options_Options {
|
|
3068
|
-
constructor() {
|
|
3069
|
-
_Options_instances.add(this);
|
|
3070
|
-
this.autoPlay = true;
|
|
3071
|
-
this.background = new Background;
|
|
3072
|
-
this.backgroundMask = new BackgroundMask;
|
|
3073
|
-
this.fullScreen = new FullScreen;
|
|
3074
|
-
this.detectRetina = true;
|
|
3075
|
-
this.duration = 0;
|
|
3076
|
-
this.fpsLimit = 60;
|
|
3077
|
-
this.interactivity = new Interactivity;
|
|
3078
|
-
this.manualParticles = [];
|
|
3079
|
-
this.motion = new Motion;
|
|
3080
|
-
this.particles = new ParticlesOptions;
|
|
3081
|
-
this.pauseOnBlur = true;
|
|
3082
|
-
this.pauseOnOutsideViewport = true;
|
|
3083
|
-
this.responsive = [];
|
|
3084
|
-
this.style = {};
|
|
3085
|
-
this.themes = [];
|
|
3086
|
-
this.zLayers = 100;
|
|
3087
|
-
}
|
|
3088
|
-
get fps_limit() {
|
|
3089
|
-
return this.fpsLimit;
|
|
3090
|
-
}
|
|
3091
|
-
set fps_limit(value) {
|
|
3092
|
-
this.fpsLimit = value;
|
|
3093
|
-
}
|
|
3094
|
-
get retina_detect() {
|
|
3095
|
-
return this.detectRetina;
|
|
3096
|
-
}
|
|
3097
|
-
set retina_detect(value) {
|
|
3098
|
-
this.detectRetina = value;
|
|
3099
|
-
}
|
|
3100
|
-
get backgroundMode() {
|
|
3101
|
-
return this.fullScreen;
|
|
3102
|
-
}
|
|
3103
|
-
set backgroundMode(value) {
|
|
3104
|
-
this.fullScreen.load(value);
|
|
3105
|
-
}
|
|
3106
|
-
load(data) {
|
|
3107
|
-
var _a, _b, _c, _d, _e;
|
|
3108
|
-
if (data === undefined) {
|
|
3109
|
-
return;
|
|
3110
|
-
}
|
|
3111
|
-
if (data.preset !== undefined) {
|
|
3112
|
-
if (data.preset instanceof Array) {
|
|
3113
|
-
for (const preset of data.preset) {
|
|
3114
|
-
this.importPreset(preset);
|
|
3115
|
-
}
|
|
3116
|
-
} else {
|
|
3117
|
-
this.importPreset(data.preset);
|
|
3118
|
-
}
|
|
3119
|
-
}
|
|
3120
|
-
if (data.autoPlay !== undefined) {
|
|
3121
|
-
this.autoPlay = data.autoPlay;
|
|
3122
|
-
}
|
|
3123
|
-
const detectRetina = (_a = data.detectRetina) !== null && _a !== void 0 ? _a : data.retina_detect;
|
|
3124
|
-
if (detectRetina !== undefined) {
|
|
3125
|
-
this.detectRetina = detectRetina;
|
|
3126
|
-
}
|
|
3127
|
-
if (data.duration !== undefined) {
|
|
3128
|
-
this.duration = data.duration;
|
|
3129
|
-
}
|
|
3130
|
-
const fpsLimit = (_b = data.fpsLimit) !== null && _b !== void 0 ? _b : data.fps_limit;
|
|
3131
|
-
if (fpsLimit !== undefined) {
|
|
3132
|
-
this.fpsLimit = fpsLimit;
|
|
3133
|
-
}
|
|
3134
|
-
if (data.pauseOnBlur !== undefined) {
|
|
3135
|
-
this.pauseOnBlur = data.pauseOnBlur;
|
|
3136
|
-
}
|
|
3137
|
-
if (data.pauseOnOutsideViewport !== undefined) {
|
|
3138
|
-
this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
|
|
3139
|
-
}
|
|
3140
|
-
if (data.zLayers !== undefined) {
|
|
3141
|
-
this.zLayers = data.zLayers;
|
|
3142
|
-
}
|
|
3143
|
-
this.background.load(data.background);
|
|
3144
|
-
const fullScreen = (_c = data.fullScreen) !== null && _c !== void 0 ? _c : data.backgroundMode;
|
|
3145
|
-
if (typeof fullScreen === "boolean") {
|
|
3146
|
-
this.fullScreen.enable = fullScreen;
|
|
3147
|
-
} else {
|
|
3148
|
-
this.fullScreen.load(fullScreen);
|
|
3149
|
-
}
|
|
3150
|
-
this.backgroundMask.load(data.backgroundMask);
|
|
3151
|
-
this.interactivity.load(data.interactivity);
|
|
3152
|
-
if (data.manualParticles !== undefined) {
|
|
3153
|
-
this.manualParticles = data.manualParticles.map((t => {
|
|
3154
|
-
const tmp = new ManualParticle;
|
|
3155
|
-
tmp.load(t);
|
|
3156
|
-
return tmp;
|
|
3157
|
-
}));
|
|
3158
|
-
}
|
|
3159
|
-
this.motion.load(data.motion);
|
|
3160
|
-
this.particles.load(data.particles);
|
|
3161
|
-
this.style = deepExtend(this.style, data.style);
|
|
3162
|
-
Plugins.loadOptions(this, data);
|
|
3163
|
-
if (data.responsive !== undefined) {
|
|
3164
|
-
for (const responsive of data.responsive) {
|
|
3165
|
-
const optResponsive = new Responsive;
|
|
3166
|
-
optResponsive.load(responsive);
|
|
3167
|
-
this.responsive.push(optResponsive);
|
|
3168
|
-
}
|
|
3169
|
-
}
|
|
3170
|
-
this.responsive.sort(((a, b) => a.maxWidth - b.maxWidth));
|
|
3171
|
-
if (data.themes !== undefined) {
|
|
3172
|
-
for (const theme of data.themes) {
|
|
3173
|
-
const optTheme = new Theme;
|
|
3174
|
-
optTheme.load(theme);
|
|
3175
|
-
this.themes.push(optTheme);
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
this.defaultDarkTheme = (_d = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
|
|
3179
|
-
this.defaultLightTheme = (_e = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
|
|
3180
|
-
}
|
|
3181
|
-
setTheme(name) {
|
|
3182
|
-
if (name) {
|
|
3183
|
-
const chosenTheme = this.themes.find((theme => theme.name === name));
|
|
3184
|
-
if (chosenTheme) {
|
|
3185
|
-
this.load(chosenTheme.options);
|
|
3186
|
-
}
|
|
3187
|
-
} else {
|
|
3188
|
-
const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = __classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? "dark" : "light");
|
|
3189
|
-
if (defaultTheme) {
|
|
3190
|
-
this.load(defaultTheme.options);
|
|
3191
|
-
}
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
setResponsive(width, pxRatio, defaultOptions) {
|
|
3195
|
-
this.load(defaultOptions);
|
|
3196
|
-
const responsiveOptions = this.responsive.find((t => t.mode === "screen" && screen ? t.maxWidth * pxRatio > screen.availWidth : t.maxWidth * pxRatio > width));
|
|
3197
|
-
this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
|
|
3198
|
-
return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
|
|
3199
|
-
}
|
|
3200
|
-
importPreset(preset) {
|
|
3201
|
-
this.load(Plugins.getPreset(preset));
|
|
3202
|
-
}
|
|
3203
|
-
}
|
|
3204
|
-
_Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
3205
|
-
var _a;
|
|
3206
|
-
return (_a = this.themes.find((theme => theme.default.value && theme.default.mode === mode))) !== null && _a !== void 0 ? _a : this.themes.find((theme => theme.default.value && theme.default.mode === "any"));
|
|
3207
|
-
};
|
|
3208
3208
|
class Container_Container {
|
|
3209
3209
|
constructor(id, sourceOptions, ...presets) {
|
|
3210
3210
|
this.id = id;
|
|
@@ -4990,8 +4990,8 @@
|
|
|
4990
4990
|
}
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
4993
|
-
async function loadOutModesUpdater(
|
|
4994
|
-
await
|
|
4993
|
+
async function loadOutModesUpdater(engine) {
|
|
4994
|
+
await engine.addParticleUpdater("outModes", (container => new OutOfCanvasUpdater(container)));
|
|
4995
4995
|
}
|
|
4996
4996
|
return __webpack_exports__;
|
|
4997
4997
|
}();
|