tsparticles 1.35.2 → 1.37.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/Canvas.js +4 -6
- package/Core/Container.d.ts +4 -2
- package/Core/Container.js +21 -12
- package/Core/Loader.d.ts +19 -4
- package/Core/Loader.js +80 -18
- package/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/Enums/Modes/ResponsiveMode.js +8 -0
- package/Enums/Modes/index.d.ts +1 -0
- package/Enums/Modes/index.js +1 -0
- package/Interactions/External/Attract/index.d.ts +1 -1
- package/Interactions/External/Attract/index.js +2 -2
- package/Interactions/External/Bounce/index.d.ts +1 -1
- package/Interactions/External/Bounce/index.js +2 -2
- package/Interactions/External/Bubble/index.d.ts +1 -1
- package/Interactions/External/Bubble/index.js +2 -2
- package/Interactions/External/Connect/index.d.ts +1 -1
- package/Interactions/External/Connect/index.js +2 -2
- package/Interactions/External/Grab/index.d.ts +1 -1
- package/Interactions/External/Grab/index.js +2 -2
- package/Interactions/External/Repulse/index.d.ts +1 -1
- package/Interactions/External/Repulse/index.js +2 -2
- package/Interactions/External/Trail/index.d.ts +1 -1
- package/Interactions/External/Trail/index.js +2 -2
- package/Interactions/Particles/Attract/index.d.ts +1 -1
- package/Interactions/Particles/Attract/index.js +2 -2
- package/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/Interactions/Particles/Collisions/index.js +2 -2
- package/Interactions/Particles/Links/index.d.ts +2 -2
- package/Interactions/Particles/Links/index.js +5 -5
- package/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/Interactions/Particles/Links/plugin.js +2 -2
- package/Options/Classes/FullScreen/FullScreen.js +2 -2
- package/Options/Classes/Interactivity/Interactivity.js +1 -1
- package/Options/Classes/Options.d.ts +1 -1
- package/Options/Classes/Options.js +5 -2
- package/Options/Classes/Responsive.d.ts +2 -0
- package/Options/Classes/Responsive.js +10 -0
- package/Options/Interfaces/IResponsive.d.ts +2 -0
- package/Plugins/Absorbers/plugin.d.ts +1 -1
- package/Plugins/Absorbers/plugin.js +2 -2
- package/Plugins/Emitters/plugin.d.ts +1 -1
- package/Plugins/Emitters/plugin.js +2 -2
- package/Plugins/PolygonMask/plugin.js +1 -1
- package/README.md +1 -1
- package/Shapes/Circle/index.d.ts +1 -1
- package/Shapes/Circle/index.js +2 -2
- package/Shapes/Image/index.d.ts +1 -1
- package/Shapes/Image/index.js +3 -3
- package/Shapes/Line/index.d.ts +1 -1
- package/Shapes/Line/index.js +2 -2
- package/Shapes/Polygon/index.d.ts +3 -3
- package/Shapes/Polygon/index.js +7 -7
- package/Shapes/Square/index.d.ts +1 -1
- package/Shapes/Square/index.js +3 -3
- package/Shapes/Star/index.d.ts +1 -1
- package/Shapes/Star/index.js +2 -2
- package/Shapes/Text/index.d.ts +1 -1
- package/Shapes/Text/index.js +2 -2
- package/Updaters/Angle/index.d.ts +1 -1
- package/Updaters/Angle/index.js +2 -2
- package/Updaters/Color/index.d.ts +1 -1
- package/Updaters/Color/index.js +2 -2
- package/Updaters/Life/index.d.ts +1 -1
- package/Updaters/Life/index.js +2 -2
- package/Updaters/Opacity/index.d.ts +1 -1
- package/Updaters/Opacity/index.js +2 -2
- package/Updaters/OutModes/index.d.ts +1 -1
- package/Updaters/OutModes/index.js +2 -2
- package/Updaters/Roll/index.d.ts +1 -1
- package/Updaters/Roll/index.js +2 -2
- package/Updaters/Size/index.d.ts +1 -1
- package/Updaters/Size/index.js +2 -2
- package/Updaters/StrokeColor/index.d.ts +1 -1
- package/Updaters/StrokeColor/index.js +2 -2
- package/Updaters/Tilt/index.d.ts +1 -1
- package/Updaters/Tilt/index.js +2 -2
- package/Updaters/Wobble/index.d.ts +1 -1
- package/Updaters/Wobble/index.js +2 -2
- package/Utils/Utils.d.ts +1 -2
- package/browser/Core/Canvas.d.ts +29 -0
- package/browser/Core/Canvas.js +26 -6
- package/browser/Core/Container.d.ts +98 -2
- package/browser/Core/Container.js +104 -12
- package/browser/Core/FrameManager.d.ts +8 -0
- package/browser/Core/FrameManager.js +9 -0
- package/browser/Core/InteractionManager.d.ts +3 -0
- package/browser/Core/InteractionManager.js +4 -0
- package/browser/Core/Interfaces/Colors.d.ts +23 -0
- package/browser/Core/Interfaces/IAttract.d.ts +3 -0
- package/browser/Core/Interfaces/IBounds.d.ts +3 -0
- package/browser/Core/Interfaces/IBubble.d.ts +3 -0
- package/browser/Core/Interfaces/IBubbleParticleData.d.ts +3 -0
- package/browser/Core/Interfaces/IContainerInteractivity.d.ts +3 -0
- package/browser/Core/Interfaces/IContainerPlugin.d.ts +3 -0
- package/browser/Core/Interfaces/ICoordinates.d.ts +3 -0
- package/browser/Core/Interfaces/IDelta.d.ts +3 -0
- package/browser/Core/Interfaces/IDimension.d.ts +3 -0
- package/browser/Core/Interfaces/IExternalInteractor.d.ts +3 -0
- package/browser/Core/Interfaces/IInteractor.d.ts +3 -0
- package/browser/Core/Interfaces/IMouseData.d.ts +3 -0
- package/browser/Core/Interfaces/IMovePathGenerator.d.ts +3 -0
- package/browser/Core/Interfaces/IParticle.d.ts +3 -0
- package/browser/Core/Interfaces/IParticleValueAnimation.d.ts +3 -0
- package/browser/Core/Interfaces/IParticlesInteractor.d.ts +3 -0
- package/browser/Core/Interfaces/IPlugin.d.ts +8 -0
- package/browser/Core/Interfaces/IRepulse.d.ts +3 -0
- package/browser/Core/Interfaces/IShapeDrawer.d.ts +3 -0
- package/browser/Core/Interfaces/IShapeValues.d.ts +3 -0
- package/browser/Core/Loader.d.ts +64 -4
- package/browser/Core/Loader.js +131 -18
- package/browser/Core/Particle/Mover.d.ts +3 -0
- package/browser/Core/Particle/Mover.js +7 -2
- package/browser/Core/Particle.d.ts +7 -0
- package/browser/Core/Particle.js +13 -0
- package/browser/Core/Particles.d.ts +13 -0
- package/browser/Core/Particles.js +25 -0
- package/browser/Core/Retina.d.ts +6 -0
- package/browser/Core/Retina.js +9 -0
- package/browser/Enums/Directions/MoveDirection.d.ts +3 -0
- package/browser/Enums/Directions/MoveDirection.js +3 -0
- package/browser/Enums/Directions/RotateDirection.d.ts +3 -0
- package/browser/Enums/Directions/RotateDirection.js +3 -0
- package/browser/Enums/Directions/TiltDirection.d.ts +3 -0
- package/browser/Enums/Directions/TiltDirection.js +3 -0
- package/browser/Enums/InteractivityDetect.d.ts +3 -0
- package/browser/Enums/InteractivityDetect.js +3 -0
- package/browser/Enums/Modes/ClickMode.d.ts +3 -0
- package/browser/Enums/Modes/ClickMode.js +3 -0
- package/browser/Enums/Modes/CollisionMode.d.ts +3 -0
- package/browser/Enums/Modes/CollisionMode.js +3 -0
- package/browser/Enums/Modes/DivMode.d.ts +3 -0
- package/browser/Enums/Modes/DivMode.js +3 -0
- package/browser/Enums/Modes/HoverMode.d.ts +3 -0
- package/browser/Enums/Modes/HoverMode.js +3 -0
- package/browser/Enums/Modes/OutMode.d.ts +3 -0
- package/browser/Enums/Modes/OutMode.js +3 -0
- package/browser/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/browser/Enums/Modes/ResponsiveMode.js +5 -0
- package/browser/Enums/Modes/SizeMode.d.ts +3 -0
- package/browser/Enums/Modes/SizeMode.js +3 -0
- package/browser/Enums/Modes/index.d.ts +1 -0
- package/browser/Enums/Modes/index.js +1 -0
- package/browser/Enums/Types/DestroyType.d.ts +3 -0
- package/browser/Enums/Types/DestroyType.js +3 -0
- package/browser/Enums/Types/DivType.d.ts +3 -0
- package/browser/Enums/Types/DivType.js +3 -0
- package/browser/Enums/Types/OrbitType.d.ts +3 -0
- package/browser/Enums/Types/OrbitType.js +3 -0
- package/browser/Enums/Types/ShapeType.d.ts +3 -0
- package/browser/Enums/Types/ShapeType.js +3 -0
- package/browser/Enums/Types/StartValueType.d.ts +3 -0
- package/browser/Enums/Types/StartValueType.js +3 -0
- package/browser/Interactions/External/Attract/Attractor.d.ts +4 -0
- package/browser/Interactions/External/Attract/Attractor.js +5 -0
- package/browser/Interactions/External/Attract/index.d.ts +1 -1
- package/browser/Interactions/External/Attract/index.js +2 -2
- package/browser/Interactions/External/Bounce/Bouncer.js +1 -0
- package/browser/Interactions/External/Bounce/index.d.ts +1 -1
- package/browser/Interactions/External/Bounce/index.js +2 -2
- package/browser/Interactions/External/Bubble/Bubbler.d.ts +4 -0
- package/browser/Interactions/External/Bubble/Bubbler.js +14 -0
- package/browser/Interactions/External/Bubble/IBubblerProcessParam.d.ts +6 -0
- package/browser/Interactions/External/Bubble/ProcessBubbleType.d.ts +3 -0
- package/browser/Interactions/External/Bubble/ProcessBubbleType.js +3 -0
- package/browser/Interactions/External/Bubble/index.d.ts +1 -1
- package/browser/Interactions/External/Bubble/index.js +2 -2
- package/browser/Interactions/External/Connect/Connector.d.ts +7 -0
- package/browser/Interactions/External/Connect/Connector.js +8 -0
- package/browser/Interactions/External/Connect/index.d.ts +1 -1
- package/browser/Interactions/External/Connect/index.js +2 -2
- package/browser/Interactions/External/Grab/Grabber.d.ts +4 -0
- package/browser/Interactions/External/Grab/Grabber.js +9 -0
- package/browser/Interactions/External/Grab/index.d.ts +1 -1
- package/browser/Interactions/External/Grab/index.js +2 -2
- package/browser/Interactions/External/Repulse/Repulser.d.ts +4 -0
- package/browser/Interactions/External/Repulse/Repulser.js +162 -0
- package/browser/Interactions/External/Repulse/index.d.ts +1 -1
- package/browser/Interactions/External/Repulse/index.js +2 -2
- package/browser/Interactions/External/Trail/TrailMaker.d.ts +3 -0
- package/browser/Interactions/External/Trail/TrailMaker.js +4 -0
- package/browser/Interactions/External/Trail/index.d.ts +1 -1
- package/browser/Interactions/External/Trail/index.js +2 -2
- package/browser/Interactions/Particles/Attract/Attractor.d.ts +3 -0
- package/browser/Interactions/Particles/Attract/Attractor.js +4 -0
- package/browser/Interactions/Particles/Attract/index.d.ts +1 -1
- package/browser/Interactions/Particles/Attract/index.js +2 -2
- package/browser/Interactions/Particles/Collisions/Collider.d.ts +3 -0
- package/browser/Interactions/Particles/Collisions/Collider.js +4 -0
- package/browser/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/browser/Interactions/Particles/Collisions/index.js +2 -2
- package/browser/Interactions/Particles/Links/ILink.d.ts +6 -0
- package/browser/Interactions/Particles/Links/LinkInstance.js +8 -0
- package/browser/Interactions/Particles/Links/Linker.js +2 -0
- package/browser/Interactions/Particles/Links/index.d.ts +2 -2
- package/browser/Interactions/Particles/Links/index.js +5 -5
- package/browser/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/browser/Interactions/Particles/Links/plugin.js +3 -2
- package/browser/Options/Classes/AnimatableColor.d.ts +4 -0
- package/browser/Options/Classes/AnimatableColor.js +4 -0
- package/browser/Options/Classes/Background/Background.d.ts +4 -0
- package/browser/Options/Classes/Background/Background.js +4 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.d.ts +14 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +4 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +3 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +3 -0
- package/browser/Options/Classes/ColorAnimation.d.ts +3 -0
- package/browser/Options/Classes/ColorAnimation.js +3 -0
- package/browser/Options/Classes/FullScreen/FullScreen.d.ts +16 -0
- package/browser/Options/Classes/FullScreen/FullScreen.js +8 -2
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +4 -0
- package/browser/Options/Classes/Interactivity/Events/DivEvent.d.ts +37 -0
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +33 -0
- package/browser/Options/Classes/Interactivity/Events/Events.d.ts +31 -0
- package/browser/Options/Classes/Interactivity/Events/Events.js +31 -0
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.d.ts +4 -0
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +4 -0
- package/browser/Options/Classes/Interactivity/Events/Parallax.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Events/Parallax.js +3 -0
- package/browser/Options/Classes/Interactivity/Interactivity.d.ts +13 -0
- package/browser/Options/Classes/Interactivity/Interactivity.js +14 -1
- package/browser/Options/Classes/Interactivity/Modes/Attract.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Attract.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Bubble.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Bubble.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleBase.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +9 -0
- package/browser/Options/Classes/Interactivity/Modes/BubbleDiv.js +9 -0
- package/browser/Options/Classes/Interactivity/Modes/Connect.d.ts +21 -0
- package/browser/Options/Classes/Interactivity/Modes/Connect.js +21 -0
- package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/ConnectLinks.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Grab.d.ts +21 -0
- package/browser/Options/Classes/Interactivity/Modes/Grab.js +21 -0
- package/browser/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/GrabLinks.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Modes.d.ts +4 -0
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +4 -0
- package/browser/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Push.js +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Remove.d.ts +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Remove.js +12 -0
- package/browser/Options/Classes/Interactivity/Modes/Repulse.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Repulse.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseBase.js +3 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +9 -0
- package/browser/Options/Classes/Interactivity/Modes/RepulseDiv.js +11 -0
- package/browser/Options/Classes/Interactivity/Modes/Slow.d.ts +9 -0
- package/browser/Options/Classes/Interactivity/Modes/Slow.js +10 -0
- package/browser/Options/Classes/Interactivity/Modes/Trail.d.ts +3 -0
- package/browser/Options/Classes/Interactivity/Modes/Trail.js +3 -0
- package/browser/Options/Classes/Motion/Motion.d.ts +11 -0
- package/browser/Options/Classes/Motion/Motion.js +4 -0
- package/browser/Options/Classes/Motion/MotionReduce.d.ts +9 -0
- package/browser/Options/Classes/Motion/MotionReduce.js +3 -0
- package/browser/Options/Classes/Options.d.ts +31 -1
- package/browser/Options/Classes/Options.js +36 -3
- package/browser/Options/Classes/OptionsColor.d.ts +4 -0
- package/browser/Options/Classes/OptionsColor.js +4 -0
- package/browser/Options/Classes/Particles/Collisions/Collisions.d.ts +4 -0
- package/browser/Options/Classes/Particles/Collisions/Collisions.js +4 -0
- package/browser/Options/Classes/Particles/Links/Links.d.ts +4 -0
- package/browser/Options/Classes/Particles/Links/Links.js +4 -0
- package/browser/Options/Classes/Particles/Links/LinksShadow.d.ts +3 -0
- package/browser/Options/Classes/Particles/Links/LinksShadow.js +3 -0
- package/browser/Options/Classes/Particles/Links/LinksTriangle.d.ts +3 -0
- package/browser/Options/Classes/Particles/Links/LinksTriangle.js +3 -0
- package/browser/Options/Classes/Particles/Move/Attract.d.ts +21 -0
- package/browser/Options/Classes/Particles/Move/Attract.js +21 -0
- package/browser/Options/Classes/Particles/Move/Move.d.ts +42 -0
- package/browser/Options/Classes/Particles/Move/Move.js +43 -0
- package/browser/Options/Classes/Particles/Move/MoveAngle.d.ts +3 -0
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +4 -1
- package/browser/Options/Classes/Particles/Move/Path/Path.d.ts +3 -0
- package/browser/Options/Classes/Particles/Move/Path/Path.js +3 -0
- package/browser/Options/Classes/Particles/Move/Trail.d.ts +3 -0
- package/browser/Options/Classes/Particles/Move/Trail.js +3 -0
- package/browser/Options/Classes/Particles/Number/Density.d.ts +12 -0
- package/browser/Options/Classes/Particles/Number/Density.js +12 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.d.ts +10 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +10 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.d.ts +13 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +13 -0
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +15 -0
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +12 -0
- package/browser/Options/Classes/Particles/Orbit/Orbit.d.ts +4 -0
- package/browser/Options/Classes/Particles/Orbit/Orbit.js +4 -0
- package/browser/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +3 -0
- package/browser/Options/Classes/Particles/Orbit/OrbitRotation.js +3 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.d.ts +22 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.js +22 -0
- package/browser/Options/Classes/Particles/Repulse/Repulse.d.ts +3 -0
- package/browser/Options/Classes/Particles/Repulse/Repulse.js +3 -0
- package/browser/Options/Classes/Particles/Rotate/Rotate.d.ts +4 -0
- package/browser/Options/Classes/Particles/Rotate/Rotate.js +4 -0
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +3 -0
- package/browser/Options/Classes/Particles/Rotate/RotateAnimation.js +3 -0
- package/browser/Options/Classes/Particles/Shadow.d.ts +4 -0
- package/browser/Options/Classes/Particles/Shadow.js +4 -0
- package/browser/Options/Classes/Particles/Shape/Shape.d.ts +42 -0
- package/browser/Options/Classes/Particles/Shape/Shape.js +43 -0
- package/browser/Options/Classes/Particles/Size/Size.d.ts +13 -0
- package/browser/Options/Classes/Particles/Size/Size.js +13 -0
- package/browser/Options/Classes/Particles/Size/SizeAnimation.d.ts +15 -0
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +12 -0
- package/browser/Options/Classes/Particles/Stroke.d.ts +4 -0
- package/browser/Options/Classes/Particles/Stroke.js +4 -0
- package/browser/Options/Classes/Particles/Tilt/Tilt.d.ts +4 -0
- package/browser/Options/Classes/Particles/Tilt/Tilt.js +4 -0
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +3 -0
- package/browser/Options/Classes/Particles/Tilt/TiltAnimation.js +3 -0
- package/browser/Options/Classes/Particles/Twinkle/Twinkle.d.ts +4 -0
- package/browser/Options/Classes/Particles/Twinkle/Twinkle.js +4 -0
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +3 -0
- package/browser/Options/Classes/Particles/Twinkle/TwinkleValues.js +3 -0
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.d.ts +3 -0
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
- package/browser/Options/Classes/Responsive.d.ts +2 -0
- package/browser/Options/Classes/Responsive.js +11 -0
- package/browser/Options/Classes/ValueWithRandom.d.ts +3 -0
- package/browser/Options/Interfaces/Background/IBackground.d.ts +35 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +21 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +10 -0
- package/browser/Options/Interfaces/FullScreen/IFullScreen.d.ts +16 -0
- package/browser/Options/Interfaces/IAnimatableColor.d.ts +8 -0
- package/browser/Options/Interfaces/IAnimation.d.ts +10 -0
- package/browser/Options/Interfaces/IColorAnimation.d.ts +7 -0
- package/browser/Options/Interfaces/IColorAnimation.js +4 -0
- package/browser/Options/Interfaces/IManualParticle.d.ts +11 -0
- package/browser/Options/Interfaces/IOptionLoader.d.ts +9 -0
- package/browser/Options/Interfaces/IOptions.d.ts +71 -0
- package/browser/Options/Interfaces/IOptionsColor.d.ts +5 -0
- package/browser/Options/Interfaces/IResponsive.d.ts +2 -0
- package/browser/Options/Interfaces/IValueWithRandom.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +12 -0
- package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +13 -0
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
- package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +4 -0
- package/browser/Options/Interfaces/Interactivity/Events/IParallax.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/IInteractivity.d.ts +20 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +9 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +9 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.d.ts +4 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +3 -0
- package/browser/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +6 -0
- package/browser/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +3 -0
- package/browser/Options/Interfaces/Motion/IMotion.d.ts +11 -0
- package/browser/Options/Interfaces/Motion/IMotionReduce.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/IParticles.d.ts +10 -0
- package/browser/Options/Interfaces/Particles/IShadow.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/IStroke.d.ts +14 -0
- package/browser/Options/Interfaces/Particles/Links/ILinks.d.ts +43 -0
- package/browser/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Move/IAttract.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Move/IMove.d.ts +19 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Move/ITrail.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Move/Path/iPath.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Rotate/IRotate.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Shape/IShape.d.ts +22 -0
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
- package/browser/Options/Interfaces/Particles/Size/ISize.d.ts +7 -0
- package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +9 -0
- package/browser/Options/Interfaces/Particles/Tilt/ITilt.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +4 -0
- package/browser/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +3 -0
- package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +4 -0
- package/browser/Options/Interfaces/Theme/ITheme.d.ts +14 -0
- package/browser/Options/Interfaces/Theme/IThemeDefault.d.ts +16 -0
- package/browser/Plugins/Absorbers/AbsorberInstance.d.ts +3 -0
- package/browser/Plugins/Absorbers/AbsorberInstance.js +3 -0
- package/browser/Plugins/Absorbers/Absorbers.d.ts +3 -0
- package/browser/Plugins/Absorbers/Absorbers.js +3 -0
- package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
- package/browser/Plugins/Absorbers/Enums/AbsorberClickMode.js +3 -0
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.d.ts +4 -0
- package/browser/Plugins/Absorbers/Options/Classes/Absorber.js +4 -0
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +29 -0
- package/browser/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +3 -0
- package/browser/Plugins/Absorbers/plugin.d.ts +1 -1
- package/browser/Plugins/Absorbers/plugin.js +5 -2
- package/browser/Plugins/Emitters/EmitterInstance.d.ts +3 -0
- package/browser/Plugins/Emitters/EmitterInstance.js +3 -0
- package/browser/Plugins/Emitters/Emitters.d.ts +3 -0
- package/browser/Plugins/Emitters/Emitters.js +3 -0
- package/browser/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
- package/browser/Plugins/Emitters/Enums/EmitterClickMode.js +3 -0
- package/browser/Plugins/Emitters/Options/Classes/Emitter.d.ts +4 -0
- package/browser/Plugins/Emitters/Options/Classes/Emitter.js +4 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterLife.js +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterRate.js +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Classes/EmitterSize.js +3 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +44 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +19 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +3 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +11 -0
- package/browser/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +3 -0
- package/browser/Plugins/Emitters/Shapes/Square/SquareShape.js +4 -0
- package/browser/Plugins/Emitters/plugin.d.ts +1 -1
- package/browser/Plugins/Emitters/plugin.js +5 -2
- package/browser/Plugins/PolygonMask/Options/Classes/Draw.d.ts +15 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Draw.js +15 -0
- package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/DrawStroke.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Inline.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Inline.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/LocalSvg.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Move.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/Move.js +3 -0
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +10 -0
- package/browser/Plugins/PolygonMask/Options/Classes/PolygonMask.js +10 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IDraw.d.ts +9 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IDrawStroke.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IInline.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/ILocalSvg.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IMove.d.ts +3 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +7 -0
- package/browser/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +3 -0
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.d.ts +12 -0
- package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +22 -0
- package/browser/Plugins/PolygonMask/pathseg.js +55 -1
- package/browser/Plugins/PolygonMask/plugin.js +8 -2
- package/browser/Plugins/PolygonMask/utils.js +14 -2
- package/browser/Shapes/Circle/CircleDrawer.d.ts +3 -0
- package/browser/Shapes/Circle/CircleDrawer.js +3 -0
- package/browser/Shapes/Circle/index.d.ts +1 -1
- package/browser/Shapes/Circle/index.js +2 -2
- package/browser/Shapes/Image/ImageDrawer.d.ts +3 -0
- package/browser/Shapes/Image/ImageDrawer.js +6 -0
- package/browser/Shapes/Image/Utils.d.ts +3 -0
- package/browser/Shapes/Image/Utils.js +1 -0
- package/browser/Shapes/Image/index.d.ts +1 -1
- package/browser/Shapes/Image/index.js +3 -3
- package/browser/Shapes/Line/LineDrawer.d.ts +3 -0
- package/browser/Shapes/Line/LineDrawer.js +3 -0
- package/browser/Shapes/Line/index.d.ts +1 -1
- package/browser/Shapes/Line/index.js +2 -2
- package/browser/Shapes/Polygon/PolygonDrawer.d.ts +3 -0
- package/browser/Shapes/Polygon/PolygonDrawer.js +3 -0
- package/browser/Shapes/Polygon/PolygonDrawerBase.d.ts +3 -0
- package/browser/Shapes/Polygon/PolygonDrawerBase.js +5 -1
- package/browser/Shapes/Polygon/TriangleDrawer.d.ts +3 -0
- package/browser/Shapes/Polygon/TriangleDrawer.js +3 -0
- package/browser/Shapes/Polygon/index.d.ts +3 -3
- package/browser/Shapes/Polygon/index.js +7 -7
- package/browser/Shapes/Square/SquareDrawer.d.ts +3 -0
- package/browser/Shapes/Square/SquareDrawer.js +3 -0
- package/browser/Shapes/Square/index.d.ts +1 -1
- package/browser/Shapes/Square/index.js +3 -3
- package/browser/Shapes/Star/StarDrawer.d.ts +3 -0
- package/browser/Shapes/Star/StarDrawer.js +3 -0
- package/browser/Shapes/Star/index.d.ts +1 -1
- package/browser/Shapes/Star/index.js +2 -2
- package/browser/Shapes/Text/TextDrawer.d.ts +3 -0
- package/browser/Shapes/Text/TextDrawer.js +3 -0
- package/browser/Shapes/Text/index.d.ts +1 -1
- package/browser/Shapes/Text/index.js +2 -2
- package/browser/Types/ParticlesGroups.d.ts +4 -0
- package/browser/Types/RecursivePartial.d.ts +3 -0
- package/browser/Types/ShapeData.d.ts +3 -0
- package/browser/Types/ShapeDrawerFunctions.d.ts +21 -0
- package/browser/Types/SingleOrMultiple.d.ts +3 -0
- package/browser/Updaters/Angle/index.d.ts +1 -1
- package/browser/Updaters/Angle/index.js +2 -2
- package/browser/Updaters/Color/ColorUpdater.js +1 -0
- package/browser/Updaters/Color/index.d.ts +1 -1
- package/browser/Updaters/Color/index.js +2 -2
- package/browser/Updaters/Life/LifeUpdater.js +1 -0
- package/browser/Updaters/Life/index.d.ts +1 -1
- package/browser/Updaters/Life/index.js +2 -2
- package/browser/Updaters/Opacity/OpacityUpdater.js +1 -0
- package/browser/Updaters/Opacity/index.d.ts +1 -1
- package/browser/Updaters/Opacity/index.js +2 -2
- package/browser/Updaters/OutModes/OutOfCanvasUpdater.js +1 -0
- package/browser/Updaters/OutModes/index.d.ts +1 -1
- package/browser/Updaters/OutModes/index.js +2 -2
- package/browser/Updaters/Roll/index.d.ts +1 -1
- package/browser/Updaters/Roll/index.js +2 -2
- package/browser/Updaters/Size/SizeUpdater.js +1 -0
- package/browser/Updaters/Size/index.d.ts +1 -1
- package/browser/Updaters/Size/index.js +2 -2
- package/browser/Updaters/StrokeColor/StrokeColorUpdater.js +1 -0
- package/browser/Updaters/StrokeColor/index.d.ts +1 -1
- package/browser/Updaters/StrokeColor/index.js +2 -2
- package/browser/Updaters/Tilt/index.d.ts +1 -1
- package/browser/Updaters/Tilt/index.js +2 -2
- package/browser/Updaters/Wobble/index.d.ts +1 -1
- package/browser/Updaters/Wobble/index.js +2 -2
- package/browser/Utils/CanvasUtils.js +4 -0
- package/browser/Utils/Circle.d.ts +3 -0
- package/browser/Utils/Circle.js +3 -0
- package/browser/Utils/CircleWarp.d.ts +3 -0
- package/browser/Utils/CircleWarp.js +3 -0
- package/browser/Utils/ColorUtils.d.ts +20 -0
- package/browser/Utils/ColorUtils.js +33 -1
- package/browser/Utils/Constants.d.ts +7 -0
- package/browser/Utils/Constants.js +7 -0
- package/browser/Utils/EventListeners.d.ts +32 -0
- package/browser/Utils/EventListeners.js +40 -0
- package/browser/Utils/NumberUtils.d.ts +27 -0
- package/browser/Utils/NumberUtils.js +27 -0
- package/browser/Utils/Plugins.d.ts +3 -0
- package/browser/Utils/Plugins.js +3 -0
- package/browser/Utils/Point.d.ts +3 -0
- package/browser/Utils/Point.js +3 -0
- package/browser/Utils/QuadTree.d.ts +3 -0
- package/browser/Utils/QuadTree.js +3 -0
- package/browser/Utils/Range.d.ts +3 -0
- package/browser/Utils/Range.js +3 -0
- package/browser/Utils/Rectangle.d.ts +3 -0
- package/browser/Utils/Rectangle.js +3 -0
- package/browser/Utils/Utils.d.ts +6 -2
- package/browser/Utils/Utils.js +14 -0
- package/browser/full.d.ts +1 -1
- package/browser/full.js +14 -6
- package/browser/index.d.ts +1 -2
- package/browser/index.js +2 -2
- package/browser/index.slim.d.ts +1 -2
- package/browser/index.slim.js +3 -2
- package/browser/main.d.ts +103 -10
- package/browser/main.js +114 -11
- package/browser/pjs.d.ts +27 -0
- package/browser/pjs.js +23 -0
- package/browser/slim.d.ts +1 -1
- package/browser/slim.js +39 -47
- package/esm/Core/Canvas.js +4 -6
- package/esm/Core/Container.d.ts +4 -2
- package/esm/Core/Container.js +21 -12
- package/esm/Core/Loader.d.ts +19 -4
- package/esm/Core/Loader.js +80 -18
- package/esm/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/esm/Enums/Modes/ResponsiveMode.js +5 -0
- package/esm/Enums/Modes/index.d.ts +1 -0
- package/esm/Enums/Modes/index.js +1 -0
- package/esm/Interactions/External/Attract/index.d.ts +1 -1
- package/esm/Interactions/External/Attract/index.js +2 -2
- package/esm/Interactions/External/Bounce/index.d.ts +1 -1
- package/esm/Interactions/External/Bounce/index.js +2 -2
- package/esm/Interactions/External/Bubble/index.d.ts +1 -1
- package/esm/Interactions/External/Bubble/index.js +2 -2
- package/esm/Interactions/External/Connect/index.d.ts +1 -1
- package/esm/Interactions/External/Connect/index.js +2 -2
- package/esm/Interactions/External/Grab/index.d.ts +1 -1
- package/esm/Interactions/External/Grab/index.js +2 -2
- package/esm/Interactions/External/Repulse/index.d.ts +1 -1
- package/esm/Interactions/External/Repulse/index.js +2 -2
- package/esm/Interactions/External/Trail/index.d.ts +1 -1
- package/esm/Interactions/External/Trail/index.js +2 -2
- package/esm/Interactions/Particles/Attract/index.d.ts +1 -1
- package/esm/Interactions/Particles/Attract/index.js +2 -2
- package/esm/Interactions/Particles/Collisions/index.d.ts +1 -1
- package/esm/Interactions/Particles/Collisions/index.js +2 -2
- package/esm/Interactions/Particles/Links/index.d.ts +2 -2
- package/esm/Interactions/Particles/Links/index.js +5 -5
- package/esm/Interactions/Particles/Links/plugin.d.ts +1 -1
- package/esm/Interactions/Particles/Links/plugin.js +2 -2
- package/esm/Options/Classes/FullScreen/FullScreen.js +2 -2
- package/esm/Options/Classes/Interactivity/Interactivity.js +1 -1
- package/esm/Options/Classes/Options.d.ts +1 -1
- package/esm/Options/Classes/Options.js +6 -3
- package/esm/Options/Classes/Responsive.d.ts +2 -0
- package/esm/Options/Classes/Responsive.js +10 -0
- package/esm/Options/Interfaces/IResponsive.d.ts +2 -0
- package/esm/Plugins/Absorbers/plugin.d.ts +1 -1
- package/esm/Plugins/Absorbers/plugin.js +2 -2
- package/esm/Plugins/Emitters/plugin.d.ts +1 -1
- package/esm/Plugins/Emitters/plugin.js +2 -2
- package/esm/Plugins/PolygonMask/plugin.js +1 -1
- package/esm/Shapes/Circle/index.d.ts +1 -1
- package/esm/Shapes/Circle/index.js +2 -2
- package/esm/Shapes/Image/index.d.ts +1 -1
- package/esm/Shapes/Image/index.js +3 -3
- package/esm/Shapes/Line/index.d.ts +1 -1
- package/esm/Shapes/Line/index.js +2 -2
- package/esm/Shapes/Polygon/index.d.ts +3 -3
- package/esm/Shapes/Polygon/index.js +7 -7
- package/esm/Shapes/Square/index.d.ts +1 -1
- package/esm/Shapes/Square/index.js +3 -3
- package/esm/Shapes/Star/index.d.ts +1 -1
- package/esm/Shapes/Star/index.js +2 -2
- package/esm/Shapes/Text/index.d.ts +1 -1
- package/esm/Shapes/Text/index.js +2 -2
- package/esm/Updaters/Angle/index.d.ts +1 -1
- package/esm/Updaters/Angle/index.js +2 -2
- package/esm/Updaters/Color/index.d.ts +1 -1
- package/esm/Updaters/Color/index.js +2 -2
- package/esm/Updaters/Life/index.d.ts +1 -1
- package/esm/Updaters/Life/index.js +2 -2
- package/esm/Updaters/Opacity/index.d.ts +1 -1
- package/esm/Updaters/Opacity/index.js +2 -2
- package/esm/Updaters/OutModes/index.d.ts +1 -1
- package/esm/Updaters/OutModes/index.js +2 -2
- package/esm/Updaters/Roll/index.d.ts +1 -1
- package/esm/Updaters/Roll/index.js +2 -2
- package/esm/Updaters/Size/index.d.ts +1 -1
- package/esm/Updaters/Size/index.js +2 -2
- package/esm/Updaters/StrokeColor/index.d.ts +1 -1
- package/esm/Updaters/StrokeColor/index.js +2 -2
- package/esm/Updaters/Tilt/index.d.ts +1 -1
- package/esm/Updaters/Tilt/index.js +2 -2
- package/esm/Updaters/Wobble/index.d.ts +1 -1
- package/esm/Updaters/Wobble/index.js +2 -2
- package/esm/Utils/Utils.d.ts +1 -2
- package/esm/full.d.ts +1 -1
- package/esm/full.js +14 -6
- package/esm/index.d.ts +1 -2
- package/esm/index.js +2 -2
- package/esm/index.slim.d.ts +1 -2
- package/esm/index.slim.js +2 -2
- package/esm/main.d.ts +11 -10
- package/esm/main.js +18 -7
- package/esm/slim.d.ts +1 -1
- package/esm/slim.js +39 -47
- package/full.d.ts +1 -1
- package/full.js +14 -6
- package/index.d.ts +1 -2
- package/index.js +2 -3
- package/index.slim.d.ts +1 -2
- package/index.slim.js +2 -3
- package/main.d.ts +11 -10
- package/main.js +18 -7
- package/package.json +1 -1
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/slim.d.ts +1 -1
- package/slim.js +39 -47
- package/tsparticles.js +10262 -13560
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.js +1472 -0
- package/tsparticles.slim.js +8305 -11259
- package/tsparticles.slim.min.js +2 -2
- package/167.js +0 -1779
|
@@ -10,13 +10,39 @@ import { FullScreen } from "./FullScreen/FullScreen";
|
|
|
10
10
|
import { Motion } from "./Motion/Motion";
|
|
11
11
|
import { ManualParticle } from "./ManualParticle";
|
|
12
12
|
import { Responsive } from "./Responsive";
|
|
13
|
+
/**
|
|
14
|
+
* [[include:Options.md]]
|
|
15
|
+
* @category Options
|
|
16
|
+
*/
|
|
13
17
|
export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
14
18
|
#private;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated this property is obsolete, please use the new fpsLimit
|
|
21
|
+
*/
|
|
15
22
|
get fps_limit(): number;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @deprecated this property is obsolete, please use the new fpsLimit
|
|
26
|
+
* @param value
|
|
27
|
+
*/
|
|
16
28
|
set fps_limit(value: number);
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated this property is obsolete, please use the new retinaDetect
|
|
31
|
+
*/
|
|
17
32
|
get retina_detect(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated this property is obsolete, please use the new retinaDetect
|
|
35
|
+
* @param value
|
|
36
|
+
*/
|
|
18
37
|
set retina_detect(value: boolean);
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated this property is obsolete, please use the new fullScreen
|
|
40
|
+
*/
|
|
19
41
|
get backgroundMode(): FullScreen;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated this property is obsolete, please use the new fullScreen
|
|
44
|
+
* @param value
|
|
45
|
+
*/
|
|
20
46
|
set backgroundMode(value: FullScreen);
|
|
21
47
|
autoPlay: boolean;
|
|
22
48
|
background: Background;
|
|
@@ -39,8 +65,12 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
39
65
|
defaultLightTheme?: string;
|
|
40
66
|
[name: string]: unknown;
|
|
41
67
|
constructor();
|
|
68
|
+
/**
|
|
69
|
+
* This methods loads the source object in the current instance
|
|
70
|
+
* @param data the source data to load into the instance
|
|
71
|
+
*/
|
|
42
72
|
load(data?: RecursivePartial<IOptions>): void;
|
|
43
73
|
setTheme(name?: string): void;
|
|
44
|
-
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions):
|
|
74
|
+
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
|
|
45
75
|
private importPreset;
|
|
46
76
|
}
|
|
@@ -10,11 +10,15 @@ import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
|
|
|
10
10
|
import { Background } from "./Background/Background";
|
|
11
11
|
import { Plugins } from "../../Utils";
|
|
12
12
|
import { Theme } from "./Theme/Theme";
|
|
13
|
-
import { ThemeMode } from "../../Enums";
|
|
13
|
+
import { ResponsiveMode, ThemeMode } from "../../Enums";
|
|
14
14
|
import { FullScreen } from "./FullScreen/FullScreen";
|
|
15
15
|
import { Motion } from "./Motion/Motion";
|
|
16
16
|
import { ManualParticle } from "./ManualParticle";
|
|
17
17
|
import { Responsive } from "./Responsive";
|
|
18
|
+
/**
|
|
19
|
+
* [[include:Options.md]]
|
|
20
|
+
* @category Options
|
|
21
|
+
*/
|
|
18
22
|
export class Options {
|
|
19
23
|
constructor() {
|
|
20
24
|
_Options_instances.add(this);
|
|
@@ -35,24 +39,50 @@ export class Options {
|
|
|
35
39
|
this.themes = [];
|
|
36
40
|
this.zLayers = 100;
|
|
37
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated this property is obsolete, please use the new fpsLimit
|
|
44
|
+
*/
|
|
38
45
|
get fps_limit() {
|
|
39
46
|
return this.fpsLimit;
|
|
40
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @deprecated this property is obsolete, please use the new fpsLimit
|
|
51
|
+
* @param value
|
|
52
|
+
*/
|
|
41
53
|
set fps_limit(value) {
|
|
42
54
|
this.fpsLimit = value;
|
|
43
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated this property is obsolete, please use the new retinaDetect
|
|
58
|
+
*/
|
|
44
59
|
get retina_detect() {
|
|
45
60
|
return this.detectRetina;
|
|
46
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated this property is obsolete, please use the new retinaDetect
|
|
64
|
+
* @param value
|
|
65
|
+
*/
|
|
47
66
|
set retina_detect(value) {
|
|
48
67
|
this.detectRetina = value;
|
|
49
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated this property is obsolete, please use the new fullScreen
|
|
71
|
+
*/
|
|
50
72
|
get backgroundMode() {
|
|
51
73
|
return this.fullScreen;
|
|
52
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated this property is obsolete, please use the new fullScreen
|
|
77
|
+
* @param value
|
|
78
|
+
*/
|
|
53
79
|
set backgroundMode(value) {
|
|
54
80
|
this.fullScreen.load(value);
|
|
55
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* This methods loads the source object in the current instance
|
|
84
|
+
* @param data the source data to load into the instance
|
|
85
|
+
*/
|
|
56
86
|
load(data) {
|
|
57
87
|
var _a, _b, _c, _d, _e;
|
|
58
88
|
if (data === undefined) {
|
|
@@ -144,9 +174,12 @@ export class Options {
|
|
|
144
174
|
}
|
|
145
175
|
}
|
|
146
176
|
setResponsive(width, pxRatio, defaultOptions) {
|
|
147
|
-
var _a;
|
|
148
177
|
this.load(defaultOptions);
|
|
149
|
-
|
|
178
|
+
const responsiveOptions = this.responsive.find((t) => t.mode === ResponsiveMode.screen && screen
|
|
179
|
+
? t.maxWidth * pxRatio > screen.availWidth
|
|
180
|
+
: t.maxWidth * pxRatio > width);
|
|
181
|
+
this.load(responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.options);
|
|
182
|
+
return responsiveOptions === null || responsiveOptions === void 0 ? void 0 : responsiveOptions.maxWidth;
|
|
150
183
|
}
|
|
151
184
|
importPreset(preset) {
|
|
152
185
|
this.load(Plugins.getPreset(preset));
|
|
@@ -2,6 +2,10 @@ import type { IOptionsColor } from "../Interfaces/IOptionsColor";
|
|
|
2
2
|
import type { IRgb, IHsl, IHsv, IValueColor } from "../../Core/Interfaces";
|
|
3
3
|
import type { RecursivePartial, SingleOrMultiple } from "../../Types";
|
|
4
4
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
5
|
+
/**
|
|
6
|
+
* [[include:Color.md]]
|
|
7
|
+
* @category Options
|
|
8
|
+
*/
|
|
5
9
|
export declare class OptionsColor implements IOptionsColor, IOptionLoader<IOptionsColor> {
|
|
6
10
|
value: SingleOrMultiple<SingleOrMultiple<string> | IValueColor | IRgb | IHsl | IHsv>;
|
|
7
11
|
constructor();
|
|
@@ -4,6 +4,10 @@ import type { RecursivePartial } from "../../../../Types";
|
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
import { Bounce } from "../Bounce/Bounce";
|
|
6
6
|
import { CollisionsOverlap } from "./CollisionsOverlap";
|
|
7
|
+
/**
|
|
8
|
+
* @category Options
|
|
9
|
+
* [[include:Collisions.md]]
|
|
10
|
+
*/
|
|
7
11
|
export declare class Collisions implements ICollisions, IOptionLoader<ICollisions> {
|
|
8
12
|
bounce: Bounce;
|
|
9
13
|
enable: boolean;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { CollisionMode } from "../../../../Enums";
|
|
2
2
|
import { Bounce } from "../Bounce/Bounce";
|
|
3
3
|
import { CollisionsOverlap } from "./CollisionsOverlap";
|
|
4
|
+
/**
|
|
5
|
+
* @category Options
|
|
6
|
+
* [[include:Collisions.md]]
|
|
7
|
+
*/
|
|
4
8
|
export class Collisions {
|
|
5
9
|
constructor() {
|
|
6
10
|
this.bounce = new Bounce();
|
|
@@ -4,6 +4,10 @@ import type { RecursivePartial } from "../../../../Types";
|
|
|
4
4
|
import { LinksTriangle } from "./LinksTriangle";
|
|
5
5
|
import { OptionsColor } from "../../OptionsColor";
|
|
6
6
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
7
|
+
/**
|
|
8
|
+
* [[include:Options/Particles/Links.md]]
|
|
9
|
+
* @category Options
|
|
10
|
+
*/
|
|
7
11
|
export declare class Links implements ILinks, IOptionLoader<ILinks> {
|
|
8
12
|
blink: boolean;
|
|
9
13
|
color: OptionsColor;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { LinksShadow } from "./LinksShadow";
|
|
2
2
|
import { LinksTriangle } from "./LinksTriangle";
|
|
3
3
|
import { OptionsColor } from "../../OptionsColor";
|
|
4
|
+
/**
|
|
5
|
+
* [[include:Options/Particles/Links.md]]
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
4
8
|
export class Links {
|
|
5
9
|
constructor() {
|
|
6
10
|
this.blink = false;
|
|
@@ -2,6 +2,9 @@ import type { ILinksShadow } from "../../../Interfaces/Particles/Links/ILinksSha
|
|
|
2
2
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
3
|
import { OptionsColor } from "../../OptionsColor";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
+
/**
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
5
8
|
export declare class LinksShadow implements ILinksShadow, IOptionLoader<ILinksShadow> {
|
|
6
9
|
blur: number;
|
|
7
10
|
color: OptionsColor;
|
|
@@ -2,6 +2,9 @@ import type { ILinksTriangle } from "../../../Interfaces/Particles/Links/ILinksT
|
|
|
2
2
|
import { OptionsColor } from "../../OptionsColor";
|
|
3
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
+
/**
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
5
8
|
export declare class LinksTriangle implements ILinksTriangle, IOptionLoader<ILinksTriangle> {
|
|
6
9
|
color?: OptionsColor;
|
|
7
10
|
enable: boolean;
|
|
@@ -2,10 +2,31 @@ import type { IAttract } from "../../../Interfaces/Particles/Move/IAttract";
|
|
|
2
2
|
import type { ICoordinates } from "../../../../Core/Interfaces/ICoordinates";
|
|
3
3
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
+
/**
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
5
8
|
export declare class Attract implements IAttract, IOptionLoader<IAttract> {
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @deprecated this property is obsolete, please use the new rotate.x
|
|
12
|
+
*/
|
|
6
13
|
get rotateX(): number;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @deprecated this property is obsolete, please use the new rotate.x
|
|
17
|
+
* @param value
|
|
18
|
+
*/
|
|
7
19
|
set rotateX(value: number);
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @deprecated this property is obsolete, please use the new rotate.y
|
|
23
|
+
*/
|
|
8
24
|
get rotateY(): number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @deprecated this property is obsolete, please use the new rotate.y
|
|
28
|
+
* @param value
|
|
29
|
+
*/
|
|
9
30
|
set rotateY(value: number);
|
|
10
31
|
distance: number;
|
|
11
32
|
enable: boolean;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category Options
|
|
3
|
+
*/
|
|
1
4
|
export class Attract {
|
|
2
5
|
constructor() {
|
|
3
6
|
this.distance = 200;
|
|
@@ -7,15 +10,33 @@ export class Attract {
|
|
|
7
10
|
y: 3000,
|
|
8
11
|
};
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @deprecated this property is obsolete, please use the new rotate.x
|
|
16
|
+
*/
|
|
10
17
|
get rotateX() {
|
|
11
18
|
return this.rotate.x;
|
|
12
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @deprecated this property is obsolete, please use the new rotate.x
|
|
23
|
+
* @param value
|
|
24
|
+
*/
|
|
13
25
|
set rotateX(value) {
|
|
14
26
|
this.rotate.x = value;
|
|
15
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @deprecated this property is obsolete, please use the new rotate.y
|
|
31
|
+
*/
|
|
16
32
|
get rotateY() {
|
|
17
33
|
return this.rotate.y;
|
|
18
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @deprecated this property is obsolete, please use the new rotate.y
|
|
38
|
+
* @param value
|
|
39
|
+
*/
|
|
19
40
|
set rotateY(value) {
|
|
20
41
|
this.rotate.y = value;
|
|
21
42
|
}
|
|
@@ -10,16 +10,58 @@ import { MoveGravity } from "./MoveGravity";
|
|
|
10
10
|
import { OutModes } from "./OutModes";
|
|
11
11
|
import type { IDistance } from "../../../../Core/Interfaces";
|
|
12
12
|
import { Spin } from "./Spin";
|
|
13
|
+
/**
|
|
14
|
+
* [[include:Options/Particles/Move.md]]
|
|
15
|
+
* @category Options
|
|
16
|
+
*/
|
|
13
17
|
export declare class Move implements IMove, IOptionLoader<IMove> {
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
20
|
+
*/
|
|
14
21
|
get collisions(): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
24
|
+
* @param value
|
|
25
|
+
*/
|
|
15
26
|
set collisions(value: boolean);
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
29
|
+
*/
|
|
16
30
|
get bounce(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
33
|
+
* @param value
|
|
34
|
+
*/
|
|
17
35
|
set bounce(value: boolean);
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
39
|
+
*/
|
|
18
40
|
get out_mode(): OutMode | keyof typeof OutMode | OutModeAlt;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
44
|
+
* @param value
|
|
45
|
+
*/
|
|
19
46
|
set out_mode(value: OutMode | keyof typeof OutMode | OutModeAlt);
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
50
|
+
*/
|
|
20
51
|
get outMode(): OutMode | keyof typeof OutMode | OutModeAlt;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
55
|
+
* @param value
|
|
56
|
+
*/
|
|
21
57
|
set outMode(value: OutMode | keyof typeof OutMode | OutModeAlt);
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated use the new [[path]] property instead
|
|
60
|
+
*/
|
|
22
61
|
get noise(): Path;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated use the new [[path]] property instead
|
|
64
|
+
*/
|
|
23
65
|
set noise(value: Path);
|
|
24
66
|
angle: MoveAngle;
|
|
25
67
|
attract: Attract;
|
|
@@ -7,6 +7,10 @@ import { MoveGravity } from "./MoveGravity";
|
|
|
7
7
|
import { OutModes } from "./OutModes";
|
|
8
8
|
import { deepExtend, setRangeValue } from "../../../../Utils";
|
|
9
9
|
import { Spin } from "./Spin";
|
|
10
|
+
/**
|
|
11
|
+
* [[include:Options/Particles/Move.md]]
|
|
12
|
+
* @category Options
|
|
13
|
+
*/
|
|
10
14
|
export class Move {
|
|
11
15
|
constructor() {
|
|
12
16
|
this.angle = new MoveAngle();
|
|
@@ -28,32 +32,71 @@ export class Move {
|
|
|
28
32
|
this.vibrate = false;
|
|
29
33
|
this.warp = false;
|
|
30
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
37
|
+
*/
|
|
31
38
|
get collisions() {
|
|
32
39
|
return false;
|
|
33
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
43
|
+
* @param value
|
|
44
|
+
*/
|
|
34
45
|
set collisions(value) {
|
|
46
|
+
// deprecated
|
|
35
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
50
|
+
*/
|
|
36
51
|
get bounce() {
|
|
37
52
|
return this.collisions;
|
|
38
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated this property is obsolete, please use the new collisions object on particles options
|
|
56
|
+
* @param value
|
|
57
|
+
*/
|
|
39
58
|
set bounce(value) {
|
|
40
59
|
this.collisions = value;
|
|
41
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
64
|
+
*/
|
|
42
65
|
get out_mode() {
|
|
43
66
|
return this.outMode;
|
|
44
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
71
|
+
* @param value
|
|
72
|
+
*/
|
|
45
73
|
set out_mode(value) {
|
|
46
74
|
this.outMode = value;
|
|
47
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
79
|
+
*/
|
|
48
80
|
get outMode() {
|
|
49
81
|
return this.outModes.default;
|
|
50
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @deprecated this property is obsolete, please use the new outMode
|
|
86
|
+
* @param value
|
|
87
|
+
*/
|
|
51
88
|
set outMode(value) {
|
|
52
89
|
this.outModes.default = value;
|
|
53
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated use the new [[path]] property instead
|
|
93
|
+
*/
|
|
54
94
|
get noise() {
|
|
55
95
|
return this.path;
|
|
56
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated use the new [[path]] property instead
|
|
99
|
+
*/
|
|
57
100
|
set noise(value) {
|
|
58
101
|
this.path = value;
|
|
59
102
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { IMoveAngle } from "../../../Interfaces/Particles/Move/IMoveAngle";
|
|
2
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
4
|
+
/**
|
|
5
|
+
* @category Options
|
|
6
|
+
*/
|
|
4
7
|
export declare class MoveAngle implements IMoveAngle, IOptionLoader<IMoveAngle> {
|
|
5
8
|
offset: number;
|
|
6
9
|
value: number;
|
|
@@ -2,6 +2,9 @@ import type { IPath } from "../../../../Interfaces/Particles/Move/Path/iPath";
|
|
|
2
2
|
import type { RecursivePartial, PathOptions } from "../../../../../Types";
|
|
3
3
|
import { PathDelay } from "./PathDelay";
|
|
4
4
|
import type { IOptionLoader } from "../../../../Interfaces/IOptionLoader";
|
|
5
|
+
/**
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
5
8
|
export declare class Path implements IPath, IOptionLoader<IPath> {
|
|
6
9
|
clamp: boolean;
|
|
7
10
|
delay: PathDelay;
|
|
@@ -2,6 +2,9 @@ import type { ITrail } from "../../../Interfaces/Particles/Move/ITrail";
|
|
|
2
2
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
3
|
import { OptionsColor } from "../../OptionsColor";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
+
/**
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
5
8
|
export declare class Trail implements ITrail, IOptionLoader<ITrail> {
|
|
6
9
|
enable: boolean;
|
|
7
10
|
length: number;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import type { IDensity } from "../../../Interfaces/Particles/Number/IDensity";
|
|
2
2
|
import type { RecursivePartial } from "../../../../Types";
|
|
3
3
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
4
|
+
/**
|
|
5
|
+
* @category Options
|
|
6
|
+
*/
|
|
4
7
|
export declare class Density implements IDensity, IOptionLoader<IDensity> {
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @deprecated this property is obsolete, please use the new area
|
|
11
|
+
*/
|
|
5
12
|
get value_area(): number;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @deprecated this property is obsolete, please use the new area
|
|
16
|
+
* @param value
|
|
17
|
+
*/
|
|
6
18
|
set value_area(value: number);
|
|
7
19
|
area: number;
|
|
8
20
|
enable: boolean;
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category Options
|
|
3
|
+
*/
|
|
1
4
|
export class Density {
|
|
2
5
|
constructor() {
|
|
3
6
|
this.enable = false;
|
|
4
7
|
this.area = 800;
|
|
5
8
|
this.factor = 1000;
|
|
6
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @deprecated this property is obsolete, please use the new area
|
|
13
|
+
*/
|
|
7
14
|
get value_area() {
|
|
8
15
|
return this.area;
|
|
9
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @deprecated this property is obsolete, please use the new area
|
|
20
|
+
* @param value
|
|
21
|
+
*/
|
|
10
22
|
set value_area(value) {
|
|
11
23
|
this.area = value;
|
|
12
24
|
}
|
|
@@ -2,8 +2,18 @@ import type { IParticlesNumber } from "../../../Interfaces/Particles/Number/IPar
|
|
|
2
2
|
import { Density } from "./Density";
|
|
3
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
|
+
/**
|
|
6
|
+
* [[include:Options/Particles/Number.md]]
|
|
7
|
+
* @category Options
|
|
8
|
+
*/
|
|
5
9
|
export declare class ParticlesNumber implements IParticlesNumber, IOptionLoader<IParticlesNumber> {
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated the max property is deprecated, please use the new limit
|
|
12
|
+
*/
|
|
6
13
|
get max(): number;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated the max property is deprecated, please use the new limit
|
|
16
|
+
*/
|
|
7
17
|
set max(value: number);
|
|
8
18
|
density: Density;
|
|
9
19
|
limit: number;
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import { Density } from "./Density";
|
|
2
|
+
/**
|
|
3
|
+
* [[include:Options/Particles/Number.md]]
|
|
4
|
+
* @category Options
|
|
5
|
+
*/
|
|
2
6
|
export class ParticlesNumber {
|
|
3
7
|
constructor() {
|
|
4
8
|
this.density = new Density();
|
|
5
9
|
this.limit = 0;
|
|
6
10
|
this.value = 100;
|
|
7
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated the max property is deprecated, please use the new limit
|
|
14
|
+
*/
|
|
8
15
|
get max() {
|
|
9
16
|
return this.limit;
|
|
10
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated the max property is deprecated, please use the new limit
|
|
20
|
+
*/
|
|
11
21
|
set max(value) {
|
|
12
22
|
this.limit = value;
|
|
13
23
|
}
|
|
@@ -3,8 +3,21 @@ import { OpacityAnimation } from "./OpacityAnimation";
|
|
|
3
3
|
import type { RecursivePartial } from "../../../../Types";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
import { ValueWithRandom } from "../../ValueWithRandom";
|
|
6
|
+
/**
|
|
7
|
+
* [[include:Options/Particles/Opacity.md]]
|
|
8
|
+
* @category Options
|
|
9
|
+
*/
|
|
6
10
|
export declare class Opacity extends ValueWithRandom implements IOpacity, IOptionLoader<IOpacity> {
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @deprecated this property is obsolete, please use the new animation
|
|
14
|
+
*/
|
|
7
15
|
get anim(): OpacityAnimation;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @deprecated this property is obsolete, please use the new animation
|
|
19
|
+
* @param value
|
|
20
|
+
*/
|
|
8
21
|
set anim(value: OpacityAnimation);
|
|
9
22
|
animation: OpacityAnimation;
|
|
10
23
|
constructor();
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { OpacityAnimation } from "./OpacityAnimation";
|
|
2
2
|
import { ValueWithRandom } from "../../ValueWithRandom";
|
|
3
3
|
import { setRangeValue } from "../../../../Utils";
|
|
4
|
+
/**
|
|
5
|
+
* [[include:Options/Particles/Opacity.md]]
|
|
6
|
+
* @category Options
|
|
7
|
+
*/
|
|
4
8
|
export class Opacity extends ValueWithRandom {
|
|
5
9
|
constructor() {
|
|
6
10
|
super();
|
|
@@ -8,9 +12,18 @@ export class Opacity extends ValueWithRandom {
|
|
|
8
12
|
this.random.minimumValue = 0.1;
|
|
9
13
|
this.value = 1;
|
|
10
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @deprecated this property is obsolete, please use the new animation
|
|
18
|
+
*/
|
|
11
19
|
get anim() {
|
|
12
20
|
return this.animation;
|
|
13
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @deprecated this property is obsolete, please use the new animation
|
|
25
|
+
* @param value
|
|
26
|
+
*/
|
|
14
27
|
set anim(value) {
|
|
15
28
|
this.animation = value;
|
|
16
29
|
}
|