Lines Matching refs:graph

949 	var graph = editorUi.editor.graph;
950 var bounds = graph.getGraphBounds();
951 var scale = graph.view.scale;
952 var x0 = Math.floor(bounds.x / scale - graph.view.translate.x);
953 var y0 = Math.floor(bounds.y / scale - graph.view.translate.y);
1117 if (graph.mathEnabled)
1237 var graph = new Graph(container);
1239 graph.setCellsCloneable(true);
1240 graph.setPanning(true);
1241 graph.setAllowDanglingEdges(false);
1242 graph.connectionHandler.select = false;
1243 graph.view.setTranslate(20, 20);
1244 graph.border = 20;
1245 graph.panningHandler.useLeftButtonForPanning = true;
1253 graph.cellRenderer.installCellOverlayListeners = function(state, overlay, shape)
1271 graph.getAllConnectionConstraints = function()
1277 graph.connectionHandler.marker.highlight.keepOnTop = false;
1279 graph.connectionHandler.createEdgeState = function(me)
1281 var edge = graph.createEdge(null, null, null, null, null, edgeStyle);
1283 return new mxCellState(this.graph.view, edge, this.graph.getCellStyle(edge));
1288 var parent = graph.getDefaultParent();
1300 graph.connectionHandler.reset();
1301 graph.clearSelection();
1302 var geo = graph.getCellGeometry(cell);
1308 v2 = graph.insertVertex(parent, null, 'Entry', geo.x, geo.y, 80, 30, vertexStyle);
1310 graph.view.refresh(v2);
1311 var e1 = graph.insertEdge(parent, null, '', cell, v2, edgeStyle);
1314 graph.scrollCellToVisible(v2);
1324 graph.popupMenuHandler.hideMenu();
1325 graph.stopEditing(false);
1327 var pt = mxUtils.convertPoint(graph.container,
1329 graph.connectionHandler.start(state, pt.x, pt.y);
1330 graph.isMouseDown = true;
1331 graph.isMouseTrigger = mxEvent.isMouseEvent(evt2);
1336 graph.addCellOverlay(cell, overlay);
1340 graph.getModel().beginUpdate();
1344 v1 = graph.insertVertex(parent, null, 'Start', 0, 0, 80, 30, startStyle);
1350 graph.getModel().endUpdate();
1357 layout = new mxCompactTreeLayout(graph);
1364 layout = new mxCompactTreeLayout(graph, false);
1371 layout = new mxRadialTreeLayout(graph, false);
1377 layout = new mxHierarchicalLayout(graph, mxConstants.DIRECTION_NORTH);
1381 layout = new mxHierarchicalLayout(graph, mxConstants.DIRECTION_WEST);
1385 layout = new mxFastOrganicLayout(graph, false);
1390 layout = new mxCircleLayout(graph);
1397 graph.getModel().beginUpdate();
1405 layout.execute(graph.getDefaultParent(), v1);
1414 var morph = new mxMorphing(graph);
1417 graph.getModel().endUpdate();
1436 graph.resizeCell = function()
1443 graph.connectionHandler.addListener(mxEvent.CONNECT, function()
1455 graph.destroy();
1472 graph.clearCellOverlays();
1474 var cells = graph.getModel().getChildren(graph.getDefaultParent());
1476 editorUi.editor.graph.getFreeInsertPoint() :
1477 editorUi.editor.graph.getCenterInsertPoint(
1478 graph.getBoundingBoxFromGeometry(cells, true));
1479 cells = editorUi.editor.graph.importCells(cells, pt.x, pt.y);
1480 var view = editorUi.editor.graph.view;
1484 editorUi.editor.graph.scrollRectToVisible(temp);
1485 editorUi.editor.graph.setSelectionCells(cells);
1489 graph.destroy();
1668 var graph = editorUi.editor.graph;
1897 var insertPoint = editorUi.editor.graph.getFreeInsertPoint();
1907 var graph = editorUi.editor.graph;
1913 …insertPoint = (mxEvent.isAltDown(evt)) ? insertPoint : graph.getCenterInsertPoint(new mxRectangle(…
1916 graph.getModel().beginUpdate();
1921 graph.insertVertex(null, null, null, insertPoint.x, insertPoint.y,
1924 graph.setAttributeForCell(cell, 'plantUmlData',
1930 graph.getModel().endUpdate();
1935 graph.setSelectionCell(cell);
1936 graph.scrollCellToVisible(cell);
1969 var graph = editorUi.editor.graph;
1973 …insertPoint = (mxEvent.isAltDown(evt)) ? insertPoint : graph.getCenterInsertPoint(new mxRectangle(…
1977 graph.getModel().beginUpdate();
1980 cell = graph.insertVertex(null, null, null, insertPoint.x, insertPoint.y,
1983 graph.setAttributeForCell(cell, 'mermaidData',
1989 graph.getModel().endUpdate();
1994 graph.setSelectionCell(cell);
1995 graph.scrollCellToVisible(cell);
2051 var size = editorUi.editor.graph.getPreferredSizeForCell(rowCell);
2084 var size = editorUi.editor.graph.getPreferredSizeForCell(right);
2098 var graph = editorUi.editor.graph;
2100 graph.getCenterInsertPoint(graph.getBoundingBoxFromGeometry(cells, true));
2101 graph.setSelectionCells(graph.importCells(cells, insertPoint.x, insertPoint.y));
2102 graph.scrollCellToVisible(graph.getSelectionCell());
2109 var graph = editorUi.editor.graph;
2131 var size = graph.getPreferredSizeForCell(listCell);
2152 var size = graph.getPreferredSizeForCell(field);
2170 graph.getCenterInsertPoint(graph.getBoundingBoxFromGeometry(cells, true));
2172 graph.getModel().beginUpdate();
2175 cells = graph.importCells(cells, insertPoint.x, insertPoint.y);
2184 graph.fireEvent(new mxEventObject('cellsInserted', 'cells', inserted));
2188 graph.getModel().endUpdate();
2191 graph.setSelectionCells(cells);
2192 graph.scrollCellToVisible(graph.getSelectionCell());
2243 var graph = new Graph(container);
2245 graph.getModel().beginUpdate();
2248 cells = graph.importCells(cells);
2252 if (graph.getModel().isVertex(cells[i]))
2254 var size = graph.getPreferredSizeForCell(cells[i]);
2260 var layout = new mxFastOrganicLayout(graph);
2263 layout.execute(graph.getDefaultParent());
2265 var edgeLayout = new mxParallelEdgeLayout(graph);
2267 edgeLayout.execute(graph.getDefaultParent());
2271 graph.getModel().endUpdate();
2274 graph.clearCellOverlays();
2279 editorUi.editor.graph.getModel().beginUpdate();
2282 cells = graph.getModel().getChildren(graph.getDefaultParent());
2284 editorUi.editor.graph.getCenterInsertPoint(graph.getBoundingBoxFromGeometry(cells, true));
2285 inserted = editorUi.editor.graph.importCells(cells, insertPoint.x, insertPoint.y)
2286 editorUi.editor.graph.fireEvent(new mxEventObject('cellsInserted', 'cells', inserted));
2290 editorUi.editor.graph.getModel().endUpdate();
2293 editorUi.editor.graph.setSelectionCells(inserted);
2294 editorUi.editor.graph.scrollCellToVisible(editorUi.editor.graph.getSelectionCell());
2295 graph.destroy();
4577 var graph = editorUi.editor.graph;
4684 var geo = (ignoreExisting) ? null : graph.getModel().getGeometry(graph.getSelectionCell());
4714 var graph = editorUi.editor.graph;
5147 var graph = editorUi.editor.graph;
5616 var graph = new Graph(container);
5617 graph.setTooltips(false);
5618 graph.setEnabled(false);
5619 graph.setPanning(true);
5620 graph.panningHandler.ignoreCell = true;
5621 graph.panningHandler.useLeftButtonForPanning = true;
5622 graph.minFitScale = null;
5623 graph.maxFitScale = null;
5624 graph.centerZoom = true;
5631 var graphGetGlobalVariable = graph.getGlobalVariable;
5633 graph.getGlobalVariable = function(name)
5652 graph.getLinkForCell = function()
5659 graph.addListener(mxEvent.SIZE, mxUtils.bind(this, function(sender, evt)
5664 if (editorUi.editor.graph.mathEnabled)
5666 Editor.MathJaxRender(graph.container);
5711 graph.zoomIn();
5726 graph.zoomOut();
5741 graph.maxFitScale = 8;
5742 graph.fit(8);
5743 graph.center();
5758 graph.zoomActual();
5759 graph.center();
5814 cmpGraph.view.scaleAndTranslate(graph.view.scale,
5815 graph.view.translate.x, graph.view.translate.y);
6097 bg = graph.defaultPageBackgroundColor;
6103 codec.decode(dataNode, graph.getModel());
6104 graph.maxFitScale = 1;
6105 graph.fit(8);
6106 graph.center();
6202 if (editorUi.editor.graph.isEnabled())
6247 container.style.backgroundColor = graph.defaultPageBackgroundColor;
6249 graph.getModel().clear();
6460 var graph = new Graph(container);
6461 graph.setEnabled(false);
6462 graph.setPanning(true);
6463 graph.panningHandler.ignoreCell = true;
6464 graph.panningHandler.useLeftButtonForPanning = true;
6465 graph.minFitScale = null;
6466 graph.maxFitScale = null;
6467 graph.centerZoom = true;
6474 var graphGetGlobalVariable = graph.getGlobalVariable;
6476 graph.getGlobalVariable = function(name)
6495 graph.getLinkForCell = function()
6517 graph.zoomIn();
6528 graph.zoomOut();
6539 graph.maxFitScale = 8;
6540 graph.fit(8);
6541 graph.center();
6552 graph.zoomActual();
6553 graph.center();
6625 codec.decode(dataNode, graph.getModel());
6626 graph.maxFitScale = 1;
6627 graph.fit(8);
6628 graph.center();
6757 var graph = ui.editor.graph;
6889 var cells = graph.model.getDescendants(graph.model.getRoot());
6929 graph = ui.createTemporaryGraph(graph.getStylesheet());
6931 graph.model.setRoot(nextPage.root);
6946 ui.editor.graph.model.execute(new SelectPage(ui, nextPage));
6951 graph = ui.editor.graph;
6960 var state = graph.view.getState(cells[i]);
6969 (graph.model.isVertex(state.cell) || graph.model.isEdge(state.cell)))
6973 tmp.innerHTML = graph.sanitizeHtml(graph.getLabel(state.cell));
6978 label = graph.getLabel(state.cell);
7041 graph.scrollCellToVisible(lastFound.cell);
7043 if (graph.isEnabled() && !graph.isCellLocked(lastFound.cell))
7046 (graph.getSelectionCell() != lastFound.cell ||
7047 graph.getSelectionCount() != 1))
7049 graph.setSelectionCell(lastFound.cell);
7054 graph.highlightCell(lastFound.cell);
7063 else if (graph.isEnabled() && !stayOnPage)
7065 graph.clearSelection();
7218 var cell = lastFound.cell, lbl = graph.getLabel(cell);
7220 if (graph.isCellEditable(cell))
7222 graph.model.setValue(cell, replaceInLabel(lbl, lblMatch, replaceInput.value,
7223 lblMatchPos - lblMatch.length, graph.getCurrentCellStyle(cell)));
7255 var cell = lastFound.cell, lbl = graph.getLabel(cell);
7257graph.model.setValue(cell, replaceInLabel(lbl, lblMatch, replaceInput.value, lblMatchPos - lblMatc…
7287 var cells = ui.editor.graph.getSelectionCells();
7288 ui.editor.graph.rendering = false;
7290 graph.getModel().beginUpdate();
7298 var cell = lastFound.cell, lbl = graph.getLabel(cell);
7308 if (graph.isCellEditable(cell))
7310 graph.model.setValue(cell, replaceInLabel(lbl, lblMatch, replaceInput.value,
7311 lblMatchPos - lblMatch.length, graph.getCurrentCellStyle(cell)));
7318 ui.editor.graph.model.execute(new SelectPage(ui, currentPage));
7329 graph.getModel().endUpdate();
7330 ui.editor.graph.setSelectionCells(cells);
7331 ui.editor.graph.rendering = true;
7445 graph.container.focus();
7485 var graph = editorUi.editor.graph;
7495 if (graph.freehand.isDrawing())
7497 graph.freehand.stopDrawing();
7501 graph.freehand.startDrawing();
7522 graph.addListener('freehandStateChanged', mxUtils.bind(this, function()
7525 …mxUtils.write(startBtn, mxResources.get(graph.freehand.isDrawing() ? 'stopDrawing' : 'startDrawing…
7526 …startBtn.setAttribute('title', mxResources.get(graph.freehand.isDrawing() ? 'stopDrawing' : 'start…
7527 startBtn.className = 'geBtn' + (!graph.freehand.isDrawing() ? ' gePrimaryBtn' : '');
7537 if (graph.freehand.isDrawing())
7539 graph.freehand.stopDrawing();
7579 var graph = editorUi.editor.graph;
7581 var tagsComponent = editorUi.editor.graph.createTagsDialog(mxUtils.bind(this, function()
7586 if (graph.isEnabled())
7610 if (graph.isSelectionEmpty())
7616 graph.addTagsForCells(graph.getSelectionCells(), tags);
8554 var graph = editorUi.editor.graph;
8555 var geo = (vertices.length == 1) ? graph.getCellGeometry(vertices[0]) : null;
8705 rotInput.value = (vertices.length == 1) ? mxUtils.getValue(graph.getCellStyle(vertices[0]),
8729 graph.getModel().beginUpdate();
8734 var g = graph.getCellGeometry(vertices[i]);
8740 if (graph.isCellMovable(vertices[i]))
8775 if (graph.isCellResizable(vertices[i]))
8788 graph.getModel().setGeometry(vertices[i], g);
8793 graph.setCellStyles(mxConstants.STYLE_ROTATION, Number(rotInput.value), [vertices[i]]);
8799 graph.getModel().endUpdate();
8839 var graph = editorUi.editor.graph;
9313 var size = editorUi.editor.graph.getBoundingBoxFromGeometry(cells);
9725 var graph = new Graph(container);
9726 graph.setEnabled(false);
9728 var clone = editorUi.editor.graph.cloneCell(cell);
9729 graph.addCells([clone]);
9731 var state = graph.view.getState(clone);
9741 var b = graph.getGraphBounds();
9743 graph.view.scaleAndTranslate(ns, 20 / ns - b.x, 20 / ns - b.y);
9813 var pt = editorUi.editor.graph.getFreeInsertPoint();
9843 updateShape(graph, clone, false);
9851 updateShape(editorUi.editor.graph, cell, true);
11952 var graph = new Graph(container);
11953 graph.setTooltips(false);
11954 graph.setEnabled(false);
11955 graph.setPanning(false);
11956 graph.minFitScale = null;
11957 graph.maxFitScale = null;
11958 graph.centerZoom = true;
11974 var model = graph.getModel();
11988 graph.maxFitScale = 1;
11989 graph.fit(0);
11990 graph.center();
11993 return graph;
12005 var graph = this.createViewer($listItem.childNodes[0], pageNode);
12021 var graphModel = graph.model;
12026 this.createLayerItem(layers[i], pageId, graph, pageNode);
12038 AspectDialog.prototype.createLayerItem = function(layer, pageId, graph, pageNode) argument
12040 …var layerName = graph.convertValueToString(layer) || (mxResources.get('background') || 'Background…