@tscircuit/schematic-trace-solver 0.0.104 → 0.0.106
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.js +133 -80
- package/lib/solvers/TraceCleanupSolver/minimizeTurnsWithFilteredLabels.ts +78 -23
- package/lib/solvers/TraceCleanupSolver/sameNetRailAlignment/geometry.ts +40 -20
- package/package.json +1 -1
- package/site/bug-reports/bug-report-20260721T221026Z.page.tsx +4 -0
- package/tests/bug-reports/bug-report-20260721T221026Z/__snapshots__/bug-report-20260721T221026Z.snap.svg +345 -0
- package/tests/bug-reports/bug-report-20260721T221026Z/bug-report-20260721T221026Z.json +1750 -0
- package/tests/bug-reports/bug-report-20260721T221026Z/bug-report-20260721T221026Z.test.ts +12 -0
- package/tests/examples/__snapshots__/example19.snap.svg +3 -3
- package/tests/examples/example19.test.ts +4 -0
- package/tests/repros/__snapshots__/bugreport-001-gnd-overlap.snap.svg +1 -1
- package/tests/repros/__snapshots__/repro-core-subcircuit-missing-ground.snap.svg +56 -0
- package/tests/repros/__snapshots__/repro-example35-minimize-trace-crossing.snap.svg +256 -0
- package/tests/repros/__snapshots__/repro-vcc-pin1-detour.snap.svg +47 -0
- package/tests/repros/assets/repro-core-subcircuit-missing-ground.input.json +103 -0
- package/tests/repros/assets/repro-example35-minimize-trace-crossing.input.json +1561 -0
- package/tests/repros/repro-core-subcircuit-missing-ground.test.ts +14 -0
- package/tests/repros/repro-example35-minimize-trace-crossing.test.ts +22 -0
- package/tests/repros/repro-vcc-pin1-detour.test.ts +166 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chips": [
|
|
3
|
+
{
|
|
4
|
+
"chipId": "schematic_component_0",
|
|
5
|
+
"center": {
|
|
6
|
+
"x": -4,
|
|
7
|
+
"y": 0
|
|
8
|
+
},
|
|
9
|
+
"width": 1.9000000000000004,
|
|
10
|
+
"height": 0.8,
|
|
11
|
+
"pins": [
|
|
12
|
+
{
|
|
13
|
+
"pinId": "schematic_component_0.1",
|
|
14
|
+
"x": -2.65,
|
|
15
|
+
"y": 0.2,
|
|
16
|
+
"_facingDirection": "x+"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"pinId": "schematic_component_0.2",
|
|
20
|
+
"x": -2.65,
|
|
21
|
+
"y": 0,
|
|
22
|
+
"_facingDirection": "x+"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"pinId": "schematic_component_0.3",
|
|
26
|
+
"x": -2.65,
|
|
27
|
+
"y": -0.2,
|
|
28
|
+
"_facingDirection": "x+"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"chipId": "schematic_component_1",
|
|
34
|
+
"center": {
|
|
35
|
+
"x": 4,
|
|
36
|
+
"y": 0
|
|
37
|
+
},
|
|
38
|
+
"width": 1.6999999999999997,
|
|
39
|
+
"height": 0.8,
|
|
40
|
+
"pins": [
|
|
41
|
+
{
|
|
42
|
+
"pinId": "schematic_component_1.1",
|
|
43
|
+
"x": 2.75,
|
|
44
|
+
"y": 0.2,
|
|
45
|
+
"_facingDirection": "x-"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"pinId": "schematic_component_1.2",
|
|
49
|
+
"x": 2.75,
|
|
50
|
+
"y": 0,
|
|
51
|
+
"_facingDirection": "x-"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"pinId": "schematic_component_1.3",
|
|
55
|
+
"x": 2.75,
|
|
56
|
+
"y": -0.2,
|
|
57
|
+
"_facingDirection": "x-"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"directConnections": [
|
|
63
|
+
{
|
|
64
|
+
"pinIds": [
|
|
65
|
+
"schematic_component_0.2",
|
|
66
|
+
"schematic_component_1.3"
|
|
67
|
+
],
|
|
68
|
+
"netId": ".power > .VOUT_3V3 to .load > .3V3"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"pinIds": [
|
|
72
|
+
"schematic_component_0.3",
|
|
73
|
+
"schematic_component_1.2"
|
|
74
|
+
],
|
|
75
|
+
"netId": ".power > .SEC_GND to .load > .GND"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"netConnections": [],
|
|
79
|
+
"textBoxes": [
|
|
80
|
+
{
|
|
81
|
+
"chipId": "schematic_component_0",
|
|
82
|
+
"center": {
|
|
83
|
+
"x": -4.65,
|
|
84
|
+
"y": 0.53
|
|
85
|
+
},
|
|
86
|
+
"width": 0.5999999999999996,
|
|
87
|
+
"height": 0.17999999999999994,
|
|
88
|
+
"text": "power"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"chipId": "schematic_component_1",
|
|
92
|
+
"center": {
|
|
93
|
+
"x": 3.3899999999999997,
|
|
94
|
+
"y": 0.53
|
|
95
|
+
},
|
|
96
|
+
"width": 0.48,
|
|
97
|
+
"height": 0.17999999999999994,
|
|
98
|
+
"text": "load"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"availableNetLabelOrientations": {},
|
|
102
|
+
"maxMspPairDistance": 2.4
|
|
103
|
+
}
|