4 * @link http://github.com/PhenX/php-svg-lib
5 * @author Fabien Ménager <fabien.menager@gmail.com>
6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
11 class Ellipse
extends Shape
18 public function start($attribs)
20 parent
::start($attribs);
22 if (isset($attribs['cx'])) {
23 $this->cx
= $attribs['cx'];
25 if (isset($attribs['cy'])) {
26 $this->cy
= $attribs['cy'];
28 if (isset($attribs['rx'])) {
29 $this->rx
= $attribs['rx'];
31 if (isset($attribs['ry'])) {
32 $this->ry
= $attribs['ry'];
35 $this->document
->getSurface()->ellipse($this->cx
, $this->cy
, $this->rx
, $this->ry
, 0, 0, 360, false);