Lines Matching refs:x1
114 var drawLine = function (x1, y1, x2, y2, text) argument
117 x1 = Math.round(x1); y1 = Math.round(y1); x2 = Math.round(x2); y2 = Math.round(y2);
120 ctx.moveTo(x1 + 0.5, y1 + 0.5);
129 ctx.translate(x1, y1);
136 ctx.fillText(text, x1, y1);
420 ctx.putImageData(ruler.guidePart.imgData1, ruler.guidePart.x1, ruler.guidePart.y1);
434 var x1, y1, imgData1, x2, y2, imgData2, x3, y3, imgData3;
442 x1 = 0;
447 imgData1 = ctx.getImageData(x1, y1 - 1, RULER_THICKNESS, 3);
448 drawLine(x1, y1, RULER_THICKNESS, y1);
460 x1 = bounds.x + ret.x + RULER_THICKNESS - this.graph.container.scrollLeft;
462 x2 = x1 + bounds.width / 2;
464 x3 = x1 + bounds.width;
465 imgData1 = ctx.getImageData(x1 - 1, y1, 3, RULER_THICKNESS);
466 drawLine(x1, y1, x1, RULER_THICKNESS);
467 x1--;
476 if (ruler.guidePart == null || ruler.guidePart.x1 != x1 || ruler.guidePart.y1 != y1)
480 x1: x1, property in ruler.guidePart
514 ctx.putImageData(ruler.guidePart.imgData1, ruler.guidePart.x1, ruler.guidePart.y1);