summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-24 16:26:06 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-24 16:26:06 +0000
commitc8a76997f44fdf4e9f219ec5edc450b6bebdc919 (patch)
tree2eac22fff547f715dc00f11f39b4b3dbbba82a0f /src/driver/svg.php
parent80e1738a8474b9761036b73a4cc0180e6cee080c (diff)
downloadzetacomponents-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/svg.php')
-rw-r--r--src/driver/svg.php7
1 files changed, 7 insertions, 0 deletions
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,
OpenPOWER on IntegriCloud