@tscircuit/capacity-autorouter 0.0.433 → 0.0.435

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/README.md CHANGED
@@ -69,6 +69,7 @@ interface Obstacle {
69
69
  center: { x: number; y: number }
70
70
  width: number
71
71
  height: number
72
+ ccwRotationDegrees?: number
72
73
  connectedTo: string[] // TraceIds
73
74
  isCopperPour?: boolean
74
75
  offBoardConnectsTo?: string[] // TraceIds connected off-board
package/dist/index.d.ts CHANGED
@@ -123,6 +123,8 @@ interface Obstacle {
123
123
  };
124
124
  width: number;
125
125
  height: number;
126
+ /** Optional counter-clockwise rotation metadata in degrees. */
127
+ ccwRotationDegrees?: number;
126
128
  connectedTo: Array<TraceId | NetId>;
127
129
  isCopperPour?: boolean;
128
130
  netIsAssignable?: boolean;
@@ -4536,6 +4538,13 @@ type MultiTargetNecessaryCrampedPortPointSolverInput = {
4536
4538
  sharedEdgeSegments: SharedEdgeSegment[];
4537
4539
  capacityMeshNodes: CapacityMeshNode[];
4538
4540
  simpleRouteJson: SimpleRouteJson;
4541
+ /**
4542
+ * The number of cramped port points to keep.
4543
+ * This is useful when there are multiple connections.
4544
+ * Setting this to more than one (e.g., 2) ensures that at least two connections can be routed.
4545
+ * Higher values may be beneficial, but can lead to more DRC errors.
4546
+ */
4547
+ numberOfCrampedPortPointsToKeep: number;
4539
4548
  };
4540
4549
  /**
4541
4550
  * This solver filters out cramped port points that are not necessary.