Author: Kore Nordmann
Date: 2006-06-28 16:17:14 +0200 (Wed, 28 Jun 2006)
New Revision: 3158

Log:
- Converted tabs to whitespaces

Modified:
   trunk/Graph/src/driver/svg.php

Modified: trunk/Graph/src/driver/svg.php
===================================================================
--- trunk/Graph/src/driver/svg.php      2006-06-28 13:23:00 UTC (rev 3157)
+++ trunk/Graph/src/driver/svg.php      2006-06-28 14:17:14 UTC (rev 3158)
@@ -91,7 +91,7 @@
         $this->createDocument();
 
                $lastPoint = end( $points );
-               $pointString = sprintf( ' M %.4f,%.4f', 
+        $pointString = sprintf( ' M %.4f,%.4f', 
             $lastPoint->x, 
             $lastPoint->y
         );
@@ -149,7 +149,7 @@
     {
         $this->createDocument();  
         
-               $pointString = sprintf( ' M %.4f,%.4f L %.4f,%.4f', 
+        $pointString = sprintf( ' M %.4f,%.4f L %.4f,%.4f', 
             $start->x, 
             $start->y,
             $end->x, 
@@ -169,9 +169,9 @@
             )
         );
 
-               $this->elements->appendChild( $path );
+        $this->elements->appendChild( $path );
     }
-    
+
     protected function testFitStringInTextBox( $string, ezcGraphCoordinate 
$position, $width, $height, $size )
     {
         // Tokenize String
@@ -225,7 +225,7 @@
         // It seems to fit - return line array
         return $lines;
     }
-    
+
     /**
      * Wrties text in a box of desired size
      * 
@@ -264,7 +264,7 @@
             );
         }
     }
-    
+
     protected function drawAllTexts()
     {
         foreach ( $this->strings as $text )
@@ -340,7 +340,7 @@
             }
         }
     }
-    
+
     /**
      * Draws a sector of cirlce
      * 
@@ -373,7 +373,7 @@
         $Xend = $center->x + $width * cos( ( -( $endAngle ) / 180 ) * M_PI );
         $Yend = $center->y + $height * sin( ( ( $endAngle ) / 180 ) * M_PI );
         
-               $arc = $this->dom->createElement( 'path' );
+        $arc = $this->dom->createElement( 'path' );
         $arc->setAttribute('d', sprintf('M %.2f,%.2f L %.2f,%.2f A %.2f,%2f 0 
%d,1 %.2f,%.2f z',
             // Middle
             $center->x, $center->y,
@@ -413,10 +413,10 @@
                 )
             );
         }
-               
-               $this->elements->appendChild( $arc );
+        
+        $this->elements->appendChild( $arc );
     }
-    
+
     /**
      * Draws a circular arc
      * 
@@ -450,7 +450,7 @@
         $Xend = $center->x + $width * cos( ( -( $endAngle ) / 180 ) * M_PI );
         $Yend = $center->y + $height * sin( ( ( $endAngle ) / 180 ) * M_PI );
         
-               $arc = $this->dom->createElement( 'path' );
+        $arc = $this->dom->createElement( 'path' );
         $arc->setAttribute('d', sprintf('   M %.2f,%.2f 
                                             A %.2f,%2f 0 %d,0 %.2f,%.2f 
                                             L %.2f,%.2f 
@@ -473,7 +473,7 @@
             $Xend, $Yend
             )
         );
-    
+
         $arc->setAttribute(
             'style', 
             sprintf( 'fill: #%02x%02x%02x; fill-opacity: %.2f; stroke: none;',
@@ -484,9 +484,9 @@
             )
         );
 
-               $this->elements->appendChild( $arc );
+        $this->elements->appendChild( $arc );
     }
-    
+
     /**
      * Draws a circle
      * 
@@ -502,7 +502,7 @@
     {
         $this->createDocument();  
         
-               $ellipse = $this->dom->createElement('ellipse');
+        $ellipse = $this->dom->createElement('ellipse');
         $ellipse->setAttribute( 'cx', $center->x );
         $ellipse->setAttribute( 'cy', $center->y );
         $ellipse->setAttribute( 'rx', $width / 2 );
@@ -534,9 +534,9 @@
             );
         }
         
-               $this->elements->appendChild( $ellipse );
+        $this->elements->appendChild( $ellipse );
     }
-    
+
     /**
      * Draws a imagemap of desired size
      * 
@@ -557,7 +557,7 @@
         $image->setAttribute( 'height', $height . 'px' );
         $image->setAttribute( 'xlink:href', $file );
 
-               $this->elements->appendChild( $image );
+        $this->elements->appendChild( $image );
     }
 
     /**

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to