@tsparticles/confetti
Version:
tsParticles confetti bundle — easily create confetti, confetti cannon, confetti explosions, confetti falling, and confetti parade animations with presets. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact,
27 lines (26 loc) • 915 B
TypeScript
import { type ICoordinates, type IOptionLoader, type RecursivePartial, type ShapeData, type SingleOrMultiple } from "@tsparticles/engine";
import type { IConfettiOptions } from "./IConfettiOptions.js";
export declare class ConfettiOptions implements IConfettiOptions, IOptionLoader<IConfettiOptions> {
angle: number;
colors: SingleOrMultiple<string>;
count: number;
decay: number;
disableForReducedMotion: boolean;
drift: number;
flat: boolean;
gravity: number;
position: ICoordinates;
scalar: number;
shapeOptions: ShapeData;
shapes: SingleOrMultiple<string>;
spread: number;
startVelocity: number;
ticks: number;
zIndex: number;
constructor();
get origin(): ICoordinates;
set origin(value: ICoordinates);
get particleCount(): number;
set particleCount(value: number);
load(data?: RecursivePartial<IConfettiOptions>): void;
}