@tscircuit/capacity-autorouter 0.0.149 → 0.0.150

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4,6 +4,9 @@ import { Polygon } from '@tscircuit/math-utils';
4
4
  import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
5
5
 
6
6
  type TraceId = string;
7
+ type NetId = string;
8
+ type PointId = string;
9
+ type OffBoardConnectionId = string;
7
10
  interface SimpleRouteJson {
8
11
  layerCount: number;
9
12
  minTraceWidth: number;
@@ -32,22 +35,24 @@ interface Obstacle {
32
35
  };
33
36
  width: number;
34
37
  height: number;
35
- connectedTo: TraceId[];
38
+ connectedTo: Array<TraceId | NetId>;
36
39
  netIsAssignable?: boolean;
37
- offBoardConnectsTo?: TraceId[];
40
+ offBoardConnectsTo?: Array<OffBoardConnectionId>;
38
41
  }
39
42
  interface SimpleRouteConnection {
40
43
  name: string;
44
+ isOffBoard?: boolean;
41
45
  netConnectionName?: string;
42
46
  nominalTraceWidth?: number;
43
47
  pointsToConnect: Array<{
44
48
  x: number;
45
49
  y: number;
46
50
  layer: string;
47
- pointId?: string;
51
+ pointId?: PointId;
48
52
  pcb_port_id?: string;
49
53
  }>;
50
- externallyConnectedPointIds?: string[][];
54
+ /** @deprecated DO NOT USE **/
55
+ externallyConnectedPointIds?: PointId[][];
51
56
  }
52
57
  interface SimplifiedPcbTrace {
53
58
  type: "pcb_trace";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/capacity-autorouter",
3
3
  "main": "./dist/index.js",
4
- "version": "0.0.149",
4
+ "version": "0.0.150",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"