Lines Matching +refs:round +refs:b

278 	var b = this.baseUrl;
279 var p = b.indexOf('//');
285 var d = b.indexOf('/', p + 2);
289 this.domainUrl = b.substring(0, d);
292 d = b.lastIndexOf('/');
296 this.domainPathUrl = b.substring(0, d + 1);
528 ((Math.round(pts[0].x - pts[1].x) == 0 && Math.round(pts[1].x - pts[2].x) == 0) ||
529 (Math.round(pts[0].y - pts[1].y) == 0 && Math.round(pts[1].y - pts[2].y) == 0))));
644 cursor = (Math.round(pts[idx].x - pts[idx + 1].x) == 0) ?
2556 var b = this.graphBounds;
2563 b = new mxRectangle(
2564 (b.x + t.x) * s, (b.y + t.y) * s,
2565 b.width * s, b.height * s);
2568 return b;
2686 var s = Math.round(this.currentScale * 100) / 100;
2687 var dx = Math.round(this.currentTranslate.x * 100) / 100;
2688 var dy = Math.round(this.currentTranslate.y * 100) / 100;
3612 L: pad(L > 99 ? Math.round(L / 10) : L),
4377 var dx = Math.round(geo.width - state.width / this.view.scale);
4378 var dy = Math.round(geo.height - state.height / this.view.scale);
4436 geo.translate(Math.round(dx * Math.max(0, Math.min(1, (tmp.x - state.x) / state.width))),
4437 Math.round(dy * Math.max(0, Math.min(1, (tmp.y - state.y) / state.height))));
4665 this.zoom((Math.round(this.view.scale * this.zoomFactor * 20) / 20) / this.view.scale);
4685 this.zoom((Math.round(this.view.scale * (1 / this.zoomFactor) * 20) / 20) / this.view.scale);
4765 temp.sort(function(a, b) argument
4767 if (a.name < b.name)
4771 else if (a.name > b.name)
5514 Math.round(this.currentState.getCenterX() - this.triangleUp.width / 2 - this.tolerance),
5515 Math.round(bds.y - this.triangleUp.height - this.tolerance));
5517 positionArrow(this.arrowRight, Math.round(bds.x + bds.width - this.tolerance),
5518 Math.round(this.currentState.getCenterY() - this.triangleRight.height / 2 - this.tolerance));
5521 Math.round(bds.y + bds.height - this.tolerance));
5523 positionArrow(this.arrowLeft, Math.round(bds.x - this.triangleLeft.width - this.tolerance),
6194 result.push(Math.round(x));
6371 row.y = Math.round(y);
6382 row.height = Math.round(y) - row.y;
6738 var f = (Math.round(n.x) < 0 || (Math.round(n.x) == 0
6739 && Math.round(n.y) <= 0)) ? 1 : -1;
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 +
8997 this.snap(Math.round((this.container.scrollLeft + this.container.clientWidth / 2) /
8999 this.snap(Math.round((this.container.scrollTop + this.container.clientHeight / 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 -
9043 label.geometry.x = Math.round(pt2.x * 10000) / 10000;
9044 label.geometry.y = Math.round(pt2.y);
9051 …label.geometry.offset = new mxPoint(Math.round((x - pt2.x) / scale), Math.round((y - pt2.y) / scal…
9059 label.geometry.x = Math.round(x / this.view.scale) -
9061 label.geometry.y = Math.round(y / this.view.scale) -
9570 vertices.sort(function(a, b) argument
9572 return (horizontal) ? a.x - b.x : a.y - b.y;
9599 geo.x = Math.round(t0 - geo.width / 2) - pstate.origin.x;
9603 geo.y = Math.round(t0 - geo.height / 2) - pstate.origin.y;
10733 str = str.substring(0, Math.round(max / 2)) + '...' +
10734 str.substring(str.length - Math.round(max / 4));
11298 …this.textarea.style.lineHeight = (mxConstants.ABSOLUTE_LINE_HEIGHT) ? Math.round(size * mxConstant…
11299 this.textarea.style.fontSize = Math.round(size) + 'px';
11351 …this.textarea.style.lineHeight = (mxConstants.ABSOLUTE_LINE_HEIGHT) ? Math.round(size * mxConstant…
11352 this.textarea.style.fontSize = Math.round(size) + 'px';
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…
11430 …this.textarea.style.width = Math.round((this.bounds.width / scale)) + (this.textarea.offsetWidth -…
11434 this.textarea.style.left = Math.round(this.bounds.x) + 'px';
11435 this.textarea.style.top = Math.round(this.bounds.y) + 'px';
11644 Math.round((this.pBounds.width - this.hint.clientWidth) / 2)) + 'px';
12229 var b = this.customHandles[i].shape.bounds;
12230 var px = b.getCenterX();
12231 var py = b.getCenterY();
12233 if ((Math.abs(this.state.x - px) < b.width / 2) ||
12234 (Math.abs(this.state.y - py) < b.height / 2) ||
12235 (Math.abs(this.state.x + this.state.width - px) < b.width / 2) ||
12236 (Math.abs(this.state.y + this.state.height - py) < b.height / 2))
12301 this.hint.style.left = bb.x + Math.round((bb.width - this.hint.clientWidth) / 2) + 'px';
12381 this.hint.innerHTML = '[' + Math.round(pt.x * 100) + '%, '+ Math.round(pt.y * 100) + '%]';
12389 this.hint.style.left = Math.round(me.getGraphX() - this.hint.clientWidth / 2) + 'px';
12912 …return new mxRectangle(Math.round(bbox.x), Math.round(bbox.y), Math.round(bbox.width), Math.round(…
13289 var b = bb.y + bb.height;
13293 b = Math.max(b, tb.y + tb.height);
13296 …this.linkHint.style.left = Math.max(0, Math.round(rs.x + (rs.width - this.linkHint.clientWidth) / …
13297 this.linkHint.style.top = Math.round(b + this.verticalOffset / 2 + Editor.hintOffset) + 'px';
13369 var b = this.state;
13373 b = new mxRectangle(b.x, b.y, b.width, b.height);
13374 b.add(this.state.text.bounds);
13377 …this.linkHint.style.left = Math.max(0, Math.round(b.x + (b.width - this.linkHint.clientWidth) / 2)…
13378 this.linkHint.style.top = Math.round(b.y + b.height + Editor.hintOffset) + 'px';