training_data/packages/ui/src/components/mindmap/MindMapEdge.tsx

16 lines
360 B
TypeScript
Executable File

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;