@tscircuit/capacity-autorouter 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3618,7 +3618,7 @@ var CapacitySegmentPointOptimizer = class extends BaseSolver {
|
|
|
3618
3618
|
op: "changeLayer",
|
|
3619
3619
|
segmentId: randomSegmentId,
|
|
3620
3620
|
pointIndex: randomPointIndex,
|
|
3621
|
-
newLayer: point.point.
|
|
3621
|
+
newLayer: point.point.z === 0 ? 1 : 0
|
|
3622
3622
|
};
|
|
3623
3623
|
}
|
|
3624
3624
|
getNodesNearNode(nodeId, hops = 1) {
|
|
@@ -4545,6 +4545,10 @@ var MultipleHighDensityRouteStitchSolver = class extends BaseSolver {
|
|
|
4545
4545
|
this.solved = true;
|
|
4546
4546
|
return;
|
|
4547
4547
|
}
|
|
4548
|
+
if (unsolvedRoute.hdRoutes.length === 0) {
|
|
4549
|
+
console.warn(`No routes to stitch for ${unsolvedRoute.connectionName}`);
|
|
4550
|
+
return;
|
|
4551
|
+
}
|
|
4548
4552
|
this.activeSolver = new SingleHighDensityRouteStitchSolver({
|
|
4549
4553
|
hdRoutes: unsolvedRoute.hdRoutes,
|
|
4550
4554
|
start: unsolvedRoute.start,
|