StellaOps.Workflow.Renderer.ElkSharp

Lays out workflow diagrams with the ElkSharp layered layout engine.

PackageStellaOps.Workflow.Renderer.ElkSharp
ComponentWorkflow
LicenceBUSL-1.1 (Workflow licence)
Package kindLibrary
Target frameworknet10.0

To add the package to a project, see Installing Stella Ops packages.

Namespaces

NamespaceTypes
StellaOps.Workflow.Renderer.ElkSharp2

StellaOps.Workflow.Renderer.ElkSharp namespace

TypeKindDescription
ElkSharpWorkflowRenderLayoutEngineclassLays out workflow render graphs with the ElkSharp layered layout (provider ElkSharp).
ElkSharpWorkflowRenderLayoutServiceCollectionExtensionsclassRegisters 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

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

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.