Class GraphDefaults
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
EdgeArrowAngle
Arrow angle in radians (30 degrees / π/6). Controls the spread of arrow heads.
public const double EdgeArrowAngle = 0.5235987755982988
Field Value
EdgeArrowSize
Default arrow size for edge markers.
public const double EdgeArrowSize = 10
Field Value
EdgeHitAreaWidth
Width of the invisible hit area for edge click detection.
public const double EdgeHitAreaWidth = 15
Field Value
GridDotSize
Default size of grid dots.
public const double GridDotSize = 2
Field Value
GridSpacing
Default grid spacing for visual grid and snapping.
public const double GridSpacing = 20
Field Value
GroupBackgroundOpacity
Default opacity for group backgrounds.
public const double GroupBackgroundOpacity = 0.1
Field Value
GroupBorderRadius
Border radius for group corners.
public const double GroupBorderRadius = 8
Field Value
GroupHeaderHeight
Height of the group header area.
public const double GroupHeaderHeight = 30
Field Value
GroupMinHeight
Minimum height for empty groups.
public const double GroupMinHeight = 100
Field Value
GroupMinWidth
Minimum width for empty groups.
public const double GroupMinWidth = 200
Field Value
GroupPadding
Padding around children when calculating group bounds.
public const double GroupPadding = 20
Field Value
MaxBezierControlOffset
Maximum offset for bezier control points. Prevents curves from extending too far for distant nodes.
public const double MaxBezierControlOffset = 150
Field Value
MaxHistorySize
Default maximum number of commands in undo history.
public const int MaxHistorySize = 100
Field Value
MaxZoom
Maximum zoom level.
public const double MaxZoom = 3
Field Value
MinBezierControlOffset
Minimum offset for bezier control points. Ensures curves have visible curvature even for close nodes.
public const double MinBezierControlOffset = 50
Field Value
MinZoom
Minimum zoom level.
public const double MinZoom = 0.1
Field Value
NodeHeight
Default height for nodes when not explicitly specified.
public const double NodeHeight = 80
Field Value
NodeWidth
Default width for nodes when not explicitly specified.
public const double NodeWidth = 150
Field Value
PortSize
Default size for connection ports.
public const double PortSize = 12
Field Value
RoutingNodePadding
Padding around nodes for edge routing calculations.
public const double RoutingNodePadding = 10
Field Value
ZoomStep
Zoom increment per scroll step.
public const double ZoomStep = 0.1