Walter let’s start from scratch, ignore the transaction warnings for now, and hopefully this helps simplify things as I think this is the problem. When the model is first loaded with server data AND the mouse isn’t moving here is what happens in the ModelChanged handler.
{
"modelProperties": {
"change": "EnumValue.Transaction",
"propertyName": "CommittedTransaction",
"modelChange": "",
"newParam": null,
"newValue": null,
"oldParam": null,
"oldValue": "Initial Layout"
},
"toIncrementalJson": {
"class": "GraphLinksModel",
"incremental": 1,
"linkKeyProperty": "key",
"modifiedLinkData": [
{
"parent": "ext-comp-1247",
"key": "390:TEST",
"midpoints": [
{
"class": "go.Point",
"x": 178,
"y": 148
}
],
"category": "namedlink",
"labelVisible": false,
"text": "",
"from": "529:TEST",
"to": "530:TEST",
"linkColor": "#999",
"tranVisible": true,
"strokeDashArray": null,
"badgeVisible": false,
"points": [
146.41413299766526,
240.77700530894947,
288.58586700233474,
164.22299469105053
]
}
]
}
}
Do the same thing AND move the mouse over the diagram and this is what happens.
{
"modelProperties": {
"change": "EnumValue.Transaction",
"propertyName": "CommittedTransaction",
"modelChange": "",
"newParam": null,
"newValue": null,
"oldParam": null,
"oldValue": "Initial Layout"
},
"toIncrementalJson": {
"class": "GraphLinksModel",
"incremental": 1,
"linkKeyProperty": "key"
}
}
What could be causing the incremental JSON to be empty because the mouse is moving? Because there is no modifiedLinkData my code to add the start/end points doesn’t get called.