# MermaidRequirementRendering

Provides ChartForgeX rendering adapters for parsed Mermaid requirement diagrams.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidRequirementRendering.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementRendering.cs#L17)

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid requirement diagrams.

## Inheritance

- object
- MermaidRequirementRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static byte[] ToPng(MermaidRequirementDocument document, MermaidTopologyRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidrequirementdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidRequirementRendering.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementRendering.cs#L94)

Renders a Mermaid requirement document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidRequirementDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `byte[]` 

 `public static string ToSvg(MermaidRequirementDocument document, MermaidTopologyRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidrequirementdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidRequirementRendering.cs:91](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementRendering.cs#L91)

Renders a Mermaid requirement document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidRequirementDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `string` 

 `public static TopologyChart ToTopologyChart(MermaidRequirementDocument document, MermaidTopologyRenderOptions? options = null)` [#](#method-totopologychart-chartforgex-mermaid-mermaidrequirementdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidRequirementRendering.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementRendering.cs#L17)

Converts a Mermaid requirement document into a renderer-independent ChartForgeX topology chart.

Parameters

**document ChartForgeX.Mermaid.MermaidRequirementDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `TopologyChart` 

 `public static VisualArtifact ToVisualArtifact(MermaidRequirementDocument document, MermaidTopologyRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidrequirementdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidRequirementRendering.cs:76](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementRendering.cs#L76)

Wraps a Mermaid requirement document in a visual artifact envelope backed by a ChartForgeX topology chart.

Parameters

**document ChartForgeX.Mermaid.MermaidRequirementDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `VisualArtifact` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:097DB9CC5B01B05E1C0D1A832F9ECA6DD71814C31933E5E1C705A83080FD2FB2 -->
