@tscircuit/capacity-autorouter 0.0.411 → 0.0.413

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
@@ -69,7 +69,7 @@ type MultiLayerConnectionPoint = {
69
69
  pointId?: PointId;
70
70
  pcb_port_id?: string;
71
71
  };
72
- type ConnectionPoint = SingleLayerConnectionPoint | MultiLayerConnectionPoint;
72
+ type ConnectionPoint$1 = SingleLayerConnectionPoint | MultiLayerConnectionPoint;
73
73
  type Jumper$1 = {
74
74
  jumper_footprint: "0603" | "1206x4";
75
75
  center: {
@@ -129,7 +129,7 @@ interface SimpleRouteConnection {
129
129
  isOffBoard?: boolean;
130
130
  netConnectionName?: string;
131
131
  nominalTraceWidth?: number;
132
- pointsToConnect: Array<ConnectionPoint>;
132
+ pointsToConnect: Array<ConnectionPoint$1>;
133
133
  /** @deprecated DO NOT USE **/
134
134
  externallyConnectedPointIds?: PointId[][];
135
135
  }
@@ -1176,6 +1176,11 @@ type IndexedObstacleVia = {
1176
1176
  y: number;
1177
1177
  };
1178
1178
 
1179
+ type ConnectionPoint = {
1180
+ x: number;
1181
+ y: number;
1182
+ z: number;
1183
+ };
1179
1184
  declare class IntraNodeRouteSolver extends BaseSolver {
1180
1185
  getSolverName(): string;
1181
1186
  nodeWithPortPoints: NodeWithPortPoints;
@@ -1188,6 +1193,7 @@ declare class IntraNodeRouteSolver extends BaseSolver {
1188
1193
  z: number;
1189
1194
  }[];
1190
1195
  }[];
1196
+ originalConnectionPointsByName: Map<string, ConnectionPoint[]>;
1191
1197
  totalConnections: number;
1192
1198
  solvedRoutes: HighDensityIntraNodeRoute$1[];
1193
1199
  failedSubSolvers: SingleHighDensityRouteSolver[];
@@ -1196,6 +1202,9 @@ declare class IntraNodeRouteSolver extends BaseSolver {
1196
1202
  viaDiameter: number;
1197
1203
  traceWidth: number;
1198
1204
  obstacleMargin: number;
1205
+ rerouteAttemptsByConnection: Map<string, number>;
1206
+ POSTROUTE_VIA_TRACE_CLEARANCE: number;
1207
+ MAX_POSTROUTE_REPAIR_ATTEMPTS: number;
1199
1208
  activeSubSolver: SingleHighDensityRouteSolver | null;
1200
1209
  connMap?: ConnectivityMap;
1201
1210
  get failedSolvers(): SingleHighDensityRouteSolver[];
@@ -1213,6 +1222,9 @@ declare class IntraNodeRouteSolver extends BaseSolver {
1213
1222
  private getSingleRouteSolverOpts;
1214
1223
  private trySolveSamePointLayerChange;
1215
1224
  private queueExtraBranchesForMultiPointConnection;
1225
+ private getAvailableZLayers;
1226
+ private getFirstSolvedViaTraceConflict;
1227
+ private queueConnectionForPostrouteRepair;
1216
1228
  _step(): void;
1217
1229
  visualize(): GraphicsObject;
1218
1230
  }
@@ -2037,10 +2049,10 @@ declare class NetToPointPairsSolver2_OffBoardConnection extends NetToPointPairsS
2037
2049
  colorMap: Record<string, string>;
2038
2050
  getSolverName(): string;
2039
2051
  connectionPointDsu: DSU;
2040
- connectionPointMap: Map<string, ConnectionPoint>;
2052
+ connectionPointMap: Map<string, ConnectionPoint$1>;
2041
2053
  constructor(ogSrj: SimpleRouteJson, colorMap?: Record<string, string>);
2042
- _findBestConnectionPointsFromDisjointSets(sourcePoint: ConnectionPoint, targetPoint: ConnectionPoint): {
2043
- pointsToConnect: [ConnectionPoint, ConnectionPoint];
2054
+ _findBestConnectionPointsFromDisjointSets(sourcePoint: ConnectionPoint$1, targetPoint: ConnectionPoint$1): {
2055
+ pointsToConnect: [ConnectionPoint$1, ConnectionPoint$1];
2044
2056
  };
2045
2057
  _step(): void;
2046
2058
  }