-
-
Notifications
You must be signed in to change notification settings - Fork 798
/
Types.ts
39 lines (34 loc) · 1.09 KB
/
Types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import type {
GradientType,
IParticleHslAnimation,
IParticleNumericValueAnimation,
IParticlesOptions,
Particle,
ParticlesOptions,
SingleOrMultiple,
} from "@tsparticles/engine";
import type { AnimatableGradient } from "./Options/Classes/AnimatableGradient.js";
import type { IAnimatableGradient } from "./Options/Interfaces/IAnimatableGradient.js";
export interface IParticleGradientColorAnimation {
opacity?: IParticleNumericValueAnimation;
stop: number;
value: IParticleHslAnimation;
}
export interface IParticleGradientAnimation {
angle: IParticleNumericValueAnimation;
colors: IParticleGradientColorAnimation[];
type: GradientType;
}
export type GradientParticle = Particle & {
/**
* Gets the particle gradient options
*/
gradient?: IParticleGradientAnimation;
options: GradientParticlesOptions;
};
export type IGradientParticlesOptions = IParticlesOptions & {
gradient?: SingleOrMultiple<IAnimatableGradient>;
};
export type GradientParticlesOptions = ParticlesOptions & {
gradient?: SingleOrMultiple<AnimatableGradient>;
};