Lines Matching refs:newCell

790 	var newCell = lookup[cell.getId()];
793 if (newCell == null)
799 var temp = this.diffCell(cell, newCell.cell);
802 (((newCell.prev != null) ? prev == null : prev != null) ||
803 (prev != null && newCell.prev != null &&
804 prev.getId() != newCell.prev.getId())))
806 temp.previous = (newCell.prev != null) ? newCell.prev.getId() : '';
845 var newCell = lookup[id];
846 inserted.push(this.getJsonForCell(newCell.cell, newCell.prev));
1023 EditorUi.prototype.diffCell = function(oldCell, newCell) argument
1027 if (oldCell.vertex != newCell.vertex)
1029 diff.vertex = (newCell.vertex) ? 1 : 0;
1032 if (oldCell.edge != newCell.edge)
1034 diff.edge = (newCell.edge) ? 1 : 0;
1037 if (oldCell.connectable != newCell.connectable)
1039 diff.connectable = (newCell.connectable) ? 1 : 0;
1042 if (((oldCell.parent != null) ? newCell.parent == null : newCell.parent != null) ||
1043 (oldCell.parent != null && newCell.parent != null &&
1044 oldCell.parent.getId() != newCell.parent.getId()))
1046 diff.parent = (newCell.parent != null) ? newCell.parent.getId() : '';
1049 if (((oldCell.source != null) ? newCell.source == null : newCell.source != null) ||
1050 (oldCell.source != null && newCell.source != null &&
1051 oldCell.source.getId() != newCell.source.getId()))
1053 diff.source = (newCell.source != null) ? newCell.source.getId() : '';
1056 if (((oldCell.target != null) ? newCell.target == null : newCell.target != null) ||
1057 (oldCell.target != null && newCell.target != null &&
1058 oldCell.target.getId() != newCell.target.getId()))
1060 diff.target = (newCell.target != null) ? newCell.target.getId() : '';
1069 if (isNode(oldCell.value) && isNode(newCell.value))
1071 if (!oldCell.value.isEqualNode(newCell.value))
1073 diff.xmlValue = mxUtils.getXml(newCell.value);
1076 else if (oldCell.value != newCell.value)
1078 if (isNode(newCell.value))
1080 diff.xmlValue = mxUtils.getXml(newCell.value);
1084 diff.value = (newCell.value != null) ? newCell.value : null;
1088 if (oldCell.style != newCell.style)
1091 diff.style = newCell.style;
1094 if (oldCell.visible != newCell.visible)
1096 diff.visible = (newCell.visible) ? 1 : 0;
1099 if (oldCell.collapsed != newCell.collapsed)
1101 diff.collapsed = (newCell.collapsed) ? 1 : 0;
1105 if (!this.isObjectEqual(oldCell.geometry, newCell.geometry, new mxGeometry()))
1107 var node = this.codec.encode(newCell.geometry);
1120 typeof newCell[key] !== 'function' && oldCell[key] != newCell[key])
1122 diff[key] = (newCell[key] === undefined) ? null : newCell[key];
1127 for (var key in newCell)
1131 typeof newCell[key] !== 'function' && oldCell[key] != newCell[key])
1133 diff[key] = (newCell[key] === undefined) ? null : newCell[key];