Common center point util

This commit is contained in:
Mark Tolmacs
2025-02-28 19:39:04 +01:00
parent e48b63a0ae
commit f363fcabd8
5 changed files with 21 additions and 46 deletions

View File

@@ -61,7 +61,7 @@ export const cropElement = (
const rotatedPointer = pointRotateRads(
pointFrom(pointerX, pointerY),
pointFrom(element.x + element.width / 2, element.y + element.height / 2),
elementCenterPoint(element),
-element.angle as Radians,
);