<hanzi-writer-view id="hz-writer" width="300" height="300" /> Then in your page, you can control the view viacreateHanziWriterContext(options), like below: importcreateHanziWriterContextfrom'hanzi-writer-miniprogram';Page({onLoad:function(){this.writerCtx=createHanziWriterContext({id:'hz-wri...
edited 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. it will black all strokes when first stoke ani; ...
1.hanzi-writer-miniprogram的安装请看上一篇文章 小程序安装hanzi-writer-miniprogram: 2.效果图 代码 pages/hanziWrite/hanziWrite.wxml <view class="title">汉字识字小程序</view> <view class="js-char-form char-form"> <view class="char-form-item char-form-text">请输入汉字</view> <view class=...
MiniProgramError: "illegal param to init BindingPath2D" String It looks like that HanziWriter's StrokeRenderer is using Path2D by default, which Wechat does not support very well on real phone, thus during preview on real phone, no stroke has been rendered to the canvas. A bypass is to ...
<hanzi-writer-view id="hz-writer" width="300" height="300" /> Then in your page, you can control the view viacreateHanziWriterContext(options), like below: importcreateHanziWriterContextfrom'hanzi-writer-miniprogram';Page({onLoad:function(){this.writerCtx=createHanziWriterContext({id:'hz-wri...
<hanzi-writer-view id="hz-writer" width="300" height="300" /> Then in your page, you can control the view viacreateHanziWriterContext(options), like below: importcreateHanziWriterContextfrom'hanzi-writer-miniprogram';Page({onLoad:function(){this.writerCtx=createHanziWriterContext({id:'hz-wri...