Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

MermaidBlockRendering

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) #
Returns: BlockLayoutBlock

Converts a Mermaid block document into a reusable block-layout visual block.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optionalposition: 1
public static Byte[] ToPng(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #
Returns: Byte[]

Renders a Mermaid block document to static PNG.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optionalposition: 1
public static String ToSvg(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #
Returns: String

Renders a Mermaid block document to static SVG.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optionalposition: 1
public static VisualArtifact ToVisualArtifact(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #
Returns: VisualArtifact

Wraps a Mermaid block document in a visual artifact envelope backed by a block-layout block.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optionalposition: 1