StellaOps.Workflow.Renderer.ElkSharp

Lays out workflow diagrams with the ElkSharp layered layout engine.

library
Component
Workflow
Licence
BUSL-1.1 (Workflow licence)
Target framework
net10.0
Latest release
1.0.1-20261118T121708Z

Install

dotnet add package StellaOps.Workflow.Renderer.ElkSharp --version 1.0.1-20261118T121708Z

Namespaces

NamespaceTypes
StellaOps.Workflow.Renderer.ElkSharp2

namespace StellaOps.Workflow.Renderer.ElkSharp

TypeKindDescription
ElkSharpWorkflowRenderLayoutEngineclassLays out workflow render graphs with the ElkSharp layered layout (provider ElkSharp).
ElkSharpWorkflowRenderLayoutServiceCollectionExtensionsclassRegisters the ElkSharp layout engine of workflow diagrams.

class ElkSharpWorkflowRenderLayoutEngine

public sealed class ElkSharpWorkflowRenderLayoutEngine : INamedWorkflowRenderGraphLayoutEngine

Lays out workflow render graphs with the ElkSharp layered layout (provider ElkSharp).

Members

MemberKindSummary
ElkSharpWorkflowRenderLayoutEngine(IElkLayoutEngine)constructorCreates the engine.
ProviderNamepropertyThe provider name that selects the engine, compared ignoring case.
LayoutAsync(WorkflowRenderGraph, WorkflowRenderLayoutRequest, CancellationToken)methodPositions the nodes and routes the edges of a render graph.

constructor ElkSharpWorkflowRenderLayoutEngine(IElkLayoutEngine) #

public ElkSharpWorkflowRenderLayoutEngine(IElkLayoutEngine? elkLayoutEngine = null)

Creates the engine.

Parameters

  • elkLayoutEngine: The ElkSharp layout engine; the layered engine when not set.

property ProviderName #

public string ProviderName { get; }

The provider name that selects the engine, compared ignoring case.

method LayoutAsync(WorkflowRenderGraph, WorkflowRenderLayoutRequest, CancellationToken) #

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.

class ElkSharpWorkflowRenderLayoutServiceCollectionExtensions

public static class ElkSharpWorkflowRenderLayoutServiceCollectionExtensions

Registers the ElkSharp layout engine of workflow diagrams.

Members

MemberKindSummary
AddWorkflowElkSharpRenderLayout(IServiceCollection)extension methodRegisters ElkSharpWorkflowRenderLayoutEngineas a named render layout engine; the engine’s layout resolver picks it when WorkflowRendering:LayoutProvider names it.

extension method AddWorkflowElkSharpRenderLayout(IServiceCollection) #

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.