@tscircuit/schematic-trace-solver 0.0.40 → 0.0.42

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 (57) hide show
  1. package/dist/index.d.ts +155 -9
  2. package/dist/index.js +998 -479
  3. package/lib/solvers/LongDistancePairSolver/LongDistancePairSolver.ts +238 -0
  4. package/lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver.ts +61 -26
  5. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/TraceLabelOverlapAvoidanceSolver.ts +94 -192
  6. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/rerouteCollidingTrace.ts +13 -24
  7. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/LabelMergingSolver/LabelMergingSolver.ts +205 -0
  8. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/OverlapAvoidanceStepSolver/OverlapAvoidanceStepSolver.ts +144 -0
  9. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/SingleOverlapSolver/SingleOverlapSolver.ts +117 -0
  10. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/TraceCleanupSolver/TraceCleanupSolver.ts +132 -0
  11. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{balanceLShapes.ts → sub-solvers/TraceCleanupSolver/balanceLShapes.ts} +12 -10
  12. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{hasCollisions.ts → sub-solvers/TraceCleanupSolver/hasCollisions.ts} +1 -1
  13. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{hasCollisionsWithLabels.ts → sub-solvers/TraceCleanupSolver/hasCollisionsWithLabels.ts} +1 -1
  14. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{minimizeTurnsWithFilteredLabels.ts → sub-solvers/TraceCleanupSolver/minimizeTurnsWithFilteredLabels.ts} +6 -6
  15. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{simplifyPath.ts → sub-solvers/TraceCleanupSolver/simplifyPath.ts} +1 -1
  16. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{turnMinimization.ts → sub-solvers/TraceCleanupSolver/turnMinimization.ts} +0 -2
  17. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/tryFourPointDetour.ts +104 -0
  18. package/lib/solvers/TraceLabelOverlapAvoidanceSolver/trySnipAndReconnect.ts +24 -154
  19. package/lib/utils/does-trace-overlap-with-existing-traces.ts +33 -0
  20. package/package.json +1 -1
  21. package/site/examples/example25.page.tsx +4 -0
  22. package/tests/assets/1.input.json +379 -0
  23. package/tests/assets/2.input.json +330 -0
  24. package/tests/assets/3.input.json +388 -0
  25. package/tests/assets/MergedNetLabelObstacles.test.input.json +154 -0
  26. package/tests/assets/OverlapAvoidanceStepSolver.test.input.json +682 -0
  27. package/tests/assets/SingleOverlapSolver.test.input.json +170 -0
  28. package/tests/assets/TraceCleanupSolver.test.input.json +216 -0
  29. package/tests/assets/TraceLabelOverlapAvoidanceSolver.test.input.json +424 -0
  30. package/tests/assets/example25.json +96 -0
  31. package/tests/examples/__snapshots__/example03.snap.svg +67 -76
  32. package/tests/examples/__snapshots__/example10.snap.svg +24 -30
  33. package/tests/examples/__snapshots__/example13.snap.svg +81 -84
  34. package/tests/examples/__snapshots__/example15.snap.svg +5 -8
  35. package/tests/examples/__snapshots__/example21.snap.svg +68 -74
  36. package/tests/examples/__snapshots__/example25.snap.svg +3 -3
  37. package/tests/examples/__snapshots__/example26.snap.svg +3 -3
  38. package/tests/examples/__snapshots__/example28.snap.svg +273 -0
  39. package/tests/examples/example28.test.ts +13 -0
  40. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/TraceLabelOverlapAvoidanceSolver.test.ts +18 -0
  41. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/__snapshots__/TraceLabelOverlapAvoidanceSolver.snap.svg +243 -0
  42. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView01.snap.svg +223 -0
  43. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView02.snap.svg +205 -0
  44. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView03.snap.svg +184 -0
  45. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/renderComparisonView01.test.ts +29 -0
  46. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/renderComparisonView02.test.ts +27 -0
  47. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/renderComparisonView03.test.ts +39 -0
  48. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/MergedNetLabelObstacles.test.ts +14 -0
  49. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/OverlapAvoidanceStepSolver.test.ts +20 -0
  50. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/SingleOverlapSolver.test.ts +10 -0
  51. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/TraceCleanupSolver.test.ts +19 -0
  52. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/MergedNetLabelObstacles.snap.svg +140 -0
  53. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/OverlapAvoidanceStepSolver.snap.svg +216 -0
  54. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/SingleOverlapSolver.snap.svg +125 -0
  55. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/TraceCleanupSolver.snap.svg +119 -0
  56. /package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{countTurns.ts → sub-solvers/TraceCleanupSolver/countTurns.ts} +0 -0
  57. /package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{tryConnectPoints.ts → sub-solvers/TraceCleanupSolver/tryConnectPoints.ts} +0 -0
