@qwu4xyv/system-flow
Version:
xyflow core system that powers React Flow and Svelte Flow.
14 lines • 1.01 kB
TypeScript
import { ConnectionStatus, type HandleType, type NodeHandleBounds, type XYPosition, type ConnectionHandle, InternalNodeBase, NodeLookup } from '../types';
export declare function getHandles(node: InternalNodeBase, handleBounds: NodeHandleBounds, type: HandleType, currentHandle: string): ConnectionHandle[];
export declare function getClosestHandle(pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[]): ConnectionHandle | null;
type GetHandleLookupParams = {
nodeLookup: NodeLookup;
nodeId: string;
handleId: string | null;
handleType: string;
};
export declare function getHandleLookup({ nodeLookup, nodeId, handleId, handleType, }: GetHandleLookupParams): ConnectionHandle[];
export declare function getHandleType(edgeUpdaterType: HandleType | undefined, handleDomNode: Element | null): HandleType | null;
export declare function getConnectionStatus(isInsideConnectionRadius: boolean, isHandleValid: boolean): ConnectionStatus;
export {};
//# sourceMappingURL=utils.d.ts.map