fix: keep corner crosswalks within wedges

This commit is contained in:
que01 committed 2026-09-11 13:16:36 +08:00
1 parent 14930c5dd6
commit df39237829
1 file changed
+3 -3
+3 -3
View File
@@ -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;