UNPKG

@tsparticles/interaction-external-grab

Version:

tsParticles grab external interaction

13 lines (12 loc) 619 B
import { type Engine, ExternalInteractorBase, type IModes, type Modes, type Particle, type RecursivePartial } from "@tsparticles/engine"; import type { GrabContainer, GrabMode, IGrabMode } from "./Types.js"; export declare class Grabber extends ExternalInteractorBase<GrabContainer> { private readonly _engine; constructor(container: GrabContainer, engine: Engine); clear(): void; init(): void; interact(): void; isEnabled(particle?: Particle): boolean; loadModeOptions(options: Modes & GrabMode, ...sources: RecursivePartial<(IModes & IGrabMode) | undefined>[]): void; reset(): void; }