1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Rust-native Dioxus mind maps, styled through inheritable CSS variables.
//!
//! Renderer-independent checked tree operations, JSON persistence and snapshot
//! history with four HTML/CSS layouts and measured SVG connectors. Use
//! `use_mind_map` and `EditableMindMap` for a shared editable document.
//! Optional typed plugins add interaction, outlines and Rust export formats.
//!
//! # Platform support
//!
//! The default crate enables no renderer. The host selects Dioxus Web or Desktop.
//! Enable the `web` feature for live CSS/font capture to SVG and raster images on
//! `wasm32-unknown-unknown`. Desktop live capture is currently unsupported and
//! returns a recoverable error; tree operations and XMind encoding are portable.
//! Static HTML exports contain no interactive editor. Data compatibility is a
//! strict plain-text subset; unknown JSON fields are rejected.
//!
//! # Optional plugins
//!
//! Keep the guards returned by [`use_plugins`] or [`MindMapHandle::register_plugin`]
//! alive for as long as their capabilities are needed. Views share one handle's
//! document and history, while each view retains its own viewport and editor.
//! Source examples and validation notes are in the project repository.
//!
//! ```rust,no_run
//! use dioxus::prelude::*;
//! use dioxus_mind_elixir::{MindMap, MindMapData, Node};
//!
//! fn app() -> Element {
//! let data = use_signal(|| MindMapData::new(
//! Node::new("root", "Ideas").with_children(vec![Node::new("child", "Rust")])
//! ));
//! rsx! { MindMap { data } }
//! }
//! ```
pub use ;
pub use ;
pub use ;
pub use ;
pub use Theme;
pub use ;
pub use ;
/// Component stylesheet embedded in the crate; no asset-copy step is needed.
pub const STYLESHEET: &str = include_str!;