@tscircuit/capacity-autorouter 0.0.33 → 0.0.34

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.d.ts CHANGED
@@ -987,6 +987,7 @@ declare class SingleHighDensityRouteStitchSolver extends BaseSolver {
987
987
  z: number;
988
988
  };
989
989
  constructor(opts: {
990
+ connectionName?: string;
990
991
  hdRoutes: HighDensityIntraNodeRoute[];
991
992
  start: {
992
993
  x: number;
package/dist/index.js CHANGED
@@ -4213,7 +4213,7 @@ var SingleHighDensityRouteStitchSolver = class extends BaseSolver {
4213
4213
  super();
4214
4214
  this.remainingHdRoutes = [...opts.hdRoutes];
4215
4215
  this.mergedHdRoute = {
4216
- connectionName: opts.hdRoutes[0].connectionName,
4216
+ connectionName: opts.connectionName ?? opts.hdRoutes[0].connectionName,
4217
4217
  route: [
4218
4218
  {
4219
4219
  x: opts.start.x,
@@ -4222,8 +4222,8 @@ var SingleHighDensityRouteStitchSolver = class extends BaseSolver {
4222
4222
  }
4223
4223
  ],
4224
4224
  vias: [],
4225
- viaDiameter: opts.hdRoutes[0].viaDiameter,
4226
- traceThickness: opts.hdRoutes[0].traceThickness
4225
+ viaDiameter: opts.hdRoutes?.[0]?.viaDiameter ?? 0.6,
4226
+ traceThickness: opts.hdRoutes?.[0]?.traceThickness ?? 0.15
4227
4227
  };
4228
4228
  this.start = opts.start;
4229
4229
  this.end = opts.end;
@@ -4382,11 +4382,8 @@ var MultipleHighDensityRouteStitchSolver = class extends BaseSolver {
4382
4382
  this.solved = true;
4383
4383
  return;
4384
4384
  }
4385
- if (unsolvedRoute.hdRoutes.length === 0) {
4386
- console.warn(`No routes to stitch for ${unsolvedRoute.connectionName}`);
4387
- return;
4388
- }
4389
4385
  this.activeSolver = new SingleHighDensityRouteStitchSolver({
4386
+ connectionName: unsolvedRoute.connectionName,
4390
4387
  hdRoutes: unsolvedRoute.hdRoutes,
4391
4388
  start: unsolvedRoute.start,
4392
4389
  end: unsolvedRoute.end