From 36fdb35987004575fb797ffeab34f81622d706e1 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 3 Oct 2023 00:33:20 -0700 Subject: [PATCH] nvm, going with vue-picture-cropper --- packages/client/package.json | 2 +- .../client/src/components/MkCropperDialog.vue | 19 +++--- pnpm-lock.yaml | 60 ++++++++++++++++--- 3 files changed, 63 insertions(+), 18 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 278b5cfdba..9ae61dfc71 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -92,9 +92,9 @@ "vite": "4.4.9", "vite-plugin-compression": "^0.5.1", "vue": "3.3.4", - "vue-cropper": "^1.1.1", "vue-draggable-plus": "^0.2.6", "vue-isyourpasswordsafe": "^2.0.0", + "vue-picture-cropper": "^0.6.2", "vue-plyr": "^7.0.0", "vue-prism-editor": "2.0.0-alpha.2" } diff --git a/packages/client/src/components/MkCropperDialog.vue b/packages/client/src/components/MkCropperDialog.vue index b2257552ae..11b4fcf275 100644 --- a/packages/client/src/components/MkCropperDialog.vue +++ b/packages/client/src/components/MkCropperDialog.vue @@ -18,14 +18,15 @@ };`" >
- + :options="{ + aspectRatio: aspectRatio ? aspectRatio[0] / aspectRatio[1] : null, + dragMode: "crop", + viewMode: 1, + }" + >
@@ -35,7 +36,7 @@