fix: increase TreeFlow ranksep and nodesep for less crowded layout

This commit is contained in:
2026-06-14 12:12:02 +08:00
parent 199ab1153b
commit d2b1d88ce3

View File

@@ -115,7 +115,7 @@ function buildFlow(root: PlayerTreeNode) {
if (dagreNodes.length === 0) return
const g = new dagre.graphlib.Graph()
g.setGraph({ rankdir: 'LR', nodesep: 40, ranksep: 80, marginx: 24, marginy: 24 })
g.setGraph({ rankdir: 'LR', nodesep: 60, ranksep: 140, marginx: 24, marginy: 24 })
g.setDefaultEdgeLabel(() => ({}))
const baseW = 128