Lines Matching refs:model

211 		var insertHandler = function(cells, asText, model, vertexStyle, edgeStyle, applyAll, recurse)  argument
217 model = (model != null) ? model : graph.getModel();
225 temp = temp.concat(model.getDescendants(cells[i]));
231 model.beginUpdate();
248 var cellStyle = model.getStyle(cell);
290 var edge = model.isEdge(cell);
292 var newStyle = model.getStyle(cell);
315 model.setStyle(cell, newStyle);
320 model.endUpdate();
1281 while (temp != null && graph.model.isVertex(temp) && geo != null && geo.relative)
1284 temp = graph.model.getParent(cell)
1497 …ui.insertHandler([cell], cell.value != '' && urlParams['sketch'] != '1', this.sidebar.graph.model);
1517 graph.model.beginUpdate();
1524 graph.model.endUpdate();
1880 result = graph.getExportableCells(graph.model.getTopmostCells(result));
1889 var model = new mxGraphModel();
1890 var parent = model.getChildAt(model.getRoot(), 0);
1894 model.add(parent, clones[i]);
1903 if (geo != null && geo.relative && !model.isEdge(result[i]) &&
1904 lookup[mxObjectIdentity.get(model.getParent(result[i]))] == null)
2409 var model = graph.getModel();
2411 model.addListener(mxEvent.CHANGE, function()
2413 layersButton.style.display = (model.getChildCount(model.root) > 1) ? '' : 'none';
3087 var model = this.editor.graph.getModel();
3089 …return model.getChildCount(model.root) == 1 && model.getChildCount(model.getChildAt(model.root, 0)…
3837 …(graph.isContainer(graph.getSelectionCell()) || graph.model.getChildCount(graph.getSelectionCell()…
4399 var cell = (graph.isTableCell(cells[i])) ? graph.model.getParent(cells[i]) : cells[i];
4990 this.editor.graph.model.execute(change);
5166 var parent = graph.model.getParent(cell);
5170 if (graph.getSelectionCount() == 1 && graph.model.isVertex(cell) &&
5182 graph.model.add(parent, cell, Math.max(0, index - 1));
5186 graph.model.add(parent, cell, Math.min(graph.model.getChildCount(parent), index + 1));
5277 if (graph.model.isVertex(graph.getSelectionCell()))
5286 if (cells.length == 1 && graph.model.isEdge(cells[0]))
5288 graph.setSelectionCell(graph.model.getTerminal(cells[0], false));