16 lines
360 B
TypeScript
Executable File
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; |