feat(junction): taper complex carriageway edits
This commit is contained in:
1 parent
d353b48a0b
commit
280b726c6f
4 files changed
+31
-6
No files matched your search
@@ -328,6 +328,18 @@ assert.notDeepEqual(
|
||||
complexSurface(clusterPreview).geometry,
|
||||
'a cluster carriageway constraint must change compiled complex geometry',
|
||||
);
|
||||
const baselineApproachRing = complexSurface(clusterPreview).geometry.coordinates[0];
|
||||
const widenedApproachRing = complexSurface(widenedClusterPreview).geometry.coordinates[0];
|
||||
assert.deepEqual(
|
||||
[widenedApproachRing[0], widenedApproachRing[3]],
|
||||
[baselineApproachRing[0], baselineApproachRing[3]],
|
||||
'a local width correction must preserve the source-road outer seam',
|
||||
);
|
||||
assert.notDeepEqual(
|
||||
[widenedApproachRing[1], widenedApproachRing[2]],
|
||||
[baselineApproachRing[1], baselineApproachRing[2]],
|
||||
'a local width correction must taper into the edited inner section',
|
||||
);
|
||||
const complexCrossingHandle = clusterState.handles.handles.find((handle) => handle.kind === 'cluster-crossing-inset');
|
||||
assert.ok(complexCrossingHandle, 'the complex fixture must publish grouped crossing handles');
|
||||
const renderedComplexCrosswalk = clusterPreview.layers.crosswalks.features.find(
|
||||
|
||||
Reference in new issue
Block a user