16 lines
360 B
TypeScript
16 lines
360 B
TypeScript
![]() |
import { BaseEdge, EdgeProps, getBezierPath, getStraightPath } from '@xyflow/react';
|
||
|
|
||
|
function MindMapEdge(props: EdgeProps) {
|
||
|
const { sourceX, sourceY, targetX, targetY } = props;
|
||
|
|
||
|
const [edgePath] = getBezierPath({
|
||
|
sourceX,
|
||
|
sourceY,
|
||
|
targetX,
|
||
|
targetY,
|
||
|
});
|
||
|
|
||
|
return <BaseEdge path={edgePath} {...props} />;
|
||
|
}
|
||
|
|
||
|
export default MindMapEdge;
|