Source of file Ellipse.php
Size: 0,921 Bytes - Last Modified: 2021-12-23T10:11:59+00:00
/var/www/docs.ssmods.com/process/src/ext/phenx/php-svg-lib/src/Svg/Tag/Ellipse.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php /** * @package php-svg-lib * @link http://github.com/PhenX/php-svg-lib * @author Fabien Ménager <fabien.menager@gmail.com> * @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html */ namespace Svg\Tag; class Ellipse extends Shape { protected $cx = 0; protected $cy = 0; protected $rx = 0; protected $ry = 0; public function start($attributes) { parent::start($attributes); if (isset($attributes['cx'])) { $this->cx = $attributes['cx']; } if (isset($attributes['cy'])) { $this->cy = $attributes['cy']; } if (isset($attributes['rx'])) { $this->rx = $attributes['rx']; } if (isset($attributes['ry'])) { $this->ry = $attributes['ry']; } $this->document->getSurface()->ellipse($this->cx, $this->cy, $this->rx, $this->ry, 0, 0, 360, false); } } |