summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-28 14:17:14 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-28 14:17:14 +0000
commit663493a7224dc7869c6c63d770016f9fd8850e2a (patch)
tree3d12f7b50c44ef307e5ef0ed27021aa55898e932
parent6ed7f3a9b1814879c8fed5f55db1ae409797f76c (diff)
downloadzetacomponents-graph-663493a7224dc7869c6c63d770016f9fd8850e2a.zip
zetacomponents-graph-663493a7224dc7869c6c63d770016f9fd8850e2a.tar.gz
- Converted tabs to whitespaces
-rw-r--r--src/driver/svg.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index 4beae78..42ad365 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -91,7 +91,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$this->createDocument();
$lastPoint = end( $points );
- $pointString = sprintf( ' M %.4f,%.4f',
+ $pointString = sprintf( ' M %.4f,%.4f',
$lastPoint->x,
$lastPoint->y
);
@@ -149,7 +149,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
{
$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 @@ class ezcGraphSvgDriver extends ezcGraphDriver
)
);
- $this->elements->appendChild( $path );
+ $this->elements->appendChild( $path );
}
-
+
protected function testFitStringInTextBox( $string, ezcGraphCoordinate $position, $width, $height, $size )
{
// Tokenize String
@@ -225,7 +225,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
// It seems to fit - return line array
return $lines;
}
-
+
/**
* Wrties text in a box of desired size
*
@@ -264,7 +264,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
);
}
}
-
+
protected function drawAllTexts()
{
foreach ( $this->strings as $text )
@@ -340,7 +340,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
}
}
}
-
+
/**
* Draws a sector of cirlce
*
@@ -373,7 +373,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$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 @@ class ezcGraphSvgDriver extends ezcGraphDriver
)
);
}
-
- $this->elements->appendChild( $arc );
+
+ $this->elements->appendChild( $arc );
}
-
+
/**
* Draws a circular arc
*
@@ -450,7 +450,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$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 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$Xend, $Yend
)
);
-
+
$arc->setAttribute(
'style',
sprintf( 'fill: #%02x%02x%02x; fill-opacity: %.2f; stroke: none;',
@@ -484,9 +484,9 @@ class ezcGraphSvgDriver extends ezcGraphDriver
)
);
- $this->elements->appendChild( $arc );
+ $this->elements->appendChild( $arc );
}
-
+
/**
* Draws a circle
*
@@ -502,7 +502,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
{
$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 @@ class ezcGraphSvgDriver extends ezcGraphDriver
);
}
- $this->elements->appendChild( $ellipse );
+ $this->elements->appendChild( $ellipse );
}
-
+
/**
* Draws a imagemap of desired size
*
@@ -557,7 +557,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$image->setAttribute( 'height', $height . 'px' );
$image->setAttribute( 'xlink:href', $file );
- $this->elements->appendChild( $image );
+ $this->elements->appendChild( $image );
}
/**
OpenPOWER on IntegriCloud