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()