Author: clopes
Date: 2012-05-11 10:35:22 -0700 (Fri, 11 May 2012)
New Revision: 29230
Modified:
cytoscapeweb/trunk/cytoscapeweb/default.properties
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
Log:
Fixed minor issue with SVG text--stroke is rendered on some browsers even if
its opacity is 0.
Modified: cytoscapeweb/trunk/cytoscapeweb/default.properties
===================================================================
--- cytoscapeweb/trunk/cytoscapeweb/default.properties 2012-05-11 16:58:53 UTC
(rev 29229)
+++ cytoscapeweb/trunk/cytoscapeweb/default.properties 2012-05-11 17:35:22 UTC
(rev 29230)
@@ -1,3 +1,3 @@
-build.version=1.0.1
+build.version=1.0.2
FLEX_HOME=/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.2.0/
\ No newline at end of file
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
2012-05-11 16:58:53 UTC (rev 29229)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/SVGExporter.as
2012-05-11 17:35:22 UTC (rev 29230)
@@ -460,19 +460,21 @@
sc = Utils.rgbColorAsString(gf.color);
sw = Math.max(0.1, gf.blurX);
- drawText(so);
+ drawText(sw, so);
}
}
}
}
// TODO: use filters instead, when Safari and IE supports
it
- drawText(0);
+ drawText(0, 0);
- function drawText(so:Number):void {
+ function drawText(strokeWidth:Number,
strokeOpacity:Number):void {
svg += '<text font-family="'+family+'"
font-style="'+style+'" font-weight="'+weight+'"' +
- ' stroke="'+sc+'" stroke-width="'+sw+'"
stroke-opacity="'+so+'" stroke-linejoin="round" fill="'+c+'"' +
- ' fill-opacity="'+a+'"
font-size="'+lblSize+'" x="'+p.x+'" y="'+p.y+'" style="text-anchor:'+ta+';">';
+ ' stroke="'+sc+'"
stroke-width="'+strokeWidth+'" stroke-opacity="'+strokeOpacity+'"' +
+ ' stroke-linejoin="round" fill="'+c+'"
fill-opacity="'+a+'"' +
+ ' font-size="'+lblSize+'" x="'+p.x+'"
y="'+p.y+'"' +
+ ' style="text-anchor:'+ta+';">';
if (lines.length > 0) {
for (var i:int = 0; i < lines.length; i++) {
--
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.