mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复关联线插件computeNodePoints方法返回undefined时报错的问题
This commit is contained in:
parent
2a49dd9140
commit
250fb2eb50
@ -202,7 +202,7 @@ export const computeNodePoints = (fromNode, toNode) => {
|
||||
// 中心点坐标的差值
|
||||
let offsetX = toCx - fromCx
|
||||
let offsetY = toCy - fromCy
|
||||
if (offsetX === 0 && offsetY === 0) return
|
||||
if (offsetX === 0 && offsetY === 0) return []
|
||||
let fromDir = ''
|
||||
let toDir = ''
|
||||
if (offsetX <= 0 && offsetX <= offsetY && offsetX <= -offsetY) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user