UNPKG

tsparticles

Version:

Easily create highly customizable particle 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) 569 B
import { IDelta, IParticlesInteractor } from "./Interfaces"; import { Particle } from "./Particle"; import { Container } from "./Container"; import { InteractorType } from "../Enums"; export declare abstract class ParticlesInteractorBase implements IParticlesInteractor { protected readonly container: Container; protected constructor(container: Container); type: InteractorType; abstract interact(particle: Particle, delta: IDelta): void; abstract isEnabled(particle: Particle): boolean; abstract reset(particle: Particle): void; }