refactor(junction): share canonical entry rings
This commit is contained in:
1 parent
f4cf42f1c6
commit
2f627df232
3 files changed
+14
-7
No files matched your search
@@ -513,13 +513,7 @@ function buildComplexJunctionGeometry(model, cluster, helpers) {
|
||||
);
|
||||
}
|
||||
for (const { item, section } of boundaryParts) {
|
||||
const ring = [
|
||||
section.outer.right,
|
||||
section.inner.right,
|
||||
section.inner.left,
|
||||
section.outer.left,
|
||||
section.outer.right,
|
||||
];
|
||||
const ring = section.ring;
|
||||
features.push({
|
||||
type: 'Feature',
|
||||
properties: {
|
||||
|
||||
@@ -79,6 +79,7 @@ function buildJunctionBoundaryGraph(topology, center, radii, helpers, exclusionR
|
||||
transitionStatus: outer.stationMeters - inner.stationMeters > 1e-6 ? 'supported' : 'insufficient-source-length',
|
||||
outer,
|
||||
inner,
|
||||
ring: [outer.right, inner.right, inner.left, outer.left, outer.right],
|
||||
edgeRefs: {
|
||||
left: `${key}:left`,
|
||||
right: `${key}:right`,
|
||||
|
||||
Reference in new issue
Block a user