Skip to main content

jellyflow_runtime/runtime/geometry/
mod.rs

1//! Renderer-neutral geometry primitives for Jellyflow runtimes and adapters.
2
3mod bounds;
4mod edge_route;
5mod endpoints;
6mod hit_test;
7mod paths;
8mod viewport;
9
10pub(crate) use bounds::CanvasBounds;
11pub use edge_route::{
12    EdgeInteractionFacts, EdgeRouteFacts, ResolvedEdgeRouteKind, resolve_edge_route_path,
13};
14pub use endpoints::{
15    EdgeEndpointInput, EdgeEndpointPosition, EdgePosition, HandleBounds, HandlePosition,
16    edge_position, handle_anchor_position, handle_center_position,
17};
18pub use hit_test::{EdgeHitTestOptions, edge_path_contains_point, edge_path_distance};
19pub use paths::{
20    BezierEdgeOptions, EdgePath, EdgePathLabel, PathCommand, SmoothStepEdgeOptions,
21    bezier_edge_path, smoothstep_edge_path, straight_edge_path,
22};
23pub(crate) use viewport::ViewportFitFrame;