UNPKG

@tsparticles/interaction-particles-attract

Version:

tsParticles attract particles interaction

15 lines (14 loc) 721 B
import type { AttractParticle, IParticlesAttractOptions, ParticlesAttractOptions } from "./Types.js"; import { type Container, type RecursivePartial } from "@tsparticles/engine"; import { ParticlesInteractorBase } from "@tsparticles/plugin-interactivity"; export declare class Attractor extends ParticlesInteractorBase<Container, AttractParticle> { #private; constructor(container: Container); get maxDistance(): number; clear(): void; init(): void; interact(p1: AttractParticle): void; isEnabled(particle: AttractParticle): boolean; loadParticlesOptions(options: ParticlesAttractOptions, ...sources: (RecursivePartial<IParticlesAttractOptions> | undefined)[]): void; reset(): void; }