API Reference
FlowArtifact
Represents a product-neutral workflow or process flow artifact.
Inheritance
- Object
- FlowArtifact
Usage
Explore 21 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 11
- Method MarkupFlowParser.Parse
- Method MarkupFlowParser.ParseBlock
- Method FlowArtifact.AddConnector
- Method FlowArtifact.AddLane
- Method FlowArtifact.AddStep
- Method FlowArtifact.ConfigureConnector
- Method FlowArtifact.ConfigureStep
- Method FlowArtifact.Create
- Method FlowArtifact.WithSize
- Method FlowArtifact.WithSubtitle
- Method FlowArtifact.WithTitle
Accepted by parameters 10
- Extension method FlowArtifact.ToHtmlPage
- Extension method FlowArtifact.ToPng
- Extension method FlowArtifact.ToSvg
- Extension method FlowArtifact.ToTopologyChart
- Extension method FlowArtifact.ToVisualArtifact
- Method FlowArtifactRendering.ToHtmlPage
- Method FlowArtifactRendering.ToPng
- Method FlowArtifactRendering.ToSvg
- Method FlowArtifactRendering.ToTopologyChart
- Method FlowArtifactRendering.ToVisualArtifact
Constructors
public FlowArtifact() #Methods
public FlowArtifact AddConnector(String sourceId, String targetId, String label = "", FlowArtifactConnectorKind kind = Flow, VisualLinkDirection direction = Forward, VisualStatus status = None, String? color = null) #FlowArtifactAdds a flow connector.
Parameters
- sourceId System.String
- targetId System.String
- label System.String = ""
- kind ChartForgeX.VisualArtifacts.FlowArtifactConnectorKind = Flow
- direction ChartForgeX.Primitives.VisualLinkDirection = Forward
- status ChartForgeX.VisualBlocks.VisualStatus = None
- color System.String? = null
public FlowArtifact AddLane(String id, String label, VisualStatus status = None, String? color = null) #FlowArtifactAdds a flow lane.
Parameters
- id System.String
- label System.String
- status ChartForgeX.VisualBlocks.VisualStatus = None
- color System.String? = null
public FlowArtifact AddStep(String id, String label, FlowArtifactStepKind kind = Step, String? laneId = null, VisualStatus status = None) #FlowArtifactAdds a flow step.
Parameters
- id System.String
- label System.String
- kind ChartForgeX.VisualArtifacts.FlowArtifactStepKind = Step
- laneId System.String? = null
- status ChartForgeX.VisualBlocks.VisualStatus = None
public FlowArtifact ConfigureConnector(Int32 connectorIndex, Action<FlowArtifactConnector> configure) #FlowArtifactConfigures one existing connector.
Parameters
- connectorIndex System.Int32
- configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactConnector>
public FlowArtifact ConfigureStep(String id, Action<FlowArtifactStep> configure) #FlowArtifactConfigures one existing step.
Parameters
- id System.String
- configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactStep>
public static FlowArtifact Create(String id) #FlowArtifactCreates a new flow artifact.
Parameters
- id System.String
public PreparedVisual Prepare(VisualRenderContext context) #PreparedVisualPrepares a flow through the shared topology compiler while retaining native flow semantics.
Parameters
- context ChartForgeX.Rendering.VisualRenderContext
- Common size, frame, theme and typography.
Returns
A detached static scene and resolved native flow geometry.
public Boolean SupportsExport(VisualArtifactExportFormat format) #BooleanReturns true when the flow declares the requested static export format.
Parameters
- format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
public FlowArtifact WithSize(Double width, Double height, Double padding = 24) #FlowArtifactSets the static preview size.
Parameters
- width System.Double
- height System.Double
- padding System.Double = 24
public FlowArtifact WithSubtitle(String subtitle) #FlowArtifactSets the flow subtitle.
Parameters
- subtitle System.String
public FlowArtifact WithTitle(String title) #FlowArtifactSets the flow title.
Parameters
- title System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public String Id { get; set; } #Gets or sets a stable flow identifier.
public String Title { get; set; } #Gets or sets the flow title.
public String Subtitle { get; set; } #Gets or sets the flow subtitle.
public FlowArtifactLayoutMode LayoutMode { get; set; } #Gets or sets the deterministic layout mode.
public FlowArtifactDirection Direction { get; set; } #Gets or sets the deterministic layout direction.
public Double Width { get; set; } #Gets or sets the static preview width.
public Double Height { get; set; } #Gets or sets the static preview height.
public Double Padding { get; set; } #Gets or sets the static preview padding.
public IReadOnlyList<FlowArtifactLane> Lanes { get; } #Gets declared flow lanes.
public IReadOnlyList<FlowArtifactStep> Steps { get; } #Gets declared flow steps.
public IReadOnlyList<FlowArtifactConnector> Connectors { get; } #Gets declared flow connectors.
public VisualArtifactExportFormat ExportFormats { get; set; } #Gets or sets static export formats declared by this artifact.
public Dictionary<String, String> Metadata { get; } #Gets metadata for host adapters and exporters.
Extension Methods
public static String ToHtmlPage(FlowArtifact flow) #StringRenders a flow artifact static preview to a standalone HTML page.
Parameters
- flow ChartForgeX.VisualArtifacts.FlowArtifact
- The flow artifact.
Returns
HTML markup.
public static Byte[] ToPng(FlowArtifact flow) #Byte[]Renders a flow artifact static preview to PNG.
Parameters
- flow ChartForgeX.VisualArtifacts.FlowArtifact
- The flow artifact.
Returns
PNG bytes.
public static String ToSvg(FlowArtifact flow) #StringRenders a flow artifact static preview to SVG.
Parameters
- flow ChartForgeX.VisualArtifacts.FlowArtifact
- The flow artifact.
Returns
SVG markup.
public static TopologyChart ToTopologyChart(FlowArtifact flow) #TopologyChartConverts a flow artifact into a topology chart for deterministic static previews.
Parameters
- flow ChartForgeX.VisualArtifacts.FlowArtifact
- The flow artifact.
Returns
A topology chart preview model.
public static VisualArtifact ToVisualArtifact(FlowArtifact flow, VisualArtifactSourceLanguage sourceLanguage = Native) #VisualArtifactWraps a flow artifact in a product-neutral visual artifact envelope.
Parameters
- flow ChartForgeX.VisualArtifacts.FlowArtifact
- The flow artifact.
- sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native
- The source language that produced the flow.
Returns
A visual artifact envelope.