/
home
/
sjslayjy
/
public_html
/
devlok
/
vendor
/
phenx
/
php-svg-lib
/
src
/
Svg
/
Tag
/
Upload File
HOME
<?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; use Svg\Style; class ClipPath extends AbstractTag { protected function before($attributes) { $surface = $this->document->getSurface(); $surface->save(); $style = $this->makeStyle($attributes); $this->setStyle($style); $surface->setStyle($style); $this->applyTransform($attributes); } protected function after() { $this->document->getSurface()->restore(); } }