@visx/shape
Version:
visx shape
11 lines • 763 B
TypeScript
import type { SharedLinkProps, AccessorProps, AddSVGProps } from '../../../types';
export declare function pathHorizontalCurve<Link, Node>({ source, target, x, y, percent, }: Required<AccessorProps<Link, Node>> & {
percent: number;
}): (link: Link) => string;
export type LinkHorizontalCurveProps<Link, Node> = AccessorProps<Link, Node> & SharedLinkProps<Link> & {
percent?: number;
};
export default function LinkHorizontalCurve<Link, Node>({ className, children, data, innerRef, path, percent, x, // note this returns a y value
y, // note this returns an x value
source, target, ...restProps }: AddSVGProps<LinkHorizontalCurveProps<Link, Node>, SVGPathElement>): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=LinkHorizontalCurve.d.ts.map