@tscircuit/schematic-trace-solver 0.0.23 → 0.0.25

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 CHANGED
@@ -7328,7 +7328,7 @@ var TraceOverlapShiftSolver = class extends BaseSolver {
7328
7328
  };
7329
7329
 
7330
7330
  // lib/solvers/NetLabelPlacementSolver/SingleNetLabelPlacementSolver/geometry.ts
7331
- var NET_LABEL_HORIZONTAL_WIDTH = 0.4;
7331
+ var NET_LABEL_HORIZONTAL_WIDTH = 0.45;
7332
7332
  var NET_LABEL_HORIZONTAL_HEIGHT = 0.2;
7333
7333
  function getDimsForOrientation(orientation) {
7334
7334
  if (orientation === "y+" || orientation === "y-") {
@@ -1,6 +1,6 @@
1
1
  import type { FacingDirection } from "lib/utils/dir"
2
2
 
3
- export const NET_LABEL_HORIZONTAL_WIDTH = 0.4
3
+ export const NET_LABEL_HORIZONTAL_WIDTH = 0.45
4
4
  export const NET_LABEL_HORIZONTAL_HEIGHT = 0.2
5
5
 
6
6
  export function getDimsForOrientation(orientation: FacingDirection) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/schematic-trace-solver",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.23",
4
+ "version": "0.0.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",
@@ -0,0 +1,119 @@
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: -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
+ }
118
+
119
+ export default () => <PipelineDebugger inputProblem={inputProblem} />
@@ -0,0 +1,97 @@
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: 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
+ }
96
+
97
+ export default () => <PipelineDebugger inputProblem={inputProblem} />