Lines Matching refs:graph

169 				this.graph = new Graph(container);
170 this.graph.enableFlowAnimation = true;
171 this.graph.defaultPageBackgroundColor = 'transparent';
172 this.graph.transparentBackground = false;
174 if (this.responsive && this.graph.dialect == mxConstants.DIALECT_SVG)
176 var root = this.graph.view.getDrawPane().ownerSVGElement;
177 var canvas = this.graph.view.getCanvas();
191 this.graph.fit = function() method
196 this.graph.sizeDidChange = function() method
215 this.graph.isMoveCellsEvent = function(evt) method
228 this.editor = new Editor(true, null, null, this.graph);
230 this.graph.lightbox = true;
231 this.graph.centerZoom = false;
232 this.graph.autoExtend = false;
233 this.graph.autoScroll = false;
234 this.graph.setEnabled(false);
253 this.graph.getImageFromBundles = function(key) method
261 this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement, null, true);
284 var graphGetGlobalVariable = this.graph.getGlobalVariable;
287 this.graph.getGlobalVariable = function(name) method
348 var graphSetBackgroundImage = this.graph.setBackgroundImage;
350 this.graph.setBackgroundImage = function(img) method
375 var graphGetGraphBounds = this.graph.getGraphBounds;
377 this.graph.getGraphBounds = function(img) method
407 this.graph.getModel().beginUpdate();
414 this.graph.view.scale = this.graphConfig.zoom || 1;
419 this.graph.border = (this.graphConfig.border != null) ? this.graphConfig.border : 8;
424 this.graph.getModel().endUpdate();
430 this.graph.panningHandler.isForcePanningEvent = function(me) method
433 this.graph.container.style.overflow == 'auto';
436 this.graph.panningHandler.useLeftButtonForPanning = true;
437 this.graph.panningHandler.ignoreCell = true;
438 this.graph.panningHandler.usePopupTrigger = false;
439 this.graph.panningHandler.pinchEnabled = false;
442 this.graph.setPanning(false);
459 if (this.showLayers(this.graph) && !this.forceCenter && (!this.layersEnabled || this.autoCrop))
464 this.addClickHandler(this.graph);
465 this.graph.setTooltips(this.graphConfig.tooltips != false);
466 this.graph.initialViewState = { class
467 translate: this.graph.view.translate.clone(),
468 scale: this.graph.view.scale
476 this.graph.customLinkClicked = function(href) method
496 var graphFoldTreeCell = this.graph.foldTreeCell;
498 this.graph.foldTreeCell = mxUtils.bind(this, function()
502 return graphFoldTreeCell.apply(this.graph, arguments);
577 var graph = Graph.createOffscreenGraph(this.graph.getStylesheet());
578 graph.getGlobalVariable = this.graph.getGlobalVariable;
579 document.body.appendChild(graph.container);
583 graph.model.setRoot(root);
585 var svgRoot = graph.getSvg();
586 var bounds = graph.getGraphBounds();
587 document.body.removeChild(graph.container);
662 var model = this.graph.getModel();
689 if (this.graph != null)
691 this.graph.view.translate = new mxPoint();
692 this.graph.view.scale = 1;
695 this.graph.getModel().beginUpdate();
698 this.graph.getModel().clear();
704 this.graph.getModel().endUpdate();
712 this.graph.container.style.width = '';
713 this.graph.container.style.height = '';
717 this.graph.container.style.width = this.initialWidth;
723 this.graph.initialViewState = { class
724 translate: this.graph.view.translate.clone(),
725 scale: this.graph.view.scale
740 var container = this.graph.container;
741 var bounds = this.graph.getGraphBounds();
758 var tmp = this.graph.getGraphBounds();
763 if (tmp.width + 2 * this.graph.border > container.offsetWidth - 2)
816 this.positionGraph(this.graph.view.translate);
817 this.graph.initialViewState.translate = this.graph.view.translate.clone();
843 this.graph.maxFitScale = (maxScale != null) ? maxScale : (this.graphConfig.zoom ||
845 this.graph.fit(null, null, null, null, null, true);
849 this.graph.center();
852 this.graph.maxFitScale = null;
857 this.graph.getGraphBounds().height +
858 2 * this.graph.border + 1));
861 this.graph.initialViewState = { class
862 translate: this.graph.view.translate.clone(),
863 scale: this.graph.view.scale
882 this.graph.addListener('size', updateOverflow);
886 new ResizeSensor(this.graph.container, updateOverflow);
892 this.graph.minimumContainerSize = new mxRectangle(0, 0, this.minWidth, this.minHeight);
893 this.graph.resizeContainer = true;
900 this.updateContainerWidth(container, bounds.width + 2 * this.graph.border);
905 …this.updateContainerHeight(container, Math.max(this.minHeight, bounds.height + 2 * this.graph.bord…
933 new ResizeSensor(this.graph.container, doResize);
939 this.graph.addListener('size', updateOverflow);
957 bounds.width + 2 * this.graph.border > container.offsetWidth ||
958 bounds.height + 2 * this.graph.border > maxHeight))
962 if (maxHeight != null && bounds.height + 2 * this.graph.border > maxHeight - 2)
964 maxScale = (maxHeight - 2 * this.graph.border - 2) / bounds.height;
971 …this.graph.center((!this.widthIsEmpty || bounds.width < this.minWidth) && this.graphConfig.resize …
977 …this.graph.view.setTranslate(Math.floor(this.graph.border - bounds.x / this.graph.view.scale) + or…
978 Math.floor(this.graph.border - bounds.y / this.graph.view.scale) + origin.y);
997 bounds = this.graph.getGraphBounds();
1008 var graph = this.graph;
1009 var bounds = graph.getGraphBounds();
1010 var border = graph.border;
1011 var s = graph.view.scale;
1012 var x0 = (bounds.x != null) ? Math.floor(graph.view.translate.x - bounds.x / s + border) : border;
1013 var y0 = (bounds.y != null) ? Math.floor(graph.view.translate.y - bounds.y / s + border) : border;
1015 graph.view.setTranslate(x0, y0);
1041 GraphViewer.prototype.showLayers = function(graph, sourceGraph) argument
1052 var model = graph.getModel();
1125 var container = this.graph.container;
1126 var initialCursor = this.graph.container.style.cursor;
1203 …mxEvent.addListener(this.graph.container, (mxClient.IS_POINTER) ? 'pointermove' : 'mousemove', mxU…
1237 var graph = this.graph;
1238 var tol = graph.getTolerance();
1240 graph.addMouseListener(
1250 this.scrollLeft = graph.container.scrollLeft;
1251 this.scrollTop = graph.container.scrollTop;
1258 if ((Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
1259 Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
1381 this.graph.zoomOut();
1386 this.graph.zoomIn();
1391 this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,
1392 this.graph.initialViewState.translate.x,
1393 this.graph.initialViewState.translate.y);
1401 var model = this.graph.getModel();
1412 layersDialog = this.graph.createLayersDialog(mxUtils.bind(this, function()
1420 var bounds = this.graph.getGraphBounds();
1421 var v = this.graph.view;
1426 this.graph.originalViewState = this.graph.initialViewState;
1428 this.graph.initialViewState = { class
1433 else if (this.graph.originalViewState != null &&
1434 bounds.x / v.scale + this.graph.originalViewState.translate.x - v.translate.x > 0 &&
1435 bounds.y / v.scale + this.graph.originalViewState.translate.y - v.translate.y > 0)
1437 v.setTranslate(this.graph.originalViewState.translate.x,
1438 this.graph.originalViewState.translate.y);
1439 this.graph.originalViewState = null;
1441 this.graph.initialViewState = { class
1489 tagsComponent = this.graph.createTagsDialog(mxUtils.bind(this, function()
1536 tagsButton.style.display = (this.graph.getAllTags().length > 0) ? 'inline-block' : 'none';
1539 tagsButton.style.display = (this.graph.getAllTags().length > 0) ? 'inline-block' : 'none';
1564 if (this.graph.minimumContainerSize != null)
1566 this.graph.minimumContainerSize.width = buttonCount * 34;
1712 GraphViewer.prototype.addClickHandler = function(graph, ui) argument
1714 graph.linkPolicy = this.graphConfig.target || graph.linkPolicy;
1716 graph.addClickHandler(this.graphConfig.highlight, mxUtils.bind(this, function(evt, href)
1722 while (source != graph.container && source != null && href == null)
1735 if (href == null || graph.isCustomLink(href))
1739 else if (!graph.isExternalProtocol(href) &&
1740 !graph.isBlankLink(href))
1750 else if (href != null && ui == null && graph.isCustomLink(href) &&
1752 graph.customLinkClicked(href))
1920 ui.editor.graph.shadowId = 'lightboxDropShadow';
1947 var graph = ui.editor.graph;
1948 var lightbox = graph.container;
1968 graph.getImageFromBundles = function(key)
1990 graph.isMoveCellsEvent = function(evt)
2009 this.addClickHandler(graph, ui);
2037 this.showLayers(graph, this.graph);
2053 if (this.showTitleAsTooltip && this.graph != null && this.graph.container != null)
2055 this.graph.container.setAttribute('title', title);