@tsparticles/engine 3.0.0-alpha.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/LICENSE +21 -0
- package/README.md +824 -0
- package/browser/Core/Canvas.js +398 -0
- package/browser/Core/Container.js +436 -0
- package/browser/Core/Interfaces/Colors.js +1 -0
- package/browser/Core/Interfaces/IBounds.js +1 -0
- package/browser/Core/Interfaces/IBubbleParticleData.js +1 -0
- package/browser/Core/Interfaces/ICircleBouncer.js +1 -0
- package/browser/Core/Interfaces/IColorManager.js +1 -0
- package/browser/Core/Interfaces/IContainerInteractivity.js +1 -0
- package/browser/Core/Interfaces/IContainerPlugin.js +1 -0
- package/browser/Core/Interfaces/ICoordinates.js +1 -0
- package/browser/Core/Interfaces/IDelta.js +1 -0
- package/browser/Core/Interfaces/IDimension.js +1 -0
- package/browser/Core/Interfaces/IDistance.js +1 -0
- package/browser/Core/Interfaces/IDrawParticleParams.js +1 -0
- package/browser/Core/Interfaces/IExternalInteractor.js +1 -0
- package/browser/Core/Interfaces/IInteractor.js +1 -0
- package/browser/Core/Interfaces/ILoadParams.js +1 -0
- package/browser/Core/Interfaces/IMouseData.js +1 -0
- package/browser/Core/Interfaces/IMovePathGenerator.js +1 -0
- package/browser/Core/Interfaces/IParticle.js +1 -0
- package/browser/Core/Interfaces/IParticleColorStyle.js +1 -0
- package/browser/Core/Interfaces/IParticleHslAnimation.js +1 -0
- package/browser/Core/Interfaces/IParticleLife.js +1 -0
- package/browser/Core/Interfaces/IParticleMover.js +1 -0
- package/browser/Core/Interfaces/IParticleOverride.js +1 -0
- package/browser/Core/Interfaces/IParticleRetinaProps.js +1 -0
- package/browser/Core/Interfaces/IParticleRoll.js +1 -0
- package/browser/Core/Interfaces/IParticleTransformValues.js +1 -0
- package/browser/Core/Interfaces/IParticleUpdater.js +1 -0
- package/browser/Core/Interfaces/IParticleValueAnimation.js +1 -0
- package/browser/Core/Interfaces/IParticlesInteractor.js +1 -0
- package/browser/Core/Interfaces/IParticlesMover.js +1 -0
- package/browser/Core/Interfaces/IPlugin.js +1 -0
- package/browser/Core/Interfaces/IPositionFromSizeParams.js +1 -0
- package/browser/Core/Interfaces/IRangeValue.js +1 -0
- package/browser/Core/Interfaces/IRectSideResult.js +1 -0
- package/browser/Core/Interfaces/IShapeDrawer.js +1 -0
- package/browser/Core/Interfaces/IShapeValues.js +1 -0
- package/browser/Core/Interfaces/ISlowParticleData.js +1 -0
- package/browser/Core/Interfaces/ITrailFillData.js +1 -0
- package/browser/Core/Particle.js +307 -0
- package/browser/Core/Particles.js +262 -0
- package/browser/Core/Retina.js +33 -0
- package/browser/Core/Utils/Circle.js +23 -0
- package/browser/Core/Utils/Constants.js +12 -0
- package/browser/Core/Utils/EventListeners.js +280 -0
- package/browser/Core/Utils/ExternalInteractorBase.js +6 -0
- package/browser/Core/Utils/FrameManager.js +42 -0
- package/browser/Core/Utils/InteractionManager.js +60 -0
- package/browser/Core/Utils/ParticlesInteractorBase.js +6 -0
- package/browser/Core/Utils/Plugins.js +112 -0
- package/browser/Core/Utils/Point.js +6 -0
- package/browser/Core/Utils/QuadTree.js +64 -0
- package/browser/Core/Utils/Range.js +8 -0
- package/browser/Core/Utils/Rectangle.js +22 -0
- package/browser/Core/Utils/Vector.js +15 -0
- package/browser/Core/Utils/Vector3d.js +96 -0
- package/browser/Enums/AnimationStatus.js +1 -0
- package/browser/Enums/Directions/MoveDirection.js +1 -0
- package/browser/Enums/Directions/OutModeDirection.js +1 -0
- package/browser/Enums/Directions/RotateDirection.js +1 -0
- package/browser/Enums/InteractivityDetect.js +1 -0
- package/browser/Enums/Modes/ClickMode.js +1 -0
- package/browser/Enums/Modes/CollisionMode.js +1 -0
- package/browser/Enums/Modes/DivMode.js +1 -0
- package/browser/Enums/Modes/HoverMode.js +1 -0
- package/browser/Enums/Modes/OutMode.js +1 -0
- package/browser/Enums/Modes/ResponsiveMode.js +1 -0
- package/browser/Enums/Modes/SizeMode.js +1 -0
- package/browser/Enums/Modes/ThemeMode.js +1 -0
- package/browser/Enums/Types/AlterType.js +1 -0
- package/browser/Enums/Types/DestroyType.js +1 -0
- package/browser/Enums/Types/DivType.js +1 -0
- package/browser/Enums/Types/EasingType.js +1 -0
- package/browser/Enums/Types/EventType.js +1 -0
- package/browser/Enums/Types/GradientType.js +1 -0
- package/browser/Enums/Types/InteractorType.js +1 -0
- package/browser/Enums/Types/ParticleOutType.js +1 -0
- package/browser/Enums/Types/StartValueType.js +1 -0
- package/browser/Options/Classes/AnimatableColor.js +36 -0
- package/browser/Options/Classes/AnimationOptions.js +48 -0
- package/browser/Options/Classes/Background/Background.js +35 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +24 -0
- package/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +19 -0
- package/browser/Options/Classes/ColorAnimation.js +34 -0
- package/browser/Options/Classes/FullScreen/FullScreen.js +17 -0
- package/browser/Options/Classes/HslAnimation.js +16 -0
- package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +17 -0
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +49 -0
- package/browser/Options/Classes/Interactivity/Events/Events.js +53 -0
- package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +20 -0
- package/browser/Options/Classes/Interactivity/Events/Parallax.js +21 -0
- package/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +17 -0
- package/browser/Options/Classes/Interactivity/Interactivity.js +27 -0
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +21 -0
- package/browser/Options/Classes/ManualParticle.js +18 -0
- package/browser/Options/Classes/Options.js +170 -0
- package/browser/Options/Classes/OptionsColor.js +24 -0
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +14 -0
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +8 -0
- package/browser/Options/Classes/Particles/Collisions/Collisions.js +26 -0
- package/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +13 -0
- package/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +17 -0
- package/browser/Options/Classes/Particles/Move/Move.js +124 -0
- package/browser/Options/Classes/Particles/Move/MoveAngle.js +18 -0
- package/browser/Options/Classes/Particles/Move/MoveAttract.js +43 -0
- package/browser/Options/Classes/Particles/Move/MoveCenter.js +25 -0
- package/browser/Options/Classes/Particles/Move/MoveGravity.js +26 -0
- package/browser/Options/Classes/Particles/Move/MoveTrail.js +28 -0
- package/browser/Options/Classes/Particles/Move/MoveTrailFill.js +14 -0
- package/browser/Options/Classes/Particles/Move/OutModes.js +18 -0
- package/browser/Options/Classes/Particles/Move/Path/MovePath.js +26 -0
- package/browser/Options/Classes/Particles/Move/Spin.js +20 -0
- package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +42 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +28 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +16 -0
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +26 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.js +92 -0
- package/browser/Options/Classes/Particles/Shadow.js +34 -0
- package/browser/Options/Classes/Particles/Shape/Shape.js +25 -0
- package/browser/Options/Classes/Particles/Size/Size.js +16 -0
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +26 -0
- package/browser/Options/Classes/Particles/Stroke.js +21 -0
- package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +24 -0
- package/browser/Options/Classes/Random.js +17 -0
- package/browser/Options/Classes/Responsive.js +27 -0
- package/browser/Options/Classes/Theme/Theme.js +20 -0
- package/browser/Options/Classes/Theme/ThemeDefault.js +21 -0
- package/browser/Options/Classes/ValueWithRandom.js +62 -0
- package/browser/Options/Interfaces/Background/IBackground.js +1 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMask.js +1 -0
- package/browser/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +1 -0
- package/browser/Options/Interfaces/FullScreen/IFullScreen.js +1 -0
- package/browser/Options/Interfaces/IAnimatable.js +1 -0
- package/browser/Options/Interfaces/IAnimatableColor.js +1 -0
- package/browser/Options/Interfaces/IAnimation.js +1 -0
- package/browser/Options/Interfaces/IColorAnimation.js +1 -0
- package/browser/Options/Interfaces/IHslAnimation.js +1 -0
- package/browser/Options/Interfaces/IManualParticle.js +1 -0
- package/browser/Options/Interfaces/IOptionLoader.js +1 -0
- package/browser/Options/Interfaces/IOptions.js +1 -0
- package/browser/Options/Interfaces/IOptionsColor.js +1 -0
- package/browser/Options/Interfaces/IRandom.js +1 -0
- package/browser/Options/Interfaces/IResponsive.js +1 -0
- package/browser/Options/Interfaces/IValueWithRandom.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IClickEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IDivEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IEvents.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IParallax.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Events/IResizeEvent.js +1 -0
- package/browser/Options/Interfaces/Interactivity/IInteractivity.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.js +1 -0
- package/browser/Options/Interfaces/Interactivity/Modes/IModes.js +1 -0
- package/browser/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +1 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisions.js +1 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +1 -0
- package/browser/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +1 -0
- package/browser/Options/Interfaces/Particles/IParticlesOptions.js +1 -0
- package/browser/Options/Interfaces/Particles/IShadow.js +1 -0
- package/browser/Options/Interfaces/Particles/IStroke.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMove.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveAngle.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveAttract.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveCenter.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveGravity.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveTrail.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IMoveTrailFill.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/IOutModes.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/ISpin.js +1 -0
- package/browser/Options/Interfaces/Particles/Move/Path/IMovePath.js +1 -0
- package/browser/Options/Interfaces/Particles/Number/IParticlesDensity.js +1 -0
- package/browser/Options/Interfaces/Particles/Number/IParticlesNumber.js +1 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacity.js +1 -0
- package/browser/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/ICharacterShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +1 -0
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +1 -0
- package/browser/Options/Interfaces/Particles/Size/ISize.js +1 -0
- package/browser/Options/Interfaces/Particles/Size/ISizeAnimation.js +1 -0
- package/browser/Options/Interfaces/Particles/ZIndex/IZIndex.js +1 -0
- package/browser/Options/Interfaces/Theme/ITheme.js +1 -0
- package/browser/Options/Interfaces/Theme/IThemeDefault.js +1 -0
- package/browser/Types/CustomEventArgs.js +1 -0
- package/browser/Types/CustomEventListener.js +1 -0
- package/browser/Types/ISourceOptions.js +1 -0
- package/browser/Types/ParticlesGroups.js +1 -0
- package/browser/Types/PathOptions.js +1 -0
- package/browser/Types/RangeValue.js +1 -0
- package/browser/Types/RecursivePartial.js +1 -0
- package/browser/Types/ShapeData.js +1 -0
- package/browser/Types/ShapeDrawerFunctions.js +1 -0
- package/browser/Types/SingleOrMultiple.js +1 -0
- package/browser/Utils/CanvasUtils.js +149 -0
- package/browser/Utils/ColorUtils.js +274 -0
- package/browser/Utils/EventDispatcher.js +44 -0
- package/browser/Utils/HslColorManager.js +40 -0
- package/browser/Utils/NumberUtils.js +149 -0
- package/browser/Utils/OptionsUtils.js +11 -0
- package/browser/Utils/RgbColorManager.js +39 -0
- package/browser/Utils/Utils.js +247 -0
- package/browser/bundle.js +97 -0
- package/browser/engine.js +175 -0
- package/browser/index.js +199 -0
- package/cjs/Core/Canvas.js +402 -0
- package/cjs/Core/Container.js +440 -0
- package/cjs/Core/Interfaces/Colors.js +2 -0
- package/cjs/Core/Interfaces/IBounds.js +2 -0
- package/cjs/Core/Interfaces/IBubbleParticleData.js +2 -0
- package/cjs/Core/Interfaces/ICircleBouncer.js +2 -0
- package/cjs/Core/Interfaces/IColorManager.js +2 -0
- package/cjs/Core/Interfaces/IContainerInteractivity.js +2 -0
- package/cjs/Core/Interfaces/IContainerPlugin.js +2 -0
- package/cjs/Core/Interfaces/ICoordinates.js +2 -0
- package/cjs/Core/Interfaces/IDelta.js +2 -0
- package/cjs/Core/Interfaces/IDimension.js +2 -0
- package/cjs/Core/Interfaces/IDistance.js +2 -0
- package/cjs/Core/Interfaces/IDrawParticleParams.js +2 -0
- package/cjs/Core/Interfaces/IExternalInteractor.js +2 -0
- package/cjs/Core/Interfaces/IInteractor.js +2 -0
- package/cjs/Core/Interfaces/ILoadParams.js +2 -0
- package/cjs/Core/Interfaces/IMouseData.js +2 -0
- package/cjs/Core/Interfaces/IMovePathGenerator.js +2 -0
- package/cjs/Core/Interfaces/IParticle.js +2 -0
- package/cjs/Core/Interfaces/IParticleColorStyle.js +2 -0
- package/cjs/Core/Interfaces/IParticleHslAnimation.js +2 -0
- package/cjs/Core/Interfaces/IParticleLife.js +2 -0
- package/cjs/Core/Interfaces/IParticleMover.js +2 -0
- package/cjs/Core/Interfaces/IParticleOverride.js +2 -0
- package/cjs/Core/Interfaces/IParticleRetinaProps.js +2 -0
- package/cjs/Core/Interfaces/IParticleRoll.js +2 -0
- package/cjs/Core/Interfaces/IParticleTransformValues.js +2 -0
- package/cjs/Core/Interfaces/IParticleUpdater.js +2 -0
- package/cjs/Core/Interfaces/IParticleValueAnimation.js +2 -0
- package/cjs/Core/Interfaces/IParticlesInteractor.js +2 -0
- package/cjs/Core/Interfaces/IParticlesMover.js +2 -0
- package/cjs/Core/Interfaces/IPlugin.js +2 -0
- package/cjs/Core/Interfaces/IPositionFromSizeParams.js +2 -0
- package/cjs/Core/Interfaces/IRangeValue.js +2 -0
- package/cjs/Core/Interfaces/IRectSideResult.js +2 -0
- package/cjs/Core/Interfaces/IShapeDrawer.js +2 -0
- package/cjs/Core/Interfaces/IShapeValues.js +2 -0
- package/cjs/Core/Interfaces/ISlowParticleData.js +2 -0
- package/cjs/Core/Interfaces/ITrailFillData.js +2 -0
- package/cjs/Core/Particle.js +311 -0
- package/cjs/Core/Particles.js +266 -0
- package/cjs/Core/Retina.js +37 -0
- package/cjs/Core/Utils/Circle.js +27 -0
- package/cjs/Core/Utils/Constants.js +15 -0
- package/cjs/Core/Utils/EventListeners.js +284 -0
- package/cjs/Core/Utils/ExternalInteractorBase.js +10 -0
- package/cjs/Core/Utils/FrameManager.js +46 -0
- package/cjs/Core/Utils/InteractionManager.js +64 -0
- package/cjs/Core/Utils/ParticlesInteractorBase.js +10 -0
- package/cjs/Core/Utils/Plugins.js +116 -0
- package/cjs/Core/Utils/Point.js +10 -0
- package/cjs/Core/Utils/QuadTree.js +68 -0
- package/cjs/Core/Utils/Range.js +12 -0
- package/cjs/Core/Utils/Rectangle.js +26 -0
- package/cjs/Core/Utils/Vector.js +19 -0
- package/cjs/Core/Utils/Vector3d.js +100 -0
- package/cjs/Enums/AnimationStatus.js +2 -0
- package/cjs/Enums/Directions/MoveDirection.js +2 -0
- package/cjs/Enums/Directions/OutModeDirection.js +2 -0
- package/cjs/Enums/Directions/RotateDirection.js +2 -0
- package/cjs/Enums/InteractivityDetect.js +2 -0
- package/cjs/Enums/Modes/ClickMode.js +2 -0
- package/cjs/Enums/Modes/CollisionMode.js +2 -0
- package/cjs/Enums/Modes/DivMode.js +2 -0
- package/cjs/Enums/Modes/HoverMode.js +2 -0
- package/cjs/Enums/Modes/OutMode.js +2 -0
- package/cjs/Enums/Modes/ResponsiveMode.js +2 -0
- package/cjs/Enums/Modes/SizeMode.js +2 -0
- package/cjs/Enums/Modes/ThemeMode.js +2 -0
- package/cjs/Enums/Types/AlterType.js +2 -0
- package/cjs/Enums/Types/DestroyType.js +2 -0
- package/cjs/Enums/Types/DivType.js +2 -0
- package/cjs/Enums/Types/EasingType.js +2 -0
- package/cjs/Enums/Types/EventType.js +2 -0
- package/cjs/Enums/Types/GradientType.js +2 -0
- package/cjs/Enums/Types/InteractorType.js +2 -0
- package/cjs/Enums/Types/ParticleOutType.js +2 -0
- package/cjs/Enums/Types/StartValueType.js +2 -0
- package/cjs/Options/Classes/AnimatableColor.js +40 -0
- package/cjs/Options/Classes/AnimationOptions.js +53 -0
- package/cjs/Options/Classes/Background/Background.js +39 -0
- package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +28 -0
- package/cjs/Options/Classes/BackgroundMask/BackgroundMaskCover.js +23 -0
- package/cjs/Options/Classes/ColorAnimation.js +38 -0
- package/cjs/Options/Classes/FullScreen/FullScreen.js +21 -0
- package/cjs/Options/Classes/HslAnimation.js +20 -0
- package/cjs/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
- package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +53 -0
- package/cjs/Options/Classes/Interactivity/Events/Events.js +57 -0
- package/cjs/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
- package/cjs/Options/Classes/Interactivity/Events/Parallax.js +25 -0
- package/cjs/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
- package/cjs/Options/Classes/Interactivity/Interactivity.js +31 -0
- package/cjs/Options/Classes/Interactivity/Modes/Modes.js +25 -0
- package/cjs/Options/Classes/ManualParticle.js +22 -0
- package/cjs/Options/Classes/Options.js +174 -0
- package/cjs/Options/Classes/OptionsColor.js +28 -0
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +12 -0
- package/cjs/Options/Classes/Particles/Collisions/Collisions.js +30 -0
- package/cjs/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
- package/cjs/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
- package/cjs/Options/Classes/Particles/Move/Move.js +128 -0
- package/cjs/Options/Classes/Particles/Move/MoveAngle.js +22 -0
- package/cjs/Options/Classes/Particles/Move/MoveAttract.js +47 -0
- package/cjs/Options/Classes/Particles/Move/MoveCenter.js +29 -0
- package/cjs/Options/Classes/Particles/Move/MoveGravity.js +30 -0
- package/cjs/Options/Classes/Particles/Move/MoveTrail.js +32 -0
- package/cjs/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
- package/cjs/Options/Classes/Particles/Move/OutModes.js +22 -0
- package/cjs/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
- package/cjs/Options/Classes/Particles/Move/Spin.js +24 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +46 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +32 -0
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +20 -0
- package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +30 -0
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +96 -0
- package/cjs/Options/Classes/Particles/Shadow.js +38 -0
- package/cjs/Options/Classes/Particles/Shape/Shape.js +29 -0
- package/cjs/Options/Classes/Particles/Size/Size.js +20 -0
- package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +30 -0
- package/cjs/Options/Classes/Particles/Stroke.js +25 -0
- package/cjs/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
- package/cjs/Options/Classes/Random.js +21 -0
- package/cjs/Options/Classes/Responsive.js +31 -0
- package/cjs/Options/Classes/Theme/Theme.js +24 -0
- package/cjs/Options/Classes/Theme/ThemeDefault.js +25 -0
- package/cjs/Options/Classes/ValueWithRandom.js +68 -0
- package/cjs/Options/Interfaces/Background/IBackground.js +2 -0
- package/cjs/Options/Interfaces/BackgroundMask/IBackgroundMask.js +2 -0
- package/cjs/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +2 -0
- package/cjs/Options/Interfaces/FullScreen/IFullScreen.js +2 -0
- package/cjs/Options/Interfaces/IAnimatable.js +2 -0
- package/cjs/Options/Interfaces/IAnimatableColor.js +2 -0
- package/cjs/Options/Interfaces/IAnimation.js +2 -0
- package/cjs/Options/Interfaces/IColorAnimation.js +2 -0
- package/cjs/Options/Interfaces/IHslAnimation.js +2 -0
- package/cjs/Options/Interfaces/IManualParticle.js +2 -0
- package/cjs/Options/Interfaces/IOptionLoader.js +2 -0
- package/cjs/Options/Interfaces/IOptions.js +2 -0
- package/cjs/Options/Interfaces/IOptionsColor.js +2 -0
- package/cjs/Options/Interfaces/IRandom.js +2 -0
- package/cjs/Options/Interfaces/IResponsive.js +2 -0
- package/cjs/Options/Interfaces/IValueWithRandom.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IClickEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IDivEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IEvents.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IHoverEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IParallax.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Events/IResizeEvent.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/IInteractivity.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Modes/IModeDiv.js +2 -0
- package/cjs/Options/Interfaces/Interactivity/Modes/IModes.js +2 -0
- package/cjs/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +2 -0
- package/cjs/Options/Interfaces/Particles/Collisions/ICollisions.js +2 -0
- package/cjs/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +2 -0
- package/cjs/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +2 -0
- package/cjs/Options/Interfaces/Particles/IParticlesOptions.js +2 -0
- package/cjs/Options/Interfaces/Particles/IShadow.js +2 -0
- package/cjs/Options/Interfaces/Particles/IStroke.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMove.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveAngle.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveAttract.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveCenter.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveGravity.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveTrail.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IMoveTrailFill.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/IOutModes.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/ISpin.js +2 -0
- package/cjs/Options/Interfaces/Particles/Move/Path/IMovePath.js +2 -0
- package/cjs/Options/Interfaces/Particles/Number/IParticlesDensity.js +2 -0
- package/cjs/Options/Interfaces/Particles/Number/IParticlesNumber.js +2 -0
- package/cjs/Options/Interfaces/Particles/Opacity/IOpacity.js +2 -0
- package/cjs/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +17 -0
- package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +2 -0
- package/cjs/Options/Interfaces/Particles/Size/ISize.js +2 -0
- package/cjs/Options/Interfaces/Particles/Size/ISizeAnimation.js +2 -0
- package/cjs/Options/Interfaces/Particles/ZIndex/IZIndex.js +2 -0
- package/cjs/Options/Interfaces/Theme/ITheme.js +2 -0
- package/cjs/Options/Interfaces/Theme/IThemeDefault.js +2 -0
- package/cjs/Types/CustomEventArgs.js +2 -0
- package/cjs/Types/CustomEventListener.js +2 -0
- package/cjs/Types/ISourceOptions.js +2 -0
- package/cjs/Types/ParticlesGroups.js +2 -0
- package/cjs/Types/PathOptions.js +2 -0
- package/cjs/Types/RangeValue.js +2 -0
- package/cjs/Types/RecursivePartial.js +2 -0
- package/cjs/Types/ShapeData.js +2 -0
- package/cjs/Types/ShapeDrawerFunctions.js +2 -0
- package/cjs/Types/SingleOrMultiple.js +2 -0
- package/cjs/Utils/CanvasUtils.js +164 -0
- package/cjs/Utils/ColorUtils.js +295 -0
- package/cjs/Utils/EventDispatcher.js +48 -0
- package/cjs/Utils/HslColorManager.js +44 -0
- package/cjs/Utils/NumberUtils.js +175 -0
- package/cjs/Utils/OptionsUtils.js +16 -0
- package/cjs/Utils/RgbColorManager.js +43 -0
- package/cjs/Utils/Utils.js +274 -0
- package/cjs/bundle.js +114 -0
- package/cjs/engine.js +179 -0
- package/cjs/index.js +216 -0
- package/esm/Core/Canvas.js +398 -0
- package/esm/Core/Container.js +436 -0
- package/esm/Core/Interfaces/Colors.js +1 -0
- package/esm/Core/Interfaces/IBounds.js +1 -0
- package/esm/Core/Interfaces/IBubbleParticleData.js +1 -0
- package/esm/Core/Interfaces/ICircleBouncer.js +1 -0
- package/esm/Core/Interfaces/IColorManager.js +1 -0
- package/esm/Core/Interfaces/IContainerInteractivity.js +1 -0
- package/esm/Core/Interfaces/IContainerPlugin.js +1 -0
- package/esm/Core/Interfaces/ICoordinates.js +1 -0
- package/esm/Core/Interfaces/IDelta.js +1 -0
- package/esm/Core/Interfaces/IDimension.js +1 -0
- package/esm/Core/Interfaces/IDistance.js +1 -0
- package/esm/Core/Interfaces/IDrawParticleParams.js +1 -0
- package/esm/Core/Interfaces/IExternalInteractor.js +1 -0
- package/esm/Core/Interfaces/IInteractor.js +1 -0
- package/esm/Core/Interfaces/ILoadParams.js +1 -0
- package/esm/Core/Interfaces/IMouseData.js +1 -0
- package/esm/Core/Interfaces/IMovePathGenerator.js +1 -0
- package/esm/Core/Interfaces/IParticle.js +1 -0
- package/esm/Core/Interfaces/IParticleColorStyle.js +1 -0
- package/esm/Core/Interfaces/IParticleHslAnimation.js +1 -0
- package/esm/Core/Interfaces/IParticleLife.js +1 -0
- package/esm/Core/Interfaces/IParticleMover.js +1 -0
- package/esm/Core/Interfaces/IParticleOverride.js +1 -0
- package/esm/Core/Interfaces/IParticleRetinaProps.js +1 -0
- package/esm/Core/Interfaces/IParticleRoll.js +1 -0
- package/esm/Core/Interfaces/IParticleTransformValues.js +1 -0
- package/esm/Core/Interfaces/IParticleUpdater.js +1 -0
- package/esm/Core/Interfaces/IParticleValueAnimation.js +1 -0
- package/esm/Core/Interfaces/IParticlesInteractor.js +1 -0
- package/esm/Core/Interfaces/IParticlesMover.js +1 -0
- package/esm/Core/Interfaces/IPlugin.js +1 -0
- package/esm/Core/Interfaces/IPositionFromSizeParams.js +1 -0
- package/esm/Core/Interfaces/IRangeValue.js +1 -0
- package/esm/Core/Interfaces/IRectSideResult.js +1 -0
- package/esm/Core/Interfaces/IShapeDrawer.js +1 -0
- package/esm/Core/Interfaces/IShapeValues.js +1 -0
- package/esm/Core/Interfaces/ISlowParticleData.js +1 -0
- package/esm/Core/Interfaces/ITrailFillData.js +1 -0
- package/esm/Core/Particle.js +307 -0
- package/esm/Core/Particles.js +262 -0
- package/esm/Core/Retina.js +33 -0
- package/esm/Core/Utils/Circle.js +23 -0
- package/esm/Core/Utils/Constants.js +12 -0
- package/esm/Core/Utils/EventListeners.js +280 -0
- package/esm/Core/Utils/ExternalInteractorBase.js +6 -0
- package/esm/Core/Utils/FrameManager.js +42 -0
- package/esm/Core/Utils/InteractionManager.js +60 -0
- package/esm/Core/Utils/ParticlesInteractorBase.js +6 -0
- package/esm/Core/Utils/Plugins.js +112 -0
- package/esm/Core/Utils/Point.js +6 -0
- package/esm/Core/Utils/QuadTree.js +64 -0
- package/esm/Core/Utils/Range.js +8 -0
- package/esm/Core/Utils/Rectangle.js +22 -0
- package/esm/Core/Utils/Vector.js +15 -0
- package/esm/Core/Utils/Vector3d.js +96 -0
- package/esm/Enums/AnimationStatus.js +1 -0
- package/esm/Enums/Directions/MoveDirection.js +1 -0
- package/esm/Enums/Directions/OutModeDirection.js +1 -0
- package/esm/Enums/Directions/RotateDirection.js +1 -0
- package/esm/Enums/InteractivityDetect.js +1 -0
- package/esm/Enums/Modes/ClickMode.js +1 -0
- package/esm/Enums/Modes/CollisionMode.js +1 -0
- package/esm/Enums/Modes/DivMode.js +1 -0
- package/esm/Enums/Modes/HoverMode.js +1 -0
- package/esm/Enums/Modes/OutMode.js +1 -0
- package/esm/Enums/Modes/ResponsiveMode.js +1 -0
- package/esm/Enums/Modes/SizeMode.js +1 -0
- package/esm/Enums/Modes/ThemeMode.js +1 -0
- package/esm/Enums/Types/AlterType.js +1 -0
- package/esm/Enums/Types/DestroyType.js +1 -0
- package/esm/Enums/Types/DivType.js +1 -0
- package/esm/Enums/Types/EasingType.js +1 -0
- package/esm/Enums/Types/EventType.js +1 -0
- package/esm/Enums/Types/GradientType.js +1 -0
- package/esm/Enums/Types/InteractorType.js +1 -0
- package/esm/Enums/Types/ParticleOutType.js +1 -0
- package/esm/Enums/Types/StartValueType.js +1 -0
- package/esm/Options/Classes/AnimatableColor.js +36 -0
- package/esm/Options/Classes/AnimationOptions.js +48 -0
- package/esm/Options/Classes/Background/Background.js +35 -0
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +24 -0
- package/esm/Options/Classes/BackgroundMask/BackgroundMaskCover.js +19 -0
- package/esm/Options/Classes/ColorAnimation.js +34 -0
- package/esm/Options/Classes/FullScreen/FullScreen.js +17 -0
- package/esm/Options/Classes/HslAnimation.js +16 -0
- package/esm/Options/Classes/Interactivity/Events/ClickEvent.js +17 -0
- package/esm/Options/Classes/Interactivity/Events/DivEvent.js +49 -0
- package/esm/Options/Classes/Interactivity/Events/Events.js +53 -0
- package/esm/Options/Classes/Interactivity/Events/HoverEvent.js +20 -0
- package/esm/Options/Classes/Interactivity/Events/Parallax.js +21 -0
- package/esm/Options/Classes/Interactivity/Events/ResizeEvent.js +17 -0
- package/esm/Options/Classes/Interactivity/Interactivity.js +27 -0
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +21 -0
- package/esm/Options/Classes/ManualParticle.js +18 -0
- package/esm/Options/Classes/Options.js +170 -0
- package/esm/Options/Classes/OptionsColor.js +24 -0
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounce.js +14 -0
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +8 -0
- package/esm/Options/Classes/Particles/Collisions/Collisions.js +26 -0
- package/esm/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +13 -0
- package/esm/Options/Classes/Particles/Collisions/CollisionsOverlap.js +17 -0
- package/esm/Options/Classes/Particles/Move/Move.js +124 -0
- package/esm/Options/Classes/Particles/Move/MoveAngle.js +18 -0
- package/esm/Options/Classes/Particles/Move/MoveAttract.js +43 -0
- package/esm/Options/Classes/Particles/Move/MoveCenter.js +25 -0
- package/esm/Options/Classes/Particles/Move/MoveGravity.js +26 -0
- package/esm/Options/Classes/Particles/Move/MoveTrail.js +28 -0
- package/esm/Options/Classes/Particles/Move/MoveTrailFill.js +14 -0
- package/esm/Options/Classes/Particles/Move/OutModes.js +18 -0
- package/esm/Options/Classes/Particles/Move/Path/MovePath.js +26 -0
- package/esm/Options/Classes/Particles/Move/Spin.js +20 -0
- package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +42 -0
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +28 -0
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +16 -0
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +26 -0
- package/esm/Options/Classes/Particles/ParticlesOptions.js +92 -0
- package/esm/Options/Classes/Particles/Shadow.js +34 -0
- package/esm/Options/Classes/Particles/Shape/Shape.js +25 -0
- package/esm/Options/Classes/Particles/Size/Size.js +16 -0
- package/esm/Options/Classes/Particles/Size/SizeAnimation.js +26 -0
- package/esm/Options/Classes/Particles/Stroke.js +21 -0
- package/esm/Options/Classes/Particles/ZIndex/ZIndex.js +24 -0
- package/esm/Options/Classes/Random.js +17 -0
- package/esm/Options/Classes/Responsive.js +27 -0
- package/esm/Options/Classes/Theme/Theme.js +20 -0
- package/esm/Options/Classes/Theme/ThemeDefault.js +21 -0
- package/esm/Options/Classes/ValueWithRandom.js +62 -0
- package/esm/Options/Interfaces/Background/IBackground.js +1 -0
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMask.js +1 -0
- package/esm/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +1 -0
- package/esm/Options/Interfaces/FullScreen/IFullScreen.js +1 -0
- package/esm/Options/Interfaces/IAnimatable.js +1 -0
- package/esm/Options/Interfaces/IAnimatableColor.js +1 -0
- package/esm/Options/Interfaces/IAnimation.js +1 -0
- package/esm/Options/Interfaces/IColorAnimation.js +1 -0
- package/esm/Options/Interfaces/IHslAnimation.js +1 -0
- package/esm/Options/Interfaces/IManualParticle.js +1 -0
- package/esm/Options/Interfaces/IOptionLoader.js +1 -0
- package/esm/Options/Interfaces/IOptions.js +1 -0
- package/esm/Options/Interfaces/IOptionsColor.js +1 -0
- package/esm/Options/Interfaces/IRandom.js +1 -0
- package/esm/Options/Interfaces/IResponsive.js +1 -0
- package/esm/Options/Interfaces/IValueWithRandom.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IClickEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IDivEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IEvents.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IHoverEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IParallax.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Events/IResizeEvent.js +1 -0
- package/esm/Options/Interfaces/Interactivity/IInteractivity.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Modes/IModeDiv.js +1 -0
- package/esm/Options/Interfaces/Interactivity/Modes/IModes.js +1 -0
- package/esm/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +1 -0
- package/esm/Options/Interfaces/Particles/Collisions/ICollisions.js +1 -0
- package/esm/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +1 -0
- package/esm/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +1 -0
- package/esm/Options/Interfaces/Particles/IParticlesOptions.js +1 -0
- package/esm/Options/Interfaces/Particles/IShadow.js +1 -0
- package/esm/Options/Interfaces/Particles/IStroke.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMove.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveAngle.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveAttract.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveCenter.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveGravity.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveTrail.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IMoveTrailFill.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/IOutModes.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/ISpin.js +1 -0
- package/esm/Options/Interfaces/Particles/Move/Path/IMovePath.js +1 -0
- package/esm/Options/Interfaces/Particles/Number/IParticlesDensity.js +1 -0
- package/esm/Options/Interfaces/Particles/Number/IParticlesNumber.js +1 -0
- package/esm/Options/Interfaces/Particles/Opacity/IOpacity.js +1 -0
- package/esm/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +1 -0
- package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +1 -0
- package/esm/Options/Interfaces/Particles/Size/ISize.js +1 -0
- package/esm/Options/Interfaces/Particles/Size/ISizeAnimation.js +1 -0
- package/esm/Options/Interfaces/Particles/ZIndex/IZIndex.js +1 -0
- package/esm/Options/Interfaces/Theme/ITheme.js +1 -0
- package/esm/Options/Interfaces/Theme/IThemeDefault.js +1 -0
- package/esm/Types/CustomEventArgs.js +1 -0
- package/esm/Types/CustomEventListener.js +1 -0
- package/esm/Types/ISourceOptions.js +1 -0
- package/esm/Types/ParticlesGroups.js +1 -0
- package/esm/Types/PathOptions.js +1 -0
- package/esm/Types/RangeValue.js +1 -0
- package/esm/Types/RecursivePartial.js +1 -0
- package/esm/Types/ShapeData.js +1 -0
- package/esm/Types/ShapeDrawerFunctions.js +1 -0
- package/esm/Types/SingleOrMultiple.js +1 -0
- package/esm/Utils/CanvasUtils.js +149 -0
- package/esm/Utils/ColorUtils.js +274 -0
- package/esm/Utils/EventDispatcher.js +44 -0
- package/esm/Utils/HslColorManager.js +40 -0
- package/esm/Utils/NumberUtils.js +149 -0
- package/esm/Utils/OptionsUtils.js +11 -0
- package/esm/Utils/RgbColorManager.js +39 -0
- package/esm/Utils/Utils.js +247 -0
- package/esm/bundle.js +97 -0
- package/esm/engine.js +175 -0
- package/esm/index.js +199 -0
- package/package.json +90 -0
- package/report.html +39 -0
- package/scripts/install.js +105 -0
- package/tsparticles.engine.js +5541 -0
- package/tsparticles.engine.min.js +2 -0
- package/tsparticles.engine.min.js.LICENSE.txt +10 -0
- package/types/Core/Canvas.d.ts +47 -0
- package/types/Core/Container.d.ts +72 -0
- package/types/Core/Interfaces/Colors.d.ts +57 -0
- package/types/Core/Interfaces/IBounds.d.ts +6 -0
- package/types/Core/Interfaces/IBubbleParticleData.d.ts +9 -0
- package/types/Core/Interfaces/ICircleBouncer.d.ts +9 -0
- package/types/Core/Interfaces/IColorManager.d.ts +8 -0
- package/types/Core/Interfaces/IContainerInteractivity.d.ts +6 -0
- package/types/Core/Interfaces/IContainerPlugin.d.ts +29 -0
- package/types/Core/Interfaces/ICoordinates.d.ts +20 -0
- package/types/Core/Interfaces/IDelta.d.ts +4 -0
- package/types/Core/Interfaces/IDimension.d.ts +4 -0
- package/types/Core/Interfaces/IDistance.d.ts +4 -0
- package/types/Core/Interfaces/IDrawParticleParams.d.ts +19 -0
- package/types/Core/Interfaces/IExternalInteractor.d.ts +13 -0
- package/types/Core/Interfaces/IInteractor.d.ts +16 -0
- package/types/Core/Interfaces/ILoadParams.d.ts +9 -0
- package/types/Core/Interfaces/IMouseData.d.ts +9 -0
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +9 -0
- package/types/Core/Interfaces/IParticle.d.ts +48 -0
- package/types/Core/Interfaces/IParticleColorStyle.d.ts +4 -0
- package/types/Core/Interfaces/IParticleHslAnimation.d.ts +6 -0
- package/types/Core/Interfaces/IParticleLife.d.ts +7 -0
- package/types/Core/Interfaces/IParticleMover.d.ts +7 -0
- package/types/Core/Interfaces/IParticleOverride.d.ts +6 -0
- package/types/Core/Interfaces/IParticleRetinaProps.d.ts +9 -0
- package/types/Core/Interfaces/IParticleRoll.d.ts +12 -0
- package/types/Core/Interfaces/IParticleTransformValues.d.ts +6 -0
- package/types/Core/Interfaces/IParticleUpdater.d.ts +21 -0
- package/types/Core/Interfaces/IParticleValueAnimation.d.ts +15 -0
- package/types/Core/Interfaces/IParticlesInteractor.d.ts +7 -0
- package/types/Core/Interfaces/IParticlesMover.d.ts +7 -0
- package/types/Core/Interfaces/IPlugin.d.ts +10 -0
- package/types/Core/Interfaces/IPositionFromSizeParams.d.ts +10 -0
- package/types/Core/Interfaces/IRangeValue.d.ts +4 -0
- package/types/Core/Interfaces/IRectSideResult.d.ts +5 -0
- package/types/Core/Interfaces/IShapeDrawer.d.ts +10 -0
- package/types/Core/Interfaces/IShapeValues.d.ts +8 -0
- package/types/Core/Interfaces/ISlowParticleData.d.ts +4 -0
- package/types/Core/Interfaces/ITrailFillData.d.ts +6 -0
- package/types/Core/Particle.d.ts +85 -0
- package/types/Core/Particles.d.ts +45 -0
- package/types/Core/Retina.d.ts +13 -0
- package/types/Core/Utils/Circle.d.ts +8 -0
- package/types/Core/Utils/Constants.d.ts +12 -0
- package/types/Core/Utils/EventListeners.d.ts +21 -0
- package/types/Core/Utils/ExternalInteractorBase.d.ts +15 -0
- package/types/Core/Utils/FrameManager.d.ts +6 -0
- package/types/Core/Utils/InteractionManager.d.ts +18 -0
- package/types/Core/Utils/ParticlesInteractorBase.d.ts +15 -0
- package/types/Core/Utils/Plugins.d.ts +51 -0
- package/types/Core/Utils/Point.d.ts +7 -0
- package/types/Core/Utils/QuadTree.d.ts +22 -0
- package/types/Core/Utils/Range.d.ts +7 -0
- package/types/Core/Utils/Rectangle.d.ts +9 -0
- package/types/Core/Utils/Vector.d.ts +8 -0
- package/types/Core/Utils/Vector3d.d.ts +29 -0
- package/types/Enums/AnimationStatus.d.ts +4 -0
- package/types/Enums/Directions/MoveDirection.d.ts +14 -0
- package/types/Enums/Directions/OutModeDirection.d.ts +6 -0
- package/types/Enums/Directions/RotateDirection.d.ts +6 -0
- package/types/Enums/InteractivityDetect.d.ts +5 -0
- package/types/Enums/Modes/ClickMode.d.ts +9 -0
- package/types/Enums/Modes/CollisionMode.d.ts +5 -0
- package/types/Enums/Modes/DivMode.d.ts +5 -0
- package/types/Enums/Modes/HoverMode.d.ts +11 -0
- package/types/Enums/Modes/OutMode.d.ts +10 -0
- package/types/Enums/Modes/ResponsiveMode.d.ts +4 -0
- package/types/Enums/Modes/SizeMode.d.ts +4 -0
- package/types/Enums/Modes/ThemeMode.d.ts +5 -0
- package/types/Enums/Types/AlterType.d.ts +4 -0
- package/types/Enums/Types/DestroyType.d.ts +5 -0
- package/types/Enums/Types/DivType.d.ts +4 -0
- package/types/Enums/Types/EasingType.d.ts +27 -0
- package/types/Enums/Types/EventType.d.ts +12 -0
- package/types/Enums/Types/GradientType.d.ts +5 -0
- package/types/Enums/Types/InteractorType.d.ts +4 -0
- package/types/Enums/Types/ParticleOutType.d.ts +5 -0
- package/types/Enums/Types/StartValueType.d.ts +5 -0
- package/types/Options/Classes/AnimatableColor.d.ts +12 -0
- package/types/Options/Classes/AnimationOptions.d.ts +20 -0
- package/types/Options/Classes/Background/Background.d.ts +14 -0
- package/types/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
- package/types/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
- package/types/Options/Classes/ColorAnimation.d.ts +14 -0
- package/types/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
- package/types/Options/Classes/HslAnimation.d.ts +11 -0
- package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +11 -0
- package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +20 -0
- package/types/Options/Classes/Interactivity/Events/Events.d.ts +22 -0
- package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +13 -0
- package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
- package/types/Options/Classes/Interactivity/Events/ResizeEvent.d.ts +9 -0
- package/types/Options/Classes/Interactivity/Interactivity.d.ts +18 -0
- package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +12 -0
- package/types/Options/Classes/ManualParticle.d.ts +10 -0
- package/types/Options/Classes/Options.d.ts +58 -0
- package/types/Options/Classes/OptionsColor.d.ts +11 -0
- package/types/Options/Classes/Particles/Bounce/ParticlesBounce.d.ts +10 -0
- package/types/Options/Classes/Particles/Bounce/ParticlesBounceFactor.d.ts +4 -0
- package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +16 -0
- package/types/Options/Classes/Particles/Collisions/CollisionsAbsorb.d.ts +8 -0
- package/types/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
- package/types/Options/Classes/Particles/Move/Move.d.ts +49 -0
- package/types/Options/Classes/Particles/Move/MoveAngle.d.ts +10 -0
- package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +16 -0
- package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +12 -0
- package/types/Options/Classes/Particles/Move/MoveGravity.d.ts +12 -0
- package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +14 -0
- package/types/Options/Classes/Particles/Move/MoveTrailFill.d.ts +9 -0
- package/types/Options/Classes/Particles/Move/OutModes.d.ts +14 -0
- package/types/Options/Classes/Particles/Move/Path/MovePath.d.ts +14 -0
- package/types/Options/Classes/Particles/Move/Spin.d.ts +12 -0
- package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +16 -0
- package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
- package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +10 -0
- package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +12 -0
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +40 -0
- package/types/Options/Classes/Particles/Shadow.d.ts +13 -0
- package/types/Options/Classes/Particles/Shape/Shape.d.ts +11 -0
- package/types/Options/Classes/Particles/Size/Size.d.ts +10 -0
- package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +12 -0
- package/types/Options/Classes/Particles/Stroke.d.ts +12 -0
- package/types/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
- package/types/Options/Classes/Random.d.ts +9 -0
- package/types/Options/Classes/Responsive.d.ts +12 -0
- package/types/Options/Classes/Theme/Theme.d.ts +12 -0
- package/types/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
- package/types/Options/Classes/ValueWithRandom.d.ts +26 -0
- package/types/Options/Interfaces/Background/IBackground.d.ts +9 -0
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
- package/types/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +5 -0
- package/types/Options/Interfaces/FullScreen/IFullScreen.d.ts +4 -0
- package/types/Options/Interfaces/IAnimatable.d.ts +4 -0
- package/types/Options/Interfaces/IAnimatableColor.d.ts +6 -0
- package/types/Options/Interfaces/IAnimation.d.ts +13 -0
- package/types/Options/Interfaces/IColorAnimation.d.ts +5 -0
- package/types/Options/Interfaces/IHslAnimation.d.ts +6 -0
- package/types/Options/Interfaces/IManualParticle.d.ts +7 -0
- package/types/Options/Interfaces/IOptionLoader.d.ts +4 -0
- package/types/Options/Interfaces/IOptions.d.ts +37 -0
- package/types/Options/Interfaces/IOptionsColor.d.ts +2 -0
- package/types/Options/Interfaces/IRandom.d.ts +4 -0
- package/types/Options/Interfaces/IResponsive.d.ts +7 -0
- package/types/Options/Interfaces/IValueWithRandom.d.ts +13 -0
- package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
- package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +12 -0
- package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +14 -0
- package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
- package/types/Options/Interfaces/Interactivity/Events/IParallax.d.ts +5 -0
- package/types/Options/Interfaces/Interactivity/Events/IResizeEvent.d.ts +4 -0
- package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +10 -0
- package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
- package/types/Options/Interfaces/Interactivity/Modes/IModes.d.ts +3 -0
- package/types/Options/Interfaces/Particles/Bounce/IParticlesBounce.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +11 -0
- package/types/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.d.ts +3 -0
- package/types/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +4 -0
- package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +32 -0
- package/types/Options/Interfaces/Particles/IShadow.d.ts +8 -0
- package/types/Options/Interfaces/Particles/IStroke.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Move/IMove.d.ts +38 -0
- package/types/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Move/IMoveCenter.d.ts +2 -0
- package/types/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +7 -0
- package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Move/IMoveTrailFill.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
- package/types/Options/Interfaces/Particles/Move/Path/IMovePath.d.ts +9 -0
- package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
- package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +8 -0
- package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +5 -0
- package/types/Options/Interfaces/Particles/Shape/IShape.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +1 -0
- package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Size/ISize.d.ts +6 -0
- package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +6 -0
- package/types/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +6 -0
- package/types/Options/Interfaces/Theme/ITheme.d.ts +7 -0
- package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
- package/types/Types/CustomEventArgs.d.ts +5 -0
- package/types/Types/CustomEventListener.d.ts +2 -0
- package/types/Types/ISourceOptions.d.ts +3 -0
- package/types/Types/ParticlesGroups.d.ts +4 -0
- package/types/Types/PathOptions.d.ts +3 -0
- package/types/Types/RangeValue.d.ts +2 -0
- package/types/Types/RecursivePartial.d.ts +3 -0
- package/types/Types/ShapeData.d.ts +5 -0
- package/types/Types/ShapeDrawerFunctions.d.ts +10 -0
- package/types/Types/SingleOrMultiple.d.ts +1 -0
- package/types/Utils/CanvasUtils.d.ts +23 -0
- package/types/Utils/ColorUtils.d.ts +24 -0
- package/types/Utils/EventDispatcher.d.ts +11 -0
- package/types/Utils/HslColorManager.d.ts +10 -0
- package/types/Utils/NumberUtils.d.ts +37 -0
- package/types/Utils/OptionsUtils.d.ts +8 -0
- package/types/Utils/RgbColorManager.d.ts +10 -0
- package/types/Utils/Utils.d.ts +36 -0
- package/types/bundle.d.ts +91 -0
- package/types/engine.d.ts +39 -0
- package/types/index.d.ts +204 -0
- package/umd/Core/Canvas.js +412 -0
- package/umd/Core/Container.js +450 -0
- package/umd/Core/Interfaces/Colors.js +12 -0
- package/umd/Core/Interfaces/IBounds.js +12 -0
- package/umd/Core/Interfaces/IBubbleParticleData.js +12 -0
- package/umd/Core/Interfaces/ICircleBouncer.js +12 -0
- package/umd/Core/Interfaces/IColorManager.js +12 -0
- package/umd/Core/Interfaces/IContainerInteractivity.js +12 -0
- package/umd/Core/Interfaces/IContainerPlugin.js +12 -0
- package/umd/Core/Interfaces/ICoordinates.js +12 -0
- package/umd/Core/Interfaces/IDelta.js +12 -0
- package/umd/Core/Interfaces/IDimension.js +12 -0
- package/umd/Core/Interfaces/IDistance.js +12 -0
- package/umd/Core/Interfaces/IDrawParticleParams.js +12 -0
- package/umd/Core/Interfaces/IExternalInteractor.js +12 -0
- package/umd/Core/Interfaces/IInteractor.js +12 -0
- package/umd/Core/Interfaces/ILoadParams.js +12 -0
- package/umd/Core/Interfaces/IMouseData.js +12 -0
- package/umd/Core/Interfaces/IMovePathGenerator.js +12 -0
- package/umd/Core/Interfaces/IParticle.js +12 -0
- package/umd/Core/Interfaces/IParticleColorStyle.js +12 -0
- package/umd/Core/Interfaces/IParticleHslAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticleLife.js +12 -0
- package/umd/Core/Interfaces/IParticleMover.js +12 -0
- package/umd/Core/Interfaces/IParticleOverride.js +12 -0
- package/umd/Core/Interfaces/IParticleRetinaProps.js +12 -0
- package/umd/Core/Interfaces/IParticleRoll.js +12 -0
- package/umd/Core/Interfaces/IParticleTransformValues.js +12 -0
- package/umd/Core/Interfaces/IParticleUpdater.js +12 -0
- package/umd/Core/Interfaces/IParticleValueAnimation.js +12 -0
- package/umd/Core/Interfaces/IParticlesInteractor.js +12 -0
- package/umd/Core/Interfaces/IParticlesMover.js +12 -0
- package/umd/Core/Interfaces/IPlugin.js +12 -0
- package/umd/Core/Interfaces/IPositionFromSizeParams.js +12 -0
- package/umd/Core/Interfaces/IRangeValue.js +12 -0
- package/umd/Core/Interfaces/IRectSideResult.js +12 -0
- package/umd/Core/Interfaces/IShapeDrawer.js +12 -0
- package/umd/Core/Interfaces/IShapeValues.js +12 -0
- package/umd/Core/Interfaces/ISlowParticleData.js +12 -0
- package/umd/Core/Interfaces/ITrailFillData.js +12 -0
- package/umd/Core/Particle.js +321 -0
- package/umd/Core/Particles.js +276 -0
- package/umd/Core/Retina.js +47 -0
- package/umd/Core/Utils/Circle.js +37 -0
- package/umd/Core/Utils/Constants.js +25 -0
- package/umd/Core/Utils/EventListeners.js +294 -0
- package/umd/Core/Utils/ExternalInteractorBase.js +20 -0
- package/umd/Core/Utils/FrameManager.js +56 -0
- package/umd/Core/Utils/InteractionManager.js +74 -0
- package/umd/Core/Utils/ParticlesInteractorBase.js +20 -0
- package/umd/Core/Utils/Plugins.js +126 -0
- package/umd/Core/Utils/Point.js +20 -0
- package/umd/Core/Utils/QuadTree.js +78 -0
- package/umd/Core/Utils/Range.js +22 -0
- package/umd/Core/Utils/Rectangle.js +36 -0
- package/umd/Core/Utils/Vector.js +29 -0
- package/umd/Core/Utils/Vector3d.js +110 -0
- package/umd/Enums/AnimationStatus.js +12 -0
- package/umd/Enums/Directions/MoveDirection.js +12 -0
- package/umd/Enums/Directions/OutModeDirection.js +12 -0
- package/umd/Enums/Directions/RotateDirection.js +12 -0
- package/umd/Enums/InteractivityDetect.js +12 -0
- package/umd/Enums/Modes/ClickMode.js +12 -0
- package/umd/Enums/Modes/CollisionMode.js +12 -0
- package/umd/Enums/Modes/DivMode.js +12 -0
- package/umd/Enums/Modes/HoverMode.js +12 -0
- package/umd/Enums/Modes/OutMode.js +12 -0
- package/umd/Enums/Modes/ResponsiveMode.js +12 -0
- package/umd/Enums/Modes/SizeMode.js +12 -0
- package/umd/Enums/Modes/ThemeMode.js +12 -0
- package/umd/Enums/Types/AlterType.js +12 -0
- package/umd/Enums/Types/DestroyType.js +12 -0
- package/umd/Enums/Types/DivType.js +12 -0
- package/umd/Enums/Types/EasingType.js +12 -0
- package/umd/Enums/Types/EventType.js +12 -0
- package/umd/Enums/Types/GradientType.js +12 -0
- package/umd/Enums/Types/InteractorType.js +12 -0
- package/umd/Enums/Types/ParticleOutType.js +12 -0
- package/umd/Enums/Types/StartValueType.js +12 -0
- package/umd/Options/Classes/AnimatableColor.js +50 -0
- package/umd/Options/Classes/AnimationOptions.js +63 -0
- package/umd/Options/Classes/Background/Background.js +49 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +38 -0
- package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +33 -0
- package/umd/Options/Classes/ColorAnimation.js +48 -0
- package/umd/Options/Classes/FullScreen/FullScreen.js +31 -0
- package/umd/Options/Classes/HslAnimation.js +30 -0
- package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +31 -0
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +63 -0
- package/umd/Options/Classes/Interactivity/Events/Events.js +67 -0
- package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +34 -0
- package/umd/Options/Classes/Interactivity/Events/Parallax.js +35 -0
- package/umd/Options/Classes/Interactivity/Events/ResizeEvent.js +31 -0
- package/umd/Options/Classes/Interactivity/Interactivity.js +41 -0
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +35 -0
- package/umd/Options/Classes/ManualParticle.js +32 -0
- package/umd/Options/Classes/Options.js +184 -0
- package/umd/Options/Classes/OptionsColor.js +38 -0
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +28 -0
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +22 -0
- package/umd/Options/Classes/Particles/Collisions/Collisions.js +40 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +27 -0
- package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.js +31 -0
- package/umd/Options/Classes/Particles/Move/Move.js +138 -0
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +32 -0
- package/umd/Options/Classes/Particles/Move/MoveAttract.js +57 -0
- package/umd/Options/Classes/Particles/Move/MoveCenter.js +39 -0
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +40 -0
- package/umd/Options/Classes/Particles/Move/MoveTrail.js +42 -0
- package/umd/Options/Classes/Particles/Move/MoveTrailFill.js +28 -0
- package/umd/Options/Classes/Particles/Move/OutModes.js +32 -0
- package/umd/Options/Classes/Particles/Move/Path/MovePath.js +40 -0
- package/umd/Options/Classes/Particles/Move/Spin.js +34 -0
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +56 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +42 -0
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +30 -0
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +40 -0
- package/umd/Options/Classes/Particles/ParticlesOptions.js +106 -0
- package/umd/Options/Classes/Particles/Shadow.js +48 -0
- package/umd/Options/Classes/Particles/Shape/Shape.js +39 -0
- package/umd/Options/Classes/Particles/Size/Size.js +30 -0
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +40 -0
- package/umd/Options/Classes/Particles/Stroke.js +35 -0
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +38 -0
- package/umd/Options/Classes/Random.js +31 -0
- package/umd/Options/Classes/Responsive.js +41 -0
- package/umd/Options/Classes/Theme/Theme.js +34 -0
- package/umd/Options/Classes/Theme/ThemeDefault.js +35 -0
- package/umd/Options/Classes/ValueWithRandom.js +78 -0
- package/umd/Options/Interfaces/Background/IBackground.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.js +12 -0
- package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +12 -0
- package/umd/Options/Interfaces/FullScreen/IFullScreen.js +12 -0
- package/umd/Options/Interfaces/IAnimatable.js +12 -0
- package/umd/Options/Interfaces/IAnimatableColor.js +12 -0
- package/umd/Options/Interfaces/IAnimation.js +12 -0
- package/umd/Options/Interfaces/IColorAnimation.js +12 -0
- package/umd/Options/Interfaces/IHslAnimation.js +12 -0
- package/umd/Options/Interfaces/IManualParticle.js +12 -0
- package/umd/Options/Interfaces/IOptionLoader.js +12 -0
- package/umd/Options/Interfaces/IOptions.js +12 -0
- package/umd/Options/Interfaces/IOptionsColor.js +12 -0
- package/umd/Options/Interfaces/IRandom.js +12 -0
- package/umd/Options/Interfaces/IResponsive.js +12 -0
- package/umd/Options/Interfaces/IValueWithRandom.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Events/IResizeEvent.js +12 -0
- package/umd/Options/Interfaces/Interactivity/IInteractivity.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +12 -0
- package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +12 -0
- package/umd/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisions.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsAbsorb.js +12 -0
- package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +12 -0
- package/umd/Options/Interfaces/Particles/IParticlesOptions.js +12 -0
- package/umd/Options/Interfaces/Particles/IShadow.js +12 -0
- package/umd/Options/Interfaces/Particles/IStroke.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMove.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveAttract.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveCenter.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveTrail.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IMoveTrailFill.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/IOutModes.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/ISpin.js +12 -0
- package/umd/Options/Interfaces/Particles/Move/Path/IMovePath.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesDensity.js +12 -0
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +12 -0
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +27 -0
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISize.js +12 -0
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +12 -0
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +12 -0
- package/umd/Options/Interfaces/Theme/ITheme.js +12 -0
- package/umd/Options/Interfaces/Theme/IThemeDefault.js +12 -0
- package/umd/Types/CustomEventArgs.js +12 -0
- package/umd/Types/CustomEventListener.js +12 -0
- package/umd/Types/ISourceOptions.js +12 -0
- package/umd/Types/ParticlesGroups.js +12 -0
- package/umd/Types/PathOptions.js +12 -0
- package/umd/Types/RangeValue.js +12 -0
- package/umd/Types/RecursivePartial.js +12 -0
- package/umd/Types/ShapeData.js +12 -0
- package/umd/Types/ShapeDrawerFunctions.js +12 -0
- package/umd/Types/SingleOrMultiple.js +12 -0
- package/umd/Utils/CanvasUtils.js +174 -0
- package/umd/Utils/ColorUtils.js +305 -0
- package/umd/Utils/EventDispatcher.js +58 -0
- package/umd/Utils/HslColorManager.js +54 -0
- package/umd/Utils/NumberUtils.js +185 -0
- package/umd/Utils/OptionsUtils.js +26 -0
- package/umd/Utils/RgbColorManager.js +53 -0
- package/umd/Utils/Utils.js +284 -0
- package/umd/bundle.js +124 -0
- package/umd/engine.js +189 -0
- package/umd/index.js +226 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../../AnimationOptions"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OpacityAnimation = void 0;
|
|
13
|
+
const AnimationOptions_1 = require("../../AnimationOptions");
|
|
14
|
+
class OpacityAnimation extends AnimationOptions_1.RangedAnimationOptions {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.destroy = "none";
|
|
18
|
+
this.speed = 2;
|
|
19
|
+
}
|
|
20
|
+
get opacity_min() {
|
|
21
|
+
return this.minimumValue;
|
|
22
|
+
}
|
|
23
|
+
set opacity_min(value) {
|
|
24
|
+
this.minimumValue = value;
|
|
25
|
+
}
|
|
26
|
+
load(data) {
|
|
27
|
+
if ((data === null || data === void 0 ? void 0 : data.opacity_min) !== undefined && data.minimumValue === undefined) {
|
|
28
|
+
data.minimumValue = data.opacity_min;
|
|
29
|
+
}
|
|
30
|
+
super.load(data);
|
|
31
|
+
if (!data) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (data.destroy !== undefined) {
|
|
35
|
+
this.destroy = data.destroy;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.OpacityAnimation = OpacityAnimation;
|
|
40
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../../../Utils/Utils", "../AnimatableColor", "./Collisions/Collisions", "./Move/Move", "./Opacity/Opacity", "./Bounce/ParticlesBounce", "./Number/ParticlesNumber", "./Shadow", "./Shape/Shape", "./Size/Size", "./Stroke", "./ZIndex/ZIndex"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ParticlesOptions = void 0;
|
|
13
|
+
const Utils_1 = require("../../../Utils/Utils");
|
|
14
|
+
const AnimatableColor_1 = require("../AnimatableColor");
|
|
15
|
+
const Collisions_1 = require("./Collisions/Collisions");
|
|
16
|
+
const Move_1 = require("./Move/Move");
|
|
17
|
+
const Opacity_1 = require("./Opacity/Opacity");
|
|
18
|
+
const ParticlesBounce_1 = require("./Bounce/ParticlesBounce");
|
|
19
|
+
const ParticlesNumber_1 = require("./Number/ParticlesNumber");
|
|
20
|
+
const Shadow_1 = require("./Shadow");
|
|
21
|
+
const Shape_1 = require("./Shape/Shape");
|
|
22
|
+
const Size_1 = require("./Size/Size");
|
|
23
|
+
const Stroke_1 = require("./Stroke");
|
|
24
|
+
const ZIndex_1 = require("./ZIndex/ZIndex");
|
|
25
|
+
class ParticlesOptions {
|
|
26
|
+
constructor(engine, container) {
|
|
27
|
+
this._engine = engine;
|
|
28
|
+
this._container = container;
|
|
29
|
+
this.bounce = new ParticlesBounce_1.ParticlesBounce();
|
|
30
|
+
this.collisions = new Collisions_1.Collisions();
|
|
31
|
+
this.color = new AnimatableColor_1.AnimatableColor();
|
|
32
|
+
this.color.value = "#fff";
|
|
33
|
+
this.groups = {};
|
|
34
|
+
this.move = new Move_1.Move();
|
|
35
|
+
this.number = new ParticlesNumber_1.ParticlesNumber();
|
|
36
|
+
this.opacity = new Opacity_1.Opacity();
|
|
37
|
+
this.reduceDuplicates = false;
|
|
38
|
+
this.shadow = new Shadow_1.Shadow();
|
|
39
|
+
this.shape = new Shape_1.Shape();
|
|
40
|
+
this.size = new Size_1.Size();
|
|
41
|
+
this.stroke = new Stroke_1.Stroke();
|
|
42
|
+
this.zIndex = new ZIndex_1.ZIndex();
|
|
43
|
+
}
|
|
44
|
+
load(data) {
|
|
45
|
+
var _a, _b, _c, _d;
|
|
46
|
+
if (!data) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.bounce.load(data.bounce);
|
|
50
|
+
this.color.load(AnimatableColor_1.AnimatableColor.create(this.color, data.color));
|
|
51
|
+
if (data.groups !== undefined) {
|
|
52
|
+
for (const group in data.groups) {
|
|
53
|
+
const item = data.groups[group];
|
|
54
|
+
if (item !== undefined) {
|
|
55
|
+
this.groups[group] = (0, Utils_1.deepExtend)((_a = this.groups[group]) !== null && _a !== void 0 ? _a : {}, item);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
this.move.load(data.move);
|
|
60
|
+
this.number.load(data.number);
|
|
61
|
+
this.opacity.load(data.opacity);
|
|
62
|
+
if (data.reduceDuplicates !== undefined) {
|
|
63
|
+
this.reduceDuplicates = data.reduceDuplicates;
|
|
64
|
+
}
|
|
65
|
+
this.shape.load(data.shape);
|
|
66
|
+
this.size.load(data.size);
|
|
67
|
+
this.shadow.load(data.shadow);
|
|
68
|
+
this.zIndex.load(data.zIndex);
|
|
69
|
+
const collisions = (_c = (_b = data.move) === null || _b === void 0 ? void 0 : _b.collisions) !== null && _c !== void 0 ? _c : (_d = data.move) === null || _d === void 0 ? void 0 : _d.bounce;
|
|
70
|
+
if (collisions !== undefined) {
|
|
71
|
+
this.collisions.enable = collisions;
|
|
72
|
+
}
|
|
73
|
+
this.collisions.load(data.collisions);
|
|
74
|
+
if (data.interactivity !== undefined) {
|
|
75
|
+
this.interactivity = (0, Utils_1.deepExtend)({}, data.interactivity);
|
|
76
|
+
}
|
|
77
|
+
const stroke = data.stroke;
|
|
78
|
+
if (stroke) {
|
|
79
|
+
this.stroke = (0, Utils_1.executeOnSingleOrMultiple)(stroke, (t) => {
|
|
80
|
+
const tmp = new Stroke_1.Stroke();
|
|
81
|
+
tmp.load(t);
|
|
82
|
+
return tmp;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
if (this._container) {
|
|
86
|
+
const updaters = this._engine.plugins.updaters.get(this._container);
|
|
87
|
+
if (updaters) {
|
|
88
|
+
for (const updater of updaters) {
|
|
89
|
+
if (updater.loadOptions) {
|
|
90
|
+
updater.loadOptions(this, data);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const interactors = this._engine.plugins.interactors.get(this._container);
|
|
95
|
+
if (interactors) {
|
|
96
|
+
for (const interactor of interactors) {
|
|
97
|
+
if (interactor.loadParticlesOptions) {
|
|
98
|
+
interactor.loadParticlesOptions(this, data);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.ParticlesOptions = ParticlesOptions;
|
|
106
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../OptionsColor"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Shadow = void 0;
|
|
13
|
+
const OptionsColor_1 = require("../OptionsColor");
|
|
14
|
+
class Shadow {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.blur = 0;
|
|
17
|
+
this.color = new OptionsColor_1.OptionsColor();
|
|
18
|
+
this.enable = false;
|
|
19
|
+
this.offset = {
|
|
20
|
+
x: 0,
|
|
21
|
+
y: 0,
|
|
22
|
+
};
|
|
23
|
+
this.color.value = "#000";
|
|
24
|
+
}
|
|
25
|
+
load(data) {
|
|
26
|
+
if (!data) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (data.blur !== undefined) {
|
|
30
|
+
this.blur = data.blur;
|
|
31
|
+
}
|
|
32
|
+
this.color = OptionsColor_1.OptionsColor.create(this.color, data.color);
|
|
33
|
+
if (data.enable !== undefined) {
|
|
34
|
+
this.enable = data.enable;
|
|
35
|
+
}
|
|
36
|
+
if (data.offset === undefined) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (data.offset.x !== undefined) {
|
|
40
|
+
this.offset.x = data.offset.x;
|
|
41
|
+
}
|
|
42
|
+
if (data.offset.y !== undefined) {
|
|
43
|
+
this.offset.y = data.offset.y;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.Shadow = Shadow;
|
|
48
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../../../../Utils/Utils"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Shape = void 0;
|
|
13
|
+
const Utils_1 = require("../../../../Utils/Utils");
|
|
14
|
+
class Shape {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.options = {};
|
|
17
|
+
this.type = "circle";
|
|
18
|
+
}
|
|
19
|
+
load(data) {
|
|
20
|
+
var _a;
|
|
21
|
+
if (!data) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const options = data.options;
|
|
25
|
+
if (options !== undefined) {
|
|
26
|
+
for (const shape in options) {
|
|
27
|
+
const item = options[shape];
|
|
28
|
+
if (item) {
|
|
29
|
+
this.options[shape] = (0, Utils_1.deepExtend)((_a = this.options[shape]) !== null && _a !== void 0 ? _a : {}, item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (data.type !== undefined) {
|
|
34
|
+
this.type = data.type;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Shape = Shape;
|
|
39
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../../ValueWithRandom", "./SizeAnimation"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Size = void 0;
|
|
13
|
+
const ValueWithRandom_1 = require("../../ValueWithRandom");
|
|
14
|
+
const SizeAnimation_1 = require("./SizeAnimation");
|
|
15
|
+
class Size extends ValueWithRandom_1.RangedAnimationValueWithRandom {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.animation = new SizeAnimation_1.SizeAnimation();
|
|
19
|
+
this.random.minimumValue = 1;
|
|
20
|
+
this.value = 3;
|
|
21
|
+
}
|
|
22
|
+
get anim() {
|
|
23
|
+
return this.animation;
|
|
24
|
+
}
|
|
25
|
+
set anim(value) {
|
|
26
|
+
this.animation = value;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Size = Size;
|
|
30
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../../AnimationOptions"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SizeAnimation = void 0;
|
|
13
|
+
const AnimationOptions_1 = require("../../AnimationOptions");
|
|
14
|
+
class SizeAnimation extends AnimationOptions_1.RangedAnimationOptions {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.destroy = "none";
|
|
18
|
+
this.speed = 5;
|
|
19
|
+
}
|
|
20
|
+
get size_min() {
|
|
21
|
+
return this.minimumValue;
|
|
22
|
+
}
|
|
23
|
+
set size_min(value) {
|
|
24
|
+
this.minimumValue = value;
|
|
25
|
+
}
|
|
26
|
+
load(data) {
|
|
27
|
+
if ((data === null || data === void 0 ? void 0 : data.size_min) !== undefined && data.minimumValue === undefined) {
|
|
28
|
+
data.minimumValue = data.size_min;
|
|
29
|
+
}
|
|
30
|
+
super.load(data);
|
|
31
|
+
if (!data) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (data.destroy !== undefined) {
|
|
35
|
+
this.destroy = data.destroy;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.SizeAnimation = SizeAnimation;
|
|
40
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../AnimatableColor", "../../../Utils/NumberUtils"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Stroke = void 0;
|
|
13
|
+
const AnimatableColor_1 = require("../AnimatableColor");
|
|
14
|
+
const NumberUtils_1 = require("../../../Utils/NumberUtils");
|
|
15
|
+
class Stroke {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.width = 0;
|
|
18
|
+
}
|
|
19
|
+
load(data) {
|
|
20
|
+
if (!data) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (data.color !== undefined) {
|
|
24
|
+
this.color = AnimatableColor_1.AnimatableColor.create(this.color, data.color);
|
|
25
|
+
}
|
|
26
|
+
if (data.width !== undefined) {
|
|
27
|
+
this.width = (0, NumberUtils_1.setRangeValue)(data.width);
|
|
28
|
+
}
|
|
29
|
+
if (data.opacity !== undefined) {
|
|
30
|
+
this.opacity = (0, NumberUtils_1.setRangeValue)(data.opacity);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Stroke = Stroke;
|
|
35
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../../ValueWithRandom"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ZIndex = void 0;
|
|
13
|
+
const ValueWithRandom_1 = require("../../ValueWithRandom");
|
|
14
|
+
class ZIndex extends ValueWithRandom_1.ValueWithRandom {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.opacityRate = 1;
|
|
18
|
+
this.sizeRate = 1;
|
|
19
|
+
this.velocityRate = 1;
|
|
20
|
+
}
|
|
21
|
+
load(data) {
|
|
22
|
+
super.load(data);
|
|
23
|
+
if (!data) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (data.opacityRate !== undefined) {
|
|
27
|
+
this.opacityRate = data.opacityRate;
|
|
28
|
+
}
|
|
29
|
+
if (data.sizeRate !== undefined) {
|
|
30
|
+
this.sizeRate = data.sizeRate;
|
|
31
|
+
}
|
|
32
|
+
if (data.velocityRate !== undefined) {
|
|
33
|
+
this.velocityRate = data.velocityRate;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ZIndex = ZIndex;
|
|
38
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Random = void 0;
|
|
13
|
+
class Random {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.enable = false;
|
|
16
|
+
this.minimumValue = 0;
|
|
17
|
+
}
|
|
18
|
+
load(data) {
|
|
19
|
+
if (!data) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (data.enable !== undefined) {
|
|
23
|
+
this.enable = data.enable;
|
|
24
|
+
}
|
|
25
|
+
if (data.minimumValue !== undefined) {
|
|
26
|
+
this.minimumValue = data.minimumValue;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.Random = Random;
|
|
31
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "../../Utils/Utils"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Responsive = void 0;
|
|
13
|
+
const Utils_1 = require("../../Utils/Utils");
|
|
14
|
+
class Responsive {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.maxWidth = Infinity;
|
|
17
|
+
this.options = {};
|
|
18
|
+
this.mode = "canvas";
|
|
19
|
+
}
|
|
20
|
+
load(data) {
|
|
21
|
+
if (!data) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (data.maxWidth !== undefined) {
|
|
25
|
+
this.maxWidth = data.maxWidth;
|
|
26
|
+
}
|
|
27
|
+
if (data.mode !== undefined) {
|
|
28
|
+
if (data.mode === "screen") {
|
|
29
|
+
this.mode = "screen";
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.mode = "canvas";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (data.options !== undefined) {
|
|
36
|
+
this.options = (0, Utils_1.deepExtend)({}, data.options);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Responsive = Responsive;
|
|
41
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "./ThemeDefault", "../../../Utils/Utils"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Theme = void 0;
|
|
13
|
+
const ThemeDefault_1 = require("./ThemeDefault");
|
|
14
|
+
const Utils_1 = require("../../../Utils/Utils");
|
|
15
|
+
class Theme {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.name = "";
|
|
18
|
+
this.default = new ThemeDefault_1.ThemeDefault();
|
|
19
|
+
}
|
|
20
|
+
load(data) {
|
|
21
|
+
if (!data) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (data.name !== undefined) {
|
|
25
|
+
this.name = data.name;
|
|
26
|
+
}
|
|
27
|
+
this.default.load(data.default);
|
|
28
|
+
if (data.options !== undefined) {
|
|
29
|
+
this.options = (0, Utils_1.deepExtend)({}, data.options);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.Theme = Theme;
|
|
34
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ThemeDefault = void 0;
|
|
13
|
+
class ThemeDefault {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.auto = false;
|
|
16
|
+
this.mode = "any";
|
|
17
|
+
this.value = false;
|
|
18
|
+
}
|
|
19
|
+
load(data) {
|
|
20
|
+
if (!data) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (data.auto !== undefined) {
|
|
24
|
+
this.auto = data.auto;
|
|
25
|
+
}
|
|
26
|
+
if (data.mode !== undefined) {
|
|
27
|
+
this.mode = data.mode;
|
|
28
|
+
}
|
|
29
|
+
if (data.value !== undefined) {
|
|
30
|
+
this.value = data.value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ThemeDefault = ThemeDefault;
|
|
35
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "./AnimationOptions", "./Random", "./AnimationOptions", "../../Utils/NumberUtils"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RangedAnimationValueWithRandom = exports.AnimationValueWithRandom = exports.ValueWithRandom = void 0;
|
|
13
|
+
const AnimationOptions_1 = require("./AnimationOptions");
|
|
14
|
+
const Random_1 = require("./Random");
|
|
15
|
+
const AnimationOptions_2 = require("./AnimationOptions");
|
|
16
|
+
const NumberUtils_1 = require("../../Utils/NumberUtils");
|
|
17
|
+
class ValueWithRandom {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.random = new Random_1.Random();
|
|
20
|
+
this.value = 0;
|
|
21
|
+
}
|
|
22
|
+
load(data) {
|
|
23
|
+
if (!data) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (typeof data.random === "boolean") {
|
|
27
|
+
this.random.enable = data.random;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.random.load(data.random);
|
|
31
|
+
}
|
|
32
|
+
if (data.value !== undefined) {
|
|
33
|
+
this.value = (0, NumberUtils_1.setRangeValue)(data.value, this.random.enable ? this.random.minimumValue : undefined);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ValueWithRandom = ValueWithRandom;
|
|
38
|
+
class AnimationValueWithRandom extends ValueWithRandom {
|
|
39
|
+
constructor() {
|
|
40
|
+
super();
|
|
41
|
+
this.animation = new AnimationOptions_1.AnimationOptions();
|
|
42
|
+
}
|
|
43
|
+
get anim() {
|
|
44
|
+
return this.animation;
|
|
45
|
+
}
|
|
46
|
+
set anim(value) {
|
|
47
|
+
this.animation = value;
|
|
48
|
+
}
|
|
49
|
+
load(data) {
|
|
50
|
+
var _a;
|
|
51
|
+
super.load(data);
|
|
52
|
+
if (!data) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const animation = (_a = data.animation) !== null && _a !== void 0 ? _a : data.anim;
|
|
56
|
+
if (animation !== undefined) {
|
|
57
|
+
this.animation.load(animation);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.AnimationValueWithRandom = AnimationValueWithRandom;
|
|
62
|
+
class RangedAnimationValueWithRandom extends AnimationValueWithRandom {
|
|
63
|
+
constructor() {
|
|
64
|
+
super();
|
|
65
|
+
this.animation = new AnimationOptions_2.RangedAnimationOptions();
|
|
66
|
+
}
|
|
67
|
+
load(data) {
|
|
68
|
+
super.load(data);
|
|
69
|
+
if (!data) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (data.animation !== undefined) {
|
|
73
|
+
this.value = (0, NumberUtils_1.setRangeValue)(this.value, this.animation.enable ? this.animation.minimumValue : undefined);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.RangedAnimationValueWithRandom = RangedAnimationValueWithRandom;
|
|
78
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
});
|