source: trunk/client/inc/hpdf5/spipu/html2pdf/src/Tag/Svg/G.php@ 347

Last change on this file since 347 was 347, checked in by roby, 3 years ago

Aggiornamento per compatibilità con php7.4

File size: 987 bytes
Line 
1<?php
2/**
3 * Html2Pdf Library - Tag class
4 *
5 * HTML => PDF converter
6 * distributed under the OSL-3.0 License
7 *
8 * @package Html2pdf
9 * @author Laurent MINGUET <webmaster@html2pdf.fr>
10 * @copyright 2017 Laurent MINGUET
11 */
12namespace Spipu\Html2Pdf\Tag\Svg;
13
14use Spipu\Html2Pdf\Tag\AbstractSvgTag;
15
16/**
17 * Tag G
18 */
19class G extends AbstractSvgTag
20{
21 /**
22 * @inheritdoc
23 */
24 public function getName()
25 {
26 return 'g';
27 }
28
29 /**
30 * @inheritdoc
31 */
32 public function open($properties)
33 {
34 $this->openSvg($properties);
35 $this->drawSvg($properties);
36
37 return true;
38 }
39
40 /**
41 * @inheritdoc
42 */
43 public function close($properties)
44 {
45 $this->closeSvg();
46
47 return true;
48 }
49
50 /**
51 * @inheritdoc
52 */
53 protected function drawSvg($properties)
54 {
55 $styles = $this->parsingCss->getSvgStyle($this->getName(), $properties);
56 $this->pdf->svgSetStyle($styles);
57 }
58}
Note: See TracBrowser for help on using the repository browser.