Browse Source

remove rounding

Ryan Di 9 months ago
parent
commit
359a2f23ae
1 changed files with 0 additions and 6 deletions
  1. 0 6
      packages/excalidraw/element/cropElement.ts

+ 0 - 6
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) &&