tsparticles
Version:
Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.
44 lines (43 loc) • 1.73 kB
TypeScript
import type { IOptions } from "../Interfaces/IOptions";
import { Interactivity } from "./Interactivity/Interactivity";
import { ParticlesOptions } from "./Particles/ParticlesOptions";
import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
import type { RangeValue, RecursivePartial } from "../../Types";
import { Background } from "./Background/Background";
import type { IOptionLoader } from "../Interfaces/IOptionLoader";
import { Theme } from "./Theme/Theme";
import { FullScreen } from "./FullScreen/FullScreen";
import { Motion } from "./Motion/Motion";
import { ManualParticle } from "./ManualParticle";
import { Responsive } from "./Responsive";
export declare class Options implements IOptions, IOptionLoader<IOptions> {
get fps_limit(): number;
set fps_limit(value: number);
get retina_detect(): boolean;
set retina_detect(value: boolean);
get backgroundMode(): FullScreen;
set backgroundMode(value: FullScreen);
autoPlay: boolean;
background: Background;
backgroundMask: BackgroundMask;
detectRetina: boolean;
duration: RangeValue;
fpsLimit: number;
fullScreen: FullScreen;
interactivity: Interactivity;
manualParticles: ManualParticle[];
motion: Motion;
particles: ParticlesOptions;
pauseOnBlur: boolean;
pauseOnOutsideViewport: boolean;
preset?: string | string[];
responsive: Responsive[];
themes: Theme[];
zLayers: number;
[name: string]: unknown;
constructor();
load(data?: RecursivePartial<IOptions>): void;
setTheme(name?: string): void;
private importPreset;
setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): void;
}