API Reference
MermaidGitGraphDocument
Describes a parsed Mermaid git graph diagram.
Inheritance
- MermaidDocument
- MermaidGitGraphDocument
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
- Method MermaidParser.ParseGitGraph
Accepted by parameters 8
- Extension method MermaidGitGraphDocument.ToGitGraphBlock
- Extension method MermaidGitGraphDocument.ToPng
- Extension method MermaidGitGraphDocument.ToSvg
- Extension method MermaidGitGraphDocument.ToVisualArtifact
- Method MermaidGitGraphRendering.ToGitGraphBlock
- Method MermaidGitGraphRendering.ToPng
- Method MermaidGitGraphRendering.ToSvg
- Method MermaidGitGraphRendering.ToVisualArtifact
Constructors
public MermaidGitGraphDocument() #Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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.
Inherited Properties
public MermaidDiagramKind Kind { get; set; } #public Boolean IsDiagnosticOnly { get; } #public String SourceText { get; set; } #public MermaidSourceSpan HeaderSpan { get; set; } #public String Header { get; set; } #public String? FrontMatter { get; set; } #public VisualAccessibility Accessibility { get; } #public String? Theme { get; set; } #public List<MermaidDirective> Directives { get; } #public List<MermaidRawStatement> RawStatements { get; } #Extension Methods
public static GitGraphBlock ToGitGraphBlock(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #GitGraphBlockConverts a Mermaid git graph document into a reusable git graph visual block.
Parameters
- document ChartForgeX.Mermaid.MermaidGitGraphDocument
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null
public static Byte[] ToPng(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #Byte[]Renders a Mermaid git graph document to static PNG.
Parameters
- document ChartForgeX.Mermaid.MermaidGitGraphDocument
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null
public static String ToSvg(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #StringRenders a Mermaid git graph document to static SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidGitGraphDocument
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null
public static VisualArtifact ToVisualArtifact(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #VisualArtifactWraps a Mermaid git graph document in a visual artifact envelope backed by a git graph block.
Parameters
- document ChartForgeX.Mermaid.MermaidGitGraphDocument
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null