@tsparticles/interaction-external-grab
Version:
tsParticles grab external interaction
5 lines (4 loc) • 471 B
TypeScript
import type { GrabContainer, LinkParticle } from "./Types.js";
import { type ICoordinates, type IRgb } from "@tsparticles/engine";
export declare function drawGrabLine(context: OffscreenCanvasRenderingContext2D, width: number, begin: ICoordinates, end: ICoordinates, colorLine: IRgb, opacity: number, hdr?: boolean): void;
export declare function drawGrab(container: GrabContainer, particle: LinkParticle, lineColor: IRgb, opacity: number, mousePos: ICoordinates): void;