Skip to main content

merman_render/
info.rs

1use crate::Result;
2use crate::model::{Bounds, InfoDiagramLayout};
3use crate::text::TextMeasurer;
4
5const UPSTREAM_MERMAID_VERSION: &str = "11.12.2";
6
7pub fn layout_info_diagram(
8    semantic: &serde_json::Value,
9    _effective_config: &serde_json::Value,
10    _measurer: &dyn TextMeasurer,
11) -> Result<InfoDiagramLayout> {
12    let _ = semantic;
13
14    Ok(InfoDiagramLayout {
15        bounds: Some(Bounds {
16            min_x: 0.0,
17            min_y: 0.0,
18            max_x: 400.0,
19            max_y: 80.0,
20        }),
21        version: format!("v{UPSTREAM_MERMAID_VERSION}"),
22    })
23}