Skip to content
ChartForgeX
Class

MermaidBlockDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a parsed Mermaid block 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 MermaidBlockDocument() #

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<MermaidBlockEdge> Edges { get; } #

Gets parsed block edges.

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.

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 required
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optional
public static byte[] ToPng(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #

Renders a Mermaid block document to static PNG.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument required
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optional

Returns

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

Renders a Mermaid block document to static SVG.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument required
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optional

Returns

string
public 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 required
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optional