Table of Contents

Class NodeRenderContext

Namespace
FlowGraph.Avalonia.Rendering.NodeRenderers
Assembly
FlowGraph.Avalonia.dll

Context information passed to node renderers.

TRANSFORM-BASED RENDERING:

Scale is always 1.0 - create visuals at logical size. The MatrixTransform on MainCanvas handles zoom. This enables O(1) zoom.

public class NodeRenderContext
Inheritance
NodeRenderContext
Inherited Members

Properties

InverseScale

Inverse scale for constant-size elements (1/ViewportZoom). Apply as ScaleTransform to elements that should stay same screen size.

public double InverseScale { get; }

Property Value

double

Scale

Logical scale for visual sizing. Always 1.0 in transform-based rendering.

public required double Scale { get; init; }

Property Value

double

Settings

public required FlowCanvasSettings Settings { get; init; }

Property Value

FlowCanvasSettings

Theme

public required ThemeResources Theme { get; init; }

Property Value

ThemeResources

ViewportZoom

Actual viewport zoom level. Use for calculations, not visual sizing.

public double ViewportZoom { get; init; }

Property Value

double