Lines Matching refs:graph

57 		var graph = editorUi.editor.graph;
58 var isGraphEnabled = mxUtils.bind(graph, graph.isEnabled);
171 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
179 var insertPoint = editorUi.editor.graph.getFreeInsertPoint();
180 graph.setSelectionCells(editorUi.importXml(xml,
184 graph.scrollCellToVisible(graph.getSelectionCell());
200 editorUi.editor.graph.view.setUnit(mxConstants.POINTS);
204 …pointAction.setSelectedCallback(function() { return editorUi.editor.graph.view.unit == mxConstants…
208 editorUi.editor.graph.view.setUnit(mxConstants.INCHES);
212 …inchAction.setSelectedCallback(function() { return editorUi.editor.graph.view.unit == mxConstants.…
216 editorUi.editor.graph.view.setUnit(mxConstants.MILLIMETERS);
220 …mmAction.setSelectedCallback(function() { return editorUi.editor.graph.view.unit == mxConstants.MI…
224 editorUi.editor.graph.view.setUnit(mxConstants.METERS);
228 …meterAction.setSelectedCallback(function() { return editorUi.editor.graph.view.unit == mxConstants…
248 editorUi.ruler = new mxDualRuler(editorUi, editorUi.editor.graph.view.unit);
295 if (graph.isEnabled())
302 if (graph.freehand.isDrawing())
304 graph.freehand.stopDrawing();
308 graph.freehand.startDrawing();
311 this.freehandWindow.window.setVisible(graph.freehand.isDrawing());
331 false, graph.isSelectionEmpty());
431 crop.checked = !graph.pageVisible;
506 …itorUi.addRadiobox(div, 'pages', mxResources.get('selectionOnly'), false, graph.isSelectionEmpty()…
518 false, graph.isSelectionEmpty());
520 !graph.pageVisible || !editorUi.pdfPageExport,
606 var cells = graph.getSelectionCells();
608 if (graph.getSelectionCount() == 1)
610 var cell = graph.getSelectionCell();
611 var state = graph.view.getState(cell);
684 graph.model.execute(change);
717 var cells = graph.getSelectionCells();
722 if (graph.getModel().isVertex(cells[i]))
740 if (graph.isEnabled() && !graph.isSelectionEmpty())
742 currentStyle = graph.copyStyle(graph.getSelectionCell())
748 if (graph.isEnabled() && !graph.isSelectionEmpty() && currentStyle != null)
750 graph.pasteStyle(currentStyle, graph.getSelectionCells())
846 var cells = mxUtils.sortCells(graph.model.getTopmostCells(graph.getSelectionCells()));
847 …var xml = mxUtils.getXml((cells.length == 0) ? editorUi.editor.getGraphXml() : graph.encodeCells(c…
856 graph.setShadowVisible(!graph.shadowVisible);
859 action.setSelectedCallback(function() { return graph.shadowVisible; });
959 var findReplace = graph.isEnabled() && (evt == null || !mxEvent.isShiftDown(evt));
988 var name = (graph.isEnabled()) ? 'findReplaceWindow' : 'findWindow';
1296 var graph = editorUi.editor.graph;
1297 …var orgChartLayout = new mxOrgChartLayout(graph, branchOptimizer, parentChildSpacingVal, siblingSp…
1299 var cell = graph.getDefaultParent();
1301 if (graph.model.getChildCount(graph.getSelectionCell()) > 1)
1303 cell = graph.getSelectionCell();
1447 var layout = new mxParallelEdgeLayout(graph);
1453 layout.execute(graph.getDefaultParent(), (!graph.isSelectionEmpty()) ?
1454 graph.getSelectionCells() : null);
1573 graph.refresh();
1593 if (!graph.isSelectionEmpty())
1595 var cells = graph.cloneCells(graph.getSelectionCells());
1596 var bbox = graph.getBoundingBoxFromGeometry(cells);
1597 cells = graph.moveCells(cells, -bbox.x, -bbox.y);
1601 Graph.compress(mxUtils.getXml(graph.encodeCells(cells))) + '\'),');
1607 var b = graph.getGraphBounds();
1608 var tr = graph.view.translate;
1609 var s = graph.view.scale;
1610 graph.insertVertex(graph.getDefaultParent(), null, '',
1853 console.log(editorUi, graph.getModel());
1863 var bounds = graph.getGraphBounds();
1864 var vs = graph.view.scale;
1900 imgExport.drawState(graph.getView().getState(graph.model.root), xmlCanvas);
1949 if (graph.isEnabled())
2114 var bounds = graph.getGraphBounds();
2117 Math.ceil(bounds.height / graph.view.scale) + 2,
2272 if (graph.isEditing())
2274 graph.stopEditing();
2398 var view = graph.view;
2399 var bds = graph.getGraphBounds();
2400 …var x = graph.snap(Math.ceil(Math.max(0, bds.x / view.scale - view.translate.x) + 4 * graph.gridSi…
2401 …var y = graph.snap(Math.ceil(Math.max(0, (bds.y + bds.height) / view.scale - view.translate.y) + 4…
2418 graph.setSelectionCells(cells);
2419 graph.scrollCellToVisible(graph.getSelectionCell());
2446 graph.setSelectionCells(cells);
2447 graph.scrollCellToVisible(graph.getSelectionCell());
2983 var pt = graph.getCenterInsertPoint(graph.getBoundingBoxFromGeometry([cell], true));
2987 graph.getModel().beginUpdate();
2990 cell = graph.addCell(cell);
2991 graph.fireEvent(new mxEventObject('cellsInserted', 'cells', [cell]));
2995 graph.getModel().endUpdate();
2998 graph.scrollCellToVisible(cell);
2999 graph.setSelectionCell(cell);
3000 graph.container.focus();
3002 if (graph.editAfterInsert)
3004 graph.startEditing(cell);
3012 editorUi.hoverIcons.update(graph.view.getState(cell));
3021 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
3023 graph.startEditingAtCell(insertVertex('Text', 40, 20, 'text;html=1;resizable=0;autosize=1;' +
3030 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
3038 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
3046 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
3964 var graph = this.ui.editor.graph;
3970 var tmp = graph.extFonts;
3982 graph.extFonts = [];
3986 this.ui.editor.graph.addExtFont(this.previousExtFonts[i].name, this.previousExtFonts[i].url);
3997 var graph = editorUi.editor.graph;
4008 graph.setFont(fontName, fontUrl);
4014 graph.addExtFont(fontName, fontUrl);
4022 'cells', [graph.cellEditor.getEditingCell()]));
4025 graph.updateLabelElements(graph.getSelectionCells(), function(elt)
4032 graph.replaceElement(elt, 'div');
4039 graph.addExtFont(fontName, fontUrl);
4071 var extFonts = mxUtils.clone(this.editorUi.editor.graph.extFonts);
4097 this.editorUi.editor.graph.model.execute(change);
4220 var extFonts = this.editorUi.editor.graph.extFonts;
4255 this.editorUi.editor.graph.addExtFont(name, url, true);
4263 editorUi.editor.graph.model.execute(change);
4272 var graph = this.editorUi.editor.graph;
4273 var curFontName = graph.getStylesheet().getDefaultVertexStyle()
4279 if (urlParams['ext-fonts'] != '1' && graph.isEditing())
4281 var node = graph.getSelectedEditingElement();
4309 var state = graph.getView().getState(graph.getSelectionCell());
4340 var extFonts = this.editorUi.editor.graph.extFonts;
4366 if (document.activeElement == graph.cellEditor.textarea)
4368 selState = graph.cellEditor.saveSelection();
4376 graph.cellEditor.restoreSelection(selState);
4382 if (urlParams['ext-fonts'] != '1' && graph.isEditing())
4384 graph.setFont(fontName, fontUrl);
4388 graph.getModel().beginUpdate();
4392 graph.stopEditing(false);
4396 graph.setCellStyles(mxConstants.STYLE_FONTFAMILY, fontName);
4397 graph.setCellStyles('fontSource', (fontUrl != null) ?
4399 graph.setCellStyles('FType', null);
4403 graph.setCellStyles(mxConstants.STYLE_FONTFAMILY, fontName);
4407 graph.setCellStyles('FType', type);
4414 this.editorUi.editor.graph.addExtFont(fontName, fontUrl);
4437 graph.getModel().endUpdate();