Author: Kore Nordmann
Date: 2007-04-26 12:43:23 +0200 (Thu, 26 Apr 2007)
New Revision: 4927

Log:
- Fixed order of points in arrow head polygons also in 3d renderer
  # No visual difference in compariosion files

Modified:
   trunk/Graph/src/renderer/3d.php
   
trunk/Graph/tests/data/compare/ezcGraphAxisRotatedRendererTest_testRender3dRotatedAxisWithLotsOfLabels.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChart.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartNonFilledAxis.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartNonFilledGrid.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartWithAxisIntersection.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartWithoutDataBorder.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dLineChart.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dLineChartBigMaxFontSize.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dLineChartSmallMaxFontSize.svg
   trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChart.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartSymbols.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartWithDepth.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartWithMoreBarsThenMajorSteps.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartWithSmallDepth.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartToOutput.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithAxisLabels.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithAxisLabelsReversedAxis.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithDepth.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithDifferentAxisSpace.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithHighlightedData.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithSmallDepth.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderNegativeBarChartSymbols.svg
   
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderPimpedBarChart.svg

Modified: trunk/Graph/src/renderer/3d.php
===================================================================
--- trunk/Graph/src/renderer/3d.php     2007-04-26 10:34:37 UTC (rev 4926)
+++ trunk/Graph/src/renderer/3d.php     2007-04-26 10:43:23 UTC (rev 4927)
@@ -1938,23 +1938,26 @@
             )
         );
 
+        $orthogonalDirection = clone $direction;
+        $orthogonalDirection->rotateClockwise();
+
         $this->driver->drawPolygon(
             array(
                 $axisPolygonCoordinates[1],
                 new ezcGraphCoordinate(
                     $axisPolygonCoordinates[1]->x
-                        + $direction->y * $size / 2
+                        - $orthogonalDirection->x * $size / 2
                         + $direction->x * $size,
                     $axisPolygonCoordinates[1]->y
-                        + $direction->x * $size / 2
+                        - $orthogonalDirection->y * $size / 2
                         + $direction->y * $size
                 ),
                 new ezcGraphCoordinate(
                     $axisPolygonCoordinates[1]->x
-                        - $direction->y * $size / 2
+                        + $orthogonalDirection->x * $size / 2
                         + $direction->x * $size,
                     $axisPolygonCoordinates[1]->y
-                        - $direction->x * $size / 2
+                        + $orthogonalDirection->y * $size / 2
                         + $direction->y * $size
                 ),
             ),

Modified: 
trunk/Graph/tests/data/compare/ezcGraphAxisRotatedRendererTest_testRender3dRotatedAxisWithLotsOfLabels.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChart.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartNonFilledAxis.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartNonFilledGrid.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartWithAxisIntersection.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dFilledLineChartWithoutDataBorder.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dLineChart.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dLineChartBigMaxFontSize.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRender3dLineChartSmallMaxFontSize.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChart.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartSymbols.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartWithDepth.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartWithMoreBarsThenMajorSteps.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderBarChartWithSmallDepth.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartToOutput.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithAxisLabels.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithAxisLabelsReversedAxis.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithDepth.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithDifferentAxisSpace.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithHighlightedData.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithSmallDepth.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderNegativeBarChartSymbols.svg
===================================================================
(Binary files differ)

Modified: 
trunk/Graph/tests/data/compare/ezcGraphRenderer3dTest_testRenderPimpedBarChart.svg
===================================================================
(Binary files differ)

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to