Model Two Way Binding

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.

2 Likes