diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-04-05 11:55:52 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-04-05 11:55:52 +0000 |
commit | 69239e1a9163247ea6978116ea8b28f04a9337c6 (patch) | |
tree | 1b0daeb737938acd7584686514e546e96fcb495b /src | |
parent | 2c012ee948b216a57f460cbfeb965d5264ab7b3e (diff) | |
download | zetacomponents-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.php | 9 |
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( |