From dfad14e6ecb3338a0736c99fdf2fbe51b180b5c5 Mon Sep 17 00:00:00 2001 From: mkonicek Date: Wed, 9 Mar 2011 23:49:55 +0100 Subject: [PATCH] Object graph - Arrow tip ends at node edge. --- .../Debugger.AddIn/Visualizers/Graph/Drawing/GraphDrawer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Drawing/GraphDrawer.cs b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Drawing/GraphDrawer.cs index 6e0ad7170e..fd3fef5285 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Drawing/GraphDrawer.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Drawing/GraphDrawer.cs @@ -245,13 +245,13 @@ namespace Debugger.AddIn.Visualizers.Graph Vector tangent = splineEndPoint - splineEndHandlePoint; tangent.Normalize(); tangent = tangent * 20; - Point basePoint = splineEndPoint - 0.2 * tangent; + Point basePoint = splineEndPoint - 0.4 * tangent; PathFigure arrowFigure = new PathFigure(); arrowFigure.IsClosed = true; arrowFigure.IsFilled = true; - arrowFigure.StartPoint = basePoint + tangent * 0.4; // arrow tip + arrowFigure.StartPoint = splineEndPoint; // arrow tip Vector tangent2 = rotate90(tangent); arrowFigure.Segments.Add(new LineSegment(basePoint + tangent2 * 0.15, true)); arrowFigure.Segments.Add(new LineSegment(basePoint - tangent2 * 0.15, true));