Lines Matching defs:offset

250 		ret.minx += offset.x;
251 ret.maxx += offset.x;
252 ret.miny += offset.y;
253 ret.maxy += offset.y;
258 // Expand given rectangle by an offset
259 function expandRect(r, offset){
260 return {minx: r.minx - offset, miny : r.miny - offset,
261 maxx: r.maxx + offset, maxy: r.maxy + offset};
294 if(mx < offset.x || my < offset.y)
392 if(!hitRect(pointHandle(p.x, p.y), mx - offset.x, my - offset.y))
434 if("cx" in p && "cy" in p && hitRect(pointHandle(p.cx, p.cy), mx - offset.x, my - offset.y)){
441 if("dx" in p && "dy" in p && hitRect(pointHandle(p.dx, p.dy), mx - offset.x, my - offset.y)){
499 if(mx < offset.x || my < offset.y)
585 mx -= offset.x;
586 my -= offset.y;
657 mx -= offset.x;
658 my -= offset.y;
800 /// These coordinates can differ when offset is not zero.
802 return { x: (coord.x - offset.x) / scale, y: (coord.y - offset.y) / scale };
854 offset = {x:0, y:0};
861 offset = {x:x1, y:y1};
907 ctx.translate(offset.x, offset.y);
945 ctx.moveTo(pts[0].x + offset.x, pts[0].y + offset.y);
947 ctx.lineTo(pts[i].x + offset.x, pts[i].y + offset.y);
956 ctx.moveTo(pt0.x + offset.x, pt0.y + offset.y);
957 ctx.lineTo(pt[name + "x"] + offset.x, pt[name + "y"] + offset.y);
965 drawHandle(pt.x + offset.x, pt.y + offset.y,
974 drawHandle(pt.cx + offset.x, pt.cy + offset.y, '#ff7f7f', true);
978 drawHandle(pt.dx + offset.x, pt.dy + offset.y, '#ff7f7f', true);
2378 textLayer.style.left = (canvasRect.left + scrollX + offset.x + coord.x) + 'px';
2379 textLayer.style.top = (canvasRect.top + scrollY + offset.y + coord.y) + 'px';
2477 // This one does not take offset into account since the transformation is done
2642 var offset = editmode ? {x:x1, y:y1} : {x:0, y:0};