tui-lipan 0.1.0

Opinionated, component-based TUI framework for Rust - declarative components, reconciliation, layout engine, focus, overlays, and rich widgets on top of ratatui.
Documentation
use crate::backend::ratatui_backend::renderers::simple_diagram::{
    SimpleDiagramRenderCtx, render_simple_diagram,
};
use crate::style::{Rect, Theme};
use crate::widgets::internal::StateDiagramNode;
pub(crate) fn render_state_diagram(
    f: &mut ratatui::Frame<'_>,
    node: &StateDiagramNode,
    theme: &Theme,
    rect: Rect,
    clip_rect: Rect,
) {
    render_simple_diagram(
        f,
        theme,
        rect,
        clip_rect,
        SimpleDiagramRenderCtx {
            style: node.style,
            padding: node.padding,
            node_padding: node.node_padding,
            boxes: &node.boxes,
            edges: &node.edges,
            output: &node.output,
        },
    );
}