chore(base-edge): wider default interaction width

This commit is contained in:
moklick
2022-09-07 17:48:20 +02:00
parent 51e957e5db
commit 17dd64166b
@@ -14,7 +14,7 @@ const BaseEdge = ({
style, style,
markerEnd, markerEnd,
markerStart, markerStart,
interactionWidth = 15, interactionWidth = 20,
}: BaseEdgeProps) => { }: BaseEdgeProps) => {
return ( return (
<> <>
@@ -26,7 +26,7 @@ const BaseEdge = ({
markerEnd={markerEnd} markerEnd={markerEnd}
markerStart={markerStart} markerStart={markerStart}
/> />
{interactionWidth && <path d={path} fill="none" strokeWidth={interactionWidth} />} {interactionWidth && <path d={path} fill="none" strokeOpacity={0} strokeWidth={interactionWidth} />}
{label ? ( {label ? (
<EdgeText <EdgeText
x={centerX} x={centerX}