You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's not an easy way to do that currently, aside from doing something fancy with an SVG G element, or just deleting and recreating the HanziWriter element. I think it should be doable though to add an updateDimensions() method that will recreate the image elements in the new size while keeping the state the same. The user-drawn stroke path might be a bit weird, but maybe it will just work. I'll work on a PR...
Once I've already created a writer with
HanziWriter.create
, is there any way to change the width and height dynamically?I'm setting the size of the writer based on the size of the window, but this breaks when the window is resized after the writer is created.
The text was updated successfully, but these errors were encountered: