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