Hi,
We have a colour variable which is stored in the diagram.modelData which we bind into a part using something like this:
new Binding('stroke', 'areaBackgroundColor').ofModel()
However, we would also like the ability to override this stroke value with a hover/select colour when the user moves their mouse over this part and also set the colour value when the part is selected. We previously used something like the following to achieve this (also combined with mouseEnter & mouseLeave events to do the hover:
new Binding('stroke', 'isSelected', selected => selected ? 'dodgerblue' : 'green').ofObject()
These two bindings are from different models and as far as I can see you cant really have two separate bindings for this side by side. Is there a way of being able to bind from both the diagrams modelData and the parts data at the same time so that we can react to changes in both these places and set the one property accordingly?