Lines Matching refs:scale

29 			var s = this.view.scale;
1512 clone.geometry.x = graph.snap(Math.round(x / graph.view.scale) -
1514 clone.geometry.y = graph.snap(Math.round(y / graph.view.scale) -
1908 geo.x = state.x / state.view.scale - state.view.translate.x;
1909 geo.y = state.y / state.view.scale - state.view.translate.y;
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)));
2003 return new mxRectangle(this.scale * (this.translate.x + layout.x * page.width),
2004 this.scale * (this.translate.y + layout.y * page.height),
2005 this.scale * layout.width * page.width,
2006 this.scale * layout.height * page.height);
2033 var s = graph.view.scale;
2284 if (graph.view.scale == 1)
2683 graph.container.scrollLeft += Math.round((dx - tx) * graph.view.scale);
2684 graph.container.scrollTop += Math.round((dy - ty) * graph.view.scale);
2764 var prev = graph.view.scale;
2775 var s = graph.view.scale;
2839 if (this.view.scale * this.cumulativeZoomFactor <= 0.15)
2841 this.cumulativeZoomFactor *= (this.view.scale + 0.05) / this.view.scale;
2848 ….cumulativeZoomFactor = Math.round(this.view.scale * this.cumulativeZoomFactor * 20) / 20 / this.v…
2853 if (this.view.scale * this.cumulativeZoomFactor <= 0.15)
2855 this.cumulativeZoomFactor *= (this.view.scale - 0.05) / this.view.scale;
2862 ….cumulativeZoomFactor = Math.round(this.view.scale * this.cumulativeZoomFactor * 20) / 20 / this.v…
2866 …ZoomFactor = Math.max(0.05, Math.min(this.view.scale * this.cumulativeZoomFactor, 160)) / this.vie…
2948 var step = 40 / graph.view.scale;
2986 graph.cumulativeZoomFactor = evt.scale;
2987 graph.lazyZoom(evt.scale > 0, true);
3441 var width = Math.max(bounds.width, graph.scrollTileSize.width * graph.view.scale);
3442 var height = Math.max(bounds.height, graph.scrollTileSize.height * graph.view.scale);
3451 var s = graph.view.scale;
3478 tx = graph.view.translate.x * graph.view.scale - graph.container.scrollLeft;
3479 ty = graph.view.translate.y * graph.view.scale - graph.container.scrollTop;
3500 graph.container.scrollLeft = graph.view.translate.x * graph.view.scale - tx;
3501 graph.container.scrollTop = graph.view.translate.y * graph.view.scale - ty;
5167 var scale = graph.getView().scale;
5223 handler.currentDx += dx * scale;
5224 handler.currentDy += dy * scale;
5239 var dx = handler.roundLength(handler.currentDx / scale);
5240 var dy = handler.roundLength(handler.currentDy / scale);