Table of Contents

Class GridRenderer

Namespace
FlowGraph.Avalonia
Assembly
FlowGraph.Avalonia.dll

Renders the background grid for the canvas using efficient drawing. Uses transform-based panning for O(1) pan performance.

public class GridRenderer
Inheritance
GridRenderer
Inherited Members

Constructors

GridRenderer(FlowCanvasSettings?)

public GridRenderer(FlowCanvasSettings? settings = null)

Parameters

settings FlowCanvasSettings

Methods

Render(Canvas, Size, ViewportState, IBrush)

Renders the grid onto the specified canvas.

public void Render(Canvas canvas, Size viewSize, ViewportState viewport, IBrush gridBrush)

Parameters

canvas Canvas
viewSize Size
viewport ViewportState
gridBrush IBrush

UpdateSettings(FlowCanvasSettings)

Updates the settings used by this renderer.

public void UpdateSettings(FlowCanvasSettings settings)

Parameters

settings FlowCanvasSettings

The new settings to use.