Lines Matching refs:graph

1 function mxFreehand(graph)  argument
4 …var svgElement = (graph.view != null && graph.view.canvas != null) ? graph.view.canvas.ownerSVGEle…
6 if (graph.container == null || svgElement == null)
12 graph.addListener(mxEvent.ESCAPE, mxUtils.bind(this, function()
71 graph.getRubberband().setEnabled(!isEnabled);
72 graph.graphHandler.setSelectEnabled(!isEnabled);
73 graph.graphHandler.setMoveEnabled(!isEnabled);
74 graph.container.style.cursor = (isEnabled) ? 'crosshair' : '';
75 graph.fireEvent(new mxEventObject('freehandStateChanged'));
178 tmpClosedPath = startEndDist <= graph.tolerance;
201 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
204 var s = graph.view.scale;
205 var tr = graph.view.translate;
210 graph.model.beginUpdate();
213 cell = graph.addCell(cell);
215 graph.fireEvent(new mxEventObject('cellsInserted', 'cells', [cell]));
216 graph.fireEvent(new mxEventObject('freehandInserted', 'cell', cell));
220 graph.model.endUpdate();
223 graph.setSelectionCells([cell]);
241 graph.addListener(mxEvent.FIRE_MOUSE_EVENT, mxUtils.bind(this, function(sender, evt)
262 graph.addMouseListener(
266 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
275 var defaultStyle = graph.getCurrentCellStyle(edge);
276 var strokeWidth = parseFloat(graph.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH] || 1);
277 strokeWidth = Math.max(1, strokeWidth * graph.view.scale);
278 var strokeColor = mxUtils.getValue(graph.currentVertexStyle, mxConstants.STYLE_STROKECOLOR,
283 strokeColor = graph.shapeForegroundColor;
291 if (graph.currentVertexStyle[mxConstants.STYLE_DASHED] == '1')
293 var dashPattern = graph.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN] || '3 3';
316 if (path && graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
325 var tr = graph.view.translate;
326 graph.scrollRectToVisible(new mxRectangle(pt.x - tr.x, pt.y - tr.y).grow(20));
334 if (path && graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
344 return mxUtils.convertPoint(graph.container, mxEvent.getClientX(e), mxEvent.getClientY(e));