Skip to content
ChartForgeX
Class

MermaidFlowchartRendering

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
static

Provides ChartForgeX rendering adapters for parsed Mermaid flowcharts.

Inheritance

  • object
  • MermaidFlowchartRendering

Methods

public static byte[] ToPng(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null) #

Renders a Mermaid flowchart document to static PNG through ChartForgeX topology rendering.

Parameters

document ChartForgeX.Mermaid.MermaidFlowchartDocument required
The parsed Mermaid flowchart document.
options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional
Optional conversion and rendering defaults.

Returns

byte[] PNG bytes.
public static string ToSvg(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null) #

Renders a Mermaid flowchart document to static SVG through ChartForgeX topology rendering.

Parameters

document ChartForgeX.Mermaid.MermaidFlowchartDocument required
The parsed Mermaid flowchart document.
options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional
Optional conversion and rendering defaults.

Returns

string SVG markup.
public static TopologyChart ToTopologyChart(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null) #

Converts a Mermaid flowchart document into a renderer-independent topology chart.

Parameters

document ChartForgeX.Mermaid.MermaidFlowchartDocument required
The parsed Mermaid flowchart document.
options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional
Optional conversion and rendering defaults.

Returns

TopologyChart A topology chart that can render to ChartForgeX SVG, HTML, PNG, and raster outputs.
public static VisualArtifact ToVisualArtifact(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null) #

Wraps a Mermaid flowchart document in a product-neutral visual artifact envelope backed by a topology chart.

Parameters

document ChartForgeX.Mermaid.MermaidFlowchartDocument required
The parsed Mermaid flowchart document.
options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional
Optional conversion and rendering defaults.

Returns

VisualArtifact A visual artifact envelope.