Lines Matching +full:x +full:- +full:view

5  * - Make cursor key selection more generic
6 * - Handle single-cell movement on touch
7 * - Move multiple cells without subtrees
8 * - Make offset subtrees more generic
91 }, null, null, 'Alt+Shift+X');
249 ui.hoverIcons.getStateAt = function(state, x, y) argument
251 return (isTreeCell(state.cell)) ? null : this.graph.view.getState(this.graph.getCellAt(x, y));
264 var state = graph.view.getState(cell);
334 // Applies distance between previous and current parent for non-sidebar drags
335 if (newSource != null && target == null && this.view.getState(cells[0]) != null)
341 var state1 = graph.view.getState(graph.model.getTerminal(edges[0], true));
345 var state2 = graph.view.getState(newSource);
349 dx = state2.getCenterX() - state1.getCenterX();
350 dy = state2.getCenterY() - state1.getCenterY();
459 var state = graph.view.getState(cell);
467 var edgeState = graph.view.getState(edges[0]);
475 var pt = abs[abs.length - 1];
479 if (pt.y == state.y && Math.abs(pt.x - state.getCenterX()) < state.width / 2)
483 … else if (pt.y == state.y + state.height && Math.abs(pt.x - state.getCenterX()) < state.width / 2)
487 else if (pt.x > state.getCenterX())
515 clones[1].geometry.x += (after) ? cell.geometry.width + spacing :
516 -clones[1].geometry.width - spacing;
521 -clones[1].geometry.height - spacing;
526 clones[1].geometry.x = cell.geometry.x + cell.geometry.width - clones[1].geometry.width;
530 var state = graph.view.getState(cell);
531 var s = graph.view.scale;
540 bbox.x += ((after) ? cell.geometry.width + spacing :
541 -clones[1].geometry.width - spacing) * s;
546 -clones[1].geometry.height - spacing) * s;
563 var sibling = graph.view.getState(temp);
572 dx = spacing + Math.max(dx, (Math.min(bbox.x + bbox.width,
573 sibling.x + sibling.width) - Math.max(bbox.x, sibling.x)) / s);
575 sibling.y + sibling.height) - Math.max(bbox.y, sibling.y)) / s);
597 var sibling = graph.view.getState(temp);
618 graph.moveCells(subtree, ((after) ? 1 : -1) * dx, ((after) ? 1 : -1) * dy);
671 dy = -level;
675 dx = -level;
716 var bbox = graph.view.getBounds(targets);
718 var tr = graph.view.translate;
719 var s = graph.view.scale;
723 clones[1].geometry.x = (bbox == null) ? cell.geometry.x + (cell.geometry.width -
724 clones[1].geometry.width) / 2 : (bbox.x + bbox.width) / s - tr.x + spacing;
729 clones[1].geometry.x = (bbox == null) ? cell.geometry.x + (cell.geometry.width -
730 clones[1].geometry.width) / 2 : (bbox.x + bbox.width) / s - tr.x + spacing;
731 clones[1].geometry.y -= clones[1].geometry.height + level;
735 clones[1].geometry.x -= clones[1].geometry.width + level;
736 clones[1].geometry.y = (bbox == null) ? cell.geometry.y + (cell.geometry.height -
737 clones[1].geometry.height) / 2 : (bbox.y + bbox.height) / s - tr.y + spacing;
741 clones[1].geometry.x += cell.geometry.width + level;
742 clones[1].geometry.y = (bbox == null) ? cell.geometry.y + (cell.geometry.height -
743 clones[1].geometry.height) / 2 : (bbox.y + bbox.height) / s - tr.y + spacing;
757 var state = graph.view.getState(ref);
764 var temp = graph.view.getState(graph.model.getTerminal(sib[i], false));
766 if (temp != null && ((!horizontal && (Math.min(temp.x + temp.width,
767 state.x + state.width) >= Math.max(temp.x, state.x))) ||
777 return (horizontal) ? a.x + a.width - b.x - b.width : a.y + a.height - b.y - b.height;
810 var state = graph.view.getState(cell);
818 … += (direction == mxConstants.DIRECTION_NORTH || direction == mxConstants.DIRECTION_WEST) ? -1 : 1;
820 if (idx >= 0 && idx <= targets.length - 1)
831 var altShiftActions = {88: ui.actions.get('selectChildren'), // Alt+Shift+X
869 graph.setSelectionCell(cells[cells.length - 1]);
874 ui.hoverIcons.update(graph.view.getState(graph.getSelectionCell()));
1045 // var state = graph.view.getState(cells[i]);
1074 var graph = state.view.graph;
1077 // var img = mxUtils.createImage('images/handle-connect.png');
1083 // img.style.left = (state.x - 13) + 'px';
1084 // img.style.top = (state.getCenterY() - 13) + 'px';
1096 // state.view.graph.container.appendChild(img);
1100 var img = mxUtils.createImage('plugins/trees/handle-move.gif');
1106 img.style.left = (state.getCenterX() - 13) + 'px';
1107 img.style.top = (state.getCenterY() - 13) + 'px';
1147 state.view.graph.container.appendChild(img);
1194 var tmp = new mxRectangle(me.getGraphX() - tol,
1195 me.getGraphY() - tol, 2 * tol, 2 * tol);
1280 edge2.geometry.setTerminalPoint(new mxPoint(-40, 40), true);
1311 edge.geometry.setTerminalPoint(new mxPoint(-40, 40), true);
1329 edge.geometry.setTerminalPoint(new mxPoint(-40, 40), true);
1395 edge.geometry.setTerminalPoint(new mxPoint(0, -40), true);
1413 edge.geometry.setTerminalPoint(new mxPoint(110, -40), true);
1426 edge2.geometry.setTerminalPoint(new mxPoint(110, -40), true);