src/Tag/AbstractSvgTag.php
protected function openSvg($properties)
    {
        if (!$this->svgDrawer->isDrawing()) {
            $e = new HtmlParsingException('The asked ['.$this->getName().'] tag is not in a [DRAW] tag');
            $e->setInvalidTag($this->getName());
            throw $e;
        }

        $transform = null;
        if (array_key_exists('transform', $properties)) {
            $transform = $this->svgDrawer->prepareTransform($properties['transform']);
        }

        $this->pdf->doTransform($transform);
        $this->parsingCss->save();
    }
protected function openSvg($properties)
    {
        if (!$this->svgDrawer->isDrawing()) {
            $e = new HtmlParsingException('The asked ['.$this->getName().'] tag is not in a [DRAW] tag');
            $e->setInvalidTag($this->getName());
            throw $e;
        }

        $transform = null;
        if (array_key_exists('transform', $properties)) {
            $transform = $this->svgDrawer->prepareTransform($properties['transform']);
        }

        $this->pdf->doTransform($transform);
        $this->parsingCss->save();
    }
protected function openSvg ( $ properties ) { if ( ! $ this -> svgDrawer -> isDrawing ( ) ) { $ e = new HtmlParsingException ( 'The asked [' . $ this -> getName ( ) . '] tag is not in a [DRAW] tag' ) ; $ e -> setInvalidTag ( $ this -> getName ( ) ) ; throw $ e ; } $ transform = null ; if ( array_key_exists ( 'transform' , $ properties ) ) { $ transform = $ this -> svgDrawer -> prepareTransform ( $ properties [ 'transform' ] ) ; } $ this -> pdf -> doTransform ( $ transform ) ; $ this -> parsingCss -> save ( ) ; }
Open the SVG tag

@param array $properties
@throws HtmlParsingException
Open the SVG tag