generate_diagram

Function generate_diagram 

Source
async fn generate_diagram(
    source: &str,
    type_: &str,
    format: &str,
    config: &Config,
    registry: &DiagramRegistry,
    cache_dir: &Option<PathBuf>,
) -> Result<Vec<u8>>
Expand description

Core generation pipeline shared by convert and batch. Returns the final output bytes (including optional WebP conversion).