@xyflow/svelte
Version:
Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.
12 lines (11 loc) • 446 B
TypeScript
import { type PanZoomInstance, type XYMinimapUpdate } from '@xyflow/system';
import type { SvelteFlowStore } from '../../store/types';
export type UseInteractiveParams = {
panZoom: PanZoomInstance;
store: SvelteFlowStore;
getViewScale: () => number;
} & XYMinimapUpdate;
export default function interactive(domNode: Element, params: UseInteractiveParams): {
update: (params: UseInteractiveParams) => void;
destroy(): void;
};