in extension of my question about Json serialization I would like to ask if there is a possibility to re-render the svg when the underlying data has been changed. This would allow to edit the moddel by multiple users at the same time.
I am thinking about two-way-binding as implemented in Angular. With help of firebase, a multi-user moddeler could be realized pretty simple. compare the firebase example: https://github.com/firebase/office-mover-5000 (just open the demo in two browser tabs and see how they get synchronized)
The graphical representation of an element is automatically updated if an element.changed event is fired via the eventBus. If you know what changed simply emit the respective events.
var shape1 = elementRegistry.get('Shape_1');
eventBus.fire('element.changed', { element: shape1 });
This is internal though and may change in the future.
I provided a bugfix for this issue, so the element.changed event is now fired properly for labels and names. The bugfix is already on the master branch. You can see the changes here: