UNPKG

@tsparticles/interaction-external-bounce

Version:

tsParticles bounce external interaction

7 lines (6 loc) 622 B
import { type IBounds, type Particle, type SingleOrMultiple } from "@tsparticles/engine"; import { type DivEvent, type IInteractivityData } from "@tsparticles/plugin-interactivity"; import type { BounceContainer } from "./Types.js"; export declare function divBounce(container: BounceContainer, divs: SingleOrMultiple<DivEvent>, bounceMode: string, enabledCb: (p: Particle) => boolean): void; export declare function mouseBounce(container: BounceContainer, interactivityData: IInteractivityData, enabledCb: (p: Particle) => boolean): void; export declare function rectBounce(particle: Particle, divBounds: IBounds): void;