Shivam311's picture
feat: CodeAtlas Enterprise - IBM Bob Engineering Intelligence Platform
3a7842d
Raw
History Blame Contribute Delete
487 Bytes
import { BaseEdge, getBezierPath } from '@xyflow/react';
export default function WorkflowEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, markerEnd, selected }) {
const [path] = getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition });
return (
<BaseEdge
id={id}
path={path}
markerEnd={markerEnd}
style={{ stroke: selected ? '#FBBF24' : '#38BDF8', strokeWidth: selected ? 3 : 2 }}
/>
);
}