Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix around node offset improvement for arrow positioning #271 #370

Merged
merged 4 commits into from
Sep 11, 2020

Conversation

danielcaldas
Copy link
Owner

This PR addresses #351

Some edge cases were not considered in #271, such as the possibility of coordinates values offsetting 0 triggering a division by 0. This results in the output of this new computation being NaN. The console error should disappear with this change.

Additionally, granular support for node.size is added in link placement, so that the arrows don't overlap with the node when changing the node.size (at node level).

Here's the before & after of the behaviors.

Before

before

After

after

@danielcaldas danielcaldas merged commit 083bb5b into master Sep 11, 2020
@danielcaldas danielcaldas deleted the fix/invalid-values-provided-to-path branch November 17, 2020 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant