UNPKG

reagraph

Version:

WebGL Node-based Graph for React

14 lines (13 loc) 570 B
import { Vector3 } from 'three'; import { InternalGraphPosition } from '../types'; import { CenterPositionVector } from '../utils/layout'; interface DragParams { draggable: boolean; position: InternalGraphPosition; bounds?: CenterPositionVector; set: (position: Vector3) => void; onDragStart: () => void; onDragEnd: () => void; } export declare const useDrag: ({ draggable, set, position, bounds, onDragStart, onDragEnd }: DragParams) => (...args: any[]) => import('@use-gesture/react/dist/declarations/src/types').ReactDOMAttributes; export {};