Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
vendor
/
spipu
/
html2pdf
/
src
/
Tag
/
Svg
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/vendor/spipu/html2pdf/src/Tag/Svg/Circle.php
<?php /** * Html2Pdf Library - Tag class * * HTML => PDF converter * distributed under the OSL-3.0 License * * @package Html2pdf * @author Laurent MINGUET <webmaster@html2pdf.fr> * @copyright 2017 Laurent MINGUET */ namespace Spipu\Html2Pdf\Tag\Svg; use Spipu\Html2Pdf\Tag\AbstractSvgTag; /** * Tag Circle */ class Circle extends AbstractSvgTag { /** * @inheritdoc */ public function getName() { return 'circle'; } /** * @inheritdoc */ protected function drawSvg($properties) { $styles = $this->parsingCss->getSvgStyle($this->getName(), $properties); $style = $this->pdf->svgSetStyle($styles); $cx = 0.; if (isset($properties['cx'])) { $cx = $this->cssConverter->convertToMM($properties['cx'], $this->svgDrawer->getProperty('w')); } $cy = 0.; if (isset($properties['cy'])) { $cy = $this->cssConverter->convertToMM($properties['cy'], $this->svgDrawer->getProperty('h')); } $r = 0.; if (isset($properties['r'])) { $r = $this->cssConverter->convertToMM($properties['r'], $this->svgDrawer->getProperty('w')); } $this->pdf->svgEllipse($cx, $cy, $r, $r, $style); } }