Table of Contents

Class EdgeRenderContext

Namespace
FlowGraph.Avalonia.Rendering.EdgeRenderers
Assembly
FlowGraph.Avalonia.dll

Context information passed to edge renderers. Contains all the information needed to render an edge.

public class EdgeRenderContext
Inheritance
EdgeRenderContext
Inherited Members

Properties

EndPoint

End point in screen coordinates.

public required Point EndPoint { get; init; }

Property Value

Point

Graph

The graph containing the edge.

public required Graph Graph { get; init; }

Property Value

Graph

Scale

Current zoom scale factor.

public required double Scale { get; init; }

Property Value

double

Settings

Canvas settings.

public required FlowCanvasSettings Settings { get; init; }

Property Value

FlowCanvasSettings

SourceNode

The source node of the edge.

public required Node SourceNode { get; init; }

Property Value

Node

StartPoint

Start point in screen coordinates.

public required Point StartPoint { get; init; }

Property Value

Point

TargetNode

The target node of the edge.

public required Node TargetNode { get; init; }

Property Value

Node

Theme

Theme resources for colors and brushes.

public required ThemeResources Theme { get; init; }

Property Value

ThemeResources

Waypoints

Optional routed waypoints in screen coordinates. Excludes the start and end points.

public IReadOnlyList<Point>? Waypoints { get; init; }

Property Value

IReadOnlyList<Point>