@tscircuit/schematic-trace-solver 0.0.130 → 0.0.131
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.d.ts +6 -0
- package/dist/index.js +210 -13
- package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +290 -12
- package/package.json +1 -1
- package/tests/bug-reports/bug-report-20260811T075142Z/__snapshots__/bug-report-20260811T075142Z.snap.svg +32 -32
- package/tests/bug-reports/bug-report-20260811T075142Z/bug-report-20260811T075142Z.test.ts +119 -0
- package/tests/repros/__snapshots__/repro-board-589-regulator-section.snap.svg +69 -0
- package/tests/repros/__snapshots__/repro-usb-power-vbus-label-detour.snap.svg +467 -0
- package/tests/repros/assets/repro-board-589-regulator-section.input.json +270 -0
- package/tests/repros/assets/repro-usb-power-vbus-label-detour.input.json +2382 -0
- package/tests/repros/repro-board-589-regulator-section.test.ts +16 -0
- package/tests/repros/repro-usb-power-vbus-label-detour.test.ts +16 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chips": [
|
|
3
|
+
{
|
|
4
|
+
"chipId": "schematic_component_3",
|
|
5
|
+
"center": {
|
|
6
|
+
"x": -5.655000000000001,
|
|
7
|
+
"y": -4.030455349999999
|
|
8
|
+
},
|
|
9
|
+
"width": 2,
|
|
10
|
+
"height": 0.40000000000000036,
|
|
11
|
+
"pins": [
|
|
12
|
+
{
|
|
13
|
+
"pinId": "schematic_port_20",
|
|
14
|
+
"x": -6.655000000000001,
|
|
15
|
+
"y": -4.030455349999999
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"pinId": "schematic_port_21",
|
|
19
|
+
"x": -4.655000000000001,
|
|
20
|
+
"y": -4.030455349999999
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"sectionId": "five_volt_and_regulator"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"chipId": "schematic_component_4",
|
|
27
|
+
"center": {
|
|
28
|
+
"x": -0.6750000000000007,
|
|
29
|
+
"y": -5.393455349999998
|
|
30
|
+
},
|
|
31
|
+
"width": 2,
|
|
32
|
+
"height": 0.5999999999999996,
|
|
33
|
+
"pins": [
|
|
34
|
+
{
|
|
35
|
+
"pinId": "schematic_port_22",
|
|
36
|
+
"x": -1.6750000000000007,
|
|
37
|
+
"y": -5.193455349999998
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"pinId": "schematic_port_23",
|
|
41
|
+
"x": -1.6750000000000007,
|
|
42
|
+
"y": -5.393455349999998
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"pinId": "schematic_port_24",
|
|
46
|
+
"x": -1.6750000000000007,
|
|
47
|
+
"y": -5.593455349999998
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"pinId": "schematic_port_25",
|
|
51
|
+
"x": 0.3249999999999993,
|
|
52
|
+
"y": -5.493455349999998
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"pinId": "schematic_port_26",
|
|
56
|
+
"x": 0.3249999999999993,
|
|
57
|
+
"y": -5.293455349999999
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"sectionId": "five_volt_and_regulator"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"chipId": "schematic_component_5",
|
|
64
|
+
"center": {
|
|
65
|
+
"x": -4.000000000000001,
|
|
66
|
+
"y": -5.693455349999998
|
|
67
|
+
},
|
|
68
|
+
"width": 0.9200000000000004,
|
|
69
|
+
"height": 0.7599999999999998,
|
|
70
|
+
"pins": [
|
|
71
|
+
{
|
|
72
|
+
"pinId": "schematic_port_27",
|
|
73
|
+
"x": -4.135000000000001,
|
|
74
|
+
"y": -5.313455349999998,
|
|
75
|
+
"_facingDirection": "y+"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"pinId": "schematic_port_28",
|
|
79
|
+
"x": -4.135000000000001,
|
|
80
|
+
"y": -6.073455349999998,
|
|
81
|
+
"_facingDirection": "y-"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"sectionId": "five_volt_and_regulator"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"chipId": "schematic_component_6",
|
|
88
|
+
"center": {
|
|
89
|
+
"x": -2.7,
|
|
90
|
+
"y": -5.693455349999998
|
|
91
|
+
},
|
|
92
|
+
"width": 1.0400000000000005,
|
|
93
|
+
"height": 0.7599999999999998,
|
|
94
|
+
"pins": [
|
|
95
|
+
{
|
|
96
|
+
"pinId": "schematic_port_29",
|
|
97
|
+
"x": -2.8950000000000005,
|
|
98
|
+
"y": -5.313455349999998,
|
|
99
|
+
"_facingDirection": "y+"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"pinId": "schematic_port_30",
|
|
103
|
+
"x": -2.8950000000000005,
|
|
104
|
+
"y": -6.073455349999998,
|
|
105
|
+
"_facingDirection": "y-"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"sectionId": "five_volt_and_regulator"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"chipId": "schematic_component_7",
|
|
112
|
+
"center": {
|
|
113
|
+
"x": 1.6799999999999988,
|
|
114
|
+
"y": -5.793455349999999
|
|
115
|
+
},
|
|
116
|
+
"width": 0.9199999999999997,
|
|
117
|
+
"height": 0.7599999999999998,
|
|
118
|
+
"pins": [
|
|
119
|
+
{
|
|
120
|
+
"pinId": "schematic_port_31",
|
|
121
|
+
"x": 1.544999999999999,
|
|
122
|
+
"y": -5.413455349999999,
|
|
123
|
+
"_facingDirection": "y+"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"pinId": "schematic_port_32",
|
|
127
|
+
"x": 1.544999999999999,
|
|
128
|
+
"y": -6.1734553499999985,
|
|
129
|
+
"_facingDirection": "y-"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"sectionId": "five_volt_and_regulator"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"chipId": "schematic_component_8",
|
|
136
|
+
"center": {
|
|
137
|
+
"x": 2.9799999999999995,
|
|
138
|
+
"y": -5.793455349999999
|
|
139
|
+
},
|
|
140
|
+
"width": 1.0400000000000005,
|
|
141
|
+
"height": 0.7599999999999998,
|
|
142
|
+
"pins": [
|
|
143
|
+
{
|
|
144
|
+
"pinId": "schematic_port_33",
|
|
145
|
+
"x": 2.7849999999999993,
|
|
146
|
+
"y": -5.413455349999999,
|
|
147
|
+
"_facingDirection": "y+"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"pinId": "schematic_port_34",
|
|
151
|
+
"x": 2.7849999999999993,
|
|
152
|
+
"y": -6.1734553499999985,
|
|
153
|
+
"_facingDirection": "y-"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"sectionId": "five_volt_and_regulator"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"directConnections": [
|
|
160
|
+
{
|
|
161
|
+
"netId": ".U_REG > .EN to .U_REG > .VIN",
|
|
162
|
+
"pinIds": [
|
|
163
|
+
"schematic_port_24",
|
|
164
|
+
"schematic_port_22"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"netConnections": [
|
|
169
|
+
{
|
|
170
|
+
"netId": "GND",
|
|
171
|
+
"netLabelWidth": 0.42,
|
|
172
|
+
"netLabelHeight": 0.48,
|
|
173
|
+
"pinIds": [
|
|
174
|
+
"schematic_port_23",
|
|
175
|
+
"schematic_port_28",
|
|
176
|
+
"schematic_port_30",
|
|
177
|
+
"schematic_port_32",
|
|
178
|
+
"schematic_port_34"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"netId": "VBUS_5V",
|
|
183
|
+
"netLabelWidth": 0.42,
|
|
184
|
+
"netLabelHeight": 0.96,
|
|
185
|
+
"pinIds": [
|
|
186
|
+
"schematic_port_20"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"netId": "V5_SYS",
|
|
191
|
+
"netLabelWidth": 0.42,
|
|
192
|
+
"netLabelHeight": 0.84,
|
|
193
|
+
"pinIds": [
|
|
194
|
+
"schematic_port_21",
|
|
195
|
+
"schematic_port_22",
|
|
196
|
+
"schematic_port_24",
|
|
197
|
+
"schematic_port_27",
|
|
198
|
+
"schematic_port_29"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"netId": "V3_3",
|
|
203
|
+
"netLabelWidth": 0.42,
|
|
204
|
+
"netLabelHeight": 0.6,
|
|
205
|
+
"pinIds": [
|
|
206
|
+
"schematic_port_26",
|
|
207
|
+
"schematic_port_31",
|
|
208
|
+
"schematic_port_33"
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"textBoxes": [
|
|
213
|
+
{
|
|
214
|
+
"chipId": "schematic_component_3",
|
|
215
|
+
"center": {
|
|
216
|
+
"x": -5.295000000000001,
|
|
217
|
+
"y": -4.360455349999999
|
|
218
|
+
},
|
|
219
|
+
"width": 1.92,
|
|
220
|
+
"height": 0.17999999999999972,
|
|
221
|
+
"text": "BSMD1206_200_12V"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"chipId": "schematic_component_3",
|
|
225
|
+
"center": {
|
|
226
|
+
"x": -5.895000000000001,
|
|
227
|
+
"y": -3.7154553499999983
|
|
228
|
+
},
|
|
229
|
+
"width": 0.839999999999999,
|
|
230
|
+
"height": 0.24999999999999956,
|
|
231
|
+
"text": "2A PTC"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"chipId": "schematic_component_4",
|
|
235
|
+
"center": {
|
|
236
|
+
"x": -0.3750000000000009,
|
|
237
|
+
"y": -5.823455349999998
|
|
238
|
+
},
|
|
239
|
+
"width": 1.7999999999999998,
|
|
240
|
+
"height": 0.17999999999999972,
|
|
241
|
+
"text": "AP2112K_3_3TRG1"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"chipId": "schematic_component_4",
|
|
245
|
+
"center": {
|
|
246
|
+
"x": -0.6150000000000009,
|
|
247
|
+
"y": -4.978455349999999
|
|
248
|
+
},
|
|
249
|
+
"width": 1.44,
|
|
250
|
+
"height": 0.2499999999999991,
|
|
251
|
+
"text": "AP2112K-3.3"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"availableNetLabelOrientations": {
|
|
255
|
+
"GND": [
|
|
256
|
+
"y-"
|
|
257
|
+
],
|
|
258
|
+
"VBUS_5V": [
|
|
259
|
+
"y+"
|
|
260
|
+
],
|
|
261
|
+
"V5_SYS": [
|
|
262
|
+
"y+"
|
|
263
|
+
],
|
|
264
|
+
"V3_3": [
|
|
265
|
+
"y+"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"maxMspPairDistance": 2.4,
|
|
269
|
+
"_hideRatsNet": false
|
|
270
|
+
}
|