-
Notifications
You must be signed in to change notification settings - Fork 100
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
Text tool's bounding rect is lost in serialization roundtrip #21
Comments
I'm having the same issue - is there a workaround? |
Thanks for the reports and your patience. I'll look at this next time I do a maintenance pass. |
I'm facing same problem, and addition to that is I load data, made some changes and tries to save it its not working either. Can you please check this issue too ? Is there any work around ? can you please let us know ? |
Sanjeev. I have a hacky solution to edit saved data. Try encoding the shapes individually like this And then decoding them individually as well, like this: Shapes that encode/decode properly should be editable. You can add your decoded shapes to your drawing like this: |
I fixed the bug with Ngons, but I couldn't reproduce issues with text yet. A PR and release will come this week. |
The bug with the text tool is that the bounding rect isn't saved, and it isn't derived at load time either. |
Loading a json file back in to the Drawing view works with the exception of Text objects and Ngon shapes. The text objects don't render and the Ngon shapes raise exception. It looks like the sides property is erroring on a nil exception.
The text was updated successfully, but these errors were encountered: