flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject git commit: Added a missing gradientTransform to LinearGradientStroke
Date Mon, 01 Apr 2013 21:54:54 GMT
Updated Branches:
  refs/heads/develop 5253db01b -> c48f7c9e4


Added a missing gradientTransform to LinearGradientStroke


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c48f7c9e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c48f7c9e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c48f7c9e

Branch: refs/heads/develop
Commit: c48f7c9e4a6694e9f4e73a76b0d666b39a9c945b
Parents: 5253db0
Author: Om <bigosmallm@gmail.com>
Authored: Mon Apr 1 14:54:32 2013 -0700
Committer: Om <bigosmallm@gmail.com>
Committed: Mon Apr 1 14:54:32 2013 -0700

----------------------------------------------------------------------
 fxg2svg/tests/button/button_skin_down.svg |    6 +++---
 fxg2svg/tests/button/button_skin_over.svg |    4 ++--
 fxg2svg/tests/button/button_skin_up.svg   |    4 ++--
 fxg2svg/transform/transform - down.xslt   |   13 ++++++++-----
 fxg2svg/transform/transform - over.xslt   |    3 +++
 fxg2svg/transform/transform.xslt          |    5 ++++-
 6 files changed, 22 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c48f7c9e/fxg2svg/tests/button/button_skin_down.svg
----------------------------------------------------------------------
diff --git a/fxg2svg/tests/button/button_skin_down.svg b/fxg2svg/tests/button/button_skin_down.svg
index 2ceea0a..7f0ba72 100644
--- a/fxg2svg/tests/button/button_skin_down.svg
+++ b/fxg2svg/tests/button/button_skin_down.svg
@@ -40,7 +40,7 @@
     </svg>
     <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1"
bottom="1">
         <defs>
-            <linearGradient id="idLinearGradientStrokex63x149">
+            <linearGradient id="idLinearGradientStrokex63x149" gradientTransform="rotate(90)">
                 <stop offset="0.0" stop-color="#000000" stop-opacity="0.25" />
                 <stop offset="0.001" stop-color="#000000" stop-opacity="0.25" />
                 <stop offset="0.0011" stop-color="#000000" stop-opacity="0.07" />
@@ -52,7 +52,7 @@
     </svg>
     <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="2" right="2" top="2"
bottom="2">
         <defs>
-            <linearGradient id="idLinearGradientStrokex63x182">
+            <linearGradient id="idLinearGradientStrokex63x182" gradientTransform="rotate(90)">
                 <stop offset="0.0" stop-color="#000000" stop-opacity="0.09" />
                 <stop offset="0.0001" stop-color="#000000" stop-opacity="0.00" />
             </linearGradient>
@@ -61,7 +61,7 @@
     </svg>
     <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0"
bottom="0">
         <defs>
-            <linearGradient id="idLinearGradientStrokex63x205">
+            <linearGradient id="idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
                 <stop offset="0" stop-color="#000000" stop-opacity="0.6375" />
                 <stop offset="1" stop-color="#000000" stop-opacity="0.85" />
             </linearGradient>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c48f7c9e/fxg2svg/tests/button/button_skin_over.svg
----------------------------------------------------------------------
diff --git a/fxg2svg/tests/button/button_skin_over.svg b/fxg2svg/tests/button/button_skin_over.svg
index 81a5ebe..b97415f 100644
--- a/fxg2svg/tests/button/button_skin_over.svg
+++ b/fxg2svg/tests/button/button_skin_over.svg
@@ -40,7 +40,7 @@
     </svg>
     <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1"
bottom="1">
         <defs>
-            <linearGradient id="idLinearGradientStrokex63x129">
+            <linearGradient id="idLinearGradientStrokex63x129" gradientTransform="rotate(90)">
                 <stop offset="0" stop-color="#FFFFFF" stop-opacity="0.22" />
                 <stop offset="1" stop-color="#D8D8D8" stop-opacity="0.22" />
             </linearGradient>
@@ -49,7 +49,7 @@
     </svg>
     <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0"
bottom="0">
         <defs>
-            <linearGradient id="idLinearGradientStrokex63x205">
+            <linearGradient id="idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
                 <stop offset="0" stop-color="#000000" stop-opacity="0.5625" />
                 <stop offset="1" stop-color="#000000" stop-opacity="0.75" />
             </linearGradient>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c48f7c9e/fxg2svg/tests/button/button_skin_up.svg
