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;