/
IParticlesJSOptions.ts
68 lines (67 loc) · 2.4 KB
/
IParticlesJSOptions.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import type { IOptions, InteractivityDetect } from "tsparticles-engine";
import type { IStroke } from "tsparticles-engine/Options/Interfaces/Particles/IStroke";
import type { IShapeValues } from "tsparticles-engine/Options/Interfaces/Particles/Shape/IShapeValues";
import type { ILinks } from "tsparticles-engine/Options/Interfaces/Particles/Links/ILinks";
import type { IParticles } from "tsparticles-engine/Options/Interfaces/Particles/IParticles";
import type { IHoverEvent } from "tsparticles-engine/Options/Interfaces/Interactivity/Events/IHoverEvent";
import type { IClickEvent } from "tsparticles-engine/Options/Interfaces/Interactivity/Events/IClickEvent";
import type { IGrabLinks } from "tsparticles-engine/Options/Interfaces/Interactivity/Modes/IGrabLinks";
import type { IOpacityAnimation } from "tsparticles-engine/Options/Interfaces/Particles/Opacity/IOpacityAnimation";
import type { ISizeAnimation } from "tsparticles-engine/Options/Interfaces/Particles/Size/ISizeAnimation";
import type { OutMode, OutModeAlt } from "tsparticles-engine";
export type IParticlesJSOptions = IOptions & {
retina_detect?: boolean;
interactivity: {
detect_on?: InteractivityDetect | keyof typeof InteractivityDetect;
events: {
onhover?: IHoverEvent;
onclick?: IClickEvent;
};
modes: {
bubble: {
speed?: number;
};
grab: {
line_linked?: IGrabLinks;
};
push: {
particles_nb?: number;
};
remove: {
particles_nb?: number;
};
};
};
particles: IParticles & {
line_linked?: ILinks;
move: {
out_mode?: OutMode | keyof typeof OutMode | OutModeAlt;
attract: {
rotateX?: number;
rotateY?: number;
};
};
number: {
density: {
value_area?: number;
};
};
opacity: {
random?: boolean;
anim?: IOpacityAnimation & {
opacity_min?: number;
};
};
shape: {
stroke?: IStroke;
polygon?: IShapeValues;
image?: IShapeValues;
};
size: {
random?: boolean;
anim?: ISizeAnimation & {
size_min?: number;
};
};
};
};