tsparticles 1.39.3 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Core/Container.d.ts +4 -2
- package/Core/Container.js +33 -32
- package/Core/Loader.d.ts +12 -9
- package/Core/Loader.js +35 -19
- package/Core/Particle.d.ts +3 -1
- package/Core/Particle.js +17 -2
- package/Core/Particles.d.ts +3 -1
- package/Core/Particles.js +20 -5
- package/Core/Utils/InteractionManager.d.ts +3 -1
- package/Core/Utils/InteractionManager.js +17 -3
- package/Core/Utils/Plugins.d.ts +29 -15
- package/Core/Utils/Plugins.js +58 -46
- package/Options/Classes/Options.d.ts +2 -1
- package/Options/Classes/Options.js +13 -6
- package/Plugins/Emitters/EmitterInstance.d.ts +6 -3
- package/Plugins/Emitters/EmitterInstance.js +46 -16
- package/Plugins/Emitters/Emitters.d.ts +3 -1
- package/Plugins/Emitters/Emitters.js +17 -2
- package/Plugins/Emitters/{EmittersMain.d.ts → EmittersEngine.d.ts} +3 -1
- package/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
- package/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
- package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +1 -0
- package/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/Plugins/Emitters/ShapeManager.js +16 -4
- package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/Plugins/Emitters/index.d.ts +3 -3
- package/Plugins/Emitters/index.js +25 -6
- package/README.md +1 -1
- package/browser/Core/Container.d.ts +5 -2
- package/browser/Core/Container.js +35 -33
- package/browser/Core/Loader.d.ts +12 -9
- package/browser/Core/Loader.js +35 -19
- package/browser/Core/Particle.d.ts +3 -1
- package/browser/Core/Particle.js +18 -3
- package/browser/Core/Particles.d.ts +3 -1
- package/browser/Core/Particles.js +21 -6
- package/browser/Core/Utils/InteractionManager.d.ts +3 -1
- package/browser/Core/Utils/InteractionManager.js +17 -3
- package/browser/Core/Utils/Plugins.d.ts +29 -15
- package/browser/Core/Utils/Plugins.js +58 -46
- package/browser/Options/Classes/Options.d.ts +2 -1
- package/browser/Options/Classes/Options.js +13 -6
- package/browser/Plugins/Emitters/EmitterInstance.d.ts +6 -3
- package/browser/Plugins/Emitters/EmitterInstance.js +46 -16
- package/browser/Plugins/Emitters/Emitters.d.ts +3 -1
- package/browser/Plugins/Emitters/Emitters.js +17 -2
- package/{esm/Plugins/Emitters/EmittersMain.d.ts → browser/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
- package/browser/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/browser/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +4 -0
- package/browser/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/browser/Plugins/Emitters/ShapeManager.js +16 -4
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/browser/Plugins/Emitters/index.d.ts +3 -3
- package/browser/Plugins/Emitters/index.js +25 -6
- package/browser/engine.d.ts +5 -1
- package/browser/engine.js +22 -17
- package/engine.d.ts +3 -0
- package/engine.js +20 -16
- package/esm/Core/Container.d.ts +4 -2
- package/esm/Core/Container.js +34 -33
- package/esm/Core/Loader.d.ts +12 -9
- package/esm/Core/Loader.js +35 -19
- package/esm/Core/Particle.d.ts +3 -1
- package/esm/Core/Particle.js +18 -3
- package/esm/Core/Particles.d.ts +3 -1
- package/esm/Core/Particles.js +21 -6
- package/esm/Core/Utils/InteractionManager.d.ts +3 -1
- package/esm/Core/Utils/InteractionManager.js +17 -3
- package/esm/Core/Utils/Plugins.d.ts +29 -15
- package/esm/Core/Utils/Plugins.js +58 -46
- package/esm/Options/Classes/Options.d.ts +2 -1
- package/esm/Options/Classes/Options.js +13 -6
- package/esm/Plugins/Emitters/EmitterInstance.d.ts +6 -3
- package/esm/Plugins/Emitters/EmitterInstance.js +46 -16
- package/esm/Plugins/Emitters/Emitters.d.ts +3 -1
- package/esm/Plugins/Emitters/Emitters.js +17 -2
- package/{browser/Plugins/Emitters/EmittersMain.d.ts → esm/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
- package/esm/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/esm/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
- package/esm/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +1 -0
- package/esm/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/esm/Plugins/Emitters/ShapeManager.js +16 -4
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/esm/Plugins/Emitters/index.d.ts +3 -3
- package/esm/Plugins/Emitters/index.js +25 -6
- package/esm/engine.d.ts +3 -0
- package/esm/engine.js +20 -16
- package/package.json +1 -2
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/tsparticles.engine.js +227 -134
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +205 -116
- package/tsparticles.interaction.external.attract.min.js +2 -2
- package/tsparticles.interaction.external.bounce.js +205 -116
- package/tsparticles.interaction.external.bounce.min.js +2 -2
- package/tsparticles.interaction.external.bubble.js +205 -116
- package/tsparticles.interaction.external.bubble.min.js +2 -2
- package/tsparticles.interaction.external.connect.js +205 -116
- package/tsparticles.interaction.external.connect.min.js +2 -2
- package/tsparticles.interaction.external.grab.js +205 -116
- package/tsparticles.interaction.external.grab.min.js +2 -2
- package/tsparticles.interaction.external.repulse.js +205 -116
- package/tsparticles.interaction.external.repulse.min.js +2 -2
- package/tsparticles.interaction.external.trail.js +205 -116
- package/tsparticles.interaction.external.trail.min.js +2 -2
- package/tsparticles.interaction.particles.attract.js +205 -116
- package/tsparticles.interaction.particles.attract.min.js +2 -2
- package/tsparticles.interaction.particles.collisions.js +205 -116
- package/tsparticles.interaction.particles.collisions.min.js +2 -2
- package/tsparticles.interaction.particles.links.js +205 -116
- package/tsparticles.interaction.particles.links.min.js +2 -2
- package/tsparticles.js +347 -172
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +205 -116
- package/tsparticles.plugins.absorbers.min.js +2 -2
- package/tsparticles.plugins.emitters.js +330 -159
- package/tsparticles.plugins.emitters.min.js +2 -2
- package/tsparticles.plugins.polygonMask.js +205 -116
- package/tsparticles.plugins.polygonMask.min.js +2 -2
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.js +208 -119
- package/tsparticles.shape.image.min.js +2 -2
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.js +205 -116
- package/tsparticles.shape.text.min.js +2 -2
- package/tsparticles.slim.js +227 -134
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +205 -116
- package/tsparticles.updater.angle.min.js +2 -2
- package/tsparticles.updater.color.js +205 -116
- package/tsparticles.updater.color.min.js +2 -2
- package/tsparticles.updater.life.js +205 -116
- package/tsparticles.updater.life.min.js +2 -2
- package/tsparticles.updater.opacity.js +205 -116
- package/tsparticles.updater.opacity.min.js +2 -2
- package/tsparticles.updater.outModes.js +205 -116
- package/tsparticles.updater.outModes.min.js +2 -2
- package/tsparticles.updater.roll.js +205 -116
- package/tsparticles.updater.roll.min.js +2 -2
- package/tsparticles.updater.size.js +205 -116
- package/tsparticles.updater.size.min.js +2 -2
- package/tsparticles.updater.strokeColor.js +205 -116
- package/tsparticles.updater.strokeColor.min.js +2 -2
- package/tsparticles.updater.tilt.js +205 -116
- package/tsparticles.updater.tilt.min.js +2 -2
- package/tsparticles.updater.wobble.js +205 -116
- package/tsparticles.updater.wobble.min.js +2 -2
- 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 +129 -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 +86 -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
package/tsparticles.js
CHANGED
|
@@ -2189,15 +2189,30 @@
|
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
|
+
var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
2193
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2194
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2195
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2196
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
2197
|
+
value;
|
|
2198
|
+
};
|
|
2199
|
+
var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
2200
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2201
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2202
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2203
|
+
};
|
|
2204
|
+
var _InteractionManager_engine;
|
|
2192
2205
|
class InteractionManager {
|
|
2193
|
-
constructor(container) {
|
|
2206
|
+
constructor(engine, container) {
|
|
2194
2207
|
this.container = container;
|
|
2208
|
+
_InteractionManager_engine.set(this, void 0);
|
|
2209
|
+
__classPrivateFieldSet(this, _InteractionManager_engine, engine, "f");
|
|
2195
2210
|
this.externalInteractors = [];
|
|
2196
2211
|
this.particleInteractors = [];
|
|
2197
2212
|
this.init();
|
|
2198
2213
|
}
|
|
2199
2214
|
init() {
|
|
2200
|
-
const interactors =
|
|
2215
|
+
const interactors = __classPrivateFieldGet(this, _InteractionManager_engine, "f").plugins.getInteractors(this.container, true);
|
|
2201
2216
|
this.externalInteractors = [];
|
|
2202
2217
|
this.particleInteractors = [];
|
|
2203
2218
|
for (const interactor of interactors) {
|
|
@@ -2230,6 +2245,7 @@
|
|
|
2230
2245
|
}
|
|
2231
2246
|
}
|
|
2232
2247
|
}
|
|
2248
|
+
_InteractionManager_engine = new WeakMap;
|
|
2233
2249
|
class ParticlesInteractorBase {
|
|
2234
2250
|
constructor(container) {
|
|
2235
2251
|
this.container = container;
|
|
@@ -2409,26 +2425,38 @@
|
|
|
2409
2425
|
return proximityFactor / slowFactor;
|
|
2410
2426
|
}
|
|
2411
2427
|
}
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2428
|
+
var Plugins_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
2429
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2430
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2431
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2432
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
2433
|
+
value;
|
|
2434
|
+
};
|
|
2435
|
+
var _Plugins_engine;
|
|
2420
2436
|
class Plugins {
|
|
2421
|
-
|
|
2422
|
-
|
|
2437
|
+
constructor(engine) {
|
|
2438
|
+
_Plugins_engine.set(this, void 0);
|
|
2439
|
+
Plugins_classPrivateFieldSet(this, _Plugins_engine, engine, "f");
|
|
2440
|
+
this.plugins = [];
|
|
2441
|
+
this.interactorsInitializers = new Map;
|
|
2442
|
+
this.updatersInitializers = new Map;
|
|
2443
|
+
this.interactors = new Map;
|
|
2444
|
+
this.updaters = new Map;
|
|
2445
|
+
this.presets = new Map;
|
|
2446
|
+
this.drawers = new Map;
|
|
2447
|
+
this.pathGenerators = new Map;
|
|
2423
2448
|
}
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2449
|
+
getPlugin(plugin) {
|
|
2450
|
+
return this.plugins.find((t => t.id === plugin));
|
|
2451
|
+
}
|
|
2452
|
+
addPlugin(plugin) {
|
|
2453
|
+
if (!this.getPlugin(plugin.id)) {
|
|
2454
|
+
this.plugins.push(plugin);
|
|
2427
2455
|
}
|
|
2428
2456
|
}
|
|
2429
|
-
|
|
2457
|
+
getAvailablePlugins(container) {
|
|
2430
2458
|
const res = new Map;
|
|
2431
|
-
for (const plugin of plugins) {
|
|
2459
|
+
for (const plugin of this.plugins) {
|
|
2432
2460
|
if (!plugin.needsPlugin(container.actualOptions)) {
|
|
2433
2461
|
continue;
|
|
2434
2462
|
}
|
|
@@ -2436,61 +2464,62 @@
|
|
|
2436
2464
|
}
|
|
2437
2465
|
return res;
|
|
2438
2466
|
}
|
|
2439
|
-
|
|
2440
|
-
for (const plugin of plugins) {
|
|
2467
|
+
loadOptions(options, sourceOptions) {
|
|
2468
|
+
for (const plugin of this.plugins) {
|
|
2441
2469
|
plugin.loadOptions(options, sourceOptions);
|
|
2442
2470
|
}
|
|
2443
2471
|
}
|
|
2444
|
-
|
|
2445
|
-
return presets.get(preset);
|
|
2472
|
+
getPreset(preset) {
|
|
2473
|
+
return this.presets.get(preset);
|
|
2446
2474
|
}
|
|
2447
|
-
|
|
2448
|
-
if (override || !
|
|
2449
|
-
presets.set(presetKey, options);
|
|
2475
|
+
addPreset(presetKey, options, override = false) {
|
|
2476
|
+
if (override || !this.getPreset(presetKey)) {
|
|
2477
|
+
this.presets.set(presetKey, options);
|
|
2450
2478
|
}
|
|
2451
2479
|
}
|
|
2452
|
-
|
|
2453
|
-
if (!
|
|
2454
|
-
drawers.set(type, drawer);
|
|
2480
|
+
addShapeDrawer(type, drawer) {
|
|
2481
|
+
if (!this.getShapeDrawer(type)) {
|
|
2482
|
+
this.drawers.set(type, drawer);
|
|
2455
2483
|
}
|
|
2456
2484
|
}
|
|
2457
|
-
|
|
2458
|
-
return drawers.get(type);
|
|
2485
|
+
getShapeDrawer(type) {
|
|
2486
|
+
return this.drawers.get(type);
|
|
2459
2487
|
}
|
|
2460
|
-
|
|
2461
|
-
return drawers.keys();
|
|
2488
|
+
getSupportedShapes() {
|
|
2489
|
+
return this.drawers.keys();
|
|
2462
2490
|
}
|
|
2463
|
-
|
|
2464
|
-
return pathGenerators.get(type);
|
|
2491
|
+
getPathGenerator(type) {
|
|
2492
|
+
return this.pathGenerators.get(type);
|
|
2465
2493
|
}
|
|
2466
|
-
|
|
2467
|
-
if (!
|
|
2468
|
-
pathGenerators.set(type, pathGenerator);
|
|
2494
|
+
addPathGenerator(type, pathGenerator) {
|
|
2495
|
+
if (!this.getPathGenerator(type)) {
|
|
2496
|
+
this.pathGenerators.set(type, pathGenerator);
|
|
2469
2497
|
}
|
|
2470
2498
|
}
|
|
2471
|
-
|
|
2472
|
-
let res = interactors.get(container);
|
|
2499
|
+
getInteractors(container, force = false) {
|
|
2500
|
+
let res = this.interactors.get(container);
|
|
2473
2501
|
if (!res || force) {
|
|
2474
|
-
res = [ ...interactorsInitializers.values() ].map((t => t(container)));
|
|
2475
|
-
interactors.set(container, res);
|
|
2502
|
+
res = [ ...this.interactorsInitializers.values() ].map((t => t(container)));
|
|
2503
|
+
this.interactors.set(container, res);
|
|
2476
2504
|
}
|
|
2477
2505
|
return res;
|
|
2478
2506
|
}
|
|
2479
|
-
|
|
2480
|
-
interactorsInitializers.set(name, initInteractor);
|
|
2507
|
+
addInteractor(name, initInteractor) {
|
|
2508
|
+
this.interactorsInitializers.set(name, initInteractor);
|
|
2481
2509
|
}
|
|
2482
|
-
|
|
2483
|
-
let res = updaters.get(container);
|
|
2510
|
+
getUpdaters(container, force = false) {
|
|
2511
|
+
let res = this.updaters.get(container);
|
|
2484
2512
|
if (!res || force) {
|
|
2485
|
-
res = [ ...updatersInitializers.values() ].map((t => t(container)));
|
|
2486
|
-
updaters.set(container, res);
|
|
2513
|
+
res = [ ...this.updatersInitializers.values() ].map((t => t(container)));
|
|
2514
|
+
this.updaters.set(container, res);
|
|
2487
2515
|
}
|
|
2488
2516
|
return res;
|
|
2489
2517
|
}
|
|
2490
|
-
|
|
2491
|
-
updatersInitializers.set(name, initUpdater);
|
|
2518
|
+
addParticleUpdater(name, initUpdater) {
|
|
2519
|
+
this.updatersInitializers.set(name, initUpdater);
|
|
2492
2520
|
}
|
|
2493
2521
|
}
|
|
2522
|
+
_Plugins_engine = new WeakMap;
|
|
2494
2523
|
class Point {
|
|
2495
2524
|
constructor(position, particle) {
|
|
2496
2525
|
this.position = position;
|
|
@@ -5472,15 +5501,24 @@
|
|
|
5472
5501
|
}
|
|
5473
5502
|
}
|
|
5474
5503
|
}
|
|
5475
|
-
var
|
|
5504
|
+
var Options_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
5505
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5506
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5507
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5508
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
5509
|
+
value;
|
|
5510
|
+
};
|
|
5511
|
+
var Options_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
5476
5512
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5477
5513
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5478
5514
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5479
5515
|
};
|
|
5480
|
-
var _Options_instances, _Options_findDefaultTheme;
|
|
5516
|
+
var _Options_instances, _Options_engine, _Options_findDefaultTheme;
|
|
5481
5517
|
class Options {
|
|
5482
|
-
constructor() {
|
|
5518
|
+
constructor(engine) {
|
|
5483
5519
|
_Options_instances.add(this);
|
|
5520
|
+
_Options_engine.set(this, void 0);
|
|
5521
|
+
Options_classPrivateFieldSet(this, _Options_engine, engine, "f");
|
|
5484
5522
|
this.autoPlay = true;
|
|
5485
5523
|
this.background = new Background;
|
|
5486
5524
|
this.backgroundMask = new BackgroundMask;
|
|
@@ -5573,7 +5611,7 @@
|
|
|
5573
5611
|
this.motion.load(data.motion);
|
|
5574
5612
|
this.particles.load(data.particles);
|
|
5575
5613
|
this.style = deepExtend(this.style, data.style);
|
|
5576
|
-
|
|
5614
|
+
Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.loadOptions(this, data);
|
|
5577
5615
|
if (data.responsive !== undefined) {
|
|
5578
5616
|
for (const responsive of data.responsive) {
|
|
5579
5617
|
const optResponsive = new Responsive;
|
|
@@ -5589,8 +5627,8 @@
|
|
|
5589
5627
|
this.themes.push(optTheme);
|
|
5590
5628
|
}
|
|
5591
5629
|
}
|
|
5592
|
-
this.defaultDarkTheme = (_d =
|
|
5593
|
-
this.defaultLightTheme = (_e =
|
|
5630
|
+
this.defaultDarkTheme = (_d = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
|
|
5631
|
+
this.defaultLightTheme = (_e = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
|
|
5594
5632
|
}
|
|
5595
5633
|
setTheme(name) {
|
|
5596
5634
|
if (name) {
|
|
@@ -5599,7 +5637,7 @@
|
|
|
5599
5637
|
this.load(chosenTheme.options);
|
|
5600
5638
|
}
|
|
5601
5639
|
} else {
|
|
5602
|
-
const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme =
|
|
5640
|
+
const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, clientDarkMode ? "dark" : "light");
|
|
5603
5641
|
if (defaultTheme) {
|
|
5604
5642
|
this.load(defaultTheme.options);
|
|
5605
5643
|
}
|
|
@@ -5612,13 +5650,26 @@
|
|
|
5612
5650
|
return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
|
|
5613
5651
|
}
|
|
5614
5652
|
importPreset(preset) {
|
|
5615
|
-
this.load(
|
|
5653
|
+
this.load(Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.getPreset(preset));
|
|
5616
5654
|
}
|
|
5617
5655
|
}
|
|
5618
|
-
_Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
5656
|
+
_Options_engine = new WeakMap, _Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
5619
5657
|
var _a;
|
|
5620
5658
|
return (_a = this.themes.find((theme => theme.default.value && theme.default.mode === mode))) !== null && _a !== void 0 ? _a : this.themes.find((theme => theme.default.value && theme.default.mode === "any"));
|
|
5621
5659
|
};
|
|
5660
|
+
var Particle_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
5661
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5662
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5663
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5664
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
5665
|
+
value;
|
|
5666
|
+
};
|
|
5667
|
+
var Particle_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
5668
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5669
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5670
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5671
|
+
};
|
|
5672
|
+
var _Particle_engine;
|
|
5622
5673
|
const fixOutMode = data => {
|
|
5623
5674
|
if (isInArray(data.outMode, data.checkModes) || isInArray(data.outMode, data.checkModes)) {
|
|
5624
5675
|
if (data.coord > data.maxCoord - data.radius * 2) {
|
|
@@ -5629,11 +5680,13 @@
|
|
|
5629
5680
|
}
|
|
5630
5681
|
};
|
|
5631
5682
|
class Particle {
|
|
5632
|
-
constructor(id, container, position, overrideOptions, group) {
|
|
5683
|
+
constructor(engine, id, container, position, overrideOptions, group) {
|
|
5633
5684
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5634
5685
|
this.id = id;
|
|
5635
5686
|
this.container = container;
|
|
5636
5687
|
this.group = group;
|
|
5688
|
+
_Particle_engine.set(this, void 0);
|
|
5689
|
+
Particle_classPrivateFieldSet(this, _Particle_engine, engine, "f");
|
|
5637
5690
|
this.fill = true;
|
|
5638
5691
|
this.close = true;
|
|
5639
5692
|
this.lastPathTime = 0;
|
|
@@ -5727,7 +5780,7 @@
|
|
|
5727
5780
|
this.sides = 24;
|
|
5728
5781
|
let drawer = container.drawers.get(this.shape);
|
|
5729
5782
|
if (!drawer) {
|
|
5730
|
-
drawer =
|
|
5783
|
+
drawer = Particle_classPrivateFieldGet(this, _Particle_engine, "f").plugins.getShapeDrawer(this.shape);
|
|
5731
5784
|
if (drawer) {
|
|
5732
5785
|
container.drawers.set(this.shape, drawer);
|
|
5733
5786
|
}
|
|
@@ -5967,9 +6020,25 @@
|
|
|
5967
6020
|
return life;
|
|
5968
6021
|
}
|
|
5969
6022
|
}
|
|
6023
|
+
_Particle_engine = new WeakMap;
|
|
6024
|
+
var Particles_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
6025
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
6026
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
6027
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6028
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
6029
|
+
value;
|
|
6030
|
+
};
|
|
6031
|
+
var Particles_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
6032
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
6033
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6034
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6035
|
+
};
|
|
6036
|
+
var _Particles_engine;
|
|
5970
6037
|
class Particles {
|
|
5971
|
-
constructor(container) {
|
|
6038
|
+
constructor(engine, container) {
|
|
5972
6039
|
this.container = container;
|
|
6040
|
+
_Particles_engine.set(this, void 0);
|
|
6041
|
+
Particles_classPrivateFieldSet(this, _Particles_engine, engine, "f");
|
|
5973
6042
|
this.nextId = 0;
|
|
5974
6043
|
this.array = [];
|
|
5975
6044
|
this.zArray = [];
|
|
@@ -5981,11 +6050,11 @@
|
|
|
5981
6050
|
links: new Map,
|
|
5982
6051
|
triangles: new Map
|
|
5983
6052
|
};
|
|
5984
|
-
this.interactionManager = new InteractionManager(container);
|
|
6053
|
+
this.interactionManager = new InteractionManager(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), container);
|
|
5985
6054
|
const canvasSize = this.container.canvas.size;
|
|
5986
6055
|
this.linksColors = new Map;
|
|
5987
6056
|
this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
|
|
5988
|
-
this.updaters =
|
|
6057
|
+
this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
|
|
5989
6058
|
}
|
|
5990
6059
|
get count() {
|
|
5991
6060
|
return this.array.length;
|
|
@@ -5999,7 +6068,7 @@
|
|
|
5999
6068
|
this.freqs.links = new Map;
|
|
6000
6069
|
this.freqs.triangles = new Map;
|
|
6001
6070
|
let handled = false;
|
|
6002
|
-
this.updaters =
|
|
6071
|
+
this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
|
|
6003
6072
|
this.interactionManager.init();
|
|
6004
6073
|
for (const [, plugin] of container.plugins) {
|
|
6005
6074
|
if (plugin.particlesInitialization !== undefined) {
|
|
@@ -6246,7 +6315,7 @@
|
|
|
6246
6315
|
}
|
|
6247
6316
|
pushParticle(position, overrideOptions, group, initializer) {
|
|
6248
6317
|
try {
|
|
6249
|
-
const particle = new Particle(this.nextId, this.container, position, overrideOptions, group);
|
|
6318
|
+
const particle = new Particle(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), this.nextId, this.container, position, overrideOptions, group);
|
|
6250
6319
|
let canAdd = true;
|
|
6251
6320
|
if (initializer) {
|
|
6252
6321
|
canAdd = initializer(particle);
|
|
@@ -6264,6 +6333,7 @@
|
|
|
6264
6333
|
}
|
|
6265
6334
|
}
|
|
6266
6335
|
}
|
|
6336
|
+
_Particles_engine = new WeakMap;
|
|
6267
6337
|
class Retina {
|
|
6268
6338
|
constructor(container) {
|
|
6269
6339
|
this.container = container;
|
|
@@ -6351,9 +6421,24 @@
|
|
|
6351
6421
|
}
|
|
6352
6422
|
}
|
|
6353
6423
|
}
|
|
6424
|
+
var Container_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
6425
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
6426
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
6427
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6428
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
6429
|
+
value;
|
|
6430
|
+
};
|
|
6431
|
+
var Container_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
6432
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
6433
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6434
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6435
|
+
};
|
|
6436
|
+
var _Container_engine;
|
|
6354
6437
|
class Container {
|
|
6355
|
-
constructor(id, sourceOptions, ...presets) {
|
|
6438
|
+
constructor(engine, id, sourceOptions, ...presets) {
|
|
6356
6439
|
this.id = id;
|
|
6440
|
+
_Container_engine.set(this, void 0);
|
|
6441
|
+
Container_classPrivateFieldSet(this, _Container_engine, engine, "f");
|
|
6357
6442
|
this.fpsLimit = 120;
|
|
6358
6443
|
this.duration = 0;
|
|
6359
6444
|
this.lifeTime = 0;
|
|
@@ -6368,7 +6453,7 @@
|
|
|
6368
6453
|
this._initialSourceOptions = sourceOptions;
|
|
6369
6454
|
this.retina = new Retina(this);
|
|
6370
6455
|
this.canvas = new Canvas(this);
|
|
6371
|
-
this.particles = new Particles(this);
|
|
6456
|
+
this.particles = new Particles(Container_classPrivateFieldGet(this, _Container_engine, "f"), this);
|
|
6372
6457
|
this.drawer = new FrameManager(this);
|
|
6373
6458
|
this.presets = presets;
|
|
6374
6459
|
this.pathGenerator = {
|
|
@@ -6397,8 +6482,8 @@
|
|
|
6397
6482
|
this.plugins = new Map;
|
|
6398
6483
|
this.drawers = new Map;
|
|
6399
6484
|
this.density = 1;
|
|
6400
|
-
this._options = new Options;
|
|
6401
|
-
this.actualOptions = new Options;
|
|
6485
|
+
this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
6486
|
+
this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
6402
6487
|
this.eventListeners = new EventListeners(this);
|
|
6403
6488
|
if (typeof IntersectionObserver !== "undefined" && IntersectionObserver) {
|
|
6404
6489
|
this.intersectionObserver = new IntersectionObserver((entries => this.intersectionManager(entries)));
|
|
@@ -6462,6 +6547,7 @@
|
|
|
6462
6547
|
this.setPath(noiseOrGenerator, init, update);
|
|
6463
6548
|
}
|
|
6464
6549
|
setPath(pathOrGenerator, init, update) {
|
|
6550
|
+
var _a, _b, _c;
|
|
6465
6551
|
if (!pathOrGenerator) {
|
|
6466
6552
|
return;
|
|
6467
6553
|
}
|
|
@@ -6474,15 +6560,11 @@
|
|
|
6474
6560
|
this.pathGenerator.update = update;
|
|
6475
6561
|
}
|
|
6476
6562
|
} else {
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
}
|
|
6483
|
-
if (pathOrGenerator.update) {
|
|
6484
|
-
this.pathGenerator.update = pathOrGenerator.update;
|
|
6485
|
-
}
|
|
6563
|
+
const oldGenerator = this.pathGenerator;
|
|
6564
|
+
this.pathGenerator = pathOrGenerator;
|
|
6565
|
+
(_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
|
|
6566
|
+
(_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
|
|
6567
|
+
(_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
|
|
6486
6568
|
}
|
|
6487
6569
|
}
|
|
6488
6570
|
destroy() {
|
|
@@ -6513,7 +6595,7 @@
|
|
|
6513
6595
|
return this.start();
|
|
6514
6596
|
}
|
|
6515
6597
|
reset() {
|
|
6516
|
-
this._options = new Options;
|
|
6598
|
+
this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
6517
6599
|
return this.refresh();
|
|
6518
6600
|
}
|
|
6519
6601
|
stop() {
|
|
@@ -6654,20 +6736,20 @@
|
|
|
6654
6736
|
return false;
|
|
6655
6737
|
}
|
|
6656
6738
|
async init() {
|
|
6657
|
-
this._options = new Options;
|
|
6739
|
+
this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
6658
6740
|
for (const preset of this.presets) {
|
|
6659
|
-
this._options.load(
|
|
6741
|
+
this._options.load(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPreset(preset));
|
|
6660
6742
|
}
|
|
6661
|
-
const shapes =
|
|
6743
|
+
const shapes = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getSupportedShapes();
|
|
6662
6744
|
for (const type of shapes) {
|
|
6663
|
-
const drawer =
|
|
6745
|
+
const drawer = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getShapeDrawer(type);
|
|
6664
6746
|
if (drawer) {
|
|
6665
6747
|
this.drawers.set(type, drawer);
|
|
6666
6748
|
}
|
|
6667
6749
|
}
|
|
6668
6750
|
this._options.load(this._initialSourceOptions);
|
|
6669
6751
|
this._options.load(this._sourceOptions);
|
|
6670
|
-
this.actualOptions = new Options;
|
|
6752
|
+
this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
6671
6753
|
this.actualOptions.load(this._options);
|
|
6672
6754
|
this.retina.init();
|
|
6673
6755
|
this.canvas.init();
|
|
@@ -6678,7 +6760,7 @@
|
|
|
6678
6760
|
this.duration = getRangeValue(this.actualOptions.duration);
|
|
6679
6761
|
this.lifeTime = 0;
|
|
6680
6762
|
this.fpsLimit = this.actualOptions.fpsLimit > 0 ? this.actualOptions.fpsLimit : 120;
|
|
6681
|
-
const availablePlugins =
|
|
6763
|
+
const availablePlugins = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getAvailablePlugins(this);
|
|
6682
6764
|
for (const [id, plugin] of availablePlugins) {
|
|
6683
6765
|
this.plugins.set(id, plugin);
|
|
6684
6766
|
}
|
|
@@ -6696,18 +6778,7 @@
|
|
|
6696
6778
|
}
|
|
6697
6779
|
const pathOptions = this.actualOptions.particles.move.path;
|
|
6698
6780
|
if (pathOptions.generator) {
|
|
6699
|
-
|
|
6700
|
-
if (customGenerator) {
|
|
6701
|
-
if (customGenerator.init) {
|
|
6702
|
-
this.pathGenerator.init = customGenerator.init;
|
|
6703
|
-
}
|
|
6704
|
-
if (customGenerator.generate) {
|
|
6705
|
-
this.pathGenerator.generate = customGenerator.generate;
|
|
6706
|
-
}
|
|
6707
|
-
if (customGenerator.update) {
|
|
6708
|
-
this.pathGenerator.update = customGenerator.update;
|
|
6709
|
-
}
|
|
6710
|
-
}
|
|
6781
|
+
this.setPath(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
|
|
6711
6782
|
}
|
|
6712
6783
|
this.particles.init();
|
|
6713
6784
|
this.particles.setDensity();
|
|
@@ -6733,24 +6804,41 @@
|
|
|
6733
6804
|
}
|
|
6734
6805
|
}
|
|
6735
6806
|
}
|
|
6736
|
-
|
|
6807
|
+
_Container_engine = new WeakMap;
|
|
6808
|
+
var Loader_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
6809
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
6810
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
6811
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6812
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
6813
|
+
value;
|
|
6814
|
+
};
|
|
6815
|
+
var Loader_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
6816
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
6817
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6818
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6819
|
+
};
|
|
6820
|
+
var _Loader_engine;
|
|
6737
6821
|
function fetchError(statusCode) {
|
|
6738
6822
|
console.error(`Error tsParticles - fetch status: ${statusCode}`);
|
|
6739
6823
|
console.error("Error tsParticles - File config not found");
|
|
6740
6824
|
}
|
|
6741
6825
|
class Loader {
|
|
6742
|
-
|
|
6743
|
-
|
|
6826
|
+
constructor(engine) {
|
|
6827
|
+
_Loader_engine.set(this, void 0);
|
|
6828
|
+
Loader_classPrivateFieldSet(this, _Loader_engine, engine, "f");
|
|
6829
|
+
}
|
|
6830
|
+
dom() {
|
|
6831
|
+
return Loader_classPrivateFieldGet(this, _Loader_engine, "f").domArray;
|
|
6744
6832
|
}
|
|
6745
|
-
|
|
6746
|
-
const dom =
|
|
6833
|
+
domItem(index) {
|
|
6834
|
+
const dom = this.dom();
|
|
6747
6835
|
const item = dom[index];
|
|
6748
6836
|
if (item && !item.destroyed) {
|
|
6749
6837
|
return item;
|
|
6750
6838
|
}
|
|
6751
6839
|
dom.splice(index, 1);
|
|
6752
6840
|
}
|
|
6753
|
-
|
|
6841
|
+
async loadOptions(params) {
|
|
6754
6842
|
var _a, _b, _c;
|
|
6755
6843
|
const tagId = (_a = params.tagId) !== null && _a !== void 0 ? _a : `tsparticles${Math.floor(Math.random() * 1e4)}`;
|
|
6756
6844
|
const {options: options, index: index} = params;
|
|
@@ -6761,10 +6849,10 @@
|
|
|
6761
6849
|
(_c = document.querySelector("body")) === null || _c === void 0 ? void 0 : _c.append(domContainer);
|
|
6762
6850
|
}
|
|
6763
6851
|
const currentOptions = options instanceof Array ? itemFromArray(options, index) : options;
|
|
6764
|
-
const dom =
|
|
6852
|
+
const dom = this.dom();
|
|
6765
6853
|
const oldIndex = dom.findIndex((v => v.id === tagId));
|
|
6766
6854
|
if (oldIndex >= 0) {
|
|
6767
|
-
const old =
|
|
6855
|
+
const old = this.domItem(oldIndex);
|
|
6768
6856
|
if (old && !old.destroyed) {
|
|
6769
6857
|
old.destroy();
|
|
6770
6858
|
dom.splice(oldIndex, 1);
|
|
@@ -6787,7 +6875,7 @@
|
|
|
6787
6875
|
domContainer.appendChild(canvasEl);
|
|
6788
6876
|
}
|
|
6789
6877
|
}
|
|
6790
|
-
const newItem = new Container(tagId, currentOptions);
|
|
6878
|
+
const newItem = new Container(Loader_classPrivateFieldGet(this, _Loader_engine, "f"), tagId, currentOptions);
|
|
6791
6879
|
if (oldIndex >= 0) {
|
|
6792
6880
|
dom.splice(oldIndex, 0, newItem);
|
|
6793
6881
|
} else {
|
|
@@ -6797,7 +6885,7 @@
|
|
|
6797
6885
|
await newItem.start();
|
|
6798
6886
|
return newItem;
|
|
6799
6887
|
}
|
|
6800
|
-
|
|
6888
|
+
async loadRemoteOptions(params) {
|
|
6801
6889
|
const {url: jsonUrl, index: index} = params;
|
|
6802
6890
|
const url = jsonUrl instanceof Array ? itemFromArray(jsonUrl, index) : jsonUrl;
|
|
6803
6891
|
if (!url) {
|
|
@@ -6809,14 +6897,14 @@
|
|
|
6809
6897
|
return;
|
|
6810
6898
|
}
|
|
6811
6899
|
const data = await response.json();
|
|
6812
|
-
return
|
|
6900
|
+
return this.loadOptions({
|
|
6813
6901
|
tagId: params.tagId,
|
|
6814
6902
|
element: params.element,
|
|
6815
6903
|
index: index,
|
|
6816
6904
|
options: data
|
|
6817
6905
|
});
|
|
6818
6906
|
}
|
|
6819
|
-
|
|
6907
|
+
load(tagId, options, index) {
|
|
6820
6908
|
const params = {
|
|
6821
6909
|
index: index
|
|
6822
6910
|
};
|
|
@@ -6832,7 +6920,7 @@
|
|
|
6832
6920
|
}
|
|
6833
6921
|
return this.loadOptions(params);
|
|
6834
6922
|
}
|
|
6835
|
-
|
|
6923
|
+
async set(id, domContainer, options, index) {
|
|
6836
6924
|
const params = {
|
|
6837
6925
|
index: index
|
|
6838
6926
|
};
|
|
@@ -6853,7 +6941,7 @@
|
|
|
6853
6941
|
}
|
|
6854
6942
|
return this.loadOptions(params);
|
|
6855
6943
|
}
|
|
6856
|
-
|
|
6944
|
+
async loadJSON(tagId, jsonUrl, index) {
|
|
6857
6945
|
let url, id;
|
|
6858
6946
|
if (typeof jsonUrl === "number" || jsonUrl === undefined) {
|
|
6859
6947
|
url = tagId;
|
|
@@ -6861,13 +6949,13 @@
|
|
|
6861
6949
|
id = tagId;
|
|
6862
6950
|
url = jsonUrl;
|
|
6863
6951
|
}
|
|
6864
|
-
return
|
|
6952
|
+
return this.loadRemoteOptions({
|
|
6865
6953
|
tagId: id,
|
|
6866
6954
|
url: url,
|
|
6867
6955
|
index: index
|
|
6868
6956
|
});
|
|
6869
6957
|
}
|
|
6870
|
-
|
|
6958
|
+
async setJSON(id, domContainer, jsonUrl, index) {
|
|
6871
6959
|
let url, newId, newIndex, element;
|
|
6872
6960
|
if (id instanceof HTMLElement) {
|
|
6873
6961
|
element = id;
|
|
@@ -6879,15 +6967,15 @@
|
|
|
6879
6967
|
url = jsonUrl;
|
|
6880
6968
|
newIndex = index;
|
|
6881
6969
|
}
|
|
6882
|
-
return
|
|
6970
|
+
return this.loadRemoteOptions({
|
|
6883
6971
|
tagId: newId,
|
|
6884
6972
|
url: url,
|
|
6885
6973
|
index: newIndex,
|
|
6886
6974
|
element: element
|
|
6887
6975
|
});
|
|
6888
6976
|
}
|
|
6889
|
-
|
|
6890
|
-
const dom =
|
|
6977
|
+
setOnClickHandler(callback) {
|
|
6978
|
+
const dom = this.dom();
|
|
6891
6979
|
if (dom.length === 0) {
|
|
6892
6980
|
throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");
|
|
6893
6981
|
}
|
|
@@ -6896,7 +6984,8 @@
|
|
|
6896
6984
|
}
|
|
6897
6985
|
}
|
|
6898
6986
|
}
|
|
6899
|
-
|
|
6987
|
+
_Loader_engine = new WeakMap;
|
|
6988
|
+
var engine_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
6900
6989
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
6901
6990
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
6902
6991
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
@@ -6908,40 +6997,44 @@
|
|
|
6908
6997
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6909
6998
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6910
6999
|
};
|
|
6911
|
-
var _Engine_initialized;
|
|
7000
|
+
var _Engine_initialized, _Engine_loader;
|
|
6912
7001
|
class Engine {
|
|
6913
7002
|
constructor() {
|
|
6914
7003
|
_Engine_initialized.set(this, void 0);
|
|
6915
|
-
|
|
7004
|
+
_Engine_loader.set(this, void 0);
|
|
7005
|
+
engine_classPrivateFieldSet(this, _Engine_initialized, false, "f");
|
|
7006
|
+
this.domArray = [];
|
|
7007
|
+
engine_classPrivateFieldSet(this, _Engine_loader, new Loader(this), "f");
|
|
7008
|
+
this.plugins = new Plugins(this);
|
|
6916
7009
|
}
|
|
6917
7010
|
init() {
|
|
6918
7011
|
if (!engine_classPrivateFieldGet(this, _Engine_initialized, "f")) {
|
|
6919
|
-
|
|
7012
|
+
engine_classPrivateFieldSet(this, _Engine_initialized, true, "f");
|
|
6920
7013
|
}
|
|
6921
7014
|
}
|
|
6922
7015
|
async loadFromArray(tagId, options, index) {
|
|
6923
|
-
return
|
|
7016
|
+
return engine_classPrivateFieldGet(this, _Engine_loader, "f").load(tagId, options, index);
|
|
6924
7017
|
}
|
|
6925
7018
|
async load(tagId, options) {
|
|
6926
|
-
return
|
|
7019
|
+
return engine_classPrivateFieldGet(this, _Engine_loader, "f").load(tagId, options);
|
|
6927
7020
|
}
|
|
6928
7021
|
async set(id, element, options) {
|
|
6929
|
-
return
|
|
7022
|
+
return engine_classPrivateFieldGet(this, _Engine_loader, "f").set(id, element, options);
|
|
6930
7023
|
}
|
|
6931
7024
|
async loadJSON(tagId, pathConfigJson, index) {
|
|
6932
|
-
return
|
|
7025
|
+
return engine_classPrivateFieldGet(this, _Engine_loader, "f").loadJSON(tagId, pathConfigJson, index);
|
|
6933
7026
|
}
|
|
6934
7027
|
async setJSON(id, element, pathConfigJson, index) {
|
|
6935
|
-
return
|
|
7028
|
+
return engine_classPrivateFieldGet(this, _Engine_loader, "f").setJSON(id, element, pathConfigJson, index);
|
|
6936
7029
|
}
|
|
6937
7030
|
setOnClickHandler(callback) {
|
|
6938
|
-
|
|
7031
|
+
engine_classPrivateFieldGet(this, _Engine_loader, "f").setOnClickHandler(callback);
|
|
6939
7032
|
}
|
|
6940
7033
|
dom() {
|
|
6941
|
-
return
|
|
7034
|
+
return engine_classPrivateFieldGet(this, _Engine_loader, "f").dom();
|
|
6942
7035
|
}
|
|
6943
7036
|
domItem(index) {
|
|
6944
|
-
return
|
|
7037
|
+
return engine_classPrivateFieldGet(this, _Engine_loader, "f").domItem(index);
|
|
6945
7038
|
}
|
|
6946
7039
|
async refresh() {
|
|
6947
7040
|
for (const instance of this.dom()) {
|
|
@@ -6960,31 +7053,31 @@
|
|
|
6960
7053
|
} else {
|
|
6961
7054
|
customDrawer = drawer;
|
|
6962
7055
|
}
|
|
6963
|
-
|
|
7056
|
+
this.plugins.addShapeDrawer(shape, customDrawer);
|
|
6964
7057
|
await this.refresh();
|
|
6965
7058
|
}
|
|
6966
7059
|
async addPreset(preset, options, override = false) {
|
|
6967
|
-
|
|
7060
|
+
this.plugins.addPreset(preset, options, override);
|
|
6968
7061
|
await this.refresh();
|
|
6969
7062
|
}
|
|
6970
7063
|
async addPlugin(plugin) {
|
|
6971
|
-
|
|
7064
|
+
this.plugins.addPlugin(plugin);
|
|
6972
7065
|
await this.refresh();
|
|
6973
7066
|
}
|
|
6974
7067
|
async addPathGenerator(name, generator) {
|
|
6975
|
-
|
|
7068
|
+
this.plugins.addPathGenerator(name, generator);
|
|
6976
7069
|
await this.refresh();
|
|
6977
7070
|
}
|
|
6978
7071
|
async addInteractor(name, interactorInitializer) {
|
|
6979
|
-
|
|
7072
|
+
this.plugins.addInteractor(name, interactorInitializer);
|
|
6980
7073
|
await this.refresh();
|
|
6981
7074
|
}
|
|
6982
7075
|
async addParticleUpdater(name, updaterInitializer) {
|
|
6983
|
-
|
|
7076
|
+
this.plugins.addParticleUpdater(name, updaterInitializer);
|
|
6984
7077
|
await this.refresh();
|
|
6985
7078
|
}
|
|
6986
7079
|
}
|
|
6987
|
-
_Engine_initialized = new WeakMap;
|
|
7080
|
+
_Engine_initialized = new WeakMap, _Engine_loader = new WeakMap;
|
|
6988
7081
|
const initPjs = engine => {
|
|
6989
7082
|
const particlesJS = (tagId, options) => engine.load(tagId, options);
|
|
6990
7083
|
particlesJS.load = (tagId, pathConfigJson, callback) => {
|
|
@@ -7402,7 +7495,7 @@
|
|
|
7402
7495
|
await engine.addPlugin(plugin);
|
|
7403
7496
|
}
|
|
7404
7497
|
class CircleShape {
|
|
7405
|
-
randomPosition(position,
|
|
7498
|
+
randomPosition(position, size, fill) {
|
|
7406
7499
|
const generateTheta = (x, y) => {
|
|
7407
7500
|
const u = Math.random() / 4;
|
|
7408
7501
|
const theta = Math.atan(y / x * Math.tan(2 * Math.PI * u));
|
|
@@ -7418,7 +7511,7 @@
|
|
|
7418
7511
|
}
|
|
7419
7512
|
};
|
|
7420
7513
|
const radius = (x, y, theta) => x * y / Math.sqrt((y * Math.cos(theta)) ** 2 + (x * Math.sin(theta)) ** 2);
|
|
7421
|
-
const [a, b] = [
|
|
7514
|
+
const [a, b] = [ size.width / 2, size.height / 2 ];
|
|
7422
7515
|
const randomTheta = generateTheta(a, b), maxRadius = radius(a, b, randomTheta), randomRadius = fill ? maxRadius * Math.sqrt(Math.random()) : maxRadius;
|
|
7423
7516
|
return {
|
|
7424
7517
|
x: position.x + randomRadius * Math.cos(randomTheta),
|
|
@@ -7511,6 +7604,7 @@
|
|
|
7511
7604
|
if (data.direction !== undefined) {
|
|
7512
7605
|
this.direction = data.direction;
|
|
7513
7606
|
}
|
|
7607
|
+
this.domId = data.domId;
|
|
7514
7608
|
if (data.fill !== undefined) {
|
|
7515
7609
|
this.fill = data.fill;
|
|
7516
7610
|
}
|
|
@@ -7540,20 +7634,6 @@
|
|
|
7540
7634
|
}
|
|
7541
7635
|
}
|
|
7542
7636
|
}
|
|
7543
|
-
const shapes = new Map;
|
|
7544
|
-
class ShapeManager {
|
|
7545
|
-
static addShape(name, drawer) {
|
|
7546
|
-
if (!ShapeManager.getShape(name)) {
|
|
7547
|
-
shapes.set(name, drawer);
|
|
7548
|
-
}
|
|
7549
|
-
}
|
|
7550
|
-
static getShape(name) {
|
|
7551
|
-
return shapes.get(name);
|
|
7552
|
-
}
|
|
7553
|
-
static getSupportedShapes() {
|
|
7554
|
-
return shapes.keys();
|
|
7555
|
-
}
|
|
7556
|
-
}
|
|
7557
7637
|
var EmitterInstance_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
7558
7638
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
7559
7639
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -7566,15 +7646,17 @@
|
|
|
7566
7646
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
7567
7647
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7568
7648
|
};
|
|
7569
|
-
var _EmitterInstance_firstSpawn, _EmitterInstance_startParticlesAdded;
|
|
7649
|
+
var _EmitterInstance_firstSpawn, _EmitterInstance_startParticlesAdded, _EmitterInstance_engine;
|
|
7570
7650
|
class EmitterInstance {
|
|
7571
|
-
constructor(emitters, container, options, position) {
|
|
7651
|
+
constructor(engine, emitters, container, options, position) {
|
|
7572
7652
|
var _a, _b, _c, _d, _e, _f;
|
|
7573
7653
|
var _g;
|
|
7574
7654
|
this.emitters = emitters;
|
|
7575
7655
|
this.container = container;
|
|
7576
7656
|
_EmitterInstance_firstSpawn.set(this, void 0);
|
|
7577
7657
|
_EmitterInstance_startParticlesAdded.set(this, void 0);
|
|
7658
|
+
_EmitterInstance_engine.set(this, void 0);
|
|
7659
|
+
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_engine, engine, "f");
|
|
7578
7660
|
this.currentDuration = 0;
|
|
7579
7661
|
this.currentEmitDelay = 0;
|
|
7580
7662
|
this.currentSpawnDelay = 0;
|
|
@@ -7586,9 +7668,8 @@
|
|
|
7586
7668
|
this.options.load(options);
|
|
7587
7669
|
}
|
|
7588
7670
|
this.spawnDelay = ((_a = this.options.life.delay) !== null && _a !== void 0 ? _a : 0) * 1e3 / this.container.retina.reduceFactor;
|
|
7589
|
-
this.position = (_b = this.initialPosition) !== null && _b !== void 0 ? _b : this.calcPosition();
|
|
7590
7671
|
this.name = this.options.name;
|
|
7591
|
-
this.shape =
|
|
7672
|
+
this.shape = (_b = EmitterInstance_classPrivateFieldGet(this, _EmitterInstance_engine, "f").emitterShapeManager) === null || _b === void 0 ? void 0 : _b.getShape(this.options.shape);
|
|
7592
7673
|
this.fill = this.options.fill;
|
|
7593
7674
|
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_firstSpawn, !this.options.life.wait, "f");
|
|
7594
7675
|
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_startParticlesAdded, false, "f");
|
|
@@ -7697,6 +7778,36 @@
|
|
|
7697
7778
|
}
|
|
7698
7779
|
}
|
|
7699
7780
|
}
|
|
7781
|
+
getPosition() {
|
|
7782
|
+
if (this.options.domId) {
|
|
7783
|
+
const container = this.container, element = document.getElementById(this.options.domId);
|
|
7784
|
+
if (element) {
|
|
7785
|
+
const elRect = element.getBoundingClientRect();
|
|
7786
|
+
return {
|
|
7787
|
+
x: (elRect.x + elRect.width / 2) * container.retina.pixelRatio,
|
|
7788
|
+
y: (elRect.y + elRect.height / 2) * container.retina.pixelRatio
|
|
7789
|
+
};
|
|
7790
|
+
}
|
|
7791
|
+
}
|
|
7792
|
+
return this.position;
|
|
7793
|
+
}
|
|
7794
|
+
getSize() {
|
|
7795
|
+
const container = this.container;
|
|
7796
|
+
if (this.options.domId) {
|
|
7797
|
+
const element = document.getElementById(this.options.domId);
|
|
7798
|
+
if (element) {
|
|
7799
|
+
const elRect = element.getBoundingClientRect();
|
|
7800
|
+
return {
|
|
7801
|
+
width: elRect.width * container.retina.pixelRatio,
|
|
7802
|
+
height: elRect.height * container.retina.pixelRatio
|
|
7803
|
+
};
|
|
7804
|
+
}
|
|
7805
|
+
}
|
|
7806
|
+
return {
|
|
7807
|
+
width: this.size.mode === "percent" ? container.canvas.size.width * this.size.width / 100 : this.size.width,
|
|
7808
|
+
height: this.size.mode === "percent" ? container.canvas.size.height * this.size.height / 100 : this.size.height
|
|
7809
|
+
};
|
|
7810
|
+
}
|
|
7700
7811
|
prepareToDie() {
|
|
7701
7812
|
var _a;
|
|
7702
7813
|
if (this.paused) {
|
|
@@ -7729,11 +7840,8 @@
|
|
|
7729
7840
|
emitParticles(quantity) {
|
|
7730
7841
|
var _a, _b, _c;
|
|
7731
7842
|
const container = this.container;
|
|
7732
|
-
const position = this.
|
|
7733
|
-
const
|
|
7734
|
-
x: this.size.mode === "percent" ? container.canvas.size.width * this.size.width / 100 : this.size.width,
|
|
7735
|
-
y: this.size.mode === "percent" ? container.canvas.size.height * this.size.height / 100 : this.size.height
|
|
7736
|
-
};
|
|
7843
|
+
const position = this.getPosition();
|
|
7844
|
+
const size = this.getSize();
|
|
7737
7845
|
for (let i = 0; i < quantity; i++) {
|
|
7738
7846
|
const particlesOptions = deepExtend({}, this.particlesOptions);
|
|
7739
7847
|
if (this.spawnColor) {
|
|
@@ -7751,7 +7859,10 @@
|
|
|
7751
7859
|
particlesOptions.color.value = this.spawnColor;
|
|
7752
7860
|
}
|
|
7753
7861
|
}
|
|
7754
|
-
|
|
7862
|
+
if (!position) {
|
|
7863
|
+
return;
|
|
7864
|
+
}
|
|
7865
|
+
const pPosition = (_c = (_b = this.shape) === null || _b === void 0 ? void 0 : _b.randomPosition(position, size, this.fill)) !== null && _c !== void 0 ? _c : position;
|
|
7755
7866
|
container.particles.addParticle(pPosition, particlesOptions);
|
|
7756
7867
|
}
|
|
7757
7868
|
}
|
|
@@ -7768,10 +7879,26 @@
|
|
|
7768
7879
|
return (initValue + colorSpeed * container.fpsLimit / emitFactor + colorOffset * 3.6) % maxValue;
|
|
7769
7880
|
}
|
|
7770
7881
|
}
|
|
7771
|
-
_EmitterInstance_firstSpawn = new WeakMap, _EmitterInstance_startParticlesAdded = new WeakMap
|
|
7882
|
+
_EmitterInstance_firstSpawn = new WeakMap, _EmitterInstance_startParticlesAdded = new WeakMap,
|
|
7883
|
+
_EmitterInstance_engine = new WeakMap;
|
|
7884
|
+
var Emitters_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
7885
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
7886
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
7887
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
7888
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
7889
|
+
value;
|
|
7890
|
+
};
|
|
7891
|
+
var Emitters_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
7892
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
7893
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
7894
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7895
|
+
};
|
|
7896
|
+
var _Emitters_engine;
|
|
7772
7897
|
class Emitters {
|
|
7773
|
-
constructor(container) {
|
|
7898
|
+
constructor(engine, container) {
|
|
7774
7899
|
this.container = container;
|
|
7900
|
+
_Emitters_engine.set(this, void 0);
|
|
7901
|
+
Emitters_classPrivateFieldSet(this, _Emitters_engine, engine, "f");
|
|
7775
7902
|
this.array = [];
|
|
7776
7903
|
this.emitters = [];
|
|
7777
7904
|
this.interactivityEmitters = [];
|
|
@@ -7883,7 +8010,7 @@
|
|
|
7883
8010
|
addEmitter(options, position) {
|
|
7884
8011
|
const emitterOptions = new Emitter;
|
|
7885
8012
|
emitterOptions.load(options);
|
|
7886
|
-
const emitter = new EmitterInstance(this, this.container, emitterOptions, position);
|
|
8013
|
+
const emitter = new EmitterInstance(Emitters_classPrivateFieldGet(this, _Emitters_engine, "f"), this, this.container, emitterOptions, position);
|
|
7887
8014
|
this.array.push(emitter);
|
|
7888
8015
|
return emitter;
|
|
7889
8016
|
}
|
|
@@ -7894,18 +8021,46 @@
|
|
|
7894
8021
|
}
|
|
7895
8022
|
}
|
|
7896
8023
|
}
|
|
8024
|
+
_Emitters_engine = new WeakMap;
|
|
8025
|
+
var ShapeManager_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
8026
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8027
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
8028
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8029
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
8030
|
+
value;
|
|
8031
|
+
};
|
|
8032
|
+
var _ShapeManager_engine;
|
|
8033
|
+
const shapes = new Map;
|
|
8034
|
+
class ShapeManager {
|
|
8035
|
+
constructor(engine) {
|
|
8036
|
+
_ShapeManager_engine.set(this, void 0);
|
|
8037
|
+
ShapeManager_classPrivateFieldSet(this, _ShapeManager_engine, engine, "f");
|
|
8038
|
+
}
|
|
8039
|
+
addShape(name, drawer) {
|
|
8040
|
+
if (!this.getShape(name)) {
|
|
8041
|
+
shapes.set(name, drawer);
|
|
8042
|
+
}
|
|
8043
|
+
}
|
|
8044
|
+
getShape(name) {
|
|
8045
|
+
return shapes.get(name);
|
|
8046
|
+
}
|
|
8047
|
+
getSupportedShapes() {
|
|
8048
|
+
return shapes.keys();
|
|
8049
|
+
}
|
|
8050
|
+
}
|
|
8051
|
+
_ShapeManager_engine = new WeakMap;
|
|
7897
8052
|
function randomSquareCoordinate(position, offset) {
|
|
7898
8053
|
return position + offset * (Math.random() - .5);
|
|
7899
8054
|
}
|
|
7900
8055
|
class SquareShape {
|
|
7901
|
-
randomPosition(position,
|
|
8056
|
+
randomPosition(position, size, fill) {
|
|
7902
8057
|
if (fill) {
|
|
7903
8058
|
return {
|
|
7904
|
-
x: randomSquareCoordinate(position.x,
|
|
7905
|
-
y: randomSquareCoordinate(position.y,
|
|
8059
|
+
x: randomSquareCoordinate(position.x, size.width),
|
|
8060
|
+
y: randomSquareCoordinate(position.y, size.height)
|
|
7906
8061
|
};
|
|
7907
8062
|
} else {
|
|
7908
|
-
const halfW =
|
|
8063
|
+
const halfW = size.width / 2, halfH = size.height / 2, side = Math.floor(Math.random() * 4), v = (Math.random() - .5) * 2;
|
|
7909
8064
|
switch (side) {
|
|
7910
8065
|
case 0:
|
|
7911
8066
|
return {
|
|
@@ -7935,12 +8090,27 @@
|
|
|
7935
8090
|
}
|
|
7936
8091
|
}
|
|
7937
8092
|
}
|
|
8093
|
+
var Plugins_Emitters_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
8094
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8095
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
8096
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8097
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
8098
|
+
value;
|
|
8099
|
+
};
|
|
8100
|
+
var Plugins_Emitters_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
8101
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
8102
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
8103
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8104
|
+
};
|
|
8105
|
+
var _EmittersPlugin_engine;
|
|
7938
8106
|
class EmittersPlugin {
|
|
7939
|
-
constructor() {
|
|
8107
|
+
constructor(engine) {
|
|
8108
|
+
_EmittersPlugin_engine.set(this, void 0);
|
|
8109
|
+
Plugins_Emitters_classPrivateFieldSet(this, _EmittersPlugin_engine, engine, "f");
|
|
7940
8110
|
this.id = "emitters";
|
|
7941
8111
|
}
|
|
7942
8112
|
getPlugin(container) {
|
|
7943
|
-
return new Emitters(container);
|
|
8113
|
+
return new Emitters(Plugins_Emitters_classPrivateFieldGet(this, _EmittersPlugin_engine, "f"), container);
|
|
7944
8114
|
}
|
|
7945
8115
|
needsPlugin(options) {
|
|
7946
8116
|
var _a, _b, _c;
|
|
@@ -7989,14 +8159,19 @@
|
|
|
7989
8159
|
}
|
|
7990
8160
|
}
|
|
7991
8161
|
}
|
|
8162
|
+
_EmittersPlugin_engine = new WeakMap;
|
|
7992
8163
|
async function loadEmittersPlugin(engine) {
|
|
7993
|
-
|
|
7994
|
-
|
|
8164
|
+
if (!engine.emitterShapeManager) {
|
|
8165
|
+
engine.emitterShapeManager = new ShapeManager(engine);
|
|
8166
|
+
}
|
|
7995
8167
|
if (!engine.addEmitterShape) {
|
|
7996
8168
|
engine.addEmitterShape = (name, shape) => {
|
|
7997
|
-
|
|
8169
|
+
var _a;
|
|
8170
|
+
(_a = engine.emitterShapeManager) === null || _a === void 0 ? void 0 : _a.addShape(name, shape);
|
|
7998
8171
|
};
|
|
7999
8172
|
}
|
|
8173
|
+
const plugin = new EmittersPlugin(engine);
|
|
8174
|
+
await engine.addPlugin(plugin);
|
|
8000
8175
|
engine.addEmitterShape("circle", new CircleShape);
|
|
8001
8176
|
engine.addEmitterShape("square", new SquareShape);
|
|
8002
8177
|
}
|