directed-graph-creator
directed-graph-creator copied to clipboard
Can you update to d3 version 4?
Hi,
Can you update to d3 version 4?
Thanks.
I am trying to do it https://stackoverflow.com/questions/45801254/migrating-to-d3-v4-cause-duplicates-on-drag
Hi, @one2gov Trying to do upgrading in my own project found some issue with the dragging behavior. D3 V4 prevents "circle mouse up" to fire as default when you drag a line from one circle to another. Do you have any good suggestion to get info of circle in V4 that was recognized in circle mouse up event in V3 implementation?
@one2gov Actually I was able to fix this by looping through all nodes to find the one that's connected in "end" callback. Now I have a similar issue with edges like your stack overflow question: https://stackoverflow.com/questions/45801254/migrating-to-d3-v4-cause-duplicates-on-drag. When I started to drag it renders lots of paths during dragging. Now I have to check how to make this disappeared..
@one2gov looks like path.enter() will get fired even when I'm dragging the big circle here. I changed .data() for path a little bit and it magically makes infinite paths disappeared.
@guanw thx for sharing! I am really stuck with this one) I'll try to finish my attempt on stackoverflow.
@guanw and @one2gov did you guys manage to port this?
I ported this library to d3, version 5.7. You can find it here: https://github.com/ghamarian/graph_editor
For anyone still looking for a solution, I've posted mine here (as an answer)
https://stackoverflow.com/questions/45801254/migrating-to-d3-v4-cause-duplicates-on-drag/54773054#54773054