Feat:节点形状不存在时默认使用矩形形状

This commit is contained in:
街角小林 2025-04-03 10:04:41 +08:00
parent 1b7aad3de2
commit a4fe5e7765

View File

@ -120,7 +120,7 @@ export default class Shape {
node = extendShape.createShape(this.node) node = extendShape.createShape(this.node)
} }
} }
return node return node || this.createRect()
} }
// 获取节点减去节点边框宽度、hover节点边框宽度后的尺寸 // 获取节点减去节点边框宽度、hover节点边框宽度后的尺寸