feat(workbench): unify lane maneuver edits in v2
This commit is contained in:
1 parent
118dc8e9aa
commit
c804a373ca
15 files changed
+337
-263
No files matched your search
@@ -25,6 +25,7 @@ function anchorFor(kind) {
|
||||
if (type === 'road-interval')
|
||||
return { type, roadId: 'road:way/1:forward', startStation: 0.25, endStation: 0.75, side: 'left' };
|
||||
if (type === 'junction-approach') return { type, nodeId: 'node/9', segmentId: 'road:way/1:segment/0' };
|
||||
if (type === 'lane') return { type, laneId: 'lane:road:way/1:forward:1' };
|
||||
return { type, nodeId: 'node/9', incomingRoadId: 'road:way/1:forward', outgoingRoadId: 'road:way/2:forward' };
|
||||
}
|
||||
|
||||
@@ -51,6 +52,8 @@ function valueFor(kind) {
|
||||
return { depthMeters: 3, stripeCount: 8 };
|
||||
case 'junction-stop-line-offset':
|
||||
return { offsetMeters: 2.7 };
|
||||
case 'lane-maneuver':
|
||||
return { maneuver: 'left', placementDistanceMeters: 8 };
|
||||
default:
|
||||
throw new Error(`valueFor has no case for ${kind}; the taxonomy grew without this fixture`);
|
||||
}
|
||||
@@ -104,6 +107,7 @@ assert.deepEqual(CONSTRAINT_KINDS, [
|
||||
'junction-crosswalk-inset',
|
||||
'junction-crosswalk-size',
|
||||
'junction-stop-line-offset',
|
||||
'lane-maneuver',
|
||||
]);
|
||||
|
||||
// --- round trip is lossless --------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user