Lines Matching +refs:round +refs:b

1512 					clone.geometry.x = graph.snap(Math.round(x / graph.view.scale) -
1514 clone.geometry.y = graph.snap(Math.round(y / graph.view.scale) -
1549 var b = graph.container.scrollTop + graph.container.offsetHeight;
1550 var dy = div.offsetTop + div.clientHeight - b;
1993 return new mxPoint(Math.max(0, Math.round((graph.container.offsetWidth - 34) / graph.view.scale)),
1994 Math.max(0, Math.round((graph.container.offsetHeight - 34) / graph.view.scale)));
2036 var b = mxRectangle.fromRectangle(bds);
2037 b.x = b.x / s - tr.x;
2038 b.y = b.y / s - tr.y;
2039 b.width /= s;
2040 b.height /= s;
2054 var ns = (autoscale) ? Math.max(0.3, Math.min(maxScale || 1, cw / b.width)) : s;
2055 var dx = ((cw - ns * b.width) / 2) / ns;
2056 …var dy = (this.lightboxVerticalDivider == 0) ? 0 : ((ch - ns * b.height) / this.lightboxVerticalDi…
2066 graph.view.scaleAndTranslate(ns, Math.floor(dx - b.x), Math.floor(dy - b.y));
2683 graph.container.scrollLeft += Math.round((dx - tx) * graph.view.scale);
2684 graph.container.scrollTop += Math.round((dy - ty) * graph.view.scale);
2848 …this.cumulativeZoomFactor = Math.round(this.view.scale * this.cumulativeZoomFactor * 20) / 20 / th…
2862 …this.cumulativeZoomFactor = Math.round(this.view.scale * this.cumulativeZoomFactor * 20) / 20 / th…
3449 …var b = mxRectangle.fromRectangle((graph.pageVisible) ? graph.view.getBackgroundPageBounds() : gra…
3452 b.x = b.x / s - tr.x;
3453 b.y = b.y / s - tr.y;
3454 b.width /= s;
3455 b.height /= s;
3457 … var dy = (graph.pageVisible) ? 0 : Math.max(0, (graph.container.clientHeight - b.height) / 4);
3460 (graph.container.clientWidth - b.width) / 2) - b.x + 2),
3461 Math.floor(dy - b.y + 1));