src/Rasterization/Renderers/SVGRenderer.php
protected static function prepareLengthX($len, SVGRasterizer $ras)
    {
        $doc   = $ras->getDocumentWidth();
        $scale = $ras->getScaleX();

        return Length::convert($len, $doc) * $scale;
    }
protected static function prepareLengthX($len, SVGRasterizer $ras)
    {
        $doc   = $ras->getDocumentWidth();
        $scale = $ras->getScaleX();

        return Length::convert($len, $doc) * $scale;
    }
protected static function prepareLengthX ( $ len , SVGRasterizer $ ras ) { $ doc = $ ras -> getDocumentWidth ( ) ; $ scale = $ ras -> getScaleX ( ) ; return Length :: convert ( $ len , $ doc ) * $ scale ; }
Parses the length string in relation to the rasterizer's X dimension.

@param string        $len The CSS length string.
@param SVGRasterizer $ras The rasterizer for scaling the length.

@return float The parsed and scaled length, in pixels.
Parses the length string in relation to the rasterizer s X dimension .