-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
canvas toSVG not saving ids #2697
Comments
Yes, we do not export id to svg elements. |
Hi, Basically I changed this code (in last version on line 7106):
wtih this:
By doing this, you're giving to the |
i do not know if adding option of having a callback and let user add pieces to svg is worth over just exporting the id for everything. if (this.id && this.id !== '') {
markup.push(' id="', this.id, '"');
} |
You're right. It was more a temporary solution for @suomilapsi , although I think this is a simple and straight forward way to give user more power over the SVG generation. |
Yes true. But at same time i prefer to listen issues of people with svgs, because i would catch potential good features that could be lost with a "solve it by yourself" approach. |
Hello,
It is possible to load SVG with IDs to canvas. With toJSON it is possible to save IDs. With toSVG there seems to be no way to retain IDs?
https://jsfiddle.net/suomilapsi/r9q8anky/1/
Best regads,
suomilapsi
The text was updated successfully, but these errors were encountered: