From 21310d02ce7148fc5fd5132a3ad2b0e803641d33 Mon Sep 17 00:00:00 2001 From: Shubham Date: Sat, 12 Sep 2026 17:46:40 +0100 Subject: [PATCH] fix() : Arrow connection appears misaligned issue --- src/components/custom-edge/pathUtils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/custom-edge/pathUtils.ts b/src/components/custom-edge/pathUtils.ts index 8b286fa9..9da29d15 100644 --- a/src/components/custom-edge/pathUtils.ts +++ b/src/components/custom-edge/pathUtils.ts @@ -247,14 +247,13 @@ export function buildEdgePath( params.sourcePosition, pairOffset + ((isMindmapBranch || shouldUseSharedSourceTrunk) ? 0 : sourceFanoutOffset) ); - const targetOffset = getOffsetVector(params.targetPosition, pairOffset + targetFanoutOffset); const sourcePoint = applyAnchorClearance( { x: params.sourceX + sourceOffset.x, y: params.sourceY + sourceOffset.y }, params.sourcePosition, sourceMermaidAnchorClearance ); const targetPoint = applyAnchorClearance( - { x: params.targetX + targetOffset.x, y: params.targetY + targetOffset.y }, + { x: params.targetX, y: params.targetY }, params.targetPosition, targetMermaidAnchorClearance );