Lines Matching refs:ry
4140 ry: value
4622 proto.rect = function (x, y, w, h, rx, ry) { argument
4624 if (ry == null) {
4625 ry = rx;
4638 attr.ry = ry;
4751 proto.ellipse = function (cx, cy, rx, ry) { argument
4760 ry: ry property in proto.ellipse.attr
5776 function ellipsePath(x, y, rx, ry, a) { argument
5777 if (a == null && ry == null) {
5778 ry = rx;
5783 ry = +ry;
5786 x1 = x + rx * Math.cos(-ry * rad),
5788 y1 = y + rx * Math.sin(-ry * rad),
5790 res = [["M", x1, y1], ["A", rx, rx, 0, +(a - ry > 180), 0, x2, y2]];
5794 ["m", 0, -ry],
5795 ["a", rx, ry, 0, 1, 1, 0, 2 * ry],
5796 ["a", rx, ry, 0, 1, 1, 0, -2 * ry],
5814 return ellipsePath(attr.cx || 0, attr.cy || 0, attr.rx, attr.ry);
5818 return rectPath(attr.x || 0, attr.y || 0, attr.width, attr.height, attr.rx, attr.ry);
6058 function a2c(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) { argument
6081 var h = (x * x) / (rx * rx) + (y * y) / (ry * ry);
6085 ry = h * ry;
6088 ry2 = ry * ry,
6091 cx = k * rx * y / ry + (x1 + x2) / 2,
6092 cy = k * -ry * x / rx + (y1 + y2) / 2,
6093 f1 = math.asin(((y1 - cy) / ry).toFixed(9)),
6094 f2 = math.asin(((y2 - cy) / ry).toFixed(9));
6119 y2 = cy + ry * math.sin(f2);
6120 res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);
6129 hy = 4 / 3 * ry * t,