Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to show only the next stroke? #312

Open
DavidGarciaManzana opened this issue Feb 17, 2024 · 1 comment
Open

Is it possible to show only the next stroke? #312

DavidGarciaManzana opened this issue Feb 17, 2024 · 1 comment

Comments

@DavidGarciaManzana
Copy link

Let's say I have a quiz with a Hanzi that has "showOutline: false." Is it possible to make only the next stroke visible? This way, it can help indicate what to do next without making many mistakes. When you're on your second or third try, it would be a great feeling to have that smoother experience, starting with "showOutline: true" and then moving to write them without "help."

@chanind
Copy link
Owner

chanind commented Feb 19, 2024

There's not an option to do that currently unfortunately. You can probably simulate this by drawing the SVG for the next stroke yourself below the SVG for the HanziWriter instance, but it would require some manual messing around with the Raw Character SVG helpers from the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants