@tscircuit/capacity-autorouter 0.0.201 → 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
@@ -2716,6 +2716,7 @@ declare class SimpleHighDensitySolver extends BaseSolver {
2716
2716
  viaDiameter: number;
2717
2717
  numMovablePoints: number;
2718
2718
  currentNode: NodeWithPortPoints | null;
2719
+ lastNode: NodeWithPortPoints | null;
2719
2720
  currentNodeStep: number;
2720
2721
  routesInProgress: RouteInProgress[];
2721
2722
  pushMargin: number;
@@ -2846,6 +2847,7 @@ interface TraceKeepoutSolverInput {
2846
2847
  colorMap: Record<string, string>;
2847
2848
  keepoutRadiusSchedule?: number[];
2848
2849
  smoothDistance?: number;
2850
+ srj?: Pick<SimpleRouteJson, "outline" | "bounds">;
2849
2851
  }
2850
2852
  /**
2851
2853
  * TraceKeepoutSolver adjusts traces to maintain keepout distance from obstacles
@@ -2878,6 +2880,7 @@ declare class TraceKeepoutSolver extends BaseSolver {
2878
2880
  lastCollidingSegments: Segment[];
2879
2881
  obstacleSHI: ObstacleSpatialHashIndex;
2880
2882
  hdRouteSHI: HighDensityRouteSpatialIndex;
2883
+ boardOutlineRoutes: HighDensityRoute$1[];
2881
2884
  constructor(input: TraceKeepoutSolverInput);
2882
2885
  _step(): void;
2883
2886
  /**
@@ -2902,6 +2905,11 @@ declare class TraceKeepoutSolver extends BaseSolver {
2902
2905
  * Simplifies the route by removing collinear points
2903
2906
  */
2904
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;
2905
2913
  visualize(): GraphicsObject;
2906
2914
  /** Returns the redrawn routes. This is the primary output of the solver. */
2907
2915
  getRedrawnHdRoutes(): HighDensityRoute$1[];