Expand description
Headless helper utilities (XyFlow-style graph helpers).
XyFlow exposes a set of convenience utilities in @xyflow/system/src/utils/* for common
graph queries (e.g. “incomers/outgoers”, “connected edges”, “nodes inside rect”, bounds).
In Jellyflow, the canonical document (core::Graph) is port-based (edges connect ports), so
these helpers are built on top of runtime::lookups::NodeGraphLookups which provides a stable,
headless-safe adjacency surface.
Structs§
Enums§
Functions§
- get_
connected_ edges - Returns all edges incident to the given node (both directions).
- get_
connected_ edges_ for_ nodes - Returns all edges connected to any node in the given set.
- get_
incomers - Returns the nodes connected as sources of the given node’s incoming edges.
- get_
node_ position_ with_ origin - Returns the top-left position for a node, taking node origin into account.
- get_
node_ rect - Returns the node’s canvas-space bounding rect.
- get_
nodes_ bounds - Computes the bounding rect enclosing the given nodes.
- get_
nodes_ inside - Returns the nodes that are inside the given query rect.
- get_
outgoers - Returns the nodes connected as targets of the given node’s outgoing edges.