@tsparticles/engine 3.0.0-alpha.0 → 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 +246 -211
- 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 -162
- package/browser/Core/Particles.js +148 -134
- 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 +259 -220
- 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 +7 -2
- 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 -5
- 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 -2
- 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 +150 -59
- package/browser/bundle.js +4 -96
- package/browser/export-types.js +97 -0
- package/browser/exports.js +89 -0
- package/browser/index.js +8 -198
- 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 -161
- package/cjs/Core/Particles.js +148 -134
- 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 +258 -219
- 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 +7 -2
- 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 -5
- 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 -2
- 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 +163 -63
- package/cjs/bundle.js +4 -96
- package/cjs/export-types.js +113 -0
- package/cjs/exports.js +105 -0
- package/cjs/index.js +8 -198
- 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 -162
- package/esm/Core/Particles.js +148 -134
- 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 +259 -220
- 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 +7 -2
- 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 -5
- 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 -2
- 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 +150 -59
- package/esm/bundle.js +4 -96
- package/esm/export-types.js +97 -0
- package/esm/exports.js +89 -0
- package/esm/index.js +8 -198
- 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 +1848 -1961
- 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 +5 -3
- package/types/Core/Interfaces/IDimension.d.ts +4 -0
- 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 -10
- package/types/Core/Utils/Constants.d.ts +4 -3
- package/types/Core/Utils/EventListeners.d.ts +20 -14
- 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/AnimationMode.d.ts +6 -0
- package/types/Enums/Modes/{SizeMode.d.ts → PixelMode.d.ts} +1 -1
- package/types/Options/Classes/AnimationOptions.d.ts +3 -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/ManualParticle.d.ts +2 -2
- 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/Move/Spin.d.ts +2 -2
- 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/Shape/Shape.d.ts +2 -0
- 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 +3 -1
- package/types/Options/Interfaces/IManualParticle.d.ts +2 -2
- 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/Move/ISpin.d.ts +2 -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/Shape/IShape.d.ts +2 -0
- 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 -90
- package/types/export-types.d.ts +107 -0
- package/types/exports.d.ts +89 -0
- package/types/index.d.ts +3 -203
- 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 -162
- package/umd/Core/Particles.js +149 -135
- 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 +258 -219
- 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 +7 -2
- 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 -5
- 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 -2
- 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 +163 -63
- package/umd/bundle.js +5 -97
- package/umd/export-types.js +123 -0
- package/umd/exports.js +115 -0
- package/umd/index.js +9 -199
- 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/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/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/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/AnimationMode.js} +0 -0
- /package/browser/{Core/Interfaces/IParticlesMover.js → Enums/Modes/PixelMode.js} +0 -0
- /package/browser/{Enums/Modes/SizeMode.js → Types/ExportResult.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticleOverride.js → Enums/Modes/AnimationMode.js} +0 -0
- /package/cjs/{Core/Interfaces/IParticlesMover.js → Enums/Modes/PixelMode.js} +0 -0
- /package/cjs/{Enums/Modes/SizeMode.js → Types/ExportResult.js} +0 -0
- /package/{browser/Options/Interfaces/Particles/Shape/ICharacterShape.js → esm/Enums/Modes/AnimationMode.js} +0 -0
- /package/{browser/Options/Interfaces/Particles/Shape/IImageShape.js → esm/Enums/Modes/PixelMode.js} +0 -0
- /package/{browser/Options/Interfaces/Particles/Shape/IPolygonShape.js → esm/Types/ExportResult.js} +0 -0
- /package/umd/{Core/Interfaces/IParticleOverride.js → Enums/Modes/AnimationMode.js} +0 -0
- /package/umd/{Core/Interfaces/IParticlesMover.js → Enums/Modes/PixelMode.js} +0 -0
- /package/umd/{Enums/Modes/SizeMode.js → Types/ExportResult.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PixelMode } from "../../Enums/Modes/PixelMode";
|
|
1
2
|
import type { RangeValue } from "../../Types/RangeValue";
|
|
2
|
-
import type { SizeMode } from "../../Enums/Modes/SizeMode";
|
|
3
3
|
export interface ICoordinates {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
@@ -14,7 +14,9 @@ export interface IRangedCoordinates {
|
|
|
14
14
|
export interface IRangedCoordinates3d extends IRangedCoordinates {
|
|
15
15
|
z: RangeValue;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
18
|
-
mode:
|
|
17
|
+
export interface ICoordinatesWithMode extends ICoordinates {
|
|
18
|
+
mode: PixelMode | keyof typeof PixelMode;
|
|
19
|
+
}
|
|
20
|
+
export interface ICenterCoordinates extends ICoordinatesWithMode {
|
|
19
21
|
radius: number;
|
|
20
22
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Container } from "../Container";
|
|
2
|
+
import type { IDelta } from "./IDelta";
|
|
2
3
|
import type { Particle } from "../Particle";
|
|
3
4
|
import type { Vector } from "../Utils/Vector";
|
|
4
5
|
export interface IMovePathGenerator {
|
|
5
|
-
generate: (particle: Particle) => Vector;
|
|
6
|
+
generate: (particle: Particle, delta: IDelta) => Vector;
|
|
6
7
|
init: (container: Container) => void;
|
|
7
8
|
reset: (particle: Particle) => void;
|
|
8
9
|
update: () => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IDelta } from "./IDelta";
|
|
2
2
|
import type { IParticleColorStyle } from "./IParticleColorStyle";
|
|
3
|
-
import type { IParticleOverride } from "./IParticleOverride";
|
|
4
3
|
import type { IParticleTransformValues } from "./IParticleTransformValues";
|
|
5
4
|
import type { IParticlesOptions } from "../../Options/Interfaces/Particles/IParticlesOptions";
|
|
6
5
|
import type { Particle } from "../Particle";
|
|
@@ -10,7 +9,6 @@ export interface IParticleUpdater {
|
|
|
10
9
|
afterDraw?: (particle: Particle) => void;
|
|
11
10
|
beforeDraw?: (particle: Particle) => void;
|
|
12
11
|
getColorStyles?: (particle: Particle, context: CanvasRenderingContext2D, radius: number, opacity: number) => IParticleColorStyle;
|
|
13
|
-
getOverrides?: (particle: Particle, context: CanvasRenderingContext2D, radius: number, opacity: number) => IParticleOverride;
|
|
14
12
|
getTransformValues?: (particle: Particle) => IParticleTransformValues;
|
|
15
13
|
loadOptions?: (options: ParticlesOptions, ...sources: (RecursivePartial<IParticlesOptions> | undefined)[]) => void;
|
|
16
14
|
particleDestroyed?: (particle: Particle, override?: boolean) => void;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { AnimationStatus } from "../../Enums/AnimationStatus";
|
|
2
2
|
export interface IParticleValueAnimation<T> {
|
|
3
3
|
decay?: number;
|
|
4
|
+
delayTime?: number;
|
|
4
5
|
enable: boolean;
|
|
5
6
|
initialValue?: number;
|
|
6
7
|
loops?: number;
|
|
7
8
|
maxLoops?: number;
|
|
8
9
|
status?: AnimationStatus;
|
|
10
|
+
time?: number;
|
|
9
11
|
value: T;
|
|
10
12
|
velocity?: number;
|
|
11
13
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Container } from "../Container";
|
|
2
2
|
import type { IContainerPlugin } from "./IContainerPlugin";
|
|
3
|
-
import type {
|
|
3
|
+
import type { IOptions } from "../../Options/Interfaces/IOptions";
|
|
4
4
|
import type { Options } from "../../Options/Classes/Options";
|
|
5
|
+
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
5
6
|
export interface IPlugin {
|
|
6
7
|
readonly id: string;
|
|
7
8
|
getPlugin(container: Container): IContainerPlugin;
|
|
8
|
-
loadOptions(options: Options, source?:
|
|
9
|
-
needsPlugin(options?:
|
|
9
|
+
loadOptions(options: Options, source?: RecursivePartial<IOptions>): void;
|
|
10
|
+
needsPlugin(options?: RecursivePartial<IOptions>): boolean;
|
|
10
11
|
}
|
package/types/Core/Particle.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ICenterCoordinates, ICoordinates, ICoordinates3d } from "./Interfaces/ICoordinates";
|
|
2
2
|
import type { IHsl, IRgb } from "./Interfaces/Colors";
|
|
3
3
|
import type { Container } from "./Container";
|
|
4
|
-
import type { Engine } from "
|
|
4
|
+
import type { Engine } from "./Engine";
|
|
5
5
|
import type { IBubbleParticleData } from "./Interfaces/IBubbleParticleData";
|
|
6
6
|
import type { IDelta } from "./Interfaces/IDelta";
|
|
7
7
|
import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator";
|
|
@@ -76,10 +76,10 @@ export declare class Particle implements IParticle {
|
|
|
76
76
|
isInsideCanvas(): boolean;
|
|
77
77
|
isVisible(): boolean;
|
|
78
78
|
reset(): void;
|
|
79
|
-
private _calcPosition;
|
|
80
|
-
private _calculateVelocity;
|
|
81
|
-
private _checkOverlap;
|
|
82
|
-
private _getRollColor;
|
|
83
|
-
private _initPosition;
|
|
84
|
-
private _loadShapeData;
|
|
79
|
+
private readonly _calcPosition;
|
|
80
|
+
private readonly _calculateVelocity;
|
|
81
|
+
private readonly _checkOverlap;
|
|
82
|
+
private readonly _getRollColor;
|
|
83
|
+
private readonly _initPosition;
|
|
84
|
+
private readonly _loadShapeData;
|
|
85
85
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClickMode } from "../Enums/Modes/ClickMode";
|
|
2
2
|
import type { Container } from "./Container";
|
|
3
|
-
import type { Engine } from "
|
|
3
|
+
import type { Engine } from "./Engine";
|
|
4
4
|
import type { ICoordinates } from "./Interfaces/ICoordinates";
|
|
5
5
|
import type { IDelta } from "./Interfaces/IDelta";
|
|
6
6
|
import type { IMouseData } from "./Interfaces/IMouseData";
|
|
@@ -9,20 +9,20 @@ import { Particle } from "./Particle";
|
|
|
9
9
|
import { QuadTree } from "./Utils/QuadTree";
|
|
10
10
|
import type { RecursivePartial } from "../Types/RecursivePartial";
|
|
11
11
|
export declare class Particles {
|
|
12
|
-
private readonly container;
|
|
13
|
-
array: Particle[];
|
|
14
12
|
lastZIndex: number;
|
|
15
13
|
limit: number;
|
|
16
|
-
movers: import("
|
|
14
|
+
movers: import("..").IParticleMover[];
|
|
17
15
|
needsSort: boolean;
|
|
18
16
|
pool: Particle[];
|
|
19
17
|
pushing?: boolean;
|
|
20
18
|
quadTree: QuadTree;
|
|
21
19
|
updaters: import("..").IParticleUpdater[];
|
|
22
|
-
|
|
20
|
+
private _array;
|
|
21
|
+
private readonly _container;
|
|
23
22
|
private readonly _engine;
|
|
24
|
-
private readonly
|
|
25
|
-
private
|
|
23
|
+
private readonly _interactionManager;
|
|
24
|
+
private _nextId;
|
|
25
|
+
private _zArray;
|
|
26
26
|
constructor(engine: Engine, container: Container);
|
|
27
27
|
get count(): number;
|
|
28
28
|
addManualParticles(): void;
|
|
@@ -30,6 +30,9 @@ export declare class Particles {
|
|
|
30
30
|
clear(): void;
|
|
31
31
|
destroy(): void;
|
|
32
32
|
draw(delta: IDelta): Promise<void>;
|
|
33
|
+
filter(condition: (particle: Particle) => boolean): Particle[];
|
|
34
|
+
find(condition: (particle: Particle) => boolean): Particle | undefined;
|
|
35
|
+
get(index: number): Particle | undefined;
|
|
33
36
|
handleClickMode(mode: ClickMode | string): void;
|
|
34
37
|
init(): void;
|
|
35
38
|
push(nb: number, mouse?: IMouseData, overrideOptions?: RecursivePartial<IParticlesOptions>, group?: string): void;
|
|
@@ -39,7 +42,8 @@ export declare class Particles {
|
|
|
39
42
|
removeQuantity(quantity: number, group?: string): void;
|
|
40
43
|
setDensity(): void;
|
|
41
44
|
update(delta: IDelta): Promise<void>;
|
|
42
|
-
private _applyDensity;
|
|
43
|
-
private _initDensityFactor;
|
|
44
|
-
private _pushParticle;
|
|
45
|
+
private readonly _applyDensity;
|
|
46
|
+
private readonly _initDensityFactor;
|
|
47
|
+
private readonly _pushParticle;
|
|
48
|
+
private readonly _removeParticle;
|
|
45
49
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export declare const generatedAttribute = "generated";
|
|
2
|
-
export declare const touchEndEvent = "touchend";
|
|
3
2
|
export declare const mouseDownEvent = "pointerdown";
|
|
4
3
|
export declare const mouseUpEvent = "pointerup";
|
|
4
|
+
export declare const mouseLeaveEvent = "pointerleave";
|
|
5
|
+
export declare const mouseOutEvent = "pointerout";
|
|
5
6
|
export declare const mouseMoveEvent = "pointermove";
|
|
6
7
|
export declare const touchStartEvent = "touchstart";
|
|
8
|
+
export declare const touchEndEvent = "touchend";
|
|
7
9
|
export declare const touchMoveEvent = "touchmove";
|
|
8
|
-
export declare const mouseLeaveEvent = "pointerleave";
|
|
9
|
-
export declare const mouseOutEvent = "pointerout";
|
|
10
10
|
export declare const touchCancelEvent = "touchcancel";
|
|
11
11
|
export declare const resizeEvent = "resize";
|
|
12
12
|
export declare const visibilityChangeEvent = "visibilitychange";
|
|
13
|
+
export declare const errorPrefix = "tsParticles - Error";
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import type { Container } from "../Container";
|
|
2
2
|
export declare class EventListeners {
|
|
3
3
|
private readonly container;
|
|
4
|
-
private
|
|
5
|
-
private readonly
|
|
6
|
-
private
|
|
7
|
-
private
|
|
4
|
+
private _canPush;
|
|
5
|
+
private readonly _handlers;
|
|
6
|
+
private _resizeObserver?;
|
|
7
|
+
private _resizeTimeout?;
|
|
8
|
+
private readonly _touches;
|
|
8
9
|
constructor(container: Container);
|
|
9
10
|
addListeners(): void;
|
|
10
11
|
removeListeners(): void;
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
12
|
+
private readonly _doMouseTouchClick;
|
|
13
|
+
private readonly _handleThemeChange;
|
|
14
|
+
private readonly _handleVisibilityChange;
|
|
15
|
+
private readonly _handleWindowResize;
|
|
16
|
+
private readonly _manageInteractivityListeners;
|
|
17
|
+
private readonly _manageListeners;
|
|
18
|
+
private readonly _manageMediaMatch;
|
|
19
|
+
private readonly _manageResize;
|
|
20
|
+
private readonly _mouseDown;
|
|
21
|
+
private readonly _mouseTouchClick;
|
|
22
|
+
private readonly _mouseTouchFinish;
|
|
23
|
+
private readonly _mouseTouchMove;
|
|
24
|
+
private readonly _touchEnd;
|
|
25
|
+
private readonly _touchEndClick;
|
|
26
|
+
private readonly _touchStart;
|
|
21
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClickMode } from "../../Enums/Modes/ClickMode";
|
|
2
2
|
import type { Container } from "../Container";
|
|
3
|
-
import type { Engine } from "
|
|
3
|
+
import type { Engine } from "../Engine";
|
|
4
4
|
import type { IDelta } from "../Interfaces/IDelta";
|
|
5
5
|
import type { Particle } from "../Particle";
|
|
6
6
|
export declare class InteractionManager {
|
|
@@ -7,16 +7,13 @@ import { Rectangle } from "./Rectangle";
|
|
|
7
7
|
export declare class QuadTree {
|
|
8
8
|
readonly rectangle: Rectangle;
|
|
9
9
|
readonly capacity: number;
|
|
10
|
-
private _NE?;
|
|
11
|
-
private _NW?;
|
|
12
|
-
private _SE?;
|
|
13
|
-
private _SW?;
|
|
14
10
|
private _divided;
|
|
15
11
|
private readonly _points;
|
|
12
|
+
private readonly _subs;
|
|
16
13
|
constructor(rectangle: Rectangle, capacity: number);
|
|
17
14
|
insert(point: Point): boolean;
|
|
18
15
|
query(range: Range, check?: (particle: Particle) => boolean, found?: Particle[]): Particle[];
|
|
19
16
|
queryCircle(position: ICoordinates, radius: number, check?: (particle: Particle) => boolean): Particle[];
|
|
20
17
|
queryRectangle(position: ICoordinates, size: IDimension, check?: (particle: Particle) => boolean): Particle[];
|
|
21
|
-
private
|
|
18
|
+
private readonly _subdivide;
|
|
22
19
|
}
|
|
@@ -21,9 +21,10 @@ export declare class Vector3d implements ICoordinates3d {
|
|
|
21
21
|
getLengthSq(): number;
|
|
22
22
|
mult(n: number): Vector3d;
|
|
23
23
|
multTo(n: number): void;
|
|
24
|
+
normalize(): void;
|
|
24
25
|
rotate(angle: number): Vector3d;
|
|
25
26
|
setTo(c: ICoordinates): void;
|
|
26
27
|
sub(v: Vector3d): Vector3d;
|
|
27
28
|
subFrom(v: Vector3d): void;
|
|
28
|
-
private
|
|
29
|
+
private readonly _updateFromAngle;
|
|
29
30
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IAnimation, IRangedAnimation } from "../Interfaces/IAnimation";
|
|
2
|
+
import { AnimationMode } from "../../Enums/Modes/AnimationMode";
|
|
2
3
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
3
4
|
import type { RangeValue } from "../../Types/RangeValue";
|
|
4
5
|
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
@@ -6,6 +7,7 @@ import { StartValueType } from "../../Enums/Types/StartValueType";
|
|
|
6
7
|
export declare class AnimationOptions implements IAnimation, IOptionLoader<IAnimation> {
|
|
7
8
|
count: RangeValue;
|
|
8
9
|
decay: RangeValue;
|
|
10
|
+
delay: RangeValue;
|
|
9
11
|
enable: boolean;
|
|
10
12
|
speed: RangeValue;
|
|
11
13
|
sync: boolean;
|
|
@@ -13,7 +15,7 @@ export declare class AnimationOptions implements IAnimation, IOptionLoader<IAnim
|
|
|
13
15
|
load(data?: RecursivePartial<IAnimation>): void;
|
|
14
16
|
}
|
|
15
17
|
export declare class RangedAnimationOptions extends AnimationOptions implements IOptionLoader<IRangedAnimation> {
|
|
16
|
-
|
|
18
|
+
mode: AnimationMode | keyof typeof AnimationMode;
|
|
17
19
|
startValue: StartValueType | keyof typeof StartValueType;
|
|
18
20
|
constructor();
|
|
19
21
|
load(data?: RecursivePartial<IRangedAnimation>): void;
|
|
@@ -5,6 +5,7 @@ import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
|
5
5
|
export declare class ColorAnimation implements IColorAnimation, IOptionLoader<IColorAnimation> {
|
|
6
6
|
count: RangeValue;
|
|
7
7
|
decay: RangeValue;
|
|
8
|
+
delay: RangeValue;
|
|
8
9
|
enable: boolean;
|
|
9
10
|
offset: RangeValue;
|
|
10
11
|
speed: RangeValue;
|
|
@@ -10,11 +10,5 @@ export declare class DivEvent implements IDivEvent, IOptionLoader<IDivEvent> {
|
|
|
10
10
|
selectors: SingleOrMultiple<string>;
|
|
11
11
|
type: DivType | keyof typeof DivType;
|
|
12
12
|
constructor();
|
|
13
|
-
get el(): SingleOrMultiple<string>;
|
|
14
|
-
set el(value: SingleOrMultiple<string>);
|
|
15
|
-
get elementId(): SingleOrMultiple<string>;
|
|
16
|
-
set elementId(value: SingleOrMultiple<string>);
|
|
17
|
-
get ids(): SingleOrMultiple<string>;
|
|
18
|
-
set ids(value: SingleOrMultiple<string>);
|
|
19
13
|
load(data?: RecursivePartial<IDivEvent>): void;
|
|
20
14
|
}
|
|
@@ -12,11 +12,5 @@ export declare class Events implements IEvents, IOptionLoader<IEvents> {
|
|
|
12
12
|
onHover: HoverEvent;
|
|
13
13
|
resize: ResizeEvent;
|
|
14
14
|
constructor();
|
|
15
|
-
get onclick(): ClickEvent;
|
|
16
|
-
set onclick(value: ClickEvent);
|
|
17
|
-
get ondiv(): SingleOrMultiple<DivEvent>;
|
|
18
|
-
set ondiv(value: SingleOrMultiple<DivEvent>);
|
|
19
|
-
get onhover(): HoverEvent;
|
|
20
|
-
set onhover(value: HoverEvent);
|
|
21
15
|
load(data?: RecursivePartial<IEvents>): void;
|
|
22
16
|
}
|
|
@@ -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 { Events } from "./Events/Events";
|
|
4
4
|
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity";
|
|
5
5
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
@@ -12,7 +12,5 @@ export declare class Interactivity implements IInteractivity, IOptionLoader<IInt
|
|
|
12
12
|
events: Events;
|
|
13
13
|
modes: Modes;
|
|
14
14
|
constructor(engine: Engine, container?: Container);
|
|
15
|
-
get detect_on(): InteractivityDetect | keyof typeof InteractivityDetect;
|
|
16
|
-
set detect_on(value: InteractivityDetect | keyof typeof InteractivityDetect);
|
|
17
15
|
load(data?: RecursivePartial<IInteractivity>): void;
|
|
18
16
|
}
|
|
@@ -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 { IModes } from "../../../Interfaces/Interactivity/Modes/IModes";
|
|
4
4
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
5
5
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ICoordinatesWithMode } from "../../Core/Interfaces/ICoordinates";
|
|
2
2
|
import type { IManualParticle } from "../Interfaces/IManualParticle";
|
|
3
3
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
4
4
|
import type { IParticlesOptions } from "../Interfaces/Particles/IParticlesOptions";
|
|
5
5
|
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
6
6
|
export declare class ManualParticle implements IManualParticle, IOptionLoader<IManualParticle> {
|
|
7
7
|
options?: RecursivePartial<IParticlesOptions>;
|
|
8
|
-
position?:
|
|
8
|
+
position?: ICoordinatesWithMode;
|
|
9
9
|
load(data?: RecursivePartial<IManualParticle>): void;
|
|
10
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Background } from "./Background/Background";
|
|
2
2
|
import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
|
|
3
3
|
import type { Container } from "../../Core/Container";
|
|
4
|
-
import type { Engine } from "../../
|
|
4
|
+
import type { Engine } from "../../Core/Engine";
|
|
5
5
|
import { FullScreen } from "./FullScreen/FullScreen";
|
|
6
6
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
7
7
|
import type { IOptions } from "../Interfaces/IOptions";
|
|
8
|
-
import type { ISourceOptions } from "../../Types/ISourceOptions";
|
|
9
8
|
import { Interactivity } from "./Interactivity/Interactivity";
|
|
10
9
|
import { ManualParticle } from "./ManualParticle";
|
|
11
10
|
import type { RangeValue } from "../../Types/RangeValue";
|
|
@@ -30,7 +29,7 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
30
29
|
fullScreen: FullScreen;
|
|
31
30
|
interactivity: Interactivity;
|
|
32
31
|
manualParticles: ManualParticle[];
|
|
33
|
-
name
|
|
32
|
+
name?: string;
|
|
34
33
|
particles: import("./Particles/ParticlesOptions").ParticlesOptions;
|
|
35
34
|
pauseOnBlur: boolean;
|
|
36
35
|
pauseOnOutsideViewport: boolean;
|
|
@@ -43,16 +42,10 @@ export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
|
43
42
|
private readonly _container;
|
|
44
43
|
private readonly _engine;
|
|
45
44
|
constructor(engine: Engine, container: Container);
|
|
46
|
-
|
|
47
|
-
set backgroundMode(value: FullScreen);
|
|
48
|
-
get fps_limit(): number;
|
|
49
|
-
set fps_limit(value: number);
|
|
50
|
-
get retina_detect(): boolean;
|
|
51
|
-
set retina_detect(value: boolean);
|
|
52
|
-
load(data?: ISourceOptions): void;
|
|
45
|
+
load(data?: RecursivePartial<IOptions>): void;
|
|
53
46
|
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
|
|
54
47
|
setTheme(name?: string): void;
|
|
55
|
-
private _findDefaultTheme;
|
|
56
|
-
private _importPreset;
|
|
48
|
+
private readonly _findDefaultTheme;
|
|
49
|
+
private readonly _importPreset;
|
|
57
50
|
}
|
|
58
51
|
export {};
|
|
@@ -4,11 +4,13 @@ import { CollisionsOverlap } from "./CollisionsOverlap";
|
|
|
4
4
|
import type { ICollisions } from "../../../Interfaces/Particles/Collisions/ICollisions";
|
|
5
5
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
6
6
|
import { ParticlesBounce } from "../Bounce/ParticlesBounce";
|
|
7
|
+
import type { RangeValue } from "../../../../Types/RangeValue";
|
|
7
8
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
8
9
|
export declare class Collisions implements ICollisions, IOptionLoader<ICollisions> {
|
|
9
10
|
absorb: CollisionsAbsorb;
|
|
10
11
|
bounce: ParticlesBounce;
|
|
11
12
|
enable: boolean;
|
|
13
|
+
maxSpeed: RangeValue;
|
|
12
14
|
mode: CollisionMode | keyof typeof CollisionMode;
|
|
13
15
|
overlap: CollisionsOverlap;
|
|
14
16
|
constructor();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { OutMode, OutModeAlt } from "../../../../Enums/Modes/OutMode";
|
|
2
1
|
import type { IDistance } from "../../../../Core/Interfaces/IDistance";
|
|
3
2
|
import type { IMove } from "../../../Interfaces/Particles/Move/IMove";
|
|
4
3
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
@@ -35,15 +34,5 @@ export declare class Move implements IMove, IOptionLoader<IMove> {
|
|
|
35
34
|
vibrate: boolean;
|
|
36
35
|
warp: boolean;
|
|
37
36
|
constructor();
|
|
38
|
-
get bounce(): boolean;
|
|
39
|
-
set bounce(value: boolean);
|
|
40
|
-
get collisions(): boolean;
|
|
41
|
-
set collisions(_: boolean);
|
|
42
|
-
get noise(): MovePath;
|
|
43
|
-
set noise(value: MovePath);
|
|
44
|
-
get outMode(): OutMode | keyof typeof OutMode | OutModeAlt;
|
|
45
|
-
set outMode(value: OutMode | keyof typeof OutMode | OutModeAlt);
|
|
46
|
-
get out_mode(): OutMode | keyof typeof OutMode | OutModeAlt;
|
|
47
|
-
set out_mode(value: OutMode | keyof typeof OutMode | OutModeAlt);
|
|
48
37
|
load(data?: RecursivePartial<IMove>): void;
|
|
49
38
|
}
|
|
@@ -8,9 +8,5 @@ export declare class MoveAttract implements IMoveAttract, IOptionLoader<IMoveAtt
|
|
|
8
8
|
enable: boolean;
|
|
9
9
|
rotate: ICoordinates;
|
|
10
10
|
constructor();
|
|
11
|
-
get rotateX(): number;
|
|
12
|
-
set rotateX(value: number);
|
|
13
|
-
get rotateY(): number;
|
|
14
|
-
set rotateY(value: number);
|
|
15
11
|
load(data?: RecursivePartial<IMoveAttract>): void;
|
|
16
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IMoveCenter } from "../../../Interfaces/Particles/Move/IMoveCenter";
|
|
2
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
|
+
import { PixelMode } from "../../../../Enums/Modes/PixelMode";
|
|
3
4
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
4
|
-
import { SizeMode } from "../../../../Enums/Modes/SizeMode";
|
|
5
5
|
export declare class MoveCenter implements IMoveCenter, IOptionLoader<IMoveCenter> {
|
|
6
|
-
mode:
|
|
6
|
+
mode: PixelMode | keyof typeof PixelMode;
|
|
7
7
|
radius: number;
|
|
8
8
|
x: number;
|
|
9
9
|
y: number;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { IMoveTrail } from "../../../Interfaces/Particles/Move/IMoveTrail";
|
|
2
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
3
|
import { MoveTrailFill } from "./MoveTrailFill";
|
|
4
|
-
import type { OptionsColor } from "../../OptionsColor";
|
|
5
4
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
6
5
|
export declare class MoveTrail implements IMoveTrail, IOptionLoader<IMoveTrail> {
|
|
7
6
|
enable: boolean;
|
|
8
7
|
fill: MoveTrailFill;
|
|
9
8
|
length: number;
|
|
10
9
|
constructor();
|
|
11
|
-
get fillColor(): string | OptionsColor | undefined;
|
|
12
|
-
set fillColor(value: string | OptionsColor | undefined);
|
|
13
10
|
load(data?: RecursivePartial<IMoveTrail>): void;
|
|
14
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ICoordinatesWithMode } from "../../../../Core/Interfaces/ICoordinates";
|
|
2
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
3
|
import type { ISpin } from "../../../Interfaces/Particles/Move/ISpin";
|
|
4
4
|
import type { RangeValue } from "../../../../Types/RangeValue";
|
|
@@ -6,7 +6,7 @@ import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
|
6
6
|
export declare class Spin implements ISpin, IOptionLoader<ISpin> {
|
|
7
7
|
acceleration: RangeValue;
|
|
8
8
|
enable: boolean;
|
|
9
|
-
position?:
|
|
9
|
+
position?: ICoordinatesWithMode;
|
|
10
10
|
constructor();
|
|
11
11
|
load(data?: RecursivePartial<ISpin>): void;
|
|
12
12
|
}
|
|
@@ -6,11 +6,5 @@ export declare class ParticlesDensity implements IParticlesDensity, IOptionLoade
|
|
|
6
6
|
height: number;
|
|
7
7
|
width: number;
|
|
8
8
|
constructor();
|
|
9
|
-
get area(): number;
|
|
10
|
-
set area(value: number);
|
|
11
|
-
get factor(): number;
|
|
12
|
-
set factor(value: number);
|
|
13
|
-
get value_area(): number;
|
|
14
|
-
set value_area(value: number);
|
|
15
9
|
load(data?: RecursivePartial<IParticlesDensity>): void;
|
|
16
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IOpacity } from "../../../Interfaces/Particles/Opacity/IOpacity";
|
|
2
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
3
3
|
import { OpacityAnimation } from "./OpacityAnimation";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
5
|
+
import { ValueWithRandom } from "../../ValueWithRandom";
|
|
6
|
+
export declare class Opacity extends ValueWithRandom implements IOpacity, IOptionLoader<IOpacity> {
|
|
6
7
|
animation: OpacityAnimation;
|
|
7
8
|
constructor();
|
|
8
|
-
|
|
9
|
-
set anim(value: OpacityAnimation);
|
|
9
|
+
load(data?: RecursivePartial<IOpacity>): void;
|
|
10
10
|
}
|
|
@@ -6,7 +6,5 @@ import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
|
6
6
|
export declare class OpacityAnimation extends RangedAnimationOptions implements IOpacityAnimation, IOptionLoader<IOpacityAnimation> {
|
|
7
7
|
destroy: DestroyType | keyof typeof DestroyType;
|
|
8
8
|
constructor();
|
|
9
|
-
get opacity_min(): number | undefined;
|
|
10
|
-
set opacity_min(value: number | undefined);
|
|
11
9
|
load(data?: RecursivePartial<IOpacityAnimation>): void;
|
|
12
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnimatableColor } from "../AnimatableColor";
|
|
2
2
|
import { Collisions } from "./Collisions/Collisions";
|
|
3
3
|
import type { Container } from "../../../Core/Container";
|
|
4
|
-
import type { Engine } from "../../../
|
|
4
|
+
import type { Engine } from "../../../Core/Engine";
|
|
5
5
|
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity";
|
|
6
6
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader";
|
|
7
7
|
import type { IParticlesOptions } from "../../Interfaces/Particles/IParticlesOptions";
|
|
@@ -4,6 +4,8 @@ import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
|
4
4
|
import type { ShapeData } from "../../../../Types/ShapeData";
|
|
5
5
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
|
|
6
6
|
export declare class Shape implements IShape, IOptionLoader<IShape> {
|
|
7
|
+
close: boolean;
|
|
8
|
+
fill: boolean;
|
|
7
9
|
options: ShapeData;
|
|
8
10
|
type: SingleOrMultiple<string>;
|
|
9
11
|
constructor();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
|
|
2
2
|
import type { ISize } from "../../../Interfaces/Particles/Size/ISize";
|
|
3
|
-
import {
|
|
3
|
+
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
4
4
|
import { SizeAnimation } from "./SizeAnimation";
|
|
5
|
-
|
|
5
|
+
import { ValueWithRandom } from "../../ValueWithRandom";
|
|
6
|
+
export declare class Size extends ValueWithRandom implements ISize, IOptionLoader<ISize> {
|
|
6
7
|
animation: SizeAnimation;
|
|
7
8
|
constructor();
|
|
8
|
-
|
|
9
|
-
set anim(value: SizeAnimation);
|
|
9
|
+
load(data?: RecursivePartial<ISize>): void;
|
|
10
10
|
}
|
|
@@ -6,7 +6,5 @@ import type { RecursivePartial } from "../../../../Types/RecursivePartial";
|
|
|
6
6
|
export declare class SizeAnimation extends RangedAnimationOptions implements ISizeAnimation, IOptionLoader<ISizeAnimation> {
|
|
7
7
|
destroy: DestroyType | keyof typeof DestroyType;
|
|
8
8
|
constructor();
|
|
9
|
-
get size_min(): number | undefined;
|
|
10
|
-
set size_min(value: number | undefined);
|
|
11
9
|
load(data?: RecursivePartial<ISizeAnimation>): void;
|
|
12
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
|
2
|
+
import type { IOptions } from "../Interfaces/IOptions";
|
|
2
3
|
import type { IResponsive } from "../Interfaces/IResponsive";
|
|
3
|
-
import type { ISourceOptions } from "../../Types/ISourceOptions";
|
|
4
4
|
import type { RecursivePartial } from "../../Types/RecursivePartial";
|
|
5
5
|
import { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode";
|
|
6
6
|
export declare class Responsive implements IResponsive, IOptionLoader<IResponsive> {
|
|
7
7
|
maxWidth: number;
|
|
8
|
-
mode: ResponsiveMode;
|
|
9
|
-
options:
|
|
8
|
+
mode: ResponsiveMode | keyof typeof ResponsiveMode;
|
|
9
|
+
options: RecursivePartial<IOptions>;
|
|
10
10
|
constructor();
|
|
11
11
|
load(data?: RecursivePartial<IResponsive>): void;
|
|
12
12
|
}
|