flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject [1/2] git commit: [flex-asjs] [refs/heads/develop] - Better name for gradients
Date Sat, 20 Sep 2014 00:10:31 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 8e46d2e18 -> 24d052e97


Better name for gradients

Conflicts:
	frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js


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

Branch: refs/heads/develop
Commit: 0677ce562fd07a03e7a0d45cebc60d2a2b1d49dd
Parents: 8e46d2e
Author: Om <bigosmallm@gmail.com>
Authored: Wed Sep 17 13:04:18 2014 -0700
Committer: Om <bigosmallm@gmail.com>
Committed: Thu Sep 18 12:53:11 2014 -0700

----------------------------------------------------------------------
 examples/FlexJSTest_SVG/src/GraphicsView.mxml                  | 6 +++---
 .../FlexJS/src/org/apache/flex/core/graphics/GradientBase.js   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0677ce56/examples/FlexJSTest_SVG/src/GraphicsView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_SVG/src/GraphicsView.mxml b/examples/FlexJSTest_SVG/src/GraphicsView.mxml
index 61f5723..6907b3f 100644
--- a/examples/FlexJSTest_SVG/src/GraphicsView.mxml
+++ b/examples/FlexJSTest_SVG/src/GraphicsView.mxml
@@ -37,8 +37,8 @@ limitations under the License.
 
 			protected function viewbase1_initCompleteHandler(event:org.apache.flex.events.Event):void
 			{
-				drawIndividualShapes();
-				//drawOnGraphicsContainer();
+				//drawIndividualShapes();
+				drawOnGraphicsContainer();
 			}
 			
 			private function drawIndividualShapes():void
@@ -238,7 +238,7 @@ limitations under the License.
 				//var lg:LinearGradient = new LinearGradient();
 				lg.entries = [new GradientEntry(1,0xFF0000,0.33),new GradientEntry(1,0x00FF00,0.66),
new GradientEntry(1,0x0000FF,0.99)];
 				lg.scaleX = 1;
-				lg.rotation = 45;
+				lg.rotation = 90;
 				container.drawCircle(400, 400, 300);
 				container.drawPath("M 800 800 L 900 800 A 100 100 0 0 0 800 700 Z");
 				container.drawPath("M 100 350 q 150 -300 300 0");

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0677ce56/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
index 0d6c06a..66873b6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
@@ -158,7 +158,7 @@ org.apache.flex.core.graphics.GradientBase.prototype.get_y = function()
{
  * @return {string} A new gradient id value.
  */
 org.apache.flex.core.graphics.GradientBase.prototype.get_newId = function() {
-  return String(Math.floor((Math.random() * 100000) + 1));
+  return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
 };
 
 


Mime
View raw message