ta-react-xarrows
Version:
Draw arrows (or lines) between components in React!
20 lines • 613 B
TypeScript
/**
* utility functions for preparing `startAnchor` and `endAnchor` to accept the diffrent types that can be passed.
*/
import { anchorPositionType } from '../types';
export declare const prepareAnchorLines: (anchor: any, anchorPos: any) => {
x: any;
y: any;
anchorPosition: "middle" | "left" | "right" | "top" | "bottom" | "auto";
}[];
declare type t1 = {
x: number;
y: number;
anchorPosition: anchorPositionType;
};
export declare const getShortestLine: (sPoints: t1[], ePoints: t1[]) => {
startPointObj: t1;
endPointObj: t1;
};
export {};
//# sourceMappingURL=anchors.d.ts.map