@tscircuit/capacity-autorouter 0.0.200 → 0.0.202

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
@@ -1284,6 +1284,8 @@ interface PortPointCandidate {
1284
1284
  /** Whether this candidate has ever crossed through an off-board node */
1285
1285
  hasTouchedOffBoardNode?: boolean;
1286
1286
  lastMoveWasOffBoard?: boolean;
1287
+ /** The node we went through when making an off-board move */
1288
+ throughNodeId?: CapacityMeshNodeId;
1287
1289
  }
1288
1290
  interface ConnectionPathResult {
1289
1291
  connection: SimpleRouteConnection;
@@ -2714,6 +2716,7 @@ declare class SimpleHighDensitySolver extends BaseSolver {
2714
2716
  viaDiameter: number;
2715
2717
  numMovablePoints: number;
2716
2718
  currentNode: NodeWithPortPoints | null;
2719
+ lastNode: NodeWithPortPoints | null;
2717
2720
  currentNodeStep: number;
2718
2721
  routesInProgress: RouteInProgress[];
2719
2722
  pushMargin: number;
@@ -2844,6 +2847,7 @@ interface TraceKeepoutSolverInput {
2844
2847
  colorMap: Record<string, string>;
2845
2848
  keepoutRadiusSchedule?: number[];
2846
2849
  smoothDistance?: number;
2850
+ srj?: Pick<SimpleRouteJson, "outline" | "bounds">;
2847
2851
  }
2848
2852
  /**
2849
2853
  * TraceKeepoutSolver adjusts traces to maintain keepout distance from obstacles
@@ -2876,6 +2880,7 @@ declare class TraceKeepoutSolver extends BaseSolver {
2876
2880
  lastCollidingSegments: Segment[];
2877
2881
  obstacleSHI: ObstacleSpatialHashIndex;
2878
2882
  hdRouteSHI: HighDensityRouteSpatialIndex;
2883
+ boardOutlineRoutes: HighDensityRoute$1[];
2879
2884
  constructor(input: TraceKeepoutSolverInput);
2880
2885
  _step(): void;
2881
2886
  /**
@@ -2900,6 +2905,11 @@ declare class TraceKeepoutSolver extends BaseSolver {
2900
2905
  * Simplifies the route by removing collinear points
2901
2906
  */
2902
2907
  private simplifyRoute;
2908
+ /**
2909
+ * Creates artificial hdRoutes representing the board outline.
2910
+ * These routes act as obstacles to prevent traces from being pushed outside the board.
2911
+ */
2912
+ private createBoardOutlineRoutes;
2903
2913
  visualize(): GraphicsObject;
2904
2914
  /** Returns the redrawn routes. This is the primary output of the solver. */
2905
2915
  getRedrawnHdRoutes(): HighDensityRoute$1[];