pub enum ViewChange {
Viewport {
pan: CanvasPoint,
zoom: f32,
},
Selection {
nodes: Vec<NodeId>,
edges: Vec<EdgeId>,
groups: Vec<GroupId>,
},
}Expand description
View-state projection change events.
These are the B-layer equivalent of XyFlow’s selection/viewport updates (which are embedded in their node/edge arrays). In Jellyflow, view-state is intentionally separate from the serialized graph document.
Only viewport/selection changes are surfaced here. Other persisted editor configuration is
observable through selector subscriptions on super::NodeGraphStoreSnapshot.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ViewChange
impl Clone for ViewChange
Source§fn clone(&self) -> ViewChange
fn clone(&self) -> ViewChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ViewChange
impl RefUnwindSafe for ViewChange
impl Send for ViewChange
impl Sync for ViewChange
impl Unpin for ViewChange
impl UnsafeUnpin for ViewChange
impl UnwindSafe for ViewChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more