MermaidClassDocument
ChartForgeX.Mermaid
Describes a parsed Mermaid class diagram.
Inheritance
- MermaidDocument
- MermaidClassDocument
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.ParseClass
Accepted by parameters 8
- Extension method MermaidClassDocument.ToPng
- Extension method MermaidClassDocument.ToSvg
- Extension method MermaidClassDocument.ToTopologyChart
- Extension method MermaidClassDocument.ToVisualArtifact
- Method MermaidTopologyRendering.ToPng
- Method MermaidTopologyRendering.ToSvg
- Method MermaidTopologyRendering.ToTopologyChart
- Method MermaidTopologyRendering.ToVisualArtifact
Constructors
public MermaidClassDocument() #Inherited Methods
Properties
public string? Direction { get; set; } #Gets or sets the authored whole-diagram direction.
public List<MermaidClassNode> Classes { get; } #Gets classes in source order.
public List<MermaidClassNamespace> Namespaces { get; } #Gets explicit and intermediate namespaces in first-declaration order.
public List<MermaidClassRelationship> Relationships { get; } #Gets class relationships in source order.
public List<MermaidClassStyleStatement> StyleStatements { get; } #Gets source-ordered styling and retained interaction statements.
public List<MermaidStyleDefinition> ClassDefinitions { get; } #Gets named style definitions in source order.
public List<MermaidDiagramNote> Notes { get; } #Gets visible floating or class-attached notes in source order.
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(MermaidClassDocument document, MermaidTopologyRenderOptions? options = null) #Renders a Mermaid class diagram to PNG.
Parameters
- document ChartForgeX.Mermaid.MermaidClassDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidClassDocument document, MermaidTopologyRenderOptions? options = null) #Renders a Mermaid class diagram to SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidClassDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
stringpublic static TopologyChart ToTopologyChart(MermaidClassDocument document, MermaidTopologyRenderOptions? options = null) #Converts a Mermaid class diagram to a topology chart.
Parameters
- document ChartForgeX.Mermaid.MermaidClassDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
TopologyChartpublic static VisualArtifact ToVisualArtifact(MermaidClassDocument document, MermaidTopologyRenderOptions? options = null) #Wraps a Mermaid class diagram in a visual artifact envelope.
Parameters
- document ChartForgeX.Mermaid.MermaidClassDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
VisualArtifact