tsparticles 1.39.3 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Core/Container.d.ts +4 -2
- package/Core/Container.js +33 -32
- package/Core/Loader.d.ts +12 -9
- package/Core/Loader.js +35 -19
- package/Core/Particle.d.ts +3 -1
- package/Core/Particle.js +17 -2
- package/Core/Particles.d.ts +3 -1
- package/Core/Particles.js +20 -5
- package/Core/Utils/InteractionManager.d.ts +3 -1
- package/Core/Utils/InteractionManager.js +17 -3
- package/Core/Utils/Plugins.d.ts +29 -15
- package/Core/Utils/Plugins.js +58 -46
- package/Options/Classes/Options.d.ts +2 -1
- package/Options/Classes/Options.js +13 -6
- package/Plugins/Emitters/EmitterInstance.d.ts +6 -3
- package/Plugins/Emitters/EmitterInstance.js +46 -16
- package/Plugins/Emitters/Emitters.d.ts +3 -1
- package/Plugins/Emitters/Emitters.js +17 -2
- package/Plugins/Emitters/{EmittersMain.d.ts → EmittersEngine.d.ts} +3 -1
- package/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
- package/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
- package/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +1 -0
- package/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/Plugins/Emitters/ShapeManager.js +16 -4
- package/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/Plugins/Emitters/index.d.ts +3 -3
- package/Plugins/Emitters/index.js +25 -6
- package/README.md +1 -1
- package/browser/Core/Container.d.ts +5 -2
- package/browser/Core/Container.js +35 -33
- package/browser/Core/Loader.d.ts +12 -9
- package/browser/Core/Loader.js +35 -19
- package/browser/Core/Particle.d.ts +3 -1
- package/browser/Core/Particle.js +18 -3
- package/browser/Core/Particles.d.ts +3 -1
- package/browser/Core/Particles.js +21 -6
- package/browser/Core/Utils/InteractionManager.d.ts +3 -1
- package/browser/Core/Utils/InteractionManager.js +17 -3
- package/browser/Core/Utils/Plugins.d.ts +29 -15
- package/browser/Core/Utils/Plugins.js +58 -46
- package/browser/Options/Classes/Options.d.ts +2 -1
- package/browser/Options/Classes/Options.js +13 -6
- package/browser/Plugins/Emitters/EmitterInstance.d.ts +6 -3
- package/browser/Plugins/Emitters/EmitterInstance.js +46 -16
- package/browser/Plugins/Emitters/Emitters.d.ts +3 -1
- package/browser/Plugins/Emitters/Emitters.js +17 -2
- package/{esm/Plugins/Emitters/EmittersMain.d.ts → browser/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
- package/browser/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/browser/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +4 -0
- package/browser/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/browser/Plugins/Emitters/ShapeManager.js +16 -4
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/browser/Plugins/Emitters/index.d.ts +3 -3
- package/browser/Plugins/Emitters/index.js +25 -6
- package/browser/engine.d.ts +5 -1
- package/browser/engine.js +22 -17
- package/engine.d.ts +3 -0
- package/engine.js +20 -16
- package/esm/Core/Container.d.ts +4 -2
- package/esm/Core/Container.js +34 -33
- package/esm/Core/Loader.d.ts +12 -9
- package/esm/Core/Loader.js +35 -19
- package/esm/Core/Particle.d.ts +3 -1
- package/esm/Core/Particle.js +18 -3
- package/esm/Core/Particles.d.ts +3 -1
- package/esm/Core/Particles.js +21 -6
- package/esm/Core/Utils/InteractionManager.d.ts +3 -1
- package/esm/Core/Utils/InteractionManager.js +17 -3
- package/esm/Core/Utils/Plugins.d.ts +29 -15
- package/esm/Core/Utils/Plugins.js +58 -46
- package/esm/Options/Classes/Options.d.ts +2 -1
- package/esm/Options/Classes/Options.js +13 -6
- package/esm/Plugins/Emitters/EmitterInstance.d.ts +6 -3
- package/esm/Plugins/Emitters/EmitterInstance.js +46 -16
- package/esm/Plugins/Emitters/Emitters.d.ts +3 -1
- package/esm/Plugins/Emitters/Emitters.js +17 -2
- package/{browser/Plugins/Emitters/EmittersMain.d.ts → esm/Plugins/Emitters/EmittersEngine.d.ts} +3 -1
- package/esm/Plugins/Emitters/{EmittersMain.js → EmittersEngine.js} +0 -0
- package/esm/Plugins/Emitters/IEmitterShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Options/Classes/Emitter.d.ts +1 -0
- package/esm/Plugins/Emitters/Options/Classes/Emitter.js +1 -0
- package/esm/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +1 -0
- package/esm/Plugins/Emitters/ShapeManager.d.ts +6 -3
- package/esm/Plugins/Emitters/ShapeManager.js +16 -4
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Shapes/Circle/CircleShape.js +2 -2
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +2 -2
- package/esm/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -4
- package/esm/Plugins/Emitters/index.d.ts +3 -3
- package/esm/Plugins/Emitters/index.js +25 -6
- package/esm/engine.d.ts +3 -0
- package/esm/engine.js +20 -16
- package/package.json +1 -2
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/tsparticles.engine.js +227 -134
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +205 -116
- package/tsparticles.interaction.external.attract.min.js +2 -2
- package/tsparticles.interaction.external.bounce.js +205 -116
- package/tsparticles.interaction.external.bounce.min.js +2 -2
- package/tsparticles.interaction.external.bubble.js +205 -116
- package/tsparticles.interaction.external.bubble.min.js +2 -2
- package/tsparticles.interaction.external.connect.js +205 -116
- package/tsparticles.interaction.external.connect.min.js +2 -2
- package/tsparticles.interaction.external.grab.js +205 -116
- package/tsparticles.interaction.external.grab.min.js +2 -2
- package/tsparticles.interaction.external.repulse.js +205 -116
- package/tsparticles.interaction.external.repulse.min.js +2 -2
- package/tsparticles.interaction.external.trail.js +205 -116
- package/tsparticles.interaction.external.trail.min.js +2 -2
- package/tsparticles.interaction.particles.attract.js +205 -116
- package/tsparticles.interaction.particles.attract.min.js +2 -2
- package/tsparticles.interaction.particles.collisions.js +205 -116
- package/tsparticles.interaction.particles.collisions.min.js +2 -2
- package/tsparticles.interaction.particles.links.js +205 -116
- package/tsparticles.interaction.particles.links.min.js +2 -2
- package/tsparticles.js +347 -172
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +205 -116
- package/tsparticles.plugins.absorbers.min.js +2 -2
- package/tsparticles.plugins.emitters.js +330 -159
- package/tsparticles.plugins.emitters.min.js +2 -2
- package/tsparticles.plugins.polygonMask.js +205 -116
- package/tsparticles.plugins.polygonMask.min.js +2 -2
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.js +208 -119
- package/tsparticles.shape.image.min.js +2 -2
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.js +205 -116
- package/tsparticles.shape.text.min.js +2 -2
- package/tsparticles.slim.js +227 -134
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +205 -116
- package/tsparticles.updater.angle.min.js +2 -2
- package/tsparticles.updater.color.js +205 -116
- package/tsparticles.updater.color.min.js +2 -2
- package/tsparticles.updater.life.js +205 -116
- package/tsparticles.updater.life.min.js +2 -2
- package/tsparticles.updater.opacity.js +205 -116
- package/tsparticles.updater.opacity.min.js +2 -2
- package/tsparticles.updater.outModes.js +205 -116
- package/tsparticles.updater.outModes.min.js +2 -2
- package/tsparticles.updater.roll.js +205 -116
- package/tsparticles.updater.roll.min.js +2 -2
- package/tsparticles.updater.size.js +205 -116
- package/tsparticles.updater.size.min.js +2 -2
- package/tsparticles.updater.strokeColor.js +205 -116
- package/tsparticles.updater.strokeColor.min.js +2 -2
- package/tsparticles.updater.tilt.js +205 -116
- package/tsparticles.updater.tilt.min.js +2 -2
- package/tsparticles.updater.wobble.js +205 -116
- package/tsparticles.updater.wobble.min.js +2 -2
- package/umd/Core/Canvas.d.ts +35 -0
- package/umd/Core/Canvas.js +328 -0
- package/umd/Core/Container.d.ts +68 -0
- package/umd/Core/Container.js +405 -0
- package/umd/Core/Interfaces/Colors.d.ts +33 -0
- package/umd/Core/Interfaces/Colors.js +12 -0
- package/umd/Core/Interfaces/Gradients.d.ts +21 -0
- package/umd/Core/Interfaces/Gradients.js +12 -0
- package/umd/Core/Interfaces/IAttract.d.ts +7 -0
- package/umd/Core/Interfaces/IAttract.js +12 -0
- package/umd/Core/Interfaces/IBounds.d.ts +6 -0
- package/umd/Core/Interfaces/IBounds.js +12 -0
- package/umd/Core/Interfaces/IBubble.d.ts +4 -0
- package/umd/Core/Interfaces/IBubble.js +12 -0
- package/umd/Core/Interfaces/IBubbleParticleData.d.ts +9 -0
- package/umd/Core/Interfaces/IBubbleParticleData.js +12 -0
- package/umd/Core/Interfaces/ICircleBouncer.d.ts +9 -0
- package/umd/Core/Interfaces/ICircleBouncer.js +12 -0
- package/umd/Core/Interfaces/IContainerInteractivity.d.ts +6 -0
- package/umd/Core/Interfaces/IContainerInteractivity.js +12 -0
- package/umd/Core/Interfaces/IContainerPlugin.d.ts +32 -0
- package/umd/Core/Interfaces/IContainerPlugin.js +12 -0
- package/umd/Core/Interfaces/ICoordinates.d.ts +7 -0
- package/umd/Core/Interfaces/ICoordinates.js +12 -0
- package/umd/Core/Interfaces/IDelta.d.ts +4 -0
- package/umd/Core/Interfaces/IDelta.js +12 -0
- package/umd/Core/Interfaces/IDimension.d.ts +4 -0
- package/umd/Core/Interfaces/IDimension.js +12 -0
- package/umd/Core/Interfaces/IDistance.d.ts +4 -0
- package/umd/Core/Interfaces/IDistance.js +12 -0
- package/umd/Core/Interfaces/IExternalInteractor.d.ts +6 -0
- package/umd/Core/Interfaces/IExternalInteractor.js +12 -0
- package/umd/Core/Interfaces/IInteractor.d.ts +6 -0
- package/umd/Core/Interfaces/IInteractor.js +12 -0
- package/umd/Core/Interfaces/IMouseData.d.ts +9 -0
- package/umd/Core/Interfaces/IMouseData.js +12 -0
- package/umd/Core/Interfaces/IMovePathGenerator.d.ts +8 -0
- package/umd/Core/Interfaces/IMovePathGenerator.js +12 -0
- package/umd/Core/Interfaces/IParticle.d.ts +55 -0
- package/umd/Core/Interfaces/IParticle.js +12 -0
- package/umd/Core/Interfaces/IParticleGradientAnimation.d.ts +8 -0
- package/umd/Core/Interfaces/IParticleGradientAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleGradientColorAnimation.d.ts +7 -0
- package/umd/Core/Interfaces/IParticleGradientColorAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleHslAnimation.d.ts +6 -0
- package/umd/Core/Interfaces/IParticleHslAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleLife.d.ts +7 -0
- package/umd/Core/Interfaces/IParticleLife.js +12 -0
- package/umd/Core/Interfaces/IParticleLoops.d.ts +4 -0
- package/umd/Core/Interfaces/IParticleLoops.js +12 -0
- package/umd/Core/Interfaces/IParticleRetinaProps.d.ts +12 -0
- package/umd/Core/Interfaces/IParticleRetinaProps.js +12 -0
- package/umd/Core/Interfaces/IParticleRoll.d.ts +9 -0
- package/umd/Core/Interfaces/IParticleRoll.js +12 -0
- package/umd/Core/Interfaces/IParticleSpin.d.ts +9 -0
- package/umd/Core/Interfaces/IParticleSpin.js +12 -0
- package/umd/Core/Interfaces/IParticleUpdater.d.ts +9 -0
- package/umd/Core/Interfaces/IParticleUpdater.js +12 -0
- package/umd/Core/Interfaces/IParticleValueAnimation.d.ts +17 -0
- package/umd/Core/Interfaces/IParticleValueAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleWobble.d.ts +4 -0
- package/umd/Core/Interfaces/IParticleWobble.js +12 -0
- package/umd/Core/Interfaces/IParticlesFrequencies.d.ts +4 -0
- package/umd/Core/Interfaces/IParticlesFrequencies.js +12 -0
- package/umd/Core/Interfaces/IParticlesInteractor.d.ts +7 -0
- package/umd/Core/Interfaces/IParticlesInteractor.js +12 -0
- package/umd/Core/Interfaces/IPlugin.d.ts +11 -0
- package/umd/Core/Interfaces/IPlugin.js +12 -0
- package/umd/Core/Interfaces/IRangeValue.d.ts +4 -0
- package/umd/Core/Interfaces/IRangeValue.js +12 -0
- package/umd/Core/Interfaces/IRectSideResult.d.ts +5 -0
- package/umd/Core/Interfaces/IRectSideResult.js +12 -0
- package/umd/Core/Interfaces/IRepulse.d.ts +7 -0
- package/umd/Core/Interfaces/IRepulse.js +12 -0
- package/umd/Core/Interfaces/IShapeDrawer.d.ts +10 -0
- package/umd/Core/Interfaces/IShapeDrawer.js +12 -0
- package/umd/Core/Interfaces/IShapeValues.d.ts +8 -0
- package/umd/Core/Interfaces/IShapeValues.js +12 -0
- package/umd/Core/Interfaces/index.d.ts +36 -0
- package/umd/Core/Interfaces/index.js +58 -0
- package/umd/Core/Loader.d.ts +32 -0
- package/umd/Core/Loader.js +193 -0
- package/umd/Core/Particle.d.ts +71 -0
- package/umd/Core/Particle.js +394 -0
- package/umd/Core/Particles.d.ts +46 -0
- package/umd/Core/Particles.js +331 -0
- package/umd/Core/Retina.d.ts +26 -0
- package/umd/Core/Retina.js +107 -0
- package/umd/Core/Utils/Circle.d.ts +8 -0
- package/umd/Core/Utils/Circle.js +52 -0
- package/umd/Core/Utils/CircleWarp.d.ts +9 -0
- package/umd/Core/Utils/CircleWarp.js +70 -0
- package/umd/Core/Utils/Constants.d.ts +18 -0
- package/umd/Core/Utils/Constants.js +32 -0
- package/umd/Core/Utils/EventListeners.d.ts +33 -0
- package/umd/Core/Utils/EventListeners.js +383 -0
- package/umd/Core/Utils/ExternalInteractorBase.d.ts +12 -0
- package/umd/Core/Utils/ExternalInteractorBase.js +20 -0
- package/umd/Core/Utils/FrameManager.d.ts +6 -0
- package/umd/Core/Utils/FrameManager.js +53 -0
- package/umd/Core/Utils/InteractionManager.d.ts +14 -0
- package/umd/Core/Utils/InteractionManager.js +69 -0
- package/umd/Core/Utils/ParticlesInteractorBase.d.ts +12 -0
- package/umd/Core/Utils/ParticlesInteractorBase.js +20 -0
- package/umd/Core/Utils/ParticlesMover.d.ts +13 -0
- package/umd/Core/Utils/ParticlesMover.js +196 -0
- package/umd/Core/Utils/Plugins.d.ts +36 -0
- package/umd/Core/Utils/Plugins.js +108 -0
- package/umd/Core/Utils/Point.d.ts +7 -0
- package/umd/Core/Utils/Point.js +20 -0
- package/umd/Core/Utils/QuadTree.d.ts +23 -0
- package/umd/Core/Utils/QuadTree.js +88 -0
- package/umd/Core/Utils/Range.d.ts +7 -0
- package/umd/Core/Utils/Range.js +22 -0
- package/umd/Core/Utils/Rectangle.d.ts +8 -0
- package/umd/Core/Utils/Rectangle.js +48 -0
- package/umd/Core/Utils/Vector.d.ts +29 -0
- package/umd/Core/Utils/Vector.js +106 -0
- package/umd/Core/Utils/Vector3d.d.ts +18 -0
- package/umd/Core/Utils/Vector3d.js +68 -0
- package/umd/Core/Utils/index.d.ts +16 -0
- package/umd/Core/Utils/index.js +38 -0
- package/umd/Core/index.d.ts +8 -0
- package/umd/Core/index.js +30 -0
- package/umd/Enums/AnimationStatus.d.ts +4 -0
- package/umd/Enums/AnimationStatus.js +12 -0
- package/umd/Enums/Directions/MoveDirection.d.ts +12 -0
- package/umd/Enums/Directions/MoveDirection.js +12 -0
- package/umd/Enums/Directions/OutModeDirection.d.ts +6 -0
- package/umd/Enums/Directions/OutModeDirection.js +12 -0
- package/umd/Enums/Directions/RotateDirection.d.ts +6 -0
- package/umd/Enums/Directions/RotateDirection.js +12 -0
- package/umd/Enums/Directions/TiltDirection.d.ts +6 -0
- package/umd/Enums/Directions/TiltDirection.js +12 -0
- package/umd/Enums/Directions/index.d.ts +4 -0
- package/umd/Enums/Directions/index.js +26 -0
- package/umd/Enums/InteractivityDetect.d.ts +5 -0
- package/umd/Enums/InteractivityDetect.js +12 -0
- package/umd/Enums/Modes/ClickMode.d.ts +9 -0
- package/umd/Enums/Modes/ClickMode.js +12 -0
- package/umd/Enums/Modes/CollisionMode.d.ts +5 -0
- package/umd/Enums/Modes/CollisionMode.js +12 -0
- package/umd/Enums/Modes/DestroyMode.d.ts +4 -0
- package/umd/Enums/Modes/DestroyMode.js +12 -0
- package/umd/Enums/Modes/DivMode.d.ts +5 -0
- package/umd/Enums/Modes/DivMode.js +12 -0
- package/umd/Enums/Modes/HoverMode.d.ts +11 -0
- package/umd/Enums/Modes/HoverMode.js +12 -0
- package/umd/Enums/Modes/OutMode.d.ts +10 -0
- package/umd/Enums/Modes/OutMode.js +12 -0
- package/umd/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/umd/Enums/Modes/ResponsiveMode.js +12 -0
- package/umd/Enums/Modes/RollMode.d.ts +5 -0
- package/umd/Enums/Modes/RollMode.js +12 -0
- package/umd/Enums/Modes/SizeMode.d.ts +4 -0
- package/umd/Enums/Modes/SizeMode.js +12 -0
- package/umd/Enums/Modes/ThemeMode.d.ts +5 -0
- package/umd/Enums/Modes/ThemeMode.js +12 -0
- package/umd/Enums/Modes/index.d.ts +10 -0
- package/umd/Enums/Modes/index.js +32 -0
- package/umd/Enums/Types/AlterType.d.ts +4 -0
- package/umd/Enums/Types/AlterType.js +12 -0
- package/umd/Enums/Types/DestroyType.d.ts +5 -0
- package/umd/Enums/Types/DestroyType.js +12 -0
- package/umd/Enums/Types/DivType.d.ts +4 -0
- package/umd/Enums/Types/DivType.js +12 -0
- package/umd/Enums/Types/EasingType.d.ts +10 -0
- package/umd/Enums/Types/EasingType.js +12 -0
- package/umd/Enums/Types/GradientType.d.ts +5 -0
- package/umd/Enums/Types/GradientType.js +12 -0
- package/umd/Enums/Types/InteractorType.d.ts +4 -0
- package/umd/Enums/Types/InteractorType.js +12 -0
- package/umd/Enums/Types/OrbitType.d.ts +4 -0
- package/umd/Enums/Types/OrbitType.js +12 -0
- package/umd/Enums/Types/ShapeType.d.ts +13 -0
- package/umd/Enums/Types/ShapeType.js +12 -0
- package/umd/Enums/Types/StartValueType.d.ts +5 -0
- package/umd/Enums/Types/StartValueType.js +12 -0
- package/umd/Enums/Types/index.d.ts +9 -0
- package/umd/Enums/Types/index.js +31 -0
- package/umd/Enums/index.d.ts +5 -0
- package/umd/Enums/index.js +27 -0
- package/umd/Interactions/External/Attract/Attractor.d.ts +11 -0
- package/umd/Interactions/External/Attract/Attractor.js +85 -0
- package/umd/Interactions/External/Attract/index.d.ts +2 -0
- package/umd/Interactions/External/Attract/index.js +18 -0
- package/umd/Interactions/External/Bounce/Bouncer.d.ts +11 -0
- package/umd/Interactions/External/Bounce/Bouncer.js +77 -0
- package/umd/Interactions/External/Bounce/index.d.ts +2 -0
- package/umd/Interactions/External/Bounce/index.js +18 -0
- package/umd/Interactions/External/Bubble/Bubbler.d.ts +16 -0
- package/umd/Interactions/External/Bubble/Bubbler.js +261 -0
- package/umd/Interactions/External/Bubble/IBubblerProcessParam.d.ts +10 -0
- package/umd/Interactions/External/Bubble/IBubblerProcessParam.js +12 -0
- package/umd/Interactions/External/Bubble/ProcessBubbleType.d.ts +5 -0
- package/umd/Interactions/External/Bubble/ProcessBubbleType.js +12 -0
- package/umd/Interactions/External/Bubble/index.d.ts +2 -0
- package/umd/Interactions/External/Bubble/index.js +18 -0
- package/umd/Interactions/External/Connect/Connector.d.ts +8 -0
- package/umd/Interactions/External/Connect/Connector.js +51 -0
- package/umd/Interactions/External/Connect/index.d.ts +2 -0
- package/umd/Interactions/External/Connect/index.js +18 -0
- package/umd/Interactions/External/Grab/Grabber.d.ts +8 -0
- package/umd/Interactions/External/Grab/Grabber.js +57 -0
- package/umd/Interactions/External/Grab/index.d.ts +2 -0
- package/umd/Interactions/External/Grab/index.js +18 -0
- package/umd/Interactions/External/Repulse/Repulser.d.ts +12 -0
- package/umd/Interactions/External/Repulse/Repulser.js +108 -0
- package/umd/Interactions/External/Repulse/index.d.ts +2 -0
- package/umd/Interactions/External/Repulse/index.js +18 -0
- package/umd/Interactions/External/Trail/TrailMaker.d.ts +10 -0
- package/umd/Interactions/External/Trail/TrailMaker.js +63 -0
- package/umd/Interactions/External/Trail/index.d.ts +2 -0
- package/umd/Interactions/External/Trail/index.js +18 -0
- package/umd/Interactions/Particles/Attract/Attractor.d.ts +8 -0
- package/umd/Interactions/Particles/Attract/Attractor.js +40 -0
- package/umd/Interactions/Particles/Attract/index.d.ts +2 -0
- package/umd/Interactions/Particles/Attract/index.js +18 -0
- package/umd/Interactions/Particles/Collisions/Collider.d.ts +10 -0
- package/umd/Interactions/Particles/Collisions/Collider.js +119 -0
- package/umd/Interactions/Particles/Collisions/index.d.ts +2 -0
- package/umd/Interactions/Particles/Collisions/index.js +18 -0
- package/umd/Interactions/Particles/Links/ILink.d.ts +9 -0
- package/umd/Interactions/Particles/Links/ILink.js +12 -0
- package/umd/Interactions/Particles/Links/LinkInstance.d.ts +10 -0
- package/umd/Interactions/Particles/Links/LinkInstance.js +134 -0
- package/umd/Interactions/Particles/Links/LinkParticle.d.ts +5 -0
- package/umd/Interactions/Particles/Links/LinkParticle.js +12 -0
- package/umd/Interactions/Particles/Links/Linker.d.ts +10 -0
- package/umd/Interactions/Particles/Links/Linker.js +115 -0
- package/umd/Interactions/Particles/Links/index.d.ts +2 -0
- package/umd/Interactions/Particles/Links/index.js +20 -0
- package/umd/Interactions/Particles/Links/interaction.d.ts +2 -0
- package/umd/Interactions/Particles/Links/interaction.js +18 -0
- package/umd/Interactions/Particles/Links/plugin.d.ts +2 -0
- package/umd/Interactions/Particles/Links/plugin.js +32 -0
- package/umd/Options/Classes/AnimatableColor.d.ts +11 -0
- package/umd/Options/Classes/AnimatableColor.js +50 -0
- package/umd/Options/Classes/AnimatableGradient.d.ts +53 -0
- package/umd/Options/Classes/AnimatableGradient.js +156 -0
- package/umd/Options/Classes/AnimationOptions.d.ts +11 -0
- package/umd/Options/Classes/AnimationOptions.js +39 -0
- package/umd/Options/Classes/Background/Background.d.ts +14 -0
- package/umd/Options/Classes/Background/Background.js +49 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +38 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +32 -0
- package/umd/Options/Classes/ColorAnimation.d.ts +12 -0
- package/umd/Options/Classes/ColorAnimation.js +44 -0
- package/umd/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
- package/umd/Options/Classes/FullScreen/FullScreen.js +31 -0
- package/umd/Options/Classes/HslAnimation.d.ts +11 -0
- package/umd/Options/Classes/HslAnimation.js +30 -0
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +31 -0
- package/umd/Options/Classes/Interactivity/Events/DivEvent.d.ts +18 -0
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +64 -0
- package/umd/Options/Classes/Interactivity/Events/Events.d.ts +20 -0
- package/umd/Options/Classes/Interactivity/Events/Events.js +68 -0
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +34 -0
- package/umd/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Events/Parallax.js +35 -0
- package/umd/Options/Classes/Interactivity/Interactivity.d.ts +15 -0
- package/umd/Options/Classes/Interactivity/Interactivity.js +51 -0
- package/umd/Options/Classes/Interactivity/Modes/Attract.d.ts +14 -0
- package/umd/Options/Classes/Interactivity/Modes/Attract.js +47 -0
- package/umd/Options/Classes/Interactivity/Modes/Bounce.d.ts +8 -0
- package/umd/Options/Classes/Interactivity/Modes/Bounce.js +27 -0
- package/umd/Options/Classes/Interactivity/Modes/Bubble.d.ts +9 -0
- package/umd/Options/Classes/Interactivity/Modes/Bubble.js +37 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +13 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleBase.js +53 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.js +41 -0
- package/umd/Options/Classes/Interactivity/Modes/Connect.d.ts +15 -0
- package/umd/Options/Classes/Interactivity/Modes/Connect.js +47 -0
- package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +8 -0
- package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.js +25 -0
- package/umd/Options/Classes/Interactivity/Modes/Grab.d.ts +14 -0
- package/umd/Options/Classes/Interactivity/Modes/Grab.js +43 -0
- package/umd/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Modes/GrabLinks.js +39 -0
- package/umd/Options/Classes/Interactivity/Modes/Light.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/Light.js +29 -0
- package/umd/Options/Classes/Interactivity/Modes/LightArea.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/LightArea.js +30 -0
- package/umd/Options/Classes/Interactivity/Modes/LightGradient.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/LightGradient.js +30 -0
- package/umd/Options/Classes/Interactivity/Modes/LightShadow.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/LightShadow.js +31 -0
- package/umd/Options/Classes/Interactivity/Modes/Modes.d.ts +29 -0
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +55 -0
- package/umd/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Modes/Push.js +46 -0
- package/umd/Options/Classes/Interactivity/Modes/Remove.d.ts +10 -0
- package/umd/Options/Classes/Interactivity/Modes/Remove.js +35 -0
- package/umd/Options/Classes/Interactivity/Modes/Repulse.d.ts +9 -0
- package/umd/Options/Classes/Interactivity/Modes/Repulse.js +37 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +14 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseBase.js +47 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.js +49 -0
- package/umd/Options/Classes/Interactivity/Modes/Slow.d.ts +11 -0
- package/umd/Options/Classes/Interactivity/Modes/Slow.js +36 -0
- package/umd/Options/Classes/Interactivity/Modes/Trail.d.ts +12 -0
- package/umd/Options/Classes/Interactivity/Modes/Trail.js +39 -0
- package/umd/Options/Classes/ManualParticle.d.ts +10 -0
- package/umd/Options/Classes/ManualParticle.js +32 -0
- package/umd/Options/Classes/Motion/Motion.d.ts +10 -0
- package/umd/Options/Classes/Motion/Motion.js +30 -0
- package/umd/Options/Classes/Motion/MotionReduce.d.ts +9 -0
- package/umd/Options/Classes/Motion/MotionReduce.js +31 -0
- package/umd/Options/Classes/Options.d.ts +48 -0
- package/umd/Options/Classes/Options.js +184 -0
- package/umd/Options/Classes/OptionsColor.d.ts +10 -0
- package/umd/Options/Classes/OptionsColor.js +38 -0
- package/umd/Options/Classes/Particles/Bounce/Bounce.d.ts +10 -0
- package/umd/Options/Classes/Particles/Bounce/Bounce.js +28 -0
- package/umd/Options/Classes/Particles/Bounce/BounceFactor.d.ts +4 -0
- package/umd/Options/Classes/Particles/Bounce/BounceFactor.js +22 -0
- package/umd/Options/Classes/Particles/Collisions/Collisions.d.ts +14 -0
- package/umd/Options/Classes/Particles/Collisions/Collisions.js +37 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.js +31 -0
- package/umd/Options/Classes/Particles/Destroy/Destroy.d.ts +11 -0
- package/umd/Options/Classes/Particles/Destroy/Destroy.js +30 -0
- package/umd/Options/Classes/Particles/Destroy/Split.d.ts +15 -0
- package/umd/Options/Classes/Particles/Destroy/Split.js +41 -0
- package/umd/Options/Classes/Particles/Destroy/SplitFactor.d.ts +4 -0
- package/umd/Options/Classes/Particles/Destroy/SplitFactor.js +21 -0
- package/umd/Options/Classes/Particles/Destroy/SplitRate.d.ts +4 -0
- package/umd/Options/Classes/Particles/Destroy/SplitRate.js +21 -0
- package/umd/Options/Classes/Particles/Life/Life.d.ts +12 -0
- package/umd/Options/Classes/Particles/Life/Life.js +33 -0
- package/umd/Options/Classes/Particles/Life/LifeDelay.d.ts +9 -0
- package/umd/Options/Classes/Particles/Life/LifeDelay.js +30 -0
- package/umd/Options/Classes/Particles/Life/LifeDuration.d.ts +9 -0
- package/umd/Options/Classes/Particles/Life/LifeDuration.js +31 -0
- package/umd/Options/Classes/Particles/Links/Links.d.ts +22 -0
- package/umd/Options/Classes/Particles/Links/Links.js +67 -0
- package/umd/Options/Classes/Particles/Links/LinksShadow.d.ts +11 -0
- package/umd/Options/Classes/Particles/Links/LinksShadow.js +35 -0
- package/umd/Options/Classes/Particles/Links/LinksTriangle.d.ts +12 -0
- package/umd/Options/Classes/Particles/Links/LinksTriangle.js +38 -0
- package/umd/Options/Classes/Particles/Move/Attract.d.ts +15 -0
- package/umd/Options/Classes/Particles/Move/Attract.js +56 -0
- package/umd/Options/Classes/Particles/Move/Move.d.ts +44 -0
- package/umd/Options/Classes/Particles/Move/Move.js +142 -0
- package/umd/Options/Classes/Particles/Move/MoveAngle.d.ts +9 -0
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +31 -0
- package/umd/Options/Classes/Particles/Move/MoveGravity.d.ts +11 -0
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +39 -0
- package/umd/Options/Classes/Particles/Move/OutModes.d.ts +13 -0
- package/umd/Options/Classes/Particles/Move/OutModes.js +32 -0
- package/umd/Options/Classes/Particles/Move/Path/Path.d.ts +13 -0
- package/umd/Options/Classes/Particles/Move/Path/Path.js +40 -0
- package/umd/Options/Classes/Particles/Move/Path/PathDelay.d.ts +4 -0
- package/umd/Options/Classes/Particles/Move/Path/PathDelay.js +20 -0
- package/umd/Options/Classes/Particles/Move/Spin.d.ts +11 -0
- package/umd/Options/Classes/Particles/Move/Spin.js +33 -0
- package/umd/Options/Classes/Particles/Move/Trail.d.ts +11 -0
- package/umd/Options/Classes/Particles/Move/Trail.js +35 -0
- package/umd/Options/Classes/Particles/Number/Density.d.ts +12 -0
- package/umd/Options/Classes/Particles/Number/Density.js +43 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +42 -0
- package/umd/Options/Classes/Particles/Opacity/Opacity.d.ts +12 -0
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +43 -0
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +14 -0
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +54 -0
- package/umd/Options/Classes/Particles/Orbit/Orbit.d.ts +18 -0
- package/umd/Options/Classes/Particles/Orbit/Orbit.js +48 -0
- package/umd/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +7 -0
- package/umd/Options/Classes/Particles/Orbit/OrbitRotation.js +29 -0
- package/umd/Options/Classes/Particles/ParticlesOptions.d.ts +58 -0
- package/umd/Options/Classes/Particles/ParticlesOptions.js +153 -0
- package/umd/Options/Classes/Particles/Repulse/Repulse.d.ts +13 -0
- package/umd/Options/Classes/Particles/Repulse/Repulse.js +46 -0
- package/umd/Options/Classes/Particles/Roll/Roll.d.ts +16 -0
- package/umd/Options/Classes/Particles/Roll/Roll.js +45 -0
- package/umd/Options/Classes/Particles/Roll/RollLight.d.ts +9 -0
- package/umd/Options/Classes/Particles/Roll/RollLight.js +31 -0
- package/umd/Options/Classes/Particles/Rotate/Rotate.d.ts +13 -0
- package/umd/Options/Classes/Particles/Rotate/Rotate.js +38 -0
- package/umd/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +10 -0
- package/umd/Options/Classes/Particles/Rotate/RotateAnimation.js +35 -0
- package/umd/Options/Classes/Particles/Shadow.d.ts +13 -0
- package/umd/Options/Classes/Particles/Shadow.js +48 -0
- package/umd/Options/Classes/Particles/Shape/Shape.d.ts +27 -0
- package/umd/Options/Classes/Particles/Shape/Shape.js +113 -0
- package/umd/Options/Classes/Particles/Size/Size.d.ts +12 -0
- package/umd/Options/Classes/Particles/Size/Size.js +43 -0
- package/umd/Options/Classes/Particles/Size/SizeAnimation.d.ts +14 -0
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +54 -0
- package/umd/Options/Classes/Particles/Stroke.d.ts +11 -0
- package/umd/Options/Classes/Particles/Stroke.js +34 -0
- package/umd/Options/Classes/Particles/Tilt/Tilt.d.ts +13 -0
- package/umd/Options/Classes/Particles/Tilt/Tilt.js +38 -0
- package/umd/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +10 -0
- package/umd/Options/Classes/Particles/Tilt/TiltAnimation.js +35 -0
- package/umd/Options/Classes/Particles/Twinkle/Twinkle.d.ts +10 -0
- package/umd/Options/Classes/Particles/Twinkle/Twinkle.js +28 -0
- package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +12 -0
- package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.js +39 -0
- package/umd/Options/Classes/Particles/Wobble/Wobble.d.ts +10 -0
- package/umd/Options/Classes/Particles/Wobble/Wobble.js +36 -0
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +38 -0
- package/umd/Options/Classes/Random.d.ts +9 -0
- package/umd/Options/Classes/Random.js +31 -0
- package/umd/Options/Classes/Responsive.d.ts +12 -0
- package/umd/Options/Classes/Responsive.js +41 -0
- package/umd/Options/Classes/Theme/Theme.d.ts +12 -0
- package/umd/Options/Classes/Theme/Theme.js +34 -0
- package/umd/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
- package/umd/Options/Classes/Theme/ThemeDefault.js +35 -0
- package/umd/Options/Classes/ValueWithRandom.d.ts +10 -0
- package/umd/Options/Classes/ValueWithRandom.js +36 -0
- package/umd/Options/Interfaces/Background/IBackground.d.ts +9 -0
- package/umd/Options/Interfaces/Background/IBackground.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +5 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +12 -0
- package/umd/Options/Interfaces/FullScreen/IFullScreen.d.ts +4 -0
- package/umd/Options/Interfaces/FullScreen/IFullScreen.js +12 -0
- package/umd/Options/Interfaces/IAnimatable.d.ts +4 -0
- package/umd/Options/Interfaces/IAnimatable.js +12 -0
- package/umd/Options/Interfaces/IAnimatableColor.d.ts +6 -0
- package/umd/Options/Interfaces/IAnimatableColor.js +12 -0
- package/umd/Options/Interfaces/IAnimatableGradient.d.ts +8 -0
- package/umd/Options/Interfaces/IAnimatableGradient.js +12 -0
- package/umd/Options/Interfaces/IAnimation.d.ts +6 -0
- package/umd/Options/Interfaces/IAnimation.js +12 -0
- package/umd/Options/Interfaces/IColorAnimation.d.ts +5 -0
- package/umd/Options/Interfaces/IColorAnimation.js +12 -0
- package/umd/Options/Interfaces/IHslAnimation.d.ts +6 -0
- package/umd/Options/Interfaces/IHslAnimation.js +12 -0
- package/umd/Options/Interfaces/IManualParticle.d.ts +7 -0
- package/umd/Options/Interfaces/IManualParticle.js +12 -0
- package/umd/Options/Interfaces/IOptionLoader.d.ts +4 -0
- package/umd/Options/Interfaces/IOptionLoader.js +12 -0
- package/umd/Options/Interfaces/IOptions.d.ts +34 -0
- package/umd/Options/Interfaces/IOptions.js +12 -0
- package/umd/Options/Interfaces/IOptionsColor.d.ts +2 -0
- package/umd/Options/Interfaces/IOptionsColor.js +12 -0
- package/umd/Options/Interfaces/IOptionsGradient.d.ts +13 -0
- package/umd/Options/Interfaces/IOptionsGradient.js +12 -0
- package/umd/Options/Interfaces/IRandom.d.ts +4 -0
- package/umd/Options/Interfaces/IRandom.js +12 -0
- package/umd/Options/Interfaces/IResponsive.d.ts +8 -0
- package/umd/Options/Interfaces/IResponsive.js +12 -0
- package/umd/Options/Interfaces/IValueWithRandom.d.ts +6 -0
- package/umd/Options/Interfaces/IValueWithRandom.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +11 -0
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +12 -0
- package/umd/Options/Interfaces/Interactivity/IInteractivity.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/IInteractivity.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IAttract.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +3 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBounce.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubble.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +10 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +4 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +8 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnect.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +7 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrab.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +7 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILight.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILight.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.d.ts +22 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IPush.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +4 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRemove.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +6 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +9 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +4 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +5 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ISlow.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +8 -0
- package/umd/Options/Interfaces/Interactivity/Modes/ITrail.js +12 -0
- package/umd/Options/Interfaces/Motion/IMotion.d.ts +5 -0
- package/umd/Options/Interfaces/Motion/IMotion.js +12 -0
- package/umd/Options/Interfaces/Motion/IMotionReduce.d.ts +4 -0
- package/umd/Options/Interfaces/Motion/IMotionReduce.js +12 -0
- package/umd/Options/Interfaces/Particles/Bounce/IBounce.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Bounce/IBounce.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +9 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisions.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +12 -0
- package/umd/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Destroy/IDestroy.js +12 -0
- package/umd/Options/Interfaces/Particles/Destroy/ISplit.d.ts +10 -0
- package/umd/Options/Interfaces/Particles/Destroy/ISplit.js +12 -0
- package/umd/Options/Interfaces/Particles/IParticles.d.ts +52 -0
- package/umd/Options/Interfaces/Particles/IParticles.js +12 -0
- package/umd/Options/Interfaces/Particles/IShadow.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/IShadow.js +12 -0
- package/umd/Options/Interfaces/Particles/IStroke.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/IStroke.js +12 -0
- package/umd/Options/Interfaces/Particles/Life/ILife.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Life/ILife.js +12 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDelay.js +12 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Life/ILifeDuration.js +12 -0
- package/umd/Options/Interfaces/Particles/Links/ILinks.d.ts +17 -0
- package/umd/Options/Interfaces/Particles/Links/ILinks.js +12 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksShadow.js +12 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IAttract.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Move/IAttract.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMove.d.ts +35 -0
- package/umd/Options/Interfaces/Particles/Move/IMove.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Move/IOutModes.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Move/ISpin.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/ITrail.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Move/ITrail.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/Path/IPath.d.ts +9 -0
- package/umd/Options/Interfaces/Particles/Move/Path/IPath.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Number/IDensity.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +12 -0
- package/umd/Options/Interfaces/Particles/Orbit/IOrbit.js +12 -0
- package/umd/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Repulse/IRepulse.js +12 -0
- package/umd/Options/Interfaces/Particles/Roll/IRoll.d.ts +12 -0
- package/umd/Options/Interfaces/Particles/Roll/IRoll.js +12 -0
- package/umd/Options/Interfaces/Particles/Roll/IRollLight.d.ts +4 -0
- package/umd/Options/Interfaces/Particles/Roll/IRollLight.js +12 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotate.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotate.js +12 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShape.d.ts +16 -0
- package/umd/Options/Interfaces/Particles/Shape/IShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +1 -0
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +23 -0
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISize.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Size/ISize.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITilt.d.ts +8 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITilt.js +12 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +5 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.js +12 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +7 -0
- package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.js +12 -0
- package/umd/Options/Interfaces/Particles/Wobble/IWobble.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/Wobble/IWobble.js +12 -0
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +6 -0
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +12 -0
- package/umd/Options/Interfaces/Theme/ITheme.d.ts +8 -0
- package/umd/Options/Interfaces/Theme/ITheme.js +12 -0
- package/umd/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
- package/umd/Options/Interfaces/Theme/IThemeDefault.js +12 -0
- package/umd/Plugins/Absorbers/AbsorberContainer.d.ts +7 -0
- package/umd/Plugins/Absorbers/AbsorberContainer.js +12 -0
- package/umd/Plugins/Absorbers/AbsorberInstance.d.ts +33 -0
- package/umd/Plugins/Absorbers/AbsorberInstance.js +172 -0
- package/umd/Plugins/Absorbers/Absorbers.d.ts +22 -0
- package/umd/Plugins/Absorbers/Absorbers.js +128 -0
- package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
- package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.js +12 -0
- package/umd/Plugins/Absorbers/Enums/index.d.ts +1 -0
- package/umd/Plugins/Absorbers/Enums/index.js +23 -0
- package/umd/Plugins/Absorbers/Options/Classes/Absorber.d.ts +18 -0
- package/umd/Plugins/Absorbers/Options/Classes/Absorber.js +57 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +11 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.js +40 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +9 -0
- package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.js +31 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +13 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.js +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.js +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +6 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.js +12 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +4 -0
- package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.js +12 -0
- package/umd/Plugins/Absorbers/index.d.ts +2 -0
- package/umd/Plugins/Absorbers/index.js +90 -0
- package/umd/Plugins/Emitters/EmitterContainer.d.ts +10 -0
- package/umd/Plugins/Emitters/EmitterContainer.js +12 -0
- package/umd/Plugins/Emitters/EmitterInstance.d.ts +45 -0
- package/umd/Plugins/Emitters/EmitterInstance.js +278 -0
- package/umd/Plugins/Emitters/Emitters.d.ts +25 -0
- package/umd/Plugins/Emitters/Emitters.js +163 -0
- package/umd/Plugins/Emitters/EmittersEngine.d.ts +7 -0
- package/umd/Plugins/Emitters/EmittersEngine.js +12 -0
- package/umd/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
- package/umd/Plugins/Emitters/Enums/EmitterClickMode.js +12 -0
- package/umd/Plugins/Emitters/Enums/EmitterShapeType.d.ts +4 -0
- package/umd/Plugins/Emitters/Enums/EmitterShapeType.js +12 -0
- package/umd/Plugins/Emitters/Enums/index.d.ts +2 -0
- package/umd/Plugins/Emitters/Enums/index.js +24 -0
- package/umd/Plugins/Emitters/IEmitterShape.d.ts +4 -0
- package/umd/Plugins/Emitters/IEmitterShape.js +12 -0
- package/umd/Plugins/Emitters/Options/Classes/Emitter.d.ts +28 -0
- package/umd/Plugins/Emitters/Options/Classes/Emitter.js +74 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +11 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterLife.js +36 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +9 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterRate.js +32 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +11 -0
- package/umd/Plugins/Emitters/Options/Classes/EmitterSize.js +35 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +24 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +6 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +5 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.js +12 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +5 -0
- package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.js +12 -0
- package/umd/Plugins/Emitters/ShapeManager.d.ts +9 -0
- package/umd/Plugins/Emitters/ShapeManager.js +40 -0
- package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +5 -0
- package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.js +42 -0
- package/umd/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +5 -0
- package/umd/Plugins/Emitters/Shapes/Square/SquareShape.js +53 -0
- package/umd/Plugins/Emitters/index.d.ts +3 -0
- package/umd/Plugins/Emitters/index.js +120 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.js +12 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.js +12 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.js +12 -0
- package/umd/Plugins/PolygonMask/Enums/index.d.ts +3 -0
- package/umd/Plugins/PolygonMask/Enums/index.js +25 -0
- package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +24 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.js +76 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +15 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +48 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +11 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +39 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +27 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +39 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
- package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +31 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +18 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +6 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +12 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +4 -0
- package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.js +12 -0
- package/umd/Plugins/PolygonMask/PolygonMaskInstance.d.ts +38 -0
- package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +396 -0
- package/umd/Plugins/PolygonMask/Types.d.ts +8 -0
- package/umd/Plugins/PolygonMask/Types.js +12 -0
- package/umd/Plugins/PolygonMask/Utils.d.ts +11 -0
- package/umd/Plugins/PolygonMask/Utils.js +134 -0
- package/umd/Plugins/PolygonMask/index.d.ts +2 -0
- package/umd/Plugins/PolygonMask/index.js +67 -0
- package/umd/Plugins/PolygonMask/pathseg.d.ts +0 -0
- package/umd/Plugins/PolygonMask/pathseg.js +1548 -0
- package/umd/Shapes/Circle/CircleDrawer.d.ts +5 -0
- package/umd/Shapes/Circle/CircleDrawer.js +22 -0
- package/umd/Shapes/Circle/index.d.ts +2 -0
- package/umd/Shapes/Circle/index.js +18 -0
- package/umd/Shapes/Image/ImageDrawer.d.ts +18 -0
- package/umd/Shapes/Image/ImageDrawer.js +142 -0
- package/umd/Shapes/Image/Utils.d.ts +28 -0
- package/umd/Shapes/Image/Utils.js +99 -0
- package/umd/Shapes/Image/index.d.ts +2 -0
- package/umd/Shapes/Image/index.js +20 -0
- package/umd/Shapes/Line/LineDrawer.d.ts +5 -0
- package/umd/Shapes/Line/LineDrawer.js +23 -0
- package/umd/Shapes/Line/index.d.ts +2 -0
- package/umd/Shapes/Line/index.js +18 -0
- package/umd/Shapes/Polygon/PolygonDrawer.d.ts +7 -0
- package/umd/Shapes/Polygon/PolygonDrawer.js +36 -0
- package/umd/Shapes/Polygon/PolygonDrawerBase.d.ts +15 -0
- package/umd/Shapes/Polygon/PolygonDrawerBase.js +40 -0
- package/umd/Shapes/Polygon/TriangleDrawer.d.ts +8 -0
- package/umd/Shapes/Polygon/TriangleDrawer.js +35 -0
- package/umd/Shapes/Polygon/index.d.ts +4 -0
- package/umd/Shapes/Polygon/index.js +28 -0
- package/umd/Shapes/Square/SquareDrawer.d.ts +5 -0
- package/umd/Shapes/Square/SquareDrawer.js +23 -0
- package/umd/Shapes/Square/index.d.ts +2 -0
- package/umd/Shapes/Square/index.js +20 -0
- package/umd/Shapes/Star/StarDrawer.d.ts +5 -0
- package/umd/Shapes/Star/StarDrawer.js +34 -0
- package/umd/Shapes/Star/index.d.ts +2 -0
- package/umd/Shapes/Star/index.js +18 -0
- package/umd/Shapes/Text/TextDrawer.d.ts +7 -0
- package/umd/Shapes/Text/TextDrawer.js +75 -0
- package/umd/Shapes/Text/index.d.ts +2 -0
- package/umd/Shapes/Text/index.js +21 -0
- package/umd/Types/ParticlesGroups.d.ts +4 -0
- package/umd/Types/ParticlesGroups.js +12 -0
- package/umd/Types/PathOptions.d.ts +3 -0
- package/umd/Types/PathOptions.js +12 -0
- package/umd/Types/RangeValue.d.ts +2 -0
- package/umd/Types/RangeValue.js +12 -0
- package/umd/Types/RecursivePartial.d.ts +3 -0
- package/umd/Types/RecursivePartial.js +12 -0
- package/umd/Types/ShapeData.d.ts +5 -0
- package/umd/Types/ShapeData.js +12 -0
- package/umd/Types/ShapeDrawerFunctions.d.ts +11 -0
- package/umd/Types/ShapeDrawerFunctions.js +12 -0
- package/umd/Types/SingleOrMultiple.d.ts +1 -0
- package/umd/Types/SingleOrMultiple.js +12 -0
- package/umd/Types/index.d.ts +6 -0
- package/umd/Types/index.js +28 -0
- package/umd/Updaters/Angle/AngleUpdater.d.ts +8 -0
- package/umd/Updaters/Angle/AngleUpdater.js +88 -0
- package/umd/Updaters/Angle/index.d.ts +2 -0
- package/umd/Updaters/Angle/index.js +18 -0
- package/umd/Updaters/Color/ColorUpdater.d.ts +8 -0
- package/umd/Updaters/Color/ColorUpdater.js +77 -0
- package/umd/Updaters/Color/index.d.ts +2 -0
- package/umd/Updaters/Color/index.js +18 -0
- package/umd/Updaters/Life/LifeUpdater.d.ts +8 -0
- package/umd/Updaters/Life/LifeUpdater.js +77 -0
- package/umd/Updaters/Life/index.d.ts +2 -0
- package/umd/Updaters/Life/index.js +18 -0
- package/umd/Updaters/Opacity/OpacityUpdater.d.ts +8 -0
- package/umd/Updaters/Opacity/OpacityUpdater.js +129 -0
- package/umd/Updaters/Opacity/index.d.ts +2 -0
- package/umd/Updaters/Opacity/index.js +18 -0
- package/umd/Updaters/OutModes/IBounceData.d.ts +11 -0
- package/umd/Updaters/OutModes/IBounceData.js +12 -0
- package/umd/Updaters/OutModes/OutOfCanvasUpdater.d.ts +13 -0
- package/umd/Updaters/OutModes/OutOfCanvasUpdater.js +156 -0
- package/umd/Updaters/OutModes/Utils.d.ts +3 -0
- package/umd/Updaters/OutModes/Utils.js +75 -0
- package/umd/Updaters/OutModes/index.d.ts +2 -0
- package/umd/Updaters/OutModes/index.js +18 -0
- package/umd/Updaters/Roll/RollUpdater.d.ts +6 -0
- package/umd/Updaters/Roll/RollUpdater.js +73 -0
- package/umd/Updaters/Roll/index.d.ts +2 -0
- package/umd/Updaters/Roll/index.js +18 -0
- package/umd/Updaters/Size/SizeUpdater.d.ts +6 -0
- package/umd/Updaters/Size/SizeUpdater.js +86 -0
- package/umd/Updaters/Size/index.d.ts +2 -0
- package/umd/Updaters/Size/index.js +18 -0
- package/umd/Updaters/StrokeColor/StrokeColorUpdater.d.ts +8 -0
- package/umd/Updaters/StrokeColor/StrokeColorUpdater.js +94 -0
- package/umd/Updaters/StrokeColor/index.d.ts +2 -0
- package/umd/Updaters/StrokeColor/index.js +18 -0
- package/umd/Updaters/Tilt/TiltUpdater.d.ts +8 -0
- package/umd/Updaters/Tilt/TiltUpdater.js +89 -0
- package/umd/Updaters/Tilt/index.d.ts +2 -0
- package/umd/Updaters/Tilt/index.js +18 -0
- package/umd/Updaters/Wobble/WobbleUpdater.d.ts +14 -0
- package/umd/Updaters/Wobble/WobbleUpdater.js +61 -0
- package/umd/Updaters/Wobble/index.d.ts +2 -0
- package/umd/Updaters/Wobble/index.js +18 -0
- package/umd/Utils/CanvasUtils.d.ts +19 -0
- package/umd/Utils/CanvasUtils.js +297 -0
- package/umd/Utils/ColorUtils.d.ts +26 -0
- package/umd/Utils/ColorUtils.js +486 -0
- package/umd/Utils/NumberUtils.d.ts +23 -0
- package/umd/Utils/NumberUtils.js +138 -0
- package/umd/Utils/Utils.d.ts +38 -0
- package/umd/Utils/Utils.js +279 -0
- package/umd/Utils/index.d.ts +4 -0
- package/umd/Utils/index.js +26 -0
- package/umd/engine.d.ts +26 -0
- package/umd/engine.js +108 -0
- package/umd/full.d.ts +2 -0
- package/umd/full.js +32 -0
- package/umd/index.d.ts +20 -0
- package/umd/index.engine.d.ts +13 -0
- package/umd/index.engine.js +37 -0
- package/umd/index.js +43 -0
- package/umd/index.slim.d.ts +14 -0
- package/umd/index.slim.js +40 -0
- package/umd/pjs.d.ts +14 -0
- package/umd/pjs.js +36 -0
- package/umd/slim.d.ts +2 -0
- package/umd/slim.js +62 -0
package/Core/Utils/Plugins.js
CHANGED
|
@@ -1,26 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
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");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var _Plugins_engine;
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
10
|
exports.Plugins = void 0;
|
|
4
|
-
const plugins = [];
|
|
5
|
-
const interactorsInitializers = new Map();
|
|
6
|
-
const updatersInitializers = new Map();
|
|
7
|
-
const interactors = new Map();
|
|
8
|
-
const updaters = new Map();
|
|
9
|
-
const presets = new Map();
|
|
10
|
-
const drawers = new Map();
|
|
11
|
-
const pathGenerators = new Map();
|
|
12
11
|
class Plugins {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
constructor(engine) {
|
|
13
|
+
_Plugins_engine.set(this, void 0);
|
|
14
|
+
__classPrivateFieldSet(this, _Plugins_engine, engine, "f");
|
|
15
|
+
this.plugins = [];
|
|
16
|
+
this.interactorsInitializers = new Map();
|
|
17
|
+
this.updatersInitializers = new Map();
|
|
18
|
+
this.interactors = new Map();
|
|
19
|
+
this.updaters = new Map();
|
|
20
|
+
this.presets = new Map();
|
|
21
|
+
this.drawers = new Map();
|
|
22
|
+
this.pathGenerators = new Map();
|
|
15
23
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
getPlugin(plugin) {
|
|
25
|
+
return this.plugins.find((t) => t.id === plugin);
|
|
26
|
+
}
|
|
27
|
+
addPlugin(plugin) {
|
|
28
|
+
if (!this.getPlugin(plugin.id)) {
|
|
29
|
+
this.plugins.push(plugin);
|
|
19
30
|
}
|
|
20
31
|
}
|
|
21
|
-
|
|
32
|
+
getAvailablePlugins(container) {
|
|
22
33
|
const res = new Map();
|
|
23
|
-
for (const plugin of plugins) {
|
|
34
|
+
for (const plugin of this.plugins) {
|
|
24
35
|
if (!plugin.needsPlugin(container.actualOptions)) {
|
|
25
36
|
continue;
|
|
26
37
|
}
|
|
@@ -28,59 +39,60 @@ class Plugins {
|
|
|
28
39
|
}
|
|
29
40
|
return res;
|
|
30
41
|
}
|
|
31
|
-
|
|
32
|
-
for (const plugin of plugins) {
|
|
42
|
+
loadOptions(options, sourceOptions) {
|
|
43
|
+
for (const plugin of this.plugins) {
|
|
33
44
|
plugin.loadOptions(options, sourceOptions);
|
|
34
45
|
}
|
|
35
46
|
}
|
|
36
|
-
|
|
37
|
-
return presets.get(preset);
|
|
47
|
+
getPreset(preset) {
|
|
48
|
+
return this.presets.get(preset);
|
|
38
49
|
}
|
|
39
|
-
|
|
40
|
-
if (override || !
|
|
41
|
-
presets.set(presetKey, options);
|
|
50
|
+
addPreset(presetKey, options, override = false) {
|
|
51
|
+
if (override || !this.getPreset(presetKey)) {
|
|
52
|
+
this.presets.set(presetKey, options);
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
|
-
|
|
45
|
-
if (!
|
|
46
|
-
drawers.set(type, drawer);
|
|
55
|
+
addShapeDrawer(type, drawer) {
|
|
56
|
+
if (!this.getShapeDrawer(type)) {
|
|
57
|
+
this.drawers.set(type, drawer);
|
|
47
58
|
}
|
|
48
59
|
}
|
|
49
|
-
|
|
50
|
-
return drawers.get(type);
|
|
60
|
+
getShapeDrawer(type) {
|
|
61
|
+
return this.drawers.get(type);
|
|
51
62
|
}
|
|
52
|
-
|
|
53
|
-
return drawers.keys();
|
|
63
|
+
getSupportedShapes() {
|
|
64
|
+
return this.drawers.keys();
|
|
54
65
|
}
|
|
55
|
-
|
|
56
|
-
return pathGenerators.get(type);
|
|
66
|
+
getPathGenerator(type) {
|
|
67
|
+
return this.pathGenerators.get(type);
|
|
57
68
|
}
|
|
58
|
-
|
|
59
|
-
if (!
|
|
60
|
-
pathGenerators.set(type, pathGenerator);
|
|
69
|
+
addPathGenerator(type, pathGenerator) {
|
|
70
|
+
if (!this.getPathGenerator(type)) {
|
|
71
|
+
this.pathGenerators.set(type, pathGenerator);
|
|
61
72
|
}
|
|
62
73
|
}
|
|
63
|
-
|
|
64
|
-
let res = interactors.get(container);
|
|
74
|
+
getInteractors(container, force = false) {
|
|
75
|
+
let res = this.interactors.get(container);
|
|
65
76
|
if (!res || force) {
|
|
66
|
-
res = [...interactorsInitializers.values()].map((t) => t(container));
|
|
67
|
-
interactors.set(container, res);
|
|
77
|
+
res = [...this.interactorsInitializers.values()].map((t) => t(container));
|
|
78
|
+
this.interactors.set(container, res);
|
|
68
79
|
}
|
|
69
80
|
return res;
|
|
70
81
|
}
|
|
71
|
-
|
|
72
|
-
interactorsInitializers.set(name, initInteractor);
|
|
82
|
+
addInteractor(name, initInteractor) {
|
|
83
|
+
this.interactorsInitializers.set(name, initInteractor);
|
|
73
84
|
}
|
|
74
|
-
|
|
75
|
-
let res = updaters.get(container);
|
|
85
|
+
getUpdaters(container, force = false) {
|
|
86
|
+
let res = this.updaters.get(container);
|
|
76
87
|
if (!res || force) {
|
|
77
|
-
res = [...updatersInitializers.values()].map((t) => t(container));
|
|
78
|
-
updaters.set(container, res);
|
|
88
|
+
res = [...this.updatersInitializers.values()].map((t) => t(container));
|
|
89
|
+
this.updaters.set(container, res);
|
|
79
90
|
}
|
|
80
91
|
return res;
|
|
81
92
|
}
|
|
82
|
-
|
|
83
|
-
updatersInitializers.set(name, initUpdater);
|
|
93
|
+
addParticleUpdater(name, initUpdater) {
|
|
94
|
+
this.updatersInitializers.set(name, initUpdater);
|
|
84
95
|
}
|
|
85
96
|
}
|
|
86
97
|
exports.Plugins = Plugins;
|
|
98
|
+
_Plugins_engine = new WeakMap();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RangeValue, RecursivePartial } from "../../Types";
|
|
2
2
|
import { Background } from "./Background/Background";
|
|
3
3
|
import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
|
|
4
|
+
import type { Engine } from "../../engine";
|
|
4
5
|
import { FullScreen } from "./FullScreen/FullScreen";
|
|
5
6
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
6
7
|
import type { IOptions } from "../Interfaces/IOptions";
|
|
@@ -39,7 +40,7 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
39
40
|
defaultDarkTheme?: string;
|
|
40
41
|
defaultLightTheme?: string;
|
|
41
42
|
[name: string]: unknown;
|
|
42
|
-
constructor();
|
|
43
|
+
constructor(engine: Engine);
|
|
43
44
|
load(data?: RecursivePartial<IOptions>): void;
|
|
44
45
|
setTheme(name?: string): void;
|
|
45
46
|
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
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");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
2
8
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
9
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
10
|
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");
|
|
5
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
12
|
};
|
|
7
|
-
var _Options_instances, _Options_findDefaultTheme;
|
|
13
|
+
var _Options_instances, _Options_engine, _Options_findDefaultTheme;
|
|
8
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
15
|
exports.Options = void 0;
|
|
10
16
|
const Background_1 = require("./Background/Background");
|
|
@@ -14,13 +20,14 @@ const Interactivity_1 = require("./Interactivity/Interactivity");
|
|
|
14
20
|
const ManualParticle_1 = require("./ManualParticle");
|
|
15
21
|
const Motion_1 = require("./Motion/Motion");
|
|
16
22
|
const ParticlesOptions_1 = require("./Particles/ParticlesOptions");
|
|
17
|
-
const Core_1 = require("../../Core");
|
|
18
23
|
const Responsive_1 = require("./Responsive");
|
|
19
24
|
const Theme_1 = require("./Theme/Theme");
|
|
20
25
|
const Utils_1 = require("../../Utils");
|
|
21
26
|
class Options {
|
|
22
|
-
constructor() {
|
|
27
|
+
constructor(engine) {
|
|
23
28
|
_Options_instances.add(this);
|
|
29
|
+
_Options_engine.set(this, void 0);
|
|
30
|
+
__classPrivateFieldSet(this, _Options_engine, engine, "f");
|
|
24
31
|
this.autoPlay = true;
|
|
25
32
|
this.background = new Background_1.Background();
|
|
26
33
|
this.backgroundMask = new BackgroundMask_1.BackgroundMask();
|
|
@@ -115,7 +122,7 @@ class Options {
|
|
|
115
122
|
this.motion.load(data.motion);
|
|
116
123
|
this.particles.load(data.particles);
|
|
117
124
|
this.style = (0, Utils_1.deepExtend)(this.style, data.style);
|
|
118
|
-
|
|
125
|
+
__classPrivateFieldGet(this, _Options_engine, "f").plugins.loadOptions(this, data);
|
|
119
126
|
if (data.responsive !== undefined) {
|
|
120
127
|
for (const responsive of data.responsive) {
|
|
121
128
|
const optResponsive = new Responsive_1.Responsive();
|
|
@@ -157,11 +164,11 @@ class Options {
|
|
|
157
164
|
return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
|
|
158
165
|
}
|
|
159
166
|
importPreset(preset) {
|
|
160
|
-
this.load(
|
|
167
|
+
this.load(__classPrivateFieldGet(this, _Options_engine, "f").plugins.getPreset(preset));
|
|
161
168
|
}
|
|
162
169
|
}
|
|
163
170
|
exports.Options = Options;
|
|
164
|
-
_Options_instances = new WeakSet(), _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
171
|
+
_Options_engine = new WeakMap(), _Options_instances = new WeakSet(), _Options_findDefaultTheme = function _Options_findDefaultTheme(mode) {
|
|
165
172
|
var _a;
|
|
166
173
|
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"));
|
|
167
174
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { Container, ICoordinates, IDelta, IHsl } from "../../Core";
|
|
1
|
+
import type { Container, ICoordinates, IDelta, IDimension, IHsl } from "../../Core";
|
|
2
2
|
import { Emitter } from "./Options/Classes/Emitter";
|
|
3
3
|
import type { Emitters } from "./Emitters";
|
|
4
|
+
import type { EmittersEngine } from "./EmittersEngine";
|
|
4
5
|
import type { IEmitter } from "./Options/Interfaces/IEmitter";
|
|
5
6
|
import type { IEmitterSize } from "./Options/Interfaces/IEmitterSize";
|
|
6
7
|
import type { RecursivePartial } from "../../Types";
|
|
@@ -8,7 +9,7 @@ export declare class EmitterInstance {
|
|
|
8
9
|
#private;
|
|
9
10
|
private readonly emitters;
|
|
10
11
|
private readonly container;
|
|
11
|
-
position
|
|
12
|
+
position?: ICoordinates;
|
|
12
13
|
size: IEmitterSize;
|
|
13
14
|
options: Emitter;
|
|
14
15
|
spawnColor?: IHsl;
|
|
@@ -26,13 +27,15 @@ export declare class EmitterInstance {
|
|
|
26
27
|
private readonly shape?;
|
|
27
28
|
private readonly initialPosition?;
|
|
28
29
|
private readonly particlesOptions;
|
|
29
|
-
constructor(emitters: Emitters, container: Container, options: RecursivePartial<IEmitter>, position?: ICoordinates);
|
|
30
|
+
constructor(engine: EmittersEngine, emitters: Emitters, container: Container, options: RecursivePartial<IEmitter>, position?: ICoordinates);
|
|
30
31
|
externalPlay(): void;
|
|
31
32
|
externalPause(): void;
|
|
32
33
|
play(): void;
|
|
33
34
|
pause(): void;
|
|
34
35
|
resize(): void;
|
|
35
36
|
update(delta: IDelta): void;
|
|
37
|
+
getPosition(): ICoordinates | undefined;
|
|
38
|
+
getSize(): IDimension;
|
|
36
39
|
private prepareToDie;
|
|
37
40
|
private destroy;
|
|
38
41
|
private calcPosition;
|
|
@@ -10,21 +10,22 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
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");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _EmitterInstance_firstSpawn, _EmitterInstance_startParticlesAdded;
|
|
13
|
+
var _EmitterInstance_firstSpawn, _EmitterInstance_startParticlesAdded, _EmitterInstance_engine;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.EmitterInstance = void 0;
|
|
16
16
|
const Utils_1 = require("../../Utils");
|
|
17
17
|
const Emitter_1 = require("./Options/Classes/Emitter");
|
|
18
18
|
const EmitterSize_1 = require("./Options/Classes/EmitterSize");
|
|
19
|
-
const ShapeManager_1 = require("./ShapeManager");
|
|
20
19
|
class EmitterInstance {
|
|
21
|
-
constructor(emitters, container, options, position) {
|
|
20
|
+
constructor(engine, emitters, container, options, position) {
|
|
22
21
|
var _a, _b, _c, _d, _e, _f;
|
|
23
22
|
var _g;
|
|
24
23
|
this.emitters = emitters;
|
|
25
24
|
this.container = container;
|
|
26
25
|
_EmitterInstance_firstSpawn.set(this, void 0);
|
|
27
26
|
_EmitterInstance_startParticlesAdded.set(this, void 0);
|
|
27
|
+
_EmitterInstance_engine.set(this, void 0);
|
|
28
|
+
__classPrivateFieldSet(this, _EmitterInstance_engine, engine, "f");
|
|
28
29
|
this.currentDuration = 0;
|
|
29
30
|
this.currentEmitDelay = 0;
|
|
30
31
|
this.currentSpawnDelay = 0;
|
|
@@ -37,9 +38,8 @@ class EmitterInstance {
|
|
|
37
38
|
this.options.load(options);
|
|
38
39
|
}
|
|
39
40
|
this.spawnDelay = (((_a = this.options.life.delay) !== null && _a !== void 0 ? _a : 0) * 1000) / this.container.retina.reduceFactor;
|
|
40
|
-
this.position = (_b = this.initialPosition) !== null && _b !== void 0 ? _b : this.calcPosition();
|
|
41
41
|
this.name = this.options.name;
|
|
42
|
-
this.shape =
|
|
42
|
+
this.shape = (_b = __classPrivateFieldGet(this, _EmitterInstance_engine, "f").emitterShapeManager) === null || _b === void 0 ? void 0 : _b.getShape(this.options.shape);
|
|
43
43
|
this.fill = this.options.fill;
|
|
44
44
|
__classPrivateFieldSet(this, _EmitterInstance_firstSpawn, !this.options.life.wait, "f");
|
|
45
45
|
__classPrivateFieldSet(this, _EmitterInstance_startParticlesAdded, false, "f");
|
|
@@ -155,6 +155,40 @@ class EmitterInstance {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
+
getPosition() {
|
|
159
|
+
if (this.options.domId) {
|
|
160
|
+
const container = this.container, element = document.getElementById(this.options.domId);
|
|
161
|
+
if (element) {
|
|
162
|
+
const elRect = element.getBoundingClientRect();
|
|
163
|
+
return {
|
|
164
|
+
x: (elRect.x + elRect.width / 2) * container.retina.pixelRatio,
|
|
165
|
+
y: (elRect.y + elRect.height / 2) * container.retina.pixelRatio,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return this.position;
|
|
170
|
+
}
|
|
171
|
+
getSize() {
|
|
172
|
+
const container = this.container;
|
|
173
|
+
if (this.options.domId) {
|
|
174
|
+
const element = document.getElementById(this.options.domId);
|
|
175
|
+
if (element) {
|
|
176
|
+
const elRect = element.getBoundingClientRect();
|
|
177
|
+
return {
|
|
178
|
+
width: elRect.width * container.retina.pixelRatio,
|
|
179
|
+
height: elRect.height * container.retina.pixelRatio,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
width: this.size.mode === "percent"
|
|
185
|
+
? (container.canvas.size.width * this.size.width) / 100
|
|
186
|
+
: this.size.width,
|
|
187
|
+
height: this.size.mode === "percent"
|
|
188
|
+
? (container.canvas.size.height * this.size.height) / 100
|
|
189
|
+
: this.size.height,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
158
192
|
prepareToDie() {
|
|
159
193
|
var _a;
|
|
160
194
|
if (this.paused) {
|
|
@@ -190,15 +224,8 @@ class EmitterInstance {
|
|
|
190
224
|
emitParticles(quantity) {
|
|
191
225
|
var _a, _b, _c;
|
|
192
226
|
const container = this.container;
|
|
193
|
-
const position = this.
|
|
194
|
-
const
|
|
195
|
-
x: this.size.mode === "percent"
|
|
196
|
-
? (container.canvas.size.width * this.size.width) / 100
|
|
197
|
-
: this.size.width,
|
|
198
|
-
y: this.size.mode === "percent"
|
|
199
|
-
? (container.canvas.size.height * this.size.height) / 100
|
|
200
|
-
: this.size.height,
|
|
201
|
-
};
|
|
227
|
+
const position = this.getPosition();
|
|
228
|
+
const size = this.getSize();
|
|
202
229
|
for (let i = 0; i < quantity; i++) {
|
|
203
230
|
const particlesOptions = (0, Utils_1.deepExtend)({}, this.particlesOptions);
|
|
204
231
|
if (this.spawnColor) {
|
|
@@ -217,7 +244,10 @@ class EmitterInstance {
|
|
|
217
244
|
particlesOptions.color.value = this.spawnColor;
|
|
218
245
|
}
|
|
219
246
|
}
|
|
220
|
-
|
|
247
|
+
if (!position) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
const pPosition = (_c = (_b = this.shape) === null || _b === void 0 ? void 0 : _b.randomPosition(position, size, this.fill)) !== null && _c !== void 0 ? _c : position;
|
|
221
251
|
container.particles.addParticle(pPosition, particlesOptions);
|
|
222
252
|
}
|
|
223
253
|
}
|
|
@@ -235,4 +265,4 @@ class EmitterInstance {
|
|
|
235
265
|
}
|
|
236
266
|
}
|
|
237
267
|
exports.EmitterInstance = EmitterInstance;
|
|
238
|
-
_EmitterInstance_firstSpawn = new WeakMap(), _EmitterInstance_startParticlesAdded = new WeakMap();
|
|
268
|
+
_EmitterInstance_firstSpawn = new WeakMap(), _EmitterInstance_startParticlesAdded = new WeakMap(), _EmitterInstance_engine = new WeakMap();
|
|
@@ -2,15 +2,17 @@ import type { Container, IContainerPlugin, ICoordinates, IDelta } from "../../Co
|
|
|
2
2
|
import type { RecursivePartial, SingleOrMultiple } from "../../Types";
|
|
3
3
|
import { Emitter } from "./Options/Classes/Emitter";
|
|
4
4
|
import { EmitterInstance } from "./EmitterInstance";
|
|
5
|
+
import type { EmittersEngine } from "./EmittersEngine";
|
|
5
6
|
import type { IEmitter } from "./Options/Interfaces/IEmitter";
|
|
6
7
|
import type { IEmitterOptions } from "./Options/Interfaces/IEmitterOptions";
|
|
7
8
|
import type { IOptions } from "../../Options/Interfaces/IOptions";
|
|
8
9
|
export declare class Emitters implements IContainerPlugin {
|
|
10
|
+
#private;
|
|
9
11
|
private readonly container;
|
|
10
12
|
array: EmitterInstance[];
|
|
11
13
|
emitters: SingleOrMultiple<Emitter>;
|
|
12
14
|
interactivityEmitters: SingleOrMultiple<Emitter>;
|
|
13
|
-
constructor(container: Container);
|
|
15
|
+
constructor(engine: EmittersEngine, container: Container);
|
|
14
16
|
init(options?: RecursivePartial<IOptions & IEmitterOptions>): void;
|
|
15
17
|
play(): void;
|
|
16
18
|
pause(): void;
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
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");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
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");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _Emitters_engine;
|
|
2
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
15
|
exports.Emitters = void 0;
|
|
4
16
|
const Utils_1 = require("../../Utils");
|
|
5
17
|
const Emitter_1 = require("./Options/Classes/Emitter");
|
|
6
18
|
const EmitterInstance_1 = require("./EmitterInstance");
|
|
7
19
|
class Emitters {
|
|
8
|
-
constructor(container) {
|
|
20
|
+
constructor(engine, container) {
|
|
9
21
|
this.container = container;
|
|
22
|
+
_Emitters_engine.set(this, void 0);
|
|
23
|
+
__classPrivateFieldSet(this, _Emitters_engine, engine, "f");
|
|
10
24
|
this.array = [];
|
|
11
25
|
this.emitters = [];
|
|
12
26
|
this.interactivityEmitters = [];
|
|
@@ -124,7 +138,7 @@ class Emitters {
|
|
|
124
138
|
addEmitter(options, position) {
|
|
125
139
|
const emitterOptions = new Emitter_1.Emitter();
|
|
126
140
|
emitterOptions.load(options);
|
|
127
|
-
const emitter = new EmitterInstance_1.EmitterInstance(this, this.container, emitterOptions, position);
|
|
141
|
+
const emitter = new EmitterInstance_1.EmitterInstance(__classPrivateFieldGet(this, _Emitters_engine, "f"), this, this.container, emitterOptions, position);
|
|
128
142
|
this.array.push(emitter);
|
|
129
143
|
return emitter;
|
|
130
144
|
}
|
|
@@ -136,3 +150,4 @@ class Emitters {
|
|
|
136
150
|
}
|
|
137
151
|
}
|
|
138
152
|
exports.Emitters = Emitters;
|
|
153
|
+
_Emitters_engine = new WeakMap();
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Engine } from "../../engine";
|
|
2
2
|
import type { IEmitterShape } from "./IEmitterShape";
|
|
3
|
-
|
|
3
|
+
import type { ShapeManager } from "./ShapeManager";
|
|
4
|
+
export declare type EmittersEngine = Engine & {
|
|
5
|
+
emitterShapeManager?: ShapeManager;
|
|
4
6
|
addEmitterShape?: (name: string, shape: IEmitterShape) => void;
|
|
5
7
|
};
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICoordinates } from "../../Core";
|
|
1
|
+
import type { ICoordinates, IDimension } from "../../Core";
|
|
2
2
|
export interface IEmitterShape {
|
|
3
|
-
randomPosition(position: ICoordinates,
|
|
3
|
+
randomPosition(position: ICoordinates, size: IDimension, fill: boolean): ICoordinates;
|
|
4
4
|
}
|
|
@@ -13,6 +13,7 @@ export declare class Emitter implements IEmitter, IOptionLoader<IEmitter> {
|
|
|
13
13
|
autoPlay: boolean;
|
|
14
14
|
size?: EmitterSize;
|
|
15
15
|
direction?: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt | number;
|
|
16
|
+
domId?: string;
|
|
16
17
|
fill: boolean;
|
|
17
18
|
life: EmitterLife;
|
|
18
19
|
name?: string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { Engine } from "../../engine";
|
|
1
2
|
import type { IEmitterShape } from "./IEmitterShape";
|
|
2
3
|
export declare class ShapeManager {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
#private;
|
|
5
|
+
constructor(engine: Engine);
|
|
6
|
+
addShape(name: string, drawer: IEmitterShape): void;
|
|
7
|
+
getShape(name: string): IEmitterShape | undefined;
|
|
8
|
+
getSupportedShapes(): IterableIterator<string>;
|
|
6
9
|
}
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
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");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var _ShapeManager_engine;
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
10
|
exports.ShapeManager = void 0;
|
|
4
11
|
const shapes = new Map();
|
|
5
12
|
class ShapeManager {
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
constructor(engine) {
|
|
14
|
+
_ShapeManager_engine.set(this, void 0);
|
|
15
|
+
__classPrivateFieldSet(this, _ShapeManager_engine, engine, "f");
|
|
16
|
+
}
|
|
17
|
+
addShape(name, drawer) {
|
|
18
|
+
if (!this.getShape(name)) {
|
|
8
19
|
shapes.set(name, drawer);
|
|
9
20
|
}
|
|
10
21
|
}
|
|
11
|
-
|
|
22
|
+
getShape(name) {
|
|
12
23
|
return shapes.get(name);
|
|
13
24
|
}
|
|
14
|
-
|
|
25
|
+
getSupportedShapes() {
|
|
15
26
|
return shapes.keys();
|
|
16
27
|
}
|
|
17
28
|
}
|
|
18
29
|
exports.ShapeManager = ShapeManager;
|
|
30
|
+
_ShapeManager_engine = new WeakMap();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICoordinates } from "../../../../Core";
|
|
1
|
+
import type { ICoordinates, IDimension } from "../../../../Core";
|
|
2
2
|
import type { IEmitterShape } from "../../IEmitterShape";
|
|
3
3
|
export declare class CircleShape implements IEmitterShape {
|
|
4
|
-
randomPosition(position: ICoordinates,
|
|
4
|
+
randomPosition(position: ICoordinates, size: IDimension, fill: boolean): ICoordinates;
|
|
5
5
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CircleShape = void 0;
|
|
4
4
|
class CircleShape {
|
|
5
|
-
randomPosition(position,
|
|
5
|
+
randomPosition(position, size, fill) {
|
|
6
6
|
const generateTheta = (x, y) => {
|
|
7
7
|
const u = Math.random() / 4.0;
|
|
8
8
|
const theta = Math.atan((y / x) * Math.tan(2 * Math.PI * u));
|
|
@@ -21,7 +21,7 @@ class CircleShape {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
const radius = (x, y, theta) => (x * y) / Math.sqrt((y * Math.cos(theta)) ** 2 + (x * Math.sin(theta)) ** 2);
|
|
24
|
-
const [a, b] = [
|
|
24
|
+
const [a, b] = [size.width / 2, size.height / 2];
|
|
25
25
|
const randomTheta = generateTheta(a, b), maxRadius = radius(a, b, randomTheta), randomRadius = fill ? maxRadius * Math.sqrt(Math.random()) : maxRadius;
|
|
26
26
|
return {
|
|
27
27
|
x: position.x + randomRadius * Math.cos(randomTheta),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICoordinates } from "../../../../Core";
|
|
1
|
+
import type { ICoordinates, IDimension } from "../../../../Core";
|
|
2
2
|
import type { IEmitterShape } from "../../IEmitterShape";
|
|
3
3
|
export declare class SquareShape implements IEmitterShape {
|
|
4
|
-
randomPosition(position: ICoordinates,
|
|
4
|
+
randomPosition(position: ICoordinates, size: IDimension, fill: boolean): ICoordinates;
|
|
5
5
|
}
|
|
@@ -5,15 +5,15 @@ function randomSquareCoordinate(position, offset) {
|
|
|
5
5
|
return position + offset * (Math.random() - 0.5);
|
|
6
6
|
}
|
|
7
7
|
class SquareShape {
|
|
8
|
-
randomPosition(position,
|
|
8
|
+
randomPosition(position, size, fill) {
|
|
9
9
|
if (fill) {
|
|
10
10
|
return {
|
|
11
|
-
x: randomSquareCoordinate(position.x,
|
|
12
|
-
y: randomSquareCoordinate(position.y,
|
|
11
|
+
x: randomSquareCoordinate(position.x, size.width),
|
|
12
|
+
y: randomSquareCoordinate(position.y, size.height),
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
|
-
const halfW =
|
|
16
|
+
const halfW = size.width / 2, halfH = size.height / 2, side = Math.floor(Math.random() * 4), v = (Math.random() - 0.5) * 2;
|
|
17
17
|
switch (side) {
|
|
18
18
|
case 0:
|
|
19
19
|
return {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function loadEmittersPlugin(engine:
|
|
3
|
-
export * from "./
|
|
1
|
+
import { EmittersEngine } from "./EmittersEngine";
|
|
2
|
+
export declare function loadEmittersPlugin(engine: EmittersEngine): Promise<void>;
|
|
3
|
+
export * from "./EmittersEngine";
|