Undo Graph Node Location

Dear Support Team,

How to perform Undo operation on GoTextNode Location.

regards

sudhanshu

Do a StartTransaction / FinishTransaction around anything that changes the Location. For normal dragging, that’s built into GoToolDragging.

I might as well point out that enclosing all of your document-modifying operations in a transaction is a good thing to do. It isn’t just for changes to GoObject.Bounds.

It’s required if you want to support undo/redo.

If there is no UndoManager, the Start/FinishTransaction calls are no-ops.