@tscircuit/cli 0.0.197 → 0.0.198
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/bun.lockb +0 -0
- package/dist/cli.js +6 -5
- package/example-project/src/manual-edits.ts +97 -27
- package/frontend/views/MainContentView.tsx +1 -1
- package/package.json +3 -2
|
@@ -64,11 +64,16 @@ export default {
|
|
|
64
64
|
],
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
pcb_port_selector: ".
|
|
67
|
+
pcb_port_selector: ".SW7 > .pin1",
|
|
68
68
|
offsets: [
|
|
69
69
|
{
|
|
70
|
-
x: -
|
|
71
|
-
y:
|
|
70
|
+
x: -23.955683342322523,
|
|
71
|
+
y: 10.88389101192926,
|
|
72
|
+
via: false,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
x: -16.747386499009068,
|
|
76
|
+
y: 10.88389101192926,
|
|
72
77
|
via: false,
|
|
73
78
|
},
|
|
74
79
|
],
|
|
@@ -77,39 +82,74 @@ export default {
|
|
|
77
82
|
pcb_port_selector: ".D1 > .pin2",
|
|
78
83
|
offsets: [
|
|
79
84
|
{
|
|
80
|
-
x: -
|
|
81
|
-
y: -
|
|
85
|
+
x: -6.6120446397225265,
|
|
86
|
+
y: -23.571919277339052,
|
|
82
87
|
via: true,
|
|
83
88
|
},
|
|
84
89
|
{
|
|
85
|
-
x: 32.
|
|
86
|
-
y:
|
|
90
|
+
x: 32.69781227739724,
|
|
91
|
+
y: 4.7868824921773,
|
|
87
92
|
via: true,
|
|
88
93
|
},
|
|
89
94
|
],
|
|
90
95
|
},
|
|
91
96
|
{
|
|
92
|
-
pcb_port_selector: ".
|
|
97
|
+
pcb_port_selector: ".SW2 > .pin1",
|
|
93
98
|
offsets: [
|
|
94
99
|
{
|
|
95
|
-
x: -
|
|
96
|
-
y:
|
|
97
|
-
via:
|
|
100
|
+
x: -4.281249780862737,
|
|
101
|
+
y: -14.233181814231745,
|
|
102
|
+
via: true,
|
|
98
103
|
},
|
|
99
104
|
{
|
|
100
|
-
x:
|
|
101
|
-
y:
|
|
102
|
-
via:
|
|
105
|
+
x: 34.20591131679997,
|
|
106
|
+
y: -5.359753005603952,
|
|
107
|
+
via: true,
|
|
103
108
|
},
|
|
104
109
|
],
|
|
105
110
|
},
|
|
106
111
|
{
|
|
107
|
-
pcb_port_selector: ".
|
|
112
|
+
pcb_port_selector: ".SW8 > .pin1",
|
|
108
113
|
offsets: [
|
|
109
114
|
{
|
|
110
|
-
x: -
|
|
111
|
-
y:
|
|
112
|
-
via:
|
|
115
|
+
x: -3.288900052520706,
|
|
116
|
+
y: 15.247231045118642,
|
|
117
|
+
via: true,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
x: 33.00665141878271,
|
|
121
|
+
y: -4.88174593519296,
|
|
122
|
+
via: true,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
pcb_port_selector: ".SW6 > .pin1",
|
|
128
|
+
offsets: [
|
|
129
|
+
{
|
|
130
|
+
x: 13.702636532712475,
|
|
131
|
+
y: -2.1984238421998494,
|
|
132
|
+
via: true,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
x: 37.17086973641227,
|
|
136
|
+
y: -10.456476442519742,
|
|
137
|
+
via: true,
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
pcb_port_selector: ".D2 > .pin2",
|
|
143
|
+
offsets: [
|
|
144
|
+
{
|
|
145
|
+
x: 12.561114295051617,
|
|
146
|
+
y: -23.864496542593944,
|
|
147
|
+
via: true,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
x: 31.243169965739476,
|
|
151
|
+
y: 6.222709219188005,
|
|
152
|
+
via: true,
|
|
113
153
|
},
|
|
114
154
|
],
|
|
115
155
|
},
|
|
@@ -117,33 +157,63 @@ export default {
|
|
|
117
157
|
pcb_port_selector: ".SW1 > .pin2",
|
|
118
158
|
offsets: [
|
|
119
159
|
{
|
|
120
|
-
x: -
|
|
121
|
-
y: -
|
|
160
|
+
x: -12.08751345122883,
|
|
161
|
+
y: -21.987424704921573,
|
|
122
162
|
via: false,
|
|
123
163
|
},
|
|
124
164
|
],
|
|
125
165
|
},
|
|
126
166
|
{
|
|
127
|
-
pcb_port_selector: ".
|
|
167
|
+
pcb_port_selector: ".SW4 > .pin1",
|
|
128
168
|
offsets: [
|
|
129
169
|
{
|
|
130
|
-
x:
|
|
131
|
-
y: -
|
|
170
|
+
x: -26.011965739587815,
|
|
171
|
+
y: -1.3280621772648846,
|
|
132
172
|
via: false,
|
|
133
173
|
},
|
|
134
174
|
],
|
|
135
175
|
},
|
|
176
|
+
{
|
|
177
|
+
pcb_port_selector: ".D4 > .pin2",
|
|
178
|
+
offsets: [
|
|
179
|
+
{
|
|
180
|
+
x: -11.013535470091448,
|
|
181
|
+
y: -9.022834789254386,
|
|
182
|
+
via: true,
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
x: 28.754756592538314,
|
|
186
|
+
y: 12.264328845243295,
|
|
187
|
+
via: true,
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
136
191
|
{
|
|
137
192
|
pcb_port_selector: ".D3 > .pin2",
|
|
138
193
|
offsets: [
|
|
139
194
|
{
|
|
140
|
-
x: 30.
|
|
141
|
-
y: -
|
|
195
|
+
x: 30.35063107068494,
|
|
196
|
+
y: -24.609946154312162,
|
|
197
|
+
via: false,
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
pcb_port_selector: ".D9 > .pin2",
|
|
203
|
+
offsets: [
|
|
204
|
+
{
|
|
205
|
+
x: 27.764228768984935,
|
|
206
|
+
y: 11.911837660122025,
|
|
142
207
|
via: true,
|
|
143
208
|
},
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
pcb_port_selector: ".D8 > .pin2",
|
|
213
|
+
offsets: [
|
|
144
214
|
{
|
|
145
|
-
x:
|
|
146
|
-
y:
|
|
215
|
+
x: 23.674326938532413,
|
|
216
|
+
y: 12.282089990345455,
|
|
147
217
|
via: true,
|
|
148
218
|
},
|
|
149
219
|
],
|
|
@@ -82,7 +82,7 @@ export const MainContentView = () => {
|
|
|
82
82
|
{pkg && (viewMode === "pcb" || viewMode === "split") && (
|
|
83
83
|
<ErrorBoundary fallback={<div>Failed to render PCB</div>}>
|
|
84
84
|
<PCBViewer
|
|
85
|
-
key={`pcb-${pkg?.
|
|
85
|
+
key={`pcb-${pkg?.dev_package_example_id}`}
|
|
86
86
|
height={itemHeight}
|
|
87
87
|
allowEditing
|
|
88
88
|
editEvents={editEvents}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.198",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command line tool for developing, publishing and installing tscircuit circuits",
|
|
@@ -37,12 +37,13 @@
|
|
|
37
37
|
"@edge-runtime/primitives": "^4.1.0",
|
|
38
38
|
"@hono/node-server": "^1.8.2",
|
|
39
39
|
"@tscircuit/builder": "*",
|
|
40
|
-
"@tscircuit/core": "0.0.53",
|
|
40
|
+
"@tscircuit/core": "^0.0.53",
|
|
41
41
|
"@tscircuit/props": "^0.0.62",
|
|
42
42
|
"archiver": "^7.0.1",
|
|
43
43
|
"axios": "^1.6.7",
|
|
44
44
|
"chokidar": "^3.6.0",
|
|
45
45
|
"circuit-to-png": "^0.0.3",
|
|
46
|
+
"circuit-to-svg": "^0.0.22",
|
|
46
47
|
"commander": "^12.0.0",
|
|
47
48
|
"configstore": "^6.0.0",
|
|
48
49
|
"dargs": "^8.1.0",
|