Skip to main content

render_to_surface

Function render_to_surface 

Source
pub fn render_to_surface(
    map: &Map,
    stage_type: &StageType,
    configuration: &Configuration,
) -> Result<ImageSurface, RenderError>
Expand description

Renders a Wardley map to a cairo context.

§Arguments

  • map - The parsed Wardley map
  • stage_type - The stage type to use for axis labels
  • config - Configuration options

§Returns

An ImageSurface containing the rendered map

§Errors

Returns RenderError if the surface creation or rendering fails