Author: Christian Lopes
Date: 2010-12-03 12:00:37 -0800 (Fri, 03 Dec 2010)
New Revision: 23084
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
Log:
Added the 'xml:space="preserve"' attribute to SVG, so it can be rescaled
correctly by the browser.
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
2010-12-03 05:38:34 UTC (rev 23083)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
2010-12-03 20:00:37 UTC (rev 23084)
@@ -134,8 +134,8 @@
// Create the root element:
var svg:String = '<?xml version="1.0" standalone="no"?>' +
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' +
- '<svg width="'+w+'px" height="'+h+'px" x="0px"
y="0px" viewBox="0 0 '+w+' '+h+'" ' +
- 'version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">';
+ '<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" ' +
+ 'width="'+w+'px" height="'+h+'px" x="0px"
y="0px" viewBox="0 0 '+w+' '+h+'" xml:space="preserve">';
// Draw the background:
var bgColor:String =
Utils.rgbColorAsString(_style.getValue(VisualProperties.BACKGROUND_COLOR));
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.