From 08ec175800f53ecbb7b614ef4e54a2bc5d72dbcb Mon Sep 17 00:00:00 2001 From: 1ilit Date: Tue, 23 Jan 2024 09:06:02 +0200 Subject: [PATCH] Fix inverted relationship labels on a straight line --- src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index 243cfb6..5b65617 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -599,7 +599,7 @@ const calcPath = (x1, x2, y1, y2, startFieldId, endFieldId, zoom = 1) => { if (x1 + tableWidth <= x2) return `M ${x1 + tableWidth - 2 * offsetX} ${y1} L ${x2} ${y2 + 0.1}`; else if (x2 + tableWidth < x1) - return `M ${x2 + tableWidth - 2 * offsetX} ${y2} L ${x1} ${y1 + 0.1}`; + return `M ${x1} ${y1} L ${x2 + tableWidth - 2 * offsetX} ${y2 + 0.1}`; } }