react-simple-arrows
Version:
react components which make it simple to draw svg arrows in a react app
13 lines (12 loc) • 391 B
TypeScript
import { Position } from '../constants';
import { Coordinates } from './useCoordinatesPerId';
export declare enum ArrowAnchorPlacement {
TOP = "TOP",
BOTTOM = "BOTTOM",
LEFT = "LEFT",
RIGHT = "RIGHT"
}
export declare const getArrowAnchorPositionForCoordinates: ({ coordinates, placement }: {
coordinates: Coordinates;
placement: ArrowAnchorPlacement;
}) => Position;