import React from 'react' import { BaseEdge, getBezierPath, type EdgeProps, } from '@xyflow/react' const EDGE_STROKE_WIDTH = 2 const DOT_MARKER_R = 1.5 export function AnimatedEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, labelX, labelY, interactionWidth, }: EdgeProps) { const [edgePath] = getBezierPath({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, }) const startId = `animated-edge-dot-start-${id}` const endId = `animated-edge-dot-end-${id}` return ( <> ) }