diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-01-24 16:26:06 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-01-24 16:26:06 +0000 |
commit | c8a76997f44fdf4e9f219ec5edc450b6bebdc919 (patch) | |
tree | 2eac22fff547f715dc00f11f39b4b3dbbba82a0f /src/driver | |
parent | 80e1738a8474b9761036b73a4cc0180e6cee080c (diff) | |
download | zetacomponents-graph-c8a76997f44fdf4e9f219ec5edc450b6bebdc919.zip zetacomponents-graph-c8a76997f44fdf4e9f219ec5edc450b6bebdc919.tar.gz |
- Partly fixed issue #9765
# Polygons are now drawn at the right position. This does not resolve the
# bug, because ellipses segments and circles are still broken.
# Small visual difference in a lot of files, due to the nature of this bug.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/flash.php | 7 | ||||
-rw-r--r-- | src/driver/svg.php | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/driver/flash.php b/src/driver/flash.php index 2c649c2..c565eff 100644 --- a/src/driver/flash.php +++ b/src/driver/flash.php @@ -190,6 +190,13 @@ class ezcGraphFlashDriver extends ezcGraphDriver { $movie = $this->getDocument(); + if ( !$filled ) + { + // The middle of the border is on the outline of a polygon in ming, + // fix that: + $points = $this->reducePolygonSize( $points, $thickness / 2 ); + } + $shape = new SWFShape(); $this->setShapeColor( $shape, $color, $thickness, $filled ); diff --git a/src/driver/svg.php b/src/driver/svg.php index 1a75b00..6031514 100644 --- a/src/driver/svg.php +++ b/src/driver/svg.php @@ -328,6 +328,13 @@ class ezcGraphSvgDriver extends ezcGraphDriver { $this->createDocument(); + if ( !$filled ) + { + // The middle of the border is on the outline of a polygon in SVG, + // fix that: + $points = $this->reducePolygonSize( $points, $thickness / 2 ); + } + $lastPoint = end( $points ); $pointString = sprintf( ' M %.4f,%.4f', $lastPoint->x + $this->options->graphOffset->x, |