line
is drawn with wrong offset for coordinates that are content
with a non-center
anchor
#621
Labels
bug 🐛
Something isn't working
line
is drawn with wrong offset for coordinates that are content
with a non-center
anchor
#621
When using
draw.line
to draw a line between the border of acontent
node and another element, the resulting line seems to be drawn with a proper angle, but unexpected offset relative to thecontent
's border. The issue is visible in the following example:As evident in the image,
line
considers both the actualcontent
node and a variant of it withanchor: center
, drawing the line towards the center of the former and stopping at the first intersection with the border of either of the nodes. The error is seemingly absent in other shapes (circle
andrect
, at least).The text was updated successfully, but these errors were encountered: