@tsparticles/engine 3.0.0-beta.3 → 3.0.0-beta.4
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/browser/Core/Canvas.js +2 -2
- package/browser/Core/Container.js +36 -19
- package/browser/Core/Engine.js +18 -5
- package/browser/Core/Particle.js +75 -40
- package/browser/Core/Particles.js +51 -26
- package/browser/Core/Retina.js +0 -2
- package/browser/Core/Utils/QuadTree.js +1 -1
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +1 -2
- package/browser/Options/Classes/ColorAnimation.js +4 -24
- package/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -1
- package/browser/Options/Classes/Particles/Effect/Effect.js +32 -0
- package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +3 -5
- package/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +17 -0
- package/browser/Options/Classes/Particles/Opacity/Opacity.js +2 -3
- package/browser/Options/Classes/Particles/ParticlesOptions.js +3 -0
- package/browser/Options/Classes/Particles/Size/Size.js +2 -3
- package/browser/Options/Classes/ValueWithRandom.js +1 -10
- package/browser/Utils/CanvasUtils.js +23 -18
- package/browser/Utils/ColorUtils.js +24 -38
- package/browser/Utils/NumberUtils.js +7 -16
- package/browser/Utils/Utils.js +7 -7
- package/browser/export-types.js +4 -0
- package/browser/exports.js +2 -3
- package/cjs/Core/Canvas.js +2 -2
- package/cjs/Core/Container.js +36 -19
- package/cjs/Core/Engine.js +18 -5
- package/cjs/Core/Particle.js +74 -39
- package/cjs/Core/Particles.js +51 -26
- package/cjs/Core/Retina.js +0 -2
- package/cjs/Core/Utils/QuadTree.js +1 -1
- package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +1 -2
- package/cjs/Options/Classes/ColorAnimation.js +4 -24
- package/cjs/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -1
- package/cjs/Options/Classes/Particles/Effect/Effect.js +36 -0
- package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +3 -5
- package/cjs/Options/Classes/Particles/Number/ParticlesNumberLimit.js +21 -0
- package/cjs/Options/Classes/Particles/Opacity/Opacity.js +1 -2
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +3 -0
- package/cjs/Options/Classes/Particles/Size/Size.js +2 -3
- package/cjs/Options/Classes/ValueWithRandom.js +1 -10
- package/cjs/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js +2 -0
- package/cjs/Utils/CanvasUtils.js +26 -21
- package/cjs/Utils/ColorUtils.js +24 -38
- package/cjs/Utils/NumberUtils.js +8 -18
- package/cjs/Utils/Utils.js +6 -6
- package/cjs/export-types.js +4 -0
- package/cjs/exports.js +2 -3
- package/esm/Core/Canvas.js +2 -2
- package/esm/Core/Container.js +36 -19
- package/esm/Core/Engine.js +18 -5
- package/esm/Core/Particle.js +75 -40
- package/esm/Core/Particles.js +51 -26
- package/esm/Core/Retina.js +0 -2
- package/esm/Core/Utils/QuadTree.js +1 -1
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +1 -2
- package/esm/Options/Classes/ColorAnimation.js +4 -24
- package/esm/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -1
- package/esm/Options/Classes/Particles/Effect/Effect.js +32 -0
- package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +3 -5
- package/esm/Options/Classes/Particles/Number/ParticlesNumberLimit.js +17 -0
- package/esm/Options/Classes/Particles/Opacity/Opacity.js +2 -3
- package/esm/Options/Classes/Particles/ParticlesOptions.js +3 -0
- package/esm/Options/Classes/Particles/Size/Size.js +2 -3
- package/esm/Options/Classes/ValueWithRandom.js +1 -10
- package/esm/Options/Interfaces/Particles/Effect/IEffect.js +1 -0
- package/esm/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js +1 -0
- package/esm/Utils/CanvasUtils.js +23 -18
- package/esm/Utils/ColorUtils.js +24 -38
- package/esm/Utils/NumberUtils.js +7 -16
- package/esm/Utils/Utils.js +7 -7
- package/esm/export-types.js +4 -0
- package/esm/exports.js +2 -3
- package/package.json +1 -1
- package/report.html +4 -22
- package/tsparticles.engine.js +387 -283
- package/tsparticles.engine.min.js +1 -1
- package/tsparticles.engine.min.js.LICENSE.txt +1 -1
- package/types/Core/Canvas.d.ts +0 -1
- package/types/Core/Container.d.ts +8 -7
- package/types/Core/Engine.d.ts +7 -2
- package/types/Core/Interfaces/IContainerPlugin.d.ts +2 -3
- package/types/Core/Interfaces/IEffectDrawer.d.ts +10 -0
- package/types/Core/Interfaces/IExternalInteractor.d.ts +3 -4
- package/types/Core/Interfaces/IInteractor.d.ts +3 -3
- package/types/Core/Interfaces/IParticleRetinaProps.d.ts +0 -1
- package/types/Core/Interfaces/IParticlesInteractor.d.ts +3 -3
- package/types/Core/Interfaces/IShapeDrawData.d.ts +10 -0
- package/types/Core/Interfaces/IShapeDrawer.d.ts +2 -10
- package/types/Core/Particle.d.ts +6 -2
- package/types/Core/Particles.d.ts +10 -7
- package/types/Core/Retina.d.ts +0 -1
- package/types/Core/Utils/ExternalInteractorBase.d.ts +4 -4
- package/types/Core/Utils/InteractionManager.d.ts +1 -2
- package/types/Core/Utils/ParticlesInteractorBase.d.ts +5 -5
- package/types/Enums/Modes/LimitMode.d.ts +4 -0
- package/types/Enums/Types/EasingType.d.ts +3 -0
- package/types/Options/Classes/BackgroundMask/BackgroundMask.d.ts +1 -1
- package/types/Options/Classes/ColorAnimation.d.ts +2 -7
- package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +1 -2
- package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +1 -2
- package/types/Options/Classes/Interactivity/Events/Events.d.ts +3 -3
- package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +2 -3
- package/types/Options/Classes/Interactivity/Interactivity.d.ts +2 -2
- package/types/Options/Classes/Options.d.ts +6 -6
- package/types/Options/Classes/Particles/Bounce/ParticlesBounce.d.ts +2 -2
- package/types/Options/Classes/Particles/Collisions/Collisions.d.ts +3 -3
- package/types/Options/Classes/Particles/Effect/Effect.d.ts +13 -0
- package/types/Options/Classes/Particles/Move/Move.d.ts +8 -8
- package/types/Options/Classes/Particles/Move/MoveTrail.d.ts +1 -1
- package/types/Options/Classes/Particles/Number/ParticlesNumber.d.ts +3 -2
- package/types/Options/Classes/Particles/Number/ParticlesNumberLimit.d.ts +10 -0
- package/types/Options/Classes/Particles/Opacity/Opacity.d.ts +3 -3
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +12 -10
- package/types/Options/Classes/Particles/Size/Size.d.ts +3 -3
- package/types/Options/Classes/Theme/Theme.d.ts +1 -1
- package/types/Options/Classes/ValueWithRandom.d.ts +2 -4
- package/types/Options/Interfaces/IValueWithRandom.d.ts +0 -2
- package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +1 -2
- package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +1 -2
- package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +1 -2
- package/types/Options/Interfaces/Particles/Effect/IEffect.d.ts +8 -0
- package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +2 -0
- package/types/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +2 -1
- package/types/Options/Interfaces/Particles/Number/IParticlesNumberLimit.d.ts +5 -0
- package/types/Utils/CanvasUtils.d.ts +2 -2
- package/types/Utils/NumberUtils.d.ts +0 -2
- package/types/Utils/Utils.d.ts +2 -3
- package/types/export-types.d.ts +5 -0
- package/types/exports.d.ts +2 -3
- package/umd/Core/Canvas.js +2 -2
- package/umd/Core/Container.js +36 -19
- package/umd/Core/Engine.js +18 -5
- package/umd/Core/Particle.js +74 -39
- package/umd/Core/Particles.js +51 -26
- package/umd/Core/Retina.js +0 -2
- package/umd/Core/Utils/QuadTree.js +1 -1
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +1 -2
- package/umd/Options/Classes/ColorAnimation.js +5 -25
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -1
- package/umd/Options/Classes/Particles/Effect/Effect.js +46 -0
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +4 -6
- package/umd/Options/Classes/{Random.js → Particles/Number/ParticlesNumberLimit.js} +9 -9
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +1 -2
- package/umd/Options/Classes/Particles/ParticlesOptions.js +4 -1
- package/umd/Options/Classes/Particles/Size/Size.js +3 -4
- package/umd/Options/Classes/ValueWithRandom.js +2 -11
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js +12 -0
- package/umd/Utils/CanvasUtils.js +26 -21
- package/umd/Utils/ColorUtils.js +24 -38
- package/umd/Utils/NumberUtils.js +9 -19
- package/umd/Utils/Utils.js +6 -6
- package/umd/export-types.js +5 -1
- package/umd/exports.js +3 -4
- package/browser/Options/Classes/Random.js +0 -17
- package/cjs/Options/Classes/Random.js +0 -21
- package/esm/Options/Classes/Random.js +0 -17
- package/types/Enums/Modes/ClickMode.d.ts +0 -9
- package/types/Enums/Modes/DivMode.d.ts +0 -5
- package/types/Enums/Modes/HoverMode.d.ts +0 -11
- package/types/Options/Classes/Random.d.ts +0 -9
- package/types/Options/Interfaces/IRandom.d.ts +0 -4
- /package/browser/{Enums/Modes/ClickMode.js → Core/Interfaces/IEffectDrawer.js} +0 -0
- /package/browser/{Enums/Modes/DivMode.js → Core/Interfaces/IShapeDrawData.js} +0 -0
- /package/browser/Enums/Modes/{HoverMode.js → LimitMode.js} +0 -0
- /package/browser/Options/Interfaces/{IRandom.js → Particles/Effect/IEffect.js} +0 -0
- /package/{esm/Enums/Modes/ClickMode.js → browser/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js} +0 -0
- /package/cjs/{Enums/Modes/ClickMode.js → Core/Interfaces/IEffectDrawer.js} +0 -0
- /package/cjs/{Enums/Modes/DivMode.js → Core/Interfaces/IShapeDrawData.js} +0 -0
- /package/cjs/Enums/Modes/{HoverMode.js → LimitMode.js} +0 -0
- /package/cjs/Options/Interfaces/{IRandom.js → Particles/Effect/IEffect.js} +0 -0
- /package/esm/{Enums/Modes/DivMode.js → Core/Interfaces/IEffectDrawer.js} +0 -0
- /package/esm/{Enums/Modes/HoverMode.js → Core/Interfaces/IShapeDrawData.js} +0 -0
- /package/esm/{Options/Interfaces/IRandom.js → Enums/Modes/LimitMode.js} +0 -0
- /package/umd/{Enums/Modes/ClickMode.js → Core/Interfaces/IEffectDrawer.js} +0 -0
- /package/umd/{Enums/Modes/DivMode.js → Core/Interfaces/IShapeDrawData.js} +0 -0
- /package/umd/Enums/Modes/{HoverMode.js → LimitMode.js} +0 -0
- /package/umd/Options/Interfaces/{IRandom.js → Particles/Effect/IEffect.js} +0 -0
package/types/Core/Particle.d.ts
CHANGED
|
@@ -22,11 +22,13 @@ export declare class Particle {
|
|
|
22
22
|
readonly container: Container;
|
|
23
23
|
backColor?: IHsl;
|
|
24
24
|
bubble: IBubbleParticleData;
|
|
25
|
-
close: boolean;
|
|
26
25
|
color?: IParticleHslAnimation;
|
|
27
26
|
destroyed: boolean;
|
|
28
27
|
direction: number;
|
|
29
|
-
|
|
28
|
+
effect: string;
|
|
29
|
+
effectClose: boolean;
|
|
30
|
+
effectData?: IShapeValues;
|
|
31
|
+
effectFill: boolean;
|
|
30
32
|
group?: string;
|
|
31
33
|
id: number;
|
|
32
34
|
ignoresResizeRatio: boolean;
|
|
@@ -51,7 +53,9 @@ export declare class Particle {
|
|
|
51
53
|
rotation: number;
|
|
52
54
|
shadowColor?: IRgb;
|
|
53
55
|
shape: string;
|
|
56
|
+
shapeClose: boolean;
|
|
54
57
|
shapeData?: IShapeValues;
|
|
58
|
+
shapeFill: boolean;
|
|
55
59
|
sides: number;
|
|
56
60
|
size: IParticleNumericValueAnimation;
|
|
57
61
|
slow: ISlowParticleData;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import type { ClickMode } from "../Enums/Modes/ClickMode.js";
|
|
2
1
|
import type { Container } from "./Container.js";
|
|
3
2
|
import type { Engine } from "./Engine.js";
|
|
4
3
|
import type { ICoordinates } from "./Interfaces/ICoordinates.js";
|
|
5
4
|
import type { IDelta } from "./Interfaces/IDelta.js";
|
|
5
|
+
import type { IDimension } from "./Interfaces/IDimension.js";
|
|
6
6
|
import type { IMouseData } from "./Interfaces/IMouseData.js";
|
|
7
7
|
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
8
8
|
import { Particle } from "./Particle.js";
|
|
9
9
|
import { QuadTree } from "./Utils/QuadTree.js";
|
|
10
10
|
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
11
11
|
export declare class Particles {
|
|
12
|
-
lastZIndex: number;
|
|
13
|
-
limit: number;
|
|
14
12
|
movers: import("./Interfaces/IParticleMover.js").IParticleMover[];
|
|
15
|
-
needsSort: boolean;
|
|
16
|
-
pool: Particle[];
|
|
17
|
-
pushing?: boolean;
|
|
18
13
|
quadTree: QuadTree;
|
|
19
14
|
updaters: import("./Interfaces/IParticleUpdater.js").IParticleUpdater[];
|
|
20
15
|
private _array;
|
|
21
16
|
private readonly _container;
|
|
22
17
|
private readonly _engine;
|
|
18
|
+
private readonly _groupLimits;
|
|
23
19
|
private readonly _interactionManager;
|
|
20
|
+
private _lastZIndex;
|
|
21
|
+
private _limit;
|
|
22
|
+
private _needsSort;
|
|
24
23
|
private _nextId;
|
|
24
|
+
private readonly _pool;
|
|
25
|
+
private _resizeFactor?;
|
|
25
26
|
private _zArray;
|
|
26
27
|
constructor(engine: Engine, container: Container);
|
|
27
28
|
get count(): number;
|
|
@@ -33,7 +34,7 @@ export declare class Particles {
|
|
|
33
34
|
filter(condition: (particle: Particle) => boolean): Particle[];
|
|
34
35
|
find(condition: (particle: Particle) => boolean): Particle | undefined;
|
|
35
36
|
get(index: number): Particle | undefined;
|
|
36
|
-
handleClickMode(mode:
|
|
37
|
+
handleClickMode(mode: string): void;
|
|
37
38
|
init(): void;
|
|
38
39
|
push(nb: number, mouse?: IMouseData, overrideOptions?: RecursivePartial<IParticlesOptions>, group?: string): void;
|
|
39
40
|
redraw(): Promise<void>;
|
|
@@ -41,6 +42,8 @@ export declare class Particles {
|
|
|
41
42
|
removeAt(index: number, quantity?: number, group?: string, override?: boolean): void;
|
|
42
43
|
removeQuantity(quantity: number, group?: string): void;
|
|
43
44
|
setDensity(): void;
|
|
45
|
+
setLastZIndex(zIndex: number): void;
|
|
46
|
+
setResizeFactor(factor: IDimension): void;
|
|
44
47
|
update(delta: IDelta): Promise<void>;
|
|
45
48
|
private readonly _applyDensity;
|
|
46
49
|
private readonly _initDensityFactor;
|
package/types/Core/Retina.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import type { IDelta } from "../Interfaces/IDelta.js";
|
|
|
3
3
|
import type { IExternalInteractor } from "../Interfaces/IExternalInteractor.js";
|
|
4
4
|
import { InteractorType } from "../../Enums/Types/InteractorType.js";
|
|
5
5
|
import type { Particle } from "../Particle.js";
|
|
6
|
-
export declare abstract class ExternalInteractorBase<TContainer extends Container = Container> implements IExternalInteractor {
|
|
6
|
+
export declare abstract class ExternalInteractorBase<TContainer extends Container = Container, TParticle extends Particle = Particle> implements IExternalInteractor<TParticle> {
|
|
7
7
|
protected readonly container: TContainer;
|
|
8
8
|
type: InteractorType;
|
|
9
9
|
protected constructor(container: TContainer);
|
|
10
|
-
abstract clear(particle:
|
|
10
|
+
abstract clear(particle: TParticle, delta: IDelta): void;
|
|
11
11
|
abstract init(): void;
|
|
12
12
|
abstract interact(delta: IDelta): Promise<void>;
|
|
13
|
-
abstract isEnabled(particle?:
|
|
14
|
-
abstract reset(particle:
|
|
13
|
+
abstract isEnabled(particle?: TParticle): boolean;
|
|
14
|
+
abstract reset(particle: TParticle): void;
|
|
15
15
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ClickMode } from "../../Enums/Modes/ClickMode.js";
|
|
2
1
|
import type { Container } from "../Container.js";
|
|
3
2
|
import type { Engine } from "../Engine.js";
|
|
4
3
|
import type { IDelta } from "../Interfaces/IDelta.js";
|
|
@@ -11,7 +10,7 @@ export declare class InteractionManager {
|
|
|
11
10
|
private _particleInteractors;
|
|
12
11
|
constructor(engine: Engine, container: Container);
|
|
13
12
|
externalInteract(delta: IDelta): Promise<void>;
|
|
14
|
-
handleClickMode(mode:
|
|
13
|
+
handleClickMode(mode: string): void;
|
|
15
14
|
init(): void;
|
|
16
15
|
particlesInteract(particle: Particle, delta: IDelta): Promise<void>;
|
|
17
16
|
reset(particle: Particle): Promise<void>;
|
|
@@ -3,13 +3,13 @@ import type { IDelta } from "../Interfaces/IDelta.js";
|
|
|
3
3
|
import type { IParticlesInteractor } from "../Interfaces/IParticlesInteractor.js";
|
|
4
4
|
import { InteractorType } from "../../Enums/Types/InteractorType.js";
|
|
5
5
|
import type { Particle } from "../Particle.js";
|
|
6
|
-
export declare abstract class ParticlesInteractorBase<TContainer extends Container = Container> implements IParticlesInteractor {
|
|
6
|
+
export declare abstract class ParticlesInteractorBase<TContainer extends Container = Container, TParticle extends Particle = Particle> implements IParticlesInteractor<TParticle> {
|
|
7
7
|
protected readonly container: TContainer;
|
|
8
8
|
type: InteractorType;
|
|
9
9
|
protected constructor(container: TContainer);
|
|
10
|
-
abstract clear(particle:
|
|
10
|
+
abstract clear(particle: TParticle, delta: IDelta): void;
|
|
11
11
|
abstract init(): void;
|
|
12
|
-
abstract interact(particle:
|
|
13
|
-
abstract isEnabled(particle:
|
|
14
|
-
abstract reset(particle:
|
|
12
|
+
abstract interact(particle: TParticle, delta: IDelta): Promise<void>;
|
|
13
|
+
abstract isEnabled(particle: TParticle): boolean;
|
|
14
|
+
abstract reset(particle: TParticle): void;
|
|
15
15
|
}
|
|
@@ -2,6 +2,7 @@ export declare const enum EasingType {
|
|
|
2
2
|
easeInBack = "ease-in-back",
|
|
3
3
|
easeInCirc = "ease-in-circ",
|
|
4
4
|
easeInCubic = "ease-in-cubic",
|
|
5
|
+
easeInLinear = "ease-in-linear",
|
|
5
6
|
easeInQuad = "ease-in-quad",
|
|
6
7
|
easeInQuart = "ease-in-quart",
|
|
7
8
|
easeInQuint = "ease-in-quint",
|
|
@@ -10,6 +11,7 @@ export declare const enum EasingType {
|
|
|
10
11
|
easeOutBack = "ease-out-back",
|
|
11
12
|
easeOutCirc = "ease-out-circ",
|
|
12
13
|
easeOutCubic = "ease-out-cubic",
|
|
14
|
+
easeOutLinear = "ease-out-linear",
|
|
13
15
|
easeOutQuad = "ease-out-quad",
|
|
14
16
|
easeOutQuart = "ease-out-quart",
|
|
15
17
|
easeOutQuint = "ease-out-quint",
|
|
@@ -18,6 +20,7 @@ export declare const enum EasingType {
|
|
|
18
20
|
easeInOutBack = "ease-in-out-back",
|
|
19
21
|
easeInOutCirc = "ease-in-out-circ",
|
|
20
22
|
easeInOutCubic = "ease-in-out-cubic",
|
|
23
|
+
easeInOutLinear = "ease-in-out-linear",
|
|
21
24
|
easeInOutQuad = "ease-in-out-quad",
|
|
22
25
|
easeInOutQuart = "ease-in-out-quart",
|
|
23
26
|
easeInOutQuint = "ease-in-out-quint",
|
|
@@ -4,7 +4,7 @@ import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
|
4
4
|
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class BackgroundMask implements IBackgroundMask, IOptionLoader<IBackgroundMask> {
|
|
6
6
|
composite: GlobalCompositeOperation;
|
|
7
|
-
cover: BackgroundMaskCover;
|
|
7
|
+
readonly cover: BackgroundMaskCover;
|
|
8
8
|
enable: boolean;
|
|
9
9
|
constructor();
|
|
10
10
|
load(data?: RecursivePartial<IBackgroundMask>): void;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
+
import { AnimationOptions } from "./AnimationOptions.js";
|
|
1
2
|
import type { IColorAnimation } from "../Interfaces/IColorAnimation.js";
|
|
2
3
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
3
4
|
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
4
5
|
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
5
|
-
export declare class ColorAnimation implements IColorAnimation, IOptionLoader<IColorAnimation> {
|
|
6
|
-
count: RangeValue;
|
|
7
|
-
decay: RangeValue;
|
|
8
|
-
delay: RangeValue;
|
|
9
|
-
enable: boolean;
|
|
6
|
+
export declare class ColorAnimation extends AnimationOptions implements IColorAnimation, IOptionLoader<IColorAnimation> {
|
|
10
7
|
offset: RangeValue;
|
|
11
|
-
speed: RangeValue;
|
|
12
|
-
sync: boolean;
|
|
13
8
|
constructor();
|
|
14
9
|
load(data?: RecursivePartial<IColorAnimation>): void;
|
|
15
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { ClickMode } from "../../../../Enums/Modes/ClickMode.js";
|
|
2
1
|
import type { IClickEvent } from "../../../Interfaces/Interactivity/Events/IClickEvent.js";
|
|
3
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
4
3
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
4
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
6
5
|
export declare class ClickEvent implements IClickEvent, IOptionLoader<IClickEvent> {
|
|
7
6
|
enable: boolean;
|
|
8
|
-
mode: SingleOrMultiple<
|
|
7
|
+
mode: SingleOrMultiple<string>;
|
|
9
8
|
constructor();
|
|
10
9
|
load(data?: RecursivePartial<IClickEvent>): void;
|
|
11
10
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { DivMode } from "../../../../Enums/Modes/DivMode.js";
|
|
2
1
|
import { DivType } from "../../../../Enums/Types/DivType.js";
|
|
3
2
|
import type { IDivEvent } from "../../../Interfaces/Interactivity/Events/IDivEvent.js";
|
|
4
3
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
@@ -6,7 +5,7 @@ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
|
6
5
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
7
6
|
export declare class DivEvent implements IDivEvent, IOptionLoader<IDivEvent> {
|
|
8
7
|
enable: boolean;
|
|
9
|
-
mode: SingleOrMultiple<
|
|
8
|
+
mode: SingleOrMultiple<string>;
|
|
10
9
|
selectors: SingleOrMultiple<string>;
|
|
11
10
|
type: DivType | keyof typeof DivType;
|
|
12
11
|
constructor();
|
|
@@ -7,10 +7,10 @@ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
|
7
7
|
import { ResizeEvent } from "./ResizeEvent.js";
|
|
8
8
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
9
9
|
export declare class Events implements IEvents, IOptionLoader<IEvents> {
|
|
10
|
-
onClick: ClickEvent;
|
|
10
|
+
readonly onClick: ClickEvent;
|
|
11
11
|
onDiv: SingleOrMultiple<DivEvent>;
|
|
12
|
-
onHover: HoverEvent;
|
|
13
|
-
resize: ResizeEvent;
|
|
12
|
+
readonly onHover: HoverEvent;
|
|
13
|
+
readonly resize: ResizeEvent;
|
|
14
14
|
constructor();
|
|
15
15
|
load(data?: RecursivePartial<IEvents>): void;
|
|
16
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { HoverMode } from "../../../../Enums/Modes/HoverMode.js";
|
|
2
1
|
import type { IHoverEvent } from "../../../Interfaces/Interactivity/Events/IHoverEvent.js";
|
|
3
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
4
3
|
import { Parallax } from "./Parallax.js";
|
|
@@ -6,8 +5,8 @@ import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
|
6
5
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
7
6
|
export declare class HoverEvent implements IHoverEvent, IOptionLoader<IHoverEvent> {
|
|
8
7
|
enable: boolean;
|
|
9
|
-
mode: SingleOrMultiple<
|
|
10
|
-
parallax: Parallax;
|
|
8
|
+
mode: SingleOrMultiple<string>;
|
|
9
|
+
readonly parallax: Parallax;
|
|
11
10
|
constructor();
|
|
12
11
|
load(data?: RecursivePartial<IHoverEvent>): void;
|
|
13
12
|
}
|
|
@@ -9,8 +9,8 @@ import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
|
9
9
|
export declare class Interactivity implements IInteractivity, IOptionLoader<IInteractivity> {
|
|
10
10
|
[name: string]: unknown;
|
|
11
11
|
detectsOn: InteractivityDetect | keyof typeof InteractivityDetect;
|
|
12
|
-
events: Events;
|
|
13
|
-
modes: Modes;
|
|
12
|
+
readonly events: Events;
|
|
13
|
+
readonly modes: Modes;
|
|
14
14
|
constructor(engine: Engine, container?: Container);
|
|
15
15
|
load(data?: RecursivePartial<IInteractivity>): void;
|
|
16
16
|
}
|
|
@@ -19,25 +19,25 @@ interface DefaultThemes {
|
|
|
19
19
|
export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
|
20
20
|
[name: string]: unknown;
|
|
21
21
|
autoPlay: boolean;
|
|
22
|
-
background: Background;
|
|
23
|
-
backgroundMask: BackgroundMask;
|
|
22
|
+
readonly background: Background;
|
|
23
|
+
readonly backgroundMask: BackgroundMask;
|
|
24
24
|
defaultThemes: DefaultThemes;
|
|
25
25
|
delay: RangeValue;
|
|
26
26
|
detectRetina: boolean;
|
|
27
27
|
duration: RangeValue;
|
|
28
28
|
fpsLimit: number;
|
|
29
|
-
fullScreen: FullScreen;
|
|
30
|
-
interactivity: Interactivity;
|
|
29
|
+
readonly fullScreen: FullScreen;
|
|
30
|
+
readonly interactivity: Interactivity;
|
|
31
31
|
manualParticles: ManualParticle[];
|
|
32
32
|
name?: string;
|
|
33
|
-
particles: import("./Particles/ParticlesOptions.js").ParticlesOptions;
|
|
33
|
+
readonly particles: import("./Particles/ParticlesOptions.js").ParticlesOptions;
|
|
34
34
|
pauseOnBlur: boolean;
|
|
35
35
|
pauseOnOutsideViewport: boolean;
|
|
36
36
|
preset?: SingleOrMultiple<string>;
|
|
37
37
|
responsive: Responsive[];
|
|
38
38
|
smooth: boolean;
|
|
39
39
|
style: RecursivePartial<CSSStyleDeclaration>;
|
|
40
|
-
themes: Theme[];
|
|
40
|
+
readonly themes: Theme[];
|
|
41
41
|
zLayers: number;
|
|
42
42
|
private readonly _container;
|
|
43
43
|
private readonly _engine;
|
|
@@ -3,8 +3,8 @@ import type { IParticlesBounce } from "../../../Interfaces/Particles/Bounce/IPar
|
|
|
3
3
|
import { ParticlesBounceFactor } from "./ParticlesBounceFactor.js";
|
|
4
4
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class ParticlesBounce implements IParticlesBounce, IOptionLoader<IParticlesBounce> {
|
|
6
|
-
horizontal: ParticlesBounceFactor;
|
|
7
|
-
vertical: ParticlesBounceFactor;
|
|
6
|
+
readonly horizontal: ParticlesBounceFactor;
|
|
7
|
+
readonly vertical: ParticlesBounceFactor;
|
|
8
8
|
constructor();
|
|
9
9
|
load(data?: RecursivePartial<IParticlesBounce>): void;
|
|
10
10
|
}
|
|
@@ -7,12 +7,12 @@ import { ParticlesBounce } from "../Bounce/ParticlesBounce.js";
|
|
|
7
7
|
import type { RangeValue } from "../../../../Types/RangeValue.js";
|
|
8
8
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
9
9
|
export declare class Collisions implements ICollisions, IOptionLoader<ICollisions> {
|
|
10
|
-
absorb: CollisionsAbsorb;
|
|
11
|
-
bounce: ParticlesBounce;
|
|
10
|
+
readonly absorb: CollisionsAbsorb;
|
|
11
|
+
readonly bounce: ParticlesBounce;
|
|
12
12
|
enable: boolean;
|
|
13
13
|
maxSpeed: RangeValue;
|
|
14
14
|
mode: CollisionMode | keyof typeof CollisionMode;
|
|
15
|
-
overlap: CollisionsOverlap;
|
|
15
|
+
readonly overlap: CollisionsOverlap;
|
|
16
16
|
constructor();
|
|
17
17
|
load(data?: RecursivePartial<ICollisions>): void;
|
|
18
18
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IEffect } from "../../../Interfaces/Particles/Effect/IEffect.js";
|
|
2
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
3
|
+
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
4
|
+
import type { ShapeData } from "../../../../Types/ShapeData.js";
|
|
5
|
+
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
6
|
+
export declare class Effect implements IEffect, IOptionLoader<IEffect> {
|
|
7
|
+
close: boolean;
|
|
8
|
+
fill: boolean;
|
|
9
|
+
options: ShapeData;
|
|
10
|
+
type: SingleOrMultiple<string>;
|
|
11
|
+
constructor();
|
|
12
|
+
load(data?: RecursivePartial<IEffect>): void;
|
|
13
|
+
}
|
|
@@ -14,23 +14,23 @@ import type { RangeValue } from "../../../../Types/RangeValue.js";
|
|
|
14
14
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
15
15
|
import { Spin } from "./Spin.js";
|
|
16
16
|
export declare class Move implements IMove, IOptionLoader<IMove> {
|
|
17
|
-
angle: MoveAngle;
|
|
18
|
-
attract: MoveAttract;
|
|
19
|
-
center: MoveCenter;
|
|
17
|
+
readonly angle: MoveAngle;
|
|
18
|
+
readonly attract: MoveAttract;
|
|
19
|
+
readonly center: MoveCenter;
|
|
20
20
|
decay: RangeValue;
|
|
21
21
|
direction: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt | number;
|
|
22
22
|
distance: Partial<IDistance>;
|
|
23
23
|
drift: RangeValue;
|
|
24
24
|
enable: boolean;
|
|
25
|
-
gravity: MoveGravity;
|
|
26
|
-
outModes: OutModes;
|
|
27
|
-
path: MovePath;
|
|
25
|
+
readonly gravity: MoveGravity;
|
|
26
|
+
readonly outModes: OutModes;
|
|
27
|
+
readonly path: MovePath;
|
|
28
28
|
random: boolean;
|
|
29
29
|
size: boolean;
|
|
30
30
|
speed: RangeValue;
|
|
31
|
-
spin: Spin;
|
|
31
|
+
readonly spin: Spin;
|
|
32
32
|
straight: boolean;
|
|
33
|
-
trail: MoveTrail;
|
|
33
|
+
readonly trail: MoveTrail;
|
|
34
34
|
vibrate: boolean;
|
|
35
35
|
warp: boolean;
|
|
36
36
|
constructor();
|
|
@@ -4,7 +4,7 @@ import { MoveTrailFill } from "./MoveTrailFill.js";
|
|
|
4
4
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
5
|
export declare class MoveTrail implements IMoveTrail, IOptionLoader<IMoveTrail> {
|
|
6
6
|
enable: boolean;
|
|
7
|
-
fill: MoveTrailFill;
|
|
7
|
+
readonly fill: MoveTrailFill;
|
|
8
8
|
length: number;
|
|
9
9
|
constructor();
|
|
10
10
|
load(data?: RecursivePartial<IMoveTrail>): void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
2
2
|
import type { IParticlesNumber } from "../../../Interfaces/Particles/Number/IParticlesNumber.js";
|
|
3
3
|
import { ParticlesDensity } from "./ParticlesDensity.js";
|
|
4
|
+
import { ParticlesNumberLimit } from "./ParticlesNumberLimit.js";
|
|
4
5
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
6
|
export declare class ParticlesNumber implements IParticlesNumber, IOptionLoader<IParticlesNumber> {
|
|
6
|
-
density: ParticlesDensity;
|
|
7
|
-
limit:
|
|
7
|
+
readonly density: ParticlesDensity;
|
|
8
|
+
limit: ParticlesNumberLimit;
|
|
8
9
|
value: number;
|
|
9
10
|
constructor();
|
|
10
11
|
load(data?: RecursivePartial<IParticlesNumber>): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
2
|
+
import type { IParticlesNumberLimit } from "../../../Interfaces/Particles/Number/IParticlesNumberLimit.js";
|
|
3
|
+
import { LimitMode } from "../../../../Enums/Modes/LimitMode.js";
|
|
4
|
+
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
|
+
export declare class ParticlesNumberLimit implements IParticlesNumberLimit, IOptionLoader<IParticlesNumberLimit> {
|
|
6
|
+
mode: LimitMode | keyof typeof LimitMode;
|
|
7
|
+
value: number;
|
|
8
|
+
constructor();
|
|
9
|
+
load(data?: RecursivePartial<IParticlesNumberLimit>): void;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IOpacity } from "../../../Interfaces/Particles/Opacity/IOpacity.js";
|
|
2
2
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
3
3
|
import { OpacityAnimation } from "./OpacityAnimation.js";
|
|
4
|
+
import { RangedAnimationValueWithRandom } from "../../ValueWithRandom.js";
|
|
4
5
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
animation: OpacityAnimation;
|
|
6
|
+
export declare class Opacity extends RangedAnimationValueWithRandom implements IOpacity, IOptionLoader<IOpacity> {
|
|
7
|
+
readonly animation: OpacityAnimation;
|
|
8
8
|
constructor();
|
|
9
9
|
load(data?: RecursivePartial<IOpacity>): void;
|
|
10
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AnimatableColor } from "../AnimatableColor.js";
|
|
2
2
|
import { Collisions } from "./Collisions/Collisions.js";
|
|
3
3
|
import type { Container } from "../../../Core/Container.js";
|
|
4
|
+
import { Effect } from "./Effect/Effect.js";
|
|
4
5
|
import type { Engine } from "../../../Core/Engine.js";
|
|
5
6
|
import type { IInteractivity } from "../../Interfaces/Interactivity/IInteractivity.js";
|
|
6
7
|
import type { IOptionLoader } from "../../Interfaces/IOptionLoader.js";
|
|
@@ -19,20 +20,21 @@ import { Stroke } from "./Stroke.js";
|
|
|
19
20
|
import { ZIndex } from "./ZIndex/ZIndex.js";
|
|
20
21
|
export declare class ParticlesOptions implements IParticlesOptions, IOptionLoader<IParticlesOptions> {
|
|
21
22
|
[name: string]: unknown;
|
|
22
|
-
bounce: ParticlesBounce;
|
|
23
|
-
collisions: Collisions;
|
|
23
|
+
readonly bounce: ParticlesBounce;
|
|
24
|
+
readonly collisions: Collisions;
|
|
24
25
|
color: AnimatableColor;
|
|
25
|
-
|
|
26
|
+
readonly effect: Effect;
|
|
27
|
+
readonly groups: ParticlesGroups;
|
|
26
28
|
interactivity?: RecursivePartial<IInteractivity>;
|
|
27
|
-
move: Move;
|
|
28
|
-
number: ParticlesNumber;
|
|
29
|
-
opacity: Opacity;
|
|
29
|
+
readonly move: Move;
|
|
30
|
+
readonly number: ParticlesNumber;
|
|
31
|
+
readonly opacity: Opacity;
|
|
30
32
|
reduceDuplicates: boolean;
|
|
31
|
-
shadow: Shadow;
|
|
32
|
-
shape: Shape;
|
|
33
|
-
size: Size;
|
|
33
|
+
readonly shadow: Shadow;
|
|
34
|
+
readonly shape: Shape;
|
|
35
|
+
readonly size: Size;
|
|
34
36
|
stroke: SingleOrMultiple<Stroke>;
|
|
35
|
-
zIndex: ZIndex;
|
|
37
|
+
readonly zIndex: ZIndex;
|
|
36
38
|
private readonly _container;
|
|
37
39
|
private readonly _engine;
|
|
38
40
|
constructor(engine: Engine, container?: Container);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader.js";
|
|
2
2
|
import type { ISize } from "../../../Interfaces/Particles/Size/ISize.js";
|
|
3
|
+
import { RangedAnimationValueWithRandom } from "../../ValueWithRandom.js";
|
|
3
4
|
import type { RecursivePartial } from "../../../../Types/RecursivePartial.js";
|
|
4
5
|
import { SizeAnimation } from "./SizeAnimation.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
animation: SizeAnimation;
|
|
6
|
+
export declare class Size extends RangedAnimationValueWithRandom implements ISize, IOptionLoader<ISize> {
|
|
7
|
+
readonly animation: SizeAnimation;
|
|
8
8
|
constructor();
|
|
9
9
|
load(data?: RecursivePartial<ISize>): void;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ import type { ITheme } from "../../Interfaces/Theme/ITheme.js";
|
|
|
4
4
|
import type { RecursivePartial } from "../../../Types/RecursivePartial.js";
|
|
5
5
|
import { ThemeDefault } from "./ThemeDefault.js";
|
|
6
6
|
export declare class Theme implements ITheme, IOptionLoader<ITheme> {
|
|
7
|
-
default: ThemeDefault;
|
|
7
|
+
readonly default: ThemeDefault;
|
|
8
8
|
name: string;
|
|
9
9
|
options?: RecursivePartial<IOptions>;
|
|
10
10
|
constructor();
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { AnimationOptions, RangedAnimationOptions } from "./AnimationOptions.js";
|
|
2
2
|
import type { IAnimationValueWithRandom, IRangedAnimationValueWithRandom, IValueWithRandom } from "../Interfaces/IValueWithRandom.js";
|
|
3
3
|
import type { IOptionLoader } from "../Interfaces/IOptionLoader.js";
|
|
4
|
-
import { Random } from "./Random.js";
|
|
5
4
|
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
6
5
|
import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
7
6
|
export declare class ValueWithRandom implements IValueWithRandom, IOptionLoader<IValueWithRandom> {
|
|
8
|
-
random: Random;
|
|
9
7
|
value: RangeValue;
|
|
10
8
|
constructor();
|
|
11
9
|
load(data?: RecursivePartial<IValueWithRandom>): void;
|
|
12
10
|
}
|
|
13
11
|
export declare class AnimationValueWithRandom extends ValueWithRandom implements IOptionLoader<IAnimationValueWithRandom> {
|
|
14
|
-
animation: AnimationOptions;
|
|
12
|
+
readonly animation: AnimationOptions;
|
|
15
13
|
constructor();
|
|
16
14
|
load(data?: RecursivePartial<IAnimationValueWithRandom>): void;
|
|
17
15
|
}
|
|
18
16
|
export declare class RangedAnimationValueWithRandom extends AnimationValueWithRandom implements IOptionLoader<IRangedAnimationValueWithRandom> {
|
|
19
|
-
animation: RangedAnimationOptions;
|
|
17
|
+
readonly animation: RangedAnimationOptions;
|
|
20
18
|
constructor();
|
|
21
19
|
load(data?: RecursivePartial<IRangedAnimationValueWithRandom>): void;
|
|
22
20
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { IAnimation, IRangedAnimation } from "./IAnimation.js";
|
|
2
|
-
import type { IRandom } from "./IRandom.js";
|
|
3
2
|
import type { RangeValue } from "../../Types/RangeValue.js";
|
|
4
3
|
export interface IValueWithRandom {
|
|
5
|
-
random: boolean | IRandom;
|
|
6
4
|
value: RangeValue;
|
|
7
5
|
}
|
|
8
6
|
export interface IAnimationValueWithRandom extends IValueWithRandom {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ClickMode } from "../../../../Enums/Modes/ClickMode.js";
|
|
2
1
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
3
2
|
export interface IClickEvent {
|
|
4
3
|
enable: boolean;
|
|
5
|
-
mode: SingleOrMultiple<
|
|
4
|
+
mode: SingleOrMultiple<string>;
|
|
6
5
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { DivMode } from "../../../../Enums/Modes/DivMode.js";
|
|
2
1
|
import type { DivType } from "../../../../Enums/Types/DivType.js";
|
|
3
2
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
4
3
|
export interface IDivEvent {
|
|
5
4
|
enable: boolean;
|
|
6
|
-
mode: SingleOrMultiple<
|
|
5
|
+
mode: SingleOrMultiple<string>;
|
|
7
6
|
selectors: SingleOrMultiple<string>;
|
|
8
7
|
type: DivType | keyof typeof DivType;
|
|
9
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { HoverMode } from "../../../../Enums/Modes/HoverMode.js";
|
|
2
1
|
import type { IParallax } from "./IParallax.js";
|
|
3
2
|
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
4
3
|
export interface IHoverEvent {
|
|
5
4
|
enable: boolean;
|
|
6
|
-
mode: SingleOrMultiple<
|
|
5
|
+
mode: SingleOrMultiple<string>;
|
|
7
6
|
parallax: IParallax;
|
|
8
7
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ShapeData } from "../../../../Types/ShapeData.js";
|
|
2
|
+
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple.js";
|
|
3
|
+
export interface IEffect {
|
|
4
|
+
close: boolean;
|
|
5
|
+
fill: boolean;
|
|
6
|
+
options: ShapeData;
|
|
7
|
+
type: SingleOrMultiple<string>;
|
|
8
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IAnimatableColor } from "../IAnimatableColor.js";
|
|
2
2
|
import type { ICollisions } from "./Collisions/ICollisions.js";
|
|
3
|
+
import type { IEffect } from "./Effect/IEffect.js";
|
|
3
4
|
import type { IInteractivity } from "../Interactivity/IInteractivity.js";
|
|
4
5
|
import type { IMove } from "./Move/IMove.js";
|
|
5
6
|
import type { IOpacity } from "./Opacity/IOpacity.js";
|
|
@@ -18,6 +19,7 @@ export interface IParticlesOptions {
|
|
|
18
19
|
bounce: IParticlesBounce;
|
|
19
20
|
collisions: ICollisions;
|
|
20
21
|
color: IAnimatableColor;
|
|
22
|
+
effect: IEffect;
|
|
21
23
|
groups: ParticlesGroups;
|
|
22
24
|
interactivity?: RecursivePartial<IInteractivity>;
|
|
23
25
|
move: IMove;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IParticlesDensity } from "./IParticlesDensity.js";
|
|
2
|
+
import type { IParticlesNumberLimit } from "./IParticlesNumberLimit.js";
|
|
2
3
|
export interface IParticlesNumber {
|
|
3
4
|
density: IParticlesDensity;
|
|
4
|
-
limit:
|
|
5
|
+
limit: IParticlesNumberLimit;
|
|
5
6
|
value: number;
|
|
6
7
|
}
|