API Reference
SequenceArtifact
Describes a reusable product-neutral sequence or interaction diagram artifact.
Inheritance
- Object
- SequenceArtifact
Usage
Explore 20 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 14
- Method MarkupSequenceParser.Parse
- Method MarkupSequenceParser.ParseBlock
- Extension method MermaidSequenceDocument.ToSequenceArtifact
- Method MermaidSequenceRendering.ToSequenceArtifact
- Method SequenceArtifact.AddActivation
- Method SequenceArtifact.AddBlock
- Method SequenceArtifact.AddBranch
- Method SequenceArtifact.AddMessage
- Method SequenceArtifact.AddNote
- Method SequenceArtifact.AddParticipant
- Method SequenceArtifact.Create
- Method SequenceArtifact.WithSize
- Method SequenceArtifact.WithSubtitle
- Method SequenceArtifact.WithTitle
Accepted by parameters 6
- Extension method SequenceArtifact.ToPng
- Extension method SequenceArtifact.ToSvg
- Extension method SequenceArtifact.ToVisualArtifact
- Method SequenceArtifactRendering.ToPng
- Method SequenceArtifactRendering.ToSvg
- Method SequenceArtifactRendering.ToVisualArtifact
Constructors
public SequenceArtifact() #Methods
public SequenceArtifact AddActivation(String participantId, Boolean active, Int32 stepIndex) #SequenceArtifactAdds a standalone participant activation or deactivation.
Parameters
- participantId System.String
- active System.Boolean
- stepIndex System.Int32
public SequenceArtifact AddBlock(SequenceArtifactBlockKind kind, String text, Int32 startStepIndex, Int32 endStepIndex, Boolean isEmpty = false, Int32 depth = 0) #SequenceArtifactAdds a block span.
Parameters
- kind ChartForgeX.VisualArtifacts.SequenceArtifactBlockKind
- text System.String
- startStepIndex System.Int32
- endStepIndex System.Int32
- isEmpty System.Boolean = false
- depth System.Int32 = 0
public SequenceArtifact AddBranch(SequenceArtifactBlockKind parentKind, String kind, String text, Int32 startStepIndex, Int32 endStepIndex, Int32 depth = 0, Boolean isEmpty = false) #SequenceArtifactAdds a branch span within a sequence block.
Parameters
- parentKind ChartForgeX.VisualArtifacts.SequenceArtifactBlockKind
- kind System.String
- text System.String
- startStepIndex System.Int32
- endStepIndex System.Int32
- depth System.Int32 = 0
- isEmpty System.Boolean = false
public SequenceArtifact AddMessage(String sourceId, String targetId, String? text = null, SequenceArtifactMessageLineStyle lineStyle = Solid, SequenceArtifactMessageKind kind = Call) #SequenceArtifactAdds a message.
Parameters
- sourceId System.String
- targetId System.String
- text System.String? = null
- lineStyle ChartForgeX.VisualArtifacts.SequenceArtifactMessageLineStyle = Solid
- kind ChartForgeX.VisualArtifacts.SequenceArtifactMessageKind = Call
public SequenceArtifact AddNote(SequenceArtifactNotePlacement placement, IEnumerable<String> participantIds, String text) #SequenceArtifactAdds a note.
Parameters
- placement ChartForgeX.VisualArtifacts.SequenceArtifactNotePlacement
- participantIds System.Collections.Generic.IEnumerable<System.String>
- text System.String
public SequenceArtifact AddParticipant(String id, String? label = null, SequenceArtifactParticipantKind kind = Participant) #SequenceArtifactAdds or updates a participant.
Parameters
- id System.String
- label System.String? = null
- kind ChartForgeX.VisualArtifacts.SequenceArtifactParticipantKind = Participant
public static SequenceArtifact Create(String id) #SequenceArtifactCreates a sequence artifact.
Parameters
- id System.String
public PreparedVisual Prepare(VisualRenderContext context) #PreparedVisualPrepares measured participants, messages, activations, notes and interaction fragments into a detached native scene.
Parameters
- context ChartForgeX.Rendering.VisualRenderContext
public SequenceArtifact WithSize(Double width, Double height) #SequenceArtifactSets the natural preview size.
Parameters
- width System.Double
- height System.Double
public SequenceArtifact WithSubtitle(String subtitle) #SequenceArtifactSets the subtitle.
Parameters
- subtitle System.String
public SequenceArtifact WithTitle(String title) #SequenceArtifactSets the title.
Parameters
- title System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public VisualAccessibility Accessibility { get; } #Gets accessible naming for static sequence previews.
public String Id { get; set; } #Gets or sets a stable sequence artifact id.
public String Title { get; set; } #Gets or sets the sequence title.
public String Subtitle { get; set; } #Gets or sets the sequence subtitle.
public Double Width { get; set; } #Gets or sets the natural preview width.
public Double Height { get; set; } #Gets or sets the natural preview height.
public Double Padding { get; set; } #Gets or sets the preview padding.
public VisualArtifactExportFormat ExportFormats { get; set; } #Gets or sets supported static export formats.
public IReadOnlyList<SequenceArtifactParticipant> Participants { get; } #Gets participants in display order.
public IReadOnlyList<SequenceArtifactMessage> Messages { get; } #Gets messages in chronological order.
public IReadOnlyList<SequenceArtifactActivation> Activations { get; } #Gets standalone activation changes in source order.
public IReadOnlyList<SequenceArtifactNote> Notes { get; } #Gets notes in chronological order.
public IReadOnlyList<SequenceArtifactBlock> Blocks { get; } #Gets block spans.
public IReadOnlyList<SequenceArtifactBranch> Branches { get; } #Gets branch spans within alternative, parallel, and critical blocks.
public Dictionary<String, String> Metadata { get; } #Gets artifact metadata for host adapters.
Extension Methods
public static Byte[] ToPng(SequenceArtifact sequence) #Byte[]Renders the same native measured sequence scene directly to PNG.
Parameters
- sequence ChartForgeX.VisualArtifacts.SequenceArtifact
- The source model; its width, height and padding supply the default request.
Returns
PNG bytes using the shared raster defaults.
public static String ToSvg(SequenceArtifact sequence) #StringRenders a sequence to shared SVG with measured content expansion beyond its authored minimum size.
Parameters
- sequence ChartForgeX.VisualArtifacts.SequenceArtifact
- The source model; its width, height and padding supply the default request.
Returns
Script-free SVG from a native prepared scene.
public static VisualArtifact ToVisualArtifact(SequenceArtifact sequence, VisualArtifactSourceLanguage sourceLanguage = Native) #VisualArtifactWraps authored sequence semantics without preparing a preview or changing the source model.
Parameters
- sequence ChartForgeX.VisualArtifacts.SequenceArtifact
- The sequence source model.
- sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native
- The source language that produced the model.
Returns
A lazy source envelope; prepare explicitly before ToArtifact when a detached display snapshot is required.