Lines Matching refs:graph

98 	this.ui.editor.graph.updatePlaceholders();
123 this.ui.editor.graph.updatePlaceholders();
167 var graph = editor.graph;
172 page.viewState = graph.getViewState();
173 page.root = graph.model.root;
188 graph.view.clear(page.root, true);
189 graph.clearSelection();
197 graph.model.prefix = Editor.guid() + '-';
198 graph.model.rootChanged(page.root);
199 graph.setViewState(page.viewState);
202 graph.gridEnabled = graph.gridEnabled && (!this.ui.editor.isChromelessView() ||
207 graph.view.validate();
208 graph.blockMathRender = true;
209 graph.sizeDidChange();
210 graph.blockMathRender = false;
218 graph.selectUnlockedLayer();
222 editor.graph.fireEvent(new mxEventObject(mxEvent.ROOT));
357 sourceGraph = (sourceGraph != null) ? sourceGraph : this.editor.graph;
359 var graph = this.createTemporaryGraph(sourceGraph.getStylesheet());
360 graph.defaultPageBackgroundColor = sourceGraph.defaultPageBackgroundColor;
361 graph.shapeBackgroundColor = sourceGraph.shapeBackgroundColor;
362 graph.shapeForegroundColor = sourceGraph.shapeForegroundColor;
366 graph.getGlobalVariable = function(name)
382 document.body.appendChild(graph.container);
385 graph.model.setRoot(page.root);
386 var svgRoot = graph.getSvg(null, null, null, null, null,
388 var bounds = graph.getGraphBounds();
389 document.body.removeChild(graph.container);
400 if (!this.editor.graph.standalone)
419 var graph = this.editor.graph;
420 var graphViewValidateBackground = graph.view.validateBackground;
422 graph.view.validateBackground = mxUtils.bind(this, function()
444 graphViewValidateBackground.apply(graph.view, arguments);
462 if (graph.isLightboxView())
469 graph.container.scrollLeft = 0;
470 graph.container.scrollTop = 0;
476graph.container.scrollLeft = graph.view.translate.x * graph.view.scale + p.viewState.scrollLeft;
477 graph.container.scrollTop = graph.view.translate.y * graph.view.scale + p.viewState.scrollTop;
493 if (MathJax.Hub.queue.pending == 1 && this.editor != null && !this.editor.graph.mathEnabled)
501 this.editor.graph.refresh();
506 …of(Editor.MathJaxClear) !== 'undefined' && (this.editor == null || !this.editor.graph.mathEnabled))
514 this.editor.graph.model.addListener(mxEvent.CHANGE, mxUtils.bind(this, function(sender, evt)
546 var graph = this.editor.graph;
557 graph.setViewState(viewState);
559 graph.view.revalidate();
560 graph.sizeDidChange();
563 graph.container.scrollLeft = graph.view.translate.x * graph.view.scale + viewState.scrollLeft;
564 graph.container.scrollTop = graph.view.translate.y * graph.view.scale + viewState.scrollTop;
565 graph.restoreSelection(selection);
914 page.viewState = this.editor.graph.createViewState(node);
921 page.root = this.editor.graph.model.createRoot();
944 page.viewState = this.editor.graph.createViewState(page.graphModelNode);
960 if (this.editor.graph.isEditing())
962 this.editor.graph.stopEditing(false);
966 this.editor.graph.isMouseDown = false;
967 this.editor.graph.reset();
969 var edit = this.editor.graph.model.createUndoableEdit();
979 this.editor.graph.tooltipHandler.hide();
983 this.editor.graph.model.fireEvent(new mxEventObject(mxEvent.UNDO, 'edit', edit));
1020 if (this.editor.graph.isEnabled())
1022 if (this.editor.graph.isEditing())
1024 this.editor.graph.stopEditing(false);
1032 this.editor.graph.model.execute(change);
1102 var graph = this.editor.graph;
1105 if (graph.isEnabled() && tmp >= 0)
1107 if (this.editor.graph.isEditing())
1109 this.editor.graph.stopEditing(false);
1112 graph.model.beginUpdate();
1135 graph.model.execute(new RenamePage(this, next,
1140 graph.model.execute(new ChangePage(this, page, next));
1144 graph.model.endUpdate();
1165 var graph = this.editor.graph;
1167 if (graph.isEnabled())
1169 if (graph.isEditing())
1171 graph.stopEditing();
1179 var lookup = graph.createCellLookup([graph.model.root]);
1182 newPage.root = graph.cloneCell(graph.model.root, null, cloneMap);
1183 newPage.viewState = graph.getViewState();
1196 graph.updateCustomLinks(graph.createCellMapping(cloneMap, lookup), [newPage.root]);
1212 var graph = this.editor.graph;
1214 if (graph.isEnabled())
1220 this.editor.graph.model.execute(new RenamePage(this, page, name));
1235 this.editor.graph.model.execute(new MovePage(this, oldIndex, newIndex));
1260 var graph = this.editor.graph;
1298 if (graph.isEnabled())
1451 if (!this.editor.graph.isMouseDown)
1508 this.editor.graph.popupMenuHandler.hideMenu();
1533 if (this.editor.graph.isEnabled())
1601 var graph = this.editor.graph;
1648 var graph = this.editor.graph;
1649 var model = graph.model;
1666 if (!graph.isMouseDown && !pageWasActive)
1672 if (graph.isEnabled() && !graph.isMouseDown &&
1676 graph.popupMenuHandler.hideMenu();
1746 var graph = this.editor.graph;
1747 var model = graph.model;
1782 if (!graph.isSelectionEmpty())
1784 var bounds = graph.getBoundingBox(graph.getSelectionCells());
1786 var t = graph.view.translate;
1787 var s = graph.view.scale;