Closed magjac closed 7 years ago
I'll have a look at the decreased coverage later.
@magjac Forget so small coverage drop. It may be caused by need to add selection
argument to selection manipulation functions. Please look into my review comment. After fixing that I will merge PR with pleasure.
Now a better solution in stage without dependency to styliseur. Please see also my comments to your review regarding possible bug.
Maybe I expected you to fix bug because you introduced new logic in label rendering and most of the changes has been related to new d3 API but not this one.
If there is a bug, it was introduced or revealed by the change from D3 v3 to v4. There was no problem before that. You can see for yourself as I explained in my comment to your initial review comments.
If there is a bug, my change is not a fix, but a workaround. But since I don't understand how initial transitions (i.e. for enter selections) work even for the shapes which do not have any workaround, I don't know if it is the correct way or not. That's why I wanted you to review it.
Anyway, thanks for accepting my PR 😃.
You may want to have a look at the latest commit, 495567b4d3c3a1afe8ec80374831ecea15bb644b. I really don't understand why it is needed for labels (text), but not for shapes (path). The tests ran fine without it, but the initial transition was very funny, with shapes dropping down linearly from the top, but labels spreading of from the top left corner.
I've done a few manual checks with my local graphviz.it, but I would appreciate if you could also do some.