This is an automated email from the ASF dual-hosted git repository.

alinakazi pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new 307572a  Update LinearGradientStroke.as
307572a is described below

commit 307572ae095b4d557a83212023ebb0e0d7dc8bf2
Author: alinakazi <alinakazi1...@gmail.com>
AuthorDate: Mon Aug 6 16:57:01 2018 +0500

    Update LinearGradientStroke.as
---
 .../royale/mx/graphics/LinearGradientStroke.as     | 61 +++++++---------------
 1 file changed, 18 insertions(+), 43 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as
index eddea72..3a59ff0 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as
@@ -28,11 +28,11 @@ import flash.geom.Matrix;
 import flash.geom.Point;
 import flash.geom.Rectangle;
  */
-import org.apache.royale.graphics.GradientBase;
+// import org.apache.royale.graphics.GradientBase;
 import mx.core.mx_internal;
+import mx.graphics.SolidColorStroke;
 
 use namespace mx_internal; 
-
 /**
  *  The LinearGradientStroke class lets you specify a gradient filled stroke.
  *  You use the LinearGradientStroke class, along with the GradientEntry class,
@@ -48,7 +48,7 @@ use namespace mx_internal;
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-public class LinearGradientStroke extends GradientBase
+public class LinearGradientStroke extends SolidColorStroke
 {      /* extends GradientStroke */
     //include "../core/Version.as";
 
@@ -132,45 +132,7 @@ public class LinearGradientStroke extends GradientBase
     }
 
        
-       //----------------------------------
-    //  weight copied from GradientStroke
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the weight property.
-     */
-    private var _weight:Number;
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General", minValue="0.0")]
-
-    /**
-     *  The stroke weight, in pixels.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function get weight():Number
-    {
-        return _weight;
-    }
-    
-    /**
-     *  @private
-     */
-    public function set weight(value:Number):void
-    {
-        var oldValue:Number = _weight;
-        if (value != oldValue)
-        {
-            _weight = value;
-            
-          //  dispatchGradientChangedEvent("weight", oldValue, value);
-        }
-    }
+       
        
     /**
      *  @private
@@ -182,7 +144,19 @@ public class LinearGradientStroke extends GradientBase
     //  Properties
     //
     
//--------------------------------------------------------------------------
-
+       
+       
+       
+    //----------------------------------
+    //  rotation
+    //----------------------------------
+    public function get rotation():Number
+       {
+       return 0;
+       }
+    public function set rotation(value:Number):void
+       {
+       }
     //----------------------------------
     //  matrix
     //----------------------------------
@@ -387,6 +361,7 @@ public class LinearGradientStroke extends GradientBase
             matrix.translate(targetOrigin.x, targetOrigin.y);
         }               
     } */
+       
     
 }
 

Reply via email to