From 7bd73ba157a4401cee6c219061303718cbe0d9c2 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: Fri, 8 Mar 2024 11:44:29 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E7=94=B1=E6=8B=96=E6=8B=BD=E6=97=B6=EF=BC=8C=E5=89=8D=E8=BF=9B?= =?UTF-8?q?=E5=90=8E=E9=80=80=E6=93=8D=E4=BD=9C=E5=AF=B9=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=B8=8D=E7=94=9F=E6=95=88=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 --- simple-mind-map/src/core/render/node/Node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simple-mind-map/src/core/render/node/Node.js b/simple-mind-map/src/core/render/node/Node.js index 222ace84..5333aad9 100644 --- a/simple-mind-map/src/core/render/node/Node.js +++ b/simple-mind-map/src/core/render/node/Node.js @@ -203,6 +203,8 @@ class Node { // 计算节点的宽高 getSize() { + this.customLeft = this.getData('customLeft') || undefined + this.customTop = this.getData('customTop') || undefined this.updateGeneralization() this.createNodeData() let { width, height } = this.getNodeRect()