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

6 lines (5 loc) 460 B
import type { Engine, RecursivePartial } from "@tsparticles/engine"; import type { IParticlesOptions } from "./IParticlesOptions.js"; import type { ParticlesInstance } from "./ParticlesInstance.js"; export declare function deleteParticlesInstance(id: string): void; export declare function getParticlesInstance(engine: Engine, id: string, sourceOptions: RecursivePartial<IParticlesOptions>, canvas?: HTMLCanvasElement): Promise<ParticlesInstance | undefined>;