Skip to content
ChartForgeX
Class

MermaidGitGraphDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a parsed Mermaid git graph diagram.

Inheritance

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 MermaidGitGraphDocument() #

Properties

public List<MermaidRawStatement> Statements { get; } #

Gets git graph statements retained in source order.

public List<MermaidGitGraphBranch> Branches { get; } #

Gets parsed git graph branches.

public List<MermaidGitGraphCommit> Commits { get; } #

Gets parsed git graph commits.

public List<MermaidRawStatement> RetainedStatements { get; } #

Gets configuration, theme, or unsupported statements retained for future support.

public string Direction { get; set; } #

Gets or sets the diagram orientation token from the header.

Extension 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