From 9d8a2ad18196d66d592ae2cb43f06e36b39b43e2 Mon Sep 17 00:00:00 2001 From: master <> Date: Mon, 6 Apr 2026 15:28:46 +0300 Subject: [PATCH] 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) --- .../ElkEdgePostProcessor.EndTerminalFamilies.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__Libraries/StellaOps.ElkSharp/ElkEdgePostProcessor.EndTerminalFamilies.cs b/src/__Libraries/StellaOps.ElkSharp/ElkEdgePostProcessor.EndTerminalFamilies.cs index 4b6b66766..e90eb1bfc 100644 --- a/src/__Libraries/StellaOps.ElkSharp/ElkEdgePostProcessor.EndTerminalFamilies.cs +++ b/src/__Libraries/StellaOps.ElkSharp/ElkEdgePostProcessor.EndTerminalFamilies.cs @@ -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 { new() { X = path[0].X, Y = path[0].Y },