UNPKG

@tsparticles/particles

Version:

Minimal tsParticles particles bundle — lightweight particle engine without confetti or fireworks extras. Perfect for pure particle backgrounds. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, In

18 lines (17 loc) 934 B
import { type RecursivePartial } from "@tsparticles/engine"; import type { IParticlesOptions } from "./IParticlesOptions.js"; import type { ParticlesFunc } from "./types.js"; import type { ParticlesInstance } from "./ParticlesInstance.js"; declare global { var particles: ParticlesFunc & { create: (canvas?: HTMLCanvasElement | null, options?: RecursivePartial<IParticlesOptions>) => Promise<ParticlesInstance | undefined>; init: () => Promise<void>; version: string; }; } export declare function particles(idOrOptions?: string | RecursivePartial<IParticlesOptions>, sourceOptions?: RecursivePartial<IParticlesOptions>): Promise<ParticlesInstance | undefined>; export declare namespace particles { var create: (canvas?: HTMLCanvasElement | null, options?: RecursivePartial<IParticlesOptions>) => Promise<ParticlesInstance | undefined>; var init: () => Promise<void>; var version: string; }