MermaidBlockDocument
ChartForgeX.Mermaid
Describes a parsed Mermaid block diagram.
Inheritance
- MermaidDocument
- MermaidBlockDocument
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.ParseBlock
Accepted by parameters 8
- Extension method MermaidBlockDocument.ToBlockLayoutBlock
- Extension method MermaidBlockDocument.ToPng
- Extension method MermaidBlockDocument.ToSvg
- Extension method MermaidBlockDocument.ToVisualArtifact
- Method MermaidBlockRendering.ToBlockLayoutBlock
- Method MermaidBlockRendering.ToPng
- Method MermaidBlockRendering.ToSvg
- Method MermaidBlockRendering.ToVisualArtifact
Constructors
public MermaidBlockDocument() #Inherited Methods
Properties
public List<MermaidRawStatement> Statements { get; } #Gets block statements retained in source order.
public List<MermaidBlockItem> Items { get; } #Gets parsed block items in layout order.
public List<MermaidRawStatement> StyleStatements { get; } #Gets style and class statements retained with their source locations.
public List<MermaidStyleDefinition> ClassDefinitions { get; } #Gets named styles in declaration order.
public bool AutoColumns { get; set; } #Gets or sets whether source explicitly selects automatic single-row columns.
public int? Columns { get; set; } #Gets or sets the optional column count.
public string? Title { get; set; } #Gets or sets the optional title statement.
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 BlockLayoutBlock ToBlockLayoutBlock(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #Converts a Mermaid block document into a reusable block-layout visual block.
Parameters
- document ChartForgeX.Mermaid.MermaidBlockDocument
- options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null
Returns
BlockLayoutBlockpublic static byte[] ToPng(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #Renders a Mermaid block document to static PNG.
Parameters
- document ChartForgeX.Mermaid.MermaidBlockDocument
- options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #Renders a Mermaid block document to static SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidBlockDocument
- options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null
Returns
stringpublic static VisualArtifact ToVisualArtifact(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #Wraps a Mermaid block document in a visual artifact envelope backed by a block-layout block.
Parameters
- document ChartForgeX.Mermaid.MermaidBlockDocument
- options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null
Returns
VisualArtifact