I am porting this component to a Taro component.
It runs pretty well in Wechat's dev tool, but I met this error during preview on an android phone.
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 change the constructor of StrokeRenderer not to use Path2D, but I really would like to know, you how you guys solve this issue, if it ever happened to you?
I am porting this component to a Taro component. It runs pretty well in Wechat's dev tool, but I met this error during preview on an android phone.
It looks like that HanziWriter's
StrokeRenderer
is usingPath2D
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 change the constructor of
StrokeRenderer
not to usePath2D
, but I really would like to know, you how you guys solve this issue, if it ever happened to you?