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
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
class CircleShape {
|
|
47
|
-
randomPosition(position,
|
|
47
|
+
randomPosition(position, size, fill) {
|
|
48
48
|
const generateTheta = (x, y) => {
|
|
49
49
|
const u = Math.random() / 4;
|
|
50
50
|
const theta = Math.atan(y / x * Math.tan(2 * Math.PI * u));
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
const radius = (x, y, theta) => x * y / Math.sqrt((y * Math.cos(theta)) ** 2 + (x * Math.sin(theta)) ** 2);
|
|
63
|
-
const [a, b] = [
|
|
63
|
+
const [a, b] = [ size.width / 2, size.height / 2 ];
|
|
64
64
|
const randomTheta = generateTheta(a, b), maxRadius = radius(a, b, randomTheta), randomRadius = fill ? maxRadius * Math.sqrt(Math.random()) : maxRadius;
|
|
65
65
|
return {
|
|
66
66
|
x: position.x + randomRadius * Math.cos(randomTheta),
|
|
@@ -531,15 +531,30 @@
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
+
var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
535
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
536
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
537
|
+
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");
|
|
538
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
539
|
+
value;
|
|
540
|
+
};
|
|
541
|
+
var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
542
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
543
|
+
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");
|
|
544
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
545
|
+
};
|
|
546
|
+
var _InteractionManager_engine;
|
|
534
547
|
class InteractionManager_InteractionManager {
|
|
535
|
-
constructor(container) {
|
|
548
|
+
constructor(engine, container) {
|
|
536
549
|
this.container = container;
|
|
550
|
+
_InteractionManager_engine.set(this, void 0);
|
|
551
|
+
__classPrivateFieldSet(this, _InteractionManager_engine, engine, "f");
|
|
537
552
|
this.externalInteractors = [];
|
|
538
553
|
this.particleInteractors = [];
|
|
539
554
|
this.init();
|
|
540
555
|
}
|
|
541
556
|
init() {
|
|
542
|
-
const interactors =
|
|
557
|
+
const interactors = __classPrivateFieldGet(this, _InteractionManager_engine, "f").plugins.getInteractors(this.container, true);
|
|
543
558
|
this.externalInteractors = [];
|
|
544
559
|
this.particleInteractors = [];
|
|
545
560
|
for (const interactor of interactors) {
|
|
@@ -572,6 +587,7 @@
|
|
|
572
587
|
}
|
|
573
588
|
}
|
|
574
589
|
}
|
|
590
|
+
_InteractionManager_engine = new WeakMap;
|
|
575
591
|
function applyDistance(particle) {
|
|
576
592
|
const initialPosition = particle.initialPosition;
|
|
577
593
|
const {dx: dx, dy: dy} = getDistances(initialPosition, particle.position);
|
|
@@ -745,26 +761,38 @@
|
|
|
745
761
|
return proximityFactor / slowFactor;
|
|
746
762
|
}
|
|
747
763
|
}
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
class
|
|
757
|
-
|
|
758
|
-
|
|
764
|
+
var Plugins_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
765
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
766
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
767
|
+
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");
|
|
768
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
769
|
+
value;
|
|
770
|
+
};
|
|
771
|
+
var _Plugins_engine;
|
|
772
|
+
class Plugins {
|
|
773
|
+
constructor(engine) {
|
|
774
|
+
_Plugins_engine.set(this, void 0);
|
|
775
|
+
Plugins_classPrivateFieldSet(this, _Plugins_engine, engine, "f");
|
|
776
|
+
this.plugins = [];
|
|
777
|
+
this.interactorsInitializers = new Map;
|
|
778
|
+
this.updatersInitializers = new Map;
|
|
779
|
+
this.interactors = new Map;
|
|
780
|
+
this.updaters = new Map;
|
|
781
|
+
this.presets = new Map;
|
|
782
|
+
this.drawers = new Map;
|
|
783
|
+
this.pathGenerators = new Map;
|
|
784
|
+
}
|
|
785
|
+
getPlugin(plugin) {
|
|
786
|
+
return this.plugins.find((t => t.id === plugin));
|
|
759
787
|
}
|
|
760
|
-
|
|
761
|
-
if (!
|
|
762
|
-
plugins.push(plugin);
|
|
788
|
+
addPlugin(plugin) {
|
|
789
|
+
if (!this.getPlugin(plugin.id)) {
|
|
790
|
+
this.plugins.push(plugin);
|
|
763
791
|
}
|
|
764
792
|
}
|
|
765
|
-
|
|
793
|
+
getAvailablePlugins(container) {
|
|
766
794
|
const res = new Map;
|
|
767
|
-
for (const plugin of plugins) {
|
|
795
|
+
for (const plugin of this.plugins) {
|
|
768
796
|
if (!plugin.needsPlugin(container.actualOptions)) {
|
|
769
797
|
continue;
|
|
770
798
|
}
|
|
@@ -772,61 +800,62 @@
|
|
|
772
800
|
}
|
|
773
801
|
return res;
|
|
774
802
|
}
|
|
775
|
-
|
|
776
|
-
for (const plugin of plugins) {
|
|
803
|
+
loadOptions(options, sourceOptions) {
|
|
804
|
+
for (const plugin of this.plugins) {
|
|
777
805
|
plugin.loadOptions(options, sourceOptions);
|
|
778
806
|
}
|
|
779
807
|
}
|
|
780
|
-
|
|
781
|
-
return presets.get(preset);
|
|
808
|
+
getPreset(preset) {
|
|
809
|
+
return this.presets.get(preset);
|
|
782
810
|
}
|
|
783
|
-
|
|
784
|
-
if (override || !
|
|
785
|
-
presets.set(presetKey, options);
|
|
811
|
+
addPreset(presetKey, options, override = false) {
|
|
812
|
+
if (override || !this.getPreset(presetKey)) {
|
|
813
|
+
this.presets.set(presetKey, options);
|
|
786
814
|
}
|
|
787
815
|
}
|
|
788
|
-
|
|
789
|
-
if (!
|
|
790
|
-
drawers.set(type, drawer);
|
|
816
|
+
addShapeDrawer(type, drawer) {
|
|
817
|
+
if (!this.getShapeDrawer(type)) {
|
|
818
|
+
this.drawers.set(type, drawer);
|
|
791
819
|
}
|
|
792
820
|
}
|
|
793
|
-
|
|
794
|
-
return drawers.get(type);
|
|
821
|
+
getShapeDrawer(type) {
|
|
822
|
+
return this.drawers.get(type);
|
|
795
823
|
}
|
|
796
|
-
|
|
797
|
-
return drawers.keys();
|
|
824
|
+
getSupportedShapes() {
|
|
825
|
+
return this.drawers.keys();
|
|
798
826
|
}
|
|
799
|
-
|
|
800
|
-
return pathGenerators.get(type);
|
|
827
|
+
getPathGenerator(type) {
|
|
828
|
+
return this.pathGenerators.get(type);
|
|
801
829
|
}
|
|
802
|
-
|
|
803
|
-
if (!
|
|
804
|
-
pathGenerators.set(type, pathGenerator);
|
|
830
|
+
addPathGenerator(type, pathGenerator) {
|
|
831
|
+
if (!this.getPathGenerator(type)) {
|
|
832
|
+
this.pathGenerators.set(type, pathGenerator);
|
|
805
833
|
}
|
|
806
834
|
}
|
|
807
|
-
|
|
808
|
-
let res = interactors.get(container);
|
|
835
|
+
getInteractors(container, force = false) {
|
|
836
|
+
let res = this.interactors.get(container);
|
|
809
837
|
if (!res || force) {
|
|
810
|
-
res = [ ...interactorsInitializers.values() ].map((t => t(container)));
|
|
811
|
-
interactors.set(container, res);
|
|
838
|
+
res = [ ...this.interactorsInitializers.values() ].map((t => t(container)));
|
|
839
|
+
this.interactors.set(container, res);
|
|
812
840
|
}
|
|
813
841
|
return res;
|
|
814
842
|
}
|
|
815
|
-
|
|
816
|
-
interactorsInitializers.set(name, initInteractor);
|
|
843
|
+
addInteractor(name, initInteractor) {
|
|
844
|
+
this.interactorsInitializers.set(name, initInteractor);
|
|
817
845
|
}
|
|
818
|
-
|
|
819
|
-
let res = updaters.get(container);
|
|
846
|
+
getUpdaters(container, force = false) {
|
|
847
|
+
let res = this.updaters.get(container);
|
|
820
848
|
if (!res || force) {
|
|
821
|
-
res = [ ...updatersInitializers.values() ].map((t => t(container)));
|
|
822
|
-
updaters.set(container, res);
|
|
849
|
+
res = [ ...this.updatersInitializers.values() ].map((t => t(container)));
|
|
850
|
+
this.updaters.set(container, res);
|
|
823
851
|
}
|
|
824
852
|
return res;
|
|
825
853
|
}
|
|
826
|
-
|
|
827
|
-
updatersInitializers.set(name, initUpdater);
|
|
854
|
+
addParticleUpdater(name, initUpdater) {
|
|
855
|
+
this.updatersInitializers.set(name, initUpdater);
|
|
828
856
|
}
|
|
829
857
|
}
|
|
858
|
+
_Plugins_engine = new WeakMap;
|
|
830
859
|
class QuadTree_QuadTree {
|
|
831
860
|
constructor(rectangle, capacity) {
|
|
832
861
|
this.rectangle = rectangle;
|
|
@@ -2275,15 +2304,24 @@
|
|
|
2275
2304
|
}
|
|
2276
2305
|
}
|
|
2277
2306
|
}
|
|
2278
|
-
var
|
|
2307
|
+
var Options_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
2308
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2309
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2310
|
+
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");
|
|
2311
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
2312
|
+
value;
|
|
2313
|
+
};
|
|
2314
|
+
var Options_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
2279
2315
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2280
2316
|
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");
|
|
2281
2317
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2282
2318
|
};
|
|
2283
|
-
var _Options_instances, _Options_findDefaultTheme;
|
|
2319
|
+
var _Options_instances, _Options_engine, _Options_findDefaultTheme;
|
|
2284
2320
|
class Options_Options {
|
|
2285
|
-
constructor() {
|
|
2321
|
+
constructor(engine) {
|
|
2286
2322
|
_Options_instances.add(this);
|
|
2323
|
+
_Options_engine.set(this, void 0);
|
|
2324
|
+
Options_classPrivateFieldSet(this, _Options_engine, engine, "f");
|
|
2287
2325
|
this.autoPlay = true;
|
|
2288
2326
|
this.background = new Background;
|
|
2289
2327
|
this.backgroundMask = new BackgroundMask;
|
|
@@ -2376,7 +2414,7 @@
|
|
|
2376
2414
|
this.motion.load(data.motion);
|
|
2377
2415
|
this.particles.load(data.particles);
|
|
2378
2416
|
this.style = deepExtend(this.style, data.style);
|
|
2379
|
-
|
|
2417
|
+
Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.loadOptions(this, data);
|
|
2380
2418
|
if (data.responsive !== undefined) {
|
|
2381
2419
|
for (const responsive of data.responsive) {
|
|
2382
2420
|
const optResponsive = new Responsive;
|
|
@@ -2392,8 +2430,8 @@
|
|
|
2392
2430
|
this.themes.push(optTheme);
|
|
2393
2431
|
}
|
|
2394
2432
|
}
|
|
2395
|
-
this.defaultDarkTheme = (_d =
|
|
2396
|
-
this.defaultLightTheme = (_e =
|
|
2433
|
+
this.defaultDarkTheme = (_d = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "dark")) === null || _d === void 0 ? void 0 : _d.name;
|
|
2434
|
+
this.defaultLightTheme = (_e = Options_classPrivateFieldGet(this, _Options_instances, "m", _Options_findDefaultTheme).call(this, "light")) === null || _e === void 0 ? void 0 : _e.name;
|
|
2397
2435
|
}
|
|
2398
2436
|
setTheme(name) {
|
|
2399
2437
|
if (name) {
|
|
@@ -2402,7 +2440,7 @@
|
|
|
2402
2440
|
this.load(chosenTheme.options);
|
|
2403
2441
|
}
|
|
2404
2442
|
} else {
|
|
2405
|
-
const mediaMatch = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch && mediaMatch.matches, defaultTheme =
|
|
2443
|
+
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");
|
|
2406
2444
|
if (defaultTheme) {
|
|
2407
2445
|
this.load(defaultTheme.options);
|
|
2408
2446
|
}
|
|
@@ -2415,13 +2453,26 @@
|
|
|
2415
2453
|
return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
|
|
2416
2454
|
}
|
|
2417
2455
|
importPreset(preset) {
|
|
2418
|
-
this.load(
|
|
2456
|
+
this.load(Options_classPrivateFieldGet(this, _Options_engine, "f").plugins.getPreset(preset));
|
|
2419
2457
|
}
|
|
2420
2458
|
}
|
|
2421
|
-
_Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
2459
|
+
_Options_engine = new WeakMap, _Options_instances = new WeakSet, _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
2422
2460
|
var _a;
|
|
2423
2461
|
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"));
|
|
2424
2462
|
};
|
|
2463
|
+
var Particle_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
2464
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2465
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2466
|
+
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");
|
|
2467
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
2468
|
+
value;
|
|
2469
|
+
};
|
|
2470
|
+
var Particle_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
2471
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2472
|
+
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");
|
|
2473
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2474
|
+
};
|
|
2475
|
+
var _Particle_engine;
|
|
2425
2476
|
const fixOutMode = data => {
|
|
2426
2477
|
if (isInArray(data.outMode, data.checkModes) || isInArray(data.outMode, data.checkModes)) {
|
|
2427
2478
|
if (data.coord > data.maxCoord - data.radius * 2) {
|
|
@@ -2432,11 +2483,13 @@
|
|
|
2432
2483
|
}
|
|
2433
2484
|
};
|
|
2434
2485
|
class Particle_Particle {
|
|
2435
|
-
constructor(id, container, position, overrideOptions, group) {
|
|
2486
|
+
constructor(engine, id, container, position, overrideOptions, group) {
|
|
2436
2487
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2437
2488
|
this.id = id;
|
|
2438
2489
|
this.container = container;
|
|
2439
2490
|
this.group = group;
|
|
2491
|
+
_Particle_engine.set(this, void 0);
|
|
2492
|
+
Particle_classPrivateFieldSet(this, _Particle_engine, engine, "f");
|
|
2440
2493
|
this.fill = true;
|
|
2441
2494
|
this.close = true;
|
|
2442
2495
|
this.lastPathTime = 0;
|
|
@@ -2530,7 +2583,7 @@
|
|
|
2530
2583
|
this.sides = 24;
|
|
2531
2584
|
let drawer = container.drawers.get(this.shape);
|
|
2532
2585
|
if (!drawer) {
|
|
2533
|
-
drawer =
|
|
2586
|
+
drawer = Particle_classPrivateFieldGet(this, _Particle_engine, "f").plugins.getShapeDrawer(this.shape);
|
|
2534
2587
|
if (drawer) {
|
|
2535
2588
|
container.drawers.set(this.shape, drawer);
|
|
2536
2589
|
}
|
|
@@ -2770,9 +2823,25 @@
|
|
|
2770
2823
|
return life;
|
|
2771
2824
|
}
|
|
2772
2825
|
}
|
|
2826
|
+
_Particle_engine = new WeakMap;
|
|
2827
|
+
var Particles_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
2828
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2829
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2830
|
+
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");
|
|
2831
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
2832
|
+
value;
|
|
2833
|
+
};
|
|
2834
|
+
var Particles_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
2835
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2836
|
+
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");
|
|
2837
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2838
|
+
};
|
|
2839
|
+
var _Particles_engine;
|
|
2773
2840
|
class Particles_Particles {
|
|
2774
|
-
constructor(container) {
|
|
2841
|
+
constructor(engine, container) {
|
|
2775
2842
|
this.container = container;
|
|
2843
|
+
_Particles_engine.set(this, void 0);
|
|
2844
|
+
Particles_classPrivateFieldSet(this, _Particles_engine, engine, "f");
|
|
2776
2845
|
this.nextId = 0;
|
|
2777
2846
|
this.array = [];
|
|
2778
2847
|
this.zArray = [];
|
|
@@ -2784,11 +2853,11 @@
|
|
|
2784
2853
|
links: new Map,
|
|
2785
2854
|
triangles: new Map
|
|
2786
2855
|
};
|
|
2787
|
-
this.interactionManager = new InteractionManager(container);
|
|
2856
|
+
this.interactionManager = new InteractionManager(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), container);
|
|
2788
2857
|
const canvasSize = this.container.canvas.size;
|
|
2789
2858
|
this.linksColors = new Map;
|
|
2790
2859
|
this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
|
|
2791
|
-
this.updaters =
|
|
2860
|
+
this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
|
|
2792
2861
|
}
|
|
2793
2862
|
get count() {
|
|
2794
2863
|
return this.array.length;
|
|
@@ -2802,7 +2871,7 @@
|
|
|
2802
2871
|
this.freqs.links = new Map;
|
|
2803
2872
|
this.freqs.triangles = new Map;
|
|
2804
2873
|
let handled = false;
|
|
2805
|
-
this.updaters =
|
|
2874
|
+
this.updaters = Particles_classPrivateFieldGet(this, _Particles_engine, "f").plugins.getUpdaters(container, true);
|
|
2806
2875
|
this.interactionManager.init();
|
|
2807
2876
|
for (const [, plugin] of container.plugins) {
|
|
2808
2877
|
if (plugin.particlesInitialization !== undefined) {
|
|
@@ -3049,7 +3118,7 @@
|
|
|
3049
3118
|
}
|
|
3050
3119
|
pushParticle(position, overrideOptions, group, initializer) {
|
|
3051
3120
|
try {
|
|
3052
|
-
const particle = new Particle(this.nextId, this.container, position, overrideOptions, group);
|
|
3121
|
+
const particle = new Particle(Particles_classPrivateFieldGet(this, _Particles_engine, "f"), this.nextId, this.container, position, overrideOptions, group);
|
|
3053
3122
|
let canAdd = true;
|
|
3054
3123
|
if (initializer) {
|
|
3055
3124
|
canAdd = initializer(particle);
|
|
@@ -3067,6 +3136,7 @@
|
|
|
3067
3136
|
}
|
|
3068
3137
|
}
|
|
3069
3138
|
}
|
|
3139
|
+
_Particles_engine = new WeakMap;
|
|
3070
3140
|
class Retina_Retina {
|
|
3071
3141
|
constructor(container) {
|
|
3072
3142
|
this.container = container;
|
|
@@ -3154,9 +3224,24 @@
|
|
|
3154
3224
|
}
|
|
3155
3225
|
}
|
|
3156
3226
|
}
|
|
3227
|
+
var Container_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
3228
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3229
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
3230
|
+
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");
|
|
3231
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
3232
|
+
value;
|
|
3233
|
+
};
|
|
3234
|
+
var Container_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
3235
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3236
|
+
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");
|
|
3237
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3238
|
+
};
|
|
3239
|
+
var _Container_engine;
|
|
3157
3240
|
class Container_Container {
|
|
3158
|
-
constructor(id, sourceOptions, ...presets) {
|
|
3241
|
+
constructor(engine, id, sourceOptions, ...presets) {
|
|
3159
3242
|
this.id = id;
|
|
3243
|
+
_Container_engine.set(this, void 0);
|
|
3244
|
+
Container_classPrivateFieldSet(this, _Container_engine, engine, "f");
|
|
3160
3245
|
this.fpsLimit = 120;
|
|
3161
3246
|
this.duration = 0;
|
|
3162
3247
|
this.lifeTime = 0;
|
|
@@ -3171,7 +3256,7 @@
|
|
|
3171
3256
|
this._initialSourceOptions = sourceOptions;
|
|
3172
3257
|
this.retina = new Retina(this);
|
|
3173
3258
|
this.canvas = new Canvas(this);
|
|
3174
|
-
this.particles = new Particles(this);
|
|
3259
|
+
this.particles = new Particles(Container_classPrivateFieldGet(this, _Container_engine, "f"), this);
|
|
3175
3260
|
this.drawer = new FrameManager(this);
|
|
3176
3261
|
this.presets = presets;
|
|
3177
3262
|
this.pathGenerator = {
|
|
@@ -3200,8 +3285,8 @@
|
|
|
3200
3285
|
this.plugins = new Map;
|
|
3201
3286
|
this.drawers = new Map;
|
|
3202
3287
|
this.density = 1;
|
|
3203
|
-
this._options = new Options;
|
|
3204
|
-
this.actualOptions = new Options;
|
|
3288
|
+
this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
3289
|
+
this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
3205
3290
|
this.eventListeners = new EventListeners(this);
|
|
3206
3291
|
if (typeof IntersectionObserver !== "undefined" && IntersectionObserver) {
|
|
3207
3292
|
this.intersectionObserver = new IntersectionObserver((entries => this.intersectionManager(entries)));
|
|
@@ -3265,6 +3350,7 @@
|
|
|
3265
3350
|
this.setPath(noiseOrGenerator, init, update);
|
|
3266
3351
|
}
|
|
3267
3352
|
setPath(pathOrGenerator, init, update) {
|
|
3353
|
+
var _a, _b, _c;
|
|
3268
3354
|
if (!pathOrGenerator) {
|
|
3269
3355
|
return;
|
|
3270
3356
|
}
|
|
@@ -3277,15 +3363,11 @@
|
|
|
3277
3363
|
this.pathGenerator.update = update;
|
|
3278
3364
|
}
|
|
3279
3365
|
} else {
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
}
|
|
3286
|
-
if (pathOrGenerator.update) {
|
|
3287
|
-
this.pathGenerator.update = pathOrGenerator.update;
|
|
3288
|
-
}
|
|
3366
|
+
const oldGenerator = this.pathGenerator;
|
|
3367
|
+
this.pathGenerator = pathOrGenerator;
|
|
3368
|
+
(_a = this.pathGenerator).generate || (_a.generate = oldGenerator.generate);
|
|
3369
|
+
(_b = this.pathGenerator).init || (_b.init = oldGenerator.init);
|
|
3370
|
+
(_c = this.pathGenerator).update || (_c.update = oldGenerator.update);
|
|
3289
3371
|
}
|
|
3290
3372
|
}
|
|
3291
3373
|
destroy() {
|
|
@@ -3316,7 +3398,7 @@
|
|
|
3316
3398
|
return this.start();
|
|
3317
3399
|
}
|
|
3318
3400
|
reset() {
|
|
3319
|
-
this._options = new Options;
|
|
3401
|
+
this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
3320
3402
|
return this.refresh();
|
|
3321
3403
|
}
|
|
3322
3404
|
stop() {
|
|
@@ -3457,20 +3539,20 @@
|
|
|
3457
3539
|
return false;
|
|
3458
3540
|
}
|
|
3459
3541
|
async init() {
|
|
3460
|
-
this._options = new Options;
|
|
3542
|
+
this._options = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
3461
3543
|
for (const preset of this.presets) {
|
|
3462
|
-
this._options.load(
|
|
3544
|
+
this._options.load(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPreset(preset));
|
|
3463
3545
|
}
|
|
3464
|
-
const shapes =
|
|
3546
|
+
const shapes = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getSupportedShapes();
|
|
3465
3547
|
for (const type of shapes) {
|
|
3466
|
-
const drawer =
|
|
3548
|
+
const drawer = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getShapeDrawer(type);
|
|
3467
3549
|
if (drawer) {
|
|
3468
3550
|
this.drawers.set(type, drawer);
|
|
3469
3551
|
}
|
|
3470
3552
|
}
|
|
3471
3553
|
this._options.load(this._initialSourceOptions);
|
|
3472
3554
|
this._options.load(this._sourceOptions);
|
|
3473
|
-
this.actualOptions = new Options;
|
|
3555
|
+
this.actualOptions = new Options(Container_classPrivateFieldGet(this, _Container_engine, "f"));
|
|
3474
3556
|
this.actualOptions.load(this._options);
|
|
3475
3557
|
this.retina.init();
|
|
3476
3558
|
this.canvas.init();
|
|
@@ -3481,7 +3563,7 @@
|
|
|
3481
3563
|
this.duration = getRangeValue(this.actualOptions.duration);
|
|
3482
3564
|
this.lifeTime = 0;
|
|
3483
3565
|
this.fpsLimit = this.actualOptions.fpsLimit > 0 ? this.actualOptions.fpsLimit : 120;
|
|
3484
|
-
const availablePlugins =
|
|
3566
|
+
const availablePlugins = Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getAvailablePlugins(this);
|
|
3485
3567
|
for (const [id, plugin] of availablePlugins) {
|
|
3486
3568
|
this.plugins.set(id, plugin);
|
|
3487
3569
|
}
|
|
@@ -3499,18 +3581,7 @@
|
|
|
3499
3581
|
}
|
|
3500
3582
|
const pathOptions = this.actualOptions.particles.move.path;
|
|
3501
3583
|
if (pathOptions.generator) {
|
|
3502
|
-
|
|
3503
|
-
if (customGenerator) {
|
|
3504
|
-
if (customGenerator.init) {
|
|
3505
|
-
this.pathGenerator.init = customGenerator.init;
|
|
3506
|
-
}
|
|
3507
|
-
if (customGenerator.generate) {
|
|
3508
|
-
this.pathGenerator.generate = customGenerator.generate;
|
|
3509
|
-
}
|
|
3510
|
-
if (customGenerator.update) {
|
|
3511
|
-
this.pathGenerator.update = customGenerator.update;
|
|
3512
|
-
}
|
|
3513
|
-
}
|
|
3584
|
+
this.setPath(Container_classPrivateFieldGet(this, _Container_engine, "f").plugins.getPathGenerator(pathOptions.generator));
|
|
3514
3585
|
}
|
|
3515
3586
|
this.particles.init();
|
|
3516
3587
|
this.particles.setDensity();
|
|
@@ -3536,24 +3607,41 @@
|
|
|
3536
3607
|
}
|
|
3537
3608
|
}
|
|
3538
3609
|
}
|
|
3539
|
-
|
|
3610
|
+
_Container_engine = new WeakMap;
|
|
3611
|
+
var Loader_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
3612
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3613
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
3614
|
+
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");
|
|
3615
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
3616
|
+
value;
|
|
3617
|
+
};
|
|
3618
|
+
var Loader_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
3619
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3620
|
+
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");
|
|
3621
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3622
|
+
};
|
|
3623
|
+
var _Loader_engine;
|
|
3540
3624
|
function fetchError(statusCode) {
|
|
3541
3625
|
console.error(`Error tsParticles - fetch status: ${statusCode}`);
|
|
3542
3626
|
console.error("Error tsParticles - File config not found");
|
|
3543
3627
|
}
|
|
3544
3628
|
class Loader {
|
|
3545
|
-
|
|
3546
|
-
|
|
3629
|
+
constructor(engine) {
|
|
3630
|
+
_Loader_engine.set(this, void 0);
|
|
3631
|
+
Loader_classPrivateFieldSet(this, _Loader_engine, engine, "f");
|
|
3547
3632
|
}
|
|
3548
|
-
|
|
3549
|
-
|
|
3633
|
+
dom() {
|
|
3634
|
+
return Loader_classPrivateFieldGet(this, _Loader_engine, "f").domArray;
|
|
3635
|
+
}
|
|
3636
|
+
domItem(index) {
|
|
3637
|
+
const dom = this.dom();
|
|
3550
3638
|
const item = dom[index];
|
|
3551
3639
|
if (item && !item.destroyed) {
|
|
3552
3640
|
return item;
|
|
3553
3641
|
}
|
|
3554
3642
|
dom.splice(index, 1);
|
|
3555
3643
|
}
|
|
3556
|
-
|
|
3644
|
+
async loadOptions(params) {
|
|
3557
3645
|
var _a, _b, _c;
|
|
3558
3646
|
const tagId = (_a = params.tagId) !== null && _a !== void 0 ? _a : `tsparticles${Math.floor(Math.random() * 1e4)}`;
|
|
3559
3647
|
const {options: options, index: index} = params;
|
|
@@ -3564,10 +3652,10 @@
|
|
|
3564
3652
|
(_c = document.querySelector("body")) === null || _c === void 0 ? void 0 : _c.append(domContainer);
|
|
3565
3653
|
}
|
|
3566
3654
|
const currentOptions = options instanceof Array ? itemFromArray(options, index) : options;
|
|
3567
|
-
const dom =
|
|
3655
|
+
const dom = this.dom();
|
|
3568
3656
|
const oldIndex = dom.findIndex((v => v.id === tagId));
|
|
3569
3657
|
if (oldIndex >= 0) {
|
|
3570
|
-
const old =
|
|
3658
|
+
const old = this.domItem(oldIndex);
|
|
3571
3659
|
if (old && !old.destroyed) {
|
|
3572
3660
|
old.destroy();
|
|
3573
3661
|
dom.splice(oldIndex, 1);
|
|
@@ -3590,7 +3678,7 @@
|
|
|
3590
3678
|
domContainer.appendChild(canvasEl);
|
|
3591
3679
|
}
|
|
3592
3680
|
}
|
|
3593
|
-
const newItem = new Container(tagId, currentOptions);
|
|
3681
|
+
const newItem = new Container(Loader_classPrivateFieldGet(this, _Loader_engine, "f"), tagId, currentOptions);
|
|
3594
3682
|
if (oldIndex >= 0) {
|
|
3595
3683
|
dom.splice(oldIndex, 0, newItem);
|
|
3596
3684
|
} else {
|
|
@@ -3600,7 +3688,7 @@
|
|
|
3600
3688
|
await newItem.start();
|
|
3601
3689
|
return newItem;
|
|
3602
3690
|
}
|
|
3603
|
-
|
|
3691
|
+
async loadRemoteOptions(params) {
|
|
3604
3692
|
const {url: jsonUrl, index: index} = params;
|
|
3605
3693
|
const url = jsonUrl instanceof Array ? itemFromArray(jsonUrl, index) : jsonUrl;
|
|
3606
3694
|
if (!url) {
|
|
@@ -3612,14 +3700,14 @@
|
|
|
3612
3700
|
return;
|
|
3613
3701
|
}
|
|
3614
3702
|
const data = await response.json();
|
|
3615
|
-
return
|
|
3703
|
+
return this.loadOptions({
|
|
3616
3704
|
tagId: params.tagId,
|
|
3617
3705
|
element: params.element,
|
|
3618
3706
|
index: index,
|
|
3619
3707
|
options: data
|
|
3620
3708
|
});
|
|
3621
3709
|
}
|
|
3622
|
-
|
|
3710
|
+
load(tagId, options, index) {
|
|
3623
3711
|
const params = {
|
|
3624
3712
|
index: index
|
|
3625
3713
|
};
|
|
@@ -3635,7 +3723,7 @@
|
|
|
3635
3723
|
}
|
|
3636
3724
|
return this.loadOptions(params);
|
|
3637
3725
|
}
|
|
3638
|
-
|
|
3726
|
+
async set(id, domContainer, options, index) {
|
|
3639
3727
|
const params = {
|
|
3640
3728
|
index: index
|
|
3641
3729
|
};
|
|
@@ -3656,7 +3744,7 @@
|
|
|
3656
3744
|
}
|
|
3657
3745
|
return this.loadOptions(params);
|
|
3658
3746
|
}
|
|
3659
|
-
|
|
3747
|
+
async loadJSON(tagId, jsonUrl, index) {
|
|
3660
3748
|
let url, id;
|
|
3661
3749
|
if (typeof jsonUrl === "number" || jsonUrl === undefined) {
|
|
3662
3750
|
url = tagId;
|
|
@@ -3664,13 +3752,13 @@
|
|
|
3664
3752
|
id = tagId;
|
|
3665
3753
|
url = jsonUrl;
|
|
3666
3754
|
}
|
|
3667
|
-
return
|
|
3755
|
+
return this.loadRemoteOptions({
|
|
3668
3756
|
tagId: id,
|
|
3669
3757
|
url: url,
|
|
3670
3758
|
index: index
|
|
3671
3759
|
});
|
|
3672
3760
|
}
|
|
3673
|
-
|
|
3761
|
+
async setJSON(id, domContainer, jsonUrl, index) {
|
|
3674
3762
|
let url, newId, newIndex, element;
|
|
3675
3763
|
if (id instanceof HTMLElement) {
|
|
3676
3764
|
element = id;
|
|
@@ -3682,15 +3770,15 @@
|
|
|
3682
3770
|
url = jsonUrl;
|
|
3683
3771
|
newIndex = index;
|
|
3684
3772
|
}
|
|
3685
|
-
return
|
|
3773
|
+
return this.loadRemoteOptions({
|
|
3686
3774
|
tagId: newId,
|
|
3687
3775
|
url: url,
|
|
3688
3776
|
index: newIndex,
|
|
3689
3777
|
element: element
|
|
3690
3778
|
});
|
|
3691
3779
|
}
|
|
3692
|
-
|
|
3693
|
-
const dom =
|
|
3780
|
+
setOnClickHandler(callback) {
|
|
3781
|
+
const dom = this.dom();
|
|
3694
3782
|
if (dom.length === 0) {
|
|
3695
3783
|
throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");
|
|
3696
3784
|
}
|
|
@@ -3699,6 +3787,7 @@
|
|
|
3699
3787
|
}
|
|
3700
3788
|
}
|
|
3701
3789
|
}
|
|
3790
|
+
_Loader_engine = new WeakMap;
|
|
3702
3791
|
function NumberUtils_clamp(num, min, max) {
|
|
3703
3792
|
return Math.min(Math.max(num, min), max);
|
|
3704
3793
|
}
|
|
@@ -4934,6 +5023,7 @@
|
|
|
4934
5023
|
if (data.direction !== undefined) {
|
|
4935
5024
|
this.direction = data.direction;
|
|
4936
5025
|
}
|
|
5026
|
+
this.domId = data.domId;
|
|
4937
5027
|
if (data.fill !== undefined) {
|
|
4938
5028
|
this.fill = data.fill;
|
|
4939
5029
|
}
|
|
@@ -4963,21 +5053,7 @@
|
|
|
4963
5053
|
}
|
|
4964
5054
|
}
|
|
4965
5055
|
}
|
|
4966
|
-
|
|
4967
|
-
class ShapeManager {
|
|
4968
|
-
static addShape(name, drawer) {
|
|
4969
|
-
if (!ShapeManager.getShape(name)) {
|
|
4970
|
-
shapes.set(name, drawer);
|
|
4971
|
-
}
|
|
4972
|
-
}
|
|
4973
|
-
static getShape(name) {
|
|
4974
|
-
return shapes.get(name);
|
|
4975
|
-
}
|
|
4976
|
-
static getSupportedShapes() {
|
|
4977
|
-
return shapes.keys();
|
|
4978
|
-
}
|
|
4979
|
-
}
|
|
4980
|
-
var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
5056
|
+
var EmitterInstance_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
4981
5057
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4982
5058
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4983
5059
|
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");
|
|
@@ -4989,15 +5065,17 @@
|
|
|
4989
5065
|
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");
|
|
4990
5066
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
4991
5067
|
};
|
|
4992
|
-
var _EmitterInstance_firstSpawn, _EmitterInstance_startParticlesAdded;
|
|
5068
|
+
var _EmitterInstance_firstSpawn, _EmitterInstance_startParticlesAdded, _EmitterInstance_engine;
|
|
4993
5069
|
class EmitterInstance {
|
|
4994
|
-
constructor(emitters, container, options, position) {
|
|
5070
|
+
constructor(engine, emitters, container, options, position) {
|
|
4995
5071
|
var _a, _b, _c, _d, _e, _f;
|
|
4996
5072
|
var _g;
|
|
4997
5073
|
this.emitters = emitters;
|
|
4998
5074
|
this.container = container;
|
|
4999
5075
|
_EmitterInstance_firstSpawn.set(this, void 0);
|
|
5000
5076
|
_EmitterInstance_startParticlesAdded.set(this, void 0);
|
|
5077
|
+
_EmitterInstance_engine.set(this, void 0);
|
|
5078
|
+
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_engine, engine, "f");
|
|
5001
5079
|
this.currentDuration = 0;
|
|
5002
5080
|
this.currentEmitDelay = 0;
|
|
5003
5081
|
this.currentSpawnDelay = 0;
|
|
@@ -5009,12 +5087,11 @@
|
|
|
5009
5087
|
this.options.load(options);
|
|
5010
5088
|
}
|
|
5011
5089
|
this.spawnDelay = ((_a = this.options.life.delay) !== null && _a !== void 0 ? _a : 0) * 1e3 / this.container.retina.reduceFactor;
|
|
5012
|
-
this.position = (_b = this.initialPosition) !== null && _b !== void 0 ? _b : this.calcPosition();
|
|
5013
5090
|
this.name = this.options.name;
|
|
5014
|
-
this.shape =
|
|
5091
|
+
this.shape = (_b = EmitterInstance_classPrivateFieldGet(this, _EmitterInstance_engine, "f").emitterShapeManager) === null || _b === void 0 ? void 0 : _b.getShape(this.options.shape);
|
|
5015
5092
|
this.fill = this.options.fill;
|
|
5016
|
-
|
|
5017
|
-
|
|
5093
|
+
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_firstSpawn, !this.options.life.wait, "f");
|
|
5094
|
+
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_startParticlesAdded, false, "f");
|
|
5018
5095
|
let particlesOptions = Utils_deepExtend({}, this.options.particles);
|
|
5019
5096
|
particlesOptions !== null && particlesOptions !== void 0 ? particlesOptions : particlesOptions = {};
|
|
5020
5097
|
(_c = particlesOptions.move) !== null && _c !== void 0 ? _c : particlesOptions.move = {};
|
|
@@ -5076,12 +5153,12 @@
|
|
|
5076
5153
|
return;
|
|
5077
5154
|
}
|
|
5078
5155
|
if (EmitterInstance_classPrivateFieldGet(this, _EmitterInstance_firstSpawn, "f")) {
|
|
5079
|
-
|
|
5156
|
+
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_firstSpawn, false, "f");
|
|
5080
5157
|
this.currentSpawnDelay = (_a = this.spawnDelay) !== null && _a !== void 0 ? _a : 0;
|
|
5081
5158
|
this.currentEmitDelay = (_b = this.emitDelay) !== null && _b !== void 0 ? _b : 0;
|
|
5082
5159
|
}
|
|
5083
5160
|
if (!EmitterInstance_classPrivateFieldGet(this, _EmitterInstance_startParticlesAdded, "f")) {
|
|
5084
|
-
|
|
5161
|
+
EmitterInstance_classPrivateFieldSet(this, _EmitterInstance_startParticlesAdded, true, "f");
|
|
5085
5162
|
this.emitParticles(this.options.startCount);
|
|
5086
5163
|
}
|
|
5087
5164
|
if (this.duration !== undefined) {
|
|
@@ -5120,6 +5197,36 @@
|
|
|
5120
5197
|
}
|
|
5121
5198
|
}
|
|
5122
5199
|
}
|
|
5200
|
+
getPosition() {
|
|
5201
|
+
if (this.options.domId) {
|
|
5202
|
+
const container = this.container, element = document.getElementById(this.options.domId);
|
|
5203
|
+
if (element) {
|
|
5204
|
+
const elRect = element.getBoundingClientRect();
|
|
5205
|
+
return {
|
|
5206
|
+
x: (elRect.x + elRect.width / 2) * container.retina.pixelRatio,
|
|
5207
|
+
y: (elRect.y + elRect.height / 2) * container.retina.pixelRatio
|
|
5208
|
+
};
|
|
5209
|
+
}
|
|
5210
|
+
}
|
|
5211
|
+
return this.position;
|
|
5212
|
+
}
|
|
5213
|
+
getSize() {
|
|
5214
|
+
const container = this.container;
|
|
5215
|
+
if (this.options.domId) {
|
|
5216
|
+
const element = document.getElementById(this.options.domId);
|
|
5217
|
+
if (element) {
|
|
5218
|
+
const elRect = element.getBoundingClientRect();
|
|
5219
|
+
return {
|
|
5220
|
+
width: elRect.width * container.retina.pixelRatio,
|
|
5221
|
+
height: elRect.height * container.retina.pixelRatio
|
|
5222
|
+
};
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
return {
|
|
5226
|
+
width: this.size.mode === "percent" ? container.canvas.size.width * this.size.width / 100 : this.size.width,
|
|
5227
|
+
height: this.size.mode === "percent" ? container.canvas.size.height * this.size.height / 100 : this.size.height
|
|
5228
|
+
};
|
|
5229
|
+
}
|
|
5123
5230
|
prepareToDie() {
|
|
5124
5231
|
var _a;
|
|
5125
5232
|
if (this.paused) {
|
|
@@ -5152,11 +5259,8 @@
|
|
|
5152
5259
|
emitParticles(quantity) {
|
|
5153
5260
|
var _a, _b, _c;
|
|
5154
5261
|
const container = this.container;
|
|
5155
|
-
const position = this.
|
|
5156
|
-
const
|
|
5157
|
-
x: this.size.mode === "percent" ? container.canvas.size.width * this.size.width / 100 : this.size.width,
|
|
5158
|
-
y: this.size.mode === "percent" ? container.canvas.size.height * this.size.height / 100 : this.size.height
|
|
5159
|
-
};
|
|
5262
|
+
const position = this.getPosition();
|
|
5263
|
+
const size = this.getSize();
|
|
5160
5264
|
for (let i = 0; i < quantity; i++) {
|
|
5161
5265
|
const particlesOptions = Utils_deepExtend({}, this.particlesOptions);
|
|
5162
5266
|
if (this.spawnColor) {
|
|
@@ -5174,7 +5278,10 @@
|
|
|
5174
5278
|
particlesOptions.color.value = this.spawnColor;
|
|
5175
5279
|
}
|
|
5176
5280
|
}
|
|
5177
|
-
|
|
5281
|
+
if (!position) {
|
|
5282
|
+
return;
|
|
5283
|
+
}
|
|
5284
|
+
const pPosition = (_c = (_b = this.shape) === null || _b === void 0 ? void 0 : _b.randomPosition(position, size, this.fill)) !== null && _c !== void 0 ? _c : position;
|
|
5178
5285
|
container.particles.addParticle(pPosition, particlesOptions);
|
|
5179
5286
|
}
|
|
5180
5287
|
}
|
|
@@ -5191,10 +5298,26 @@
|
|
|
5191
5298
|
return (initValue + colorSpeed * container.fpsLimit / emitFactor + colorOffset * 3.6) % maxValue;
|
|
5192
5299
|
}
|
|
5193
5300
|
}
|
|
5194
|
-
_EmitterInstance_firstSpawn = new WeakMap, _EmitterInstance_startParticlesAdded = new WeakMap
|
|
5301
|
+
_EmitterInstance_firstSpawn = new WeakMap, _EmitterInstance_startParticlesAdded = new WeakMap,
|
|
5302
|
+
_EmitterInstance_engine = new WeakMap;
|
|
5303
|
+
var Emitters_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
5304
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5305
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5306
|
+
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");
|
|
5307
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
5308
|
+
value;
|
|
5309
|
+
};
|
|
5310
|
+
var Emitters_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
5311
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5312
|
+
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");
|
|
5313
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5314
|
+
};
|
|
5315
|
+
var _Emitters_engine;
|
|
5195
5316
|
class Emitters {
|
|
5196
|
-
constructor(container) {
|
|
5317
|
+
constructor(engine, container) {
|
|
5197
5318
|
this.container = container;
|
|
5319
|
+
_Emitters_engine.set(this, void 0);
|
|
5320
|
+
Emitters_classPrivateFieldSet(this, _Emitters_engine, engine, "f");
|
|
5198
5321
|
this.array = [];
|
|
5199
5322
|
this.emitters = [];
|
|
5200
5323
|
this.interactivityEmitters = [];
|
|
@@ -5306,7 +5429,7 @@
|
|
|
5306
5429
|
addEmitter(options, position) {
|
|
5307
5430
|
const emitterOptions = new Emitter;
|
|
5308
5431
|
emitterOptions.load(options);
|
|
5309
|
-
const emitter = new EmitterInstance(this, this.container, emitterOptions, position);
|
|
5432
|
+
const emitter = new EmitterInstance(Emitters_classPrivateFieldGet(this, _Emitters_engine, "f"), this, this.container, emitterOptions, position);
|
|
5310
5433
|
this.array.push(emitter);
|
|
5311
5434
|
return emitter;
|
|
5312
5435
|
}
|
|
@@ -5317,18 +5440,46 @@
|
|
|
5317
5440
|
}
|
|
5318
5441
|
}
|
|
5319
5442
|
}
|
|
5443
|
+
_Emitters_engine = new WeakMap;
|
|
5444
|
+
var ShapeManager_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
5445
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5446
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5447
|
+
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");
|
|
5448
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
5449
|
+
value;
|
|
5450
|
+
};
|
|
5451
|
+
var _ShapeManager_engine;
|
|
5452
|
+
const shapes = new Map;
|
|
5453
|
+
class ShapeManager {
|
|
5454
|
+
constructor(engine) {
|
|
5455
|
+
_ShapeManager_engine.set(this, void 0);
|
|
5456
|
+
ShapeManager_classPrivateFieldSet(this, _ShapeManager_engine, engine, "f");
|
|
5457
|
+
}
|
|
5458
|
+
addShape(name, drawer) {
|
|
5459
|
+
if (!this.getShape(name)) {
|
|
5460
|
+
shapes.set(name, drawer);
|
|
5461
|
+
}
|
|
5462
|
+
}
|
|
5463
|
+
getShape(name) {
|
|
5464
|
+
return shapes.get(name);
|
|
5465
|
+
}
|
|
5466
|
+
getSupportedShapes() {
|
|
5467
|
+
return shapes.keys();
|
|
5468
|
+
}
|
|
5469
|
+
}
|
|
5470
|
+
_ShapeManager_engine = new WeakMap;
|
|
5320
5471
|
function randomSquareCoordinate(position, offset) {
|
|
5321
5472
|
return position + offset * (Math.random() - .5);
|
|
5322
5473
|
}
|
|
5323
5474
|
class SquareShape {
|
|
5324
|
-
randomPosition(position,
|
|
5475
|
+
randomPosition(position, size, fill) {
|
|
5325
5476
|
if (fill) {
|
|
5326
5477
|
return {
|
|
5327
|
-
x: randomSquareCoordinate(position.x,
|
|
5328
|
-
y: randomSquareCoordinate(position.y,
|
|
5478
|
+
x: randomSquareCoordinate(position.x, size.width),
|
|
5479
|
+
y: randomSquareCoordinate(position.y, size.height)
|
|
5329
5480
|
};
|
|
5330
5481
|
} else {
|
|
5331
|
-
const halfW =
|
|
5482
|
+
const halfW = size.width / 2, halfH = size.height / 2, side = Math.floor(Math.random() * 4), v = (Math.random() - .5) * 2;
|
|
5332
5483
|
switch (side) {
|
|
5333
5484
|
case 0:
|
|
5334
5485
|
return {
|
|
@@ -5358,12 +5509,27 @@
|
|
|
5358
5509
|
}
|
|
5359
5510
|
}
|
|
5360
5511
|
}
|
|
5512
|
+
var Plugins_Emitters_classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
5513
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5514
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5515
|
+
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");
|
|
5516
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value),
|
|
5517
|
+
value;
|
|
5518
|
+
};
|
|
5519
|
+
var Plugins_Emitters_classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
5520
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5521
|
+
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");
|
|
5522
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5523
|
+
};
|
|
5524
|
+
var _EmittersPlugin_engine;
|
|
5361
5525
|
class EmittersPlugin {
|
|
5362
|
-
constructor() {
|
|
5526
|
+
constructor(engine) {
|
|
5527
|
+
_EmittersPlugin_engine.set(this, void 0);
|
|
5528
|
+
Plugins_Emitters_classPrivateFieldSet(this, _EmittersPlugin_engine, engine, "f");
|
|
5363
5529
|
this.id = "emitters";
|
|
5364
5530
|
}
|
|
5365
5531
|
getPlugin(container) {
|
|
5366
|
-
return new Emitters(container);
|
|
5532
|
+
return new Emitters(Plugins_Emitters_classPrivateFieldGet(this, _EmittersPlugin_engine, "f"), container);
|
|
5367
5533
|
}
|
|
5368
5534
|
needsPlugin(options) {
|
|
5369
5535
|
var _a, _b, _c;
|
|
@@ -5412,14 +5578,19 @@
|
|
|
5412
5578
|
}
|
|
5413
5579
|
}
|
|
5414
5580
|
}
|
|
5581
|
+
_EmittersPlugin_engine = new WeakMap;
|
|
5415
5582
|
async function loadEmittersPlugin(engine) {
|
|
5416
|
-
|
|
5417
|
-
|
|
5583
|
+
if (!engine.emitterShapeManager) {
|
|
5584
|
+
engine.emitterShapeManager = new ShapeManager(engine);
|
|
5585
|
+
}
|
|
5418
5586
|
if (!engine.addEmitterShape) {
|
|
5419
5587
|
engine.addEmitterShape = (name, shape) => {
|
|
5420
|
-
|
|
5588
|
+
var _a;
|
|
5589
|
+
(_a = engine.emitterShapeManager) === null || _a === void 0 ? void 0 : _a.addShape(name, shape);
|
|
5421
5590
|
};
|
|
5422
5591
|
}
|
|
5592
|
+
const plugin = new EmittersPlugin(engine);
|
|
5593
|
+
await engine.addPlugin(plugin);
|
|
5423
5594
|
engine.addEmitterShape("circle", new CircleShape);
|
|
5424
5595
|
engine.addEmitterShape("square", new SquareShape);
|
|
5425
5596
|
}
|