UNPKG

tsparticles

Version:

Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.

15 lines (14 loc) 1.07 kB
import { Container } from "./Container"; import type { IOptions } from "../Interfaces/Options/IOptions"; import type { RecursivePartial } from "../Types/RecursivePartial"; export declare class Loader { static dom(): Container[]; static domItem(index: number): Container | undefined; static loadFromArray(tagId: string, params: RecursivePartial<IOptions>[], index?: number): Promise<Container | undefined>; static setFromArray(id: string, domContainer: HTMLElement, params: RecursivePartial<IOptions>[], index?: number): Promise<Container | undefined>; static load(tagId: string, params?: RecursivePartial<IOptions>): Promise<Container | undefined>; static set(id: string, domContainer: HTMLElement, params?: RecursivePartial<IOptions>): Promise<Container | undefined>; static loadJSON(tagId: string, jsonUrl: string): Promise<Container | undefined>; static setJSON(id: string, domContainer: HTMLElement, jsonUrl: string): Promise<Container | undefined>; static setOnClickHandler(callback: EventListenerOrEventListenerObject): void; }