Lines Matching refs:x

595             x: 0,
617 x: nu,
636 pipe = function (x) { argument
637 return x;
639 rectPath = R._rectPath = function (x, y, w, h, r) { argument
641 …return [["M", x + r, y], ["l", w - r * 2, 0], ["a", r, r, 0, 0, 1, r, r], ["l", 0, h - r * 2], ["a…
643 return [["M", x, y], ["l", w, 0], ["l", 0, h], ["l", -w, 0], ["z"]];
645 ellipsePath = function (x, y, rx, ry) { argument
649 …return [["M", x, y], ["m", 0, -ry], ["a", rx, ry, 0, 1, 1, 0, 2 * ry], ["a", rx, ry, 0, 1, 1, 0, -…
665 return rectPath(a.x, a.y, a.width, a.height, a.r);
669 return rectPath(a.x, a.y, a.width, a.height);
673 return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);
677 return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);
694 var x, y, i, j, ii, jj, pathi;
699 x = matrix.x(pathi[j], pathi[j + 1]);
701 pathi[j] = x;
822 var x = x1 - x2,
824 if (!x && !y) {
827 return (180 + math.atan2(-y, -x) * 180 / PI + 360) % 360;
1421 {x: +crp[i - 2], y: +crp[i - 1]},
1422 {x: +crp[i], y: +crp[i + 1]},
1423 {x: +crp[i + 2], y: +crp[i + 3]},
1424 {x: +crp[i + 4], y: +crp[i + 5]}
1428 p[0] = {x: +crp[iLen - 2], y: +crp[iLen - 1]}; property in catmullRom2bezier.p
1430 p[3] = {x: +crp[0], y: +crp[1]}; property in catmullRom2bezier.p
1432 p[2] = {x: +crp[0], y: +crp[1]}; property in catmullRom2bezier.p
1433 p[3] = {x: +crp[2], y: +crp[3]}; property in catmullRom2bezier.p
1439 p[0] = {x: +crp[i], y: +crp[i + 1]}; property in catmullRom2bezier.p
1443 (-p[0].x + 6 * p[1].x + p[2].x) / 6,
1445 (p[1].x + 6 * p[2].x - p[3].x) / 6,
1447 p[2].x,
1602 x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x,
1615 x: x,
1617 m: {x: mx, y: my},
1618 n: {x: nx, y: ny},
1619 start: {x: ax, y: ay},
1620 end: {x: cx, y: cy},
1660 x: bbox.min.x,
1662 x2: bbox.max.x,
1664 width: bbox.max.x - bbox.min.x,
1681 R.isPointInsideBBox = function (bbox, x, y) { argument
1682 return x >= bbox.x && x <= bbox.x2 && y >= bbox.y && y <= bbox.y2;
1698 return i(bbox2, bbox1.x, bbox1.y)
1700 || i(bbox2, bbox1.x, bbox1.y2)
1702 || i(bbox1, bbox2.x, bbox2.y)
1704 || i(bbox1, bbox2.x, bbox2.y2)
1706 || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x)
1782 return {x: px, y: py};
1806 dots1.push({x: p.x, y: p.y, t: i / n1});
1810 dots2.push({x: p.x, y: p.y, t: i / n2});
1818 ci = abs(di1.x - di.x) < .001 ? "y" : "x",
1819 cj = abs(dj1.x - dj.x) < .001 ? "y" : "x",
1820 is = intersect(di.x, di.y, di1.x, di1.y, dj.x, dj.y, dj1.x, dj1.y);
1822 if (xy[is.x.toFixed(4)] == is.y.toFixed(4)) {
1825 xy[is.x.toFixed(4)] = is.y.toFixed(4);
1833 x: is.x,
1941 R.isPointInsidePath = function (path, x, y) { argument
1943 return R.isPointInsideBBox(bbox, x, y) &&
1944 interPathHelper(path, [["M", x, y], ["H", bbox.x2 + 10]], 1) % 2 == 1;
1978 return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0};
1981 var x = 0,
1989 x = p[1];
1991 X.push(x);
1994 var dim = curveDim(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);
1995 X = X[concat](dim.min.x, dim.max.x);
1997 x = p[5];
2008 x: xmin,
2034 x = 0,
2040 x = pathArray[0][1];
2042 mx = x;
2045 res.push(["M", x, y]);
2059 r[6] = +(pa[6] - x).toFixed(3);
2070 r[j] = +(pa[j] - ((j % 2) ? x : y)).toFixed(3);
2076 mx = pa[1] + x;
2086 x = mx;
2090 x += +res[i][len - 1];
2096 x += +res[i][len - 2];
2116 x = 0,
2122 x = +pathArray[0][1];
2124 mx = x;
2127 res[0] = ["M", x, y];
2142 r[6] = +(pa[6] + x);
2149 r[1] = +pa[1] + x;
2152 var dots = [x, y][concat](pa.slice(1));
2154 dots[j] = +dots[j] + x;
2161 mx = +pa[1] + x;
2165 r[j] = +pa[j] + ((j % 2) ? x : y);
2169 dots = [x, y][concat](pa.slice(1));
2180 x = mx;
2184 x = r[1];
2193 x = r[r.length - 2];
2223 rotate = cacher(function (x, y, rad) { argument
2224 var X = x * math.cos(rad) - y * math.sin(rad),
2225 Y = x * math.sin(rad) + y * math.cos(rad);
2226 return {x: X, y: Y};
2230 x1 = xy.x;
2233 x2 = xy.x;
2237 x = (x1 - x2) / 2,
2239 var h = (x * x) / (rx * rx) + (y * y) / (ry * ry);
2248 … math.sqrt(abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))),
2250 cy = k * -ry * x / rx + (y1 + y2) / 2,
2300 … newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;
2308x: pow(t1, 3) * p1x + pow(t1, 2) * 3 * t * c1x + t1 * 3 * t * t * c2x + pow(t, 3) * p2x,
2319 x = [p1x, p2x],
2325 x.push(dot.x);
2330 x.push(dot.x);
2342 x.push(dot.x);
2347 x.push(dot.x);
2351 min: {x: mmin[apply](0, x), y: mmin[apply](0, y)},
2352 max: {x: mmax[apply](0, x), y: mmax[apply](0, y)}
2362 attrs = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null}, property in AnonymousFunctionfecc8d704f00.attrs
2363 attrs2 = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null}, property in AnonymousFunctionfecc8d704f00.attrs2
2367 return ["C", d.x, d.y, d.x, d.y, d.x, d.y];
2376 path = ["C"][concat](a2c[apply](0, [d.x, d.y][concat](path.slice(1))));
2380 nx = d.x * 2 - d.bx; // And reflect the previous
2384 nx = d.x;
2391 d.qx = d.x * 2 - d.qx; // And make a reflection similar
2395 d.qx = d.x;
2398 path = ["C"][concat](q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));
2403 path = ["C"][concat](q2c(d.x, d.y, path[1], path[2], path[3], path[4]));
2406 path = ["C"][concat](l2c(d.x, d.y, path[1], path[2]));
2409 path = ["C"][concat](l2c(d.x, d.y, path[1], d.y));
2412 path = ["C"][concat](l2c(d.x, d.y, d.x, path[1]));
2415 path = ["C"][concat](l2c(d.x, d.y, d.X, d.Y));
2433 path2.splice(i, 0, ["M", a2.x, a2.y]);
2436 a1.x = path1[i][1];
2452 attrs.x = seg[seglen - 2];
2454 attrs.bx = toFloat(seg[seglen - 4]) || attrs.x;
2456 attrs2.bx = p2 && (toFloat(seg2[seg2len - 4]) || attrs2.x);
2458 attrs2.x = p2 && seg2[seg2len - 2];
2613 x1 = inver.x(0, 0);
2615 x2 = inver.x(t[1], t[2]);
2624 m.rotate(t[1], bb.x + bb.width / 2, bb.y + bb.height / 2);
2628 x2 = inver.x(t[2], t[3]);
2639 m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);
2644 x2 = inver.x(t[3], t[4]);
2676 _.bbox.x += +dx;
2731 R._getContainer = function (x, y, w, h) { argument
2733 container = h == null && !R.is(x, "object") ? g.doc.getElementById(x) : x;
2754 x: x,
2841 x, y, z, res;
2847 for (x = 0; x < 3; x++) {
2851 res += m[x][z] * matrix[z][y];
2853 out[x][y] = res;
2872 x = me.a * me.d - me.b * me.c;
2873 …return new Matrix(me.d / x, -me.b / x, -me.c / x, me.a / x, (me.c * me.f - me.d * me.e) / x, (me.b…
2894 matrixproto.translate = function (x, y) { argument
2895 this.add(1, 0, 0, 1, x, y);
2908 matrixproto.scale = function (x, y, cx, cy) { argument
2909 y == null && (y = x);
2911 this.add(x, 0, 0, y, 0, 0);
2924 matrixproto.rotate = function (a, x, y) { argument
2926 x = x || 0;
2930 this.add(cos, sin, -sin, cos, x, y);
2931 this.add(1, 0, 0, 1, -x, -y);
2943 matrixproto.x = function (x, y) { argument
2944 return x * this.a + y * this.c + this.e;
2956 matrixproto.y = function (x, y) { argument
2957 return x * this.b + y * this.d + this.f;
3091 x: e.clientX + scrollX,
3100 return fn.call(element, e, pos.x, pos.y);
3119 return fn.call(element, e, pos.x, pos.y);
3139 x = e.clientX + scrollX,
3143 return fn.call(element, e, x, y);
3156 var x = e.clientX,
3170 x = touch.clientX;
3186 o = dragi.el.paper.getElementByPoint(x, y);
3190 x += scrollX;
3192 …g.move." + dragi.el.id, dragi.move_scope || dragi.el, x - dragi.el._drag.x, y - dragi.el._drag.y,
3587 var x = e.clientX,
3598 x = touch.clientX;
3604 this._drag.x = x + scrollX;
3661 paperproto.circle = function (x, y, r) { argument
3662 var out = R._engine.circle(this, x || 0, y || 0, r || 0);
3687 paperproto.rect = function (x, y, w, h, r) { argument
3688 var out = R._engine.rect(this, x || 0, y || 0, w || 0, h || 0, r || 0);
3709 paperproto.ellipse = function (x, y, rx, ry) { argument
3710 var out = R._engine.ellipse(this, x || 0, y || 0, rx || 0, ry || 0);
3770 paperproto.image = function (src, x, y, w, h) { argument
3771 var out = R._engine.image(this, src || "about:blank", x || 0, y || 0, w || 0, h || 0);
3791 paperproto.text = function (x, y, text) { argument
3792 var out = R._engine.text(this, x || 0, y || 0, Str(text));
3880 paperproto.setViewBox = function (x, y, w, h, fit) { argument
3881 return R._engine.setViewBox.call(this, x, y, w, h, fit);
3913 x: left
3930 paperproto.getElementByPoint = function (x, y) { argument
3933 target = g.doc.elementFromPoint(x, y);
3937 sr.x = x - so.x;
4038 paperproto.getElementsByPoint = function (x, y) { argument
4041 if (el.isPointInside(x, y)) {
4048 return this.x + S + this.y;
4051 return this.x + S + this.y + S + this.width + " \xd7 " + this.height;
4065 elproto.isPointInside = function (x, y) { argument
4070 return R.isPointInsidePath(rp, x, y);
4193 var x, y, p, l, sp = "", subpaths = {}, point,
4198 x = +p[1];
4201 l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);
4204 … point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);
4205 … sp += ["C" + point.start.x, point.start.y, point.m.x, point.m.y, point.x, point.y];
4208 …sp = ["M" + point.x, point.y + "C" + point.n.x, point.n.y, point.end.x, point.end.y, p[5], p[6]].j…
4210 x = +p[5];
4215 … point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);
4216 return {x: point.x, y: point.y, alpha: point.alpha};
4220 x = +p[5];
4226 …point = istotal ? len : subpath ? subpaths : R.findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4…
4227 point.alpha && (point = {x: point.x, y: point.y, alpha: point.alpha});
4404 x = Q - q,
4405 X = pow(abs(x), 1 / 3) * (x < 0 ? -1 : 1),
4619 x, y;
4644 function solve(x, epsilon) { argument
4645 var t = solveCurveX(x, epsilon);
4648 function solveCurveX(x, epsilon) { argument
4650 for(t2 = x, i = 0; i < 8; i++) {
4651 x2 = sampleCurveX(t2) - x;
4663 t2 = x;
4672 if (abs(x2 - x) < epsilon) {
4675 if (x > x2) {
5350 var x = [],
5356 x.push(box.x);
5358 x2.push(box.x + box.width);
5361 x = mmin[apply](0, x);
5366 x: x,
5370 width: x2 - x,
5411 setproto.isPointInside = function (x, y) { argument
5414 if (el.isPointInside(x, y)) {
5464 return {l: "L", c: "C", x: "z", t: "m", r: "l", v: "c"}[command] || "M";
5541 paperproto.print = function (x, y, string, font, size, origin, letter_spacing, line_spacing) { argument
5571 … ["t", shift * scale, shifty * scale, "s", scale, scale, top, height, "t", (x - top) / scale, (y -…
5896 … $(o.pattern, {patternTransform: o.matrix.invert() + " translate(" + bbox.x + "," + bbox.y + ")"});
6128 x: rect[0],
6163 value = attrs.x;
6169 value = -attrs.x - (attrs.width || 0);
6240 … $(el, {x: 0, y: 0, patternUnits: "userSpaceOnUse", height: 1, width: 1});
6241 $(ig, {x: 0, y: 0, "xlink:href": isURL[1]});
6343 i && $(tspan, {dy: fontSize * leading, x: a.x});
6351 $(tspans[i], {dy: fontSize * leading, x: a.x});
6356 $(node, {x: a.x, y: a.y});
6489 cx = bbox.x + bbox.width / 2;
6526 cx = cx == null ? bbox.x + bbox.width / 2 : cx;
6916 R._engine.circle = function (svg, x, y, r) { argument
6920 res.attrs = {cx: x, cy: y, r: r, fill: "none", stroke: "#000"};
6925 R._engine.rect = function (svg, x, y, w, h, r) { argument
6929 …res.attrs = {x: x, y: y, width: w, height: h, r: r || 0, rx: r || 0, ry: r || 0, fill: "none", str… property in res.attrs
6934 R._engine.ellipse = function (svg, x, y, rx, ry) { argument
6938 res.attrs = {cx: x, cy: y, rx: rx, ry: ry, fill: "none", stroke: "#000"};
6943 R._engine.image = function (svg, src, x, y, w, h) { argument
6945 $(el, {x: x, y: y, width: w, height: h, preserveAspectRatio: "none"});
6949 res.attrs = {x: x, y: y, width: w, height: h, src: src}; property in res.attrs
6953 R._engine.text = function (svg, x, y, text) { argument
6958 x: x, property in res.attrs
6983 x = con.x,
6993 x = x || 0;
7004 cnvs.style.cssText = css + "position:absolute;left:" + x + "px;top:" + y + "px";
7025 R._engine.setViewBox = function (x, y, w, h, fit) { argument
7026 eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
7032 if (x == null) {
7040 vb = x + S + y + S + w + S + h;
7053 this._viewBox = [x, y, w, h, !!fit];
7205 dx: m.x(dx, dy),
7240 c = compensation(deg, m.x(fillpos[0], fillpos[1]), m.y(fillpos[0], fillpos[1]));
7288 …newpath = pathTypes[o.type] && (params.x != a.x || params.y != a.y || params.width != a.width || p…
7308 o._.fillpos = [a.x, a.y];
7390 fill.position = bbox.x + S + bbox.y;
7391 o._.fillpos = [bbox.x, bbox.y];
7476 res.X = a.x;
7479 …s) && (res.path.v = R.format("m{0},{1}l{2},{1}", round(a.x * zoom), round(a.y * zoom), round(a.x *…
7619 dx = bb.x - bbt.x,
7651 cx = bbox.x + bbox.width / 2;
7669 this._.bbox.x += dx;
7693 cx = cx == null ? bbox.x + bbox.width / 2 : cx;
7713 x: this.X + (this.bbx || 0) - this.W / 2,
7874 R._engine.rect = function (vml, x, y, w, h, r) { argument
7875 var path = R._rectPath(x, y, w, h, r),
7878 res.X = a.x = x;
7887 R._engine.ellipse = function (vml, x, y, rx, ry) { argument
7890 res.X = x - rx;
7896 cx: x,
7903 R._engine.circle = function (vml, x, y, r) { argument
7906 res.X = x - r;
7911 cx: x,
7917 R._engine.image = function (vml, src, x, y, w, h) { argument
7918 var path = R._rectPath(x, y, w, h),
7924 res.X = a.x = x;
7934 res._.fillpos = [x, y];
7940 R._engine.text = function (vml, x, y, text) { argument
7944 x = x || 0;
7947 … path.v = R.format("m{0},{1}l{2},{1}", round(x * zoom), round(y * zoom), round(x * zoom) + 1);
7966 p.attrs.x = x;
7995 R._engine.setViewBox = function (x, y, w, h, fit) { argument
7996 R.eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
8005 x -= (width - w * H) / 2 / H;
8011 this._viewBox = [x, y, w, h, !!fit];
8013 dx: -x,
8044 x = con.x,
8052 x = x || 0;
8068 cs.left = x + "px";