@tscircuit/schematic-trace-solver 0.0.48 → 0.0.50
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/README.md +1 -1
- package/dist/index.d.ts +128 -1
- package/dist/index.js +1450 -42
- package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +682 -0
- package/lib/solvers/AvailableNetOrientationSolver/constants.ts +6 -0
- package/lib/solvers/AvailableNetOrientationSolver/geometry.ts +192 -0
- package/lib/solvers/AvailableNetOrientationSolver/traces.ts +43 -0
- package/lib/solvers/AvailableNetOrientationSolver/types.ts +44 -0
- package/lib/solvers/AvailableNetOrientationSolver/visualize.ts +123 -0
- package/lib/solvers/Example28Solver/Example28Solver.ts +182 -0
- package/lib/solvers/Example28Solver/geometry.ts +246 -0
- package/lib/solvers/Example28Solver/labelMovement.ts +82 -0
- package/lib/solvers/Example28Solver/reroute.ts +368 -0
- package/lib/solvers/Example28Solver/types.ts +47 -0
- package/lib/solvers/Example28Solver/visualize.ts +96 -0
- package/lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver.ts +30 -0
- package/package.json +1 -1
- package/site/SchematicTraceSingleLineSolver2/SchematicTraceSingleLineSolver2_01-example17-d1_1-u1_1.page.tsx +2 -0
- package/site/TraceCleanupSolver/TraceCleanupSolver.page.tsx +23 -0
- package/site/TraceLabelOverlapAvoidanceSolver/MergedNetLabelObstacles.page.tsx +18 -0
- package/site/TraceLabelOverlapAvoidanceSolver/OverlapAvoidanceStepSolver.page.tsx +24 -0
- package/site/TraceLabelOverlapAvoidanceSolver/SingleOverlapSolver.page.tsx +10 -0
- package/site/TraceLabelOverlapAvoidanceSolver/TraceLabelOverlapAvoidanceSolver.page.tsx +146 -0
- package/site/TraceLabelOverlapAvoidanceSolver/renderComparisonView01.page.tsx +32 -0
- package/site/TraceLabelOverlapAvoidanceSolver/renderComparisonView02.page.tsx +32 -0
- package/site/TraceLabelOverlapAvoidanceSolver/renderComparisonView03.page.tsx +35 -0
- package/site/examples/example01.page.tsx +6 -0
- package/site/examples/example02.page.tsx +4 -180
- package/site/examples/example03.page.tsx +3 -212
- package/site/examples/example04.page.tsx +6 -0
- package/site/examples/example05.page.tsx +3 -179
- package/site/examples/example06.page.tsx +3 -57
- package/site/examples/example07.page.tsx +3 -132
- package/site/examples/example08.page.tsx +3 -91
- package/site/examples/example09.page.tsx +3 -414
- package/site/examples/example10.page.tsx +3 -75
- package/site/examples/example11.page.tsx +3 -116
- package/site/examples/example12.page.tsx +3 -94
- package/site/examples/example13.page.tsx +3 -216
- package/site/examples/example14.page.tsx +3 -207
- package/site/examples/example15.page.tsx +6 -0
- package/site/examples/example16.page.tsx +6 -0
- package/site/examples/example17.page.tsx +6 -0
- package/site/examples/example18.page.tsx +3 -178
- package/site/examples/example19.page.tsx +3 -166
- package/site/examples/example20.page.tsx +3 -100
- package/site/examples/example21.page.tsx +3 -174
- package/site/examples/example22.page.tsx +3 -105
- package/site/examples/example23.page.tsx +3 -134
- package/site/examples/example24.page.tsx +3 -125
- package/site/examples/example25.page.tsx +2 -0
- package/site/examples/example26.page.tsx +2 -0
- package/site/examples/example27.page.tsx +2 -0
- package/site/examples/example28.page.tsx +3 -58
- package/site/examples/example29.page.tsx +6 -0
- package/site/examples/example30.page.tsx +6 -0
- package/site/examples/example31.page.tsx +4 -0
- package/tests/assets/example01.json +109 -0
- package/tests/assets/example02.json +178 -0
- package/tests/assets/example03.json +210 -0
- package/tests/assets/example04.json +41 -0
- package/tests/assets/example05.json +175 -0
- package/tests/assets/example06.json +55 -0
- package/tests/assets/example07.json +130 -0
- package/tests/assets/example08.json +89 -0
- package/tests/assets/example09.json +412 -0
- package/tests/assets/example10.json +73 -0
- package/tests/assets/example11.json +114 -0
- package/tests/assets/example12.json +92 -0
- package/tests/assets/example13.json +214 -0
- package/tests/assets/example14.json +205 -0
- package/tests/assets/example15.json +618 -0
- package/tests/assets/example16.json +102 -0
- package/tests/assets/example17.json +160 -0
- package/tests/assets/example18.json +176 -0
- package/tests/assets/example19.json +164 -0
- package/tests/assets/example20.json +98 -0
- package/tests/assets/example21.json +172 -0
- package/tests/assets/example22.json +103 -0
- package/tests/assets/example23.json +132 -0
- package/tests/assets/example24.json +123 -0
- package/tests/assets/example25.json +146 -33
- package/tests/assets/example26.json +51 -1134
- package/tests/assets/example27.json +151 -91
- package/tests/assets/example28.json +56 -0
- package/tests/assets/example29.json +1206 -0
- package/tests/assets/example30.json +168 -0
- package/tests/assets/example31.json +46 -0
- package/tests/examples/__snapshots__/example01.snap.svg +12 -6
- package/tests/examples/__snapshots__/example02.snap.svg +16 -8
- package/tests/examples/__snapshots__/example03.snap.svg +36 -18
- package/tests/examples/__snapshots__/example04.snap.svg +8 -4
- package/tests/examples/__snapshots__/example05.snap.svg +4 -2
- package/tests/examples/__snapshots__/example06.snap.svg +4 -2
- package/tests/examples/__snapshots__/example07.snap.svg +20 -10
- package/tests/examples/__snapshots__/example08.snap.svg +16 -8
- package/tests/examples/__snapshots__/example09.snap.svg +80 -40
- package/tests/examples/__snapshots__/example10.snap.svg +16 -8
- package/tests/examples/__snapshots__/example11.snap.svg +24 -12
- package/tests/examples/__snapshots__/example12.snap.svg +41 -30
- package/tests/examples/__snapshots__/example13.snap.svg +38 -16
- package/tests/examples/__snapshots__/example14.snap.svg +121 -48
- package/tests/examples/__snapshots__/example15.snap.svg +36 -18
- package/tests/examples/__snapshots__/example16.snap.svg +41 -27
- package/tests/examples/__snapshots__/example17.snap.svg +16 -8
- package/tests/examples/__snapshots__/example18.snap.svg +20 -10
- package/tests/examples/__snapshots__/example19.snap.svg +16 -8
- package/tests/examples/__snapshots__/example20.snap.svg +45 -131
- package/tests/examples/__snapshots__/example21.snap.svg +93 -65
- package/tests/examples/__snapshots__/example22.snap.svg +43 -23
- package/tests/examples/__snapshots__/example23.snap.svg +62 -26
- package/tests/examples/__snapshots__/example24.snap.svg +50 -28
- package/tests/examples/__snapshots__/example25.snap.svg +175 -49
- package/tests/examples/__snapshots__/example26.snap.svg +16 -8
- package/tests/examples/__snapshots__/example27.snap.svg +24 -12
- package/tests/examples/__snapshots__/example28.snap.svg +24 -18
- package/tests/examples/__snapshots__/example29.snap.svg +184 -92
- package/tests/examples/__snapshots__/example30.snap.svg +48 -24
- package/tests/examples/__snapshots__/example31.snap.svg +88 -0
- package/tests/examples/example01.test.ts +2 -2
- package/tests/examples/example02.test.ts +2 -2
- package/tests/examples/example03.test.ts +2 -2
- package/tests/examples/example04.test.ts +2 -2
- package/tests/examples/example05.test.ts +2 -2
- package/tests/examples/example06.test.ts +2 -2
- package/tests/examples/example07.test.ts +2 -2
- package/tests/examples/example08.test.ts +2 -2
- package/tests/examples/example09.test.ts +2 -2
- package/tests/examples/example10.test.ts +2 -2
- package/tests/examples/{example11.test.tsx → example11.test.ts} +2 -2
- package/tests/examples/{example12.test.tsx → example12.test.ts} +2 -2
- package/tests/examples/{example13.test.tsx → example13.test.ts} +2 -2
- package/tests/examples/example14.test.ts +12 -0
- package/tests/examples/example15.test.ts +12 -0
- package/tests/examples/example16.test.ts +12 -0
- package/tests/examples/example17.test.ts +12 -0
- package/tests/examples/example18.test.ts +12 -0
- package/tests/examples/example19.test.ts +12 -0
- package/tests/examples/example20.test.ts +12 -0
- package/tests/examples/example21.test.ts +12 -0
- package/tests/examples/example22.test.ts +12 -0
- package/tests/examples/example23.test.ts +12 -0
- package/tests/examples/example24.test.ts +12 -0
- package/tests/examples/example25.test.ts +12 -0
- package/tests/examples/example26.test.ts +12 -0
- package/tests/examples/example27.test.ts +3 -232
- package/tests/examples/example28.test.ts +2 -2
- package/tests/examples/example29.test.ts +1 -2
- package/tests/examples/example30.test.ts +2 -2
- package/tests/examples/example31.test.ts +12 -0
- package/site/examples/example01-basic.page.tsx +0 -105
- package/site/examples/example04-single-symbol.page.tsx +0 -46
- package/site/examples/example15-rp2040-caps.page.tsx +0 -623
- package/site/examples/example16-core-repro51.page.tsx +0 -107
- package/site/examples/example17-straight-line-trace.page.tsx +0 -165
- package/tests/examples/example14.test.tsx +0 -11
- package/tests/examples/example15.test.tsx +0 -629
- package/tests/examples/example16.test.tsx +0 -113
- package/tests/examples/example17.test.tsx +0 -171
- package/tests/examples/example18.test.tsx +0 -187
- package/tests/examples/example19.test.tsx +0 -175
- package/tests/examples/example20.test.tsx +0 -190
- package/tests/examples/example21.test.tsx +0 -183
- package/tests/examples/example22.test.tsx +0 -109
- package/tests/examples/example23.test.tsx +0 -109
- package/tests/examples/example24.test.tsx +0 -114
- package/tests/examples/example25.test.tsx +0 -143
- package/tests/examples/example26.test.tsx +0 -134
|
@@ -1,78 +1,6 @@
|
|
|
1
1
|
import { PipelineDebugger } from "site/components/PipelineDebugger"
|
|
2
|
-
import
|
|
2
|
+
import inputProblem from "../../tests/assets/example10.json"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
chips: [
|
|
6
|
-
{
|
|
7
|
-
chipId: "schematic_component_0",
|
|
8
|
-
center: {
|
|
9
|
-
x: -2,
|
|
10
|
-
y: 0,
|
|
11
|
-
},
|
|
12
|
-
width: 0.8122621299999988,
|
|
13
|
-
height: 1.1038501999999986,
|
|
14
|
-
pins: [
|
|
15
|
-
{
|
|
16
|
-
pinId: "Q1_NPN.1",
|
|
17
|
-
x: -2.2855604555,
|
|
18
|
-
y: -0.5519250999999993,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
pinId: "Q1_NPN.2",
|
|
22
|
-
x: -2.2855604555000015,
|
|
23
|
-
y: 0.5519250999999993,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
pinId: "Q1_NPN.3",
|
|
27
|
-
x: -1.5938689350000006,
|
|
28
|
-
y: 0.004526300000001031,
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
chipId: "schematic_component_1",
|
|
34
|
-
center: {
|
|
35
|
-
x: 3.5,
|
|
36
|
-
y: 0,
|
|
37
|
-
},
|
|
38
|
-
width: 0.8122621299999988,
|
|
39
|
-
height: 1.1038501999999986,
|
|
40
|
-
pins: [
|
|
41
|
-
{
|
|
42
|
-
pinId: "Q2_PNP.1",
|
|
43
|
-
x: 3.2144395445,
|
|
44
|
-
y: -0.5519250999999993,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
pinId: "Q2_PNP.2",
|
|
48
|
-
x: 3.2144395444999985,
|
|
49
|
-
y: 0.5519250999999993,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
pinId: "Q2_PNP.3",
|
|
53
|
-
x: 3.9061310649999994,
|
|
54
|
-
y: 0.004526300000001031,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
directConnections: [],
|
|
60
|
-
netConnections: [
|
|
61
|
-
{
|
|
62
|
-
netId: "collector",
|
|
63
|
-
pinIds: ["Q1_NPN.1", "Q2_PNP.1"],
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
netId: "emitter",
|
|
67
|
-
pinIds: ["Q1_NPN.2", "Q2_PNP.2"],
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
netId: "base",
|
|
71
|
-
pinIds: ["Q1_NPN.3", "Q2_PNP.3"],
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
availableNetLabelOrientations: {},
|
|
75
|
-
maxMspPairDistance: 2,
|
|
76
|
-
}
|
|
4
|
+
export { inputProblem }
|
|
77
5
|
|
|
78
|
-
export default () => <PipelineDebugger inputProblem={inputProblem} />
|
|
6
|
+
export default () => <PipelineDebugger inputProblem={inputProblem as any} />
|
|
@@ -1,119 +1,6 @@
|
|
|
1
1
|
import { PipelineDebugger } from "site/components/PipelineDebugger"
|
|
2
|
-
import
|
|
2
|
+
import inputProblem from "../../tests/assets/example11.json"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
chips: [
|
|
6
|
-
{
|
|
7
|
-
chipId: "schematic_component_0",
|
|
8
|
-
center: {
|
|
9
|
-
x: -1.03,
|
|
10
|
-
y: 0.765,
|
|
11
|
-
},
|
|
12
|
-
width: 1.06,
|
|
13
|
-
height: 0.388910699999999,
|
|
14
|
-
pins: [
|
|
15
|
-
{
|
|
16
|
-
pinId: "R1.1",
|
|
17
|
-
x: -1.58,
|
|
18
|
-
y: 0.765,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
pinId: "R1.2",
|
|
22
|
-
x: -0.48,
|
|
23
|
-
y: 0.765,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
chipId: "schematic_component_1",
|
|
29
|
-
center: {
|
|
30
|
-
x: 1.03,
|
|
31
|
-
y: 0.765,
|
|
32
|
-
},
|
|
33
|
-
width: 1.06,
|
|
34
|
-
height: 0.388910699999999,
|
|
35
|
-
pins: [
|
|
36
|
-
{
|
|
37
|
-
pinId: "R2.1",
|
|
38
|
-
x: 0.48,
|
|
39
|
-
y: 0.765,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
pinId: "R2.2",
|
|
43
|
-
x: 1.58,
|
|
44
|
-
y: 0.765,
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
chipId: "schematic_component_2",
|
|
50
|
-
center: {
|
|
51
|
-
x: -1.03,
|
|
52
|
-
y: -0.765,
|
|
53
|
-
},
|
|
54
|
-
width: 1.06,
|
|
55
|
-
height: 0.388910699999999,
|
|
56
|
-
pins: [
|
|
57
|
-
{
|
|
58
|
-
pinId: "R3.1",
|
|
59
|
-
x: -1.58,
|
|
60
|
-
y: -0.765,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
pinId: "R3.2",
|
|
64
|
-
x: -0.48,
|
|
65
|
-
y: -0.765,
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
chipId: "schematic_component_3",
|
|
71
|
-
center: {
|
|
72
|
-
x: 1.03,
|
|
73
|
-
y: -0.765,
|
|
74
|
-
},
|
|
75
|
-
width: 0.88,
|
|
76
|
-
height: 0.53,
|
|
77
|
-
pins: [
|
|
78
|
-
{
|
|
79
|
-
pinId: "J1.1",
|
|
80
|
-
x: 0.5800000000000001,
|
|
81
|
-
y: -0.665,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
pinId: "J1.2",
|
|
85
|
-
x: 1.03,
|
|
86
|
-
y: -1.0150000000000001,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
pinId: "J1.3",
|
|
90
|
-
x: 1.48,
|
|
91
|
-
y: -0.665,
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
directConnections: [
|
|
97
|
-
{
|
|
98
|
-
pinIds: ["R2.1", "R3.2"],
|
|
99
|
-
netId: ".R2 > .pin1 to .R3 > .pin2",
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
pinIds: ["R2.2", "R3.1"],
|
|
103
|
-
netId: ".R2 > .pin2 to .R3 > .pin1",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
pinIds: ["J1.1", "R1.1"],
|
|
107
|
-
netId: ".J1 > .pin1 to .R1 > .pin1",
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
pinIds: ["J1.3", "R1.2"],
|
|
111
|
-
netId: ".J1 > .pin3 to .R1 > .pin2",
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
netConnections: [],
|
|
115
|
-
availableNetLabelOrientations: {},
|
|
116
|
-
maxMspPairDistance: 5,
|
|
117
|
-
}
|
|
4
|
+
export { inputProblem }
|
|
118
5
|
|
|
119
|
-
export default () => <PipelineDebugger inputProblem={inputProblem} />
|
|
6
|
+
export default () => <PipelineDebugger inputProblem={inputProblem as any} />
|
|
@@ -1,97 +1,6 @@
|
|
|
1
1
|
import { PipelineDebugger } from "site/components/PipelineDebugger"
|
|
2
|
-
import
|
|
2
|
+
import inputProblem from "../../tests/assets/example12.json"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
chips: [
|
|
6
|
-
{
|
|
7
|
-
chipId: "schematic_component_0",
|
|
8
|
-
center: {
|
|
9
|
-
x: 0,
|
|
10
|
-
y: 0,
|
|
11
|
-
},
|
|
12
|
-
width: 1.4000000000000001,
|
|
13
|
-
height: 0.8,
|
|
14
|
-
pins: [
|
|
15
|
-
{
|
|
16
|
-
pinId: "J1.1",
|
|
17
|
-
x: 1.1,
|
|
18
|
-
y: 0.2,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
pinId: "J1.2",
|
|
22
|
-
x: 1.1,
|
|
23
|
-
y: 0,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
pinId: "J1.3",
|
|
27
|
-
x: 1.1,
|
|
28
|
-
y: -0.2,
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
chipId: "schematic_component_1",
|
|
34
|
-
center: {
|
|
35
|
-
x: 1.0999999999999996,
|
|
36
|
-
y: -1.7944553499999996,
|
|
37
|
-
},
|
|
38
|
-
width: 1.06,
|
|
39
|
-
height: 0.388910699999999,
|
|
40
|
-
pins: [
|
|
41
|
-
{
|
|
42
|
-
pinId: "R1.1",
|
|
43
|
-
x: 0.5499999999999996,
|
|
44
|
-
y: -1.7944553499999996,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
pinId: "R1.2",
|
|
48
|
-
x: 1.6499999999999997,
|
|
49
|
-
y: -1.7944553499999996,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
chipId: "schematic_component_2",
|
|
55
|
-
center: {
|
|
56
|
-
x: 2.86,
|
|
57
|
-
y: 0.01999999999999985,
|
|
58
|
-
},
|
|
59
|
-
width: 1.06,
|
|
60
|
-
height: 0.84,
|
|
61
|
-
pins: [
|
|
62
|
-
{
|
|
63
|
-
pinId: "C1.1",
|
|
64
|
-
x: 2.3099999999999996,
|
|
65
|
-
y: 0.01999999999999985,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
pinId: "C1.2",
|
|
69
|
-
x: 3.41,
|
|
70
|
-
y: 0.01999999999999985,
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
directConnections: [],
|
|
76
|
-
netConnections: [
|
|
77
|
-
{
|
|
78
|
-
netId: "VCC",
|
|
79
|
-
pinIds: ["J1.1", "C1.1"],
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
netId: "OUT",
|
|
83
|
-
pinIds: ["J1.2", "R1.1"],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
netId: "GND",
|
|
87
|
-
pinIds: ["J1.3", "R1.2", "C1.2"],
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
availableNetLabelOrientations: {
|
|
91
|
-
VCC: ["y+"],
|
|
92
|
-
GND: ["y-"],
|
|
93
|
-
},
|
|
94
|
-
maxMspPairDistance: 5,
|
|
95
|
-
}
|
|
4
|
+
export { inputProblem }
|
|
96
5
|
|
|
97
|
-
export default () => <PipelineDebugger inputProblem={inputProblem} />
|
|
6
|
+
export default () => <PipelineDebugger inputProblem={inputProblem as any} />
|
|
@@ -1,219 +1,6 @@
|
|
|
1
1
|
import { PipelineDebugger } from "site/components/PipelineDebugger"
|
|
2
|
-
import
|
|
2
|
+
import inputProblem from "../../tests/assets/example13.json"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
chips: [
|
|
6
|
-
{
|
|
7
|
-
chipId: "schematic_component_0",
|
|
8
|
-
center: {
|
|
9
|
-
x: 0,
|
|
10
|
-
y: 0,
|
|
11
|
-
},
|
|
12
|
-
width: 1.5,
|
|
13
|
-
height: 3.75,
|
|
14
|
-
pins: [
|
|
15
|
-
{
|
|
16
|
-
pinId: "PWR1.7",
|
|
17
|
-
x: 1.15,
|
|
18
|
-
y: 0.75,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
pinId: "PWR1.6",
|
|
22
|
-
x: 1.15,
|
|
23
|
-
y: 0,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
pinId: "PWR1.5",
|
|
27
|
-
x: 1.15,
|
|
28
|
-
y: -0.75,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
pinId: "PWR1.4",
|
|
32
|
-
x: -1.15,
|
|
33
|
-
y: -1.125,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
pinId: "PWR1.3",
|
|
37
|
-
x: -1.15,
|
|
38
|
-
y: -0.375,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
pinId: "PWR1.2",
|
|
42
|
-
x: -1.15,
|
|
43
|
-
y: 0.375,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
pinId: "PWR1.1",
|
|
47
|
-
x: -1.15,
|
|
48
|
-
y: 1.125,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
chipId: "schematic_component_1",
|
|
54
|
-
center: {
|
|
55
|
-
x: -3,
|
|
56
|
-
y: 0,
|
|
57
|
-
},
|
|
58
|
-
width: 1.06,
|
|
59
|
-
height: 0.388910699999999,
|
|
60
|
-
pins: [
|
|
61
|
-
{
|
|
62
|
-
pinId: "R6.1",
|
|
63
|
-
x: -3.55,
|
|
64
|
-
y: 0,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
pinId: "R6.2",
|
|
68
|
-
x: -2.45,
|
|
69
|
-
y: 0,
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
chipId: "schematic_component_2",
|
|
75
|
-
center: {
|
|
76
|
-
x: -3,
|
|
77
|
-
y: -2,
|
|
78
|
-
},
|
|
79
|
-
width: 1.06,
|
|
80
|
-
height: 0.388910699999999,
|
|
81
|
-
pins: [
|
|
82
|
-
{
|
|
83
|
-
pinId: "R7.1",
|
|
84
|
-
x: -3.55,
|
|
85
|
-
y: -1.9999999999999998,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
pinId: "R7.2",
|
|
89
|
-
x: -2.45,
|
|
90
|
-
y: -1.9999999999999998,
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
chipId: "schematic_component_3",
|
|
96
|
-
center: {
|
|
97
|
-
x: -3,
|
|
98
|
-
y: 2,
|
|
99
|
-
},
|
|
100
|
-
width: 1.06,
|
|
101
|
-
height: 0.388910699999999,
|
|
102
|
-
pins: [
|
|
103
|
-
{
|
|
104
|
-
pinId: "R8.1",
|
|
105
|
-
x: -3.55,
|
|
106
|
-
y: 2,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
pinId: "R8.2",
|
|
110
|
-
x: -2.45,
|
|
111
|
-
y: 2,
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
chipId: "schematic_component_4",
|
|
117
|
-
center: {
|
|
118
|
-
x: 3,
|
|
119
|
-
y: -1.5,
|
|
120
|
-
},
|
|
121
|
-
width: 1.06,
|
|
122
|
-
height: 0.84,
|
|
123
|
-
pins: [
|
|
124
|
-
{
|
|
125
|
-
pinId: "C6.1",
|
|
126
|
-
x: 2.45,
|
|
127
|
-
y: -1.5,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
pinId: "C6.2",
|
|
131
|
-
x: 3.55,
|
|
132
|
-
y: -1.5,
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
chipId: "schematic_component_5",
|
|
138
|
-
center: {
|
|
139
|
-
x: 3,
|
|
140
|
-
y: 0,
|
|
141
|
-
},
|
|
142
|
-
width: 1.06,
|
|
143
|
-
height: 0.84,
|
|
144
|
-
pins: [
|
|
145
|
-
{
|
|
146
|
-
pinId: "C7.1",
|
|
147
|
-
x: 2.45,
|
|
148
|
-
y: 0,
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
pinId: "C7.2",
|
|
152
|
-
x: 3.55,
|
|
153
|
-
y: 0,
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
chipId: "schematic_component_6",
|
|
159
|
-
center: {
|
|
160
|
-
x: 4,
|
|
161
|
-
y: 3,
|
|
162
|
-
},
|
|
163
|
-
width: 1.13,
|
|
164
|
-
height: 0.65,
|
|
165
|
-
pins: [
|
|
166
|
-
{
|
|
167
|
-
pinId: "LED1.1",
|
|
168
|
-
x: 3.46,
|
|
169
|
-
y: 3,
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
pinId: "LED1.2",
|
|
173
|
-
x: 4.54,
|
|
174
|
-
y: 3,
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
},
|
|
178
|
-
],
|
|
179
|
-
directConnections: [
|
|
180
|
-
{
|
|
181
|
-
pinIds: ["R6.1", "PWR1.1"],
|
|
182
|
-
netId: ".R6 > .pin1 to .PWR1 > .OUT",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
pinIds: ["LED1.1", "R8.2"],
|
|
186
|
-
netId: ".LED1 > .pos to .R8 > .pin2",
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
pinIds: ["PWR1.2", "R6.2"],
|
|
190
|
-
netId: ".PWR1 > .FB to .R6 > .pin2",
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
pinIds: ["PWR1.2", "R7.1"],
|
|
194
|
-
netId: ".PWR1 > .FB to .R7 > .pin1",
|
|
195
|
-
},
|
|
196
|
-
],
|
|
197
|
-
netConnections: [
|
|
198
|
-
{
|
|
199
|
-
netId: "gnd",
|
|
200
|
-
pinIds: ["PWR1.7", "PWR1.3", "R7.2", "C6.2", "C7.2", "LED1.2"],
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
netId: "v5",
|
|
204
|
-
pinIds: ["PWR1.6", "PWR1.4", "C6.1"],
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
netId: "v3_3",
|
|
208
|
-
pinIds: ["PWR1.1", "R6.1", "R8.1", "C7.1"],
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
availableNetLabelOrientations: {
|
|
212
|
-
gnd: ["y-"],
|
|
213
|
-
v5: ["y+"],
|
|
214
|
-
v3_3: ["y+"],
|
|
215
|
-
},
|
|
216
|
-
maxMspPairDistance: 5,
|
|
217
|
-
}
|
|
4
|
+
export { inputProblem }
|
|
218
5
|
|
|
219
|
-
export default () => <PipelineDebugger inputProblem={inputProblem} />
|
|
6
|
+
export default () => <PipelineDebugger inputProblem={inputProblem as any} />
|