I’m running into some problems with undo/redo not working in certain situations, and am trying to get it working. The cases I have run into are:
1 - My diagram does undo/redo moving nodes as expected, but I have some alignment functions that move multiple nodes which is not undo-able.
2 - I have an event handler for Diagram.ExternalObjectsDropped which makes the node resizable/rotatable, but when I add a node, press undo to remove it, and then redo to re-add the node the handler (not surprisingly) doesn’t fire. Is there an event for when a node is re-added to the diagram via redo? or some other way I could implement this?
3. After drawing an unconnected line and pressing undo to remove the line, redo doesn't redraw the line. However, if I then perform another action and press undo the line appears. The unconnected line drawing tool is a custom DiagramTool I have created, so I'm not sure if there is something I need to add for it to behave properly.