Skip to main content

adam_web_ui/
lib.rs

1//! Reusable Dioxus controls and UI for browsing and editing a live `adam_rs::Sheet`.
2//!
3//! [`components`] supplies model-independent official Dioxus controls and numeric
4//! editors. Wrap each root in [`components::Theme`]. [`binding::use_sheet`] owns
5//! one reactive model and supplies bindings to controls and [`SheetInspector`].
6//!
7//! Components render as DOM in a browser or embedded webview. The library does
8//! not select a Dioxus renderer: use it from a desktop app (`begin`), a `dioxus/web`
9//! app, or a `wasm-bindgen` embed without a full application shell.
10
11pub mod binding;
12pub mod build;
13pub mod components;
14pub mod diagnostics;
15pub mod graph;
16pub mod input;
17mod inspector;
18pub mod labels;
19#[cfg(test)]
20#[path = "../build/scale_rem.rs"]
21mod scale_rem;
22
23pub use build::{
24    BuildError, BuiltSheet, RuntimeFailure, ValidationIssue, build_sheet, initialize_sheet,
25};
26pub use graph::{
27    GraphData, GraphDrive, GraphView, LinkData, LinkKind, NodeData, NodeKind, graph_drive_script,
28    to_graph_data,
29};
30pub use inspector::{InspectorPresentation, SheetInspector};
31pub use labels::{
32    CaptureFn, CellMeta, ExactRangeFn, Labels, PrepareFn, PreparedWrite, Renderer, ScalarCodec,
33    format_adam_error, format_module_diagnostic, format_parse_error, format_rounded,
34    labels_from_cell_names,
35};