Jackieron
Jackieron
the error is : Unhandled Promise Rejection: Error: Failed to load char data for 中 in hanzi-writer.min.js:1641 the hanziwriter version is v2.0.2
> hrm it's hard to tell from that error why it's unable to load character data. Is networking restricted inside of cordova? If you try running the following js code...
> Yes, definitely! All the character data is in this repo: https://github.com/chanind/hanzi-writer-data. You can load data locally - you just need to provide your own `charDataLoader` function. More info here:...
> Yes that's exactly right - the JSON data has SVG paths, and then medians which define how the stroke are animated. English letters are hard to do though because...
I implemented this with two cascading canvases: let context = c.getContext('2d'); context.lineWidth = 1; context.strokeStyle = '#bbb'; context.rect(0, 0, width, width); context.moveTo(0, 0); context.lineTo(width, width); context.moveTo(0, width); context.lineTo(width, 0); context.moveTo(0,...
You can replace it with a 龙