Lines Matching refs:cell

287 					var cell = model.getCell(id);
289 if (cell != null)
291 var parent = model.getParent(cell);
371 var cell = model.getCell(diff[EditorUi.DIFF_REMOVE][i]);
373 if (cell != null)
375 model.remove(cell);
400 var cell = model.getCell(cellDiff.id);
402 if (cell != null)
404 model.setTerminal(cell, model.getCell(cellDiff.source), true);
405 model.setTerminal(cell, model.getCell(cellDiff.target), false);
433 EditorUi.prototype.patchCellRecursive = function(page, model, cell, parentLookup, diff) argument
435 if (cell != null)
437 var temp = parentLookup[cell.getId()];
443 var childCount = model.getChildCount(cell);
448 var cellId = model.getChildAt(cell, i).getId();
479 if (model.getChildAt(cell, index) != child)
481 model.add(cell, child, index);
549 EditorUi.prototype.patchCell = function(model, cell, diff, resolve) argument
551 if (cell != null && diff != null)
559 model.setValue(cell, diff.value);
563 model.setValue(cell, mxUtils.parseXml(diff.xmlValue).documentElement);
570 model.setStyle(cell, diff.style);
575 model.setVisible(cell, diff.visible == 1);
580 model.setCollapsed(cell, diff.collapsed == 1);
586 cell.vertex = diff.vertex == 1;
592 cell.edge = diff.edge == 1;
598 cell.connectable = diff.connectable == 1;
603 model.setGeometry(cell, this.codec.decode(mxUtils.parseXml(
609 model.setTerminal(cell, model.getCell(diff.source), true);
614 model.setTerminal(cell, model.getCell(diff.target), false);
621 cell[key] = diff[key];
766 EditorUi.prototype.createCellLookup = function(cell, prev, lookup) argument
769 lookup[cell.getId()] = {cell: cell, prev: prev}; property in EditorUi.createCellLookup.lookup
771 var childCount = cell.getChildCount();
776 var child = cell.getChildAt(i);
787 EditorUi.prototype.diffCellRecursive = function(cell, prev, lookup, diff, removed) argument
790 var newCell = lookup[cell.getId()];
791 delete lookup[cell.getId()];
795 removed.push(cell.getId());
799 var temp = this.diffCell(cell, newCell.cell);
811 diff[cell.getId()] = temp;
815 var childCount = cell.getChildCount();
820 var child = cell.getChildAt(i);
846 inserted.push(this.getJsonForCell(newCell.cell, newCell.prev));
914 var cell = new mxCell(value, geometry, json.style);
915 cell.connectable = json.connectable != 0;
916 cell.collapsed = json.collapsed == 1;
917 cell.visible = json.visible != 0;
918 cell.vertex = json.vertex == 1;
919 cell.edge = json.edge == 1;
920 cell.id = json.id;
926 cell[key] = json[key];
930 return cell;
936 EditorUi.prototype.getJsonForCell = function(cell, previous) argument
938 var result = {id: cell.getId()};
940 if (cell.vertex)
945 if (cell.edge)
950 if (!cell.connectable)
955 if (cell.parent != null)
957 result.parent = cell.parent.getId();
965 if (cell.source != null)
967 result.source = cell.source.getId();
970 if (cell.target != null)
972 result.target = cell.target.getId();
975 if (cell.style != null)
977 result.style = cell.style;
980 if (cell.geometry != null)
982 result.geometry = mxUtils.getXml(this.codec.encode(cell.geometry));
985 if (cell.collapsed)
990 if (!cell.visible)
995 if (cell.value != null)
997 if (typeof cell.value === 'object' && typeof cell.value.nodeType === 'number' &&
998 typeof cell.value.nodeName === 'string' && typeof cell.value.getAttribute === 'function')
1000 result.xmlValue = mxUtils.getXml(cell.value);
1004 result.value = cell.value;
1008 for (var key in cell)
1011 typeof cell[key] !== 'function')
1013 result[key] = cell[key];