Class
MermaidTimelineDocument
ChartForgeX.Mermaid
Describes a parsed Mermaid timeline document.
Inheritance
- MermaidDocument
- MermaidTimelineDocument
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.ParseTimeline
Accepted by parameters 8
- Extension method MermaidTimelineDocument.ToPng
- Extension method MermaidTimelineDocument.ToSvg
- Extension method MermaidTimelineDocument.ToTimelineDiagramBlock
- Extension method MermaidTimelineDocument.ToVisualArtifact
- Method MermaidTimelineRendering.ToPng
- Method MermaidTimelineRendering.ToSvg
- Method MermaidTimelineRendering.ToTimelineDiagramBlock
- Method MermaidTimelineRendering.ToVisualArtifact
Constructors
public MermaidTimelineDocument() #Inherited Methods
Properties
public List<MermaidRawStatement> Statements { get; } #Gets raw timeline statements retained with source spans.
public string? Title { get; set; } #Gets or sets the optional Mermaid timeline title.
public MermaidTimelineDirection Direction { get; set; } #Gets or sets the declared timeline direction.
public List<MermaidTimelineSection> Sections { get; } #Gets timeline sections in source order.
public List<MermaidTimelinePeriod> Periods { get; } #Gets timeline periods 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 byte[] ToPng(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null) #Renders native PNG from the same composed scene.
Parameters
- document ChartForgeX.Mermaid.MermaidTimelineDocument
- options ChartForgeX.Mermaid.MermaidTimelineRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null) #Renders native static SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidTimelineDocument
- options ChartForgeX.Mermaid.MermaidTimelineRenderOptions? = null
Returns
stringpublic static TimelineDiagramBlock ToTimelineDiagramBlock(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null) #Creates the native diagram, retaining authored ordering and section identity.
Parameters
- document ChartForgeX.Mermaid.MermaidTimelineDocument
- options ChartForgeX.Mermaid.MermaidTimelineRenderOptions? = null
Returns
TimelineDiagramBlockpublic static VisualArtifact ToVisualArtifact(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null) #Wraps the native diagram in the shared bounded Mermaid artifact policy.
Parameters
- document ChartForgeX.Mermaid.MermaidTimelineDocument
- options ChartForgeX.Mermaid.MermaidTimelineRenderOptions? = null
Returns
VisualArtifact