UNPKG

@tsparticles/engine

Version:

Easily create highly customizable particle, confetti and fireworks 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.

43 lines (42 loc) 1.64 kB
import { Background } from "./Background/Background.js"; import type { Container } from "../../Core/Container.js"; import { FullScreen } from "./FullScreen/FullScreen.js"; import type { IOptionLoader } from "../Interfaces/IOptionLoader.js"; import type { IOptions } from "../Interfaces/IOptions.js"; import type { ISourceOptions } from "../../Types/ISourceOptions.js"; import type { PluginManager } from "../../Core/Utils/PluginManager.js"; import type { RangeValue } from "../../Types/RangeValue.js"; import type { RecursivePartial } from "../../Types/RecursivePartial.js"; import { ResizeEvent } from "./ResizeEvent.js"; import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js"; export interface DefaultThemes { dark?: string; light?: string; } export declare class Options implements IOptions, IOptionLoader<IOptions> { #private; [name: string]: unknown; autoPlay: boolean; readonly background: Background; clear: boolean; defaultThemes: DefaultThemes; delay: RangeValue; detectRetina: boolean; duration: RangeValue; fpsLimit: number; readonly fullScreen: FullScreen; hdr: boolean; key?: string; name?: string; palette?: string; readonly particles: import("./Particles/ParticlesOptions.js").ParticlesOptions; pauseOnBlur: boolean; pauseOnOutsideViewport: boolean; preset?: SingleOrMultiple<string>; readonly resize: ResizeEvent; smooth: boolean; style: RecursivePartial<CSSStyleDeclaration>; zLayers: number; constructor(pluginManager: PluginManager, container: Container); load(data?: ISourceOptions): void; }