DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
579 Bytes
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;
};