File size: 579 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { type OnDrag } from '@xyflow/system';
import type { SvelteFlowStore } from '../../store/types';
export type UseDragParams = {
    store: SvelteFlowStore;
    disabled?: boolean;
    noDragClass?: string;
    handleSelector?: string;
    nodeId?: string;
    isSelectable?: boolean;
    nodeClickDistance?: number;
    onDrag?: OnDrag;
    onDragStart?: OnDrag;
    onDragStop?: OnDrag;
    onNodeMouseDown?: (id: string) => void;
};
export default function drag(domNode: Element, params: UseDragParams): {
    update(params: UseDragParams): void;
    destroy(): void;
};