-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fixed getPoint for same node edges #1907
Conversation
Signed-off-by: André Martins <[email protected]>
@aanm It looks good but I can't figure out an simple example to test the changed |
@mojoaxel Sure, can you please tell me where do you want me to put the test? Do you want it here or in a file under |
@mojoaxel oh okay. so the problem is simple, I was following this thread #507 and when I used the code provided by @edvineshagh I saw that it didn't work for edges that were pointed to the same node. That's why I figure out the getPoints function had a bug for the edges that were pointed out to the same node. Can you test based on this? |
Today I found the time to look into this again. I still don't get it. 😞 I tried to create an example with a node having an edge from and to itself. Also enabled default dynamic smoothing and arrows. As far as I can see the @aanm Please provide a simple example that shows a use case for this pull request. Thx! |
@mojoaxel There you go https://jsfiddle.net/2xc5r20j/ :-) |
@mojoaxel What's the status on this PR? |
The code looks good but I hab problems creating an example to debug the changes. I think we can merge it, but I would feel better if I actually understood when this is needed. |
Shi**. This should not go into the master branch...I'll revert this. |
@aanm Sorry, but I had to revert the changes because they were made to the master branch. If you still want them to be added please create a new PR to the develop branch. Thx. |
If an edge was point out to the same node, the
getPoint
returns the wrong coordinates.Signed-off-by: André Martins [email protected]