When using draw.line to draw a line between the border of a content node and another element, the resulting line seems to be drawn with a proper angle, but unexpected offset relative to the content's border. The issue is visible in the following example:
As evident in the image, line considers both the actual content node and a variant of it with anchor: 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 and rect, at least).
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: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).