UNPKG

@tsparticles/plugin-emitters

Version:

tsParticles emitters plugin

26 lines (25 loc) 1.2 kB
import { AnimatableColor, type IOptionLoader, type IParticlesOptions, type IRangedCoordinates, type MoveDirection, type MoveDirectionAlt, type RecursivePartial, type SingleOrMultiple } from "@tsparticles/engine"; import { EmitterLife } from "./EmitterLife.js"; import { EmitterRate } from "./EmitterRate.js"; import { EmitterShape } from "./EmitterShape.js"; import { EmitterSize } from "./EmitterSize.js"; import { EmitterSpawn } from "./EmitterSpawn.js"; import type { IEmitter } from "../Interfaces/IEmitter.js"; export declare class Emitter implements IEmitter, IOptionLoader<IEmitter> { autoPlay: boolean; direction?: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt | number; domId?: string; fill: boolean; readonly life: EmitterLife; name?: string; particles?: SingleOrMultiple<RecursivePartial<IParticlesOptions>>; position?: RecursivePartial<IRangedCoordinates>; readonly rate: EmitterRate; readonly shape: EmitterShape; size?: EmitterSize; readonly spawn: EmitterSpawn; spawnFillColor?: AnimatableColor; spawnStrokeColor?: AnimatableColor; startCount: number; load(data?: RecursivePartial<IEmitter>): void; }