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

+3
View File
@@ -253,6 +253,9 @@ test.describe('workbench editing shell', () => {
'cluster-carriageway-width',
'cluster-carriageway-cutback',
'cluster-carriageway-transition-length',
'cluster-carriageway-position',
'cluster-carriageway-direction',
'cluster-carriageway-edge-offset',
'cluster-corner-radius',
'cluster-crossing-inset',
'cluster-stop-line-offset',
+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;
}