summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-05 11:55:52 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-05 11:55:52 +0000
commit69239e1a9163247ea6978116ea8b28f04a9337c6 (patch)
tree1b0daeb737938acd7584686514e546e96fcb495b /src
parent2c012ee948b216a57f460cbfeb965d5264ab7b3e (diff)
downloadzetacomponents-graph-69239e1a9163247ea6978116ea8b28f04a9337c6.zip
zetacomponents-graph-69239e1a9163247ea6978116ea8b28f04a9337c6.tar.gz
- Fixed rotation center when using the 3d renderer
Diffstat (limited to 'src')
-rw-r--r--src/renderer/3d.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/renderer/3d.php b/src/renderer/3d.php
index d411d4c..4e8ba39 100644
--- a/src/renderer/3d.php
+++ b/src/renderer/3d.php
@@ -1606,6 +1606,15 @@ class ezcGraphRenderer3d extends ezcGraphRenderer
$boundings->y1
), false
);
+
+ // Also modify rotation accordingly
+ if ( $rotation !== null )
+ {
+ $rotation = new ezcGraphRotation(
+ $rotation->getRotation(),
+ $this->get3dCoordinate( $rotation->getCenter(), false )
+ );
+ }
}
$this->driver->drawTextBox(
OpenPOWER on IntegriCloud