chanind / hanzi-writer-miniprogram

Wechat Miniprogram plugin for Hanzi Writer (微信小程序组件)
https://chanind.github.io/hanzi-writer
MIT License
86 stars 25 forks source link

problem when built with uni-app for app #23

Open wakaryry opened 4 years ago

wakaryry commented 4 years ago

Hi, the hanzi-writer is a nice project. Thanks a lot.

I changed the code for usage in uni-app(which could use Vue to write miniprogram and app).

It runs well in miniprogram, but not correct when built into app.

image

I'm trying to see the code to know why.

If any suggestion on why it could be that, please let me know.

Thanks.

chanind commented 4 years ago

You can try setting renderer: 'canvas' to see if that helps. Some platforms have buggy SVG support.

wakaryry commented 4 years ago

it's already canvas since I used the miniprogram codes. The hanzi-writer-context is canvas renderer.

chanind commented 4 years ago

in that case, try renderer: 'svg' for the app? 😅

qiubo369 commented 3 years ago

@wakaryry Have you resolved this question? I try to integration uniapp and hanzi-writer also. can you share your idea. thx.

wakaryry commented 3 years ago

in that case, try renderer: 'svg' for the app? 😅

the svg is not supported in uni-app.

wakaryry commented 3 years ago

@wakaryry Have you resolved this question? I try to integration uniapp and hanzi-writer also. can you share your idea. thx.

can not run well in app