bensivo / mapo

0 stars 0 forks source link

Bug: Arrow labels not in center, because of width of text nodes #48

Closed bensivo closed 1 month ago

bensivo commented 1 month ago

Image

Image

In the image above, the edge-label is drawn in the center of the arrow. But technically, the arrow is drawn between the centers of both nodes.

Because the left node is much wider, the label ends up being very close to it, instead of the visible center, which would be the centerpoint of the empty space between the 2 boxes.

bensivo commented 1 month ago

Resolved by putting labels in teh centerpoint between the 2 node centerpoints, instead of the centerpoint of the arrow