@tscircuit/capacity-autorouter 0.0.564 → 0.0.566

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
@@ -5566,57 +5566,57 @@ declare class BgaTopologyGeneratorSolver extends BaseSolver$1 {
5566
5566
  getOutput(): BgaTopologyGeneratorSolverOutput;
5567
5567
  }
5568
5568
 
5569
- interface QfpTopologyGeneratorSolverParams {
5569
+ interface QfpThermalPadTopologyGeneratorSolverParams {
5570
5570
  inputSrj: SimpleRouteJson;
5571
5571
  componentId?: string;
5572
5572
  replacementObstacleId?: string;
5573
5573
  viaDiameter?: number;
5574
5574
  obstacleMargin?: number;
5575
5575
  }
5576
- interface QfpTopologyGeneratorSolverOutput {
5576
+ interface QfpThermalPadTopologyGeneratorSolverOutput {
5577
5577
  /** Exact obstacle rectangles cloned from the input SRJ. This is the geometry source of truth. */
5578
5578
  obstacles: Obstacle[];
5579
- /** Routing regions derived from the QFP pad ring. These are not obstacle rectangles. */
5579
+ /** Routing regions derived from the QFP pad ring and central thermal pad. */
5580
5580
  routingRegions: CapacityMeshNode[];
5581
5581
  }
5582
5582
  /**
5583
- * Builds the fixed QFP topology: one large central region plus perimeter gap
5584
- * and corner regions between the package pads.
5583
+ * Builds the fixed QFP-with-thermal-pad topology. The central region is an
5584
+ * obstacle, so free space is modeled as perimeter gaps, inner pad clearances,
5585
+ * outer corners, and three rectangular regions around each thermal-pad corner.
5585
5586
  */
5586
- declare class QfpTopologyGeneratorSolver extends BaseSolver$1 {
5587
- readonly inputProblem: QfpTopologyGeneratorSolverParams;
5587
+ declare class QfpThermalPadTopologyGeneratorSolver extends BaseSolver$1 {
5588
+ readonly inputProblem: QfpThermalPadTopologyGeneratorSolverParams;
5588
5589
  private output;
5589
- constructor(inputProblem: QfpTopologyGeneratorSolverParams);
5590
- getConstructorParams(): readonly [QfpTopologyGeneratorSolverParams];
5590
+ constructor(inputProblem: QfpThermalPadTopologyGeneratorSolverParams);
5591
+ getConstructorParams(): readonly [QfpThermalPadTopologyGeneratorSolverParams];
5591
5592
  _step(): void;
5592
- getOutput(): QfpTopologyGeneratorSolverOutput;
5593
+ getOutput(): QfpThermalPadTopologyGeneratorSolverOutput;
5593
5594
  }
5594
5595
 
5595
- interface QfpThermalPadTopologyGeneratorSolverParams {
5596
+ interface QfpTopologyGeneratorSolverParams {
5596
5597
  inputSrj: SimpleRouteJson;
5597
5598
  componentId?: string;
5598
5599
  replacementObstacleId?: string;
5599
5600
  viaDiameter?: number;
5600
5601
  obstacleMargin?: number;
5601
5602
  }
5602
- interface QfpThermalPadTopologyGeneratorSolverOutput {
5603
+ interface QfpTopologyGeneratorSolverOutput {
5603
5604
  /** Exact obstacle rectangles cloned from the input SRJ. This is the geometry source of truth. */
5604
5605
  obstacles: Obstacle[];
5605
- /** Routing regions derived from the QFP pad ring and central thermal pad. */
5606
+ /** Routing regions derived from the QFP pad ring. These are not obstacle rectangles. */
5606
5607
  routingRegions: CapacityMeshNode[];
5607
5608
  }
5608
5609
  /**
5609
- * Builds the fixed QFP-with-thermal-pad topology. The central region is an
5610
- * obstacle, so free space is modeled as perimeter gaps, inner pad clearances,
5611
- * outer corners, and three rectangular regions around each thermal-pad corner.
5610
+ * Builds the fixed QFP topology: one large central region plus perimeter gap
5611
+ * and corner regions between the package pads.
5612
5612
  */
5613
- declare class QfpThermalPadTopologyGeneratorSolver extends BaseSolver$1 {
5614
- readonly inputProblem: QfpThermalPadTopologyGeneratorSolverParams;
5613
+ declare class QfpTopologyGeneratorSolver extends BaseSolver$1 {
5614
+ readonly inputProblem: QfpTopologyGeneratorSolverParams;
5615
5615
  private output;
5616
- constructor(inputProblem: QfpThermalPadTopologyGeneratorSolverParams);
5617
- getConstructorParams(): readonly [QfpThermalPadTopologyGeneratorSolverParams];
5616
+ constructor(inputProblem: QfpTopologyGeneratorSolverParams);
5617
+ getConstructorParams(): readonly [QfpTopologyGeneratorSolverParams];
5618
5618
  _step(): void;
5619
- getOutput(): QfpThermalPadTopologyGeneratorSolverOutput;
5619
+ getOutput(): QfpTopologyGeneratorSolverOutput;
5620
5620
  }
5621
5621
 
5622
5622
  interface SoicTopologyGeneratorSolverParams {
@@ -5712,10 +5712,26 @@ declare class MultiGraphTopologyPlannerSolver extends BasePipelineSolver<MultiGr
5712
5712
  */
5713
5713
  getOutput(): MultiGraphTopologyPlannerSolverOutput;
5714
5714
  finalVisualize(): GraphicsObject | null;
5715
+ visualize(): GraphicsObject;
5716
+ preview(): GraphicsObject;
5715
5717
  /** Rebuilds each component-local SRJ from its original member obstacles. */
5716
5718
  private getComponentNoConnectionSrjs;
5717
5719
  /** Adapts the global no-connection SRJ into the RectDiffPipeline input shape. */
5718
5720
  private getGlobalTopologySolverInput;
5721
+ /**
5722
+ * Removes raw RectDiff node rects that are superseded by component-local
5723
+ * topology regions.
5724
+ *
5725
+ * @param params.visualization - Graphics output produced by the base
5726
+ * pipeline visualizer, including nested stage visualizations.
5727
+ * @returns A visualization with RectDiff node rectangles inside component
5728
+ * areas removed. Non-RectDiff rectangles and all lines, points, circles,
5729
+ * and text entries are returned unchanged.
5730
+ *
5731
+ * @note This keeps intermediate RectDiff visualization consistent with the
5732
+ * merged topology output, which already removes those nodes from solver data.
5733
+ */
5734
+ private filterGlobalRectDiffNodesFromVisualization;
5719
5735
  }
5720
5736
 
5721
5737
  interface CapacityMeshSolverOptions$2 {