I’ve added a DiagramListener that prompts the user with a confirm window upon expanding/collapsing a subgraph. If the user hits ‘cancel’, the undoManager will rollback the transaction, but it looks like the animation will still occur.
On the other hand, when you expand the subgraph, if the user hits ‘cancel’, the animation will not occur.
Would this be a bug, or an intended feature that rolling back the transaction doesn’t stop the animation?
Also, I am able to stop the animation in 1.6 beta4 by including animationManager.stopAnimation(), but not in beta3.
Here’s a codepen: