Node Data for Undo Redo Events

Hi,

I have registered the addModelChangedListener for the diagram and getting all the events.

My problem is want to know the event name fired (For example Undo, Redo,etc…) and Node data associated with that.

Because based on this will do some operation in the back end.

Could you please help me to resolve this issue?

Yes, there are “Transaction” type ChangedEvents when starting an undo or redo or when an undo or redo is finished: https://gojs.net/latest/intro/changedEvents.html#Transactions

For the very common case, you can just check for ChangedEvent.isTransactionFinished. https://gojs.net/latest/intro/changedEvents.html#SavingModelWhenTransactionsComplete