@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,178 @@
1
+ {
2
+ "chips": [
3
+ {
4
+ "chipId": "schematic_component_0",
5
+ "center": { "x": 0, "y": 0 },
6
+ "width": 3.8,
7
+ "height": 4,
8
+ "pins": [
9
+ {
10
+ "pinId": "schematic_port_0",
11
+ "displayName": "AVCC",
12
+ "x": 1.9,
13
+ "y": -0.5
14
+ },
15
+ {
16
+ "pinId": "schematic_port_1",
17
+ "displayName": "VRA2",
18
+ "x": 1.9,
19
+ "y": -0.3
20
+ },
21
+ {
22
+ "pinId": "schematic_port_2",
23
+ "displayName": "AGND",
24
+ "x": 1.9,
25
+ "y": -0.1
26
+ },
27
+ {
28
+ "pinId": "schematic_port_3",
29
+ "displayName": "VRA1",
30
+ "x": 1.9,
31
+ "y": 0.1
32
+ },
33
+ {
34
+ "pinId": "schematic_port_4",
35
+ "displayName": "FMINR",
36
+ "x": 1.9,
37
+ "y": 0.3
38
+ },
39
+ {
40
+ "pinId": "schematic_port_5",
41
+ "displayName": "FMINL",
42
+ "x": 1.9,
43
+ "y": 0.5
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "chipId": "schematic_component_1",
49
+ "center": { "x": 7.3825, "y": -1 },
50
+ "width": 1.165,
51
+ "height": 0.76,
52
+ "pins": [
53
+ {
54
+ "pinId": "schematic_port_6",
55
+ "displayName": "1",
56
+ "x": 7.25,
57
+ "y": -0.62,
58
+ "_facingDirection": "y+"
59
+ },
60
+ {
61
+ "pinId": "schematic_port_7",
62
+ "displayName": "2",
63
+ "x": 7.25,
64
+ "y": -1.38,
65
+ "_facingDirection": "y-"
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "chipId": "schematic_component_2",
71
+ "center": { "x": 9.1325, "y": -1 },
72
+ "width": 1.165,
73
+ "height": 0.76,
74
+ "pins": [
75
+ {
76
+ "pinId": "schematic_port_8",
77
+ "displayName": "1",
78
+ "x": 9,
79
+ "y": -0.62,
80
+ "_facingDirection": "y+"
81
+ },
82
+ {
83
+ "pinId": "schematic_port_9",
84
+ "displayName": "2",
85
+ "x": 9,
86
+ "y": -1.38,
87
+ "_facingDirection": "y-"
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "chipId": "schematic_component_3",
93
+ "center": { "x": 8.1325, "y": 5 },
94
+ "width": 1.165,
95
+ "height": 0.76,
96
+ "pins": [
97
+ {
98
+ "pinId": "schematic_port_10",
99
+ "displayName": "1",
100
+ "x": 8,
101
+ "y": 5.38,
102
+ "_facingDirection": "y+"
103
+ },
104
+ {
105
+ "pinId": "schematic_port_11",
106
+ "displayName": "2",
107
+ "x": 8,
108
+ "y": 4.62,
109
+ "_facingDirection": "y-"
110
+ }
111
+ ]
112
+ }
113
+ ],
114
+ "directConnections": [],
115
+ "netConnections": [
116
+ {
117
+ "netId": "P1V8",
118
+ "isGround": false,
119
+ "netLabelWidth": 0.6,
120
+ "anchoredNetLabelWidth": 0.6,
121
+ "allowInlineNetLabel": true,
122
+ "inlineNetLabelHeight": 0.12,
123
+ "inlineNetLabelWidth": 0.4,
124
+ "pinIds": ["schematic_port_0", "schematic_port_10"]
125
+ },
126
+ {
127
+ "netId": "Net_U3F_VRA2",
128
+ "isGround": false,
129
+ "netLabelWidth": 0.42,
130
+ "netLabelHeight": 1.56,
131
+ "pinIds": ["schematic_port_1", "schematic_port_6"]
132
+ },
133
+ {
134
+ "netId": "GND",
135
+ "isGround": true,
136
+ "netLabelWidth": 0.42,
137
+ "netLabelHeight": 0.48,
138
+ "pinIds": [
139
+ "schematic_port_2",
140
+ "schematic_port_4",
141
+ "schematic_port_5",
142
+ "schematic_port_7",
143
+ "schematic_port_9",
144
+ "schematic_port_11"
145
+ ]
146
+ },
147
+ {
148
+ "netId": "Net_U3F_VRA1",
149
+ "isGround": false,
150
+ "netLabelWidth": 0.42,
151
+ "netLabelHeight": 1.56,
152
+ "pinIds": ["schematic_port_3", "schematic_port_8"]
153
+ }
154
+ ],
155
+ "textBoxes": [
156
+ {
157
+ "chipId": "schematic_component_0",
158
+ "center": { "x": -1.08, "y": -2.13 },
159
+ "width": 0.84,
160
+ "height": 0.18,
161
+ "text": "T113-S3"
162
+ },
163
+ {
164
+ "chipId": "schematic_component_0",
165
+ "center": { "x": -1.38, "y": 2.115 },
166
+ "width": 0.36,
167
+ "height": 0.25,
168
+ "text": "U3"
169
+ }
170
+ ],
171
+ "availableNetLabelOrientations": {
172
+ "Net_U3F_VRA2": ["y+"],
173
+ "GND": ["y-"],
174
+ "Net_U3F_VRA1": ["y+"],
175
+ "P1V8": ["x-", "x+"]
176
+ },
177
+ "maxMspPairDistance": 0.8
178
+ }