gattir / jsvectoreditor

Automatically exported from code.google.com/p/jsvectoreditor
0 stars 0 forks source link

Need the setMarkup method if possible #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I see that I can use JSON to save and restore the editor state.
But I need the SVG itself.
I see that I can store both JSON and SVG and use JSON for data restoring 
while SVG for my purposes (and probably I will do it in this way at the 
moment). But if it's not difficult add the setMarkup method that will setup 
the editor based on the previously saved SVG.

Original issue reported on code.google.com by emiro...@gmail.com on 5 Jan 2010 at 11:35

GoogleCodeExporter commented 8 years ago
It's not something that's possible without a XML/SVG parser as it needs to be 
abstracted to JSON as there's no SVG for IE browsers.

Original comment by Antimatter15 on 6 Jan 2010 at 5:19

GoogleCodeExporter commented 8 years ago
But Raphael's attributes are somewhat similar to SVG, so if you get an XML 
parser, you 
might be able to just set attributes for each one.

Original comment by Antimatter15 on 6 Jan 2010 at 5:19

GoogleCodeExporter commented 8 years ago

Original comment by Antimatter15 on 6 Jan 2010 at 5:20