From d41e37fa7ba80fa0a3c50457a0620f188f6fea77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=89=BA=E4=B8=BA?= <15897461476@139.com> Date: Thu, 24 Aug 2023 17:14:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=A3=E5=86=B3=E5=9B=A0imageknife?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E4=B8=ADGifWorker.ts=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84worker=E7=B1=BB=E5=9E=8B=E4=B8=8Eindex.ets=E4=B8=AD?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=BD=91=E7=BB=9Cgif=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=202.=E6=9B=B4=E6=96=B0hvigor=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=88=B03.0.2=E5=85=AC=E5=BC=80=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李艺为 <15897461476@139.com> --- entry/src/main/ets/pages/index.ets | 5 +++-- hvigor/hvigor-config.json5 | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/entry/src/main/ets/pages/index.ets b/entry/src/main/ets/pages/index.ets index 9a3b3f5..e147837 100644 --- a/entry/src/main/ets/pages/index.ets +++ b/entry/src/main/ets/pages/index.ets @@ -17,7 +17,8 @@ import { ImageKnifeComponent, ImageKnifeOption, } from '@ohos/imageknife' -import ArkWorker from '@ohos.worker' +import worker from '@ohos.worker'; + @Entry @Component struct IndexFunctionDemo { @@ -85,7 +86,7 @@ struct IndexFunctionDemo { } aboutToAppear() { - this.globalGifWorker = new ArkWorker.Worker('entry/ets/pages/workers/gifParseWorker.ts', { + this.globalGifWorker = new worker.ThreadWorker('entry/ets/workers/GifLoadWorker.ts', { type: 'classic', name: 'ImageKnifeParseGIF' }) diff --git a/hvigor/hvigor-config.json5 b/hvigor/hvigor-config.json5 index ec2a3ae..e75281b 100644 --- a/hvigor/hvigor-config.json5 +++ b/hvigor/hvigor-config.json5 @@ -1,6 +1,6 @@ { - "hvigorVersion": "2.4.2", + "hvigorVersion": "3.0.2", "dependencies": { - "@ohos/hvigor-ohos-plugin": "2.4.2" + "@ohos/hvigor-ohos-plugin": "3.0.2" } } \ No newline at end of file