UNPKG

@matthewgapp/solidjs-flow

Version:

React Flow - A highly customizable React library for building node-based editors and interactive flow charts.

20 lines 783 B
import type { SolidFlowStore } from '../types/store'; type UseConnectionResult = { /** The start handle where the user interaction started or null */ startHandle: SolidFlowStore['connectionStartHandle']; /** The target handle that's inside the connection radius or null */ endHandle: SolidFlowStore['connectionEndHandle']; /** The current connection status 'valid', 'invalid' or null*/ status: SolidFlowStore['connectionStatus']; /** The current connection position or null */ position: SolidFlowStore['connectionPosition'] | null; }; /** * Hook for accessing the ongoing connection. * * @public * @returns ongoing connection */ export declare function useConnection(): UseConnectionResult; export {}; //# sourceMappingURL=useConnection.d.ts.map