@tscircuit/schematic-trace-solver 0.0.175 → 0.0.177

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 (46) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.js +570 -17
  3. package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +5 -1
  4. package/lib/solvers/MspConnectionPairSolver/getGroundConnectionPolicy.ts +13 -0
  5. package/lib/solvers/SameNetJunctionAlignmentSolver/SameNetJunctionAlignmentSolver.ts +2 -0
  6. package/lib/solvers/SameNetJunctionAlignmentSolver/alignSameNetJunctions.ts +748 -15
  7. package/lib/solvers/SameNetJunctionAlignmentSolver/findNearestSharedPinExitRail.ts +140 -0
  8. package/lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver.ts +3 -5
  9. package/package.json +1 -1
  10. package/tests/bug-reports/bug-report-20260707T134549Z/__snapshots__/bug-report-20260707T134549Z.snap.svg +2 -2
  11. package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.test.ts +9 -0
  12. package/tests/bug-reports/bug-report-20260707T230831Z/__snapshots__/bug-report-20260707T230831Z.snap.svg +2 -2
  13. package/tests/bug-reports/bug-report-20260717T042845Z/__snapshots__/bug-report-20260717T042845Z.snap.svg +2 -2
  14. package/tests/bug-reports/bug-report-20260721T221026Z/__snapshots__/bug-report-20260721T221026Z.snap.svg +2 -2
  15. package/tests/bug-reports/bug-report-20260730T061837Z/__snapshots__/bug-report-20260730T061837Z.snap.svg +2 -2
  16. package/tests/bug-reports/bug-report-20260730T061837Z/bug-report-20260730T061837Z.test.ts +8 -4
  17. package/tests/bug-reports/bug-report-20260804T171919Z/__snapshots__/bug-report-20260804T171919Z.snap.svg +2 -2
  18. package/tests/bug-reports/bug-report-20260805T061316Z/__snapshots__/bug-report-20260805T061316Z.snap.svg +2 -2
  19. package/tests/bug-reports/bug-report-20260806T061548Z/__snapshots__/bug-report-20260806T061548Z.snap.svg +2 -2
  20. package/tests/bug-reports/bug-report-20260825T045913Z/__snapshots__/bug-report-20260825T045913Z.snap.svg +2 -2
  21. package/tests/bug-reports/bug-report-20260826T072956Z/__snapshots__/bug-report-20260826T072956Z.snap.svg +6 -6
  22. package/tests/bug-reports/bug-report-20260901T134241Z/__snapshots__/bug-report-20260901T134241Z.snap.svg +7 -7
  23. package/tests/bug-reports/bug-report-20260901T134241Z/bug-report-20260901T134241Z.test.ts +48 -0
  24. package/tests/examples/__snapshots__/example51.snap.svg +2 -2
  25. package/tests/repros/__snapshots__/board-1273-trace-overlap-cycle.snap.svg +10 -10
  26. package/tests/repros/__snapshots__/board1096-usb-label-overlap-iteration.snap.svg +2 -2
  27. package/tests/repros/__snapshots__/repro-bq25895-cross-net-trace-overlap.snap.svg +2 -2
  28. package/tests/repros/__snapshots__/repro-core-ground-inline-label-fallback.snap.svg +10 -10
  29. package/tests/repros/__snapshots__/repro-example35-minimize-trace-crossing.snap.svg +2 -2
  30. package/tests/repros/__snapshots__/repro-isolated-rs485-isow7841.snap.svg +18 -18
  31. package/tests/repros/__snapshots__/repro-pga300-redundant-ground-traces.snap.svg +18 -18
  32. package/tests/repros/__snapshots__/repro-pmp11282-isolated-dcdc.snap.svg +10 -10
  33. package/tests/repros/__snapshots__/repro-powerbank-3v-system-power.snap.svg +2 -2
  34. package/tests/repros/__snapshots__/repro-smartwatch-power-sheet.snap.svg +451 -0
  35. package/tests/repros/__snapshots__/repro-ti-power-output-section.snap.svg +2 -2
  36. package/tests/repros/__snapshots__/repro-tida-01389-hbridge.snap.svg +2 -2
  37. package/tests/repros/__snapshots__/repro-tida010076-page02.snap.svg +2 -2
  38. package/tests/repros/__snapshots__/repro161-power-section-autolayout.snap.svg +2 -2
  39. package/tests/repros/__snapshots__/repro48-555-timer-vcc-rail-label.snap.svg +2 -2
  40. package/tests/repros/assets/repro-smartwatch-power-sheet.input.json +1112 -0
  41. package/tests/repros/repro-isolated-rs485-isow7841.test.ts +4 -1
  42. package/tests/repros/repro-powerbank-3v-system-power.test.ts +24 -0
  43. package/tests/repros/repro-smartwatch-power-sheet.test.ts +27 -0
  44. package/tests/repros/repro-tida-01389-hbridge.test.ts +24 -0
  45. package/tests/solvers/MspConnectionPairSolver/ground-direct-connection-groups.test.ts +11 -0
  46. package/tests/solvers/SameNetJunctionAlignmentSolver/parallel-load-rails.test.ts +1 -0
@@ -16,11 +16,15 @@ test("bug-report-20260730T061837Z", () => {
16
16
  const vbusBranch = traces.find(
17
17
  (trace) => trace.mspPairId === "schematic_port_31-schematic_port_29",
18
18
  )!
19
+ const upstreamVddBranch = traces.find(
20
+ (trace) => trace.mspPairId === "schematic_port_5-schematic_port_39",
21
+ )!
19
22
 
20
- expect(vddBranch.tracePath).toContainEqual({
21
- x: -2.905,
22
- y: 0.57,
23
- })
23
+ const upstreamFromShared =
24
+ upstreamVddBranch.pins[0]!.pinId === "schematic_port_39"
25
+ ? upstreamVddBranch.tracePath
26
+ : [...upstreamVddBranch.tracePath].reverse()
27
+ expect(vddBranch.tracePath[1]!.x).toBeCloseTo(upstreamFromShared[1]!.x, 6)
24
28
  expect(
25
29
  pathIntersectsAnyNetLabel({
26
30
  path: vddBranch.tracePath,