Lines Matching refs:scale

329 				var s = this.view.scale;
687 var s = this.view.scale;
798 var s = this.graph.view.scale;
2598 this.graph.currentScale = this.scale;
2602 this.scale = 1;
2613 this.scale = this.graph.currentScale;
2705 var useCssTranforms = this.graph.useCssTransforms, scale = this.scale,
2710 this.scale = this.graph.currentScale;
2718 this.scale = scale;
2726 var useCssTranforms = this.useCssTransforms, scale = this.view.scale,
2731 this.view.scale = 1;
2740 this.view.scale = scale;
3297 var x0 = Math.floor(Math.ceil(bounds.x / this.view.scale -
3299 var y0 = Math.floor(Math.ceil(bounds.y / this.view.scale -
3301 var w0 = Math.ceil((Math.floor((bounds.x + bounds.width) / this.view.scale) -
3303 var h0 = Math.ceil((Math.floor((bounds.y + bounds.height) / this.view.scale) -
3938 var s = this.view.scale;
4377 var dx = Math.round(geo.width - state.width / this.view.scale);
4378 var dy = Math.round(geo.height - state.height / this.view.scale);
4474 pgeo.width += dx + Math.min(0, pstate.width / this.view.scale - pgeo.width);
4478 pgeo.height += dy + Math.min(0, pstate.height / this.view.scale - pgeo.height);
4644 factor = Math.max(0.01, Math.min(this.view.scale * factor, 160)) / this.view.scale;
4657 if (this.view.scale < 0.15)
4659 this.zoom((this.view.scale + 0.01) / this.view.scale);
4665 this.zoom((Math.round(this.view.scale * this.zoomFactor * 20) / 20) / this.view.scale);
4677 if (this.view.scale <= 0.15)
4679 this.zoom((this.view.scale - 0.01) / this.view.scale);
4685 this.zoom((Math.round(this.view.scale * (1 / this.zoomFactor) * 20) / 20) / this.view.scale);
4700 var scale = Math.floor(20 * Math.min(cw / bounds.width, ch / bounds.height)) / 20;
4701 this.zoomTo(scale);
4706 this.container.scrollTop = (bounds.y + t.y) * scale -
4707 Math.max((ch - bounds.height * scale) / 2 + border / 2, 0);
4708 this.container.scrollLeft = (bounds.x + t.x) * scale -
4709 Math.max((cw - bounds.width * scale) / 2 + border / 2, 0);
4839 'stroke-dashoffset: ' + (this.view.scale * -16) + ';\n' +
6475 paths[1].setAttribute('stroke-dasharray', (this.state.view.scale * 8));
6530 var thresh = 0.5 * this.scale;
6557 p1.x, p1.y) < 1 * this.scale * this.scale)
6585 p3.x, p3.y) < 1 * this.scale * this.scale)
6685 var pt = new mxPoint(rpt.x / this.scale, rpt.y / this.scale);
6704 var dx = next.x / this.scale - pt.x;
6705 var dy = next.y / this.scale - pt.y;
7651 geo.x = state.x / state.view.scale - state.view.translate.x;
7652 geo.y = state.y / state.view.scale - state.view.translate.y;
8205 var scale = terminal.shape.scale;
8206 var w = bounds.width / scale;
8207 var h = bounds.height / scale;
8955 var dx = this.container.scrollLeft / this.view.scale - this.view.translate.x;
8956 var dy = this.container.scrollTop / this.view.scale - this.view.translate.y;
8979 var x = this.snap(Math.round(Math.max(pt.x, bds.x / view.scale - view.translate.x +
8981 … var y = this.snap(Math.round(Math.max(pt.y, (bds.y + bds.height) / view.scale - view.translate.y +
8998 this.view.scale - this.view.translate.x - bbox.width / 2)),
9000 this.view.scale - this.view.translate.y - bbox.height / 2)));
9005 this.snap(Math.round(this.container.clientWidth / 2 / this.view.scale -
9007 this.snap(Math.round(this.container.clientHeight / 2 / this.view.scale -
9050 var scale = this.view.scale;
9051 …el.geometry.offset = new mxPoint(Math.round((x - pt2.x) / scale), Math.round((y - pt2.y) / scale));
9059 label.geometry.x = Math.round(x / this.view.scale) -
9061 label.geometry.y = Math.round(y / this.view.scale) -
9576 var s = this.view.scale;
9679 Graph.prototype.getSvg = function(background, scale, border, nocrop, crisp, argument
9707 scale = (scale != null) ? scale : 1;
9718 var vs = this.view.scale;
9763 var s = scale / vs;
9785 svgCanvas.translate(Math.floor(border / scale - bounds.x / vs),
9786 Math.floor(border / scale - bounds.y / vs));
9865 var s2 = vs / scale;
9878 svgCanvas.scale(s);
11395 var scale = state.view.scale;
11402 this.bounds.width = 160 * scale;
11403 this.bounds.height = 60 * scale;
11417 this.textarea.style.width = Math.round((this.bounds.width - 4) / scale) + 'px';
11418 this.textarea.style.height = Math.round((this.bounds.height - 4) / scale) + 'px';
11424 …this.textarea.style.height = Math.round((this.bounds.height / scale)) + (this.textarea.offsetHeigh…
11425 this.bounds.height = parseInt(this.textarea.style.height) * scale;
11430 …this.textarea.style.width = Math.round((this.bounds.width / scale)) + (this.textarea.offsetWidth -…
11431 this.bounds.width = parseInt(this.textarea.style.width) * scale;
11437 … mxUtils.setPrefixedStyle(this.textarea.style, 'transform', 'scale(' + scale + ',' + scale + ')');
11570 var scale = this.graph.getView().scale;
11572 return new mxRectangle(0, 0, (state.text == null) ? 30 : state.text.size * scale + 20, 30);
11636 var s = this.graph.view.scale;
11923 colState.x = tableState.x + geo.x * graph.view.scale;
11924 colState.y = tableState.y + geo.y * graph.view.scale;
11925 colState.width = g.width * graph.view.scale;
11926 colState.height = g.height * graph.view.scale;
11953 dx) * this.graph.view.scale;
11956 0 : start.y * this.graph.view.scale);
11959 (start.height + start.y) * this.graph.view.scale);
12035 dy * this.graph.view.scale;
12287 var s = this.state.view.scale;
12367 var s = this.graph.view.scale;
12600 dx = (this.currentX - x0) / this.graph.view.scale;
12601 dy = (this.currentY - y0) / this.graph.view.scale;
12697 var scale = this.graph.view.scale;
12701 this.width = this.graph.snap(this.width / scale) * scale;
12702 this.height = this.graph.snap(this.height / scale) * scale;