1、官方文档:https://hanziwriter.org/cn/docs.html/
2、获取汉子的数据的接口
https://cdn.jsdelivr.net/npm/[email protected]/牛.json
3、文档的api
init() {
const {
canvasWidth,
canvasShowCharacter,
canvasShowHintAfterMisses,
canvasHeight,
completeEventKey,
canvasPadding,
canvasDrawingWidth,
canvasDrawingColor,
canvasHightColor,
canvasStrokeColor,
canvasHighlightCompleteColor,
canvasOutlineColor,
} = this.attributes;
this.writer = HanziWriter.create(this.characterId, this.characterData,