@tsparticles/engine 3.0.0-alpha.1 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +244 -188
- package/browser/Core/Canvas.js +273 -243
- package/browser/Core/Container.js +97 -113
- package/browser/Core/Engine.js +271 -0
- package/browser/Core/Particle.js +165 -172
- package/browser/Core/Particles.js +153 -148
- package/browser/Core/Retina.js +17 -15
- package/browser/Core/Utils/Circle.js +12 -8
- package/browser/Core/Utils/Constants.js +4 -3
- package/browser/Core/Utils/EventListeners.js +259 -235
- package/browser/Core/Utils/InteractionManager.js +6 -16
- package/browser/Core/Utils/QuadTree.js +17 -23
- package/browser/Core/Utils/Rectangle.js +2 -2
- package/browser/Core/Utils/Vector.js +1 -1
- package/browser/Core/Utils/Vector3d.js +17 -9
- package/browser/Options/Classes/AnimatableColor.js +4 -3
- package/browser/Options/Classes/AnimationOptions.js +5 -4
- package/browser/Options/Classes/Background/Background.js +1 -1
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +1 -1
- package/browser/Options/Classes/ColorAnimation.js +5 -1
- package/browser/Options/Classes/HslAnimation.js +1 -1
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/browser/Options/Classes/Interactivity/Events/Events.js +9 -28
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +1 -1
- package/browser/Options/Classes/Interactivity/Interactivity.js +3 -10
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/browser/Options/Classes/ManualParticle.js +6 -7
- package/browser/Options/Classes/Options.js +28 -48
- package/browser/Options/Classes/OptionsColor.js +3 -2
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +1 -1
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +1 -1
- package/browser/Options/Classes/Particles/Collisions/Collisions.js +8 -3
- package/browser/Options/Classes/Particles/Move/Move.js +20 -50
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +1 -1
- package/browser/Options/Classes/Particles/Move/MoveAttract.js +10 -21
- package/browser/Options/Classes/Particles/Move/MoveGravity.js +1 -1
- package/browser/Options/Classes/Particles/Move/MoveTrail.js +3 -9
- package/browser/Options/Classes/Particles/Move/MoveTrailFill.js +1 -1
- package/browser/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/browser/Options/Classes/Particles/Move/Path/MovePath.js +2 -2
- package/browser/Options/Classes/Particles/Move/Spin.js +5 -3
- package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +3 -10
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +12 -8
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -10
- package/browser/Options/Classes/Particles/ParticlesOptions.js +18 -23
- package/browser/Options/Classes/Particles/Shadow.js +1 -1
- package/browser/Options/Classes/Particles/Shape/Shape.js +10 -11
- package/browser/Options/Classes/Particles/Size/Size.js +12 -8
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +1 -10
- package/browser/Options/Classes/Particles/Stroke.js +2 -2
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +1 -1
- package/browser/Options/Classes/Responsive.js +1 -1
- package/browser/Options/Classes/Theme/Theme.js +2 -2
- package/browser/Options/Classes/ValueWithRandom.js +6 -19
- package/browser/Utils/CanvasUtils.js +19 -55
- package/browser/Utils/ColorUtils.js +18 -20
- package/browser/Utils/EventDispatcher.js +7 -6
- package/browser/Utils/HslColorManager.js +4 -6
- package/browser/Utils/NumberUtils.js +42 -46
- package/browser/Utils/OptionsUtils.js +1 -1
- package/browser/Utils/RgbColorManager.js +3 -5
- package/browser/Utils/Utils.js +135 -64
- package/browser/bundle.js +4 -97
- package/browser/export-types.js +97 -0
- package/browser/exports.js +89 -0
- package/browser/index.js +8 -199
- package/browser/init.js +12 -0
- package/browser/package.json +1 -0
- package/cjs/Core/Canvas.js +278 -248
- package/cjs/Core/Container.js +104 -120
- package/cjs/Core/Engine.js +275 -0
- package/cjs/Core/Particle.js +173 -180
- package/cjs/Core/Particles.js +154 -149
- package/cjs/Core/Retina.js +20 -18
- package/cjs/Core/Utils/Circle.js +14 -10
- package/cjs/Core/Utils/Constants.js +5 -4
- package/cjs/Core/Utils/EventListeners.js +267 -243
- package/cjs/Core/Utils/InteractionManager.js +6 -16
- package/cjs/Core/Utils/QuadTree.js +20 -26
- package/cjs/Core/Utils/Rectangle.js +4 -4
- package/cjs/Core/Utils/Vector.js +2 -2
- package/cjs/Core/Utils/Vector3d.js +17 -9
- package/cjs/Options/Classes/AnimatableColor.js +6 -5
- package/cjs/Options/Classes/AnimationOptions.js +8 -7
- package/cjs/Options/Classes/Background/Background.js +3 -3
- package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +4 -3
- package/cjs/Options/Classes/BackgroundMask/BackgroundMaskCover.js +3 -3
- package/cjs/Options/Classes/ColorAnimation.js +9 -5
- package/cjs/Options/Classes/HslAnimation.js +4 -4
- package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/cjs/Options/Classes/Interactivity/Events/Events.js +15 -34
- package/cjs/Options/Classes/Interactivity/Events/HoverEvent.js +2 -2
- package/cjs/Options/Classes/Interactivity/Interactivity.js +5 -12
- package/cjs/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/cjs/Options/Classes/ManualParticle.js +7 -8
- package/cjs/Options/Classes/Options.js +41 -61
- package/cjs/Options/Classes/OptionsColor.js +3 -2
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounce.js +3 -3
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +2 -2
- package/cjs/Options/Classes/Particles/Collisions/Collisions.js +11 -6
- package/cjs/Options/Classes/Particles/Move/Move.js +31 -61
- package/cjs/Options/Classes/Particles/Move/MoveAngle.js +3 -3
- package/cjs/Options/Classes/Particles/Move/MoveAttract.js +11 -22
- package/cjs/Options/Classes/Particles/Move/MoveGravity.js +3 -3
- package/cjs/Options/Classes/Particles/Move/MoveTrail.js +4 -10
- package/cjs/Options/Classes/Particles/Move/MoveTrailFill.js +2 -2
- package/cjs/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/cjs/Options/Classes/Particles/Move/Path/MovePath.js +4 -4
- package/cjs/Options/Classes/Particles/Move/Spin.js +6 -4
- package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +4 -11
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +13 -9
- package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -11
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +32 -37
- package/cjs/Options/Classes/Particles/Shadow.js +3 -3
- package/cjs/Options/Classes/Particles/Shape/Shape.js +10 -11
- package/cjs/Options/Classes/Particles/Size/Size.js +13 -9
- package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +2 -11
- package/cjs/Options/Classes/Particles/Stroke.js +5 -5
- package/cjs/Options/Classes/Particles/ZIndex/ZIndex.js +2 -2
- package/cjs/Options/Classes/Responsive.js +2 -2
- package/cjs/Options/Classes/Theme/Theme.js +4 -4
- package/cjs/Options/Classes/ValueWithRandom.js +10 -23
- package/cjs/Utils/CanvasUtils.js +23 -60
- package/cjs/Utils/ColorUtils.js +31 -33
- package/cjs/Utils/EventDispatcher.js +7 -6
- package/cjs/Utils/HslColorManager.js +11 -13
- package/cjs/Utils/NumberUtils.js +44 -48
- package/cjs/Utils/OptionsUtils.js +2 -2
- package/cjs/Utils/RgbColorManager.js +7 -9
- package/cjs/Utils/Utils.js +157 -77
- package/cjs/bundle.js +4 -97
- package/cjs/export-types.js +113 -0
- package/cjs/exports.js +105 -0
- package/cjs/index.js +8 -199
- package/cjs/init.js +16 -0
- package/cjs/package.json +1 -0
- package/esm/Core/Canvas.js +273 -243
- package/esm/Core/Container.js +97 -113
- package/esm/Core/Engine.js +271 -0
- package/esm/Core/Particle.js +165 -172
- package/esm/Core/Particles.js +153 -148
- package/esm/Core/Retina.js +17 -15
- package/esm/Core/Utils/Circle.js +12 -8
- package/esm/Core/Utils/Constants.js +4 -3
- package/esm/Core/Utils/EventListeners.js +259 -235
- package/esm/Core/Utils/InteractionManager.js +6 -16
- package/esm/Core/Utils/QuadTree.js +17 -23
- package/esm/Core/Utils/Rectangle.js +2 -2
- package/esm/Core/Utils/Vector.js +1 -1
- package/esm/Core/Utils/Vector3d.js +17 -9
- package/esm/Options/Classes/AnimatableColor.js +4 -3
- package/esm/Options/Classes/AnimationOptions.js +5 -4
- package/esm/Options/Classes/Background/Background.js +1 -1
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
- package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.js +1 -1
- package/esm/Options/Classes/ColorAnimation.js +5 -1
- package/esm/Options/Classes/HslAnimation.js +1 -1
- package/esm/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/esm/Options/Classes/Interactivity/Events/Events.js +9 -28
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.js +1 -1
- package/esm/Options/Classes/Interactivity/Interactivity.js +3 -10
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/esm/Options/Classes/ManualParticle.js +6 -7
- package/esm/Options/Classes/Options.js +28 -48
- package/esm/Options/Classes/OptionsColor.js +3 -2
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounce.js +1 -1
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +1 -1
- package/esm/Options/Classes/Particles/Collisions/Collisions.js +8 -3
- package/esm/Options/Classes/Particles/Move/Move.js +20 -50
- package/esm/Options/Classes/Particles/Move/MoveAngle.js +1 -1
- package/esm/Options/Classes/Particles/Move/MoveAttract.js +10 -21
- package/esm/Options/Classes/Particles/Move/MoveGravity.js +1 -1
- package/esm/Options/Classes/Particles/Move/MoveTrail.js +3 -9
- package/esm/Options/Classes/Particles/Move/MoveTrailFill.js +1 -1
- package/esm/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/esm/Options/Classes/Particles/Move/Path/MovePath.js +2 -2
- package/esm/Options/Classes/Particles/Move/Spin.js +5 -3
- package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +3 -10
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +12 -8
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -10
- package/esm/Options/Classes/Particles/ParticlesOptions.js +18 -23
- package/esm/Options/Classes/Particles/Shadow.js +1 -1
- package/esm/Options/Classes/Particles/Shape/Shape.js +10 -11
- package/esm/Options/Classes/Particles/Size/Size.js +12 -8
- package/esm/Options/Classes/Particles/Size/SizeAnimation.js +1 -10
- package/esm/Options/Classes/Particles/Stroke.js +2 -2
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.js +1 -1
- package/esm/Options/Classes/Responsive.js +1 -1
- package/esm/Options/Classes/Theme/Theme.js +2 -2
- package/esm/Options/Classes/ValueWithRandom.js +6 -19
- package/esm/Utils/CanvasUtils.js +19 -55
- package/esm/Utils/ColorUtils.js +18 -20
- package/esm/Utils/EventDispatcher.js +7 -6
- package/esm/Utils/HslColorManager.js +4 -6
- package/esm/Utils/NumberUtils.js +42 -46
- package/esm/Utils/OptionsUtils.js +1 -1
- package/esm/Utils/RgbColorManager.js +3 -5
- package/esm/Utils/Utils.js +135 -64
- package/esm/bundle.js +4 -97
- package/esm/export-types.js +97 -0
- package/esm/exports.js +89 -0
- package/esm/index.js +8 -199
- package/esm/init.js +12 -0
- package/esm/package.json +1 -0
- package/package.json +21 -4
- package/report.html +4 -4
- package/scripts/install.js +90 -33
- package/tsparticles.engine.js +1832 -2007
- package/tsparticles.engine.min.js +1 -1
- package/tsparticles.engine.min.js.LICENSE.txt +1 -10
- package/types/Core/Canvas.d.ts +25 -21
- package/types/Core/Container.d.ts +21 -25
- package/types/Core/Engine.d.ts +71 -0
- package/types/Core/Interfaces/Colors.d.ts +2 -2
- package/types/Core/Interfaces/IBubbleParticleData.d.ts +1 -1
- package/types/Core/Interfaces/ICircleBouncer.d.ts +2 -2
- package/types/Core/Interfaces/IColorManager.d.ts +1 -1
- package/types/Core/Interfaces/IContainerInteractivity.d.ts +1 -1
- package/types/Core/Interfaces/IContainerPlugin.d.ts +8 -6
- package/types/Core/Interfaces/ICoordinates.d.ts +3 -3
- package/types/Core/Interfaces/IDimension.d.ts +2 -2
- package/types/Core/Interfaces/IDrawParticleParams.d.ts +6 -6
- package/types/Core/Interfaces/IExternalInteractor.d.ts +7 -7
- package/types/Core/Interfaces/IInteractor.d.ts +8 -8
- package/types/Core/Interfaces/ILoadParams.d.ts +2 -2
- package/types/Core/Interfaces/IMouseData.d.ts +1 -1
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +5 -4
- package/types/Core/Interfaces/IParticle.d.ts +11 -11
- package/types/Core/Interfaces/IParticleHslAnimation.d.ts +1 -1
- package/types/Core/Interfaces/IParticleMover.d.ts +2 -2
- package/types/Core/Interfaces/IParticleRetinaProps.d.ts +1 -1
- package/types/Core/Interfaces/IParticleRoll.d.ts +1 -1
- package/types/Core/Interfaces/IParticleUpdater.d.ts +7 -9
- package/types/Core/Interfaces/IParticleValueAnimation.d.ts +3 -1
- package/types/Core/Interfaces/IParticlesInteractor.d.ts +3 -3
- package/types/Core/Interfaces/IPlugin.d.ts +7 -6
- package/types/Core/Interfaces/IPositionFromSizeParams.d.ts +2 -2
- package/types/Core/Interfaces/IShapeDrawer.d.ts +1 -1
- package/types/Core/Interfaces/IShapeValues.d.ts +2 -2
- package/types/Core/Interfaces/ITrailFillData.d.ts +1 -1
- package/types/Core/Particle.d.ts +27 -27
- package/types/Core/Particles.d.ts +24 -21
- package/types/Core/Retina.d.ts +2 -2
- package/types/Core/Utils/Circle.d.ts +2 -2
- package/types/Core/Utils/Constants.d.ts +4 -3
- package/types/Core/Utils/EventListeners.d.ts +21 -19
- package/types/Core/Utils/ExternalInteractorBase.d.ts +5 -5
- package/types/Core/Utils/InteractionManager.d.ts +5 -5
- package/types/Core/Utils/ParticlesInteractorBase.d.ts +5 -5
- package/types/Core/Utils/Point.d.ts +2 -2
- package/types/Core/Utils/QuadTree.d.ts +8 -11
- package/types/Core/Utils/Range.d.ts +1 -1
- package/types/Core/Utils/Rectangle.d.ts +3 -3
- package/types/Core/Utils/Vector.d.ts +2 -2
- package/types/Core/Utils/Vector3d.d.ts +3 -2
- package/types/Enums/Modes/{SizeMode.d.ts → PixelMode.d.ts} +1 -1
- package/types/Options/Classes/AnimatableColor.d.ts +6 -6
- package/types/Options/Classes/AnimationOptions.d.ts +7 -7
- package/types/Options/Classes/Background/Background.d.ts +4 -4
- package/types/Options/Classes/BackgroundMask/BackgroundMask.d.ts +4 -4
- package/types/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +4 -4
- package/types/Options/Classes/ColorAnimation.d.ts +5 -4
- package/types/Options/Classes/FullScreen/FullScreen.d.ts +3 -3
- package/types/Options/Classes/HslAnimation.d.ts +4 -4
- package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +5 -5
- package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +6 -12
- package/types/Options/Classes/Interactivity/Events/Events.d.ts +8 -14
- package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +6 -6
- package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +3 -3
- package/types/Options/Classes/Interactivity/Events/ResizeEvent.d.ts +3 -3
- package/types/Options/Classes/Interactivity/Interactivity.d.ts +8 -10
- package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +5 -5
- package/types/Options/Classes/ManualParticle.d.ts +5 -5
- package/types/Options/Classes/Options.d.ts +19 -26
- package/types/Options/Classes/OptionsColor.d.ts +5 -5
- package/types/Options/Classes/Particles/Bounce/ParticlesBounce.d.ts +4 -4
- package/types/Options/Classes/Particles/Bounce/ParticlesBounceFactor.d.ts +1 -1
- package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +9 -7
- package/types/Options/Classes/Particles/Collisions/CollisionsAbsorb.d.ts +3 -3
- package/types/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +3 -3
- package/types/Options/Classes/Particles/Move/Move.d.ts +15 -26
- package/types/Options/Classes/Particles/Move/MoveAngle.d.ts +4 -4
- package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +5 -9
- package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +5 -5
- package/types/Options/Classes/Particles/Move/MoveGravity.d.ts +4 -4
- package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +4 -7
- package/types/Options/Classes/Particles/Move/MoveTrailFill.d.ts +4 -4
- package/types/Options/Classes/Particles/Move/OutModes.d.ts +5 -5
- package/types/Options/Classes/Particles/Move/Path/MovePath.d.ts +5 -5
- package/types/Options/Classes/Particles/Move/Spin.d.ts +5 -5
- package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +3 -9
- package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +4 -6
- package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +7 -7
- package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +5 -7
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +19 -19
- package/types/Options/Classes/Particles/Shadow.d.ts +5 -5
- package/types/Options/Classes/Particles/Shape/Shape.d.ts +5 -5
- package/types/Options/Classes/Particles/Size/Size.d.ts +7 -7
- package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +5 -7
- package/types/Options/Classes/Particles/Stroke.d.ts +5 -5
- package/types/Options/Classes/Particles/ZIndex/ZIndex.d.ts +4 -4
- package/types/Options/Classes/Random.d.ts +3 -3
- package/types/Options/Classes/Responsive.d.ts +7 -7
- package/types/Options/Classes/Theme/Theme.d.ts +6 -6
- package/types/Options/Classes/Theme/ThemeDefault.d.ts +4 -4
- package/types/Options/Classes/ValueWithRandom.d.ts +7 -11
- package/types/Options/Interfaces/Background/IBackground.d.ts +1 -1
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +2 -2
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +1 -1
- package/types/Options/Interfaces/IAnimatable.d.ts +1 -1
- package/types/Options/Interfaces/IAnimatableColor.d.ts +3 -3
- package/types/Options/Interfaces/IAnimation.d.ts +4 -4
- package/types/Options/Interfaces/IColorAnimation.d.ts +2 -2
- package/types/Options/Interfaces/IHslAnimation.d.ts +1 -1
- package/types/Options/Interfaces/IManualParticle.d.ts +3 -3
- package/types/Options/Interfaces/IOptionLoader.d.ts +1 -1
- package/types/Options/Interfaces/IOptions.d.ts +12 -15
- package/types/Options/Interfaces/IOptionsColor.d.ts +1 -1
- package/types/Options/Interfaces/IResponsive.d.ts +5 -4
- package/types/Options/Interfaces/IValueWithRandom.d.ts +3 -3
- package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +2 -2
- package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +3 -6
- package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +5 -8
- package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +3 -3
- package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +3 -4
- package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +1 -2
- package/types/Options/Interfaces/Particles/Bounce/IParticlesBounce.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +6 -4
- package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +15 -15
- package/types/Options/Interfaces/Particles/IShadow.d.ts +2 -2
- package/types/Options/Interfaces/Particles/IStroke.d.ts +5 -4
- package/types/Options/Interfaces/Particles/Move/IMove.d.ts +12 -17
- package/types/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +2 -4
- package/types/Options/Interfaces/Particles/Move/IMoveCenter.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +1 -3
- package/types/Options/Interfaces/Particles/Move/IMoveTrailFill.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/IOutModes.d.ts +1 -1
- package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +2 -2
- package/types/Options/Interfaces/Particles/Move/Path/IMovePath.d.ts +2 -2
- package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +0 -3
- package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +1 -2
- package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +2 -3
- package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +2 -3
- package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +2 -2
- package/types/Options/Interfaces/Particles/Size/ISize.d.ts +2 -3
- package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +2 -3
- package/types/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +1 -1
- package/types/Options/Interfaces/Theme/ITheme.d.ts +4 -3
- package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +1 -1
- package/types/Types/CustomEventArgs.d.ts +1 -1
- package/types/Types/CustomEventListener.d.ts +1 -1
- package/types/Types/ExportResult.d.ts +5 -0
- package/types/Types/ISourceOptions.d.ts +2 -2
- package/types/Types/ParticlesGroups.d.ts +1 -1
- package/types/Types/RangeValue.d.ts +1 -1
- package/types/Types/ShapeData.d.ts +2 -2
- package/types/Types/ShapeDrawerFunctions.d.ts +3 -3
- package/types/Utils/CanvasUtils.d.ts +11 -14
- package/types/Utils/ColorUtils.d.ts +6 -6
- package/types/Utils/EventDispatcher.d.ts +2 -2
- package/types/Utils/HslColorManager.d.ts +2 -2
- package/types/Utils/NumberUtils.d.ts +8 -8
- package/types/Utils/OptionsUtils.d.ts +6 -6
- package/types/Utils/RgbColorManager.d.ts +2 -2
- package/types/Utils/Utils.d.ts +32 -14
- package/types/bundle.d.ts +2 -91
- package/types/export-types.d.ts +107 -0
- package/types/exports.d.ts +89 -0
- package/types/index.d.ts +3 -204
- package/types/init.d.ts +2 -0
- package/umd/Core/Canvas.js +279 -249
- package/umd/Core/Container.js +105 -121
- package/umd/Core/Engine.js +285 -0
- package/umd/Core/Particle.js +174 -181
- package/umd/Core/Particles.js +155 -150
- package/umd/Core/Retina.js +21 -19
- package/umd/Core/Utils/Circle.js +15 -11
- package/umd/Core/Utils/Constants.js +5 -4
- package/umd/Core/Utils/EventListeners.js +268 -244
- package/umd/Core/Utils/InteractionManager.js +6 -16
- package/umd/Core/Utils/QuadTree.js +21 -27
- package/umd/Core/Utils/Rectangle.js +5 -5
- package/umd/Core/Utils/Vector.js +3 -3
- package/umd/Core/Utils/Vector3d.js +18 -10
- package/umd/Options/Classes/AnimatableColor.js +7 -6
- package/umd/Options/Classes/AnimationOptions.js +9 -8
- package/umd/Options/Classes/Background/Background.js +4 -4
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +5 -4
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +4 -4
- package/umd/Options/Classes/ColorAnimation.js +10 -6
- package/umd/Options/Classes/HslAnimation.js +5 -5
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +1 -25
- package/umd/Options/Classes/Interactivity/Events/Events.js +16 -35
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +3 -3
- package/umd/Options/Classes/Interactivity/Interactivity.js +6 -13
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/umd/Options/Classes/ManualParticle.js +8 -9
- package/umd/Options/Classes/Options.js +42 -62
- package/umd/Options/Classes/OptionsColor.js +4 -3
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +4 -4
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +3 -3
- package/umd/Options/Classes/Particles/Collisions/Collisions.js +12 -7
- package/umd/Options/Classes/Particles/Move/Move.js +32 -62
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +4 -4
- package/umd/Options/Classes/Particles/Move/MoveAttract.js +12 -23
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +4 -4
- package/umd/Options/Classes/Particles/Move/MoveTrail.js +5 -11
- package/umd/Options/Classes/Particles/Move/MoveTrailFill.js +3 -3
- package/umd/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/umd/Options/Classes/Particles/Move/Path/MovePath.js +5 -5
- package/umd/Options/Classes/Particles/Move/Spin.js +7 -5
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +5 -12
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +14 -10
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +3 -12
- package/umd/Options/Classes/Particles/ParticlesOptions.js +33 -38
- package/umd/Options/Classes/Particles/Shadow.js +4 -4
- package/umd/Options/Classes/Particles/Shape/Shape.js +11 -12
- package/umd/Options/Classes/Particles/Size/Size.js +14 -10
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +3 -12
- package/umd/Options/Classes/Particles/Stroke.js +6 -6
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +3 -3
- package/umd/Options/Classes/Responsive.js +3 -3
- package/umd/Options/Classes/Theme/Theme.js +5 -5
- package/umd/Options/Classes/ValueWithRandom.js +11 -24
- package/umd/Utils/CanvasUtils.js +24 -61
- package/umd/Utils/ColorUtils.js +32 -34
- package/umd/Utils/EventDispatcher.js +7 -6
- package/umd/Utils/HslColorManager.js +12 -14
- package/umd/Utils/NumberUtils.js +45 -49
- package/umd/Utils/OptionsUtils.js +3 -3
- package/umd/Utils/RgbColorManager.js +8 -10
- package/umd/Utils/Utils.js +158 -78
- package/umd/bundle.js +5 -98
- package/umd/export-types.js +123 -0
- package/umd/exports.js +115 -0
- package/umd/index.js +9 -200
- package/umd/init.js +26 -0
- package/browser/Core/Utils/FrameManager.js +0 -42
- package/browser/Core/Utils/Plugins.js +0 -112
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
- package/browser/engine.js +0 -175
- package/cjs/Core/Utils/FrameManager.js +0 -46
- package/cjs/Core/Utils/Plugins.js +0 -116
- package/cjs/Enums/Modes/SizeMode.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -17
- package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +0 -2
- package/cjs/engine.js +0 -179
- package/esm/Core/Interfaces/IParticleOverride.js +0 -1
- package/esm/Core/Interfaces/IParticlesMover.js +0 -1
- package/esm/Core/Utils/FrameManager.js +0 -42
- package/esm/Core/Utils/Plugins.js +0 -112
- package/esm/Enums/Modes/SizeMode.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
- package/esm/engine.js +0 -175
- package/types/Core/Interfaces/IParticleOverride.d.ts +0 -6
- package/types/Core/Interfaces/IParticlesMover.d.ts +0 -7
- package/types/Core/Utils/FrameManager.d.ts +0 -6
- package/types/Core/Utils/Plugins.d.ts +0 -51
- package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
- package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
- package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
- package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
- package/types/engine.d.ts +0 -39
- package/umd/Core/Utils/FrameManager.js +0 -56
- package/umd/Core/Utils/Plugins.js +0 -126
- package/umd/Enums/Modes/SizeMode.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -27
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +0 -12
- package/umd/engine.js +0 -189
- /package/browser/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/browser/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
- /package/{browser/Enums/Modes/SizeMode.js → esm/Enums/Modes/PixelMode.js} +0 -0
- /package/{browser/Options/Interfaces/Particles/Shape/ICharacterShape.js → esm/Types/ExportResult.js} +0 -0
- /package/umd/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/umd/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ShapeDrawerAfterEffectFunction, ShapeDrawerDestroyFunction, ShapeDrawerDrawFunction, ShapeDrawerInitFunction } from "../Types/ShapeDrawerFunctions.js";
|
|
2
|
+
import { Container } from "./Container.js";
|
|
3
|
+
import type { CustomEventArgs } from "../Types/CustomEventArgs.js";
|
|
4
|
+
import type { CustomEventListener } from "../Types/CustomEventListener.js";
|
|
5
|
+
import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
|
|
6
|
+
import type { IInteractor } from "./Interfaces/IInteractor.js";
|
|
7
|
+
import type { ILoadParams } from "./Interfaces/ILoadParams.js";
|
|
8
|
+
import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator.js";
|
|
9
|
+
import type { IOptions } from "../Options/Interfaces/IOptions.js";
|
|
10
|
+
import type { IParticleMover } from "./Interfaces/IParticleMover.js";
|
|
11
|
+
import type { IParticleUpdater } from "./Interfaces/IParticleUpdater.js";
|
|
12
|
+
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
13
|
+
import type { IPlugin } from "./Interfaces/IPlugin.js";
|
|
14
|
+
import type { IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
|
|
15
|
+
import type { ISourceOptions } from "../Types/ISourceOptions.js";
|
|
16
|
+
import type { Options } from "../Options/Classes/Options.js";
|
|
17
|
+
import type { Particle } from "./Particle.js";
|
|
18
|
+
import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
|
|
19
|
+
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
20
|
+
import type { SingleOrMultiple } from "../Types/SingleOrMultiple.js";
|
|
21
|
+
declare global {
|
|
22
|
+
interface Window {
|
|
23
|
+
tsParticles: Engine;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class Engine {
|
|
27
|
+
readonly drawers: Map<string, IShapeDrawer>;
|
|
28
|
+
readonly interactors: Map<Container, IInteractor[]>;
|
|
29
|
+
readonly movers: Map<Container, IParticleMover[]>;
|
|
30
|
+
readonly pathGenerators: Map<string, IMovePathGenerator>;
|
|
31
|
+
readonly plugins: IPlugin[];
|
|
32
|
+
readonly presets: Map<string, RecursivePartial<IOptions>>;
|
|
33
|
+
readonly updaters: Map<Container, IParticleUpdater[]>;
|
|
34
|
+
private readonly _configs;
|
|
35
|
+
private readonly _domArray;
|
|
36
|
+
private readonly _eventDispatcher;
|
|
37
|
+
private _initialized;
|
|
38
|
+
private readonly _initializers;
|
|
39
|
+
constructor();
|
|
40
|
+
get configs(): Record<string, ISourceOptions>;
|
|
41
|
+
get version(): string;
|
|
42
|
+
addConfig(nameOrConfig: string | ISourceOptions, config?: ISourceOptions): void;
|
|
43
|
+
addEventListener(type: string, listener: CustomEventListener): void;
|
|
44
|
+
addInteractor(name: string, interactorInitializer: (container: Container) => IInteractor, refresh?: boolean): Promise<void>;
|
|
45
|
+
addMover(name: string, moverInitializer: (container: Container) => IParticleMover, refresh?: boolean): Promise<void>;
|
|
46
|
+
addParticleUpdater(name: string, updaterInitializer: (container: Container) => IParticleUpdater, refresh?: boolean): Promise<void>;
|
|
47
|
+
addPathGenerator(name: string, generator: IMovePathGenerator, refresh?: boolean): Promise<void>;
|
|
48
|
+
addPlugin(plugin: IPlugin, refresh?: boolean): Promise<void>;
|
|
49
|
+
addPreset(preset: string, options: RecursivePartial<IOptions>, override?: boolean, refresh?: boolean): Promise<void>;
|
|
50
|
+
addShape(shape: SingleOrMultiple<string>, drawer: IShapeDrawer | ShapeDrawerDrawFunction, initOrRefresh?: ShapeDrawerInitFunction | boolean, afterEffectOrRefresh?: ShapeDrawerAfterEffectFunction | boolean, destroyOrRefresh?: ShapeDrawerDestroyFunction | boolean, refresh?: boolean): Promise<void>;
|
|
51
|
+
clearPlugins(container: Container): void;
|
|
52
|
+
dispatchEvent(type: string, args: CustomEventArgs): void;
|
|
53
|
+
dom(): Container[];
|
|
54
|
+
domItem(index: number): Container | undefined;
|
|
55
|
+
getAvailablePlugins(container: Container): Map<string, IContainerPlugin>;
|
|
56
|
+
getInteractors(container: Container, force?: boolean): IInteractor[];
|
|
57
|
+
getMovers(container: Container, force?: boolean): IParticleMover[];
|
|
58
|
+
getPathGenerator(type: string): IMovePathGenerator | undefined;
|
|
59
|
+
getPlugin(plugin: string): IPlugin | undefined;
|
|
60
|
+
getPreset(preset: string): ISourceOptions | undefined;
|
|
61
|
+
getShapeDrawer(type: string): IShapeDrawer | undefined;
|
|
62
|
+
getSupportedShapes(): IterableIterator<string>;
|
|
63
|
+
getUpdaters(container: Container, force?: boolean): IParticleUpdater[];
|
|
64
|
+
init(): void;
|
|
65
|
+
load(params: ILoadParams): Promise<Container | undefined>;
|
|
66
|
+
loadOptions(options: Options, sourceOptions: ISourceOptions): void;
|
|
67
|
+
loadParticlesOptions(container: Container, options: ParticlesOptions, ...sourceOptions: (RecursivePartial<IParticlesOptions> | undefined)[]): void;
|
|
68
|
+
refresh(refresh?: boolean): Promise<void>;
|
|
69
|
+
removeEventListener(type: string, listener: CustomEventListener): void;
|
|
70
|
+
setOnClickHandler(callback: (e: Event, particles?: Particle[]) => void): void;
|
|
71
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RangeValue } from "../../Types/RangeValue";
|
|
2
|
-
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple";
|
|
1
|
+
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
2
|
+
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
|
|
3
3
|
export interface IAlphaColor {
|
|
4
4
|
a: number;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICoordinates } from "./ICoordinates";
|
|
2
|
-
import type { Vector } from "../Utils/Vector";
|
|
1
|
+
import type { ICoordinates } from "./ICoordinates.js";
|
|
2
|
+
import type { Vector } from "../Utils/Vector.js";
|
|
3
3
|
export interface ICircleBouncer {
|
|
4
4
|
factor: Vector;
|
|
5
5
|
mass: number;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import type { ClickMode } from "../../Enums/Modes/ClickMode";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
1
|
+
import type { ClickMode } from "../../Enums/Modes/ClickMode.js";
|
|
2
|
+
import type { ExportResult } from "../../Types/ExportResult.js";
|
|
3
|
+
import type { ICoordinates } from "./ICoordinates.js";
|
|
4
|
+
import type { IDelta } from "./IDelta.js";
|
|
5
|
+
import type { IOptionsColor } from "../../Options/Interfaces/IOptionsColor.js";
|
|
6
|
+
import type { OutModeDirection } from "../../Enums/Directions/OutModeDirection.js";
|
|
7
|
+
import type { Particle } from "../Particle.js";
|
|
7
8
|
export interface IContainerPlugin {
|
|
8
9
|
clickPositionValid?: (position: ICoordinates) => boolean;
|
|
9
10
|
draw?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
|
|
10
11
|
drawParticle?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
|
|
12
|
+
export?: (type: string, data: Record<string, unknown>) => Promise<ExportResult>;
|
|
11
13
|
handleClickMode?: (mode: ClickMode | string) => void;
|
|
12
14
|
init?: () => Promise<void>;
|
|
13
15
|
particleBounce?: (particle: Particle, delta: IDelta, direction: OutModeDirection) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PixelMode } from "../../Enums/Modes/PixelMode.js";
|
|
2
|
+
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
3
3
|
export interface ICoordinates {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
@@ -15,7 +15,7 @@ export interface IRangedCoordinates3d extends IRangedCoordinates {
|
|
|
15
15
|
z: RangeValue;
|
|
16
16
|
}
|
|
17
17
|
export interface ICoordinatesWithMode extends ICoordinates {
|
|
18
|
-
mode:
|
|
18
|
+
mode: PixelMode | keyof typeof PixelMode;
|
|
19
19
|
}
|
|
20
20
|
export interface ICenterCoordinates extends ICoordinatesWithMode {
|
|
21
21
|
radius: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PixelMode } from "../../Enums/Modes/PixelMode.js";
|
|
2
2
|
export interface IDimension {
|
|
3
3
|
height: number;
|
|
4
4
|
width: number;
|
|
5
5
|
}
|
|
6
6
|
export interface IDimensionWithMode extends IDimension {
|
|
7
|
-
mode:
|
|
7
|
+
mode: PixelMode | keyof typeof PixelMode;
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Container } from "../Container";
|
|
2
|
-
import type { IDelta } from "./IDelta";
|
|
3
|
-
import type { IParticleColorStyle } from "./IParticleColorStyle";
|
|
4
|
-
import type { IParticleTransformValues } from "./IParticleTransformValues";
|
|
5
|
-
import type { IShadow } from "../../Options/Interfaces/Particles/IShadow";
|
|
6
|
-
import type { Particle } from "../Particle";
|
|
1
|
+
import type { Container } from "../Container.js";
|
|
2
|
+
import type { IDelta } from "./IDelta.js";
|
|
3
|
+
import type { IParticleColorStyle } from "./IParticleColorStyle.js";
|
|
4
|
+
import type { IParticleTransformValues } from "./IParticleTransformValues.js";
|
|
5
|
+
import type { IShadow } from "../../Options/Interfaces/Particles/IShadow.js";
|
|
6
|
+
import type { Particle } from "../Particle.js";
|
|
7
7
|
export interface IDrawParticleParams {
|
|
8
8
|
backgroundMask: boolean;
|
|
9
9
|
colorStyles: IParticleColorStyle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ClickMode } from "../../Enums/Modes/ClickMode";
|
|
2
|
-
import type { IDelta } from "./IDelta";
|
|
3
|
-
import type { IInteractor } from "./IInteractor";
|
|
4
|
-
import type { IModes } from "../../Options/Interfaces/Interactivity/Modes/IModes";
|
|
5
|
-
import type { Modes } from "../../Options/Classes/Interactivity/Modes/Modes";
|
|
6
|
-
import type { Particle } from "../Particle";
|
|
7
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
1
|
+
import type { ClickMode } from "../../Enums/Modes/ClickMode.js";
|
|
2
|
+
import type { IDelta } from "./IDelta.js";
|
|
3
|
+
import type { IInteractor } from "./IInteractor.js";
|
|
4
|
+
import type { IModes } from "../../Options/Interfaces/Interactivity/Modes/IModes.js";
|
|
5
|
+
import type { Modes } from "../../Options/Classes/Interactivity/Modes/Modes.js";
|
|
6
|
+
import type { Particle } from "../Particle.js";
|
|
7
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
8
8
|
export interface IExternalInteractor extends IInteractor {
|
|
9
9
|
handleClickMode?: (mode: ClickMode | string) => void;
|
|
10
10
|
loadModeOptions?: (options: Modes, ...sources: RecursivePartial<IModes | undefined>[]) => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { IDelta } from "./IDelta";
|
|
2
|
-
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions";
|
|
3
|
-
import type { ISourceOptions } from "../../Types/ISourceOptions";
|
|
4
|
-
import type { InteractorType } from "../../Enums/Types/InteractorType";
|
|
5
|
-
import type { Options } from "../../Options/Classes/Options";
|
|
6
|
-
import type { Particle } from "../Particle";
|
|
7
|
-
import type { ParticlesOptions } from "../../Options/Classes/Particles/ParticlesOptions";
|
|
8
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
1
|
+
import type { IDelta } from "./IDelta.js";
|
|
2
|
+
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
3
|
+
import type { ISourceOptions } from "../../Types/ISourceOptions.js";
|
|
4
|
+
import type { InteractorType } from "../../Enums/Types/InteractorType.js";
|
|
5
|
+
import type { Options } from "../../Options/Classes/Options.js";
|
|
6
|
+
import type { Particle } from "../Particle.js";
|
|
7
|
+
import type { ParticlesOptions } from "../../Options/Classes/Particles/ParticlesOptions.js";
|
|
8
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
9
9
|
export interface IInteractor {
|
|
10
10
|
loadOptions?: (options: Options, ...sources: (ISourceOptions | undefined)[]) => void;
|
|
11
11
|
loadParticlesOptions?: (options: ParticlesOptions, ...sources: (RecursivePartial<IParticlesOptions> | undefined)[]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ISourceOptions } from "../../Types/ISourceOptions";
|
|
2
|
-
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple";
|
|
1
|
+
import type { ISourceOptions } from "../../Types/ISourceOptions.js";
|
|
2
|
+
import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
|
|
3
3
|
export interface ILoadParams {
|
|
4
4
|
element?: HTMLElement;
|
|
5
5
|
id?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { Container } from "../Container";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { Container } from "../Container.js";
|
|
2
|
+
import type { IDelta } from "./IDelta.js";
|
|
3
|
+
import type { Particle } from "../Particle.js";
|
|
4
|
+
import type { Vector } from "../Utils/Vector.js";
|
|
4
5
|
export interface IMovePathGenerator {
|
|
5
|
-
generate: (particle: Particle) => Vector;
|
|
6
|
+
generate: (particle: Particle, delta: IDelta) => Vector;
|
|
6
7
|
init: (container: Container) => void;
|
|
7
8
|
reset: (particle: Particle) => void;
|
|
8
9
|
update: () => void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { IHsl, IRgb } from "./Colors";
|
|
2
|
-
import type { IBubbleParticleData } from "./IBubbleParticleData";
|
|
3
|
-
import type { ICoordinates3d } from "./ICoordinates";
|
|
4
|
-
import type { IParticleHslAnimation } from "./IParticleHslAnimation";
|
|
5
|
-
import type { IParticleNumericValueAnimation } from "./IParticleValueAnimation";
|
|
6
|
-
import type { IParticleRetinaProps } from "./IParticleRetinaProps";
|
|
7
|
-
import type { IParticleRoll } from "./IParticleRoll";
|
|
8
|
-
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions";
|
|
9
|
-
import type { IShapeValues } from "./IShapeValues";
|
|
10
|
-
import type { Interactivity } from "../../Options/Classes/Interactivity/Interactivity";
|
|
11
|
-
import type { Vector } from "../Utils/Vector";
|
|
1
|
+
import type { IHsl, IRgb } from "./Colors.js";
|
|
2
|
+
import type { IBubbleParticleData } from "./IBubbleParticleData.js";
|
|
3
|
+
import type { ICoordinates3d } from "./ICoordinates.js";
|
|
4
|
+
import type { IParticleHslAnimation } from "./IParticleHslAnimation.js";
|
|
5
|
+
import type { IParticleNumericValueAnimation } from "./IParticleValueAnimation.js";
|
|
6
|
+
import type { IParticleRetinaProps } from "./IParticleRetinaProps.js";
|
|
7
|
+
import type { IParticleRoll } from "./IParticleRoll.js";
|
|
8
|
+
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
9
|
+
import type { IShapeValues } from "./IShapeValues.js";
|
|
10
|
+
import type { Interactivity } from "../../Options/Classes/Interactivity/Interactivity.js";
|
|
11
|
+
import type { Vector } from "../Utils/Vector.js";
|
|
12
12
|
export interface IParticle {
|
|
13
13
|
readonly backColor?: IHsl;
|
|
14
14
|
readonly bubble: IBubbleParticleData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IDelta } from "./IDelta";
|
|
2
|
-
import type { Particle } from "../Particle";
|
|
1
|
+
import type { IDelta } from "./IDelta.js";
|
|
2
|
+
import type { Particle } from "../Particle.js";
|
|
3
3
|
export interface IParticleMover {
|
|
4
4
|
init(particle: Particle): void;
|
|
5
5
|
isEnabled(particle: Particle): boolean;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import type { IDelta } from "./IDelta";
|
|
2
|
-
import type { IParticleColorStyle } from "./IParticleColorStyle";
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
1
|
+
import type { IDelta } from "./IDelta.js";
|
|
2
|
+
import type { IParticleColorStyle } from "./IParticleColorStyle.js";
|
|
3
|
+
import type { IParticleTransformValues } from "./IParticleTransformValues.js";
|
|
4
|
+
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
5
|
+
import type { Particle } from "../Particle.js";
|
|
6
|
+
import type { ParticlesOptions } from "../../Options/Classes/Particles/ParticlesOptions.js";
|
|
7
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
9
8
|
export interface IParticleUpdater {
|
|
10
9
|
afterDraw?: (particle: Particle) => void;
|
|
11
10
|
beforeDraw?: (particle: Particle) => void;
|
|
12
11
|
getColorStyles?: (particle: Particle, context: CanvasRenderingContext2D, radius: number, opacity: number) => IParticleColorStyle;
|
|
13
|
-
getOverrides?: (particle: Particle, context: CanvasRenderingContext2D, radius: number, opacity: number) => IParticleOverride;
|
|
14
12
|
getTransformValues?: (particle: Particle) => IParticleTransformValues;
|
|
15
13
|
loadOptions?: (options: ParticlesOptions, ...sources: (RecursivePartial<IParticlesOptions> | undefined)[]) => void;
|
|
16
14
|
particleDestroyed?: (particle: Particle, override?: boolean) => void;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { AnimationStatus } from "../../Enums/AnimationStatus";
|
|
1
|
+
import type { AnimationStatus } from "../../Enums/AnimationStatus.js";
|
|
2
2
|
export interface IParticleValueAnimation<T> {
|
|
3
3
|
decay?: number;
|
|
4
|
+
delayTime?: number;
|
|
4
5
|
enable: boolean;
|
|
5
6
|
initialValue?: number;
|
|
6
7
|
loops?: number;
|
|
7
8
|
maxLoops?: number;
|
|
8
9
|
status?: AnimationStatus;
|
|
10
|
+
time?: number;
|
|
9
11
|
value: T;
|
|
10
12
|
velocity?: number;
|
|
11
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IDelta } from "./IDelta";
|
|
2
|
-
import type { IInteractor } from "./IInteractor";
|
|
3
|
-
import type { Particle } from "../Particle";
|
|
1
|
+
import type { IDelta } from "./IDelta.js";
|
|
2
|
+
import type { IInteractor } from "./IInteractor.js";
|
|
3
|
+
import type { Particle } from "../Particle.js";
|
|
4
4
|
export interface IParticlesInteractor extends IInteractor {
|
|
5
5
|
interact(particle: Particle, delta: IDelta): Promise<void>;
|
|
6
6
|
isEnabled(particle: Particle): boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { Container } from "../Container";
|
|
2
|
-
import type { IContainerPlugin } from "./IContainerPlugin";
|
|
3
|
-
import type {
|
|
4
|
-
import type { Options } from "../../Options/Classes/Options";
|
|
1
|
+
import type { Container } from "../Container.js";
|
|
2
|
+
import type { IContainerPlugin } from "./IContainerPlugin.js";
|
|
3
|
+
import type { IOptions } from "../../Options/Interfaces/IOptions.js";
|
|
4
|
+
import type { Options } from "../../Options/Classes/Options.js";
|
|
5
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
6
|
export interface IPlugin {
|
|
6
7
|
readonly id: string;
|
|
7
8
|
getPlugin(container: Container): IContainerPlugin;
|
|
8
|
-
loadOptions(options: Options, source?:
|
|
9
|
-
needsPlugin(options?:
|
|
9
|
+
loadOptions(options: Options, source?: RecursivePartial<IOptions>): void;
|
|
10
|
+
needsPlugin(options?: RecursivePartial<IOptions>): boolean;
|
|
10
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICoordinates, IRangedCoordinates } from "./ICoordinates";
|
|
2
|
-
import type { IDimension } from "./IDimension";
|
|
1
|
+
import type { ICoordinates, IRangedCoordinates } from "./ICoordinates.js";
|
|
2
|
+
import type { IDimension } from "./IDimension.js";
|
|
3
3
|
export interface IPositionFromSizeParams {
|
|
4
4
|
position?: Partial<ICoordinates>;
|
|
5
5
|
size: IDimension;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ShapeDrawerAfterEffectFunction, ShapeDrawerDestroyFunction, ShapeDrawerDrawFunction, ShapeDrawerInitFunction, ShapeDrawerLoadFunction, ShapeDrawerParticleInitFunction, ShapeDrawerSidesCountFunction } from "../../Types/ShapeDrawerFunctions";
|
|
1
|
+
import type { ShapeDrawerAfterEffectFunction, ShapeDrawerDestroyFunction, ShapeDrawerDrawFunction, ShapeDrawerInitFunction, ShapeDrawerLoadFunction, ShapeDrawerParticleInitFunction, ShapeDrawerSidesCountFunction } from "../../Types/ShapeDrawerFunctions.js";
|
|
2
2
|
export interface IShapeDrawer {
|
|
3
3
|
afterEffect?: ShapeDrawerAfterEffectFunction;
|
|
4
4
|
destroy?: ShapeDrawerDestroyFunction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions";
|
|
2
|
-
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
1
|
+
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
2
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
3
3
|
export interface IShapeValues {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
close?: boolean;
|
package/types/Core/Particle.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type { ICenterCoordinates, ICoordinates, ICoordinates3d } from "./Interfaces/ICoordinates";
|
|
2
|
-
import type { IHsl, IRgb } from "./Interfaces/Colors";
|
|
3
|
-
import type { Container } from "./Container";
|
|
4
|
-
import type { Engine } from "
|
|
5
|
-
import type { IBubbleParticleData } from "./Interfaces/IBubbleParticleData";
|
|
6
|
-
import type { IDelta } from "./Interfaces/IDelta";
|
|
7
|
-
import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator";
|
|
8
|
-
import type { IParticle } from "./Interfaces/IParticle";
|
|
9
|
-
import type { IParticleHslAnimation } from "./Interfaces/IParticleHslAnimation";
|
|
10
|
-
import type { IParticleNumericValueAnimation } from "./Interfaces/IParticleValueAnimation";
|
|
11
|
-
import type { IParticleRetinaProps } from "./Interfaces/IParticleRetinaProps";
|
|
12
|
-
import type { IParticleRoll } from "./Interfaces/IParticleRoll";
|
|
13
|
-
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions";
|
|
14
|
-
import type { IShapeValues } from "./Interfaces/IShapeValues";
|
|
15
|
-
import type { ISlowParticleData } from "./Interfaces/ISlowParticleData";
|
|
16
|
-
import { Interactivity } from "../Options/Classes/Interactivity/Interactivity";
|
|
17
|
-
import { ParticleOutType } from "../Enums/Types/ParticleOutType";
|
|
18
|
-
import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions";
|
|
19
|
-
import type { RecursivePartial } from "../Types/RecursivePartial";
|
|
20
|
-
import { Vector } from "./Utils/Vector";
|
|
21
|
-
import { Vector3d } from "./Utils/Vector3d";
|
|
1
|
+
import type { ICenterCoordinates, ICoordinates, ICoordinates3d } from "./Interfaces/ICoordinates.js";
|
|
2
|
+
import type { IHsl, IRgb } from "./Interfaces/Colors.js";
|
|
3
|
+
import type { Container } from "./Container.js";
|
|
4
|
+
import type { Engine } from "./Engine.js";
|
|
5
|
+
import type { IBubbleParticleData } from "./Interfaces/IBubbleParticleData.js";
|
|
6
|
+
import type { IDelta } from "./Interfaces/IDelta.js";
|
|
7
|
+
import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator.js";
|
|
8
|
+
import type { IParticle } from "./Interfaces/IParticle.js";
|
|
9
|
+
import type { IParticleHslAnimation } from "./Interfaces/IParticleHslAnimation.js";
|
|
10
|
+
import type { IParticleNumericValueAnimation } from "./Interfaces/IParticleValueAnimation.js";
|
|
11
|
+
import type { IParticleRetinaProps } from "./Interfaces/IParticleRetinaProps.js";
|
|
12
|
+
import type { IParticleRoll } from "./Interfaces/IParticleRoll.js";
|
|
13
|
+
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
14
|
+
import type { IShapeValues } from "./Interfaces/IShapeValues.js";
|
|
15
|
+
import type { ISlowParticleData } from "./Interfaces/ISlowParticleData.js";
|
|
16
|
+
import { Interactivity } from "../Options/Classes/Interactivity/Interactivity.js";
|
|
17
|
+
import { ParticleOutType } from "../Enums/Types/ParticleOutType.js";
|
|
18
|
+
import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
|
|
19
|
+
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
20
|
+
import { Vector } from "./Utils/Vector.js";
|
|
21
|
+
import { Vector3d } from "./Utils/Vector3d.js";
|
|
22
22
|
export declare class Particle implements IParticle {
|
|
23
23
|
readonly container: Container;
|
|
24
24
|
backColor?: IHsl;
|
|
@@ -76,10 +76,10 @@ export declare class Particle implements IParticle {
|
|
|
76
76
|
isInsideCanvas(): boolean;
|
|
77
77
|
isVisible(): boolean;
|
|
78
78
|
reset(): void;
|
|
79
|
-
private _calcPosition;
|
|
80
|
-
private _calculateVelocity;
|
|
81
|
-
private _checkOverlap;
|
|
82
|
-
private _getRollColor;
|
|
83
|
-
private _initPosition;
|
|
84
|
-
private _loadShapeData;
|
|
79
|
+
private readonly _calcPosition;
|
|
80
|
+
private readonly _calculateVelocity;
|
|
81
|
+
private readonly _checkOverlap;
|
|
82
|
+
private readonly _getRollColor;
|
|
83
|
+
private readonly _initPosition;
|
|
84
|
+
private readonly _loadShapeData;
|
|
85
85
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { ClickMode } from "../Enums/Modes/ClickMode";
|
|
2
|
-
import type { Container } from "./Container";
|
|
3
|
-
import type { Engine } from "
|
|
4
|
-
import type { ICoordinates } from "./Interfaces/ICoordinates";
|
|
5
|
-
import type { IDelta } from "./Interfaces/IDelta";
|
|
6
|
-
import type { IMouseData } from "./Interfaces/IMouseData";
|
|
7
|
-
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions";
|
|
8
|
-
import { Particle } from "./Particle";
|
|
9
|
-
import { QuadTree } from "./Utils/QuadTree";
|
|
10
|
-
import type { RecursivePartial } from "../Types/RecursivePartial";
|
|
1
|
+
import type { ClickMode } from "../Enums/Modes/ClickMode.js";
|
|
2
|
+
import type { Container } from "./Container.js";
|
|
3
|
+
import type { Engine } from "./Engine.js";
|
|
4
|
+
import type { ICoordinates } from "./Interfaces/ICoordinates.js";
|
|
5
|
+
import type { IDelta } from "./Interfaces/IDelta.js";
|
|
6
|
+
import type { IMouseData } from "./Interfaces/IMouseData.js";
|
|
7
|
+
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
8
|
+
import { Particle } from "./Particle.js";
|
|
9
|
+
import { QuadTree } from "./Utils/QuadTree.js";
|
|
10
|
+
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
11
11
|
export declare class Particles {
|
|
12
|
-
private readonly container;
|
|
13
|
-
array: Particle[];
|
|
14
12
|
lastZIndex: number;
|
|
15
13
|
limit: number;
|
|
16
|
-
movers: import("./Interfaces/IParticleMover").IParticleMover[];
|
|
14
|
+
movers: import("./Interfaces/IParticleMover.js").IParticleMover[];
|
|
17
15
|
needsSort: boolean;
|
|
18
16
|
pool: Particle[];
|
|
19
17
|
pushing?: boolean;
|
|
20
18
|
quadTree: QuadTree;
|
|
21
|
-
updaters: import("
|
|
22
|
-
|
|
19
|
+
updaters: import("./Interfaces/IParticleUpdater.js").IParticleUpdater[];
|
|
20
|
+
private _array;
|
|
21
|
+
private readonly _container;
|
|
23
22
|
private readonly _engine;
|
|
24
|
-
private readonly
|
|
25
|
-
private
|
|
23
|
+
private readonly _interactionManager;
|
|
24
|
+
private _nextId;
|
|
25
|
+
private _zArray;
|
|
26
26
|
constructor(engine: Engine, container: Container);
|
|
27
27
|
get count(): number;
|
|
28
28
|
addManualParticles(): void;
|
|
@@ -30,6 +30,9 @@ export declare class Particles {
|
|
|
30
30
|
clear(): void;
|
|
31
31
|
destroy(): void;
|
|
32
32
|
draw(delta: IDelta): Promise<void>;
|
|
33
|
+
filter(condition: (particle: Particle) => boolean): Particle[];
|
|
34
|
+
find(condition: (particle: Particle) => boolean): Particle | undefined;
|
|
35
|
+
get(index: number): Particle | undefined;
|
|
33
36
|
handleClickMode(mode: ClickMode | string): void;
|
|
34
37
|
init(): void;
|
|
35
38
|
push(nb: number, mouse?: IMouseData, overrideOptions?: RecursivePartial<IParticlesOptions>, group?: string): void;
|
|
@@ -39,8 +42,8 @@ export declare class Particles {
|
|
|
39
42
|
removeQuantity(quantity: number, group?: string): void;
|
|
40
43
|
setDensity(): void;
|
|
41
44
|
update(delta: IDelta): Promise<void>;
|
|
42
|
-
private _applyDensity;
|
|
43
|
-
private _initDensityFactor;
|
|
44
|
-
private _pushParticle;
|
|
45
|
-
private _removeParticle;
|
|
45
|
+
private readonly _applyDensity;
|
|
46
|
+
private readonly _initDensityFactor;
|
|
47
|
+
private readonly _pushParticle;
|
|
48
|
+
private readonly _removeParticle;
|
|
46
49
|
}
|
package/types/Core/Retina.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Container } from "./Container";
|
|
2
|
-
import type { Particle } from "./Particle";
|
|
1
|
+
import type { Container } from "./Container.js";
|
|
2
|
+
import type { Particle } from "./Particle.js";
|
|
3
3
|
export declare class Retina {
|
|
4
4
|
private readonly container;
|
|
5
5
|
attractDistance: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICoordinates } from "../Interfaces/ICoordinates";
|
|
2
|
-
import { Range } from "./Range";
|
|
1
|
+
import type { ICoordinates } from "../Interfaces/ICoordinates.js";
|
|
2
|
+
import { Range } from "./Range.js";
|
|
3
3
|
export declare class Circle extends Range {
|
|
4
4
|
readonly radius: number;
|
|
5
5
|
constructor(x: number, y: number, radius: number);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export declare const generatedAttribute = "generated";
|
|
2
|
-
export declare const touchEndEvent = "touchend";
|
|
3
2
|
export declare const mouseDownEvent = "pointerdown";
|
|
4
3
|
export declare const mouseUpEvent = "pointerup";
|
|
4
|
+
export declare const mouseLeaveEvent = "pointerleave";
|
|
5
|
+
export declare const mouseOutEvent = "pointerout";
|
|
5
6
|
export declare const mouseMoveEvent = "pointermove";
|
|
6
7
|
export declare const touchStartEvent = "touchstart";
|
|
8
|
+
export declare const touchEndEvent = "touchend";
|
|
7
9
|
export declare const touchMoveEvent = "touchmove";
|
|
8
|
-
export declare const mouseLeaveEvent = "pointerleave";
|
|
9
|
-
export declare const mouseOutEvent = "pointerout";
|
|
10
10
|
export declare const touchCancelEvent = "touchcancel";
|
|
11
11
|
export declare const resizeEvent = "resize";
|
|
12
12
|
export declare const visibilityChangeEvent = "visibilitychange";
|
|
13
|
+
export declare const errorPrefix = "tsParticles - Error";
|