Class
MermaidC4Rendering
ChartForgeX.Mermaid
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
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidC4Document document, MermaidTopologyRenderOptions? options = null) #Renders a Mermaid C4 document to static SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidC4Document
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
stringpublic 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
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
TopologyChartpublic 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
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
VisualArtifact