pub struct MindMapProps {
pub data: ReadSignal<MindMapData>,
pub class: String,
pub style: String,
pub measurement_revision: u64,
pub alignment: Alignment,
pub theme: Option<Theme>,
pub viewport: Option<Signal<Viewport>>,
pub center_revision: u64,
pub on_error: EventHandler<MindMapError>,
}Expand description
Properties of the read-only MindMap renderer.
Fields§
§data: ReadSignal<MindMapData>Validated persistent document, reactive without remounting the map.
class: StringHost CSS class.
style: StringHost CSS, including inherited --dme-* variables.
measurement_revision: u64Explicit invalidation for host animations/position-only changes.
alignment: AlignmentRoot alignment.
theme: Option<Theme>Optional explicit theme; omitted preserves ancestor CSS variables.
viewport: Option<Signal<Viewport>>Optional per-view viewport control, separate from document history.
center_revision: u64Increment to center the root in the visible container.
on_error: EventHandler<MindMapError>Reports recoverable errors.
Implementations§
Source§impl MindMapProps
impl MindMapProps
Sourcepub fn builder() -> MindMapPropsBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> MindMapPropsBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building MindMapProps.
On the builder, call .data(...), .class(...)(optional), .style(...)(optional), .measurement_revision(...)(optional), .alignment(...)(optional), .theme(...)(optional), .viewport(...)(optional), .center_revision(...)(optional), .on_error(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of MindMapProps.