From 359a2f23ae2d88e01337f140f7ba9cf7aa29d5a0 Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Tue, 15 Oct 2024 16:34:48 +0800 Subject: [PATCH] remove rounding --- packages/excalidraw/element/cropElement.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/excalidraw/element/cropElement.ts b/packages/excalidraw/element/cropElement.ts index d6d3922a85..da88df4992 100644 --- a/packages/excalidraw/element/cropElement.ts +++ b/packages/excalidraw/element/cropElement.ts @@ -12,7 +12,6 @@ import { pointFromVector, clamp, isCloseTo, - round, } from "../../math"; import type { TransformHandleType } from "./transformHandles"; import type { @@ -385,11 +384,6 @@ export const cropElement = ( !!widthAspectRatio, ); - crop.x = round(crop.x, 6); - crop.y = round(crop.y, 6); - crop.width = round(crop.width, 6); - crop.height = round(crop.height, 6); - // reset crop to null if we're back to orig size if ( isCloseTo(crop.width, crop.naturalWidth) &&