Skip to content
ChartForgeX
Class

MermaidBlockRendering

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
static

Provides ChartForgeX rendering adapters for parsed Mermaid block diagrams.

Inheritance

  • object
  • MermaidBlockRendering

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