@tsparticles/engine 3.0.0-alpha.1 → 3.0.0-beta.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/README.md +244 -188
- package/browser/Core/Canvas.js +271 -241
- package/browser/Core/Container.js +90 -106
- package/browser/Core/Engine.js +271 -0
- package/browser/Core/Particle.js +158 -165
- package/browser/Core/Particles.js +148 -143
- package/browser/Core/Retina.js +15 -13
- package/browser/Core/Utils/Circle.js +10 -6
- package/browser/Core/Utils/Constants.js +4 -3
- package/browser/Core/Utils/EventListeners.js +258 -234
- package/browser/Core/Utils/InteractionManager.js +6 -16
- package/browser/Core/Utils/QuadTree.js +14 -20
- package/browser/Core/Utils/Vector3d.js +17 -9
- package/browser/Options/Classes/AnimatableColor.js +2 -1
- package/browser/Options/Classes/AnimationOptions.js +4 -3
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +2 -1
- package/browser/Options/Classes/ColorAnimation.js +4 -0
- package/browser/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/browser/Options/Classes/Interactivity/Events/Events.js +5 -24
- package/browser/Options/Classes/Interactivity/Interactivity.js +1 -8
- package/browser/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/browser/Options/Classes/ManualParticle.js +5 -6
- package/browser/Options/Classes/Options.js +19 -39
- package/browser/Options/Classes/OptionsColor.js +3 -2
- package/browser/Options/Classes/Particles/Collisions/Collisions.js +5 -0
- package/browser/Options/Classes/Particles/Move/Move.js +11 -41
- package/browser/Options/Classes/Particles/Move/MoveAttract.js +9 -20
- package/browser/Options/Classes/Particles/Move/MoveTrail.js +2 -8
- package/browser/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/browser/Options/Classes/Particles/Move/Spin.js +3 -1
- package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +11 -7
- package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
- package/browser/Options/Classes/Particles/ParticlesOptions.js +6 -11
- package/browser/Options/Classes/Particles/Shape/Shape.js +9 -10
- package/browser/Options/Classes/Particles/Size/Size.js +11 -7
- package/browser/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
- package/browser/Options/Classes/ValueWithRandom.js +4 -17
- package/browser/Utils/CanvasUtils.js +18 -54
- package/browser/Utils/ColorUtils.js +17 -19
- package/browser/Utils/EventDispatcher.js +7 -6
- package/browser/Utils/HslColorManager.js +2 -4
- package/browser/Utils/NumberUtils.js +41 -45
- package/browser/Utils/RgbColorManager.js +2 -4
- package/browser/Utils/Utils.js +133 -62
- package/browser/bundle.js +4 -97
- package/browser/export-types.js +97 -0
- package/browser/exports.js +89 -0
- package/browser/index.js +8 -199
- package/browser/init.js +12 -0
- package/cjs/Core/Canvas.js +269 -239
- package/cjs/Core/Container.js +90 -106
- package/cjs/Core/Engine.js +275 -0
- package/cjs/Core/Particle.js +157 -164
- package/cjs/Core/Particles.js +148 -143
- package/cjs/Core/Retina.js +15 -13
- package/cjs/Core/Utils/Circle.js +10 -6
- package/cjs/Core/Utils/Constants.js +5 -4
- package/cjs/Core/Utils/EventListeners.js +257 -233
- package/cjs/Core/Utils/InteractionManager.js +6 -16
- package/cjs/Core/Utils/QuadTree.js +14 -20
- package/cjs/Core/Utils/Vector3d.js +17 -9
- package/cjs/Options/Classes/AnimatableColor.js +2 -1
- package/cjs/Options/Classes/AnimationOptions.js +4 -3
- package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +2 -1
- package/cjs/Options/Classes/ColorAnimation.js +4 -0
- package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/cjs/Options/Classes/Interactivity/Events/Events.js +5 -24
- package/cjs/Options/Classes/Interactivity/Interactivity.js +1 -8
- package/cjs/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/cjs/Options/Classes/ManualParticle.js +5 -6
- package/cjs/Options/Classes/Options.js +18 -38
- package/cjs/Options/Classes/OptionsColor.js +3 -2
- package/cjs/Options/Classes/Particles/Collisions/Collisions.js +5 -0
- package/cjs/Options/Classes/Particles/Move/Move.js +11 -41
- package/cjs/Options/Classes/Particles/Move/MoveAttract.js +9 -20
- package/cjs/Options/Classes/Particles/Move/MoveTrail.js +2 -8
- package/cjs/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/cjs/Options/Classes/Particles/Move/Spin.js +3 -1
- package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +10 -6
- package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +6 -11
- package/cjs/Options/Classes/Particles/Shape/Shape.js +9 -10
- package/cjs/Options/Classes/Particles/Size/Size.js +11 -7
- package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
- package/cjs/Options/Classes/ValueWithRandom.js +4 -17
- package/cjs/Utils/CanvasUtils.js +21 -58
- package/cjs/Utils/ColorUtils.js +16 -18
- package/cjs/Utils/EventDispatcher.js +7 -6
- package/cjs/Utils/HslColorManager.js +2 -4
- package/cjs/Utils/NumberUtils.js +41 -45
- package/cjs/Utils/RgbColorManager.js +2 -4
- package/cjs/Utils/Utils.js +146 -66
- package/cjs/bundle.js +4 -97
- package/cjs/export-types.js +113 -0
- package/cjs/exports.js +105 -0
- package/cjs/index.js +8 -199
- package/cjs/init.js +16 -0
- package/esm/Core/Canvas.js +271 -241
- package/esm/Core/Container.js +90 -106
- package/esm/Core/Engine.js +271 -0
- package/esm/Core/Particle.js +158 -165
- package/esm/Core/Particles.js +148 -143
- package/esm/Core/Retina.js +15 -13
- package/esm/Core/Utils/Circle.js +10 -6
- package/esm/Core/Utils/Constants.js +4 -3
- package/esm/Core/Utils/EventListeners.js +258 -234
- package/esm/Core/Utils/InteractionManager.js +6 -16
- package/esm/Core/Utils/QuadTree.js +14 -20
- package/esm/Core/Utils/Vector3d.js +17 -9
- package/esm/Options/Classes/AnimatableColor.js +2 -1
- package/esm/Options/Classes/AnimationOptions.js +4 -3
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +2 -1
- package/esm/Options/Classes/ColorAnimation.js +4 -0
- package/esm/Options/Classes/Interactivity/Events/DivEvent.js +0 -24
- package/esm/Options/Classes/Interactivity/Events/Events.js +5 -24
- package/esm/Options/Classes/Interactivity/Interactivity.js +1 -8
- package/esm/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/esm/Options/Classes/ManualParticle.js +5 -6
- package/esm/Options/Classes/Options.js +19 -39
- package/esm/Options/Classes/OptionsColor.js +3 -2
- package/esm/Options/Classes/Particles/Collisions/Collisions.js +5 -0
- package/esm/Options/Classes/Particles/Move/Move.js +11 -41
- package/esm/Options/Classes/Particles/Move/MoveAttract.js +9 -20
- package/esm/Options/Classes/Particles/Move/MoveTrail.js +2 -8
- package/esm/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/esm/Options/Classes/Particles/Move/Spin.js +3 -1
- package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +11 -7
- package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
- package/esm/Options/Classes/Particles/ParticlesOptions.js +6 -11
- package/esm/Options/Classes/Particles/Shape/Shape.js +9 -10
- package/esm/Options/Classes/Particles/Size/Size.js +11 -7
- package/esm/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
- package/esm/Options/Classes/ValueWithRandom.js +4 -17
- package/esm/Utils/CanvasUtils.js +18 -54
- package/esm/Utils/ColorUtils.js +17 -19
- package/esm/Utils/EventDispatcher.js +7 -6
- package/esm/Utils/HslColorManager.js +2 -4
- package/esm/Utils/NumberUtils.js +41 -45
- package/esm/Utils/RgbColorManager.js +2 -4
- package/esm/Utils/Utils.js +133 -62
- package/esm/bundle.js +4 -97
- package/esm/export-types.js +97 -0
- package/esm/exports.js +89 -0
- package/esm/index.js +8 -199
- package/esm/init.js +12 -0
- package/package.json +17 -2
- package/report.html +4 -4
- package/scripts/install.js +90 -33
- package/tsparticles.engine.js +1832 -2007
- package/tsparticles.engine.min.js +1 -1
- package/tsparticles.engine.min.js.LICENSE.txt +1 -10
- package/types/Core/Canvas.d.ts +20 -16
- package/types/Core/Container.d.ts +10 -14
- package/types/Core/Engine.d.ts +71 -0
- package/types/Core/Interfaces/IContainerPlugin.d.ts +2 -0
- package/types/Core/Interfaces/ICoordinates.d.ts +2 -2
- package/types/Core/Interfaces/IDimension.d.ts +2 -2
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +2 -1
- package/types/Core/Interfaces/IParticleUpdater.d.ts +0 -2
- package/types/Core/Interfaces/IParticleValueAnimation.d.ts +2 -0
- package/types/Core/Interfaces/IPlugin.d.ts +4 -3
- package/types/Core/Particle.d.ts +7 -7
- package/types/Core/Particles.d.ts +14 -11
- package/types/Core/Utils/Constants.d.ts +4 -3
- package/types/Core/Utils/EventListeners.d.ts +20 -18
- package/types/Core/Utils/InteractionManager.d.ts +1 -1
- package/types/Core/Utils/QuadTree.d.ts +2 -5
- package/types/Core/Utils/Vector3d.d.ts +2 -1
- package/types/Enums/Modes/{SizeMode.d.ts → PixelMode.d.ts} +1 -1
- package/types/Options/Classes/AnimationOptions.d.ts +1 -1
- package/types/Options/Classes/ColorAnimation.d.ts +1 -0
- package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -6
- package/types/Options/Classes/Interactivity/Events/Events.d.ts +0 -6
- package/types/Options/Classes/Interactivity/Interactivity.d.ts +1 -3
- package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +1 -1
- package/types/Options/Classes/Options.d.ts +5 -12
- package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +2 -0
- package/types/Options/Classes/Particles/Move/Move.d.ts +0 -11
- package/types/Options/Classes/Particles/Move/MoveAttract.d.ts +0 -4
- package/types/Options/Classes/Particles/Move/MoveCenter.d.ts +2 -2
- package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +0 -3
- package/types/Options/Classes/Particles/Number/ParticlesDensity.d.ts +0 -6
- package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +0 -2
- package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +4 -4
- package/types/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +0 -2
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +1 -1
- package/types/Options/Classes/Particles/Size/Size.d.ts +4 -4
- package/types/Options/Classes/Particles/Size/SizeAnimation.d.ts +0 -2
- package/types/Options/Classes/Responsive.d.ts +3 -3
- package/types/Options/Classes/Theme/Theme.d.ts +2 -2
- package/types/Options/Classes/ValueWithRandom.d.ts +2 -6
- package/types/Options/Interfaces/IAnimation.d.ts +1 -1
- package/types/Options/Interfaces/IOptions.d.ts +1 -4
- package/types/Options/Interfaces/IResponsive.d.ts +4 -3
- package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -3
- package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -3
- package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -1
- package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +2 -0
- package/types/Options/Interfaces/Particles/IStroke.d.ts +2 -1
- package/types/Options/Interfaces/Particles/Move/IMove.d.ts +0 -5
- package/types/Options/Interfaces/Particles/Move/IMoveAttract.d.ts +0 -2
- package/types/Options/Interfaces/Particles/Move/IMoveTrail.d.ts +0 -2
- package/types/Options/Interfaces/Particles/Number/IParticlesDensity.d.ts +0 -3
- package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Size/ISize.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +0 -1
- package/types/Options/Interfaces/Theme/ITheme.d.ts +3 -2
- package/types/Types/ExportResult.d.ts +5 -0
- package/types/Utils/CanvasUtils.d.ts +2 -5
- package/types/Utils/OptionsUtils.d.ts +1 -1
- package/types/Utils/Utils.d.ts +22 -4
- package/types/bundle.d.ts +2 -91
- package/types/export-types.d.ts +107 -0
- package/types/exports.d.ts +89 -0
- package/types/index.d.ts +3 -204
- package/types/init.d.ts +2 -0
- package/umd/Core/Canvas.js +269 -239
- package/umd/Core/Container.js +91 -107
- package/umd/Core/Engine.js +285 -0
- package/umd/Core/Particle.js +158 -165
- package/umd/Core/Particles.js +149 -144
- package/umd/Core/Retina.js +15 -13
- package/umd/Core/Utils/Circle.js +11 -7
- package/umd/Core/Utils/Constants.js +5 -4
- package/umd/Core/Utils/EventListeners.js +257 -233
- package/umd/Core/Utils/InteractionManager.js +6 -16
- package/umd/Core/Utils/QuadTree.js +14 -20
- package/umd/Core/Utils/Vector3d.js +18 -10
- package/umd/Options/Classes/AnimatableColor.js +3 -2
- package/umd/Options/Classes/AnimationOptions.js +4 -3
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +3 -2
- package/umd/Options/Classes/ColorAnimation.js +4 -0
- package/umd/Options/Classes/Interactivity/Events/DivEvent.js +1 -25
- package/umd/Options/Classes/Interactivity/Events/Events.js +6 -25
- package/umd/Options/Classes/Interactivity/Interactivity.js +1 -8
- package/umd/Options/Classes/Interactivity/Modes/Modes.js +11 -8
- package/umd/Options/Classes/ManualParticle.js +5 -6
- package/umd/Options/Classes/Options.js +18 -38
- package/umd/Options/Classes/OptionsColor.js +4 -3
- package/umd/Options/Classes/Particles/Collisions/Collisions.js +6 -1
- package/umd/Options/Classes/Particles/Move/Move.js +12 -42
- package/umd/Options/Classes/Particles/Move/MoveAttract.js +9 -20
- package/umd/Options/Classes/Particles/Move/MoveTrail.js +2 -8
- package/umd/Options/Classes/Particles/Move/OutModes.js +4 -5
- package/umd/Options/Classes/Particles/Move/Spin.js +3 -1
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +2 -21
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +2 -9
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +10 -6
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -9
- package/umd/Options/Classes/Particles/ParticlesOptions.js +6 -11
- package/umd/Options/Classes/Particles/Shape/Shape.js +9 -10
- package/umd/Options/Classes/Particles/Size/Size.js +12 -8
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +0 -9
- package/umd/Options/Classes/ValueWithRandom.js +5 -18
- package/umd/Utils/CanvasUtils.js +21 -58
- package/umd/Utils/ColorUtils.js +16 -18
- package/umd/Utils/EventDispatcher.js +7 -6
- package/umd/Utils/HslColorManager.js +2 -4
- package/umd/Utils/NumberUtils.js +42 -46
- package/umd/Utils/RgbColorManager.js +2 -4
- package/umd/Utils/Utils.js +146 -66
- package/umd/bundle.js +5 -98
- package/umd/export-types.js +123 -0
- package/umd/exports.js +115 -0
- package/umd/index.js +9 -200
- package/umd/init.js +26 -0
- package/browser/Core/Utils/FrameManager.js +0 -42
- package/browser/Core/Utils/Plugins.js +0 -112
- package/browser/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
- package/browser/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
- package/browser/engine.js +0 -175
- package/cjs/Core/Utils/FrameManager.js +0 -46
- package/cjs/Core/Utils/Plugins.js +0 -116
- package/cjs/Enums/Modes/SizeMode.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IImageShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -2
- package/cjs/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -17
- package/cjs/Options/Interfaces/Particles/Shape/IStarShape.js +0 -2
- package/cjs/engine.js +0 -179
- package/esm/Core/Interfaces/IParticleOverride.js +0 -1
- package/esm/Core/Interfaces/IParticlesMover.js +0 -1
- package/esm/Core/Utils/FrameManager.js +0 -42
- package/esm/Core/Utils/Plugins.js +0 -112
- package/esm/Enums/Modes/SizeMode.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IImageShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -1
- package/esm/Options/Interfaces/Particles/Shape/IStarShape.js +0 -1
- package/esm/engine.js +0 -175
- package/types/Core/Interfaces/IParticleOverride.d.ts +0 -6
- package/types/Core/Interfaces/IParticlesMover.d.ts +0 -7
- package/types/Core/Utils/FrameManager.d.ts +0 -6
- package/types/Core/Utils/Plugins.d.ts +0 -51
- package/types/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +0 -8
- package/types/Options/Interfaces/Particles/Shape/IImageShape.d.ts +0 -8
- package/types/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +0 -5
- package/types/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +0 -1
- package/types/Options/Interfaces/Particles/Shape/IStarShape.d.ts +0 -6
- package/types/engine.d.ts +0 -39
- package/umd/Core/Utils/FrameManager.js +0 -56
- package/umd/Core/Utils/Plugins.js +0 -126
- package/umd/Enums/Modes/SizeMode.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +0 -27
- package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +0 -12
- package/umd/engine.js +0 -189
- /package/browser/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/browser/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
- /package/{browser/Enums/Modes/SizeMode.js → esm/Enums/Modes/PixelMode.js} +0 -0
- /package/{browser/Options/Interfaces/Particles/Shape/ICharacterShape.js → esm/Types/ExportResult.js} +0 -0
- /package/umd/{Core/Interfaces/IParticleOverride.js → Enums/Modes/PixelMode.js} +0 -0
- /package/umd/{Core/Interfaces/IParticlesMover.js → Types/ExportResult.js} +0 -0
|
@@ -14,22 +14,19 @@ export interface IOptions {
|
|
|
14
14
|
autoPlay: boolean;
|
|
15
15
|
background: IBackground;
|
|
16
16
|
backgroundMask: IBackgroundMask;
|
|
17
|
-
backgroundMode: RecursivePartial<IFullScreen> | boolean;
|
|
18
17
|
delay: RangeValue;
|
|
19
18
|
detectRetina: boolean;
|
|
20
19
|
duration: RangeValue;
|
|
21
20
|
fpsLimit: number;
|
|
22
|
-
fps_limit: number;
|
|
23
21
|
fullScreen: RecursivePartial<IFullScreen> | boolean;
|
|
24
22
|
interactivity: IInteractivity;
|
|
25
23
|
manualParticles: IManualParticle[];
|
|
26
|
-
name
|
|
24
|
+
name?: string;
|
|
27
25
|
particles: IParticlesOptions;
|
|
28
26
|
pauseOnBlur: boolean;
|
|
29
27
|
pauseOnOutsideViewport: boolean;
|
|
30
28
|
preset?: SingleOrMultiple<string>;
|
|
31
29
|
responsive: IResponsive[];
|
|
32
|
-
retina_detect: boolean;
|
|
33
30
|
smooth: boolean;
|
|
34
31
|
style: RecursivePartial<CSSStyleDeclaration>;
|
|
35
32
|
themes: ITheme[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IOptions } from "./IOptions";
|
|
2
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
2
3
|
import type { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode";
|
|
3
4
|
export interface IResponsive {
|
|
4
5
|
maxWidth: number;
|
|
5
|
-
mode: ResponsiveMode;
|
|
6
|
-
options:
|
|
6
|
+
mode: ResponsiveMode | keyof typeof ResponsiveMode;
|
|
7
|
+
options: RecursivePartial<IOptions>;
|
|
7
8
|
}
|
|
@@ -2,10 +2,7 @@ import type { DivMode } from "../../../../Enums/Modes/DivMode";
|
|
|
2
2
|
import type { DivType } from "../../../../Enums/Types/DivType";
|
|
3
3
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
|
|
4
4
|
export interface IDivEvent {
|
|
5
|
-
el: SingleOrMultiple<string>;
|
|
6
|
-
elementId: SingleOrMultiple<string>;
|
|
7
5
|
enable: boolean;
|
|
8
|
-
ids: SingleOrMultiple<string>;
|
|
9
6
|
mode: SingleOrMultiple<DivMode | keyof typeof DivMode | string>;
|
|
10
7
|
selectors: SingleOrMultiple<string>;
|
|
11
8
|
type: DivType | keyof typeof DivType;
|
|
@@ -3,7 +3,6 @@ import type { IModes } from "./Modes/IModes";
|
|
|
3
3
|
import type { InteractivityDetect } from "../../../Enums/InteractivityDetect";
|
|
4
4
|
export interface IInteractivity {
|
|
5
5
|
[name: string]: unknown;
|
|
6
|
-
detect_on: InteractivityDetect | keyof typeof InteractivityDetect;
|
|
7
6
|
detectsOn: InteractivityDetect | keyof typeof InteractivityDetect;
|
|
8
7
|
events: IEvents;
|
|
9
8
|
modes: IModes;
|
|
@@ -2,10 +2,12 @@ import type { CollisionMode } from "../../../../Enums/Modes/CollisionMode";
|
|
|
2
2
|
import type { ICollisionsAbsorb } from "./ICollisionsAbsorb";
|
|
3
3
|
import type { ICollisionsOverlap } from "./ICollisionsOverlap";
|
|
4
4
|
import type { IParticlesBounce } from "../Bounce/IParticlesBounce";
|
|
5
|
+
import type { RangeValue } from "../../../../Types/RangeValue";
|
|
5
6
|
export interface ICollisions {
|
|
6
7
|
absorb: ICollisionsAbsorb;
|
|
7
8
|
bounce: IParticlesBounce;
|
|
8
9
|
enable: boolean;
|
|
10
|
+
maxSpeed: RangeValue;
|
|
9
11
|
mode: CollisionMode | keyof typeof CollisionMode;
|
|
10
12
|
overlap: ICollisionsOverlap;
|
|
11
13
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { IAnimatableColor } from "../IAnimatableColor";
|
|
2
2
|
import type { IColor } from "../../../Core/Interfaces/Colors";
|
|
3
3
|
import type { RangeValue } from "../../../Types/RangeValue";
|
|
4
|
+
import type { RecursivePartial } from "../../../Types/RecursivePartial";
|
|
4
5
|
export interface IStroke {
|
|
5
|
-
color?: string | IAnimatableColor | IColor
|
|
6
|
+
color?: string | RecursivePartial<IAnimatableColor> | RecursivePartial<IColor>;
|
|
6
7
|
opacity?: RangeValue;
|
|
7
8
|
width: RangeValue;
|
|
8
9
|
}
|
|
@@ -13,19 +13,14 @@ import type { RangeValue } from "../../../../Types/RangeValue";
|
|
|
13
13
|
export interface IMove {
|
|
14
14
|
angle: number | IMoveAngle;
|
|
15
15
|
attract: IMoveAttract;
|
|
16
|
-
bounce: boolean;
|
|
17
16
|
center: IMoveCenter;
|
|
18
|
-
collisions: boolean;
|
|
19
17
|
decay: RangeValue;
|
|
20
18
|
direction: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt | number;
|
|
21
19
|
distance: number | Partial<IDistance>;
|
|
22
20
|
drift: RangeValue;
|
|
23
21
|
enable: boolean;
|
|
24
22
|
gravity: IMoveGravity;
|
|
25
|
-
noise: IMovePath;
|
|
26
|
-
outMode: OutMode | keyof typeof OutMode | OutModeAlt;
|
|
27
23
|
outModes: IOutModes | OutMode | keyof typeof OutMode | OutModeAlt;
|
|
28
|
-
out_mode: OutMode | keyof typeof OutMode | OutModeAlt;
|
|
29
24
|
path: IMovePath;
|
|
30
25
|
random: boolean;
|
|
31
26
|
size: boolean;
|
|
@@ -2,5 +2,4 @@ import type { DestroyType } from "../../../../Enums/Types/DestroyType";
|
|
|
2
2
|
import type { IRangedAnimation } from "../../IAnimation";
|
|
3
3
|
export interface IOpacityAnimation extends IRangedAnimation {
|
|
4
4
|
destroy: DestroyType | keyof typeof DestroyType;
|
|
5
|
-
opacity_min?: number;
|
|
6
5
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IOptions } from "../IOptions";
|
|
2
2
|
import type { IThemeDefault } from "./IThemeDefault";
|
|
3
|
+
import type { RecursivePartial } from "../../../Types/RecursivePartial";
|
|
3
4
|
export interface ITheme {
|
|
4
5
|
default: IThemeDefault;
|
|
5
6
|
name: string;
|
|
6
|
-
options?:
|
|
7
|
+
options?: RecursivePartial<IOptions>;
|
|
7
8
|
}
|
|
@@ -6,14 +6,11 @@ import type { IDelta } from "../Core/Interfaces/IDelta";
|
|
|
6
6
|
import type { IDimension } from "../Core/Interfaces/IDimension";
|
|
7
7
|
import type { IDrawParticleParams } from "../Core/Interfaces/IDrawParticleParams";
|
|
8
8
|
import type { IHsl } from "../Core/Interfaces/Colors";
|
|
9
|
-
import type { ITrailFillData } from "../Core/Interfaces/ITrailFillData";
|
|
10
|
-
import type { Options } from "../Options/Classes/Options";
|
|
11
9
|
import type { Particle } from "../Core/Particle";
|
|
12
|
-
export declare function getContext(canvas: HTMLCanvasElement): CanvasRenderingContext2D;
|
|
13
|
-
export declare function clearCanvas(context: CanvasRenderingContext2D, size: IDimension, options: Options, trailFill?: ITrailFillData, coverColorStyle?: string): void;
|
|
14
|
-
export declare function paintCanvas(context: CanvasRenderingContext2D, size: IDimension, options: Options, coverColorStyle?: string): void;
|
|
15
10
|
export declare function drawLine(context: CanvasRenderingContext2D, begin: ICoordinates, end: ICoordinates): void;
|
|
16
11
|
export declare function drawTriangle(context: CanvasRenderingContext2D, p1: ICoordinates, p2: ICoordinates, p3: ICoordinates): void;
|
|
12
|
+
export declare function paintBase(context: CanvasRenderingContext2D, dimension: IDimension, baseColor?: string): void;
|
|
13
|
+
export declare function paintImage(context: CanvasRenderingContext2D, dimension: IDimension, image: HTMLImageElement | undefined, opacity: number): void;
|
|
17
14
|
export declare function clear(context: CanvasRenderingContext2D, dimension: IDimension): void;
|
|
18
15
|
export declare function drawParticle(data: IDrawParticleParams): void;
|
|
19
16
|
export declare function drawShape(container: Container, context: CanvasRenderingContext2D, particle: Particle, radius: number, opacity: number, delta: IDelta): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Container } from "../Core/Container";
|
|
2
|
-
import type { Engine } from "../
|
|
2
|
+
import type { Engine } from "../Core/Engine";
|
|
3
3
|
import type { IOptionLoader } from "../Options/Interfaces/IOptionLoader";
|
|
4
4
|
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions";
|
|
5
5
|
import { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions";
|
package/types/Utils/Utils.d.ts
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
|
+
import type { ICoordinates, ICoordinatesWithMode } from "../Core/Interfaces/ICoordinates";
|
|
2
|
+
import type { IDimension, IDimensionWithMode } from "../Core/Interfaces/IDimension";
|
|
1
3
|
import type { DivEvent } from "../Options/Classes/Interactivity/Events/DivEvent";
|
|
2
4
|
import type { DivMode } from "../Enums/Modes/DivMode";
|
|
3
5
|
import type { IBounds } from "../Core/Interfaces/IBounds";
|
|
4
6
|
import type { ICircleBouncer } from "../Core/Interfaces/ICircleBouncer";
|
|
5
|
-
import type { ICoordinates } from "../Core/Interfaces/ICoordinates";
|
|
6
|
-
import type { IDimension } from "../Core/Interfaces/IDimension";
|
|
7
7
|
import type { IModeDiv } from "../Options/Interfaces/Interactivity/Modes/IModeDiv";
|
|
8
8
|
import type { IParticle } from "../Core/Interfaces/IParticle";
|
|
9
9
|
import type { IParticleNumericValueAnimation } from "../Core/Interfaces/IParticleValueAnimation";
|
|
10
10
|
import { OutModeDirection } from "../Enums/Directions/OutModeDirection";
|
|
11
11
|
import type { RangedAnimationValueWithRandom } from "../Options/Classes/ValueWithRandom";
|
|
12
12
|
import type { SingleOrMultiple } from "../Types/SingleOrMultiple";
|
|
13
|
+
interface ILogger {
|
|
14
|
+
debug(message?: unknown, ...optionalParams: unknown[]): void;
|
|
15
|
+
error(message?: unknown, ...optionalParams: unknown[]): void;
|
|
16
|
+
info(message?: unknown, ...optionalParams: unknown[]): void;
|
|
17
|
+
log(message?: unknown, ...optionalParams: unknown[]): void;
|
|
18
|
+
verbose(message?: unknown, ...optionalParams: unknown[]): void;
|
|
19
|
+
warning(message?: unknown, ...optionalParams: unknown[]): void;
|
|
20
|
+
}
|
|
21
|
+
export declare function setLogger(logger: ILogger): void;
|
|
22
|
+
export declare function getLogger(): ILogger;
|
|
13
23
|
export declare function isSsr(): boolean;
|
|
14
24
|
export declare function hasMatchMedia(): boolean;
|
|
15
25
|
export declare function safeMatchMedia(query: string): MediaQueryList | undefined;
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function cancelAnimation(): (handle: number) => void;
|
|
26
|
+
export declare function safeMutationObserver(callback: (records: MutationRecord[]) => void): MutationObserver | undefined;
|
|
18
27
|
export declare function isInArray<T>(value: T, array: SingleOrMultiple<T>): boolean;
|
|
19
28
|
export declare function loadFont(font?: string, weight?: string): Promise<void>;
|
|
20
29
|
export declare function arrayRandomIndex<T>(array: T[]): number;
|
|
@@ -34,3 +43,12 @@ export declare function executeOnSingleOrMultiple<T, U = void>(obj: SingleOrMult
|
|
|
34
43
|
export declare function itemFromSingleOrMultiple<T>(obj: SingleOrMultiple<T>, index?: number, useIndex?: boolean): T;
|
|
35
44
|
export declare function findItemFromSingleOrMultiple<T>(obj: SingleOrMultiple<T>, callback: (obj: T, index: number) => boolean): T | undefined;
|
|
36
45
|
export declare function initParticleNumericAnimationValue(options: RangedAnimationValueWithRandom, pxRatio: number): IParticleNumericValueAnimation;
|
|
46
|
+
export declare function getPosition(position: ICoordinatesWithMode, canvasSize: IDimension): ICoordinates;
|
|
47
|
+
export declare function getSize(size: IDimensionWithMode, canvasSize: IDimension): IDimension;
|
|
48
|
+
export declare function isBoolean(arg: unknown): arg is boolean;
|
|
49
|
+
export declare function isString(arg: unknown): arg is string;
|
|
50
|
+
export declare function isNumber(arg: unknown): arg is number;
|
|
51
|
+
export declare function isFunction(arg: unknown): arg is Function;
|
|
52
|
+
export declare function isObject<T extends object>(arg: unknown): arg is T;
|
|
53
|
+
export declare function isArray<T>(arg: unknown): arg is T[];
|
|
54
|
+
export {};
|
package/types/bundle.d.ts
CHANGED
|
@@ -1,92 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from "./Core/Utils/Circle";
|
|
4
|
-
export * from "./Core/Utils/Constants";
|
|
5
|
-
export * from "./Core/Utils/ExternalInteractorBase";
|
|
6
|
-
export * from "./Core/Utils/ParticlesInteractorBase";
|
|
7
|
-
export * from "./Core/Utils/Point";
|
|
8
|
-
export * from "./Core/Utils/Range";
|
|
9
|
-
export * from "./Core/Utils/Rectangle";
|
|
10
|
-
export * from "./Core/Utils/Vector";
|
|
11
|
-
export * from "./Core/Utils/Vector3d";
|
|
12
|
-
export * from "./Enums/Directions/MoveDirection";
|
|
13
|
-
export * from "./Enums/Directions/RotateDirection";
|
|
14
|
-
export * from "./Enums/Directions/OutModeDirection";
|
|
15
|
-
export * from "./Enums/Modes/AnimationMode";
|
|
16
|
-
export * from "./Enums/Modes/ClickMode";
|
|
17
|
-
export * from "./Enums/Modes/DivMode";
|
|
18
|
-
export * from "./Enums/Modes/HoverMode";
|
|
19
|
-
export * from "./Enums/Modes/CollisionMode";
|
|
20
|
-
export * from "./Enums/Modes/OutMode";
|
|
21
|
-
export * from "./Enums/Modes/SizeMode";
|
|
22
|
-
export * from "./Enums/Modes/ThemeMode";
|
|
23
|
-
export * from "./Enums/Modes/ResponsiveMode";
|
|
24
|
-
export * from "./Enums/Types/AlterType";
|
|
25
|
-
export * from "./Enums/Types/DestroyType";
|
|
26
|
-
export * from "./Enums/Types/GradientType";
|
|
27
|
-
export * from "./Enums/Types/InteractorType";
|
|
28
|
-
export * from "./Enums/Types/ParticleOutType";
|
|
29
|
-
export * from "./Enums/Types/StartValueType";
|
|
30
|
-
export * from "./Enums/Types/DivType";
|
|
31
|
-
export * from "./Enums/Types/EasingType";
|
|
32
|
-
export * from "./Enums/AnimationStatus";
|
|
33
|
-
export * from "./Enums/InteractivityDetect";
|
|
34
|
-
export * from "./Options/Classes/AnimatableColor";
|
|
35
|
-
export * from "./Options/Classes/AnimationOptions";
|
|
36
|
-
export * from "./Options/Classes/Background/Background";
|
|
37
|
-
export * from "./Options/Classes/BackgroundMask/BackgroundMask";
|
|
38
|
-
export * from "./Options/Classes/BackgroundMask/BackgroundMaskCover";
|
|
39
|
-
export * from "./Options/Classes/ColorAnimation";
|
|
40
|
-
export * from "./Options/Classes/FullScreen/FullScreen";
|
|
41
|
-
export * from "./Options/Classes/HslAnimation";
|
|
42
|
-
export * from "./Options/Classes/Interactivity/Events/ClickEvent";
|
|
43
|
-
export * from "./Options/Classes/Interactivity/Events/DivEvent";
|
|
44
|
-
export * from "./Options/Classes/Interactivity/Events/ClickEvent";
|
|
45
|
-
export * from "./Options/Classes/Interactivity/Events/DivEvent";
|
|
46
|
-
export * from "./Options/Classes/Interactivity/Events/Events";
|
|
47
|
-
export * from "./Options/Classes/Interactivity/Events/HoverEvent";
|
|
48
|
-
export * from "./Options/Classes/Interactivity/Events/Parallax";
|
|
49
|
-
export * from "./Options/Classes/Interactivity/Events/ResizeEvent";
|
|
50
|
-
export * from "./Options/Classes/Interactivity/Interactivity";
|
|
51
|
-
export * from "./Options/Classes/Interactivity/Modes/Modes";
|
|
52
|
-
export * from "./Options/Classes/ManualParticle";
|
|
53
|
-
export * from "./Options/Classes/Options";
|
|
54
|
-
export * from "./Options/Classes/OptionsColor";
|
|
55
|
-
export * from "./Options/Classes/Particles/Bounce/ParticlesBounce";
|
|
56
|
-
export * from "./Options/Classes/Particles/Bounce/ParticlesBounceFactor";
|
|
57
|
-
export * from "./Options/Classes/Particles/Collisions/Collisions";
|
|
58
|
-
export * from "./Options/Classes/Particles/Collisions/CollisionsAbsorb";
|
|
59
|
-
export * from "./Options/Classes/Particles/Collisions/CollisionsOverlap";
|
|
60
|
-
export * from "./Options/Classes/Particles/ParticlesOptions";
|
|
61
|
-
export * from "./Options/Classes/Particles/Shadow";
|
|
62
|
-
export * from "./Options/Classes/Particles/Stroke";
|
|
63
|
-
export * from "./Options/Classes/Particles/Move/MoveAttract";
|
|
64
|
-
export * from "./Options/Classes/Particles/Move/Move";
|
|
65
|
-
export * from "./Options/Classes/Particles/Move/MoveAngle";
|
|
66
|
-
export * from "./Options/Classes/Particles/Move/MoveCenter";
|
|
67
|
-
export * from "./Options/Classes/Particles/Move/MoveGravity";
|
|
68
|
-
export * from "./Options/Classes/Particles/Move/MoveTrail";
|
|
69
|
-
export * from "./Options/Classes/Particles/Move/MoveTrailFill";
|
|
70
|
-
export * from "./Options/Classes/Particles/Move/OutModes";
|
|
71
|
-
export * from "./Options/Classes/Particles/Move/Path/MovePath";
|
|
72
|
-
export * from "./Options/Classes/Particles/Move/Spin";
|
|
73
|
-
export * from "./Options/Classes/Particles/Number/ParticlesNumber";
|
|
74
|
-
export * from "./Options/Classes/Particles/Number/ParticlesDensity";
|
|
75
|
-
export * from "./Options/Classes/Particles/Opacity/Opacity";
|
|
76
|
-
export * from "./Options/Classes/Particles/Opacity/OpacityAnimation";
|
|
77
|
-
export * from "./Options/Classes/Particles/Shape/Shape";
|
|
78
|
-
export * from "./Options/Classes/Particles/Size/Size";
|
|
79
|
-
export * from "./Options/Classes/Particles/Size/SizeAnimation";
|
|
80
|
-
export * from "./Options/Classes/Particles/ZIndex/ZIndex";
|
|
81
|
-
export * from "./Options/Classes/Responsive";
|
|
82
|
-
export * from "./Options/Classes/Theme/Theme";
|
|
83
|
-
export * from "./Options/Classes/Theme/ThemeDefault";
|
|
84
|
-
export * from "./Options/Classes/ValueWithRandom";
|
|
85
|
-
export * from "./Utils/CanvasUtils";
|
|
86
|
-
export * from "./Utils/ColorUtils";
|
|
87
|
-
export * from "./Utils/HslColorManager";
|
|
88
|
-
export * from "./Utils/NumberUtils";
|
|
89
|
-
export * from "./Utils/OptionsUtils";
|
|
90
|
-
export * from "./Utils/RgbColorManager";
|
|
91
|
-
export * from "./Utils/Utils";
|
|
1
|
+
declare const tsParticles: import("./export-types").Engine;
|
|
2
|
+
export * from "./exports";
|
|
92
3
|
export { tsParticles };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { Engine } from "./Core/Engine";
|
|
2
|
+
export * from "./Core/Interfaces/Colors";
|
|
3
|
+
export * from "./Core/Interfaces/IBounds";
|
|
4
|
+
export * from "./Core/Interfaces/IBubbleParticleData";
|
|
5
|
+
export * from "./Core/Interfaces/ICircleBouncer";
|
|
6
|
+
export * from "./Core/Interfaces/IColorManager";
|
|
7
|
+
export * from "./Core/Interfaces/IContainerInteractivity";
|
|
8
|
+
export * from "./Core/Interfaces/IContainerPlugin";
|
|
9
|
+
export * from "./Core/Interfaces/ICoordinates";
|
|
10
|
+
export * from "./Core/Interfaces/IDelta";
|
|
11
|
+
export * from "./Core/Interfaces/IDimension";
|
|
12
|
+
export * from "./Core/Interfaces/IDistance";
|
|
13
|
+
export * from "./Core/Interfaces/IDrawParticleParams";
|
|
14
|
+
export * from "./Core/Interfaces/IExternalInteractor";
|
|
15
|
+
export * from "./Core/Interfaces/IInteractor";
|
|
16
|
+
export * from "./Core/Interfaces/ILoadParams";
|
|
17
|
+
export * from "./Core/Interfaces/IMouseData";
|
|
18
|
+
export * from "./Core/Interfaces/IMovePathGenerator";
|
|
19
|
+
export * from "./Core/Interfaces/IParticle";
|
|
20
|
+
export * from "./Core/Interfaces/IParticleColorStyle";
|
|
21
|
+
export * from "./Core/Interfaces/IParticleHslAnimation";
|
|
22
|
+
export * from "./Core/Interfaces/IParticleLife";
|
|
23
|
+
export * from "./Core/Interfaces/IParticleMover";
|
|
24
|
+
export * from "./Core/Interfaces/IParticleRetinaProps";
|
|
25
|
+
export * from "./Core/Interfaces/IParticleRoll";
|
|
26
|
+
export * from "./Core/Interfaces/IParticleTransformValues";
|
|
27
|
+
export * from "./Core/Interfaces/IParticleUpdater";
|
|
28
|
+
export * from "./Core/Interfaces/IParticleValueAnimation";
|
|
29
|
+
export * from "./Core/Interfaces/IParticlesInteractor";
|
|
30
|
+
export * from "./Core/Interfaces/IPlugin";
|
|
31
|
+
export * from "./Core/Interfaces/IPositionFromSizeParams";
|
|
32
|
+
export * from "./Core/Interfaces/IRangeValue";
|
|
33
|
+
export * from "./Core/Interfaces/IRectSideResult";
|
|
34
|
+
export * from "./Core/Interfaces/IShapeDrawer";
|
|
35
|
+
export * from "./Core/Interfaces/IShapeValues";
|
|
36
|
+
export * from "./Core/Interfaces/ISlowParticleData";
|
|
37
|
+
export * from "./Core/Interfaces/ITrailFillData";
|
|
38
|
+
export * from "./Options/Interfaces/Background/IBackground";
|
|
39
|
+
export * from "./Options/Interfaces/BackgroundMask/IBackgroundMask";
|
|
40
|
+
export * from "./Options/Interfaces/BackgroundMask/IBackgroundMaskCover";
|
|
41
|
+
export * from "./Options/Interfaces/FullScreen/IFullScreen";
|
|
42
|
+
export * from "./Options/Interfaces/IAnimatable";
|
|
43
|
+
export * from "./Options/Interfaces/IAnimatableColor";
|
|
44
|
+
export * from "./Options/Interfaces/IAnimation";
|
|
45
|
+
export * from "./Options/Interfaces/IColorAnimation";
|
|
46
|
+
export * from "./Options/Interfaces/IHslAnimation";
|
|
47
|
+
export * from "./Options/Interfaces/IManualParticle";
|
|
48
|
+
export * from "./Options/Interfaces/IOptionLoader";
|
|
49
|
+
export * from "./Options/Interfaces/IOptions";
|
|
50
|
+
export * from "./Options/Interfaces/IOptionsColor";
|
|
51
|
+
export * from "./Options/Interfaces/IResponsive";
|
|
52
|
+
export * from "./Options/Interfaces/IValueWithRandom";
|
|
53
|
+
export * from "./Options/Interfaces/Interactivity/Events/IClickEvent";
|
|
54
|
+
export * from "./Options/Interfaces/Interactivity/Events/IDivEvent";
|
|
55
|
+
export * from "./Options/Interfaces/Interactivity/Events/IEvents";
|
|
56
|
+
export * from "./Options/Interfaces/Interactivity/Events/IHoverEvent";
|
|
57
|
+
export * from "./Options/Interfaces/Interactivity/Events/IParallax";
|
|
58
|
+
export * from "./Options/Interfaces/Interactivity/Events/IResizeEvent";
|
|
59
|
+
export * from "./Options/Interfaces/Interactivity/Modes/IModeDiv";
|
|
60
|
+
export * from "./Options/Interfaces/Interactivity/Modes/IModes";
|
|
61
|
+
export * from "./Options/Interfaces/Interactivity/IInteractivity";
|
|
62
|
+
export * from "./Options/Interfaces/Particles/Bounce/IParticlesBounce";
|
|
63
|
+
export * from "./Options/Interfaces/Particles/Collisions/ICollisions";
|
|
64
|
+
export * from "./Options/Interfaces/Particles/Collisions/ICollisionsAbsorb";
|
|
65
|
+
export * from "./Options/Interfaces/Particles/Collisions/ICollisionsOverlap";
|
|
66
|
+
export * from "./Options/Interfaces/Particles/IParticlesOptions";
|
|
67
|
+
export * from "./Options/Interfaces/Particles/IShadow";
|
|
68
|
+
export * from "./Options/Interfaces/Particles/IStroke";
|
|
69
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveAttract";
|
|
70
|
+
export * from "./Options/Interfaces/Particles/Move/IMove";
|
|
71
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveAngle";
|
|
72
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveCenter";
|
|
73
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveGravity";
|
|
74
|
+
export * from "./Options/Interfaces/Particles/Move/Path/IMovePath";
|
|
75
|
+
export * from "./Options/Interfaces/Particles/Move/IOutModes";
|
|
76
|
+
export * from "./Options/Interfaces/Particles/Move/ISpin";
|
|
77
|
+
export * from "./Options/Interfaces/Particles/Move/IMoveTrail";
|
|
78
|
+
export * from "./Options/Interfaces/Particles/Number/IParticlesDensity";
|
|
79
|
+
export * from "./Options/Interfaces/Particles/Number/IParticlesNumber";
|
|
80
|
+
export * from "./Options/Interfaces/Particles/Opacity/IOpacity";
|
|
81
|
+
export * from "./Options/Interfaces/Particles/Opacity/IOpacityAnimation";
|
|
82
|
+
export * from "./Options/Interfaces/Particles/Shape/IShape";
|
|
83
|
+
export * from "./Options/Interfaces/Particles/Size/ISize";
|
|
84
|
+
export * from "./Options/Interfaces/Particles/Size/ISizeAnimation";
|
|
85
|
+
export * from "./Options/Interfaces/Particles/ZIndex/IZIndex";
|
|
86
|
+
export * from "./Options/Interfaces/Theme/ITheme";
|
|
87
|
+
export * from "./Options/Interfaces/Theme/IThemeDefault";
|
|
88
|
+
export * from "./Types/CustomEventArgs";
|
|
89
|
+
export * from "./Types/CustomEventListener";
|
|
90
|
+
export * from "./Types/ExportResult";
|
|
91
|
+
export * from "./Types/ISourceOptions";
|
|
92
|
+
export * from "./Types/ParticlesGroups";
|
|
93
|
+
export * from "./Types/PathOptions";
|
|
94
|
+
export * from "./Types/RangeValue";
|
|
95
|
+
export * from "./Types/RecursivePartial";
|
|
96
|
+
export * from "./Types/ShapeData";
|
|
97
|
+
export * from "./Types/ShapeDrawerFunctions";
|
|
98
|
+
export * from "./Types/SingleOrMultiple";
|
|
99
|
+
export type { EventListeners } from "./Core/Utils/EventListeners";
|
|
100
|
+
export type { InteractionManager } from "./Core/Utils/InteractionManager";
|
|
101
|
+
export type { QuadTree } from "./Core/Utils/QuadTree";
|
|
102
|
+
export type { Canvas } from "./Core/Canvas";
|
|
103
|
+
export type { Container } from "./Core/Container";
|
|
104
|
+
export type { Particle } from "./Core/Particle";
|
|
105
|
+
export type { Particles } from "./Core/Particles";
|
|
106
|
+
export type { Retina } from "./Core/Retina";
|
|
107
|
+
export type { Engine, Engine as Main };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export * from "./Core/Utils/Circle";
|
|
2
|
+
export * from "./Core/Utils/Constants";
|
|
3
|
+
export * from "./Core/Utils/ExternalInteractorBase";
|
|
4
|
+
export * from "./Core/Utils/ParticlesInteractorBase";
|
|
5
|
+
export * from "./Core/Utils/Point";
|
|
6
|
+
export * from "./Core/Utils/Range";
|
|
7
|
+
export * from "./Core/Utils/Rectangle";
|
|
8
|
+
export * from "./Core/Utils/Vector";
|
|
9
|
+
export * from "./Core/Utils/Vector3d";
|
|
10
|
+
export * from "./Enums/Directions/MoveDirection";
|
|
11
|
+
export * from "./Enums/Directions/RotateDirection";
|
|
12
|
+
export * from "./Enums/Directions/OutModeDirection";
|
|
13
|
+
export * from "./Enums/Modes/AnimationMode";
|
|
14
|
+
export * from "./Enums/Modes/ClickMode";
|
|
15
|
+
export * from "./Enums/Modes/DivMode";
|
|
16
|
+
export * from "./Enums/Modes/HoverMode";
|
|
17
|
+
export * from "./Enums/Modes/CollisionMode";
|
|
18
|
+
export * from "./Enums/Modes/OutMode";
|
|
19
|
+
export * from "./Enums/Modes/PixelMode";
|
|
20
|
+
export * from "./Enums/Modes/ThemeMode";
|
|
21
|
+
export * from "./Enums/Modes/ResponsiveMode";
|
|
22
|
+
export * from "./Enums/Types/AlterType";
|
|
23
|
+
export * from "./Enums/Types/DestroyType";
|
|
24
|
+
export * from "./Enums/Types/GradientType";
|
|
25
|
+
export * from "./Enums/Types/InteractorType";
|
|
26
|
+
export * from "./Enums/Types/ParticleOutType";
|
|
27
|
+
export * from "./Enums/Types/StartValueType";
|
|
28
|
+
export * from "./Enums/Types/DivType";
|
|
29
|
+
export * from "./Enums/Types/EasingType";
|
|
30
|
+
export * from "./Enums/Types/EventType";
|
|
31
|
+
export * from "./Enums/AnimationStatus";
|
|
32
|
+
export * from "./Enums/InteractivityDetect";
|
|
33
|
+
export * from "./Options/Classes/AnimatableColor";
|
|
34
|
+
export * from "./Options/Classes/AnimationOptions";
|
|
35
|
+
export * from "./Options/Classes/Background/Background";
|
|
36
|
+
export * from "./Options/Classes/BackgroundMask/BackgroundMask";
|
|
37
|
+
export * from "./Options/Classes/BackgroundMask/BackgroundMaskCover";
|
|
38
|
+
export * from "./Options/Classes/ColorAnimation";
|
|
39
|
+
export * from "./Options/Classes/FullScreen/FullScreen";
|
|
40
|
+
export * from "./Options/Classes/HslAnimation";
|
|
41
|
+
export * from "./Options/Classes/Interactivity/Events/ClickEvent";
|
|
42
|
+
export * from "./Options/Classes/Interactivity/Events/DivEvent";
|
|
43
|
+
export * from "./Options/Classes/Interactivity/Events/ClickEvent";
|
|
44
|
+
export * from "./Options/Classes/Interactivity/Events/DivEvent";
|
|
45
|
+
export * from "./Options/Classes/Interactivity/Events/Events";
|
|
46
|
+
export * from "./Options/Classes/Interactivity/Events/HoverEvent";
|
|
47
|
+
export * from "./Options/Classes/Interactivity/Events/Parallax";
|
|
48
|
+
export * from "./Options/Classes/Interactivity/Events/ResizeEvent";
|
|
49
|
+
export * from "./Options/Classes/Interactivity/Interactivity";
|
|
50
|
+
export * from "./Options/Classes/Interactivity/Modes/Modes";
|
|
51
|
+
export * from "./Options/Classes/ManualParticle";
|
|
52
|
+
export * from "./Options/Classes/Options";
|
|
53
|
+
export * from "./Options/Classes/OptionsColor";
|
|
54
|
+
export * from "./Options/Classes/Particles/Bounce/ParticlesBounce";
|
|
55
|
+
export * from "./Options/Classes/Particles/Bounce/ParticlesBounceFactor";
|
|
56
|
+
export * from "./Options/Classes/Particles/Collisions/Collisions";
|
|
57
|
+
export * from "./Options/Classes/Particles/Collisions/CollisionsAbsorb";
|
|
58
|
+
export * from "./Options/Classes/Particles/Collisions/CollisionsOverlap";
|
|
59
|
+
export * from "./Options/Classes/Particles/ParticlesOptions";
|
|
60
|
+
export * from "./Options/Classes/Particles/Shadow";
|
|
61
|
+
export * from "./Options/Classes/Particles/Stroke";
|
|
62
|
+
export * from "./Options/Classes/Particles/Move/MoveAttract";
|
|
63
|
+
export * from "./Options/Classes/Particles/Move/Move";
|
|
64
|
+
export * from "./Options/Classes/Particles/Move/MoveAngle";
|
|
65
|
+
export * from "./Options/Classes/Particles/Move/MoveCenter";
|
|
66
|
+
export * from "./Options/Classes/Particles/Move/MoveGravity";
|
|
67
|
+
export * from "./Options/Classes/Particles/Move/OutModes";
|
|
68
|
+
export * from "./Options/Classes/Particles/Move/Path/MovePath";
|
|
69
|
+
export * from "./Options/Classes/Particles/Move/Spin";
|
|
70
|
+
export * from "./Options/Classes/Particles/Move/MoveTrail";
|
|
71
|
+
export * from "./Options/Classes/Particles/Number/ParticlesNumber";
|
|
72
|
+
export * from "./Options/Classes/Particles/Number/ParticlesDensity";
|
|
73
|
+
export * from "./Options/Classes/Particles/Opacity/Opacity";
|
|
74
|
+
export * from "./Options/Classes/Particles/Opacity/OpacityAnimation";
|
|
75
|
+
export * from "./Options/Classes/Particles/Shape/Shape";
|
|
76
|
+
export * from "./Options/Classes/Particles/Size/Size";
|
|
77
|
+
export * from "./Options/Classes/Particles/Size/SizeAnimation";
|
|
78
|
+
export * from "./Options/Classes/Particles/ZIndex/ZIndex";
|
|
79
|
+
export * from "./Options/Classes/Responsive";
|
|
80
|
+
export * from "./Options/Classes/Theme/Theme";
|
|
81
|
+
export * from "./Options/Classes/Theme/ThemeDefault";
|
|
82
|
+
export * from "./Options/Classes/ValueWithRandom";
|
|
83
|
+
export * from "./Utils/CanvasUtils";
|
|
84
|
+
export * from "./Utils/ColorUtils";
|
|
85
|
+
export * from "./Utils/HslColorManager";
|
|
86
|
+
export * from "./Utils/NumberUtils";
|
|
87
|
+
export * from "./Utils/OptionsUtils";
|
|
88
|
+
export * from "./Utils/RgbColorManager";
|
|
89
|
+
export * from "./Utils/Utils";
|