From c3652331ea631d41da27718f5e0194a3ff7e7319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Mon, 15 Jan 2024 17:50:24 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=9A=84=E5=85=B3=E8=81=94=E7=BA=BF=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=A7=8B=E7=BB=88=E5=9C=A8=E8=8A=82=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E6=B2=A1=E6=9C=89=E6=A0=B9=E6=8D=AE=E7=9B=B8?= =?UTF-8?q?=E5=AF=B9=E4=BD=8D=E7=BD=AE=E8=B0=83=E6=95=B4=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/associativeLine/associativeLineUtils.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js b/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js index 38d52ffc..56e55f02 100644 --- a/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js +++ b/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js @@ -169,22 +169,26 @@ export const getNodePoint = (node, dir = 'right', range = 0, e = null) => { case 'left': return { x: left, - y: top + height / 2 - range + y: top + height / 2 - range, + dir } case 'right': return { x: left + width, - y: top + height / 2 - range + y: top + height / 2 - range, + dir } case 'top': return { x: left + width / 2 - range, - y: top + y: top, + dir } case 'bottom': return { x: left + width / 2 - range, - y: top + height + y: top + height, + dir } default: break