test: expose complex carriageway edit handles

This commit is contained in:
que01 committed 2026-09-10 13:27:07 +08:00
1 parent e2ec728af3
commit 53b63ae333
2 files changed
+12

No files matched your search

+9
View File
@@ -68,5 +68,14 @@ export function junctionLabelForHandle(handle: EditHandle, roads: Road[], juncti
const road = roads.find((item) => clusterAnchor.sourceRoadIds.includes(item.id));
return `${approachName(road, roads, junction)} · ${base}`;
}
if (
(handle.kind === 'cluster-carriageway-position' ||
handle.kind === 'cluster-carriageway-direction' ||
handle.kind === 'cluster-carriageway-edge-offset') &&
clusterAnchor.type === 'cluster-carriageway'
) {
const road = roads.find((item) => clusterAnchor.sourceRoadIds.includes(item.id));
return `${approachName(road, roads, junction)} · ${base}`;
}
return base;
}