@@ -0,0 +1,330 @@
1
+ {
2
+ "mergedNetLabelObstacleSolver": {
3
+ "netLabelPlacements": [
4
+ {
5
+ "globalConnNetId": "connectivity_net0",
6
+ "dcConnNetId": "connectivity_net0",
7
+ "netId": "GND",
8
+ "mspConnectionPairIds": ["U1.1-J1.3"],
9
+ "pinIds": ["U1.1", "J1.3"],
10
+ "orientation": "y-",
11
+ "anchorPoint": { "x": 1.4000000000000001, "y": -2.295 },
12
+ "width": 0.2,
13
+ "height": 0.45,
14
+ "center": { "x": 1.4000000000000001, "y": -2.52 }
15
+ },
16
+ {
17
+ "globalConnNetId": "connectivity_net1",
18
+ "netId": "VCC",
19
+ "mspConnectionPairIds": [],
20
+ "pinIds": ["U1.8"],
21
+ "orientation": "x+",
22
+ "anchorPoint": { "x": 1.2000000000000002, "y": 0.30000000000000004 },
23
+ "width": 0.45,
24
+ "height": 0.2,
25
+ "center": { "x": 1.4260000000000002, "y": 0.30000000000000004 }
26
+ },
27
+ {
28
+ "globalConnNetId": "connectivity_net1",
29
+ "netId": "VCC",
30
+ "mspConnectionPairIds": [],
31
+ "pinIds": ["J1.1"],
32
+ "orientation": "x-",
33
+ "anchorPoint": { "x": 1.6, "y": -1.895 },
34
+ "width": 0.45,
35
+ "height": 0.2,
36
+ "center": { "x": 1.374, "y": -1.895 }
37
+ },
38
+ {
39
+ "globalConnNetId": "connectivity_net2",
40
+ "netId": "MMM",
41
+ "mspConnectionPairIds": [],
42
+ "pinIds": ["J1.2"],
43
+ "orientation": "x-",
44
+ "anchorPoint": { "x": 1.6, "y": -2.095 },
45
+ "width": 0.45,
46
+ "height": 0.2,
47
+ "center": { "x": 1.374, "y": -2.095 }
48
+ }
49
+ ],
50
+ "inputProblem": {
51
+ "chips": [
52
+ {
53
+ "chipId": "schematic_component_0",
54
+ "center": { "x": 0, "y": 0 },
55
+ "width": 2.4000000000000004,
56
+ "height": 1,
57
+ "pins": [
58
+ {
59
+ "pinId": "U1.1",
60
+ "x": 1.2000000000000002,
61
+ "y": -0.30000000000000004
62
+ },
63
+ {
64
+ "pinId": "U1.2",
65
+ "x": -1.2000000000000002,
66
+ "y": -0.30000000000000004
67
+ },
68
+ {
69
+ "pinId": "U1.3",
70
+ "x": 1.2000000000000002,
71
+ "y": 0.09999999999999998
72
+ },
73
+ {
74
+ "pinId": "U1.4",
75
+ "x": -1.2000000000000002,
76
+ "y": 0.30000000000000004
77
+ },
78
+ {
79
+ "pinId": "U1.5",
80
+ "x": -1.2000000000000002,
81
+ "y": 0.10000000000000003
82
+ },
83
+ {
84
+ "pinId": "U1.6",
85
+ "x": -1.2000000000000002,
86
+ "y": -0.09999999999999998
87
+ },
88
+ {
89
+ "pinId": "U1.7",
90
+ "x": 1.2000000000000002,
91
+ "y": -0.10000000000000003
92
+ },
93
+ {
94
+ "pinId": "U1.8",
95
+ "x": 1.2000000000000002,
96
+ "y": 0.30000000000000004
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "chipId": "schematic_component_1",
102
+ "center": { "x": 2.7, "y": -2.095 },
103
+ "width": 2.2,
104
+ "height": 0.8,
105
+ "pins": [
106
+ { "pinId": "J1.1", "x": 1.6, "y": -1.895 },
107
+ { "pinId": "J1.2", "x": 1.6, "y": -2.095 },
108
+ { "pinId": "J1.3", "x": 1.6, "y": -2.295 }
109
+ ]
110
+ }
111
+ ],
112
+ "directConnections": [],
113
+ "netConnections": [
114
+ { "netId": "GND", "pinIds": ["U1.1", "J1.3"] },
115
+ { "netId": "VCC", "pinIds": ["U1.8", "J1.1"] },
116
+ { "netId": "MMM", "pinIds": ["J1.2"] }
117
+ ],
118
+ "availableNetLabelOrientations": {
119
+ "VCC": ["y-"],
120
+ "OUT": ["x-", "x+"],
121
+ "GND": ["y-"],
122
+ "MMM": ["x+", "x-"]
123
+ },
124
+ "maxMspPairDistance": 2.4
125
+ },
126
+ "traces": [
127
+ {
128
+ "mspPairId": "U1.1-J1.3",
129
+ "dcConnNetId": "connectivity_net0",
130
+ "globalConnNetId": "connectivity_net0",
131
+ "userNetId": "GND",
132
+ "pins": [
133
+ {
134
+ "pinId": "U1.1",
135
+ "x": 1.2000000000000002,
136
+ "y": -0.30000000000000004,
137
+ "chipId": "schematic_component_0",
138
+ "_facingDirection": "x+"
139
+ },
140
+ {
141
+ "pinId": "J1.3",
142
+ "x": 1.6,
143
+ "y": -2.295,
144
+ "chipId": "schematic_component_1",
145
+ "_facingDirection": "x-"
146
+ }
147
+ ],
148
+ "tracePath": [
149
+ { "x": 1.2000000000000002, "y": -0.30000000000000004 },
150
+ { "x": 1.4000000000000001, "y": -0.30000000000000004 },
151
+ { "x": 1.4000000000000001, "y": -1.2974999999999999 },
152
+ { "x": 1.4000000000000001, "y": -2.295 },
153
+ { "x": 1.6, "y": -2.295 }
154
+ ],
155
+ "mspConnectionPairIds": ["U1.1-J1.3"],
156
+ "pinIds": ["U1.1", "J1.3"]
157
+ }
158
+ ]
159
+ },
160
+ "singleOverlapSolver": {
161
+ "trace": {
162
+ "mspPairId": "U1.1-J1.3",
163
+ "dcConnNetId": "connectivity_net0",
164
+ "globalConnNetId": "connectivity_net0",
165
+ "userNetId": "GND",
166
+ "pins": [
167
+ {
168
+ "pinId": "U1.1",
169
+ "x": 1.2000000000000002,
170
+ "y": -0.30000000000000004,
171
+ "chipId": "schematic_component_0",
172
+ "_facingDirection": "x+"
173
+ },
174
+ {
175
+ "pinId": "J1.3",
176
+ "x": 1.6,
177
+ "y": -2.295,
178
+ "chipId": "schematic_component_1",
179
+ "_facingDirection": "x-"
180
+ }
181
+ ],
182
+ "tracePath": [
183
+ {
184
+ "x": 1.2000000000000002,
185
+ "y": -0.30000000000000004
186
+ },
187
+ {
188
+ "x": 1.4000000000000001,
189
+ "y": -0.30000000000000004
190
+ },
191
+ {
192
+ "x": 1.4000000000000001,
193
+ "y": -1.2974999999999999
194
+ },
195
+ {
196
+ "x": 1.4000000000000001,
197
+ "y": -2.295
198
+ },
199
+ {
200
+ "x": 1.6,
201
+ "y": -2.295
202
+ }
203
+ ],
204
+ "mspConnectionPairIds": ["U1.1-J1.3"],
205
+ "pinIds": ["U1.1", "J1.3"]
206
+ },
207
+ "label": {
208
+ "globalConnNetId": "merged-group-J1-x-",
209
+ "netId": "VCC",
210
+ "mspConnectionPairIds": [],
211
+ "pinIds": ["J1.1", "J1.2"],
212
+ "orientation": "x-",
213
+ "anchorPoint": {
214
+ "x": 1.6,
215
+ "y": -1.895
216
+ },
217
+ "width": 0.4500000000000002,
218
+ "height": 0.40000000000000036,
219
+ "center": {
220
+ "x": 1.374,
221
+ "y": -1.995
222
+ }
223
+ },
224
+ "problem": {
225
+ "chips": [
226
+ {
227
+ "chipId": "schematic_component_0",
228
+ "center": {
229
+ "x": 0,
230
+ "y": 0
231
+ },
232
+ "width": 2.4000000000000004,
233
+ "height": 1,
234
+ "pins": [
235
+ {
236
+ "pinId": "U1.1",
237
+ "x": 1.2000000000000002,
238
+ "y": -0.30000000000000004
239
+ },
240
+ {
241
+ "pinId": "U1.2",
242
+ "x": -1.2000000000000002,
243
+ "y": -0.30000000000000004
244
+ },
245
+ {
246
+ "pinId": "U1.3",
247
+ "x": 1.2000000000000002,
248
+ "y": 0.09999999999999998
249
+ },
250
+ {
251
+ "pinId": "U1.4",
252
+ "x": -1.2000000000000002,
253
+ "y": 0.30000000000000004
254
+ },
255
+ {
256
+ "pinId": "U1.5",
257
+ "x": -1.2000000000000002,
258
+ "y": 0.10000000000000003
259
+ },
260
+ {
261
+ "pinId": "U1.6",
262
+ "x": -1.2000000000000002,
263
+ "y": -0.09999999999999998
264
+ },
265
+ {
266
+ "pinId": "U1.7",
267
+ "x": 1.2000000000000002,
268
+ "y": -0.10000000000000003
269
+ },
270
+ {
271
+ "pinId": "U1.8",
272
+ "x": 1.2000000000000002,
273
+ "y": 0.30000000000000004
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "chipId": "schematic_component_1",
279
+ "center": {
280
+ "x": 2.7,
281
+ "y": -2.095
282
+ },
283
+ "width": 2.2,
284
+ "height": 0.8,
285
+ "pins": [
286
+ {
287
+ "pinId": "J1.1",
288
+ "x": 1.6,
289
+ "y": -1.895
290
+ },
291
+ {
292
+ "pinId": "J1.2",
293
+ "x": 1.6,
294
+ "y": -2.095
295
+ },
296
+ {
297
+ "pinId": "J1.3",
298
+ "x": 1.6,
299
+ "y": -2.295
300
+ }
301
+ ]
302
+ }
303
+ ],
304
+ "directConnections": [],
305
+ "netConnections": [
306
+ {
307
+ "netId": "GND",
308
+ "pinIds": ["U1.1", "J1.3"]
309
+ },
310
+ {
311
+ "netId": "VCC",
312
+ "pinIds": ["U1.8", "J1.1"]
313
+ },
314
+ {
315
+ "netId": "MMM",
316
+ "pinIds": ["J1.2"]
317
+ }
318
+ ],
319
+ "availableNetLabelOrientations": {
320
+ "VCC": ["y-"],
321
+ "OUT": ["x-", "x+"],
322
+ "GND": ["y-"],
323
+ "MMM": ["x+", "x-"]
324
+ },
325
+ "maxMspPairDistance": 2.4
326
+ },
327
+ "paddingBuffer": 0.1,
328
+ "detourCount": 0
329
+ }
330
+ }
@@ -0,0 +1,388 @@
1
+ {
2
+ "traceCleanupSolver": {
3
+ "inputProblem": {
4
+ "chips": [
5
+ {
6
+ "chipId": "schematic_component_0",
7
+ "center": {
8
+ "x": 0,
9
+ "y": 0
10
+ },
11
+ "width": 2.4000000000000004,
12
+ "height": 1,
13
+ "pins": [
14
+ {
15
+ "pinId": "U1.1",
16
+ "x": 1.2000000000000002,
17
+ "y": -0.30000000000000004
18
+ },
19
+ {
20
+ "pinId": "U1.2",
21
+ "x": -1.2000000000000002,
22
+ "y": -0.30000000000000004
23
+ },
24
+ {
25
+ "pinId": "U1.3",
26
+ "x": 1.2000000000000002,
27
+ "y": 0.09999999999999998
28
+ },
29
+ {
30
+ "pinId": "U1.4",
31
+ "x": -1.2000000000000002,
32
+ "y": 0.30000000000000004
33
+ },
34
+ {
35
+ "pinId": "U1.5",
36
+ "x": -1.2000000000000002,
37
+ "y": 0.10000000000000003
38
+ },
39
+ {
40
+ "pinId": "U1.6",
41
+ "x": -1.2000000000000002,
42
+ "y": -0.09999999999999998
43
+ },
44
+ {
45
+ "pinId": "U1.7",
46
+ "x": 1.2000000000000002,
47
+ "y": -0.10000000000000003
48
+ },
49
+ {
50
+ "pinId": "U1.8",
51
+ "x": 1.2000000000000002,
52
+ "y": 0.30000000000000004
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ "chipId": "schematic_component_1",
58
+ "center": {
59
+ "x": 2.7,
60
+ "y": -2.095
61
+ },
62
+ "width": 2.2,
63
+ "height": 0.8,
64
+ "pins": [
65
+ {
66
+ "pinId": "J1.1",
67
+ "x": 1.6,
68
+ "y": -1.895
69
+ },
70
+ {
71
+ "pinId": "J1.2",
72
+ "x": 1.6,
73
+ "y": -2.095
74
+ },
75
+ {
76
+ "pinId": "J1.3",
77
+ "x": 1.6,
78
+ "y": -2.295
79
+ }
80
+ ]
81
+ }
82
+ ],
83
+ "directConnections": [],
84
+ "netConnections": [
85
+ {
86
+ "netId": "GND",
87
+ "pinIds": ["U1.1", "J1.3"]
88
+ },
89
+ {
90
+ "netId": "VCC",
91
+ "pinIds": ["U1.8", "J1.1"]
92
+ },
93
+ {
94
+ "netId": "MMM",
95
+ "pinIds": ["J1.2"]
96
+ }
97
+ ],
98
+ "availableNetLabelOrientations": {
99
+ "VCC": ["y-"],
100
+ "OUT": ["x-", "x+"],
101
+ "GND": ["y-"],
102
+ "MMM": ["x+", "x-"]
103
+ },
104
+ "maxMspPairDistance": 2.4
105
+ },
106
+ "allTraces": [
107
+ {
108
+ "mspPairId": "U1.1-J1.3",
109
+ "dcConnNetId": "connectivity_net0",
110
+ "globalConnNetId": "connectivity_net0",
111
+ "userNetId": "GND",
112
+ "pins": [
113
+ {
114
+ "pinId": "U1.1",
115
+ "x": 1.2000000000000002,
116
+ "y": -0.30000000000000004,
117
+ "chipId": "schematic_component_0",
118
+ "_facingDirection": "x+"
119
+ },
120
+ {
121
+ "pinId": "J1.3",
122
+ "x": 1.6,
123
+ "y": -2.295,
124
+ "chipId": "schematic_component_1",
125
+ "_facingDirection": "x-"
126
+ }
127
+ ],
128
+ "tracePath": [
129
+ {
130
+ "x": 1.2000000000000002,
131
+ "y": -0.30000000000000004
132
+ },
133
+ {
134
+ "x": 1.4000000000000001,
135
+ "y": -0.30000000000000004
136
+ },
137
+ {
138
+ "x": 1.4000000000000001,
139
+ "y": -1.6949999999999998
140
+ },
141
+ {
142
+ "x": 1.049,
143
+ "y": -1.6949999999999998
144
+ },
145
+ {
146
+ "x": 1.049,
147
+ "y": -2.2950000000000004
148
+ },
149
+ {
150
+ "x": 1.6,
151
+ "y": -2.295
152
+ }
153
+ ],
154
+ "mspConnectionPairIds": ["U1.1-J1.3"],
155
+ "pinIds": ["U1.1", "J1.3"]
156
+ }
157
+ ],
158
+ "targetTraceIds": ["U1.1-J1.3"],
159
+ "allLabelPlacements": [
160
+ {
161
+ "globalConnNetId": "connectivity_net0",
162
+ "dcConnNetId": "connectivity_net0",
163
+ "netId": "GND",
164
+ "mspConnectionPairIds": ["U1.1-J1.3"],
165
+ "pinIds": ["U1.1", "J1.3"],
166
+ "orientation": "y-",
167
+ "anchorPoint": {
168
+ "x": 1.4000000000000001,
169
+ "y": -2.295
170
+ },
171
+ "width": 0.2,
172
+ "height": 0.45,
173
+ "center": {
174
+ "x": 1.4000000000000001,
175
+ "y": -2.52
176
+ }
177
+ },
178
+ {
179
+ "globalConnNetId": "connectivity_net1",
180
+ "netId": "VCC",
181
+ "mspConnectionPairIds": [],
182
+ "pinIds": ["U1.8"],
183
+ "orientation": "x+",
184
+ "anchorPoint": {
185
+ "x": 1.2000000000000002,
186
+ "y": 0.30000000000000004
187
+ },
188
+ "width": 0.45,
189
+ "height": 0.2,
190
+ "center": {
191
+ "x": 1.4260000000000002,
192
+ "y": 0.30000000000000004
193
+ }
194
+ },
195
+ {
196
+ "globalConnNetId": "merged-group-J1-x-",
197
+ "netId": "VCC",
198
+ "mspConnectionPairIds": [],
199
+ "pinIds": ["J1.1", "J1.2"],
200
+ "orientation": "x-",
201
+ "anchorPoint": {
202
+ "x": 1.6,
203
+ "y": -1.895
204
+ },
205
+ "width": 0.4500000000000002,
206
+ "height": 0.40000000000000036,
207
+ "center": {
208
+ "x": 1.374,
209
+ "y": -1.995
210
+ }
211
+ }
212
+ ],
213
+ "mergedLabelNetIdMap": {
214
+ "merged-group-J1-x-": ["connectivity_net1", "connectivity_net2"]
215
+ },
216
+ "paddingBuffer": 0.01
217
+ },
218
+ "singleOverlapSolver": {
219
+ "trace": {
220
+ "mspPairId": "U1.1-J1.3",
221
+ "dcConnNetId": "connectivity_net0",
222
+ "globalConnNetId": "connectivity_net0",
223
+ "userNetId": "GND",
224
+ "pins": [
225
+ {
226
+ "pinId": "U1.1",
227
+ "x": 1.2000000000000002,
228
+ "y": -0.30000000000000004,
229
+ "chipId": "schematic_component_0",
230
+ "_facingDirection": "x+"
231
+ },
232
+ {
233
+ "pinId": "J1.3",
234
+ "x": 1.6,
235
+ "y": -2.295,
236
+ "chipId": "schematic_component_1",
237
+ "_facingDirection": "x-"
238
+ }
239
+ ],
240
+ "tracePath": [
241
+ {
242
+ "x": 1.2000000000000002,
243
+ "y": -0.30000000000000004
244
+ },
245
+ {
246
+ "x": 1.4000000000000001,
247
+ "y": -0.30000000000000004
248
+ },
249
+ {
250
+ "x": 1.4000000000000001,
251
+ "y": -1.2974999999999999
252
+ },
253
+ {
254
+ "x": 1.4000000000000001,
255
+ "y": -2.295
256
+ },
257
+ {
258
+ "x": 1.6,
259
+ "y": -2.295
260
+ }
261
+ ],
262
+ "mspConnectionPairIds": ["U1.1-J1.3"],
263
+ "pinIds": ["U1.1", "J1.3"]
264
+ },
265
+ "label": {
266
+ "globalConnNetId": "merged-group-J1-x-",
267
+ "netId": "VCC",
268
+ "mspConnectionPairIds": [],
269
+ "pinIds": ["J1.1", "J1.2"],
270
+ "orientation": "x-",
271
+ "anchorPoint": {
272
+ "x": 1.6,
273
+ "y": -1.895
274
+ },
275
+ "width": 0.4500000000000002,
276
+ "height": 0.40000000000000036,
277
+ "center": {
278
+ "x": 1.374,
279
+ "y": -1.995
280
+ }
281
+ },
282
+ "problem": {
283
+ "chips": [
284
+ {
285
+ "chipId": "schematic_component_0",
286
+ "center": {
287
+ "x": 0,
288
+ "y": 0
289
+ },
290
+ "width": 2.4000000000000004,
291
+ "height": 1,
292
+ "pins": [
293
+ {
294
+ "pinId": "U1.1",
295
+ "x": 1.2000000000000002,
296
+ "y": -0.30000000000000004
297
+ },
298
+ {
299
+ "pinId": "U1.2",
300
+ "x": -1.2000000000000002,
301
+ "y": -0.30000000000000004
302
+ },
303
+ {
304
+ "pinId": "U1.3",
305
+ "x": 1.2000000000000002,
306
+ "y": 0.09999999999999998
307
+ },
308
+ {
309
+ "pinId": "U1.4",
310
+ "x": -1.2000000000000002,
311
+ "y": 0.30000000000000004
312
+ },
313
+ {
314
+ "pinId": "U1.5",
315
+ "x": -1.2000000000000002,
316
+ "y": 0.10000000000000003
317
+ },
318
+ {
319
+ "pinId": "U1.6",
320
+ "x": -1.2000000000000002,
321
+ "y": -0.09999999999999998
322
+ },
323
+ {
324
+ "pinId": "U1.7",
325
+ "x": 1.2000000000000002,
326
+ "y": -0.10000000000000003
327
+ },
328
+ {
329
+ "pinId": "U1.8",
330
+ "x": 1.2000000000000002,
331
+ "y": 0.30000000000000004
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "chipId": "schematic_component_1",
337
+ "center": {
338
+ "x": 2.7,
339
+ "y": -2.095
340
+ },
341
+ "width": 2.2,
342
+ "height": 0.8,
343
+ "pins": [
344
+ {
345
+ "pinId": "J1.1",
346
+ "x": 1.6,
347
+ "y": -1.895
348
+ },
349
+ {
350
+ "pinId": "J1.2",
351
+ "x": 1.6,
352
+ "y": -2.095
353
+ },
354
+ {
355
+ "pinId": "J1.3",
356
+ "x": 1.6,
357
+ "y": -2.295
358
+ }
359
+ ]
360
+ }
361
+ ],
362
+ "directConnections": [],
363
+ "netConnections": [
364
+ {
365
+ "netId": "GND",
366
+ "pinIds": ["U1.1", "J1.3"]
367
+ },
368
+ {
369
+ "netId": "VCC",
370
+ "pinIds": ["U1.8", "J1.1"]
371
+ },
372
+ {
373
+ "netId": "MMM",
374
+ "pinIds": ["J1.2"]
375
+ }
376
+ ],
377
+ "availableNetLabelOrientations": {
378
+ "VCC": ["y-"],
379
+ "OUT": ["x-", "x+"],
380
+ "GND": ["y-"],
381
+ "MMM": ["x+", "x-"]
382
+ },
383
+ "maxMspPairDistance": 2.4
384
+ },
385
+ "paddingBuffer": 0.1,
386
+ "detourCount": 0
387
+ }
388
+ }