MermaidStateDocument
ChartForgeX.Mermaid
Describes a parsed Mermaid state diagram.
Inheritance
- MermaidDocument
- MermaidStateDocument
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
- Method MermaidParser.ParseState
Accepted by parameters 8
- Extension method MermaidStateDocument.ToPng
- Extension method MermaidStateDocument.ToSvg
- Extension method MermaidStateDocument.ToTopologyChart
- Extension method MermaidStateDocument.ToVisualArtifact
- Method MermaidTopologyRendering.ToPng
- Method MermaidTopologyRendering.ToSvg
- Method MermaidTopologyRendering.ToTopologyChart
- Method MermaidTopologyRendering.ToVisualArtifact
Constructors
public MermaidStateDocument() #Inherited Methods
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.
Inherited Properties
public MermaidSourceSpan HeaderSpan { get; set; } #public VisualAccessibility Accessibility { get; } #public MermaidSourceConfiguration Configuration { get; internal set; } #public List<MermaidDirective> Directives { get; } #public List<MermaidRawStatement> RawStatements { get; } #Extension Methods
public static byte[] ToPng(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #Renders a Mermaid state diagram to PNG.
Parameters
- document ChartForgeX.Mermaid.MermaidStateDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #Renders a Mermaid state diagram to SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidStateDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
stringpublic static TopologyChart ToTopologyChart(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #Converts a Mermaid state diagram to a topology chart.
Parameters
- document ChartForgeX.Mermaid.MermaidStateDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
TopologyChartpublic static VisualArtifact ToVisualArtifact(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #Wraps a Mermaid state diagram in a visual artifact envelope.
Parameters
- document ChartForgeX.Mermaid.MermaidStateDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
VisualArtifact