Can redo?
Can undo?
Current React Flow edges
Get position source for a node
Loading state during layout operations
Current React Flow nodes
Handle drag end - saves snapshot for undo
Handle node drag - updates position
Redo last undone change
Run full ELK layout
Update the graph from parsed DSL
Set node positions directly (e.g., from loaded document)
Undo last position change
useDiagramState return type