UNPKG

react-native-leader-line

Version:

React Native port of leader-line library for drawing arrow lines and connectors

32 lines 897 B
import { Point, SocketPosition } from "../types"; export declare const useAttachment: (options: { startAttachment?: any; endAttachment?: any; observeLayout?: boolean; throttleMs?: number; onAttachmentChange?: (event: any) => void; }) => { startPoint: Point | null; endPoint: Point | null; startSocket: SocketPosition; endSocket: SocketPosition; isConnected: boolean; startState: { isConnected: boolean; lastUpdate: number; computedSocket: SocketPosition; effectivePoint: Point; isVisible: boolean; }; endState: { isConnected: boolean; lastUpdate: number; computedSocket: SocketPosition; effectivePoint: Point; isVisible: boolean; }; forceUpdate: () => void; reset: () => void; }; export default useAttachment; //# sourceMappingURL=useAttachment.d.ts.map