This commit is contained in:
Simão Moreno Antunes 2025-05-01 13:24:21 +02:00 committed by GitHub
commit 021932aa10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,8 +141,8 @@ export const getTransformHandlesFromCoords = (
spacing = DEFAULT_TRANSFORM_HANDLE_SPACING, spacing = DEFAULT_TRANSFORM_HANDLE_SPACING,
): TransformHandles => { ): TransformHandles => {
const size = transformHandleSizes[pointerType]; const size = transformHandleSizes[pointerType];
const handleWidth = size / zoom.value; const handleWidth = (size) / zoom.value;
const handleHeight = size / zoom.value; const handleHeight = (size) / zoom.value;
const handleMarginX = size / zoom.value; const handleMarginX = size / zoom.value;
const handleMarginY = size / zoom.value; const handleMarginY = size / zoom.value;
@ -200,14 +200,10 @@ export const getTransformHandlesFromCoords = (
rotation: omitSides.rotation rotation: omitSides.rotation
? undefined ? undefined
: generateTransformHandle( : generateTransformHandle(
x1 + width / 2 - handleWidth / 2, (x1 + width / 2 - handleWidth / 2) - handleWidth,
y1 - (y1 - dashedLineMargin - handleMarginY + centeringOffset - ROTATION_RESIZE_HANDLE_GAP / zoom.value) - handleHeight,
dashedLineMargin - handleWidth * 2,
handleMarginY + handleHeight * 2,
centeringOffset -
ROTATION_RESIZE_HANDLE_GAP / zoom.value,
handleWidth,
handleHeight,
cx, cx,
cy, cy,
angle, angle,