Skip to content
ChartForgeX
Class

MermaidC4Rendering

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
static

Provides ChartForgeX rendering adapters for parsed Mermaid C4 diagrams.

Inheritance

  • object
  • MermaidC4Rendering

Methods

public static byte[] ToPng(MermaidC4Document document, MermaidTopologyRenderOptions? options = null) #

Renders a Mermaid C4 document to static PNG.

Parameters

document ChartForgeX.Mermaid.MermaidC4Document required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

byte[]
public static string ToSvg(MermaidC4Document document, MermaidTopologyRenderOptions? options = null) #

Renders a Mermaid C4 document to static SVG.

Parameters

document ChartForgeX.Mermaid.MermaidC4Document required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

string
public static TopologyChart ToTopologyChart(MermaidC4Document document, MermaidTopologyRenderOptions? options = null) #

Converts a Mermaid C4 document into a renderer-independent ChartForgeX topology chart.

Parameters

document ChartForgeX.Mermaid.MermaidC4Document required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional
public static VisualArtifact ToVisualArtifact(MermaidC4Document document, MermaidTopologyRenderOptions? options = null) #

Wraps a Mermaid C4 document in a visual artifact envelope backed by a ChartForgeX topology chart.

Parameters

document ChartForgeX.Mermaid.MermaidC4Document required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional