This is the hiragana and katakana data for Hanzi Writer. This data is based on the hiragana and katakana data from animCJK.
You'll need to use a custom charDataLoader
function to use this data in Hanzi Writer.
HanziWriter.create('target-div', 'あ', {
width: 400,
height: 400,
charDataLoader: (char, onLoad, onError) => {
fetch(`https://cdn.jsdelivr.net/gh/ailectra/[email protected]/data/${char}.json`)
.then(res => res.json())
.then(onLoad)
.catch(onError);
}
})