----------------------------------------------------------------------
diff --git a/fxg2svg/tests/button/button_skin_up.svg b/fxg2svg/tests/button/button_skin_up.svg
index 2889539..e9abe62 100644
--- a/fxg2svg/tests/button/button_skin_up.svg
+++ b/fxg2svg/tests/button/button_skin_up.svg
@@ -40,7 +40,7 @@
     </svg>
     <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1"
bottom="1">
         <defs>
-            <linearGradient id="idLinearGradientStrokex63x129">
+            <linearGradient id="idLinearGradientStrokex63x129" gradientTransform="rotate(90)">
                 <stop offset="0" stop-color="#FFFFFF" />
                 <stop offset="1" stop-color="#D8D8D8" />
             </linearGradient>
@@ -49,7 +49,7 @@
     </svg>
     <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0"
bottom="0">
         <defs>
-            <linearGradient id="idLinearGradientStrokex63x205">
+            <linearGradient id="idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
                 <stop offset="0" stop-color="#000000" stop-opacity="0.5625" />
                 <stop offset="1" stop-color="#000000" stop-opacity="0.75" />
             </linearGradient>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c48f7c9e/fxg2svg/transform/transform
- down.xslt
----------------------------------------------------------------------
diff --git a/fxg2svg/transform/transform - down.xslt b/fxg2svg/transform/transform - down.xslt
index 6eac56c..5f490d0 100644
--- a/fxg2svg/transform/transform - down.xslt	
+++ b/fxg2svg/transform/transform - down.xslt	
@@ -169,11 +169,14 @@
 		</linearGradient>
 	</xsl:template>
 	
-		<xsl:template match="//s:LinearGradientStroke" mode="defs">
-			<linearGradient>
-				<xsl:attribute name="id"><xsl:value-of select="generate-id()" /></xsl:attribute>
-				<xsl:apply-templates mode="defs" />
-			</linearGradient>
+	<xsl:template match="//s:LinearGradientStroke" mode="defs">
+		<linearGradient>
+			<xsl:attribute name="id"><xsl:value-of select="generate-id()" /></xsl:attribute>
+			<xsl:if test="@rotation">
+				<xsl:attribute name="gradientTransform">rotate(<xsl:value-of select="@rotation"
/>)</xsl:attribute>
+			</xsl:if>
+			<xsl:apply-templates mode="defs" />
+		</linearGradient>
 	</xsl:template>
 
 	<xsl:template match="//s:GradientEntry" mode="defs">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c48f7c9e/fxg2svg/transform/transform
- over.xslt
----------------------------------------------------------------------
diff --git a/fxg2svg/transform/transform - over.xslt b/fxg2svg/transform/transform - over.xslt
index 1d68063..31ba12f 100644
--- a/fxg2svg/transform/transform - over.xslt	
+++ b/fxg2svg/transform/transform - over.xslt	
@@ -172,6 +172,9 @@
 		<xsl:template match="//s:LinearGradientStroke" mode="defs">
 			<linearGradient>
 				<xsl:attribute name="id"><xsl:value-of select="generate-id()" /></xsl:attribute>
+				<xsl:if test="@rotation">
+					<xsl:attribute name="gradientTransform">rotate(<xsl:value-of select="@rotation"
/>)</xsl:attribute>
+				</xsl:if>
 				<xsl:apply-templates mode="defs" />
 			</linearGradient>
 	</xsl:template>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c48f7c9e/fxg2svg/transform/transform.xslt
----------------------------------------------------------------------
diff --git a/fxg2svg/transform/transform.xslt b/fxg2svg/transform/transform.xslt
index 924759b..0d6599f 100644
--- a/fxg2svg/transform/transform.xslt
+++ b/fxg2svg/transform/transform.xslt
@@ -164,7 +164,7 @@
 			<xsl:attribute name="id"><xsl:value-of select="generate-id()" /></xsl:attribute>
 			<xsl:if test="@rotation">
 				<xsl:attribute name="gradientTransform">rotate(<xsl:value-of select="@rotation"
/>)</xsl:attribute>
-			</xsl:if>			
+			</xsl:if>
 			<xsl:apply-templates mode="defs" />
 		</linearGradient>
 	</xsl:template>
@@ -172,6 +172,9 @@
 		<xsl:template match="//s:LinearGradientStroke" mode="defs">
 			<linearGradient>
 				<xsl:attribute name="id"><xsl:value-of select="generate-id()" /></xsl:attribute>
+				<xsl:if test="@rotation">
+					<xsl:attribute name="gradientTransform">rotate(<xsl:value-of select="@rotation"
/>)</xsl:attribute>
+				</xsl:if>				
 				<xsl:apply-templates mode="defs" />
 			</linearGradient>
 	</xsl:template>


Mime
View raw message