fix:调整最小缩放比例 以及 新增node 不在显示 text

This commit is contained in:
zhangyu
2023-09-08 17:42:45 +08:00
parent ec268c42c5
commit 30bf3d7c36
3 changed files with 5 additions and 5 deletions

View File

@@ -147,7 +147,7 @@ export default {
if (this.isChart) {
getTopology(this.meta2dId).fitView(true, this.paddingTop)
} else {
getTopology(this.meta2dId).centerView()
getTopology(this.meta2dId).fitView(true)
}
getTopology(this.meta2dId).lock(1)
this.getNodesArr()
@@ -165,7 +165,7 @@ export default {
return
}
if (name && !pen.text) {
pen.text = name
// pen.text = name
}
if (pen.data && pen.data.imageId) {
const imageInfo = this.iconArray.find(item => item.id === pen.data.imageId)