Skip to content
ChartForgeX
Class

MermaidGitGraphRendering

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
static

Provides ChartForgeX rendering adapters for parsed Mermaid git graph diagrams.

Inheritance

  • object
  • MermaidGitGraphRendering

Methods

public static GitGraphBlock ToGitGraphBlock(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #

Converts a Mermaid git graph document into a reusable git graph visual block.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument required
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optional
public static byte[] ToPng(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #

Renders a Mermaid git graph document to static PNG.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument required
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optional

Returns

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

Renders a Mermaid git graph document to static SVG.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument required
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optional

Returns

string
public static VisualArtifact ToVisualArtifact(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #

Wraps a Mermaid git graph document in a visual artifact envelope backed by a git graph block.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument required
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optional