Lines Matching defs:y

260 		// x and y are coordinates
262 $y = (isset($attribs['y']) ? $attribs['y'] : 0);
291 // x,y,w,h define the reference rectangle
295 $img_y = $y;
322 // do nothing to y
325 // do nothing to y
328 // do nothing to y
353 $s .= sprintf('%.3F %.3F m ', ($x) * $this->kp, (-($y + $h)) * $this->kp); // start point TL before the arc
354 $s .= sprintf('%.3F %.3F l ', ($x) * $this->kp, (-($y)) * $this->kp); // line to BL
355 $s .= sprintf('%.3F %.3F l ', ($x + $w) * $this->kp, (-($y)) * $this->kp); // line to BR
356 $s .= sprintf('%.3F %.3F l ', ($x + $w) * $this->kp, (-($y + $h)) * $this->kp); // line to TR
357 $s .= sprintf('%.3F %.3F l ', ($x) * $this->kp, (-($y + $h)) * $this->kp); // line to TL
383 $y_offset = $attribs['y'];
402 } else { // y values
430 } else { // y values
440 if ($cmd == 'V') { // sets new y
651 $f = -$usey; // -y-offset
698 $res3 = $this->testIntersect($px1, $py1, $px2, $py2, 0, 0, 1, 0); // $y=0 horiz axis
699 $res4 = $this->testIntersect($px1, $py1, $px2, $py2, 0, 1, 1, 1); // $y=1 horiz axis
741 $res3 = $this->testIntersect($px1, $py1, $px2, $py2, 0, 0, 1, 0); // $y=0 horiz axis
742 $res4 = $this->testIntersect($px1, $py1, $px2, $py2, 0, 1, 1, 1); // $y=1 horiz axis
926 $f = -$usey; // -y-offset
1046 $this->svg_info['y'] = $vb[1];
1087 $this->svg_info['y'] = 0;
1094 function svg_overflow($x, $y)
1097 $y2 = $y;
1117 if ($y < $ymax) {
1120 if ($y > $ymin) {
1127 return ['x' => $x2, 'y' => $y2];
1597 $y = $a[$i + 1];
1602 $pdfy = ($this->ybase - $y);
1604 $this->ybase += -$y;
1609 $pdfy = -$y;
1611 $this->ybase = -$y;
1618 $mint = min($mint, -$pdf_pt['y']);
1619 $maxb = max($maxb, -$pdf_pt['y']);
1622 $path_cmd .= sprintf('%.3F %.3F m ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1624 $path_cmd .= sprintf('%.3F %.3F l ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1642 $y = ($a[$i + 1]);
1647 $pdfy = ($this->ybase - $y);
1649 $this->ybase += -$y;
1654 $pdfy = -$y;
1656 $this->ybase = -$y;
1664 $mint = min($mint, -$pdf_pt['y']);
1665 $maxb = max($maxb, -$pdf_pt['y']);
1667 $path_cmd .= sprintf('%.3F %.3F l ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1680 $y = 0;
1682 $pdfy = ($this->ybase - $y);
1684 $this->ybase += -$y;
1688 $y = -$this->ybase;
1690 $pdfy = -$y;
1692 $this->ybase = -$y;
1699 $mint = min($mint, -$pdf_pt['y']);
1700 $maxb = max($maxb, -$pdf_pt['y']);
1701 $path_cmd .= sprintf('%.3F %.3F l ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1710 $y = ($a[$i]);
1716 $pdfy = ($this->ybase - $y);
1718 $this->ybase += -$y;
1724 $pdfy = -$y;
1726 $this->ybase = -$y;
1733 $mint = min($mint, -$pdf_pt['y']);
1734 $maxb = max($maxb, -$pdf_pt['y']);
1735 $path_cmd .= sprintf('%.3F %.3F l ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1758 $y = ($a[$i + 3]);
1767 $pdfy = ($this->ybase - $y);
1769 $this->ybase += -$y;
1778 $pdfy = -$y;
1780 $this->ybase = -$y;
1795 if (($pdf_pt['x'] != $pdfx) || ($pdf_pt['y'] != $pdfy)) {
1796 $path_cmd .= sprintf('%.3F %.3F l ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1813 $y = ($a[$i + 5]);
1822 $pdfy = ($this->ybase - $y);
1824 $this->ybase += -$y;
1833 $pdfy = -$y;
1835 $this->ybase = -$y;
1851 if (($pdf_pt['x'] != $pdfx) || ($pdf_pt['y'] != $pdfy)) {
1852 $path_cmd .= sprintf('%.3F %.3F l ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1867 $y = ($a[$i + 3]);
1872 $pdfy = ($this->ybase - $y);
1878 $pdfy2 = $pdfy1 + 1 / 3 * (-$y);
1881 $this->ybase += -$y;
1886 $pdfy = -$y;
1892 $pdfy2 = (-$y - (($y1 - $y) * 2 / 3));
1896 $pdfy2 = $pdfy1 + 1 / 3 * (-$y - $this->ybase);
1899 $this->ybase = -$y;
1914 if (($pdf_pt['x'] != $pdfx) || ($pdf_pt['y'] != $pdfy)) {
1915 $path_cmd .= sprintf('%.3F %.3F l ', $pdf_pt['x'] * $this->kp, $pdf_pt['y'] * $this->kp);
1932 $y = ($a[$i + 1]);
1939 $pdfy = ($this->ybase - $y);
1945 $pdfy2 = $pdfy1 + 1 / 3 * (-$y);
1948 $this->ybase += -$y;
1953 $pdfy = -$y;
1960 $pdfy2 = $pdfy1 + 1 / 3 * (-$y - $this->ybase);
1963 $this->ybase = -$y;
2192 // maxsize in pixels (user units) or 'y' or 'x'
2199 if ($maxsize == 'y') {
2235 $y = $this->ConvertSVGSizePixels($arguments['y'], 'y'); // mPDF 4.4.003
2236 $h = $this->ConvertSVGSizePixels($arguments['h'], 'y'); // mPDF 4.4.003
2239 $ry = $this->ConvertSVGSizePixels($arguments['ry'], 'y'); // mPDF 4.4.003
2261 $path_cmd = sprintf('%.3F %.3F m ', ($x * $this->kp), -($y * $this->kp));
2262 $path_cmd .= sprintf('%.3F %.3F l ', (($x + $w) * $this->kp), -($y * $this->kp));
2263 $path_cmd .= sprintf('%.3F %.3F l ', (($x + $w) * $this->kp), -(($y + $h) * $this->kp));
2264 $path_cmd .= sprintf('%.3F %.3F l ', ($x) * $this->kp, -(($y + $h) * $this->kp));
2265 $path_cmd .= sprintf('%.3F %.3F l h ', ($x * $this->kp), -($y * $this->kp));
2274 $path_cmd = sprintf('%.3F %.3F m ', ($x + $rx) * $this->kp, -$y * $this->kp);
2275 $path_cmd .= sprintf('%.3F %.3F l ', ($x + ($w - $rx)) * $this->kp, -$y * $this->kp);
2276 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', ($x + ($w - $rx + $kx)) * $this->kp, -$y * $this->kp, ($x + $w) * $this->kp, (-$y + (-$ry + $ky)) * $this->kp, ($x + $w) * $this->kp, (-$y + (-$ry)) * $this->kp);
2277 $path_cmd .= sprintf('%.3F %.3F l ', ($x + $w) * $this->kp, (-$y + (-$h + $ry)) * $this->kp);
2278 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', ($x + $w) * $this->kp, (-$y + (-$h - $ky + $ry)) * $this->kp, ($x + ($w - $rx + $kx)) * $this->kp, (-$y + (-$h)) * $this->kp, ($x + ($w - $rx)) * $this->kp, (-$y + (-$h)) * $this->kp);
2280 $path_cmd .= sprintf('%.3F %.3F l ', ($x + $rx) * $this->kp, (-$y + (-$h)) * $this->kp);
2281 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', ($x + ($rx - $kx)) * $this->kp, (-$y + (-$h)) * $this->kp, $x * $this->kp, (-$y + (-$h - $ky + $ry)) * $this->kp, $x * $this->kp, (-$y + (-$h + $ry)) * $this->kp);
2282 $path_cmd .= sprintf('%.3F %.3F l ', $x * $this->kp, (-$y + (-$ry)) * $this->kp);
2283 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c h ', $x * $this->kp, (-$y + (-$ry + $ky)) * $this->kp, ($x + ($rx - $kx)) * $this->kp, -$y * $this->kp, ($x + $rx) * $this->kp, -$y * $this->kp);
2302 $cy = $this->ConvertSVGSizePixels($arguments['cy'], 'y');
2304 $ry = $this->ConvertSVGSizePixels($arguments['ry'], 'y');
2338 $ybase = - $this->ConvertSVGSizePixels($arguments[1], 'y');
2349 $tmp_y = - $this->ConvertSVGSizePixels($arguments[($i + 1)], 'y');
2481 $y = $this->txt_data[1]; // mPDF 5.7.4
2526 $subpath_cmd .= sprintf('q %.4F 0 0 %.4F mPDF-AXS(%.4F) %.4F cm ', $scale, -$scale, ($x + $sw * $scale) * $this->kp, -$y * $this->kp);
2656 $y = $this->txt_data[1]; // mPDF 5.7.4
2723 $pdfy = -$y * $this->kp;
3190 // Change x,y coords to translate()
3192 $y = $m[1];
3194 $y = 0;
3203 if ($x || $y) {
3205 $inners = preg_replace('/(y|x)\s*=\s*["\']([^>]*?)["\']/', '', $inners);
3211 $y += $mm[2];
3213 $transform = 'transform="' . $transform . ' translate(' . $x . ', ' . $y . ')"';
3216 $inners = preg_replace('/' . preg_quote($m[0], '/') . '/is', 'transform="' . $m[1] . ' translate(' . $x . ', ' . $y . ')"', $inners);
3220 $inners .= ' transform="translate(' . $x . ', ' . $y . ')"';
3247 // Change x,y coords to translate()
3249 $y = $m[1];
3251 $y = 0;
3260 if ($x || $y) {
3261 $inners = preg_replace('/(y|x)\s*=\s*["\']([^>]*?)["\']/', '', $inners);
3266 $y += $mm[2];
3268 $transform = 'transform="' . $transform . ' translate(' . $x . ', ' . $y . ')"';
3271 $inners = preg_replace('/' . preg_quote($m[0], '/') . '/is', 'transform="' . $m[1] . ' translate(' . $x . ', ' . $y . ')"', $inners);
3274 $inners .= ' transform="translate(' . $x . ', ' . $y . ')"';
3320 'y' => -$this->svg_info['y'] * $this->kp,
3681 if (!isset($attribs['y'])) {
3682 $attribs['y'] = 0;
3699 if (isset($attribs['y'])) {
3700 $arguments['y'] = $attribs['y'];
3721 unset($critere_style['x'], $critere_style['y'], $critere_style['rx'], $critere_style['ry'], $critere_style['height'], $critere_style['width']);
3938 $y = isset($attribs['y']) ? $this->ConvertSVGSizePixels($attribs['y'], 'y') : 0; // mPDF 5.7.4
3940 $y += isset($attribs['dy']) ? $this->ConvertSVGSizePixels($attribs['dy'], 'y') : 0; // mPDF 5.7.4
3943 $this->txt_data[1] = $y; // mPDF 5.7.4
3945 unset($critere_style['x'], $critere_style['y']);
4001 // If absolute position adjustment (x or y), creates new block of text for text-alignment
4002 if (isset($attribs['x']) || isset($attribs['y'])) {
4030 $y = isset($attribs['y']) ? $this->ConvertSVGSizePixels($attribs['y'], 'y') : $currentY;
4033 $this->txt_data[1] = $y;
4035 unset($critere_style['x'], $critere_style['y']);
4040 $this->textYorigin = $y;
4047 $currentY += isset($attribs['dy']) ? $this->ConvertSVGSizePixels($attribs['dy'], 'y') : 0;
4052 unset($critere_style['x'], $critere_style['y']);
4263 $y = min($bounds[1]);
4266 return [$x, $y, $x2, $y2];
4303 $y = ($a1 * $c2 - $a2 * $c1) / $det;
4304 if ($x >= $x3 && $x <= $x4 && $y >= $y3 && $y <= $y4) {