Open christianvoigt opened 6 years ago
Obviously it would be even better if the tip of the arrow really touched the border of the node.
I totally agree, today I faced this, what I ended up doing is this:
svg.select('.output').insert(() => d3.select('.nodes').remove().node(), '.edgePaths')
Not a fan, but works in the meantime
Arrow heads should be rendered above nodes, I think. The tip of the arrow gets "cut off" by the node edge, which does not look good. See: http://www.samsarin.com/project/dagre-d3/latest/demo/arrows.html
A simple fix would probably be to change the order of nodes and edges in the svg so that edges come last. This can currently not be fixed by using css, because z-index is only supported in SVG 2.