Developer-Mike / obsidian-advanced-canvas

⚡ Supercharge your Obsidian.md canvas experience! Create presentations, flowcharts and more!
GNU General Public License v3.0
286 stars 12 forks source link

[BUG] A* edges have ugly connections with arrowheads #52

Closed MrEbbinghaus closed 4 months ago

MrEbbinghaus commented 5 months ago

Arrowheads look weird when using A* edges

image

Possible solutions:

Offset to the target

In the above picture, the target position for A* could be offset slightly to the left, leading to an orthogonal edge into the target. Similarly, the start could be offset if that end has an arrowhead.

Rotate the Arrowhead

Pretty self-explanatory.

Modify the heuristic

Alternatively, the heuristic could be modified to include a cost penalty based on the distance to a card. This could prevent the edge from "sticking" too close to a card if possible, like in this example:

image

Developer-Mike commented 4 months ago

Thank you for your bug report (and sorry for not replying 😟). It just got fixed in version 2.7.8