From df39237829fbc733f27099f4ecb0c3b1172566b4 Mon Sep 17 00:00:00 2001 From: que01 Date: Fri, 11 Sep 2026 13:16:36 +0800 Subject: [PATCH] fix: keep corner crosswalks within wedges --- src/compile/complex-junction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compile/complex-junction.js b/src/compile/complex-junction.js index 8f3f191..d804e1c 100644 --- a/src/compile/complex-junction.js +++ b/src/compile/complex-junction.js @@ -454,9 +454,9 @@ function buildComplexJunctionGeometry(model, cluster, helpers) { // Complex junctions carry a default diagonal crossing across each safe // corner. Source crossing nodes refine provenance/inset values, but are // not required for the default visual treatment. - const diagonalCenter = midpoint(tangents[0], tangents[1]); - const diagonalSpan = Math.max(1.8, helpers.distanceMeters(tangents[0], tangents[1]) - 1.2); - const diagonalDepth = 3.2; + const diagonalCenter = helpers.offsetCoordinate(apex, bisector, Math.min(5, Math.max(1.5, apexReach * 0.28))); + const diagonalSpan = Math.min(6, Math.max(2.4, helpers.distanceMeters(tangents[0], tangents[1]) * 0.35)); + const diagonalDepth = 2.4; const stripeCount = 7; const stripeWidth = 0.32; const stripeSpacing = diagonalDepth / stripeCount;