feat(junction): taper complex carriageway edits

This commit is contained in:
que01 committed 2026-09-09 10:24:57 +08:00
1 parent d353b48a0b
commit 280b726c6f
4 files changed
+31 -6

No files matched your search

+12
View File
@@ -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(