Lines Matching refs:x

874   return box.x + box.width / 2;
885 function clamp(x, min, max) { argument
886 if (x < min) {
889 if (x > max) {
892 return x;
910 x: (x2 - x1) * r1 + x1 + xfactor, property in wobble.p1
915 x: (x2 - x1) * r2 + x1 - xfactor, property in wobble.p2
919 return 'C' + p1.x.toFixed(1) + ',' + p1.y.toFixed(1) + // start control point
920 ' ' + p2.x.toFixed(1) + ',' + p2.y.toFixed(1) + // end control point
927 function handRect(x, y, w, h) { argument
928 assert(_.all([x, y, w, h], _.isFinite), 'x, y, w, h must be numeric');
929 return 'M' + x + ',' + y +
930 wobble(x, y, x + w, y) +
931 wobble(x + w, y, x + w, y + h) +
932 wobble(x + w, y + h, x, y + h) +
933 wobble(x, y + h, x, y);
997 title.x = DIAGRAM_MARGIN;
1008 a.x = 0; a.y = 0;
1023 b.x = Math.max(d - b.width / 2, b.x);
1104 a.x = Math.max(actorsX, a.x);
1116 b.x = Math.max(b.x, a.x + a.width / 2 + distance - b.width / 2);
1119 actorsX = a.x + a.width + a.paddingRight;
1190 var x = aX + SELF_SIGNAL_WIDTH + SIGNAL_PADDING;
1193 this.drawText(x, y, signal.message, this.font_, ALIGN_LEFT);
1209 var x = (bX - aX) / 2 + aX;
1213 this.drawText(x, y, signal.message, this.font_, ALIGN_CENTER);
1226 note.x = aX + ACTOR_MARGIN;
1229 note.x = aX - ACTOR_MARGIN - note.width;
1235 note.x = Math.min(aX, bX) - overlap;
1236 note.width = (Math.max(aX, bX) + overlap) - note.x;
1238 note.x = aX - note.width / 2;
1251 var x = box.x + margin;
1257 this.drawRect(x, y, w, h);
1261 x = getCenterX(box);
1264 x += padding;
1268 return this.drawText(x, y, text, font, align);
1392 drawRect: function(x, y, w, h) { argument
1393 return this.paper_.rect(x, y, w, h).attr(RECT);
1403 drawText: function(x, y, text, font, align) { argument
1412 x = x - bb.width / 2;
1419 t = paper.print(x - bb.x, y - bb.y, text, font.obj_, font['font-size']);
1421 t = paper.text(x - bb.x - bb.width / 2, y - bb.y, text);
1459 drawRect: function(x, y, w, h) { argument
1460 return this.paper_.path(handRect(x, y, w, h)).attr(RECT);