hanzi-writer
hanzi-writer copied to clipboard
请问在动画的时候能获取到每笔画结束的回调嘛?
Currently you'll need to manually animate each stroke individually if you want a callback on each individual stroke. For example, you could do something like:
await writer.animateStroke(0);
// do something after stroke 0
await writer.animateStroke(1);
// do something after stroke 1
await writer.animateStroke(2);
// etc...
I think it's a good feature request though, it shouldn't be hard to add that feature in the future
For the record, here's the English translation of the title of this issue (as of the time of this writing):
请问在动画的时候能获取到每笔画结束的回调嘛?
Can I get a callback at the end of each stroke during the animation?