@tscircuit/schematic-trace-solver 0.0.173 → 0.0.175

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 (43) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +200 -74
  3. package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +12 -1
  4. package/lib/solvers/InlineNetLabelSolver/InlineNetLabelSolver.ts +16 -1
  5. package/lib/solvers/InlineNetLabelSolver/restoreReroutesAroundSupersededLabels.ts +174 -0
  6. package/lib/solvers/NetLabelToTraceSolver/NetLabelToTraceSolver.ts +2 -30
  7. package/lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver.ts +9 -0
  8. package/lib/utils/doesPathCoincideWithTraces.ts +17 -4
  9. package/lib/utils/pathIntersectsRenderedLabel.ts +33 -0
  10. package/package.json +1 -1
  11. package/site/bug-reports/bug-report-20260831T133233Z.page.tsx +4 -0
  12. package/site/bug-reports/bug-report-20260901T055358Z.page.tsx +4 -0
  13. package/site/bug-reports/bug-report-20260901T064117Z.page.tsx +4 -0
  14. package/site/bug-reports/bug-report-20260901T134241Z.page.tsx +4 -0
  15. package/tests/bug-reports/bug-report-20260721T221026Z/__snapshots__/bug-report-20260721T221026Z.snap.svg +18 -18
  16. package/tests/bug-reports/bug-report-20260831T133233Z/__snapshots__/bug-report-20260831T133233Z.snap.svg +85 -0
  17. package/tests/bug-reports/bug-report-20260831T133233Z/bug-report-20260831T133233Z.json +172 -0
  18. package/tests/bug-reports/bug-report-20260831T133233Z/bug-report-20260831T133233Z.test.ts +25 -0
  19. package/tests/bug-reports/bug-report-20260901T055358Z/__snapshots__/bug-report-20260901T055358Z.snap.svg +676 -0
  20. package/tests/bug-reports/bug-report-20260901T055358Z/bug-report-20260901T055358Z.json +2467 -0
  21. package/tests/bug-reports/bug-report-20260901T055358Z/bug-report-20260901T055358Z.test.ts +59 -0
  22. package/tests/bug-reports/bug-report-20260901T064117Z/__snapshots__/bug-report-20260901T064117Z.snap.svg +134 -0
  23. package/tests/bug-reports/bug-report-20260901T064117Z/bug-report-20260901T064117Z.json +215 -0
  24. package/tests/bug-reports/bug-report-20260901T064117Z/bug-report-20260901T064117Z.test.ts +12 -0
  25. package/tests/bug-reports/bug-report-20260901T134241Z/__snapshots__/bug-report-20260901T134241Z.snap.svg +115 -0
  26. package/tests/bug-reports/bug-report-20260901T134241Z/bug-report-20260901T134241Z.json +359 -0
  27. package/tests/bug-reports/bug-report-20260901T134241Z/bug-report-20260901T134241Z.test.ts +12 -0
  28. package/tests/repros/__snapshots__/repro-bq40z60-current-sense.snap.svg +94 -0
  29. package/tests/repros/__snapshots__/repro-pmp11282-isolated-dcdc.snap.svg +10 -10
  30. package/tests/repros/__snapshots__/repro-ti-power-output-section.snap.svg +87 -87
  31. package/tests/repros/__snapshots__/repro-tida-01389-hbridge.snap.svg +47 -153
  32. package/tests/repros/__snapshots__/repro-tida010076-page02.snap.svg +1625 -1625
  33. package/tests/repros/__snapshots__/repro-trellis-core-gnd-net-label-overlap.snap.svg +134 -0
  34. package/tests/repros/__snapshots__/repro-wireless-mouse-charger-section.snap.svg +164 -0
  35. package/tests/repros/assets/repro-bq40z60-current-sense.input.json +158 -0
  36. package/tests/repros/assets/repro-tida-01389-hbridge.input.json +67 -657
  37. package/tests/repros/assets/repro-trellis-core-gnd-net-label-overlap.input.json +178 -0
  38. package/tests/repros/assets/repro-wireless-mouse-charger-section.input.json +591 -0
  39. package/tests/repros/repro-bq40z60-current-sense.test.ts +18 -0
  40. package/tests/repros/repro-tida-01389-hbridge.test.ts +27 -6
  41. package/tests/repros/repro-trellis-core-gnd-net-label-overlap.test.ts +73 -0
  42. package/tests/repros/repro-wireless-mouse-charger-section.test.ts +16 -0
  43. package/tests/solvers/InlineNetLabelSolver/restore-reroutes-around-superseded-labels.test.ts +186 -0
