Lines Matching refs:x

378 				    				if ((mxUtils.intersects(box, new mxRectangle(state.x, state.y - 2, g.width * s, 3)) &&
380 state.x, state.y + g.height - 2, g.width, 3)) ||
381 (mxUtils.intersects(box, new mxRectangle(state.x - 2, state.y, 2, g.height * s)) &&
383 state.x + g.width * s - 2, state.y, 2, g.height * s)))
414 if (((offset.x > 0 || offset.width > 0) && mxUtils.intersects(box, new mxRectangle(
415 current.x + (offset.x - offset.width - 1) * s + ((offset.x == 0) ? current.width : 0),
417 mxUtils.intersects(box, new mxRectangle(current.x, current.y + (offset.y -
467 if (Math.abs(start.point.x - me.getGraphX()) > tol ||
511 var box = new mxRectangle(start.point.x, start.point.y);
514 if (mxUtils.contains(box, pts[0].x, pts[0].y))
519 else if (mxUtils.contains(box, pts[pts.length - 1].x, pts[pts.length - 1].y))
528 ((Math.round(pts[0].x - pts[1].x) == 0 && Math.round(pts[1].x - pts[2].x) == 0) ||
539 handle = mxUtils.findNearestSegment(state, start.point.x, start.point.y);
627 else if (mxUtils.contains(box, pts[0].x, pts[0].y) ||
628 mxUtils.contains(box, pts[pts.length - 1].x, pts[pts.length - 1].y))
644 cursor = (Math.round(pts[idx].x - pts[idx + 1].x) == 0) ?
663 if ((mxUtils.intersects(box, new mxRectangle(state.x - 2, state.y, 2, state.height)) &&
665 new mxRectangle(state.x + state.width - 2, state.y, 2, state.height)))
669 … else if ((mxUtils.intersects(box, new mxRectangle(state.x, state.y - 2, state.width, 3)) &&
671 new mxRectangle(state.x, state.y + state.height - 2, state.width, 3)))
689 if ((offset.x > 0 || offset.width > 0) && mxUtils.intersects(box, new mxRectangle(
690 … current.x + (offset.x - offset.width - 1) * s + ((offset.x == 0) ? current.width * s : 0),
696 …current.x, current.y + (offset.y - offset.height - 1) * s + ((offset.y == 0) ? current.height : 0),
804 guides.push(new mxRectangle(((layout.x + i) * pw + t.x) * s,
810 guides.push(new mxRectangle((layout.x * pw + t.x) * s,
875 this.graphHandler.start = function(cell, x, y, cells) argument
1104 …var cells = this.getCells(rect.x, rect.y, rect.width, rect.height, null, null, isect, function(sta…
1186 rubberband.start(pt.x, pt.y);
1779 div.getElementsByTagName('svg')[0].setAttribute('viewBox', size.x +
2070 Math.abs(first.x - mxEvent.getClientX(evt)) < tol &&
2372 Graph.prototype.getCellAt = function(x, y, parent, vertices, edges, ignoreFn) argument
2376 x = x / this.currentScale - this.currentTranslate.x;
2388 Graph.prototype.getScaledCellAt = function(x, y, parent, vertices, edges, ignoreFn) argument
2410 var result = this.getScaledCellAt(x, y, cell, vertices, edges, ignoreFn);
2421 if (state != null && (ignoreFn == null || !ignoreFn(state, x, y)) &&
2422 this.intersects(state, x, y))
2524 r = new mxRectangle((r.x + 2 * t.x) * s - t.x,
2564 (b.x + t.x) * s, (b.y + t.y) * s,
2599 this.graph.currentTranslate.x = this.translate.x;
2603 this.translate.x = 0;
2614 this.translate.x = this.graph.currentTranslate.x;
2687 var dx = Math.round(this.currentTranslate.x * 100) / 100;
3135 pts2.push(new mxPoint(pts[i - 1].x + (pts[i].x - pts[i - 1].x) * dist / segs[i - 1],
3198 state.shape.bounds = new mxRectangle(bds.x, bds.y, bds.width * f, bds.height);
3297 var x0 = Math.floor(Math.ceil(bounds.x / this.view.scale -
3298 this.view.translate.x) / size.width);
3301 var w0 = Math.ceil((Math.floor((bounds.x + bounds.width) / this.view.scale) -
3302 this.view.translate.x) / size.width) - x0;
3912 new mxPoint(source.parent.geometry.width * source.geometry.x,
3914 new mxPoint(composite.geometry.x, composite.geometry.y);
3918 pt.x += composite.geometry.width / 2;
3923 pt.x += composite.geometry.width / 2;
3928 pt.x -= length;
3933 pt.x += composite.geometry.width + length;
3940 var dx = t.x * s;
3945 dx = parentState.x;
3952 pt.x += source.parent.geometry.x;
3957 var rect = (!ignoreCellAt) ? new mxRectangle(dx + pt.x * s, dy + pt.y * s).grow(40 * s) : null;
4007 pt.x -= source.geometry.width / 2;
4011 pt.x += source.geometry.width / 2;
4054 pt.x -= geo.width / 2;
4058 pt.x += geo.width / 2;
4062 geo.x = pt.x - geo.width / 2;
4147 createTarget(dx + pt.x * s, dy + pt.y * s, execute);
4424 var cells = this.getCellsBeyond(state.x, state.y, parent, true, true);
4436 geo.translate(Math.round(dx * Math.max(0, Math.min(1, (tmp.x - state.x) / state.width))),
4594 Graph.prototype.getSwimlaneAt = function (x, y, parent) argument
4708 this.container.scrollLeft = (bounds.x + t.x) * scale -
5194 this.drag(evt, this.mouseDownPoint.x, this.mouseDownPoint.y);
5326 HoverIcons.prototype.drag = function(evt, x, y) argument
5334 this.graph.connectionHandler.start(this.currentState, x, y);
5362 HoverIcons.prototype.getStateAt = function(state, x, y) argument
5364 return this.graph.view.getState(this.graph.getCellAt(x, y));
5373 var x = me.getGraphX();
5376 var tmp = this.getStateAt(state, x, y);
5465 bds.x -= handler.horizontalOffset / 2;
5481 var positionArrow = mxUtils.bind(this, function(arrow, x, y) argument
5485 var bbox = new mxRectangle(x, y, arrow.clientWidth, arrow.clientHeight);
5495 x += rotationBbox.x + rotationBbox.width - bbox.x;
5503 x -= bbox.x + bbox.width - rotationBbox.x;
5508 arrow.style.left = x + 'px';
5517 positionArrow(this.arrowRight, Math.round(bds.x + bds.width - this.tolerance),
5523 positionArrow(this.arrowLeft, Math.round(bds.x - this.triangleLeft.width - this.tolerance),
5528 var right = this.graph.getCellAt(bds.x + bds.width +
5530 …var left = this.graph.getCellAt(bds.x - this.triangleLeft.width / 2, this.currentState.getCenterY(…
5683 HoverIcons.prototype.update = function(state, x, y) argument
5721 this.update(state, x, y);
5734 this.bbox != null && !mxUtils.contains(this.bbox, x, y))
5741 this.bbox == null || x == null || y == null || !mxUtils.contains(this.bbox, x, y)))
5794 geo.x += i * dx;
6070 geo.x += dx;
6181 var rw = width - off.x - off.width;
6183 var x = off.x;
6191 x += (cell.alternateBounds != null ?
6194 result.push(Math.round(x));
6212 var x = off.x;
6218 positions.splice(0, 0, off.x);
6234 cell.x = positions[i];
6235 cell.width = positions[i + 1] - cell.x;
6240 cell.width = tw - cell.x - off.x - off.width;
6245 cell.x = x;
6246 x += cell.width;
6250 cell.width = tw - off.x - off.width - sw;
6339 var tw = table.width - offset.x - offset.width;
6369 row.x = offset.x;
6400 table.width = sw + offset.width + offset.x + Graph.minTableColumnWidth;
6535 function addPoint(type, x, y) argument
6537 var rpt = new mxPoint(x, y);
6543 return curr == null || curr.type != type || curr.x != x || curr.y != y;
6556 mxUtils.ptSegDistSq(p0.x, p0.y, pn.x, pn.y,
6557 p1.x, p1.y) < 1 * this.scale * this.scale)
6564 changed = addPoint(0, p0.x, p0.y) || changed;
6584 mxUtils.ptSegDistSq(p2.x, p2.y, pn.x, pn.y,
6585 p3.x, p3.y) < 1 * this.scale * this.scale)
6592 var pt = mxUtils.intersection(p0.x, p0.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);
6595 if (pt != null && (Math.abs(pt.x - p0.x) > thresh ||
6597 (Math.abs(pt.x - p1.x) > thresh ||
6599 (Math.abs(pt.x - p2.x) > thresh ||
6601 (Math.abs(pt.x - p3.x) > thresh ||
6604 var dx = pt.x - p0.x;
6606 var temp = {distSq: dx * dx + dy * dy, x: pt.x, y: pt.y}; property in mxGraphView.updateLineJumps.temp
6622 list[list.length - 1].x !== temp.x ||
6635 changed = addPoint(1, list[j].x, list[j].y) || changed;
6640 changed = addPoint(0, pt.x, pt.y) || changed;
6685 var pt = new mxPoint(rpt.x / this.scale, rpt.y / this.scale);
6704 var dx = next.x / this.scale - pt.x;
6710 n = new mxPoint(pt.x - last.x, pt.y - last.y);
6711 len = Math.sqrt(n.x * n.x + n.y * n.y);
6715 n.x = n.x * size / len;
6726 var dx = last.x - pt.x;
6732 var p0 = new mxPoint(pt.x - n.x, pt.y - n.y);
6733 var p1 = new mxPoint(pt.x + n.x, pt.y + n.y);
6738 var f = (Math.round(n.x) < 0 || (Math.round(n.x) == 0
6744 c.lineTo(p0.x - n.y * f, p0.y + n.x * f);
6745 c.lineTo(p1.x - n.y * f, p1.y + n.x * f);
6746 c.lineTo(p1.x, p1.y);
6750 c.moveTo(p0.x + n.y * f, p0.y - n.x * f);
6751 c.lineTo(p0.x - n.y * f, p0.y + n.x * f);
6752 c.moveTo(p1.x - n.y * f, p1.y + n.x * f);
6753 c.lineTo(p1.x + n.y * f, p1.y - n.x * f);
6754 c.moveTo(p1.x, p1.y);
6759 c.curveTo(p0.x - n.y * f, p0.y + n.x * f,
6760 p1.x - n.y * f, p1.y + n.x * f,
6761 p1.x, p1.y);
6765 c.moveTo(p1.x, p1.y);
6870 var tmp = (cp.x - pt.x) * (cp.x - pt.x) + (cp.y - pt.y) * (cp.y - pt.y);
7598 this.moveCells(cells, dx - bounds.x, dy - bounds.y);
7651 geo.x = state.x / state.view.scale - state.view.translate.x;
7706 Graph.prototype.splitEdge = function(edge, cells, newEdge, dx, dy, x, y, parent) argument
7714 parent = this.getCellAt(x, y, null, true, false);
7723 var newEdge = graphSplitEdge.apply(this, [edge, cells, newEdge, dx, dy, x, y, parent]);
7736 if (geo != null && geo.relative && geo.x > 0)
7748 if (geo != null && geo.relative && geo.x <= 0)
7871 ng2.x = ng1.x;
7873 ng1.x = g2.x;
8435 geo.x += geo.width / 2 - geo.height / 2;
8931 pt.x, pt.y) && !mxUtils.isAncestorNode(state.text.node, mxEvent.getSource(evt))))) &&
8939 state = this.view.getState(this.getCellAt(pt.x, pt.y));
8942 cell = this.addText(pt.x, pt.y, state);
8955 var dx = this.container.scrollLeft / this.view.scale - this.view.translate.x;
8962 dx = Math.max(dx, layout.x * page.width);
8979 var x = this.snap(Math.round(Math.max(pt.x, bds.x / view.scale - view.translate.x +
8984 return new mxPoint(x, y);
8998 this.view.scale - this.view.translate.x - bbox.width / 2)),
9006 this.view.translate.x - bbox.width / 2)),
9026 Graph.prototype.addText = function(x, y, state) argument
9042 var pt2 = this.view.getRelativePoint(state, x, y);
9043 label.geometry.x = Math.round(pt2.x * 10000) / 10000;
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) -
9060 tr.x - ((state != null) ? state.origin.x : 0);
9138 … var cell = graph.getCellAt(me.getGraphX(), me.getGraphY(), null, null, null, function(state, x, y) argument
9572 return (horizontal) ? a.x - b.x : a.y - b.y;
9578 min = min / s - ((horizontal) ? t.x : t.y);
9579 max = max / s - ((horizontal) ? t.x : t.y);
9599 geo.x = Math.round(t0 - geo.width / 2) - pstate.origin.x;
9724 (this.view.translate.x + this.backgroundImage.x) * vs,
9785 svgCanvas.translate(Math.floor(border / scale - bounds.x / vs),
9793 svgCanvas.getAlternateText = function(fo, x, y, w, h, str, argument
9867 var tmp = new mxRectangle((bgImg.x + tr.x) * s2, (bgImg.y + tr.y) * s2,
9873 svgCanvas.image(bgImg.x + tr.x, bgImg.y + tr.y,
10860 this.popupMenuHandler.popup(me.getX() + origin.x + 1,
11413 this.bounds.x += m.x * this.bounds.width;
11434 this.textarea.style.left = Math.round(this.bounds.x) + 'px';
11637 var x = this.roundLength((this.bounds.x + this.currentDx) / s - t.x);
11641 this.hint.innerHTML = formatHintText(x, unit) + ', ' + formatHintText(y, unit);
11643 this.hint.style.left = (this.pBounds.x + this.currentDx +
11693 geo.width = bounds.width + start.x + start.width + 2 * border;
11777 …return new mxPoint(this.bounds.x + this.bounds.width - this.rotationHandleVSpacing + padding.x / 2,
11923 colState.x = tableState.x + geo.x * graph.view.scale;
11952 this.shape.bounds.x = this.state.x + (g.width +
11969 pt.x - bounds.x - g.width);
12032 this.shape.bounds.x = this.state.x;
12233 if ((Math.abs(this.state.x - px) < b.width / 2) ||
12235 (Math.abs(this.state.x + this.state.width - px) < b.width / 2) ||
12257 result.x = this.sizers[0].bounds.width + tol;
12301 this.hint.style.left = bb.x + Math.round((bb.width - this.hint.clientWidth) / 2) + 'px';
12368 var x = this.roundLength(point.x / s - t.x);
12372 this.hint.innerHTML = formatHintText(x, unit) + ', ' + formatHintText(y, unit);
12381 this.hint.innerHTML = '[' + Math.round(pt.x * 100) + '%, '+ Math.round(pt.y * 100) + '%]';
12598 x0 = this.first.x;
12657 var rect = new mxRectangle(this.x, this.y, this.width, this.height);
12673 origin.x -= offset.x;
12675 var x = me.getX() + origin.x;
12677 var dx = this.first.x - x;
12691 this.update(x, y);
12695 var right = this.x + this.width;
12717 if (this.x < this.first.x)
12719 this.x = right - this.width;
12730 this.div.style.left = this.x + 'px';
12742 this.secondDiv.style.left = this.x + 'px';
12912 …return new mxRectangle(Math.round(bbox.x), Math.round(bbox.y), Math.round(bbox.width), Math.round(…
13232 this.moveHandles[i].style.left = (this.moveHandles[i].rowState.x +
13246 ch[0].bounds.x = this.state.x - w + inset;
13249 ch[1].bounds.x = ch[0].bounds.x + this.state.width - 2 * inset;
13252 ch[2].bounds.x = ch[0].bounds.x;
13255 ch[3].bounds.x = ch[1].bounds.x;
13278 …var tmp = new mxRectangle(this.state.x, this.state.y - 22, this.state.width + 24, this.state.heigh…
13296 …this.linkHint.style.left = Math.max(0, Math.round(rs.x + (rs.width - this.linkHint.clientWidth) / …
13373 b = new mxRectangle(b.x, b.y, b.width, b.height);
13377 …this.linkHint.style.left = Math.max(0, Math.round(b.x + (b.width - this.linkHint.clientWidth) / 2)…