Skip to content
ChartForgeX
Class

MermaidPacketDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a parsed Mermaid packet 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 MermaidPacketDocument() #

Properties

public List<MermaidRawStatement> Statements { get; } #

Gets packet statements retained in source order.

public List<MermaidPacketField> Fields { get; } #

Gets parsed packet fields.

public string? Title { get; set; } #

Gets or sets the optional packet title statement.

Extension Methods

public static PacketLayoutBlock ToPacketLayoutBlock(MermaidPacketDocument document, MermaidPacketRenderOptions? options = null) #

Converts a Mermaid packet document into a reusable packet-layout visual block.

Parameters

document ChartForgeX.Mermaid.MermaidPacketDocument required
options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional
public static byte[] ToPng(MermaidPacketDocument document, MermaidPacketRenderOptions? options = null) #

Renders a Mermaid packet document to static PNG.

Parameters

document ChartForgeX.Mermaid.MermaidPacketDocument required
options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional

Returns

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

Renders a Mermaid packet document to static SVG.

Parameters

document ChartForgeX.Mermaid.MermaidPacketDocument required
options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional

Returns

string
public static VisualArtifact ToVisualArtifact(MermaidPacketDocument document, MermaidPacketRenderOptions? options = null) #

Wraps a Mermaid packet document in a visual artifact envelope backed by a packet-layout block.

Parameters

document ChartForgeX.Mermaid.MermaidPacketDocument required
options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional