dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.86k stars 591 forks source link

Drawing Circles and Diamonds at the beginning and end of each edge #252

Open bschmitz9 opened 8 years ago

bschmitz9 commented 8 years ago

I am working with D3 and Dagre-D3 and trying to implement custom circles and diamonds at both the beginning and end of an edge? Is this possibe? I see the example in the wiki: http://cpettitt.github.io/project/dagre-d3/latest/demo/user-defined.html and have that working in my project but when I try to change the arrows to circles or diamonds I lose the arrowHead completely? I'm thinking I should just have to change the attributes on the marker to be a circle but that is turning out not to be the case. Is anybody able to help? I'm not seeing any other examples showing this.

Thanks

bschmitz9 commented 8 years ago

I was able to add circles and diamonds to the end of the edges. But is it possible to add them to the beginning of the edges using prepend or anything like that?