Source of file Circle.php
Size: 0,728 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/Circle.php
12345678910111213141516171819202122232425262728293031 | <?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 Circle extends Shape { protected $cx = 0; protected $cy = 0; protected $r; public function start($attributes) { if (isset($attributes['cx'])) { $this->cx = $attributes['cx']; } if (isset($attributes['cy'])) { $this->cy = $attributes['cy']; } if (isset($attributes['r'])) { $this->r = $attributes['r']; } $this->document->getSurface()->circle($this->cx, $this->cy, $this->r); } } |