tsparticles 1.40.2 → 1.41.3
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/Container.d.ts +1 -1
- package/Core/Container.js +9 -23
- package/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
- package/Core/Particle.js +2 -2
- package/Core/Particles.d.ts +3 -3
- package/Core/Particles.js +7 -7
- package/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/Core/Utils/FrameManager.d.ts +1 -1
- package/Core/Utils/FrameManager.js +2 -2
- package/Core/Utils/InteractionManager.d.ts +2 -2
- package/Core/Utils/InteractionManager.js +4 -4
- package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
- package/Interactions/External/Attract/Attractor.d.ts +1 -1
- package/Interactions/External/Attract/Attractor.js +1 -1
- package/Interactions/External/Bounce/Bouncer.d.ts +1 -1
- package/Interactions/External/Bounce/Bouncer.js +1 -1
- package/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/Interactions/External/Bubble/Bubbler.js +1 -1
- package/Interactions/External/Connect/Connector.d.ts +1 -1
- package/Interactions/External/Connect/Connector.js +1 -1
- package/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/Interactions/External/Grab/Grabber.js +1 -1
- package/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/Interactions/External/Repulse/Repulser.js +1 -1
- package/Interactions/External/Trail/TrailMaker.d.ts +1 -1
- package/Interactions/External/Trail/TrailMaker.js +1 -1
- package/Interactions/Particles/Attract/Attractor.d.ts +1 -1
- package/Interactions/Particles/Attract/Attractor.js +1 -1
- package/Interactions/Particles/Collisions/Collider.d.ts +1 -1
- package/Interactions/Particles/Collisions/Collider.js +1 -1
- package/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/Interactions/Particles/Links/Linker.js +1 -1
- package/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
- package/Updaters/Opacity/OpacityUpdater.js +7 -5
- package/Updaters/Size/SizeUpdater.js +7 -5
- package/browser/Core/Container.d.ts +1 -1
- package/browser/Core/Container.js +9 -23
- package/browser/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/browser/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
- package/browser/Core/Particle.js +2 -2
- package/browser/Core/Particles.d.ts +3 -3
- package/browser/Core/Particles.js +7 -7
- package/browser/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/browser/Core/Utils/FrameManager.d.ts +1 -1
- package/browser/Core/Utils/FrameManager.js +2 -2
- package/browser/Core/Utils/InteractionManager.d.ts +2 -2
- package/browser/Core/Utils/InteractionManager.js +4 -4
- package/browser/Core/Utils/ParticlesInteractorBase.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/Bounce/Bouncer.d.ts +1 -1
- package/browser/Interactions/External/Bounce/Bouncer.js +1 -1
- package/browser/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/browser/Interactions/External/Bubble/Bubbler.js +1 -1
- package/browser/Interactions/External/Connect/Connector.d.ts +1 -1
- package/browser/Interactions/External/Connect/Connector.js +1 -1
- package/browser/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/browser/Interactions/External/Grab/Grabber.js +1 -1
- package/browser/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/browser/Interactions/External/Repulse/Repulser.js +1 -1
- package/browser/Interactions/External/Trail/TrailMaker.d.ts +1 -1
- package/browser/Interactions/External/Trail/TrailMaker.js +1 -1
- package/browser/Interactions/Particles/Attract/Attractor.d.ts +1 -1
- package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
- package/browser/Interactions/Particles/Collisions/Collider.d.ts +1 -1
- package/browser/Interactions/Particles/Collisions/Collider.js +1 -1
- package/browser/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/browser/Interactions/Particles/Links/Linker.js +1 -1
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
- package/browser/Updaters/Opacity/OpacityUpdater.js +7 -5
- package/browser/Updaters/Size/SizeUpdater.js +7 -5
- package/esm/Core/Container.d.ts +1 -1
- package/esm/Core/Container.js +9 -23
- package/esm/Core/Interfaces/IExternalInteractor.d.ts +1 -1
- package/esm/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
- package/esm/Core/Particle.js +2 -2
- package/esm/Core/Particles.d.ts +3 -3
- package/esm/Core/Particles.js +7 -7
- package/esm/Core/Utils/ExternalInteractorBase.d.ts +1 -1
- package/esm/Core/Utils/FrameManager.d.ts +1 -1
- package/esm/Core/Utils/FrameManager.js +2 -2
- package/esm/Core/Utils/InteractionManager.d.ts +2 -2
- package/esm/Core/Utils/InteractionManager.js +4 -4
- package/esm/Core/Utils/ParticlesInteractorBase.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/Bounce/Bouncer.d.ts +1 -1
- package/esm/Interactions/External/Bounce/Bouncer.js +1 -1
- package/esm/Interactions/External/Bubble/Bubbler.d.ts +1 -1
- package/esm/Interactions/External/Bubble/Bubbler.js +1 -1
- package/esm/Interactions/External/Connect/Connector.d.ts +1 -1
- package/esm/Interactions/External/Connect/Connector.js +1 -1
- package/esm/Interactions/External/Grab/Grabber.d.ts +1 -1
- package/esm/Interactions/External/Grab/Grabber.js +1 -1
- package/esm/Interactions/External/Repulse/Repulser.d.ts +1 -1
- package/esm/Interactions/External/Repulse/Repulser.js +1 -1
- package/esm/Interactions/External/Trail/TrailMaker.d.ts +1 -1
- package/esm/Interactions/External/Trail/TrailMaker.js +1 -1
- package/esm/Interactions/Particles/Attract/Attractor.d.ts +1 -1
- package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
- package/esm/Interactions/Particles/Collisions/Collider.d.ts +1 -1
- package/esm/Interactions/Particles/Collisions/Collider.js +1 -1
- package/esm/Interactions/Particles/Links/Linker.d.ts +1 -1
- package/esm/Interactions/Particles/Links/Linker.js +1 -1
- package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
- package/esm/Updaters/Opacity/OpacityUpdater.js +7 -5
- package/esm/Updaters/Size/SizeUpdater.js +7 -5
- package/package.json +1 -1
- package/report.html +6 -5
- package/report.slim.html +6 -5
- package/tsparticles.engine.js +24 -38
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +23 -37
- package/tsparticles.interaction.external.attract.min.js +2 -2
- package/tsparticles.interaction.external.bounce.js +23 -37
- package/tsparticles.interaction.external.bounce.min.js +2 -2
- package/tsparticles.interaction.external.bubble.js +23 -37
- package/tsparticles.interaction.external.bubble.min.js +2 -2
- package/tsparticles.interaction.external.connect.js +23 -37
- package/tsparticles.interaction.external.connect.min.js +2 -2
- package/tsparticles.interaction.external.grab.js +23 -37
- package/tsparticles.interaction.external.grab.min.js +2 -2
- package/tsparticles.interaction.external.repulse.js +23 -37
- package/tsparticles.interaction.external.repulse.min.js +2 -2
- package/tsparticles.interaction.external.trail.js +23 -37
- package/tsparticles.interaction.external.trail.min.js +2 -2
- package/tsparticles.interaction.particles.attract.js +23 -37
- package/tsparticles.interaction.particles.attract.min.js +2 -2
- package/tsparticles.interaction.particles.collisions.js +23 -37
- package/tsparticles.interaction.particles.collisions.min.js +2 -2
- package/tsparticles.interaction.particles.links.js +23 -37
- package/tsparticles.interaction.particles.links.min.js +2 -2
- package/tsparticles.js +43 -56
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +22 -36
- package/tsparticles.plugins.absorbers.min.js +1 -1
- package/tsparticles.plugins.emitters.js +22 -36
- package/tsparticles.plugins.emitters.min.js +1 -1
- package/tsparticles.plugins.polygonMask.js +24 -38
- package/tsparticles.plugins.polygonMask.min.js +2 -2
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.js +22 -36
- package/tsparticles.shape.image.min.js +1 -1
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.js +22 -36
- package/tsparticles.shape.text.min.js +1 -1
- package/tsparticles.slim.js +40 -53
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +22 -36
- package/tsparticles.updater.angle.min.js +1 -1
- package/tsparticles.updater.color.js +22 -36
- package/tsparticles.updater.color.min.js +1 -1
- package/tsparticles.updater.life.js +22 -36
- package/tsparticles.updater.life.min.js +1 -1
- package/tsparticles.updater.opacity.js +25 -39
- package/tsparticles.updater.opacity.min.js +2 -2
- package/tsparticles.updater.outModes.js +22 -36
- package/tsparticles.updater.outModes.min.js +1 -1
- package/tsparticles.updater.roll.js +22 -36
- package/tsparticles.updater.roll.min.js +1 -1
- package/tsparticles.updater.size.js +26 -39
- package/tsparticles.updater.size.min.js +2 -2
- package/tsparticles.updater.strokeColor.js +22 -36
- package/tsparticles.updater.strokeColor.min.js +1 -1
- package/tsparticles.updater.tilt.js +22 -36
- package/tsparticles.updater.tilt.min.js +1 -1
- package/tsparticles.updater.wobble.js +22 -36
- package/tsparticles.updater.wobble.min.js +1 -1
- package/umd/Core/Canvas.d.ts +35 -0
- package/umd/Core/Canvas.js +328 -0
- package/umd/Core/Container.d.ts +68 -0
- package/umd/Core/Container.js +405 -0
- package/umd/Core/Interfaces/Colors.d.ts +33 -0
- package/umd/Core/Interfaces/Colors.js +12 -0
- package/umd/Core/Interfaces/Gradients.d.ts +21 -0
- package/umd/Core/Interfaces/Gradients.js +12 -0
- package/umd/Core/Interfaces/IAttract.d.ts +7 -0
- package/umd/Core/Interfaces/IAttract.js +12 -0
- package/umd/Core/Interfaces/IBounds.d.ts +6 -0
- package/umd/Core/Interfaces/IBounds.js +12 -0
- package/umd/Core/Interfaces/IBubble.d.ts +4 -0
- package/umd/Core/Interfaces/IBubble.js +12 -0
- package/umd/Core/Interfaces/IBubbleParticleData.d.ts +9 -0
- package/umd/Core/Interfaces/IBubbleParticleData.js +12 -0
- package/umd/Core/Interfaces/ICircleBouncer.d.ts +9 -0
- package/umd/Core/Interfaces/ICircleBouncer.js +12 -0
- package/umd/Core/Interfaces/IContainerInteractivity.d.ts +6 -0
- package/umd/Core/Interfaces/IContainerInteractivity.js +12 -0
- package/umd/Core/Interfaces/IContainerPlugin.d.ts +32 -0
- package/umd/Core/Interfaces/IContainerPlugin.js +12 -0
- package/umd/Core/Interfaces/ICoordinates.d.ts +7 -0
- package/umd/Core/Interfaces/ICoordinates.js +12 -0
- package/umd/Core/Interfaces/IDelta.d.ts +4 -0
- package/umd/Core/Interfaces/IDelta.js +12 -0
- package/umd/Core/Interfaces/IDimension.d.ts +4 -0
- package/umd/Core/Interfaces/IDimension.js +12 -0
- package/umd/Core/Interfaces/IDistance.d.ts +4 -0
- package/umd/Core/Interfaces/IDistance.js +12 -0
- package/umd/Core/Interfaces/IExternalInteractor.d.ts +6 -0
- package/umd/Core/Interfaces/IExternalInteractor.js +12 -0
- package/umd/Core/Interfaces/IInteractor.d.ts +6 -0
- package/umd/Core/Interfaces/IInteractor.js +12 -0
- package/umd/Core/Interfaces/IMouseData.d.ts +9 -0
- package/umd/Core/Interfaces/IMouseData.js +12 -0
- package/umd/Core/Interfaces/IMovePathGenerator.d.ts +8 -0
- package/umd/Core/Interfaces/IMovePathGenerator.js +12 -0
- package/umd/Core/Interfaces/IParticle.d.ts +55 -0
- package/umd/Core/Interfaces/IParticle.js +12 -0
- package/umd/Core/Interfaces/IParticleGradientAnimation.d.ts +8 -0
- package/umd/Core/Interfaces/IParticleGradientAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleGradientColorAnimation.d.ts +7 -0
- package/umd/Core/Interfaces/IParticleGradientColorAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleHslAnimation.d.ts +6 -0
- package/umd/Core/Interfaces/IParticleHslAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleLife.d.ts +7 -0
- package/umd/Core/Interfaces/IParticleLife.js +12 -0
- package/umd/Core/Interfaces/IParticleLoops.d.ts +4 -0
- package/umd/Core/Interfaces/IParticleLoops.js +12 -0
- package/umd/Core/Interfaces/IParticleRetinaProps.d.ts +12 -0
- package/umd/Core/Interfaces/IParticleRetinaProps.js +12 -0
- package/umd/Core/Interfaces/IParticleRoll.d.ts +9 -0
- package/umd/Core/Interfaces/IParticleRoll.js +12 -0
- package/umd/Core/Interfaces/IParticleSpin.d.ts +9 -0
- package/umd/Core/Interfaces/IParticleSpin.js +12 -0
- package/umd/Core/Interfaces/IParticleUpdater.d.ts +9 -0
- package/umd/Core/Interfaces/IParticleUpdater.js +12 -0
- package/umd/Core/Interfaces/IParticleValueAnimation.d.ts +17 -0
- package/umd/Core/Interfaces/IParticleValueAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleWobble.d.ts +4 -0
- package/umd/Core/Interfaces/IParticleWobble.js +12 -0
- package/umd/Core/Interfaces/IParticlesFrequencies.d.ts +4 -0
- package/umd/Core/Interfaces/IParticlesFrequencies.js +12 -0
- package/umd/Core/Interfaces/IParticlesInteractor.d.ts +7 -0
- package/umd/Core/Interfaces/IParticlesInteractor.js +12 -0
- package/umd/Core/Interfaces/IPlugin.d.ts +11 -0
- package/umd/Core/Interfaces/IPlugin.js +12 -0
- package/umd/Core/Interfaces/IRangeValue.d.ts +4 -0
- package/umd/Core/Interfaces/IRangeValue.js +12 -0
- package/umd/Core/Interfaces/IRectSideResult.d.ts +5 -0
- package/umd/Core/Interfaces/IRectSideResult.js +12 -0
- package/umd/Core/Interfaces/IRepulse.d.ts +7 -0
- package/umd/Core/Interfaces/IRepulse.js +12 -0
- package/umd/Core/Interfaces/IShapeDrawer.d.ts +10 -0
- package/umd/Core/Interfaces/IShapeDrawer.js +12 -0
- package/umd/Core/Interfaces/IShapeValues.d.ts +8 -0
- package/umd/Core/Interfaces/IShapeValues.js +12 -0
- package/umd/Core/Interfaces/index.d.ts +36 -0
- package/umd/Core/Interfaces/index.js +58 -0
- package/umd/Core/Loader.d.ts +32 -0
- package/umd/Core/Loader.js +193 -0
- package/umd/Core/Particle.d.ts +71 -0
- package/umd/Core/Particle.js +394 -0
- package/umd/Core/Particles.d.ts +46 -0
- package/umd/Core/Particles.js +331 -0
- package/umd/Core/Retina.d.ts +26 -0
- package/umd/Core/Retina.js +107 -0
- package/umd/Core/Utils/Circle.d.ts +8 -0
- package/umd/Core/Utils/Circle.js +52 -0
- package/umd/Core/Utils/CircleWarp.d.ts +9 -0
- package/umd/Core/Utils/CircleWarp.js +70 -0
- package/umd/Core/Utils/Constants.d.ts +18 -0
- package/umd/Core/Utils/Constants.js +32 -0
- package/umd/Core/Utils/EventListeners.d.ts +33 -0
- package/umd/Core/Utils/EventListeners.js +383 -0
- package/umd/Core/Utils/ExternalInteractorBase.d.ts +12 -0
- package/umd/Core/Utils/ExternalInteractorBase.js +20 -0
- package/umd/Core/Utils/FrameManager.d.ts +6 -0
- package/umd/Core/Utils/FrameManager.js +53 -0
- package/umd/Core/Utils/InteractionManager.d.ts +14 -0
- package/umd/Core/Utils/InteractionManager.js +69 -0
- package/umd/Core/Utils/ParticlesInteractorBase.d.ts +12 -0
- package/umd/Core/Utils/ParticlesInteractorBase.js +20 -0
- package/umd/Core/Utils/ParticlesMover.d.ts +13 -0
- package/umd/Core/Utils/ParticlesMover.js +196 -0
- package/umd/Core/Utils/Plugins.d.ts +36 -0
- package/umd/Core/Utils/Plugins.js +108 -0
- package/umd/Core/Utils/Point.d.ts +7 -0
- package/umd/Core/Utils/Point.js +20 -0
- package/umd/Core/Utils/QuadTree.d.ts +23 -0
- package/umd/Core/Utils/QuadTree.js +88 -0
- package/umd/Core/Utils/Range.d.ts +7 -0
- package/umd/Core/Utils/Range.js +22 -0
- package/umd/Core/Utils/Rectangle.d.ts +8 -0
- package/umd/Core/Utils/Rectangle.js +48 -0
- package/umd/Core/Utils/Vector.d.ts +29 -0
- package/umd/Core/Utils/Vector.js +106 -0
- package/umd/Core/Utils/Vector3d.d.ts +18 -0
- package/umd/Core/Utils/Vector3d.js +68 -0
- package/umd/Core/Utils/index.d.ts +16 -0
- package/umd/Core/Utils/index.js +38 -0
- package/umd/Core/index.d.ts +8 -0
- package/umd/Core/index.js +30 -0
- package/umd/Enums/AnimationStatus.d.ts +4 -0
- package/umd/Enums/AnimationStatus.js +12 -0
- package/umd/Enums/Directions/MoveDirection.d.ts +12 -0
- package/umd/Enums/Directions/MoveDirection.js +12 -0
- package/umd/Enums/Directions/OutModeDirection.d.ts +6 -0
- package/umd/Enums/Directions/OutModeDirection.js +12 -0
- package/umd/Enums/Directions/RotateDirection.d.ts +6 -0
- package/umd/Enums/Directions/RotateDirection.js +12 -0
- package/umd/Enums/Directions/TiltDirection.d.ts +6 -0
- package/umd/Enums/Directions/TiltDirection.js +12 -0
- package/umd/Enums/Directions/index.d.ts +4 -0
- package/umd/Enums/Directions/index.js +26 -0
- package/umd/Enums/InteractivityDetect.d.ts +5 -0
- package/umd/Enums/InteractivityDetect.js +12 -0
- package/umd/Enums/Modes/ClickMode.d.ts +9 -0
- package/umd/Enums/Modes/ClickMode.js +12 -0
- package/umd/Enums/Modes/CollisionMode.d.ts +5 -0
- package/umd/Enums/Modes/CollisionMode.js +12 -0
- package/umd/Enums/Modes/DestroyMode.d.ts +4 -0
- package/umd/Enums/Modes/DestroyMode.js +12 -0
- package/umd/Enums/Modes/DivMode.d.ts +5 -0
- package/umd/Enums/Modes/DivMode.js +12 -0
- package/umd/Enums/Modes/HoverMode.d.ts +11 -0
- package/umd/Enums/Modes/HoverMode.js +12 -0
- package/umd/Enums/Modes/OutMode.d.ts +10 -0
- package/umd/Enums/Modes/OutMode.js +12 -0
- package/umd/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/umd/Enums/Modes/ResponsiveMode.js +12 -0
- package/umd/Enums/Modes/RollMode.d.ts +5 -0
- package/umd/Enums/Modes/RollMode.js +12 -0
- package/umd/Enums/Modes/SizeMode.d.ts +4 -0
- package/umd/Enums/Modes/SizeMode.js +12 -0
- package/umd/Enums/Modes/ThemeMode.d.ts +5 -0
- package/umd/Enums/Modes/ThemeMode.js +12 -0
- package/umd/Enums/Modes/index.d.ts +10 -0
- package/umd/Enums/Modes/index.js +32 -0
- package/umd/Enums/Types/AlterType.d.ts +4 -0
- package/umd/Enums/Types/AlterType.js +12 -0
- package/umd/Enums/Types/DestroyType.d.ts +5 -0
- package/umd/Enums/Types/DestroyType.js +12 -0
- package/umd/Enums/Types/DivType.d.ts +4 -0
- package/umd/Enums/Types/DivType.js +12 -0
- package/umd/Enums/Types/EasingType.d.ts +10 -0
- package/umd/Enums/Types/EasingType.js +12 -0
- package/umd/Enums/Types/GradientType.d.ts +5 -0
- package/umd/Enums/Types/GradientType.js +12 -0
- package/umd/Enums/Types/InteractorType.d.ts +4 -0
- package/umd/Enums/Types/InteractorType.js +12 -0
- package/umd/Enums/Types/OrbitType.d.ts +4 -0
- package/umd/Enums/Types/OrbitType.js +12 -0
- package/umd/Enums/Types/ShapeType.d.ts +13 -0
- package/umd/Enums/Types/ShapeType.js +12 -0
- package/umd/Enums/Types/StartValueType.d.ts +5 -0
- package/umd/Enums/Types/StartValueType.js +12 -0
- package/umd/Enums/Types/index.d.ts +9 -0
- package/umd/Enums/Types/index.js +31 -0
- package/umd/Enums/index.d.ts +5 -0
- package/umd/Enums/index.js +27 -0
- package/umd/Interactions/External/Attract/Attractor.d.ts +11 -0
- package/umd/Interactions/External/Attract/Attractor.js +85 -0
- package/umd/Interactions/External/Attract/index.d.ts +2 -0
- package/umd/Interactions/External/Attract/index.js +18 -0
- package/umd/Interactions/External/Bounce/Bouncer.d.ts +11 -0
- package/umd/Interactions/External/Bounce/Bouncer.js +77 -0
- package/umd/Interactions/External/Bounce/index.d.ts +2 -0
- package/umd/Interactions/External/Bounce/index.js +18 -0
- package/umd/Interactions/External/Bubble/Bubbler.d.ts +16 -0
- package/umd/Interactions/External/Bubble/Bubbler.js +261 -0
- package/umd/Interactions/External/Bubble/IBubblerProcessParam.d.ts +10 -0
- package/umd/Interactions/External/Bubble/IBubblerProcessParam.js +12 -0
- package/umd/Interactions/External/Bubble/ProcessBubbleType.d.ts +5 -0
- package/umd/Interactions/External/Bubble/ProcessBubbleType.js +12 -0
- package/umd/Interactions/External/Bubble/index.d.ts +2 -0
- package/umd/Interactions/External/Bubble/index.js +18 -0
- package/umd/Interactions/External/Connect/Connector.d.ts +8 -0
- package/umd/Interactions/External/Connect/Connector.js +51 -0
- package/umd/Interactions/External/Connect/index.d.ts +2 -0
- package/umd/Interactions/External/Connect/index.js +18 -0
- package/umd/Interactions/External/Grab/Grabber.d.ts +8 -0
- package/umd/Interactions/External/Grab/Grabber.js +57 -0
- package/umd/Interactions/External/Grab/index.d.ts +2 -0
- package/umd/Interactions/External/Grab/index.js +18 -0
- package/umd/Interactions/External/Repulse/Repulser.d.ts +12 -0
- package/umd/Interactions/External/Repulse/Repulser.js +108 -0
- package/umd/Interactions/External/Repulse/index.d.ts +2 -0
- package/umd/Interactions/External/Repulse/index.js +18 -0
- package/umd/Interactions/External/Trail/TrailMaker.d.ts +10 -0
- package/umd/Interactions/External/Trail/TrailMaker.js +63 -0
- package/umd/Interactions/External/Trail/index.d.ts +2 -0
- package/umd/Interactions/External/Trail/index.js +18 -0
- package/umd/Interactions/Particles/Attract/Attractor.d.ts +8 -0
- package/umd/Interactions/Particles/Attract/Attractor.js +40 -0
- package/umd/Interactions/Particles/Attract/index.d.ts +2 -0
- package/umd/Interactions/Particles/Attract/index.js +18 -0
- package/umd/Interactions/Particles/Collisions/Collider.d.ts +10 -0
- package/umd/Interactions/Particles/Collisions/Collider.js +119 -0
- package/umd/Interactions/Particles/Collisions/index.d.ts +2 -0
- package/umd/Interactions/Particles/Collisions/index.js +18 -0
- package/umd/Interactions/Particles/Links/ILink.d.ts +9 -0
- package/umd/Interactions/Particles/Links/ILink.js +12 -0
- package/umd/Interactions/Particles/Links/LinkInstance.d.ts +10 -0
- package/umd/Interactions/Particles/Links/LinkInstance.js +134 -0
- package/umd/Interactions/Particles/Links/LinkParticle.d.ts +5 -0
- package/umd/Interactions/Particles/Links/LinkParticle.js +12 -0
- package/umd/Interactions/Particles/Links/Linker.d.ts +10 -0
- package/umd/Interactions/Particles/Links/Linker.js +115 -0
- package/umd/Interactions/Particles/Links/index.d.ts +2 -0
- package/umd/Interactions/Particles/Links/index.js +20 -0
- package/umd/Interactions/Particles/Links/interaction.d.ts +2 -0
- package/umd/Interactions/Particles/Links/interaction.js +18 -0
- package/umd/Interactions/Particles/Links/plugin.d.ts +2 -0
- package/umd/Interactions/Particles/Links/plugin.js +32 -0
- package/umd/Options/Classes/AnimatableColor.d.ts +11 -0
- package/umd/Options/Classes/AnimatableColor.js +50 -0
- package/umd/Options/Classes/AnimatableGradient.d.ts +53 -0
- package/umd/Options/Classes/AnimatableGradient.js +156 -0
- package/umd/Options/Classes/AnimationOptions.d.ts +11 -0
- package/umd/Options/Classes/AnimationOptions.js +39 -0
- package/umd/Options/Classes/Background/Background.d.ts +14 -0
- package/umd/Options/Classes/Background/Background.js +49 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +38 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +32 -0
- package/umd/Options/Classes/ColorAnimation.d.ts +12 -0
- package/umd/Options/Classes/ColorAnimation.js +44 -0
- package/umd/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
- package/umd/Options/Classes/FullScreen/FullScreen.js +31 -0
- package/umd/Options/Classes/HslAnimation.d.ts +11 -0
- package/umd/Options/Classes/HslAnimation.js +30 -0
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +31 -0
- package/umd/Options/Classes/Interactivity/Events/DivEvent.d.ts +18 -0
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +64 -0
- package/umd/Options/Classes/Interactivity/Events/Events.d.ts +20 -0
- package/umd/Options/Classes/Interactivity/Events/Events.js +68 -0
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +34 -0
- package/umd/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Events/Parallax.js +35 -0
- package/umd/Options/Classes/Interactivity/Interactivity.d.ts +15 -0
- package/umd/Options/Classes/Interactivity/Interactivity.js +51 -0
- package/umd/Options/Classes/Interactivity/Modes/Attract.d.ts +14 -0
- package/umd/Options/Classes/Interactivity/Modes/Attract.js +47 -0
- package/umd/Options/Classes/Interactivity/Modes/Bounce.d.ts +8 -0
- package/umd/Options/Classes/Interactivity/Modes/Bounce.js +27 -0
- package/umd/Options/Classes/Interactivity/Modes/Bubble.d.ts +9 -0
- package/umd/Options/Classes/Interactivity/Modes/Bubble.js +37 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +13 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleBase.js +53 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.js +41 -0
- package/umd/Options/Classes/Interactivity/Modes/Connect.d.ts +15 -0
- package/umd/Options/Classes/Interactivity/Modes/Connect.js +47 -0
- package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +8 -0
- package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.js +25 -0
- package/umd/Options/Classes/Interactivity/Modes/Grab.d.ts +14 -0
- package/umd/Options/Classes/Interactivity/Modes/Grab.js +43 -0
- package/umd/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Modes/GrabLinks.js +39 -0
- package/umd/Options/Classes/Interactivity/Modes/Light.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/Light.js +29 -0
- package/umd/Options/Classes/Interactivity/Modes/LightArea.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/LightArea.js +30 -0
- package/umd/Options/Classes/Interactivity/Modes/LightGradient.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/LightGradient.js +30 -0
- package/umd/Options/Classes/Interactivity/Modes/LightShadow.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/LightShadow.js +31 -0
- package/umd/Options/Classes/Interactivity/Modes/Modes.d.ts +29 -0
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +55 -0
- package/umd/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Modes/Push.js +46 -0
- package/umd/Options/Classes/Interactivity/Modes/Remove.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/Remove.js +35 -0
- package/umd/Options/Classes/Interactivity/Modes/Repulse.d.ts +9 -0
- package/umd/Options/Classes/Interactivity/Modes/Repulse.js +37 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +14 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseBase.js +47 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.js +49 -0
- package/umd/Options/Classes/Interactivity/Modes/Slow.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/Slow.js +36 -0
- package/umd/Options/Classes/Interactivity/Modes/Trail.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Modes/Trail.js +39 -0
- package/umd/Options/Classes/ManualParticle.d.ts +10 -0
- package/umd/Options/Classes/ManualParticle.js +32 -0
- package/umd/Options/Classes/Motion/Motion.d.ts +10 -0
- package/umd/Options/Classes/Motion/Motion.js +30 -0
- package/umd/Options/Classes/Motion/MotionReduce.d.ts +9 -0
- package/umd/Options/Classes/Motion/MotionReduce.js +31 -0
- package/umd/Options/Classes/Options.d.ts +48 -0
- package/umd/Options/Classes/Options.js +184 -0
- package/umd/Options/Classes/OptionsColor.d.ts +10 -0
- package/umd/Options/Classes/OptionsColor.js +38 -0
- package/umd/Options/Classes/Particles/Bounce/Bounce.d.ts +10 -0
- package/umd/Options/Classes/Particles/Bounce/Bounce.js +28 -0
- package/umd/Options/Classes/Particles/Bounce/BounceFactor.d.ts +4 -0
- package/umd/Options/Classes/Particles/Bounce/BounceFactor.js +22 -0
- package/umd/Options/Classes/Particles/Collisions/Collisions.d.ts +14 -0
- package/umd/Options/Classes/Particles/Collisions/Collisions.js +37 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.js +31 -0
- package/umd/Options/Classes/Particles/Destroy/Destroy.d.ts +11 -0
- package/umd/Options/Classes/Particles/Destroy/Destroy.js +30 -0
- package/umd/Options/Classes/Particles/Destroy/Split.d.ts +15 -0
- package/umd/Options/Classes/Particles/Destroy/Split.js +41 -0
- package/umd/Options/Classes/Particles/Destroy/SplitFactor.d.ts +4 -0
- package/umd/Options/Classes/Particles/Destroy/SplitFactor.js +21 -0
- package/umd/Options/Classes/Particles/Destroy/SplitRate.d.ts +4 -0
- package/umd/Options/Classes/Particles/Destroy/SplitRate.js +21 -0
- package/umd/Options/Classes/Particles/Life/Life.d.ts +12 -0
- package/umd/Options/Classes/Particles/Life/Life.js +33 -0
- package/umd/Options/Classes/Particles/Life/LifeDelay.d.ts +9 -0
- package/umd/Options/Classes/Particles/Life/LifeDelay.js +30 -0
- package/umd/Options/Classes/Particles/Life/LifeDuration.d.ts +9 -0
- package/umd/Options/Classes/Particles/Life/LifeDuration.js +31 -0
- package/umd/Options/Classes/Particles/Links/Links.d.ts +22 -0
- package/umd/Options/Classes/Particles/Links/Links.js +67 -0
- package/umd/Options/Classes/Particles/Links/LinksShadow.d.ts +11 -0
- package/umd/Options/Classes/Particles/Links/LinksShadow.js +35 -0
- package/umd/Options/Classes/Particles/Links/LinksTriangle.d.ts +12 -0
- package/umd/Options/Classes/Particles/Links/LinksTriangle.js +38 -0
- package/umd/Options/Classes/Particles/Move/Attract.d.ts +15 -0
- package/umd/Options/Classes/Particles/Move/Attract.js +56 -0
- package/umd/Options/Classes/Particles/Move/Move.d.ts +44 -0
- package/umd/Options/Classes/Particles/Move/Move.js +142 -0
- package/umd/Options/Classes/Particles/Move/MoveAngle.d.ts +9 -0
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +31 -0
- package/umd/Options/Classes/Particles/Move/MoveGravity.d.ts +11 -0
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +39 -0
- package/umd/Options/Classes/Particles/Move/OutModes.d.ts +13 -0
- package/umd/Options/Classes/Particles/Move/OutModes.js +32 -0
- package/umd/Options/Classes/Particles/Move/Path/Path.d.ts +13 -0
- package/umd/Options/Classes/Particles/Move/Path/Path.js +40 -0
- package/umd/Options/Classes/Particles/Move/Path/PathDelay.d.ts +4 -0
- package/umd/Options/Classes/Particles/Move/Path/PathDelay.js +20 -0
- package/umd/Options/Classes/Particles/Move/Spin.d.ts +11 -0
- package/umd/Options/Classes/Particles/Move/Spin.js +33 -0
- package/umd/Options/Classes/Particles/Move/Trail.d.ts +11 -0
- package/umd/Options/Classes/Particles/Move/Trail.js +35 -0
- package/umd/Options/Classes/Particles/Number/Density.d.ts +12 -0
- package/umd/Options/Classes/Particles/Number/Density.js +43 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +42 -0
- package/umd/Options/Classes/Particles/Opacity/Opacity.d.ts +12 -0
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +43 -0
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +14 -0
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +54 -0
- package/umd/Options/Classes/Particles/Orbit/Orbit.d.ts +18 -0
- package/umd/Options/Classes/Particles/Orbit/Orbit.js +48 -0
- package/umd/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +7 -0
- package/umd/Options/Classes/Particles/Orbit/OrbitRotation.js +29 -0
- package/umd/Options/Classes/Particles/ParticlesOptions.d.ts +58 -0
- package/umd/Options/Classes/Particles/ParticlesOptions.js +153 -0
- package/umd/Options/Classes/Particles/Repulse/Repulse.d.ts +13 -0
- package/umd/Options/Classes/Particles/Repulse/Repulse.js +46 -0
- package/umd/Options/Classes/Particles/Roll/Roll.d.ts +16 -0
- package/umd/Options/Classes/Particles/Roll/Roll.js +45 -0
- package/umd/Options/Classes/Particles/Roll/RollLight.d.ts +9 -0
- package/umd/Options/Classes/Particles/Roll/RollLight.js +31 -0
- package/umd/Options/Classes/Particles/Rotate/Rotate.d.ts +13 -0
- package/umd/Options/Classes/Particles/Rotate/Rotate.js +38 -0
- package/umd/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +10 -0
- package/umd/Options/Classes/Particles/Rotate/RotateAnimation.js +35 -0
- package/umd/Options/Classes/Particles/Shadow.d.ts +13 -0
- package/umd/Options/Classes/Particles/Shadow.js +48 -0
- package/umd/Options/Classes/Particles/Shape/Shape.d.ts +27 -0
- package/umd/Options/Classes/Particles/Shape/Shape.js +113 -0
- package/umd/Options/Classes/Particles/Size/Size.d.ts +12 -0
- package/umd/Options/Classes/Particles/Size/Size.js +43 -0
- package/umd/Options/Classes/Particles/Size/SizeAnimation.d.ts +14 -0
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +54 -0
- package/umd/Options/Classes/Particles/Stroke.d.ts +11 -0
- package/umd/Options/Classes/Particles/Stroke.js +34 -0
- package/umd/Options/Classes/Particles/Tilt/Tilt.d.ts +13 -0
- package/umd/Options/Classes/Particles/Tilt/Tilt.js +38 -0
- package/umd/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +10 -0
- package/umd/Options/Classes/Particles/Tilt/TiltAnimation.js +35 -0
- package/umd/Options/Classes/Particles/Twinkle/Twinkle.d.ts +10 -0
- package/umd/Options/Classes/Particles/Twinkle/Twinkle.js +28 -0
- package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +12 -0
- package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.js +39 -0
- package/umd/Options/Classes/Particles/Wobble/Wobble.d.ts +10 -0
- package/umd/Options/Classes/Particles/Wobble/Wobble.js +36 -0
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +38 -0
- package/umd/Options/Classes/Random.d.ts +9 -0
- package/umd/Options/Classes/Random.js +31 -0
- package/umd/Options/Classes/Responsive.d.ts +12 -0
- package/umd/Options/Classes/Responsive.js +41 -0
- package/umd/Options/Classes/Theme/Theme.d.ts +12 -0
- package/umd/Options/Classes/Theme/Theme.js +34 -0
- package/umd/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
- package/umd/Options/Classes/Theme/ThemeDefault.js +35 -0
- package/umd/Options/Classes/ValueWithRandom.d.ts +10 -0
- package/umd/Options/Classes/ValueWithRandom.js +36 -0
- package/umd/Options/Interfaces/Background/IBackground.d.ts +9 -0
- package/umd/Options/Interfaces/Background/IBackground.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +5 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +12 -0
- package/umd/Options/Interfaces/FullScreen/IFullScreen.d.ts +4 -0
- package/umd/Options/Interfaces/FullScreen/IFullScreen.js +12 -0
- package/umd/Options/Interfaces/IAnimatable.d.ts +4 -0
- package/umd/Options/Interfaces/IAnimatable.js +12 -0
- package/umd/Options/Interfaces/IAnimatableColor.d.ts +6 -0
- package/umd/Options/Interfaces/IAnimatableColor.js +12 -0
- package/umd/Options/Interfaces/IAnimatableGradient.d.ts +8 -0
- package/umd/Options/Interfaces/IAnimatableGradient.js +12 -0
- package/umd/Options/Interfaces/IAnimation.d.ts +6 -0
- package/umd/Options/Interfaces/IAnimation.js +12 -0
- package/umd/Options/Interfaces/IColorAnimation.d.ts +5 -0
- package/umd/Options/Interfaces/IColorAnimation.js +12 -0
- package/umd/Options/Interfaces/IHslAnimation.d.ts +6 -0
- package/umd/Options/Interfaces/IHslAnimation.js +12 -0
- package/umd/Options/Interfaces/IManualParticle.d.ts +7 -0
- package/umd/Options/Interfaces/IManualParticle.js +12 -0
- package/umd/Options/Interfaces/IOptionLoader.d.ts +4 -0
- package/umd/Options/Interfaces/IOptionLoader.js +12 -0
- package/umd/Options/Interfaces/IOptions.d.ts +34 -0
- package/umd/Options/Interfaces/IOptions.js +12 -0
- package/umd/Options/Interfaces/IOptionsColor.d.ts +2 -0
- package/umd/Options/Interfaces/IOptionsColor.js +12 -0
- package/umd/Options/Interfaces/IOptionsGradient.d.ts +13 -0
- package/umd/Options/Interfaces/IOptionsGradient.js +12 -0
- package/umd/Options/Interfaces/IRandom.d.ts +4 -0
- package/umd/Options/Interfaces/IRandom.js +12 -0
- package/umd/Options/Interfaces/IResponsive.d.ts +8 -0
- package/umd/Options/Interfaces/IResponsive.js +12 -0
- package/umd/Options/Interfaces/IValueWithRandom.d.ts +6 -0
- package/umd/Options/Interfaces/IValueWithRandom.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +11 -0
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +12 -0
- package/umd/Options/Interfaces/Interactivity/IInteractivity.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/IInteractivity.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IAttract.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +3 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBounce.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubble.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +10 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +4 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +8 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnect.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +7 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrab.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +7 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILight.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILight.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.d.ts +22 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IPush.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +4 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRemove.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +4 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ISlow.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +8 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ITrail.js +12 -0
- package/umd/Options/Interfaces/Motion/IMotion.d.ts +5 -0
- package/umd/Options/Interfaces/Motion/IMotion.js +12 -0
- package/umd/Options/Interfaces/Motion/IMotionReduce.d.ts +4 -0
- package/umd/Options/Interfaces/Motion/IMotionReduce.js +12 -0
- package/umd/Options/Interfaces/Particles/Bounce/IBounce.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Bounce/IBounce.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +9 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisions.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +12 -0
- package/umd/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Destroy/IDestroy.js +12 -0
- package/umd/Options/Interfaces/Particles/Destroy/ISplit.d.ts +10 -0
- package/umd/Options/Interfaces/Particles/Destroy/ISplit.js +12 -0
- package/umd/Options/Interfaces/Particles/IParticles.d.ts +52 -0
- package/umd/Options/Interfaces/Particles/IParticles.js +12 -0
- package/umd/Options/Interfaces/Particles/IShadow.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/IShadow.js +12 -0
- package/umd/Options/Interfaces/Particles/IStroke.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/IStroke.js +12 -0
- package/umd/Options/Interfaces/Particles/Life/ILife.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Life/ILife.js +12 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDelay.js +12 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDuration.js +12 -0
- package/umd/Options/Interfaces/Particles/Links/ILinks.d.ts +17 -0
- package/umd/Options/Interfaces/Particles/Links/ILinks.js +12 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksShadow.js +12 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IAttract.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Move/IAttract.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMove.d.ts +35 -0
- package/umd/Options/Interfaces/Particles/Move/IMove.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Move/IOutModes.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Move/ISpin.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/ITrail.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Move/ITrail.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/Path/IPath.d.ts +9 -0
- package/umd/Options/Interfaces/Particles/Move/Path/IPath.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Number/IDensity.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +12 -0
- package/umd/Options/Interfaces/Particles/Orbit/IOrbit.js +12 -0
- package/umd/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Repulse/IRepulse.js +12 -0
- package/umd/Options/Interfaces/Particles/Roll/IRoll.d.ts +12 -0
- package/umd/Options/Interfaces/Particles/Roll/IRoll.js +12 -0
- package/umd/Options/Interfaces/Particles/Roll/IRollLight.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Roll/IRollLight.js +12 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotate.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotate.js +12 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShape.d.ts +16 -0
- package/umd/Options/Interfaces/Particles/Shape/IShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +1 -0
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +23 -0
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISize.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Size/ISize.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITilt.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITilt.js +12 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.js +12 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.js +12 -0
- package/umd/Options/Interfaces/Particles/Wobble/IWobble.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Wobble/IWobble.js +12 -0
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +12 -0
- package/umd/Options/Interfaces/Theme/ITheme.d.ts +8 -0
- package/umd/Options/Interfaces/Theme/ITheme.js +12 -0
- package/umd/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
- package/umd/Options/Interfaces/Theme/IThemeDefault.js +12 -0
- package/umd/Plugins/Absorbers/AbsorberContainer.d.ts +7 -0
- package/umd/Plugins/Absorbers/AbsorberContainer.js +12 -0
- package/umd/Plugins/Absorbers/AbsorberInstance.d.ts +33 -0
- package/umd/Plugins/Absorbers/AbsorberInstance.js +172 -0
- package/umd/Plugins/Absorbers/Absorbers.d.ts +22 -0
- package/umd/Plugins/Absorbers/Absorbers.js +128 -0
- package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
- package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.js +12 -0
- package/umd/Plugins/Absorbers/Enums/index.d.ts +1 -0
- package/umd/Plugins/Absorbers/Enums/index.js +23 -0
- package/umd/Plugins/Absorbers/Options/Classes/Absorber.d.ts +18 -0
- package/umd/Plugins/Absorbers/Options/Classes/Absorber.js +57 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +11 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.js +40 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +9 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.js +31 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +13 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.js +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.js +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +6 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.js +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +4 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.js +12 -0
- package/umd/Plugins/Absorbers/index.d.ts +2 -0
- package/umd/Plugins/Absorbers/index.js +90 -0
- package/umd/Plugins/Emitters/EmitterContainer.d.ts +10 -0
- package/umd/Plugins/Emitters/EmitterContainer.js +12 -0
- package/umd/Plugins/Emitters/EmitterInstance.d.ts +45 -0
- package/umd/Plugins/Emitters/EmitterInstance.js +278 -0
- package/umd/Plugins/Emitters/Emitters.d.ts +25 -0
- package/umd/Plugins/Emitters/Emitters.js +163 -0
- package/umd/Plugins/Emitters/EmittersEngine.d.ts +7 -0
- package/umd/Plugins/Emitters/EmittersEngine.js +12 -0
- package/umd/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
- package/umd/Plugins/Emitters/Enums/EmitterClickMode.js +12 -0
- package/umd/Plugins/Emitters/Enums/EmitterShapeType.d.ts +4 -0
- package/umd/Plugins/Emitters/Enums/EmitterShapeType.js +12 -0
- package/umd/Plugins/Emitters/Enums/index.d.ts +2 -0
- package/umd/Plugins/Emitters/Enums/index.js +24 -0
- package/umd/Plugins/Emitters/IEmitterShape.d.ts +4 -0
- package/umd/Plugins/Emitters/IEmitterShape.js +12 -0
- package/umd/Plugins/Emitters/Options/Classes/Emitter.d.ts +28 -0
- package/umd/Plugins/Emitters/Options/Classes/Emitter.js +74 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +11 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterLife.js +36 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +9 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterRate.js +32 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +11 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterSize.js +35 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +24 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +6 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +5 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +5 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.js +12 -0
- package/umd/Plugins/Emitters/ShapeManager.d.ts +9 -0
- package/umd/Plugins/Emitters/ShapeManager.js +40 -0
- package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +5 -0
- package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.js +42 -0
- package/umd/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +5 -0
- package/umd/Plugins/Emitters/Shapes/Square/SquareShape.js +53 -0
- package/umd/Plugins/Emitters/index.d.ts +3 -0
- package/umd/Plugins/Emitters/index.js +120 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.js +12 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.js +12 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.js +12 -0
- package/umd/Plugins/PolygonMask/Enums/index.d.ts +3 -0
- package/umd/Plugins/PolygonMask/Enums/index.js +25 -0
- package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +24 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.js +76 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +15 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +48 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +11 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +39 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +27 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +39 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +31 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +18 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +4 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.js +12 -0
- package/umd/Plugins/PolygonMask/PolygonMaskInstance.d.ts +38 -0
- package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +396 -0
- package/umd/Plugins/PolygonMask/Types.d.ts +8 -0
- package/umd/Plugins/PolygonMask/Types.js +12 -0
- package/umd/Plugins/PolygonMask/Utils.d.ts +11 -0
- package/umd/Plugins/PolygonMask/Utils.js +134 -0
- package/umd/Plugins/PolygonMask/index.d.ts +2 -0
- package/umd/Plugins/PolygonMask/index.js +67 -0
- package/umd/Plugins/PolygonMask/pathseg.d.ts +0 -0
- package/umd/Plugins/PolygonMask/pathseg.js +1548 -0
- package/umd/Shapes/Circle/CircleDrawer.d.ts +5 -0
- package/umd/Shapes/Circle/CircleDrawer.js +22 -0
- package/umd/Shapes/Circle/index.d.ts +2 -0
- package/umd/Shapes/Circle/index.js +18 -0
- package/umd/Shapes/Image/ImageDrawer.d.ts +18 -0
- package/umd/Shapes/Image/ImageDrawer.js +142 -0
- package/umd/Shapes/Image/Utils.d.ts +28 -0
- package/umd/Shapes/Image/Utils.js +99 -0
- package/umd/Shapes/Image/index.d.ts +2 -0
- package/umd/Shapes/Image/index.js +20 -0
- package/umd/Shapes/Line/LineDrawer.d.ts +5 -0
- package/umd/Shapes/Line/LineDrawer.js +23 -0
- package/umd/Shapes/Line/index.d.ts +2 -0
- package/umd/Shapes/Line/index.js +18 -0
- package/umd/Shapes/Polygon/PolygonDrawer.d.ts +7 -0
- package/umd/Shapes/Polygon/PolygonDrawer.js +36 -0
- package/umd/Shapes/Polygon/PolygonDrawerBase.d.ts +15 -0
- package/umd/Shapes/Polygon/PolygonDrawerBase.js +40 -0
- package/umd/Shapes/Polygon/TriangleDrawer.d.ts +8 -0
- package/umd/Shapes/Polygon/TriangleDrawer.js +35 -0
- package/umd/Shapes/Polygon/index.d.ts +4 -0
- package/umd/Shapes/Polygon/index.js +28 -0
- package/umd/Shapes/Square/SquareDrawer.d.ts +5 -0
- package/umd/Shapes/Square/SquareDrawer.js +23 -0
- package/umd/Shapes/Square/index.d.ts +2 -0
- package/umd/Shapes/Square/index.js +20 -0
- package/umd/Shapes/Star/StarDrawer.d.ts +5 -0
- package/umd/Shapes/Star/StarDrawer.js +34 -0
- package/umd/Shapes/Star/index.d.ts +2 -0
- package/umd/Shapes/Star/index.js +18 -0
- package/umd/Shapes/Text/TextDrawer.d.ts +7 -0
- package/umd/Shapes/Text/TextDrawer.js +75 -0
- package/umd/Shapes/Text/index.d.ts +2 -0
- package/umd/Shapes/Text/index.js +21 -0
- package/umd/Types/ParticlesGroups.d.ts +4 -0
- package/umd/Types/ParticlesGroups.js +12 -0
- package/umd/Types/PathOptions.d.ts +3 -0
- package/umd/Types/PathOptions.js +12 -0
- package/umd/Types/RangeValue.d.ts +2 -0
- package/umd/Types/RangeValue.js +12 -0
- package/umd/Types/RecursivePartial.d.ts +3 -0
- package/umd/Types/RecursivePartial.js +12 -0
- package/umd/Types/ShapeData.d.ts +5 -0
- package/umd/Types/ShapeData.js +12 -0
- package/umd/Types/ShapeDrawerFunctions.d.ts +11 -0
- package/umd/Types/ShapeDrawerFunctions.js +12 -0
- package/umd/Types/SingleOrMultiple.d.ts +1 -0
- package/umd/Types/SingleOrMultiple.js +12 -0
- package/umd/Types/index.d.ts +6 -0
- package/umd/Types/index.js +28 -0
- package/umd/Updaters/Angle/AngleUpdater.d.ts +8 -0
- package/umd/Updaters/Angle/AngleUpdater.js +88 -0
- package/umd/Updaters/Angle/index.d.ts +2 -0
- package/umd/Updaters/Angle/index.js +18 -0
- package/umd/Updaters/Color/ColorUpdater.d.ts +8 -0
- package/umd/Updaters/Color/ColorUpdater.js +77 -0
- package/umd/Updaters/Color/index.d.ts +2 -0
- package/umd/Updaters/Color/index.js +18 -0
- package/umd/Updaters/Life/LifeUpdater.d.ts +8 -0
- package/umd/Updaters/Life/LifeUpdater.js +77 -0
- package/umd/Updaters/Life/index.d.ts +2 -0
- package/umd/Updaters/Life/index.js +18 -0
- package/umd/Updaters/Opacity/OpacityUpdater.d.ts +8 -0
- package/umd/Updaters/Opacity/OpacityUpdater.js +131 -0
- package/umd/Updaters/Opacity/index.d.ts +2 -0
- package/umd/Updaters/Opacity/index.js +18 -0
- package/umd/Updaters/OutModes/IBounceData.d.ts +11 -0
- package/umd/Updaters/OutModes/IBounceData.js +12 -0
- package/umd/Updaters/OutModes/OutOfCanvasUpdater.d.ts +13 -0
- package/umd/Updaters/OutModes/OutOfCanvasUpdater.js +156 -0
- package/umd/Updaters/OutModes/Utils.d.ts +3 -0
- package/umd/Updaters/OutModes/Utils.js +75 -0
- package/umd/Updaters/OutModes/index.d.ts +2 -0
- package/umd/Updaters/OutModes/index.js +18 -0
- package/umd/Updaters/Roll/RollUpdater.d.ts +6 -0
- package/umd/Updaters/Roll/RollUpdater.js +73 -0
- package/umd/Updaters/Roll/index.d.ts +2 -0
- package/umd/Updaters/Roll/index.js +18 -0
- package/umd/Updaters/Size/SizeUpdater.d.ts +6 -0
- package/umd/Updaters/Size/SizeUpdater.js +88 -0
- package/umd/Updaters/Size/index.d.ts +2 -0
- package/umd/Updaters/Size/index.js +18 -0
- package/umd/Updaters/StrokeColor/StrokeColorUpdater.d.ts +8 -0
- package/umd/Updaters/StrokeColor/StrokeColorUpdater.js +94 -0
- package/umd/Updaters/StrokeColor/index.d.ts +2 -0
- package/umd/Updaters/StrokeColor/index.js +18 -0
- package/umd/Updaters/Tilt/TiltUpdater.d.ts +8 -0
- package/umd/Updaters/Tilt/TiltUpdater.js +89 -0
- package/umd/Updaters/Tilt/index.d.ts +2 -0
- package/umd/Updaters/Tilt/index.js +18 -0
- package/umd/Updaters/Wobble/WobbleUpdater.d.ts +14 -0
- package/umd/Updaters/Wobble/WobbleUpdater.js +61 -0
- package/umd/Updaters/Wobble/index.d.ts +2 -0
- package/umd/Updaters/Wobble/index.js +18 -0
- package/umd/Utils/CanvasUtils.d.ts +19 -0
- package/umd/Utils/CanvasUtils.js +297 -0
- package/umd/Utils/ColorUtils.d.ts +26 -0
- package/umd/Utils/ColorUtils.js +486 -0
- package/umd/Utils/NumberUtils.d.ts +23 -0
- package/umd/Utils/NumberUtils.js +138 -0
- package/umd/Utils/Utils.d.ts +38 -0
- package/umd/Utils/Utils.js +279 -0
- package/umd/Utils/index.d.ts +4 -0
- package/umd/Utils/index.js +26 -0
- package/umd/engine.d.ts +26 -0
- package/umd/engine.js +108 -0
- package/umd/full.d.ts +2 -0
- package/umd/full.js +32 -0
- package/umd/index.d.ts +20 -0
- package/umd/index.engine.d.ts +13 -0
- package/umd/index.engine.js +37 -0
- package/umd/index.js +43 -0
- package/umd/index.slim.d.ts +14 -0
- package/umd/index.slim.js +40 -0
- package/umd/pjs.d.ts +14 -0
- package/umd/pjs.js +36 -0
- package/umd/slim.d.ts +2 -0
- package/umd/slim.js +62 -0
|
@@ -1597,20 +1597,20 @@
|
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
|
-
externalInteract(delta) {
|
|
1600
|
+
async externalInteract(delta) {
|
|
1601
1601
|
for (const interactor of this.externalInteractors) {
|
|
1602
1602
|
if (interactor.isEnabled()) {
|
|
1603
|
-
interactor.interact(delta);
|
|
1603
|
+
await interactor.interact(delta);
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
|
-
particlesInteract(particle, delta) {
|
|
1607
|
+
async particlesInteract(particle, delta) {
|
|
1608
1608
|
for (const interactor of this.externalInteractors) {
|
|
1609
1609
|
interactor.reset(particle);
|
|
1610
1610
|
}
|
|
1611
1611
|
for (const interactor of this.particleInteractors) {
|
|
1612
1612
|
if (interactor.isEnabled(particle)) {
|
|
1613
|
-
interactor.interact(particle, delta);
|
|
1613
|
+
await interactor.interact(particle, delta);
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
@@ -3767,10 +3767,10 @@
|
|
|
3767
3767
|
return this.getRadius() ** 2 * Math.PI / 2;
|
|
3768
3768
|
}
|
|
3769
3769
|
getFillColor() {
|
|
3770
|
-
var _a, _b
|
|
3770
|
+
var _a, _b;
|
|
3771
3771
|
const color = (_a = this.bubble.color) !== null && _a !== void 0 ? _a : getHslFromAnimation(this.color);
|
|
3772
3772
|
if (color && this.roll && (this.backColor || this.roll.alter)) {
|
|
3773
|
-
const
|
|
3773
|
+
const backFactor = this.options.roll.mode === "both" ? 2 : 1, backSum = this.options.roll.mode === "horizontal" ? Math.PI / 2 : 0, rolled = Math.floor((((_b = this.roll.angle) !== null && _b !== void 0 ? _b : 0) + backSum) / (Math.PI / backFactor)) % 2;
|
|
3774
3774
|
if (rolled) {
|
|
3775
3775
|
if (this.backColor) {
|
|
3776
3776
|
return this.backColor;
|
|
@@ -4002,10 +4002,10 @@
|
|
|
4002
4002
|
}
|
|
4003
4003
|
container.pathGenerator.init(container);
|
|
4004
4004
|
}
|
|
4005
|
-
redraw() {
|
|
4005
|
+
async redraw() {
|
|
4006
4006
|
this.clear();
|
|
4007
4007
|
this.init();
|
|
4008
|
-
this.draw({
|
|
4008
|
+
await this.draw({
|
|
4009
4009
|
value: 0,
|
|
4010
4010
|
factor: 0
|
|
4011
4011
|
});
|
|
@@ -4030,7 +4030,7 @@
|
|
|
4030
4030
|
remove(particle, group, override) {
|
|
4031
4031
|
this.removeAt(this.array.indexOf(particle), undefined, group, override);
|
|
4032
4032
|
}
|
|
4033
|
-
update(delta) {
|
|
4033
|
+
async update(delta) {
|
|
4034
4034
|
const container = this.container;
|
|
4035
4035
|
const particlesToDelete = [];
|
|
4036
4036
|
container.pathGenerator.update();
|
|
@@ -4064,23 +4064,23 @@
|
|
|
4064
4064
|
for (const particle of particlesToDelete) {
|
|
4065
4065
|
this.remove(particle);
|
|
4066
4066
|
}
|
|
4067
|
-
this.interactionManager.externalInteract(delta);
|
|
4067
|
+
await this.interactionManager.externalInteract(delta);
|
|
4068
4068
|
for (const particle of container.particles.array) {
|
|
4069
4069
|
for (const updater of this.updaters) {
|
|
4070
4070
|
updater.update(particle, delta);
|
|
4071
4071
|
}
|
|
4072
4072
|
if (!particle.destroyed && !particle.spawning) {
|
|
4073
|
-
this.interactionManager.particlesInteract(particle, delta);
|
|
4073
|
+
await this.interactionManager.particlesInteract(particle, delta);
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
4076
|
delete container.canvas.resizeFactor;
|
|
4077
4077
|
}
|
|
4078
|
-
draw(delta) {
|
|
4078
|
+
async draw(delta) {
|
|
4079
4079
|
const container = this.container;
|
|
4080
4080
|
container.canvas.clear();
|
|
4081
4081
|
const canvasSize = this.container.canvas.size;
|
|
4082
4082
|
this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
|
|
4083
|
-
this.update(delta);
|
|
4083
|
+
await this.update(delta);
|
|
4084
4084
|
if (this.needsSort) {
|
|
4085
4085
|
this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
|
|
4086
4086
|
this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
|
|
@@ -4441,12 +4441,12 @@
|
|
|
4441
4441
|
}
|
|
4442
4442
|
draw(force) {
|
|
4443
4443
|
let refreshTime = force;
|
|
4444
|
-
this.drawAnimationFrame = animate()((timestamp => {
|
|
4444
|
+
this.drawAnimationFrame = animate()((async timestamp => {
|
|
4445
4445
|
if (refreshTime) {
|
|
4446
4446
|
this.lastFrameTime = undefined;
|
|
4447
4447
|
refreshTime = false;
|
|
4448
4448
|
}
|
|
4449
|
-
this.drawer.nextFrame(timestamp);
|
|
4449
|
+
await this.drawer.nextFrame(timestamp);
|
|
4450
4450
|
}));
|
|
4451
4451
|
}
|
|
4452
4452
|
getAnimationStatus() {
|
|
@@ -4456,6 +4456,7 @@
|
|
|
4456
4456
|
this.setPath(noiseOrGenerator, init, update);
|
|
4457
4457
|
}
|
|
4458
4458
|
setPath(pathOrGenerator, init, update) {
|
|
4459
|
+
var _a, _b, _c;
|
|
4459
4460
|
if (!pathOrGenerator) {
|
|
4460
4461
|
return;
|
|
4461
4462
|
}
|
|
@@ -4468,15 +4469,11 @@
|
|
|
4468
4469
|
this.pathGenerator.update = update;
|
|
4469
4470
|
}
|
|
4470
4471
|
} else {
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
}
|
|
4477
|
-
if (pathOrGenerator.update) {
|
|
4478
|
-
this.pathGenerator.update = pathOrGenerator.update;
|
|
4479
|
-
}
|
|
4472
|
+
const oldGenerator = this.pathGenerator;
|
|
4473
|
+
this.pathGenerator = pathOrGenerator;
|
|
4474
|
+
(_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
|
|
4475
|
+
(_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
|
|
4476
|
+
(_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
|
|
4480
4477
|
}
|
|
4481
4478
|
}
|
|
4482
4479
|
destroy() {
|
|
@@ -4690,18 +4687,7 @@
|
|
|
4690
4687
|
}
|
|
4691
4688
|
const pathOptions = this.actualOptions.particles.move.path;
|
|
4692
4689
|
if (pathOptions.generator) {
|
|
4693
|
-
|
|
4694
|
-
if (customGenerator) {
|
|
4695
|
-
if (customGenerator.init) {
|
|
4696
|
-
this.pathGenerator.init = customGenerator.init;
|
|
4697
|
-
}
|
|
4698
|
-
if (customGenerator.generate) {
|
|
4699
|
-
this.pathGenerator.generate = customGenerator.generate;
|
|
4700
|
-
}
|
|
4701
|
-
if (customGenerator.update) {
|
|
4702
|
-
this.pathGenerator.update = customGenerator.update;
|
|
4703
|
-
}
|
|
4704
|
-
}
|
|
4690
|
+
this.setPath(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
|
|
4705
4691
|
}
|
|
4706
4692
|
this.particles.init();
|
|
4707
4693
|
this.particles.setDensity();
|
|
@@ -4913,7 +4899,7 @@
|
|
|
4913
4899
|
super(container);
|
|
4914
4900
|
this.delay = 0;
|
|
4915
4901
|
}
|
|
4916
|
-
interact(delta) {
|
|
4902
|
+
async interact(delta) {
|
|
4917
4903
|
var _a, _b, _c, _d;
|
|
4918
4904
|
if (!this.container.retina.reduceFactor) {
|
|
4919
4905
|
return;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function o(e,t){return e===t||t instanceof Array&&t.indexOf(e)>-1}e.r(t),e.d(t,{loadExternalTrailInteraction:function(){return a}});class i{}i.generatedAttribute="generated",i.randomColorValue="random",i.midColorValue="mid",i.touchEndEvent="touchend",i.mouseDownEvent="mousedown",i.mouseUpEvent="mouseup",i.mouseMoveEvent="mousemove",i.touchStartEvent="touchstart",i.touchMoveEvent="touchmove",i.mouseLeaveEvent="mouseleave",i.mouseOutEvent="mouseout",i.touchCancelEvent="touchcancel",i.resizeEvent="resize",i.visibilityChangeEvent="visibilitychange",i.noPolygonDataLoaded="No polygon data loaded.",i.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;new WeakMap;class n extends class{constructor(e){this.container=e,this.type=0}}{constructor(e){super(e),this.delay=0}interact(e){var t,o,i,n;if(!this.container.retina.reduceFactor)return;const a=this.container,r=a.actualOptions.interactivity.modes.trail,s=1e3*r.delay/this.container.retina.reduceFactor;if(this.delay<s&&(this.delay+=e.value),this.delay<s)return;let u=!0;r.pauseOnStop&&(a.interactivity.mouse.position===this.lastPosition||(null===(t=a.interactivity.mouse.position)||void 0===t?void 0:t.x)===(null===(o=this.lastPosition)||void 0===o?void 0:o.x)&&(null===(i=a.interactivity.mouse.position)||void 0===i?void 0:i.y)===(null===(n=this.lastPosition)||void 0===n?void 0:n.y))&&(u=!1),a.interactivity.mouse.position?this.lastPosition={x:a.interactivity.mouse.position.x,y:a.interactivity.mouse.position.y}:delete this.lastPosition,u&&a.particles.push(r.quantity,a.interactivity.mouse,r.particles),this.delay-=s}isEnabled(){const e=this.container,t=e.actualOptions,i=e.interactivity.mouse,n=t.interactivity.events;return i.clicking&&i.inside&&!!i.position&&o("trail",n.onClick.mode)||i.inside&&!!i.position&&o("trail",n.onHover.mode)}reset(){}}async function a(e){await e.addInteractor("externalTrail",(e=>new n(e)))}return t}()}));
|
|
1
|
+
/*! tsParticles v1.41.3 by Matteo Bruni */
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function o(e,t){return e===t||t instanceof Array&&t.indexOf(e)>-1}e.r(t),e.d(t,{loadExternalTrailInteraction:function(){return a}});class i{}i.generatedAttribute="generated",i.randomColorValue="random",i.midColorValue="mid",i.touchEndEvent="touchend",i.mouseDownEvent="mousedown",i.mouseUpEvent="mouseup",i.mouseMoveEvent="mousemove",i.touchStartEvent="touchstart",i.touchMoveEvent="touchmove",i.mouseLeaveEvent="mouseleave",i.mouseOutEvent="mouseout",i.touchCancelEvent="touchcancel",i.resizeEvent="resize",i.visibilityChangeEvent="visibilitychange",i.noPolygonDataLoaded="No polygon data loaded.",i.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;new WeakMap;class n extends class{constructor(e){this.container=e,this.type=0}}{constructor(e){super(e),this.delay=0}async interact(e){var t,o,i,n;if(!this.container.retina.reduceFactor)return;const a=this.container,r=a.actualOptions.interactivity.modes.trail,s=1e3*r.delay/this.container.retina.reduceFactor;if(this.delay<s&&(this.delay+=e.value),this.delay<s)return;let u=!0;r.pauseOnStop&&(a.interactivity.mouse.position===this.lastPosition||(null===(t=a.interactivity.mouse.position)||void 0===t?void 0:t.x)===(null===(o=this.lastPosition)||void 0===o?void 0:o.x)&&(null===(i=a.interactivity.mouse.position)||void 0===i?void 0:i.y)===(null===(n=this.lastPosition)||void 0===n?void 0:n.y))&&(u=!1),a.interactivity.mouse.position?this.lastPosition={x:a.interactivity.mouse.position.x,y:a.interactivity.mouse.position.y}:delete this.lastPosition,u&&a.particles.push(r.quantity,a.interactivity.mouse,r.particles),this.delay-=s}isEnabled(){const e=this.container,t=e.actualOptions,i=e.interactivity.mouse,n=t.interactivity.events;return i.clicking&&i.inside&&!!i.position&&o("trail",n.onClick.mode)||i.inside&&!!i.position&&o("trail",n.onHover.mode)}reset(){}}async function a(e){await e.addInteractor("externalTrail",(e=>new n(e)))}return t}()}));
|
|
@@ -1591,20 +1591,20 @@
|
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
externalInteract(delta) {
|
|
1594
|
+
async externalInteract(delta) {
|
|
1595
1595
|
for (const interactor of this.externalInteractors) {
|
|
1596
1596
|
if (interactor.isEnabled()) {
|
|
1597
|
-
interactor.interact(delta);
|
|
1597
|
+
await interactor.interact(delta);
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
particlesInteract(particle, delta) {
|
|
1601
|
+
async particlesInteract(particle, delta) {
|
|
1602
1602
|
for (const interactor of this.externalInteractors) {
|
|
1603
1603
|
interactor.reset(particle);
|
|
1604
1604
|
}
|
|
1605
1605
|
for (const interactor of this.particleInteractors) {
|
|
1606
1606
|
if (interactor.isEnabled(particle)) {
|
|
1607
|
-
interactor.interact(particle, delta);
|
|
1607
|
+
await interactor.interact(particle, delta);
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
@@ -3767,10 +3767,10 @@
|
|
|
3767
3767
|
return this.getRadius() ** 2 * Math.PI / 2;
|
|
3768
3768
|
}
|
|
3769
3769
|
getFillColor() {
|
|
3770
|
-
var _a, _b
|
|
3770
|
+
var _a, _b;
|
|
3771
3771
|
const color = (_a = this.bubble.color) !== null && _a !== void 0 ? _a : getHslFromAnimation(this.color);
|
|
3772
3772
|
if (color && this.roll && (this.backColor || this.roll.alter)) {
|
|
3773
|
-
const
|
|
3773
|
+
const backFactor = this.options.roll.mode === "both" ? 2 : 1, backSum = this.options.roll.mode === "horizontal" ? Math.PI / 2 : 0, rolled = Math.floor((((_b = this.roll.angle) !== null && _b !== void 0 ? _b : 0) + backSum) / (Math.PI / backFactor)) % 2;
|
|
3774
3774
|
if (rolled) {
|
|
3775
3775
|
if (this.backColor) {
|
|
3776
3776
|
return this.backColor;
|
|
@@ -4002,10 +4002,10 @@
|
|
|
4002
4002
|
}
|
|
4003
4003
|
container.pathGenerator.init(container);
|
|
4004
4004
|
}
|
|
4005
|
-
redraw() {
|
|
4005
|
+
async redraw() {
|
|
4006
4006
|
this.clear();
|
|
4007
4007
|
this.init();
|
|
4008
|
-
this.draw({
|
|
4008
|
+
await this.draw({
|
|
4009
4009
|
value: 0,
|
|
4010
4010
|
factor: 0
|
|
4011
4011
|
});
|
|
@@ -4030,7 +4030,7 @@
|
|
|
4030
4030
|
remove(particle, group, override) {
|
|
4031
4031
|
this.removeAt(this.array.indexOf(particle), undefined, group, override);
|
|
4032
4032
|
}
|
|
4033
|
-
update(delta) {
|
|
4033
|
+
async update(delta) {
|
|
4034
4034
|
const container = this.container;
|
|
4035
4035
|
const particlesToDelete = [];
|
|
4036
4036
|
container.pathGenerator.update();
|
|
@@ -4064,23 +4064,23 @@
|
|
|
4064
4064
|
for (const particle of particlesToDelete) {
|
|
4065
4065
|
this.remove(particle);
|
|
4066
4066
|
}
|
|
4067
|
-
this.interactionManager.externalInteract(delta);
|
|
4067
|
+
await this.interactionManager.externalInteract(delta);
|
|
4068
4068
|
for (const particle of container.particles.array) {
|
|
4069
4069
|
for (const updater of this.updaters) {
|
|
4070
4070
|
updater.update(particle, delta);
|
|
4071
4071
|
}
|
|
4072
4072
|
if (!particle.destroyed && !particle.spawning) {
|
|
4073
|
-
this.interactionManager.particlesInteract(particle, delta);
|
|
4073
|
+
await this.interactionManager.particlesInteract(particle, delta);
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
4076
|
delete container.canvas.resizeFactor;
|
|
4077
4077
|
}
|
|
4078
|
-
draw(delta) {
|
|
4078
|
+
async draw(delta) {
|
|
4079
4079
|
const container = this.container;
|
|
4080
4080
|
container.canvas.clear();
|
|
4081
4081
|
const canvasSize = this.container.canvas.size;
|
|
4082
4082
|
this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
|
|
4083
|
-
this.update(delta);
|
|
4083
|
+
await this.update(delta);
|
|
4084
4084
|
if (this.needsSort) {
|
|
4085
4085
|
this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
|
|
4086
4086
|
this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
|
|
@@ -4441,12 +4441,12 @@
|
|
|
4441
4441
|
}
|
|
4442
4442
|
draw(force) {
|
|
4443
4443
|
let refreshTime = force;
|
|
4444
|
-
this.drawAnimationFrame = animate()((timestamp => {
|
|
4444
|
+
this.drawAnimationFrame = animate()((async timestamp => {
|
|
4445
4445
|
if (refreshTime) {
|
|
4446
4446
|
this.lastFrameTime = undefined;
|
|
4447
4447
|
refreshTime = false;
|
|
4448
4448
|
}
|
|
4449
|
-
this.drawer.nextFrame(timestamp);
|
|
4449
|
+
await this.drawer.nextFrame(timestamp);
|
|
4450
4450
|
}));
|
|
4451
4451
|
}
|
|
4452
4452
|
getAnimationStatus() {
|
|
@@ -4456,6 +4456,7 @@
|
|
|
4456
4456
|
this.setPath(noiseOrGenerator, init, update);
|
|
4457
4457
|
}
|
|
4458
4458
|
setPath(pathOrGenerator, init, update) {
|
|
4459
|
+
var _a, _b, _c;
|
|
4459
4460
|
if (!pathOrGenerator) {
|
|
4460
4461
|
return;
|
|
4461
4462
|
}
|
|
@@ -4468,15 +4469,11 @@
|
|
|
4468
4469
|
this.pathGenerator.update = update;
|
|
4469
4470
|
}
|
|
4470
4471
|
} else {
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
}
|
|
4477
|
-
if (pathOrGenerator.update) {
|
|
4478
|
-
this.pathGenerator.update = pathOrGenerator.update;
|
|
4479
|
-
}
|
|
4472
|
+
const oldGenerator = this.pathGenerator;
|
|
4473
|
+
this.pathGenerator = pathOrGenerator;
|
|
4474
|
+
(_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
|
|
4475
|
+
(_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
|
|
4476
|
+
(_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
|
|
4480
4477
|
}
|
|
4481
4478
|
}
|
|
4482
4479
|
destroy() {
|
|
@@ -4690,18 +4687,7 @@
|
|
|
4690
4687
|
}
|
|
4691
4688
|
const pathOptions = this.actualOptions.particles.move.path;
|
|
4692
4689
|
if (pathOptions.generator) {
|
|
4693
|
-
|
|
4694
|
-
if (customGenerator) {
|
|
4695
|
-
if (customGenerator.init) {
|
|
4696
|
-
this.pathGenerator.init = customGenerator.init;
|
|
4697
|
-
}
|
|
4698
|
-
if (customGenerator.generate) {
|
|
4699
|
-
this.pathGenerator.generate = customGenerator.generate;
|
|
4700
|
-
}
|
|
4701
|
-
if (customGenerator.update) {
|
|
4702
|
-
this.pathGenerator.update = customGenerator.update;
|
|
4703
|
-
}
|
|
4704
|
-
}
|
|
4690
|
+
this.setPath(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
|
|
4705
4691
|
}
|
|
4706
4692
|
this.particles.init();
|
|
4707
4693
|
this.particles.setDensity();
|
|
@@ -4912,7 +4898,7 @@
|
|
|
4912
4898
|
constructor(container) {
|
|
4913
4899
|
super(container);
|
|
4914
4900
|
}
|
|
4915
|
-
interact(p1) {
|
|
4901
|
+
async interact(p1) {
|
|
4916
4902
|
var _a;
|
|
4917
4903
|
const container = this.container, distance = (_a = p1.retina.attractDistance) !== null && _a !== void 0 ? _a : container.retina.attractDistance, pos1 = p1.getPosition(), query = container.particles.quadTree.queryCircle(pos1, distance);
|
|
4918
4904
|
for (const p2 of query) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function o(e,t){const o=e.x-t.x,n=e.y-t.y;return{dx:o,dy:n,distance:Math.sqrt(o*o+n*n)}}e.r(t),e.d(t,{loadParticlesAttractInteraction:function(){return r}});class n{}n.generatedAttribute="generated",n.randomColorValue="random",n.midColorValue="mid",n.touchEndEvent="touchend",n.mouseDownEvent="mousedown",n.mouseUpEvent="mouseup",n.mouseMoveEvent="mousemove",n.touchStartEvent="touchstart",n.touchMoveEvent="touchmove",n.mouseLeaveEvent="mouseleave",n.mouseOutEvent="mouseout",n.touchCancelEvent="touchcancel",n.resizeEvent="resize",n.visibilityChangeEvent="visibilitychange",n.noPolygonDataLoaded="No polygon data loaded.",n.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;new WeakMap;class a extends class{constructor(e){this.container=e,this.type=1}}{constructor(e){super(e)}interact(e){var t;const n=this.container,a=null!==(t=e.retina.attractDistance)&&void 0!==t?t:n.retina.attractDistance,r=e.getPosition(),i=n.particles.quadTree.queryCircle(r,a);for(const t of i){if(e===t||!t.options.move.attract.enable||t.destroyed||t.spawning)continue;const n=t.getPosition(),{dx:a,dy:i}=o(r,n),c=e.options.move.attract.rotate,s=a/(1e3*c.x),u=i/(1e3*c.y),l=t.size.value/e.size.value,d=1/l;e.velocity.x-=s*l,e.velocity.y-=u*l,t.velocity.x+=s*d,t.velocity.y+=u*d}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function r(e){await e.addInteractor("particlesAttract",(e=>new a(e)))}return t}()}));
|
|
1
|
+
/*! tsParticles v1.41.3 by Matteo Bruni */
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function o(e,t){const o=e.x-t.x,n=e.y-t.y;return{dx:o,dy:n,distance:Math.sqrt(o*o+n*n)}}e.r(t),e.d(t,{loadParticlesAttractInteraction:function(){return r}});class n{}n.generatedAttribute="generated",n.randomColorValue="random",n.midColorValue="mid",n.touchEndEvent="touchend",n.mouseDownEvent="mousedown",n.mouseUpEvent="mouseup",n.mouseMoveEvent="mousemove",n.touchStartEvent="touchstart",n.touchMoveEvent="touchmove",n.mouseLeaveEvent="mouseleave",n.mouseOutEvent="mouseout",n.touchCancelEvent="touchcancel",n.resizeEvent="resize",n.visibilityChangeEvent="visibilitychange",n.noPolygonDataLoaded="No polygon data loaded.",n.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;new WeakMap;class a extends class{constructor(e){this.container=e,this.type=1}}{constructor(e){super(e)}async interact(e){var t;const n=this.container,a=null!==(t=e.retina.attractDistance)&&void 0!==t?t:n.retina.attractDistance,r=e.getPosition(),i=n.particles.quadTree.queryCircle(r,a);for(const t of i){if(e===t||!t.options.move.attract.enable||t.destroyed||t.spawning)continue;const n=t.getPosition(),{dx:a,dy:i}=o(r,n),c=e.options.move.attract.rotate,s=a/(1e3*c.x),u=i/(1e3*c.y),l=t.size.value/e.size.value,d=1/l;e.velocity.x-=s*l,e.velocity.y-=u*l,t.velocity.x+=s*d,t.velocity.y+=u*d}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function r(e){await e.addInteractor("particlesAttract",(e=>new a(e)))}return t}()}));
|
|
@@ -544,20 +544,20 @@
|
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
externalInteract(delta) {
|
|
547
|
+
async externalInteract(delta) {
|
|
548
548
|
for (const interactor of this.externalInteractors) {
|
|
549
549
|
if (interactor.isEnabled()) {
|
|
550
|
-
interactor.interact(delta);
|
|
550
|
+
await interactor.interact(delta);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
particlesInteract(particle, delta) {
|
|
554
|
+
async particlesInteract(particle, delta) {
|
|
555
555
|
for (const interactor of this.externalInteractors) {
|
|
556
556
|
interactor.reset(particle);
|
|
557
557
|
}
|
|
558
558
|
for (const interactor of this.particleInteractors) {
|
|
559
559
|
if (interactor.isEnabled(particle)) {
|
|
560
|
-
interactor.interact(particle, delta);
|
|
560
|
+
await interactor.interact(particle, delta);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
}
|
|
@@ -2811,10 +2811,10 @@
|
|
|
2811
2811
|
return this.getRadius() ** 2 * Math.PI / 2;
|
|
2812
2812
|
}
|
|
2813
2813
|
getFillColor() {
|
|
2814
|
-
var _a, _b
|
|
2814
|
+
var _a, _b;
|
|
2815
2815
|
const color = (_a = this.bubble.color) !== null && _a !== void 0 ? _a : getHslFromAnimation(this.color);
|
|
2816
2816
|
if (color && this.roll && (this.backColor || this.roll.alter)) {
|
|
2817
|
-
const
|
|
2817
|
+
const backFactor = this.options.roll.mode === "both" ? 2 : 1, backSum = this.options.roll.mode === "horizontal" ? Math.PI / 2 : 0, rolled = Math.floor((((_b = this.roll.angle) !== null && _b !== void 0 ? _b : 0) + backSum) / (Math.PI / backFactor)) % 2;
|
|
2818
2818
|
if (rolled) {
|
|
2819
2819
|
if (this.backColor) {
|
|
2820
2820
|
return this.backColor;
|
|
@@ -3046,10 +3046,10 @@
|
|
|
3046
3046
|
}
|
|
3047
3047
|
container.pathGenerator.init(container);
|
|
3048
3048
|
}
|
|
3049
|
-
redraw() {
|
|
3049
|
+
async redraw() {
|
|
3050
3050
|
this.clear();
|
|
3051
3051
|
this.init();
|
|
3052
|
-
this.draw({
|
|
3052
|
+
await this.draw({
|
|
3053
3053
|
value: 0,
|
|
3054
3054
|
factor: 0
|
|
3055
3055
|
});
|
|
@@ -3074,7 +3074,7 @@
|
|
|
3074
3074
|
remove(particle, group, override) {
|
|
3075
3075
|
this.removeAt(this.array.indexOf(particle), undefined, group, override);
|
|
3076
3076
|
}
|
|
3077
|
-
update(delta) {
|
|
3077
|
+
async update(delta) {
|
|
3078
3078
|
const container = this.container;
|
|
3079
3079
|
const particlesToDelete = [];
|
|
3080
3080
|
container.pathGenerator.update();
|
|
@@ -3108,23 +3108,23 @@
|
|
|
3108
3108
|
for (const particle of particlesToDelete) {
|
|
3109
3109
|
this.remove(particle);
|
|
3110
3110
|
}
|
|
3111
|
-
this.interactionManager.externalInteract(delta);
|
|
3111
|
+
await this.interactionManager.externalInteract(delta);
|
|
3112
3112
|
for (const particle of container.particles.array) {
|
|
3113
3113
|
for (const updater of this.updaters) {
|
|
3114
3114
|
updater.update(particle, delta);
|
|
3115
3115
|
}
|
|
3116
3116
|
if (!particle.destroyed && !particle.spawning) {
|
|
3117
|
-
this.interactionManager.particlesInteract(particle, delta);
|
|
3117
|
+
await this.interactionManager.particlesInteract(particle, delta);
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
3120
|
delete container.canvas.resizeFactor;
|
|
3121
3121
|
}
|
|
3122
|
-
draw(delta) {
|
|
3122
|
+
async draw(delta) {
|
|
3123
3123
|
const container = this.container;
|
|
3124
3124
|
container.canvas.clear();
|
|
3125
3125
|
const canvasSize = this.container.canvas.size;
|
|
3126
3126
|
this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
|
|
3127
|
-
this.update(delta);
|
|
3127
|
+
await this.update(delta);
|
|
3128
3128
|
if (this.needsSort) {
|
|
3129
3129
|
this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
|
|
3130
3130
|
this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
|
|
@@ -3485,12 +3485,12 @@
|
|
|
3485
3485
|
}
|
|
3486
3486
|
draw(force) {
|
|
3487
3487
|
let refreshTime = force;
|
|
3488
|
-
this.drawAnimationFrame = animate()((timestamp => {
|
|
3488
|
+
this.drawAnimationFrame = animate()((async timestamp => {
|
|
3489
3489
|
if (refreshTime) {
|
|
3490
3490
|
this.lastFrameTime = undefined;
|
|
3491
3491
|
refreshTime = false;
|
|
3492
3492
|
}
|
|
3493
|
-
this.drawer.nextFrame(timestamp);
|
|
3493
|
+
await this.drawer.nextFrame(timestamp);
|
|
3494
3494
|
}));
|
|
3495
3495
|
}
|
|
3496
3496
|
getAnimationStatus() {
|
|
@@ -3500,6 +3500,7 @@
|
|
|
3500
3500
|
this.setPath(noiseOrGenerator, init, update);
|
|
3501
3501
|
}
|
|
3502
3502
|
setPath(pathOrGenerator, init, update) {
|
|
3503
|
+
var _a, _b, _c;
|
|
3503
3504
|
if (!pathOrGenerator) {
|
|
3504
3505
|
return;
|
|
3505
3506
|
}
|
|
@@ -3512,15 +3513,11 @@
|
|
|
3512
3513
|
this.pathGenerator.update = update;
|
|
3513
3514
|
}
|
|
3514
3515
|
} else {
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
}
|
|
3521
|
-
if (pathOrGenerator.update) {
|
|
3522
|
-
this.pathGenerator.update = pathOrGenerator.update;
|
|
3523
|
-
}
|
|
3516
|
+
const oldGenerator = this.pathGenerator;
|
|
3517
|
+
this.pathGenerator = pathOrGenerator;
|
|
3518
|
+
(_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
|
|
3519
|
+
(_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
|
|
3520
|
+
(_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
|
|
3524
3521
|
}
|
|
3525
3522
|
}
|
|
3526
3523
|
destroy() {
|
|
@@ -3734,18 +3731,7 @@
|
|
|
3734
3731
|
}
|
|
3735
3732
|
const pathOptions = this.actualOptions.particles.move.path;
|
|
3736
3733
|
if (pathOptions.generator) {
|
|
3737
|
-
|
|
3738
|
-
if (customGenerator) {
|
|
3739
|
-
if (customGenerator.init) {
|
|
3740
|
-
this.pathGenerator.init = customGenerator.init;
|
|
3741
|
-
}
|
|
3742
|
-
if (customGenerator.generate) {
|
|
3743
|
-
this.pathGenerator.generate = customGenerator.generate;
|
|
3744
|
-
}
|
|
3745
|
-
if (customGenerator.update) {
|
|
3746
|
-
this.pathGenerator.update = customGenerator.update;
|
|
3747
|
-
}
|
|
3748
|
-
}
|
|
3734
|
+
this.setPath(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
|
|
3749
3735
|
}
|
|
3750
3736
|
this.particles.init();
|
|
3751
3737
|
this.particles.setDensity();
|
|
@@ -5026,7 +5012,7 @@
|
|
|
5026
5012
|
return particle.options.collisions.enable;
|
|
5027
5013
|
}
|
|
5028
5014
|
reset() {}
|
|
5029
|
-
interact(p1) {
|
|
5015
|
+
async interact(p1) {
|
|
5030
5016
|
const container = this.container;
|
|
5031
5017
|
const pos1 = p1.getPosition();
|
|
5032
5018
|
const radius1 = p1.getRadius();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(window,(function(){return function(){"use strict";var t={d:function(e,o){for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{loadParticlesCollisionsInteraction:function(){return g}});class o{}o.generatedAttribute="generated",o.randomColorValue="random",o.midColorValue="mid",o.touchEndEvent="touchend",o.mouseDownEvent="mousedown",o.mouseUpEvent="mouseup",o.mouseMoveEvent="mousemove",o.touchStartEvent="touchstart",o.touchMoveEvent="touchmove",o.mouseLeaveEvent="mouseleave",o.mouseOutEvent="mouseout",o.touchCancelEvent="touchcancel",o.resizeEvent="resize",o.visibilityChangeEvent="visibilitychange",o.noPolygonDataLoaded="No polygon data loaded.",o.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;class i{constructor(t,e){let o,i;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[o,i]=[e.x,e.y]}else[o,i]=[t,e];this.x=o,this.y=i}static clone(t){return i.create(t.x,t.y)}static create(t,e){return new i(t,e)}static get origin(){return i.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return i.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return i.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return i.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return i.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return i.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return i.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;function n(t,e,o){return Math.min(Math.max(t,e),o)}function s(t){return"number"==typeof t?t:function(t){const e=r(t);let o=a(t);return e===o&&(o=0),Math.random()*(e-o)+o}(t)}function a(t){return"number"==typeof t?t:t.min}function r(t){return"number"==typeof t?t:t.max}function u(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const o=a(t),i=r(t);return void 0!==e?{min:Math.min(o,e),max:Math.max(i,e)}:u(o,i)}function c(t){const e=t.random,{enable:o,minimumValue:i}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return s(o?u(t.value,i):t.value)}function d(t,e){const o=t.x-e.x,i=t.y-e.y;return{dx:o,dy:i,distance:Math.sqrt(o*o+i*i)}}function l(t,e,o,n){return i.create(t.x*(o-n)/(o+n)+2*e.x*n/(o+n),t.y)}function y(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:i.create(c(t.options.bounce.horizontal),c(t.options.bounce.vertical))}}function h(t,e){!function(t,e){const{x:o,y:i}=t.velocity.sub(e.velocity),[n,s]=[t.position,e.position],{dx:a,dy:r}=d(s,n);if(o*a+i*r>=0){const o=-Math.atan2(r,a),i=t.mass,n=e.mass,s=t.velocity.rotate(o),u=e.velocity.rotate(o),c=l(s,u,i,n),d=l(u,s,i,n),y=c.rotate(-o),h=d.rotate(-o);t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y,e.velocity.x=h.x*e.factor.x,e.velocity.y=h.y*e.factor.y}}(y(t),y(e))}new WeakMap;class f extends class{constructor(t){this.container=t,this.type=1}}{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}interact(t){const e=this.container,o=t.getPosition(),i=t.getRadius(),n=e.particles.quadTree.queryCircle(o,2*i);for(const e of n){if(t===e||!e.options.collisions.enable||t.options.collisions.mode!==e.options.collisions.mode||e.destroyed||e.spawning)continue;const n=e.getPosition();if(Math.round(o.z)!==Math.round(n.z))continue;d(o,n).distance<=i+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":h(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||h(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e.destroy():t.destroy())}(t,e)}}absorb(t,e){const o=this.container,i=o.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==e.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===e.getRadius())e.destroy();else if(void 0!==t.getRadius()&&void 0!==e.getRadius())if(t.getRadius()>=e.getRadius()){const s=n(t.getRadius()/e.getRadius(),0,e.getRadius())*i;t.size.value+=s,e.size.value-=s,e.getRadius()<=o.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const s=n(e.getRadius()/t.getRadius(),0,t.getRadius())*i;t.size.value-=s,e.size.value+=s,t.getRadius()<=o.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}async function g(t){await t.addInteractor("particlesCollisions",(t=>new f(t)))}return e}()}));
|
|
1
|
+
/*! tsParticles v1.41.3 by Matteo Bruni */
|
|
2
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(window,(function(){return function(){"use strict";var t={d:function(e,o){for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{loadParticlesCollisionsInteraction:function(){return g}});class o{}o.generatedAttribute="generated",o.randomColorValue="random",o.midColorValue="mid",o.touchEndEvent="touchend",o.mouseDownEvent="mousedown",o.mouseUpEvent="mouseup",o.mouseMoveEvent="mousemove",o.touchStartEvent="touchstart",o.touchMoveEvent="touchmove",o.mouseLeaveEvent="mouseleave",o.mouseOutEvent="mouseout",o.touchCancelEvent="touchcancel",o.resizeEvent="resize",o.visibilityChangeEvent="visibilitychange",o.noPolygonDataLoaded="No polygon data loaded.",o.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;class i{constructor(t,e){let o,i;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[o,i]=[e.x,e.y]}else[o,i]=[t,e];this.x=o,this.y=i}static clone(t){return i.create(t.x,t.y)}static create(t,e){return new i(t,e)}static get origin(){return i.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return i.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return i.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return i.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return i.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return i.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return i.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;function n(t,e,o){return Math.min(Math.max(t,e),o)}function s(t){return"number"==typeof t?t:function(t){const e=r(t);let o=a(t);return e===o&&(o=0),Math.random()*(e-o)+o}(t)}function a(t){return"number"==typeof t?t:t.min}function r(t){return"number"==typeof t?t:t.max}function u(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const o=a(t),i=r(t);return void 0!==e?{min:Math.min(o,e),max:Math.max(i,e)}:u(o,i)}function c(t){const e=t.random,{enable:o,minimumValue:i}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return s(o?u(t.value,i):t.value)}function d(t,e){const o=t.x-e.x,i=t.y-e.y;return{dx:o,dy:i,distance:Math.sqrt(o*o+i*i)}}function l(t,e,o,n){return i.create(t.x*(o-n)/(o+n)+2*e.x*n/(o+n),t.y)}function y(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:i.create(c(t.options.bounce.horizontal),c(t.options.bounce.vertical))}}function h(t,e){!function(t,e){const{x:o,y:i}=t.velocity.sub(e.velocity),[n,s]=[t.position,e.position],{dx:a,dy:r}=d(s,n);if(o*a+i*r>=0){const o=-Math.atan2(r,a),i=t.mass,n=e.mass,s=t.velocity.rotate(o),u=e.velocity.rotate(o),c=l(s,u,i,n),d=l(u,s,i,n),y=c.rotate(-o),h=d.rotate(-o);t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y,e.velocity.x=h.x*e.factor.x,e.velocity.y=h.y*e.factor.y}}(y(t),y(e))}new WeakMap;class f extends class{constructor(t){this.container=t,this.type=1}}{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}async interact(t){const e=this.container,o=t.getPosition(),i=t.getRadius(),n=e.particles.quadTree.queryCircle(o,2*i);for(const e of n){if(t===e||!e.options.collisions.enable||t.options.collisions.mode!==e.options.collisions.mode||e.destroyed||e.spawning)continue;const n=e.getPosition();if(Math.round(o.z)!==Math.round(n.z))continue;d(o,n).distance<=i+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":h(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||h(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e.destroy():t.destroy())}(t,e)}}absorb(t,e){const o=this.container,i=o.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==e.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===e.getRadius())e.destroy();else if(void 0!==t.getRadius()&&void 0!==e.getRadius())if(t.getRadius()>=e.getRadius()){const s=n(t.getRadius()/e.getRadius(),0,e.getRadius())*i;t.size.value+=s,e.size.value-=s,e.getRadius()<=o.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const s=n(e.getRadius()/t.getRadius(),0,t.getRadius())*i;t.size.value-=s,e.size.value+=s,t.getRadius()<=o.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}async function g(t){await t.addInteractor("particlesCollisions",(t=>new f(t)))}return e}()}));
|