feat(edges): add interactionWidth option #1580 #1114

This commit is contained in:
moklick
2022-09-07 17:43:36 +02:00
parent 7a96817114
commit 51e957e5db
10 changed files with 62 additions and 61 deletions
@@ -143,7 +143,8 @@ const BezierEdge = memo(
style,
markerEnd,
markerStart,
options,
pathOptions,
interactionWidth,
}: BezierEdgeProps) => {
const params = {
sourceX,
@@ -152,7 +153,7 @@ const BezierEdge = memo(
targetX,
targetY,
targetPosition,
curvature: options?.curvature,
curvature: pathOptions?.curvature,
};
const path = getBezierPath(params);
const [centerX, centerY] = getBezierCenter(params);
@@ -171,6 +172,7 @@ const BezierEdge = memo(
style={style}
markerEnd={markerEnd}
markerStart={markerStart}
interactionWidth={interactionWidth}
/>
);
}