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.
13 lines (12 loc) • 587 B
TypeScript
import type { IDelta, IParticlesInteractor } from "../Interfaces";
import type { Container } from "../Container";
import { InteractorType } from "../../Enums";
import type { Particle } from "../Particle";
export declare abstract class ParticlesInteractorBase implements IParticlesInteractor {
protected readonly container: Container;
protected constructor(container: Container);
type: InteractorType;
abstract interact(particle: Particle, delta: IDelta): Promise<void>;
abstract isEnabled(particle: Particle): boolean;
abstract reset(particle: Particle): void;
}