UNPKG

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.

15 lines (14 loc) 984 B
import { Container } from "./Container"; import type { IOptions } from "../Options/Interfaces/IOptions"; import type { RecursivePartial } from "../Types"; import type { Particle } from "./Particle"; import type { SingleOrMultiple } from "../Types"; export declare class Loader { static dom(): Container[]; static domItem(index: number): Container | undefined; static load(tagId: string, options?: SingleOrMultiple<RecursivePartial<IOptions>>, index?: number): Promise<Container | undefined>; static set(id: string, domContainer: HTMLElement, options?: SingleOrMultiple<RecursivePartial<IOptions>>, index?: number): Promise<Container | undefined>; static loadJSON(tagId: string, jsonUrl: SingleOrMultiple<string>, index?: number): Promise<Container | undefined>; static setJSON(id: string, domContainer: HTMLElement, jsonUrl: string): Promise<Container | undefined>; static setOnClickHandler(callback: (evt: Event, particles?: Particle[]) => void): void; }