Opened 12 years ago
Closed 11 years ago
#9358 closed enhancement (fixed)
[PATCH][CCLA]Add in .toSvg utility function to GFX .
Reported by: | Jared Jurkiewicz | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | DojoX GFX | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Add in .toSvg utility function to GFX . Helps with generating actual images by exporting a surface as SVG (in all browsers, even IE), this can then be passed back to a service and rendered into jpg, png, or whatnot. Very useful.
Complete patch implementation coming. Has to use proxy iframe to work on IE and such.
Attachments (2)
Change History (8)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Summary: | Add in .toSvg utility function to GFX . Helps with generating actual images by → Add in .toSvg utility function to GFX . |
---|
Changed 12 years ago by
Attachment: | svgSerializer.patch added |
---|
Updated patch. Fixed usage of djConfig to dojo.config.
comment:3 follow-up: 4 Changed 12 years ago by
Followup. Are you okay with me committing this utility addition to gfx?
comment:4 Changed 12 years ago by
Replying to jaredj:
Followup. Are you okay with me committing this utility addition to gfx?
Looks good, please commit to 1.4.
One minor optimization can be done: you can make dojox.gfx.svg._createElementNS
a local private function instead of a three-objects-down global.
comment:5 Changed 11 years ago by
Milestone: | tbd → 1.4 |
---|---|
Summary: | Add in .toSvg utility function to GFX . → [PATCH][CCLA]Add in .toSvg utility function to GFX . |
comment:6 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've tested this patch on IE 6, IE7, Firefox 2, Firefox 3, safari, opera, and Chrome, and was able to export SVG text that I could then post to a rendering service.