From acb323eb07b98044c829cda204eb93138ded039a Mon Sep 17 00:00:00 2001 From: ShawnPhang Date: Fri, 15 Sep 2023 12:52:02 +0800 Subject: [PATCH] fix: some config --- package.json | 2 ++ .../business/image-cutout/ImageCutout.vue | 6 ++-- .../business/save-download/CreateCover.vue | 2 +- src/config.ts | 11 ++++--- src/router/index.ts | 7 ++-- src/store/modules/base/index.ts | 5 +-- src/types/worker.d.ts | 8 +++++ src/utils/plugins/webWorker.ts | 32 +++++++++++++++++++ src/utils/widgets/loadPSD.worker.ts | 21 ++++++++++++ src/views/Psd.vue | 7 ++-- 10 files changed, 84 insertions(+), 17 deletions(-) create mode 100644 src/types/worker.d.ts create mode 100644 src/utils/plugins/webWorker.ts create mode 100644 src/utils/widgets/loadPSD.worker.ts diff --git a/package.json b/package.json index b9d0cb8..2611f99 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@gradio/client": "^0.1.4", "@palxp/color-picker": "^1.3.1", "@scena/guides": "^0.18.1", + "@webtoon/psd": "^0.4.0", "axios": "^0.21.1", "core-js": "^3.6.5", "dayjs": "^1.10.7", @@ -27,6 +28,7 @@ "moveable-helper": "^0.4.0", "nanoid": "^3.1.23", "normalize.css": "^8.0.1", + "psd": "^3.4.0", "qr-code-styling": "^1.6.0-rc.1", "selecto": "^1.13.0", "throttle-debounce": "^3.0.1", diff --git a/src/components/business/image-cutout/ImageCutout.vue b/src/components/business/image-cutout/ImageCutout.vue index 5be830d..5143dcf 100644 --- a/src/components/business/image-cutout/ImageCutout.vue +++ b/src/components/business/image-cutout/ImageCutout.vue @@ -2,8 +2,8 @@ * @Author: ShawnPhang * @Date: 2023-07-11 23:50:22 * @Description: 抠图组件 - * @LastEditors: ShawnPhang - * @LastEditTime: 2023-07-24 13:01:03 + * @LastEditors: ShawnPhang + * @LastEditTime: 2023-09-15 12:38:49 -->