feat(junction): taper complex carriageway edits

This commit is contained in:
que01 committed 2026-09-09 10:24:57 +08:00
1 parent d353b48a0b
commit 280b726c6f
4 files changed
+31 -6

No files matched your search

+7 -1
View File
@@ -988,7 +988,13 @@ function applyDirectClusterPlans(model, junctionPlans, directEdit, clusters) {
});
for (const item of topology.carriageways) {
const width = widths.get(item.key);
if (Number.isFinite(width)) item.approach.widthMeters = width;
if (Number.isFinite(width)) {
// The outer section stays attached to the untouched source road. The
// complex approach then tapers from that fixed width to this local
// correction instead of opening a seam at the cluster boundary.
item.approach.sourceWidthMeters ??= item.approach.widthMeters;
item.approach.widthMeters = width;
}
const cutback = cutbacks.get(item.key);
if (Number.isFinite(cutback)) item.approach.cutback = cutback;
}