Class
MermaidJourneyDocument
ChartForgeX.Mermaid
Describes a parsed Mermaid user journey diagram.
Inheritance
- MermaidDocument
- MermaidJourneyDocument
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.ParseJourney
Accepted by parameters 8
- Extension method MermaidJourneyDocument.ToJourneyDiagramBlock
- Extension method MermaidJourneyDocument.ToPng
- Extension method MermaidJourneyDocument.ToSvg
- Extension method MermaidJourneyDocument.ToVisualArtifact
- Method MermaidJourneyRendering.ToJourneyDiagramBlock
- Method MermaidJourneyRendering.ToPng
- Method MermaidJourneyRendering.ToSvg
- Method MermaidJourneyRendering.ToVisualArtifact
Constructors
public MermaidJourneyDocument() #Inherited Methods
Properties
public List<MermaidRawStatement> Statements { get; } #Gets raw journey statements retained with source spans.
public string? Title { get; set; } #Gets or sets the optional Mermaid journey title.
public List<MermaidJourneySection> Sections { get; } #Gets journey sections in source order.
public List<MermaidJourneyTask> Tasks { get; } #Gets journey tasks in source order.
Inherited Properties
public MermaidSourceSpan HeaderSpan { get; set; } #Inherited from MermaidDocument
public VisualAccessibility Accessibility { get; } #Inherited from MermaidDocument
public MermaidSourceConfiguration Configuration { get; internal set; } #Inherited from MermaidDocument
public List<MermaidDirective> Directives { get; } #Inherited from MermaidDocument
public List<MermaidRawStatement> RawStatements { get; } #Inherited from MermaidDocument
Extension Methods
public static JourneyDiagramBlock ToJourneyDiagramBlock(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null) #Creates the native diagram, retaining authored ordering and section identity.
Parameters
- document ChartForgeX.Mermaid.MermaidJourneyDocument
- options ChartForgeX.Mermaid.MermaidJourneyRenderOptions? = null
Returns
JourneyDiagramBlockpublic static byte[] ToPng(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null) #Renders native PNG from the same composed scene.
Parameters
- document ChartForgeX.Mermaid.MermaidJourneyDocument
- options ChartForgeX.Mermaid.MermaidJourneyRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null) #Renders native static SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidJourneyDocument
- options ChartForgeX.Mermaid.MermaidJourneyRenderOptions? = null
Returns
stringpublic static VisualArtifact ToVisualArtifact(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null) #Wraps the native diagram in the shared bounded Mermaid artifact policy.
Parameters
- document ChartForgeX.Mermaid.MermaidJourneyDocument
- options ChartForgeX.Mermaid.MermaidJourneyRenderOptions? = null
Returns
VisualArtifact