Hello. I am trying to add an Event Listener which would be called everytime diagram.lastInput
's value is changed.
It would probably look like:
diagram.addModelChangedListener()
except this would be listening to changes on the Diagram
itself and not just the diagram model.
P.s. the reason why I want to capture everytime lastInput
changes is to create a handler for hovering over a particular targetObject
which is returned and set to the InputEvent
register in diagram.lastInput
if that helps give you a larger context.