@tscircuit/schematic-trace-solver 0.0.170 → 0.0.171

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.js CHANGED
@@ -10049,7 +10049,9 @@ var AvailableNetOrientationSolver = class extends BaseSolver {
10049
10049
  changed = true;
10050
10050
  }
10051
10051
  }
10052
- if (connectedPinIds.size <= 3) return null;
10052
+ if (connectedPinIds.size < 3 || connectedPinIds.size === 3 && !this.hasPortOnlyLabelOnSameNet(label)) {
10053
+ return null;
10054
+ }
10053
10055
  const pins = [...connectedPinIds].map((pinId) => this.pinMap[pinId]);
10054
10056
  const direction = dir(orientation);
10055
10057
  const pinX = pins[0].x;
@@ -1695,7 +1695,12 @@ export class AvailableNetOrientationSolver extends BaseSolver {
1695
1695
  changed = true
1696
1696
  }
1697
1697
  }
1698
- if (connectedPinIds.size <= 3) return null
1698
+ if (
1699
+ connectedPinIds.size < 3 ||
1700
+ (connectedPinIds.size === 3 && !this.hasPortOnlyLabelOnSameNet(label))
1701
+ ) {
1702
+ return null
1703
+ }
1699
1704
 
1700
1705
  const pins = [...connectedPinIds].map((pinId) => this.pinMap[pinId]!)
1701
1706
  const direction = dir(orientation)
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/tscircuit/schematic-trace-solver.git"
6
6
  },
7
7
  "main": "dist/index.js",
8
- "version": "0.0.170",
8
+ "version": "0.0.171",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "start": "cosmos",