Skip to content

Add UndoManager support for graph operations#85

Merged
vade merged 2 commits intoFabric-Project:mainfrom
JustinMeans:feature/undomanager-support
Nov 17, 2025
Merged

Add UndoManager support for graph operations#85
vade merged 2 commits intoFabric-Project:mainfrom
JustinMeans:feature/undomanager-support

Conversation

@JustinMeans
Copy link
Copy Markdown
Contributor

Implements undo/redo for node add/delete and port connect/disconnect.
Fixes connections failing to update in render view during certain operations.

Addresses feedback from Fabric-Project#83 regarding zoom stutter caused by @Environment
observation cascades. Marks Graph drag preview properties as @ObservationIgnored
to prevent view recalculation during gestures. Calculates zoom anchor from
current scroll position instead of gesture location to eliminate jumps between
magnification gestures.

Related: Fabric-Project#83, Fabric-Project#66
Implements undo/redo for node add/delete and port connect/disconnect.
Fixes connections failing to update in render view during certain operations.
@vade
Copy link
Copy Markdown
Contributor

vade commented Nov 16, 2025

Thanks!

a brief review on mobile shows me some dispatch async code in the registration of the undo manager. Can you walk me through the rational for that? Anytime I see async code that also handles the main queue it’s a moment for me to pause and consider!

@vade vade merged commit 020cb5c into Fabric-Project:main Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants