Expand description
XyFlow-style change model for editor runtimes.
In XyFlow/ReactFlow, internal interactions produce “changes” that user code can apply to its
node/edge arrays via helpers like applyNodeChanges. In Jellyflow, the authoritative model
is a reversible GraphTransaction (undo/redo friendly). This module bridges the two worlds:
- Map
GraphTransaction->(NodeChange, EdgeChange)events (for callbacks). - Map
(NodeChange, EdgeChange)-> reversibleGraphTransaction(for store dispatch).
These change names are compatibility vocabulary. Use crate::runtime::policy when an adapter
needs effective interaction policy such as whether a node can be selected or an edge endpoint can
be reconnected.
Re-exports§
pub use crate::runtime::commit::NodeGraphPatch;
Structs§
- Node
Graph Changes - XyFlow-style node/edge projection of a graph patch.
Enums§
- Changes
ToTransaction Error - Edge
Change - Changes targeting edges (graph-owned).
- Node
Change - Changes targeting nodes (graph-owned).