diff --git a/src/graphics/rect/RectDrawAssistant.ts b/src/graphics/rect/RectDrawAssistant.ts index 71c94b7..a269d30 100644 --- a/src/graphics/rect/RectDrawAssistant.ts +++ b/src/graphics/rect/RectDrawAssistant.ts @@ -156,7 +156,9 @@ function buildAbsorbablePositions(rect: Rect): AbsorbablePosition[] { return; } other.linePoints.forEach((point) => { - const absorbablePoint = new AbsorbablePoint(point); + const absorbablePoint = new AbsorbablePoint( + other.localToCanvasPoint(point) + ); aps.push(absorbablePoint); }); });