From fb8d224e0c59b0f152be966a11f8504c89e8e9a0 Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Mon, 7 Apr 2025 10:10:14 +0100 Subject: [PATCH] feat: apply feedback --- .../visual-editor/v2/AdvancedLink/AdvancedLinkFactory.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/visual-editor/v2/AdvancedLink/AdvancedLinkFactory.tsx b/frontend/src/components/visual-editor/v2/AdvancedLink/AdvancedLinkFactory.tsx index b5ec85de..34920a54 100644 --- a/frontend/src/components/visual-editor/v2/AdvancedLink/AdvancedLinkFactory.tsx +++ b/frontend/src/components/visual-editor/v2/AdvancedLink/AdvancedLinkFactory.tsx @@ -309,13 +309,13 @@ export class AdvancedLinkFactory extends DefaultLinkFactory { const adjustedStartPoint: Point = getPortCenterPoint(sourcePort); // Handle self-loop (curved) links const targetPortHeight = targetPort.height; - const targetNdeHeight = + const targetNodeHeight = (targetPort.getPosition().y - targetPort.getNode().getPosition().y) * 2 + targetPortHeight; - path = createCurvedPath(adjustedStartPoint, endPoint, targetNdeHeight); + path = createCurvedPath(adjustedStartPoint, endPoint, targetNodeHeight); } else if (isBackward) { // Handle backward (leftward) link with refined function path = createBackwardCurvedPath(sourcePort, targetPort);