Skip to content
ChartForgeX
Class

MermaidFlowchartDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid

Describes a Mermaid flowchart or graph document.

Inheritance

Derived Types

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 8

Constructors

public MermaidFlowchartDocument() #

Properties

public MermaidFlowchartDirection Direction { get; set; } #

Gets or sets the declared flowchart direction.

public List<MermaidRawStatement> Statements { get; } #

Gets raw flowchart statements retained with source spans.

public List<MermaidFlowchartNode> Nodes { get; } #

Gets parsed flowchart node definitions and references.

public List<MermaidFlowchartEdge> Edges { get; } #

Gets parsed flowchart edges.

public List<MermaidFlowchartSubgraph> Subgraphs { get; } #

Gets one canonical subgraph per ID in source first-ID order.

public List<MermaidStyleDefinition> ClassDefinitions { get; } #

Gets parsed flowchart class definitions.

public List<MermaidFlowchartLinkStyle> LinkStyles { get; } #

Gets parsed flowchart link style declarations.

Extension 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.