StellaOps.Workflow.Renderer.ElkSharp
Lays out workflow diagrams with the ElkSharp layered layout engine.
| Package | StellaOps.Workflow.Renderer.ElkSharp |
| Component | Workflow |
| Licence | BUSL-1.1 (Workflow licence) |
| Package kind | Library |
| Target framework | net10.0 |
To add the package to a project, see Installing Stella Ops packages.
Namespaces
| Namespace | Types |
|---|---|
StellaOps.Workflow.Renderer.ElkSharp | 2 |
StellaOps.Workflow.Renderer.ElkSharp namespace
| Type | Kind | Description |
|---|---|---|
ElkSharpWorkflowRenderLayoutEngine | class | Lays out workflow render graphs with the ElkSharp layered layout (provider ElkSharp). |
ElkSharpWorkflowRenderLayoutServiceCollectionExtensions | class | Registers the ElkSharp layout engine of workflow diagrams. |
ElkSharpWorkflowRenderLayoutEngine class
public sealed class ElkSharpWorkflowRenderLayoutEngine : INamedWorkflowRenderGraphLayoutEngine
Lays out workflow render graphs with the ElkSharp layered layout (provider ElkSharp).
ElkSharpWorkflowRenderLayoutEngine(IElkLayoutEngine) constructor
public ElkSharpWorkflowRenderLayoutEngine(IElkLayoutEngine? elkLayoutEngine = null)
Creates the engine.
Parameters
elkLayoutEngine: The ElkSharp layout engine; the layered engine when not set.
ProviderName property
public string ProviderName { get; }
The provider name that selects the engine, compared ignoring case.
LayoutAsync(WorkflowRenderGraph, WorkflowRenderLayoutRequest, CancellationToken) method
public Task<WorkflowRenderLayoutResult> LayoutAsync(WorkflowRenderGraph graph, WorkflowRenderLayoutRequest? request = null, CancellationToken cancellationToken = default)
Positions the nodes and routes the edges of a render graph.
Parameters
graph: The render graph.request: The layout settings; the defaults when not set.cancellationToken: Cancels the operation.
Returns
The positioned nodes and routed edges.
ElkSharpWorkflowRenderLayoutServiceCollectionExtensions class
public static class ElkSharpWorkflowRenderLayoutServiceCollectionExtensions
Registers the ElkSharp layout engine of workflow diagrams.
AddWorkflowElkSharpRenderLayout(IServiceCollection) extension method
public static IServiceCollection AddWorkflowElkSharpRenderLayout(this IServiceCollection services)
Registers ElkSharpWorkflowRenderLayoutEngineas a named render layout engine; the engine’s layout resolver picks it when WorkflowRendering:LayoutProvider names it.
