hanzi-writer icon indicating copy to clipboard operation
hanzi-writer copied to clipboard

请问在动画的时候能获取到每笔画结束的回调嘛?

Open MuYanQin opened this issue 4 years ago • 2 comments

MuYanQin avatar Oct 13 '19 14:10 MuYanQin

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

chanind avatar Oct 20 '19 13:10 chanind

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?

rodrigomorales1 avatar Oct 25 '22 23:10 rodrigomorales1