Author: Kore Nordmann Date: 2007-04-05 13:55:52 +0200 (Thu, 05 Apr 2007) New Revision: 4811
Log: - Fixed rotation center when using the 3d renderer Added: trunk/Graph/tests/data/compare/ezcGraphAxisRotatedRendererTest_testRender3dRotatedAxisWithLotsOfLabels.svg Modified: trunk/Graph/src/renderer/3d.php Modified: trunk/Graph/src/renderer/3d.php =================================================================== --- trunk/Graph/src/renderer/3d.php 2007-04-05 11:41:05 UTC (rev 4810) +++ trunk/Graph/src/renderer/3d.php 2007-04-05 11:55:52 UTC (rev 4811) @@ -1606,6 +1606,15 @@ $boundings->y1 ), false ); + + // Also modify rotation accordingly + if ( $rotation !== null ) + { + $rotation = new ezcGraphRotation( + $rotation->getRotation(), + $this->get3dCoordinate( $rotation->getCenter(), false ) + ); + } } $this->driver->drawTextBox( Added: trunk/Graph/tests/data/compare/ezcGraphAxisRotatedRendererTest_testRender3dRotatedAxisWithLotsOfLabels.svg =================================================================== (Binary files differ) Property changes on: trunk/Graph/tests/data/compare/ezcGraphAxisRotatedRendererTest_testRender3dRotatedAxisWithLotsOfLabels.svg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Name: svn:eol-style + native -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components