Skip to content

Commit

Permalink
fix: add space for node labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Nov 19, 2024
1 parent e37d59f commit b078a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@wroud/di-tools-analyzer/src/chart/createNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export function createNodes(
.append("tspan")
.text(line)
.attr("x", 0)
.attr("dy", i === 0 ? -16 : `-${lineHeight}em`);
.attr("dy", i === 0 ? -Layout.node.radius * 6 : `-${lineHeight}em`);
});
});
}
Expand Down

0 comments on commit b078a0e

Please sign in to comment.