You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you probably know about this issue and that there isn't really a good solution to it (at least I couldn't find one): depending on link curvature and curve length, arrows look disconnected from nodes/links and get stretched/compressed.
Bezier.getLUT() is used to better approximate the relationship between distance and t, and Bezier.normal() to bend arrows. Arrows on heavily curved links look strange of course, but this is easy to avoid by enforcing an upper limit on the curvature. If you really dislike the bend, its not difficult to draw them straight (let arrows look disconnected from links).
The text was updated successfully, but these errors were encountered:
Hi,
you probably know about this issue and that there isn't really a good solution to it (at least I couldn't find one): depending on link curvature and curve length, arrows look disconnected from nodes/links and get stretched/compressed.
I tried to fix it and eventually implemented curved arrows:
https://github.com/notEvil/force-graph/tree/curved_arrows
Bezier.getLUT()
is used to better approximate the relationship between distance andt
, andBezier.normal()
to bend arrows. Arrows on heavily curved links look strange of course, but this is easy to avoid by enforcing an upper limit on the curvature. If you really dislike the bend, its not difficult to draw them straight (let arrows look disconnected from links).The text was updated successfully, but these errors were encountered: