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 add numbers at the beggining of the strokes? #311

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

Comments

@DavidGarciaManzana
Copy link

I was wondering if its possible to add little numbers at the beggining of each stroke, this way when you see a new hanzi, it would be possible to know where to start and also how many strokes it has .
Something like this :

Screenshot 2024-02-16 at 9 25 00 p m
@chanind
Copy link
Owner

chanind commented Feb 19, 2024

There's not a built-in way, but you could do this using the Raw Character SVG from the library. The codepen below demos how to do this, adding the SVG text manually to the SVG strokes:

https://codepen.io/David-Chanin/pen/dyrLPde

If you wanted to have this be integrated into a stroke animation that might be a bit harder. You could try manually drawing the stroke numbers onto a SVG element directly above the writer and handle showing / hiding it before starting animation I suppose.

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