# MermaidJourneyRendering

Maps parsed Mermaid Journey notation to its reusable native diagram.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidJourneyRendering.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyRendering.cs#L14)

**Modifiers**

static

Maps parsed Mermaid Journey notation to its reusable native diagram.

## Inheritance

- object
- MermaidJourneyRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static JourneyDiagramBlock ToJourneyDiagramBlock(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#method-tojourneydiagramblock-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

[MermaidJourneyRendering.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyRendering.cs#L14)

Creates the native diagram, retaining authored ordering and section identity.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

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

Returns

 `JourneyDiagramBlock` 

 `public static byte[] ToPng(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

[MermaidJourneyRendering.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyRendering.cs#L49)

Renders native PNG from the same composed scene.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

[MermaidJourneyRendering.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyRendering.cs#L47)

Renders native static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

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

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

[MermaidJourneyRendering.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyRendering.cs#L30)

Wraps the native diagram in the shared bounded Mermaid artifact policy.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

**options ChartForgeX.Mermaid.MermaidJourneyRenderOptions? = 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:54EB9CC2F14427B9504E56AECE816B78C9A9771BF880BF139345845456BB98EF -->
