Skip to content

Commit 01f67af

Browse files
authored
Merge pull request #248 from hexawyz/connection-focus-outline
Improve connection focus visual
2 parents cfaa9b8 + 908dfc8 commit 01f67af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Nodify/Connections/BaseConnection.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,9 @@ protected override void OnRender(DrawingContext drawingContext)
10151015
if (drawPen != null)
10161016
{
10171017
var widenPen = new Pen(null, _baseConnection.StrokeThickness + drawPen.Thickness + _baseConnection.FocusVisualPadding * 2d);
1018-
drawingContext.DrawGeometry(null, drawPen, _baseConnection.DefiningGeometry.GetWidenedPathGeometry(widenPen));
1018+
var geometry = _baseConnection.DefiningGeometry;
1019+
var expandedGeometry = Geometry.Combine(geometry, geometry.GetWidenedPathGeometry(widenPen), GeometryCombineMode.Union, Transform.Identity);
1020+
drawingContext.DrawGeometry(null, drawPen, expandedGeometry.GetOutlinedPathGeometry());
10191021
}
10201022
}
10211023
}

0 commit comments

Comments
 (0)