Repository: flex-asjs Updated Branches: refs/heads/develop dd4895cb4 -> eed930cbd
Add CapsStyle.SQUARE and JointStyle.MITER so that the borders look more like the SVG version Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/43cdf554 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/43cdf554 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/43cdf554 Branch: refs/heads/develop Commit: 43cdf55474555fd5c002a68f55ce75813a061eb1 Parents: dd4895c Author: Om <[email protected]> Authored: Tue Sep 9 17:38:31 2014 -0700 Committer: Om <[email protected]> Committed: Tue Sep 9 17:38:31 2014 -0700 ---------------------------------------------------------------------- .../FlexJSUI/src/org/apache/flex/core/graphics/Circle.as | 4 +++- .../FlexJSUI/src/org/apache/flex/core/graphics/Ellipse.as | 4 +++- .../projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as | 4 +++- .../projects/FlexJSUI/src/org/apache/flex/core/graphics/Rect.as | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/43cdf554/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Circle.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Circle.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Circle.as index 173cec0..5e5cc29 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Circle.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Circle.as @@ -1,5 +1,7 @@ package org.apache.flex.core.graphics { + import flash.display.CapsStyle; + import flash.display.JointStyle; public class Circle extends GraphicShape { @@ -20,7 +22,7 @@ package org.apache.flex.core.graphics graphics.clear(); if(stroke) { - graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha); + graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha,false,"normal",CapsStyle.SQUARE,JointStyle.MITER); } if(fill) { http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/43cdf554/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Ellipse.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Ellipse.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Ellipse.as index 239d087..0763c3b 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Ellipse.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Ellipse.as @@ -1,5 +1,7 @@ package org.apache.flex.core.graphics { + import flash.display.CapsStyle; + import flash.display.JointStyle; public class Ellipse extends GraphicShape { @@ -21,7 +23,7 @@ package org.apache.flex.core.graphics graphics.clear(); if(stroke) { - graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha); + graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha,false,"normal",CapsStyle.SQUARE,JointStyle.MITER); } if(fill) { http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/43cdf554/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as index dee987d..6f8324f 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as @@ -1,6 +1,8 @@ package org.apache.flex.core.graphics { + import flash.display.CapsStyle; import flash.display.GraphicsPath; + import flash.display.JointStyle; import flash.geom.Rectangle; public class Path extends GraphicShape @@ -29,7 +31,7 @@ package org.apache.flex.core.graphics graphics.clear(); if(stroke) { - graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha); + graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha,false,"normal",CapsStyle.SQUARE,JointStyle.MITER); } if(fill) { http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/43cdf554/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Rect.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Rect.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Rect.as index afd9755..989477d 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Rect.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Rect.as @@ -1,5 +1,7 @@ package org.apache.flex.core.graphics { + import flash.display.CapsStyle; + import flash.display.JointStyle; public class Rect extends GraphicShape { @@ -21,7 +23,7 @@ package org.apache.flex.core.graphics graphics.clear(); if(stroke) { - graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha); + graphics.lineStyle(stroke.weight,stroke.color,stroke.alpha,false,"normal",CapsStyle.SQUARE,JointStyle.MITER); } if(fill) {
