Lines Matching defs:arguments

1561 	function svgPath($command, $arguments)
1575 preg_match_all('/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/i', $arguments, $a, PREG_PATTERN_ORDER);
1588 // each command may have different needs for arguments [1 to 8]
2193 // e.g. $w = $this->ConvertSVGSizePixels($arguments['w'],$this->svg_info['w']*(25.4/$this->mpdf->dpi));
2228 function svgRect($arguments)
2230 if ($arguments['h'] == 0 || $arguments['w'] == 0) {
2234 $x = $this->ConvertSVGSizePixels($arguments['x'], 'x'); // mPDF 4.4.003
2235 $y = $this->ConvertSVGSizePixels($arguments['y'], 'y'); // mPDF 4.4.003
2236 $h = $this->ConvertSVGSizePixels($arguments['h'], 'y'); // mPDF 4.4.003
2237 $w = $this->ConvertSVGSizePixels($arguments['w'], 'x'); // mPDF 4.4.003
2238 $rx = $this->ConvertSVGSizePixels($arguments['rx'], 'x'); // mPDF 4.4.003
2239 $ry = $this->ConvertSVGSizePixels($arguments['ry'], 'y'); // mPDF 4.4.003
2293 function svgEllipse($arguments)
2295 if ($arguments['rx'] == 0 || $arguments['ry'] == 0) {
2301 $cx = $this->ConvertSVGSizePixels($arguments['cx'], 'x');
2302 $cy = $this->ConvertSVGSizePixels($arguments['cy'], 'y');
2303 $rx = $this->ConvertSVGSizePixels($arguments['rx'], 'x');
2304 $ry = $this->ConvertSVGSizePixels($arguments['ry'], 'y');
2328 function svgPolyline($arguments, $ispolyline = true)
2331 $xbase = $arguments[0];
2332 $ybase = - $arguments[1];
2334 if ($arguments[0] == $arguments[2] && $arguments[1] == $arguments[3]) {
2337 $xbase = $this->ConvertSVGSizePixels($arguments[0], 'x');
2338 $ybase = - $this->ConvertSVGSizePixels($arguments[1], 'y');
2343 for ($i = 2; $i < count($arguments); $i += 2) {
2345 $tmp_x = $arguments[$i];
2346 $tmp_y = - $arguments[($i + 1)];
2348 $tmp_x = $this->ConvertSVGSizePixels($arguments[$i], 'x');
2349 $tmp_y = - $this->ConvertSVGSizePixels($arguments[($i + 1)], 'y');
2358 function svgPolygon($arguments)
2360 $xbase = $arguments[0];
2361 $ybase = - $arguments[1];
2364 for ($i = 2; $i < count($arguments); $i += 2) {
2365 $tmp_x = $arguments[$i];
2366 $tmp_y = - $arguments[($i + 1)];
2534 list($tmp, $command, $arguments) = $cmd;
2537 $arguments = '';
2540 $subpath_cmd .= $this->svgPath($command, $arguments);
3645 list($tmp, $command, $arguments) = $c;
3648 $arguments = '';
3651 $path_cmd .= $this->svgPath($command, $arguments);
3693 $arguments = [];
3696 $arguments['x'] = $attribs['x'];
3700 $arguments['y'] = $attribs['y'];
3704 $arguments['w'] = $attribs['width'];
3708 $arguments['h'] = $attribs['height'];
3712 $arguments['rx'] = $attribs['rx'];
3716 $arguments['ry'] = $attribs['ry'];
3719 $path_cmd = $this->svgRect($arguments);
3736 $arguments = [];
3739 $arguments['cx'] = $attribs['cx'];
3743 $arguments['cy'] = $attribs['cy'];
3747 $arguments['rx'] = $attribs['r'];
3751 $arguments['ry'] = $attribs['r'];
3754 $path_cmd = $this->svgEllipse($arguments);
3771 $arguments = [];
3774 $arguments['cx'] = $attribs['cx'];
3778 $arguments['cy'] = $attribs['cy'];
3782 $arguments['rx'] = $attribs['rx'];
3786 $arguments['ry'] = $attribs['ry'];
3789 $path_cmd = $this->svgEllipse($arguments);
3798 $arguments = [];
3799 $arguments[0] = (isset($attribs['x1']) ? $attribs['x1'] : '');
3800 $arguments[1] = (isset($attribs['y1']) ? $attribs['y1'] : '');
3801 $arguments[2] = (isset($attribs['x2']) ? $attribs['x2'] : '');
3802 $arguments[3] = (isset($attribs['y2']) ? $attribs['y2'] : '');
3803 $path_cmd = $this->svgPolyline($arguments, false);
3814 $arguments = [];
3818 array_push($arguments, $tmp[$i][0]);
3822 $path_cmd = $this->svgPolyline($arguments);
3833 $arguments = [];
3837 array_push($arguments, $tmp[0][$i]);
3841 $path_cmd = $this->svgPolygon($arguments);