tsparticles
Version:
Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.
26 lines (25 loc) • 1.12 kB
TypeScript
import type { IOptions } from "../../Interfaces/Options/IOptions";
import type { IInteractivity } from "../../Interfaces/Options/Interactivity/IInteractivity";
import type { IParticles } from "../../Interfaces/Options/Particles/IParticles";
import type { IPolygonMask } from "../../Interfaces/Options/PolygonMask/IPolygonMask";
import type { IBackgroundMask } from "../../Interfaces/Options/BackgroundMask/IBackgroundMask";
import type { RecursivePartial } from "../../Types/RecursivePartial";
import type { IBackground } from "../../Interfaces/Options/Background/IBackground";
export declare class Options implements IOptions {
get fps_limit(): number;
set fps_limit(value: number);
get retina_detect(): boolean;
set retina_detect(value: boolean);
detectRetina: boolean;
fpsLimit: number;
interactivity: IInteractivity;
particles: IParticles;
polygon: IPolygonMask;
backgroundMask: IBackgroundMask;
pauseOnBlur: boolean;
preset?: string | string[];
background: IBackground;
constructor();
load(data: RecursivePartial<IOptions>): void;
private importPreset;
}