This commit is contained in:
StyleZhang
2024-03-16 15:00:30 +08:00
parent 5ee7fc4fde
commit 05f97f6e06
20 changed files with 78 additions and 43 deletions

View File

@ -59,7 +59,7 @@ export const getLayoutByDagre = (originNodes: Node[], originEdges: Edge[]) => {
rankdir: 'LR',
align: 'UL',
nodesep: 64,
ranksep: 64,
ranksep: 40,
})
nodes.forEach((node) => {
dagreGraph.setNode(node.id, { width: node.width, height: node.height })