|
|
|
@ -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) &&
|
|
|
|
|