UNPKG

@tsparticles/fireworks

Version:

tsParticles fireworks bundle — easily create spectacular fireworks and fountain particle effects with built-in presets. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

8 lines (7 loc) 688 B
import { type CustomEventArgs, type Engine, type ISourceOptions, type RecursivePartial } from "@tsparticles/engine"; import type { FireworksInstance } from "./FireworksInstance.js"; import type { IFireworkOptions } from "./IFireworkOptions.js"; export declare function deleteFireworksInstance(id: string): void; export declare const explodeSoundCheck: (args: CustomEventArgs) => boolean; export declare function getOptions(options: IFireworkOptions, canvas?: HTMLCanvasElement): ISourceOptions; export declare function getFireworksInstance(engine: Engine, id: string, sourceOptions: RecursivePartial<IFireworkOptions>, canvas?: HTMLCanvasElement): Promise<FireworksInstance | undefined>;