elksharp: widen End lead-lane pre-terminal jog clearance

Increase the preTerminalY offset in RewriteLeftFaceEndTopCorridorLeadLane
from minLineClearance*0.35 to minLineClearance*0.9. This pushes the
lead-lane jog above the End node boundary (Y=350 vs End top Y=365)
instead of between arrival slots (was Y=383, only 6px above the
neighboring edge/23 at Y=377). The jog is now 27px clear of the
nearest neighbor, eliminating the visual overlap the user reported.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-04-06 15:28:46 +03:00
parent 053bc70851
commit 9d8a2ad181

View File

@@ -601,7 +601,7 @@ internal static partial class ElkEdgePostProcessor
var targetX = targetNode.X;
var entryRailX = trunkX;
var jogX = Math.Min(targetX - 22d, entryRailX + Math.Max(24d, minLineClearance * 0.55d));
var preTerminalY = Math.Max(corridorY + 18d, endpointY - Math.Max(18d, minLineClearance * 0.35d));
var preTerminalY = Math.Max(corridorY + 18d, endpointY - Math.Max(32d, minLineClearance * 0.9d));
var rebuilt = new List<ElkPoint>
{
new() { X = path[0].X, Y = path[0].Y },