@@ -0,0 +1,158 @@
1
+ {
2
+ "chips": [
3
+ {
4
+ "chipId": "C26",
5
+ "symbolName": "capacitor_down",
6
+ "center": { "x": -9.7675, "y": -7.3 },
7
+ "width": 1.165,
8
+ "height": 0.76,
9
+ "pins": [
10
+ {
11
+ "pinId": "C26.1",
12
+ "displayName": "1",
13
+ "x": -9.9,
14
+ "y": -6.92,
15
+ "_facingDirection": "y+"
16
+ },
17
+ {
18
+ "pinId": "C26.2",
19
+ "displayName": "2",
20
+ "x": -9.9,
21
+ "y": -7.68,
22
+ "_facingDirection": "y-"
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "chipId": "C36",
28
+ "symbolName": "capacitor_down",
29
+ "center": { "x": -8.5675, "y": -7.3 },
30
+ "width": 1.165,
31
+ "height": 0.76,
32
+ "pins": [
33
+ {
34
+ "pinId": "C36.1",
35
+ "displayName": "1",
36
+ "x": -8.7,
37
+ "y": -6.92,
38
+ "_facingDirection": "y+"
39
+ },
40
+ {
41
+ "pinId": "C36.2",
42
+ "displayName": "2",
43
+ "x": -8.7,
44
+ "y": -7.68,
45
+ "_facingDirection": "y-"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "chipId": "R43",
51
+ "symbolName": "boxresistor_up",
52
+ "center": { "x": -12.465, "y": -7.4 },
53
+ "width": 0.97,
54
+ "height": 0.6,
55
+ "pins": [
56
+ {
57
+ "pinId": "R43.1",
58
+ "displayName": "1",
59
+ "x": -12.5,
60
+ "y": -7.1,
61
+ "_facingDirection": "y+"
62
+ },
63
+ {
64
+ "pinId": "R43.2",
65
+ "displayName": "2",
66
+ "x": -12.5,
67
+ "y": -7.7,
68
+ "_facingDirection": "y-"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "chipId": "R38",
74
+ "symbolName": "boxresistor_right",
75
+ "center": { "x": -11.3, "y": -7 },
76
+ "width": 0.6,
77
+ "height": 0.68,
78
+ "pins": [
79
+ {
80
+ "pinId": "R38.1",
81
+ "displayName": "1",
82
+ "x": -11,
83
+ "y": -7,
84
+ "_facingDirection": "x+"
85
+ },
86
+ {
87
+ "pinId": "R38.2",
88
+ "displayName": "2",
89
+ "x": -11.6,
90
+ "y": -7,
91
+ "_facingDirection": "x-"
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "chipId": "R44",
97
+ "symbolName": "boxresistor_right",
98
+ "center": { "x": -11.3, "y": -8 },
99
+ "width": 0.6,
100
+ "height": 0.68,
101
+ "pins": [
102
+ {
103
+ "pinId": "R44.1",
104
+ "displayName": "1",
105
+ "x": -11,
106
+ "y": -8,
107
+ "_facingDirection": "x+"
108
+ },
109
+ {
110
+ "pinId": "R44.2",
111
+ "displayName": "2",
112
+ "x": -11.6,
113
+ "y": -8,
114
+ "_facingDirection": "x-"
115
+ }
116
+ ]
117
+ }
118
+ ],
119
+ "directConnections": [],
120
+ "netConnections": [
121
+ {
122
+ "netId": "GND",
123
+ "isGround": true,
124
+ "netLabelText": "GND",
125
+ "netLabelWidth": 0.42,
126
+ "netLabelHeight": 0.48,
127
+ "pinIds": ["R43.1", "R38.2"]
128
+ },
129
+ {
130
+ "netId": "PGND",
131
+ "isGround": true,
132
+ "netLabelText": "PGND",
133
+ "netLabelWidth": 0.42,
134
+ "netLabelHeight": 0.6,
135
+ "pinIds": ["R43.2", "R44.2"]
136
+ },
137
+ {
138
+ "netId": "U2_SRP",
139
+ "netLabelText": "U2_SRP",
140
+ "netLabelWidth": 0.84,
141
+ "pinIds": ["R38.1", "C26.1", "C36.1"]
142
+ },
143
+ {
144
+ "netId": "U2_SRN",
145
+ "netLabelText": "U2_SRN",
146
+ "netLabelWidth": 0.84,
147
+ "pinIds": ["R44.1", "C26.2", "C36.2"]
148
+ }
149
+ ],
150
+ "availableNetLabelOrientations": {
151
+ "GND": ["y-"],
152
+ "PGND": ["y-"],
153
+ "U2_SRP": ["y+"],
154
+ "U2_SRN": ["x+"]
155
+ },
156
+ "maxMspPairDistance": 2.4,
157
+ "_hideRatsNet": false
158
+ }