CN-1548 fix: 调整初始zoom、修复rightbox-detail的名称错误

This commit is contained in:
chenjinsong
2024-06-19 16:09:37 +08:00
parent 17d55e3a73
commit 8157c20d37
2 changed files with 4 additions and 4 deletions

View File

@@ -305,7 +305,7 @@ export default {
}
})
.centerAt(0, 30)// 设置中心节点位置
.zoom(1)
.zoom(0.9999)
.onNodeClick(async (node, e) => {
this.isClicking = true
this.clickNode = node || null
@@ -457,9 +457,9 @@ export default {
.d3Force('link', d3.forceLink().id(link => link.id)
.distance(link => {
if (link.source.type === nodeType.rootNode) {
return 160
return 180
}
return 80
return 90
})
.strength(link => {
return link.strength