about summary refs log tree commit diff
path: root/src/view/com/modals/crop-image/cropImageUtil.ts
diff options
context:
space:
mode:
authorMary <148872143+mary-ext@users.noreply.github.com>2024-09-24 23:27:40 +0700
committerGitHub <noreply@github.com>2024-09-25 01:27:40 +0900
commitb9516202fa17325a3d54e54372ddd56149be129c (patch)
treee95ff75e6b6e8d6ef3ab6a3ccd34fe293a4a3568 /src/view/com/modals/crop-image/cropImageUtil.ts
parented512d6dc5390555232bb4ac3f96f477751c33b1 (diff)
downloadvoidsky-b9516202fa17325a3d54e54372ddd56149be129c.tar.zst
Revamp image editor (#5462)
* new image editor

* Rm react-avatar-editor

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/view/com/modals/crop-image/cropImageUtil.ts')
-rw-r--r--src/view/com/modals/crop-image/cropImageUtil.ts13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/view/com/modals/crop-image/cropImageUtil.ts b/src/view/com/modals/crop-image/cropImageUtil.ts
deleted file mode 100644
index 303d15ba5..000000000
--- a/src/view/com/modals/crop-image/cropImageUtil.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export const calculateDimensions = (
-  maxWidth: number,
-  originalHeight: number,
-  originalWidth: number,
-) => {
-  const aspectRatio = originalWidth / originalHeight
-  const newHeight = maxWidth / aspectRatio
-  const newWidth = maxWidth
-  return {
-    width: newWidth,
-    height: newHeight,
-  }
-}