theia-ide / sprotty

A next-gen web-based graphics framework
Apache License 2.0
138 stars 23 forks source link

Allow partial updates #61

Closed spoenemann closed 7 years ago

spoenemann commented 7 years ago

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.