MermaidGitGraphDocument
ChartForgeX.Mermaid
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
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 MermaidSourceSpan HeaderSpan { get; set; } #public VisualAccessibility Accessibility { get; } #public MermaidSourceConfiguration Configuration { get; internal set; } #public List<MermaidDirective> Directives { get; } #public List<MermaidRawStatement> RawStatements { get; } #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
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null
Returns
GitGraphBlockpublic static byte[] ToPng(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #Renders a Mermaid git graph document to static PNG.
Parameters
- document ChartForgeX.Mermaid.MermaidGitGraphDocument
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null
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
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null
Returns
stringpublic 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
- options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null
Returns
VisualArtifact