Lines Matching refs:y1
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;
441 y1 = bounds.y + ret.y + RULER_THICKNESS - this.graph.container.scrollTop;
443 y2 = y1 + bounds.height / 2;
445 y3 = y1 + bounds.height;
447 imgData1 = ctx.getImageData(x1, y1 - 1, RULER_THICKNESS, 3);
448 drawLine(x1, y1, RULER_THICKNESS, y1);
449 y1--;
459 y1 = 0;
465 imgData1 = ctx.getImageData(x1 - 1, y1, 3, RULER_THICKNESS);
466 drawLine(x1, y1, x1, RULER_THICKNESS);
476 if (ruler.guidePart == null || ruler.guidePart.x1 != x1 || ruler.guidePart.y1 != y1)
481 y1: y1, property in ruler.guidePart
514 ctx.putImageData(ruler.guidePart.imgData1, ruler.guidePart.x1, ruler.guidePart.y1);