@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 +3 -1
- package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +6 -1
- package/package.json +1 -1
- package/tests/bug-reports/bug-report-20260707T140410Z/__snapshots__/bug-report-20260707T140410Z.snap.svg +10 -10
- package/tests/bug-reports/bug-report-20260825T103621Z/__snapshots__/bug-report-20260825T103621Z.snap.svg +10 -10
- package/tests/bug-reports/bug-report-20260826T072956Z/__snapshots__/bug-report-20260826T072956Z.snap.svg +10 -10
- package/tests/repros/__snapshots__/repro-hdc3020-ground-label-alignment.snap.svg +110 -0
- package/tests/repros/assets/repro-hdc3020-ground-label-alignment.input.json +282 -0
- package/tests/repros/repro-hdc3020-ground-label-alignment.test.ts +25 -0
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
|
|
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 (
|
|
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)
|