test: expose complex carriageway edit handles
This commit is contained in:
1 parent
e2ec728af3
commit
53b63ae333
2 files changed
+12
No files matched your search
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user