@tscircuit/schematic-trace-solver 0.0.19 → 0.0.20
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/package.json
CHANGED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { PipelineDebugger } from "site/components/PipelineDebugger"
|
|
2
|
+
import type { InputProblem } from "lib/types/InputProblem"
|
|
3
|
+
|
|
4
|
+
const inputProblem: InputProblem = {
|
|
5
|
+
chips: [
|
|
6
|
+
{
|
|
7
|
+
chipId: "schematic_component_0",
|
|
8
|
+
center: {
|
|
9
|
+
x: 4,
|
|
10
|
+
y: 0,
|
|
11
|
+
},
|
|
12
|
+
width: 1.1025814,
|
|
13
|
+
height: 0.388910699999999,
|
|
14
|
+
pins: [
|
|
15
|
+
{
|
|
16
|
+
pinId: "R1.1",
|
|
17
|
+
x: 3.4487093,
|
|
18
|
+
y: 0.0002732499999993365,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
pinId: "R1.2",
|
|
22
|
+
x: 4.5512907,
|
|
23
|
+
y: -0.0002732499999993365,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
chipId: "schematic_component_1",
|
|
29
|
+
center: {
|
|
30
|
+
x: 0,
|
|
31
|
+
y: 0,
|
|
32
|
+
},
|
|
33
|
+
width: 1.2000000000000002,
|
|
34
|
+
height: 1,
|
|
35
|
+
pins: [
|
|
36
|
+
{
|
|
37
|
+
pinId: "U1.1",
|
|
38
|
+
x: -0.6000000000000001,
|
|
39
|
+
y: 0.30000000000000004,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
pinId: "U1.2",
|
|
43
|
+
x: -0.6000000000000001,
|
|
44
|
+
y: 0.10000000000000003,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
pinId: "U1.3",
|
|
48
|
+
x: -0.6000000000000001,
|
|
49
|
+
y: -0.09999999999999998,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
pinId: "U1.4",
|
|
53
|
+
x: -0.6000000000000001,
|
|
54
|
+
y: -0.30000000000000004,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
pinId: "U1.5",
|
|
58
|
+
x: 0.6000000000000001,
|
|
59
|
+
y: -0.30000000000000004,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
pinId: "U1.6",
|
|
63
|
+
x: 0.6000000000000001,
|
|
64
|
+
y: -0.10000000000000003,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
pinId: "U1.7",
|
|
68
|
+
x: 0.6000000000000001,
|
|
69
|
+
y: 0.09999999999999998,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
pinId: "U1.8",
|
|
73
|
+
x: 0.6000000000000001,
|
|
74
|
+
y: 0.30000000000000004,
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
directConnections: [
|
|
80
|
+
{
|
|
81
|
+
pinIds: ["U1.1", "R1.1"],
|
|
82
|
+
netId: "chip.U1 > port.pin1 to R1.1",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
pinIds: ["U1.6", "R1.2"],
|
|
86
|
+
netId: "chip.U1 > port.pin6 to R1.2",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
netConnections: [],
|
|
90
|
+
availableNetLabelOrientations: {},
|
|
91
|
+
maxMspPairDistance: 2,
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export default () => <PipelineDebugger inputProblem={inputProblem} />
|