tsparticles
Version:
Easily create highly customizable particle, confetti and fireworks 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.
33 lines (32 loc) • 1.36 kB
TypeScript
import { MoveDirection, MoveDirectionAlt } from "../../../../Enums";
import { AnimatableColor } from "../../../../Options/Classes/AnimatableColor";
import { EmitterLife } from "./EmitterLife";
import { EmitterRate } from "./EmitterRate";
import { EmitterShapeType } from "../../Enums";
import { EmitterSize } from "./EmitterSize";
import type { IEmitter } from "../Interfaces/IEmitter";
import type { IOptionLoader } from "../../../../Options/Interfaces/IOptionLoader";
import type { IParticles } from "../../../../Options/Interfaces/Particles/IParticles";
import type { IRangedCoordinates } from "../../../../Core";
import type { RecursivePartial } from "../../../../Types";
/**
* [[include:Options/Plugins/Emitters.md]]
* @category Emitters Plugin
*/
export declare class Emitter implements IEmitter, IOptionLoader<IEmitter> {
autoPlay: boolean;
size?: EmitterSize;
direction?: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt | number;
domId?: string;
fill: boolean;
life: EmitterLife;
name?: string;
particles?: RecursivePartial<IParticles>;
position?: RecursivePartial<IRangedCoordinates>;
rate: EmitterRate;
shape: EmitterShapeType | keyof typeof EmitterShapeType;
spawnColor?: AnimatableColor;
startCount: number;
constructor();
load(data?: RecursivePartial<IEmitter>): void;
}