vkaravir / JSAV

JavaScript Algorithm Visualization library
MIT License
112 stars 40 forks source link

Graph drawing: Arrows on directed edges go into nodes #98

Open cashaffer opened 11 years ago

cashaffer commented 11 years ago

Any edge in a graph that shows an arrow will draw that arrow so that it sticks into the circle that represents the target node by a couple of pixels. I think this would look nicer if the arrow head went right up to the border of the circle, but not through and into the circle.

vkaravir commented 9 years ago

This was due to the way Raphael adds the arrows to the lines. They are added after the line, so they go into the node. I adjusted the edges now in JSAV and this should be fixed (or at least significantly improved).

vkaravir commented 9 years ago

Oh, and this should fix the same problem in Lists using wider stroke on the lines.