summaryrefslogtreecommitdiffstats
path: root/library/vendor/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Group.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/vendor/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Group.php')
-rw-r--r--library/vendor/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Group.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/library/vendor/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Group.php b/library/vendor/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Group.php
new file mode 100644
index 0000000..bacb385
--- /dev/null
+++ b/library/vendor/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Group.php
@@ -0,0 +1,33 @@
+<?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 Group 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();
+ }
+}