MermaidTreemapDocument
ChartForgeX.Mermaid
Describes a parsed Mermaid treemap diagram.
Inheritance
- MermaidDocument
- MermaidTreemapDocument
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.ParseTreemap
Accepted by parameters 8
- Extension method MermaidTreemapDocument.ToChart
- Extension method MermaidTreemapDocument.ToPng
- Extension method MermaidTreemapDocument.ToSvg
- Extension method MermaidTreemapDocument.ToVisualArtifact
- Method MermaidTreemapRendering.ToChart
- Method MermaidTreemapRendering.ToPng
- Method MermaidTreemapRendering.ToSvg
- Method MermaidTreemapRendering.ToVisualArtifact
Constructors
public MermaidTreemapDocument() #Inherited Methods
Properties
public List<MermaidRawStatement> Statements { get; } #Gets retained non-empty treemap statements.
public List<MermaidStyleDefinition> ClassDefinitions { get; } #Gets named native style definitions in source order, including retained unsupported declarations.
public List<MermaidTreemapNode> Roots { get; } #Gets the top-level treemap nodes.
public List<MermaidTreemapNode> Nodes { get; } #Gets all treemap nodes 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 Chart ToChart(MermaidTreemapDocument document, MermaidTreemapRenderOptions? options = null) #Converts a Mermaid treemap document into a renderer-independent ChartForgeX chart.
Parameters
- document ChartForgeX.Mermaid.MermaidTreemapDocument
- options ChartForgeX.Mermaid.MermaidTreemapRenderOptions? = null
Returns
Chartpublic static byte[] ToPng(MermaidTreemapDocument document, MermaidTreemapRenderOptions? options = null) #Renders a Mermaid treemap document to static PNG through ChartForgeX chart rendering.
Parameters
- document ChartForgeX.Mermaid.MermaidTreemapDocument
- options ChartForgeX.Mermaid.MermaidTreemapRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidTreemapDocument document, MermaidTreemapRenderOptions? options = null) #Renders a Mermaid treemap document to static SVG through ChartForgeX chart rendering.
Parameters
- document ChartForgeX.Mermaid.MermaidTreemapDocument
- options ChartForgeX.Mermaid.MermaidTreemapRenderOptions? = null
Returns
stringpublic static VisualArtifact ToVisualArtifact(MermaidTreemapDocument document, MermaidTreemapRenderOptions? options = null) #Wraps a Mermaid treemap document in a visual artifact envelope backed by a ChartForgeX chart.
Parameters
- document ChartForgeX.Mermaid.MermaidTreemapDocument
- options ChartForgeX.Mermaid.MermaidTreemapRenderOptions? = null
Returns
VisualArtifact