summaryrefslogtreecommitdiffstats
path: root/src/driver
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-02-08 11:11:42 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-02-08 11:11:42 +0000
commitb8f51740e26dee3f8fdd937dcaac7f0d437fe785 (patch)
tree9026ecfae7b979a1ee6d1554521d2e33e783c108 /src/driver
parent47c7a25d15c25ae051af381046b8257e9b2a9a46 (diff)
downloadzetacomponents-graph-b8f51740e26dee3f8fdd937dcaac7f0d437fe785.zip
zetacomponents-graph-b8f51740e26dee3f8fdd937dcaac7f0d437fe785.tar.gz
- Implemented ellipse size reducement in flash driver
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/flash.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/driver/flash.php b/src/driver/flash.php
index 4c438fa..3ebde93 100644
--- a/src/driver/flash.php
+++ b/src/driver/flash.php
@@ -593,6 +593,17 @@ class ezcGraphFlashDriver extends ezcGraphDriver
$shape = new SWFShape();
$this->setShapeColor( $shape, $color, 1, $filled );
+ if ( !$filled )
+ {
+ $reduced = $this->reduceEllipseSize( $center, $width, $height, $startAngle, $endAngle, .5 );
+
+ $startAngle = $reduced['startAngle'];
+ $endAngle = $reduced['endAngle'];
+
+ $width -= 1;
+ $height -= 1;
+ }
+
$shape->movePenTo( $this->modifyCoordinate( $center->x ), $this->modifyCoordinate( $center->y ) );
// @TODO: User SWFShape::curveTo
OpenPOWER on IntegriCloud