Table of Contents

Class GraphDefaults

Namespace
FlowGraph.Core
Assembly
FlowGraph.Core.dll

Default values used throughout the FlowGraph library. Centralizes constants to avoid duplication and ensure consistency.

public static class GraphDefaults
Inheritance
GraphDefaults
Inherited Members

Fields

ConnectionSnapDistance

Distance threshold for snapping connections to ports.

public const double ConnectionSnapDistance = 30

Field Value

double

EdgeArrowAngle

Arrow angle in radians (30 degrees / π/6). Controls the spread of arrow heads.

public const double EdgeArrowAngle = 0.5235987755982988

Field Value

double

EdgeArrowSize

Default arrow size for edge markers.

public const double EdgeArrowSize = 10

Field Value

double

EdgeHitAreaWidth

Width of the invisible hit area for edge click detection.

public const double EdgeHitAreaWidth = 15

Field Value

double

GridDotSize

Default size of grid dots.

public const double GridDotSize = 2

Field Value

double

GridSpacing

Default grid spacing for visual grid and snapping.

public const double GridSpacing = 20

Field Value

double

GroupBackgroundOpacity

Default opacity for group backgrounds.

public const double GroupBackgroundOpacity = 0.1

Field Value

double

GroupBorderRadius

Border radius for group corners.

public const double GroupBorderRadius = 8

Field Value

double

GroupHeaderHeight

Height of the group header area.

public const double GroupHeaderHeight = 30

Field Value

double

GroupMinHeight

Minimum height for empty groups.

public const double GroupMinHeight = 100

Field Value

double

GroupMinWidth

Minimum width for empty groups.

public const double GroupMinWidth = 200

Field Value

double

GroupPadding

Padding around children when calculating group bounds.

public const double GroupPadding = 20

Field Value

double

MaxBezierControlOffset

Maximum offset for bezier control points. Prevents curves from extending too far for distant nodes.

public const double MaxBezierControlOffset = 150

Field Value

double

MaxHistorySize

Default maximum number of commands in undo history.

public const int MaxHistorySize = 100

Field Value

int

MaxZoom

Maximum zoom level.

public const double MaxZoom = 3

Field Value

double

MinBezierControlOffset

Minimum offset for bezier control points. Ensures curves have visible curvature even for close nodes.

public const double MinBezierControlOffset = 50

Field Value

double

MinZoom

Minimum zoom level.

public const double MinZoom = 0.1

Field Value

double

NodeHeight

Default height for nodes when not explicitly specified.

public const double NodeHeight = 80

Field Value

double

NodeWidth

Default width for nodes when not explicitly specified.

public const double NodeWidth = 150

Field Value

double

PortSize

Default size for connection ports.

public const double PortSize = 12

Field Value

double

RoutingNodePadding

Padding around nodes for edge routing calculations.

public const double RoutingNodePadding = 10

Field Value

double

ZoomStep

Zoom increment per scroll step.

public const double ZoomStep = 0.1

Field Value

double