jellyflow_runtime/runtime/utils/mod.rs
1//! Headless helper utilities (XyFlow-style graph helpers).
2//!
3//! XyFlow exposes a set of convenience utilities in `@xyflow/system/src/utils/*` for common
4//! graph queries (e.g. "incomers/outgoers", "connected edges", "nodes inside rect", bounds).
5//!
6//! In Jellyflow, the canonical document (`core::Graph`) is port-based (edges connect ports), so
7//! these helpers are built on top of `runtime::lookups::NodeGraphLookups` which provides a stable,
8//! headless-safe adjacency surface.
9
10mod bounds;
11mod connections;
12mod options;
13
14pub use bounds::{
15 get_node_position_with_origin, get_node_rect, get_nodes_bounds, get_nodes_inside,
16};
17pub use connections::{
18 get_connected_edges, get_connected_edges_for_nodes, get_incomers, get_outgoers,
19};
20pub use options::{GetNodesBoundsOptions, GetNodesInsideOptions, NodeInclusion};