chanind / hanzi-writer

Chinese character stroke order animations and practice quizzes
https://hanziwriter.org
MIT License
3.44k stars 534 forks source link

how to cancel or delete a stroke #272

Open 284099857 opened 2 years ago

284099857 commented 2 years ago

Sometimes, I want to cancel or delete a stroke, or cancel the stroke of the Chinese character completely

turtlekey commented 1 year ago

I have the same case,but unfortunately it seems there is no api for this, however you can make it by deleting the element which your Writer instance mount on,and creating the element again to create a new instance.

turtlekey commented 1 year ago

Yes, it has, writer.setCharacter(character).