Skip to content
ChartForgeX
Class

MermaidStateDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a parsed Mermaid state diagram.

Inheritance

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 8

Constructors

public MermaidStateDocument() #

Properties

public string? Direction { get; set; } #

Gets or sets the optional diagram direction statement.

public List<MermaidStateNode> States { get; } #

Gets states in source order.

public List<MermaidStateTransition> Transitions { get; } #

Gets transitions in source order.

public List<MermaidStateStatement> Statements { get; } #

Gets retained non-rendered state statements.

public List<MermaidStyleDefinition> ClassDefinitions { get; } #

Gets named paint definitions in source order, including retained unsupported declarations.

public List<MermaidRawStatement> StyleStatements { get; } #

Gets explicit class and style statements at their original source locations.

public List<MermaidDiagramNote> Notes { get; } #

Gets visible attached and independently named floating notes in source order.

public List<MermaidStateRegion> Regions { get; } #

Gets the ordered regions of composite states, including empty regions.

Extension Methods

public static byte[] ToPng(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #

Renders a Mermaid state diagram to PNG.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

byte[]
public static string ToSvg(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #

Renders a Mermaid state diagram to SVG.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

string
public static TopologyChart ToTopologyChart(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #

Converts a Mermaid state diagram to a topology chart.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional
public static VisualArtifact ToVisualArtifact(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #

Wraps a Mermaid state diagram in a visual artifact envelope.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional