mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-18 15:57:04 +02:00
remove rounding
This commit is contained in:
@@ -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) &&
|
||||
|
Reference in New Issue
Block a user