Class
MermaidBlockRendering
ChartForgeX.Mermaid
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
- 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