@tsparticles/interaction-external-grab
Version:
tsParticles grab external interaction
15 lines (14 loc) • 834 B
TypeScript
import { ExternalInteractorBase, type IInteractivityData, type IModes, type InteractivityParticle, type Modes } from "@tsparticles/plugin-interactivity";
import type { GrabContainer, GrabMode, IGrabMode } from "./Types.js";
import { type PluginManager, type RecursivePartial } from "@tsparticles/engine";
export declare class Grabber extends ExternalInteractorBase<GrabContainer> {
#private;
constructor(pluginManager: PluginManager, container: GrabContainer);
get maxDistance(): number;
clear(): void;
init(): void;
interact(interactivityData: IInteractivityData): void;
isEnabled(interactivityData: IInteractivityData, particle?: InteractivityParticle): boolean;
loadModeOptions(options: Modes & GrabMode, ...sources: RecursivePartial<(IModes & IGrabMode) | undefined>[]): void;
reset(): void;
}