Opened 11 years ago

Closed 10 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)

svgSerializer.patch (12.8 KB) - added by Jared Jurkiewicz 10 years ago.
Updated patch. Fixed usage of djConfig to dojo.config.
gfx_svg.patch (19.7 KB) - added by Jared Jurkiewicz 10 years ago.
Updated serializer patch.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by Jared Jurkiewicz

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.

comment:2 Changed 11 years ago by Jared Jurkiewicz

Summary: Add in .toSvg utility function to GFX . Helps with generating actual images byAdd in .toSvg utility function to GFX .

Changed 10 years ago by Jared Jurkiewicz

Attachment: svgSerializer.patch added

Updated patch. Fixed usage of djConfig to dojo.config.

comment:3 Changed 10 years ago by Jared Jurkiewicz

Followup. Are you okay with me committing this utility addition to gfx?

comment:4 in reply to:  3 Changed 10 years ago by Eugene Lazutkin

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.

Changed 10 years ago by Jared Jurkiewicz

Attachment: gfx_svg.patch added

Updated serializer patch.

comment:5 Changed 10 years ago by Jared Jurkiewicz

Milestone: tbd1.4
Summary: Add in .toSvg utility function to GFX .[PATCH][CCLA]Add in .toSvg utility function to GFX .

comment:6 Changed 10 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [19953]) Adding in new GFX utility function 'toSvg'. \!strict fixes #9358

Note: See TracTickets for help on using tickets.