The LocalModelSource has a local copy of the model schema. If the diagram is edited by the user, e.g. by moving around some nodes, that local copy diverges from the model that is held internally by Sprotty. When updateModel is called, the diagram is overwritten with the new version and all local edits of the user are reverted.
We need a way to specify partial updates, e.g. by sending a diff instead of a complete model along with an UpdateModelAction.
The LocalModelSource has a local copy of the model schema. If the diagram is edited by the user, e.g. by moving around some nodes, that local copy diverges from the model that is held internally by Sprotty. When
updateModel
is called, the diagram is overwritten with the new version and all local edits of the user are reverted.We need a way to specify partial updates, e.g. by sending a diff instead of a complete model along with an UpdateModelAction.