Commit 25e08212 authored by Remi  PLANEL's avatar Remi PLANEL

Center label position

parent 71891db7
......@@ -40,6 +40,8 @@ export default function () {
// text
nodeE.append<SVGTextElement>("text")
.classed(classes.label, true)
.attr("dy", "0.31em")
.attr("font-family","monospace")
.attr("x", ({ data: { nodes } }) => (nodes && nodes.r) ? (nodes.r) + 2 : defaultR + 2);
const nodeU = node.merge(nodeE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment