circuit-json-to-spice 0.0.24 → 0.0.26

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.
@@ -0,0 +1,298 @@
1
+ [
2
+ {
3
+ "type": "source_project_metadata",
4
+ "source_project_metadata_id": "source_project_metadata_0",
5
+ "software_used_string": "@tscircuit/core@0.0.874"
6
+ },
7
+ {
8
+ "type": "source_group",
9
+ "source_group_id": "source_group_0",
10
+ "is_subcircuit": true,
11
+ "was_automatically_named": true,
12
+ "subcircuit_id": "subcircuit_source_group_0"
13
+ },
14
+ {
15
+ "type": "source_port",
16
+ "source_port_id": "source_port_0",
17
+ "name": "pin1",
18
+ "pin_number": 1,
19
+ "port_hints": ["pin1", "anode", "pos", "left", "1"],
20
+ "source_component_id": "source_component_0",
21
+ "subcircuit_id": "subcircuit_source_group_0"
22
+ },
23
+ {
24
+ "type": "source_port",
25
+ "source_port_id": "source_port_1",
26
+ "name": "pin2",
27
+ "pin_number": 2,
28
+ "port_hints": ["pin2", "cathode", "neg", "right", "2"],
29
+ "source_component_id": "source_component_0",
30
+ "subcircuit_id": "subcircuit_source_group_0",
31
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit7_connectivity_net0"
32
+ },
33
+ {
34
+ "type": "source_component",
35
+ "source_component_id": "source_component_0",
36
+ "ftype": "simple_resistor",
37
+ "name": "R1",
38
+ "resistance": 1000,
39
+ "display_resistance": "1kΩ",
40
+ "are_pins_interchangeable": true,
41
+ "source_group_id": "source_group_0"
42
+ },
43
+ {
44
+ "type": "source_port",
45
+ "source_port_id": "source_port_2",
46
+ "name": "pin1",
47
+ "pin_number": 1,
48
+ "port_hints": ["pin1", "anode", "pos", "left", "1"],
49
+ "source_component_id": "source_component_1",
50
+ "subcircuit_id": "subcircuit_source_group_0",
51
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit7_connectivity_net0"
52
+ },
53
+ {
54
+ "type": "source_port",
55
+ "source_port_id": "source_port_3",
56
+ "name": "pin2",
57
+ "pin_number": 2,
58
+ "port_hints": ["pin2", "cathode", "neg", "right", "2"],
59
+ "source_component_id": "source_component_1",
60
+ "subcircuit_id": "subcircuit_source_group_0"
61
+ },
62
+ {
63
+ "type": "source_component",
64
+ "source_component_id": "source_component_1",
65
+ "ftype": "simple_resistor",
66
+ "name": "R2",
67
+ "resistance": 2000,
68
+ "display_resistance": "2kΩ",
69
+ "are_pins_interchangeable": true,
70
+ "source_group_id": "source_group_0"
71
+ },
72
+ {
73
+ "type": "source_board",
74
+ "source_board_id": "source_board_0",
75
+ "source_group_id": "source_group_0"
76
+ },
77
+ {
78
+ "type": "source_trace",
79
+ "source_trace_id": "source_trace_0",
80
+ "connected_source_port_ids": ["source_port_1", "source_port_2"],
81
+ "connected_source_net_ids": [],
82
+ "subcircuit_id": "subcircuit_source_group_0",
83
+ "display_name": ".R1 > .pin2 to .R2 > .pin1",
84
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit7_connectivity_net0"
85
+ },
86
+ {
87
+ "type": "source_pin_missing_trace_warning",
88
+ "source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_0",
89
+ "message": "Port pin1 on R1 is missing a trace",
90
+ "source_component_id": "source_component_0",
91
+ "source_port_id": "source_port_0",
92
+ "subcircuit_id": "subcircuit_source_group_0",
93
+ "warning_type": "source_pin_missing_trace_warning"
94
+ },
95
+ {
96
+ "type": "source_pin_missing_trace_warning",
97
+ "source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_1",
98
+ "message": "Port pin2 on R2 is missing a trace",
99
+ "source_component_id": "source_component_1",
100
+ "source_port_id": "source_port_3",
101
+ "subcircuit_id": "subcircuit_source_group_0",
102
+ "warning_type": "source_pin_missing_trace_warning"
103
+ },
104
+ {
105
+ "type": "schematic_component",
106
+ "schematic_component_id": "schematic_component_0",
107
+ "center": {
108
+ "x": 0,
109
+ "y": 0
110
+ },
111
+ "size": {
112
+ "width": 1.1,
113
+ "height": 0.388910699999999
114
+ },
115
+ "source_component_id": "source_component_0",
116
+ "is_box_with_pins": true,
117
+ "symbol_name": "boxresistor_right",
118
+ "symbol_display_value": "1kΩ",
119
+ "schematic_group_id": "schematic_group_0"
120
+ },
121
+ {
122
+ "type": "schematic_component",
123
+ "schematic_component_id": "schematic_component_1",
124
+ "center": {
125
+ "x": 1.8000000000000003,
126
+ "y": 0
127
+ },
128
+ "size": {
129
+ "width": 1.1,
130
+ "height": 0.388910699999999
131
+ },
132
+ "source_component_id": "source_component_1",
133
+ "is_box_with_pins": true,
134
+ "symbol_name": "boxresistor_right",
135
+ "symbol_display_value": "2kΩ",
136
+ "schematic_group_id": "schematic_group_0"
137
+ },
138
+ {
139
+ "type": "schematic_group",
140
+ "schematic_group_id": "schematic_group_0",
141
+ "is_subcircuit": true,
142
+ "subcircuit_id": "subcircuit_source_group_0",
143
+ "name": "unnamed_board1",
144
+ "center": {
145
+ "x": 0,
146
+ "y": 0
147
+ },
148
+ "width": 0,
149
+ "height": 0,
150
+ "schematic_component_ids": [],
151
+ "source_group_id": "source_group_0"
152
+ },
153
+ {
154
+ "type": "schematic_port",
155
+ "schematic_port_id": "schematic_port_0",
156
+ "schematic_component_id": "schematic_component_0",
157
+ "center": {
158
+ "x": -0.55,
159
+ "y": 0
160
+ },
161
+ "source_port_id": "source_port_0",
162
+ "facing_direction": "left",
163
+ "distance_from_component_edge": 0.4,
164
+ "pin_number": 1,
165
+ "display_pin_label": "anode",
166
+ "is_connected": false
167
+ },
168
+ {
169
+ "type": "schematic_port",
170
+ "schematic_port_id": "schematic_port_1",
171
+ "schematic_component_id": "schematic_component_0",
172
+ "center": {
173
+ "x": 0.55,
174
+ "y": 0
175
+ },
176
+ "source_port_id": "source_port_1",
177
+ "facing_direction": "right",
178
+ "distance_from_component_edge": 0.4,
179
+ "pin_number": 2,
180
+ "display_pin_label": "cathode",
181
+ "is_connected": true
182
+ },
183
+ {
184
+ "type": "schematic_port",
185
+ "schematic_port_id": "schematic_port_2",
186
+ "schematic_component_id": "schematic_component_1",
187
+ "center": {
188
+ "x": 1.2500000000000002,
189
+ "y": 0
190
+ },
191
+ "source_port_id": "source_port_2",
192
+ "facing_direction": "left",
193
+ "distance_from_component_edge": 0.4,
194
+ "pin_number": 1,
195
+ "display_pin_label": "anode",
196
+ "is_connected": true
197
+ },
198
+ {
199
+ "type": "schematic_port",
200
+ "schematic_port_id": "schematic_port_3",
201
+ "schematic_component_id": "schematic_component_1",
202
+ "center": {
203
+ "x": 2.3500000000000005,
204
+ "y": 0
205
+ },
206
+ "source_port_id": "source_port_3",
207
+ "facing_direction": "right",
208
+ "distance_from_component_edge": 0.4,
209
+ "pin_number": 2,
210
+ "display_pin_label": "cathode",
211
+ "is_connected": false
212
+ },
213
+ {
214
+ "type": "schematic_trace",
215
+ "schematic_trace_id": "schematic_trace_0",
216
+ "source_trace_id": "solver_R1.2-R2.1",
217
+ "edges": [
218
+ {
219
+ "from": {
220
+ "x": 0.55,
221
+ "y": 0
222
+ },
223
+ "to": {
224
+ "x": 1.25,
225
+ "y": 0
226
+ }
227
+ }
228
+ ],
229
+ "junctions": [],
230
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit7_connectivity_net0"
231
+ },
232
+ {
233
+ "type": "pcb_component",
234
+ "pcb_component_id": "pcb_component_0",
235
+ "center": {
236
+ "x": 0,
237
+ "y": 0
238
+ },
239
+ "width": 0,
240
+ "height": 0,
241
+ "layer": "top",
242
+ "rotation": 0,
243
+ "source_component_id": "source_component_0",
244
+ "subcircuit_id": "subcircuit_source_group_0",
245
+ "do_not_place": false,
246
+ "obstructs_within_bounds": true
247
+ },
248
+ {
249
+ "type": "pcb_missing_footprint_error",
250
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_0",
251
+ "message": "No footprint found for component: <resistor#0 name=\".R1\" />",
252
+ "source_component_id": "source_component_0",
253
+ "error_type": "pcb_missing_footprint_error"
254
+ },
255
+ {
256
+ "type": "pcb_component",
257
+ "pcb_component_id": "pcb_component_1",
258
+ "center": {
259
+ "x": null,
260
+ "y": null
261
+ },
262
+ "width": 0,
263
+ "height": 0,
264
+ "layer": "top",
265
+ "rotation": 0,
266
+ "source_component_id": "source_component_1",
267
+ "subcircuit_id": "subcircuit_source_group_0",
268
+ "do_not_place": false,
269
+ "obstructs_within_bounds": true
270
+ },
271
+ {
272
+ "type": "pcb_missing_footprint_error",
273
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_1",
274
+ "message": "No footprint found for component: <resistor#3 name=\".R2\" />",
275
+ "source_component_id": "source_component_1",
276
+ "error_type": "pcb_missing_footprint_error"
277
+ },
278
+ {
279
+ "type": "pcb_board",
280
+ "pcb_board_id": "pcb_board_0",
281
+ "center": {
282
+ "x": 0,
283
+ "y": 0
284
+ },
285
+ "thickness": 1.4,
286
+ "num_layers": 2,
287
+ "width": 0,
288
+ "height": 0,
289
+ "material": "fr4"
290
+ },
291
+ {
292
+ "type": "pcb_autorouting_error",
293
+ "pcb_autorouting_error_id": "pcb_autorouting_error_0",
294
+ "pcb_error_id": "pcb_autorouter_error_subcircuit_subcircuit_source_group_0",
295
+ "error_type": "pcb_autorouting_error",
296
+ "message": "undefined is not an object (evaluating 'this.nodeEdgeMap.get(t.capacityMeshNodeId).some') (capacity-autorouter@0.0.140)"
297
+ }
298
+ ]
@@ -0,0 +1,301 @@
1
+ [
2
+ {
3
+ "type": "source_project_metadata",
4
+ "source_project_metadata_id": "source_project_metadata_0",
5
+ "software_used_string": "@tscircuit/core@0.0.874"
6
+ },
7
+ {
8
+ "type": "source_group",
9
+ "source_group_id": "source_group_0",
10
+ "is_subcircuit": true,
11
+ "was_automatically_named": true,
12
+ "subcircuit_id": "subcircuit_source_group_0"
13
+ },
14
+ {
15
+ "type": "source_port",
16
+ "source_port_id": "source_port_0",
17
+ "name": "pin1",
18
+ "pin_number": 1,
19
+ "port_hints": ["pin1", "anode", "pos", "left", "1"],
20
+ "source_component_id": "source_component_0",
21
+ "subcircuit_id": "subcircuit_source_group_0",
22
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit316_connectivity_net0"
23
+ },
24
+ {
25
+ "type": "source_port",
26
+ "source_port_id": "source_port_1",
27
+ "name": "pin2",
28
+ "pin_number": 2,
29
+ "port_hints": ["pin2", "cathode", "neg", "right", "2"],
30
+ "source_component_id": "source_component_0",
31
+ "subcircuit_id": "subcircuit_source_group_0"
32
+ },
33
+ {
34
+ "type": "source_component",
35
+ "source_component_id": "source_component_0",
36
+ "ftype": "simple_resistor",
37
+ "name": "R1",
38
+ "resistance": 1000,
39
+ "display_resistance": "1kΩ",
40
+ "are_pins_interchangeable": true,
41
+ "source_group_id": "source_group_0"
42
+ },
43
+ {
44
+ "type": "source_port",
45
+ "source_port_id": "source_port_2",
46
+ "name": "pin1",
47
+ "pin_number": 1,
48
+ "port_hints": ["pin1", "pos", "1"],
49
+ "source_component_id": "source_component_1",
50
+ "subcircuit_id": "subcircuit_source_group_0",
51
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit316_connectivity_net0"
52
+ },
53
+ {
54
+ "type": "source_port",
55
+ "source_port_id": "source_port_3",
56
+ "name": "pin2",
57
+ "pin_number": 2,
58
+ "port_hints": ["pin2", "neg", "2"],
59
+ "source_component_id": "source_component_1",
60
+ "subcircuit_id": "subcircuit_source_group_0"
61
+ },
62
+ {
63
+ "type": "source_component",
64
+ "source_component_id": "source_component_1",
65
+ "ftype": "simple_capacitor",
66
+ "name": "C1",
67
+ "capacitance": 0.000001,
68
+ "display_capacitance": "1uF",
69
+ "are_pins_interchangeable": true,
70
+ "source_group_id": "source_group_0"
71
+ },
72
+ {
73
+ "type": "source_board",
74
+ "source_board_id": "source_board_0",
75
+ "source_group_id": "source_group_0"
76
+ },
77
+ {
78
+ "type": "source_trace",
79
+ "source_trace_id": "source_trace_0",
80
+ "connected_source_port_ids": ["source_port_2", "source_port_0"],
81
+ "connected_source_net_ids": [],
82
+ "subcircuit_id": "subcircuit_source_group_0",
83
+ "max_length": null,
84
+ "display_name": ".C1 > .pin1 to .R1 > .pin1",
85
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit316_connectivity_net0"
86
+ },
87
+ {
88
+ "type": "source_pin_missing_trace_warning",
89
+ "source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_0",
90
+ "message": "Port pin2 on R1 is missing a trace",
91
+ "source_component_id": "source_component_0",
92
+ "source_port_id": "source_port_1",
93
+ "subcircuit_id": "subcircuit_source_group_0",
94
+ "warning_type": "source_pin_missing_trace_warning"
95
+ },
96
+ {
97
+ "type": "source_pin_missing_trace_warning",
98
+ "source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_1",
99
+ "message": "Port pin2 on C1 is missing a trace",
100
+ "source_component_id": "source_component_1",
101
+ "source_port_id": "source_port_3",
102
+ "subcircuit_id": "subcircuit_source_group_0",
103
+ "warning_type": "source_pin_missing_trace_warning"
104
+ },
105
+ {
106
+ "type": "schematic_component",
107
+ "schematic_component_id": "schematic_component_0",
108
+ "center": {
109
+ "x": 0,
110
+ "y": 0
111
+ },
112
+ "size": {
113
+ "width": 1.1,
114
+ "height": 0.388910699999999
115
+ },
116
+ "source_component_id": "source_component_0",
117
+ "is_box_with_pins": true,
118
+ "symbol_name": "boxresistor_right",
119
+ "symbol_display_value": "1kΩ",
120
+ "schematic_group_id": "schematic_group_0"
121
+ },
122
+ {
123
+ "type": "schematic_component",
124
+ "schematic_component_id": "schematic_component_1",
125
+ "center": {
126
+ "x": -1.8000000000000003,
127
+ "y": 0
128
+ },
129
+ "size": {
130
+ "width": 1.1,
131
+ "height": 0.84
132
+ },
133
+ "source_component_id": "source_component_1",
134
+ "is_box_with_pins": true,
135
+ "symbol_name": "capacitor_left",
136
+ "symbol_display_value": "1uF",
137
+ "schematic_group_id": "schematic_group_0"
138
+ },
139
+ {
140
+ "type": "schematic_group",
141
+ "schematic_group_id": "schematic_group_0",
142
+ "is_subcircuit": true,
143
+ "subcircuit_id": "subcircuit_source_group_0",
144
+ "name": "unnamed_board1",
145
+ "center": {
146
+ "x": 0,
147
+ "y": 0
148
+ },
149
+ "width": 0,
150
+ "height": 0,
151
+ "schematic_component_ids": [],
152
+ "source_group_id": "source_group_0"
153
+ },
154
+ {
155
+ "type": "schematic_port",
156
+ "schematic_port_id": "schematic_port_0",
157
+ "schematic_component_id": "schematic_component_0",
158
+ "center": {
159
+ "x": -0.55,
160
+ "y": 0
161
+ },
162
+ "source_port_id": "source_port_0",
163
+ "facing_direction": "left",
164
+ "distance_from_component_edge": 0.4,
165
+ "pin_number": 1,
166
+ "display_pin_label": "anode",
167
+ "is_connected": true
168
+ },
169
+ {
170
+ "type": "schematic_port",
171
+ "schematic_port_id": "schematic_port_1",
172
+ "schematic_component_id": "schematic_component_0",
173
+ "center": {
174
+ "x": 0.55,
175
+ "y": 0
176
+ },
177
+ "source_port_id": "source_port_1",
178
+ "facing_direction": "right",
179
+ "distance_from_component_edge": 0.4,
180
+ "pin_number": 2,
181
+ "display_pin_label": "cathode",
182
+ "is_connected": false
183
+ },
184
+ {
185
+ "type": "schematic_port",
186
+ "schematic_port_id": "schematic_port_2",
187
+ "schematic_component_id": "schematic_component_1",
188
+ "center": {
189
+ "x": -1.25,
190
+ "y": -6.735557395310446e-17
191
+ },
192
+ "source_port_id": "source_port_2",
193
+ "facing_direction": "right",
194
+ "distance_from_component_edge": 0.4,
195
+ "side_of_component": "right",
196
+ "pin_number": 1,
197
+ "display_pin_label": "pos",
198
+ "is_connected": true
199
+ },
200
+ {
201
+ "type": "schematic_port",
202
+ "schematic_port_id": "schematic_port_3",
203
+ "schematic_component_id": "schematic_component_1",
204
+ "center": {
205
+ "x": -2.3500000000000005,
206
+ "y": 6.735557395310444e-17
207
+ },
208
+ "source_port_id": "source_port_3",
209
+ "facing_direction": "left",
210
+ "distance_from_component_edge": 0.4,
211
+ "side_of_component": "left",
212
+ "pin_number": 2,
213
+ "display_pin_label": "neg",
214
+ "is_connected": false
215
+ },
216
+ {
217
+ "type": "schematic_trace",
218
+ "schematic_trace_id": "schematic_trace_0",
219
+ "source_trace_id": "solver_C1.1-R1.1",
220
+ "edges": [
221
+ {
222
+ "from": {
223
+ "x": -1.25,
224
+ "y": -6.735557395310446e-17
225
+ },
226
+ "to": {
227
+ "x": -0.55,
228
+ "y": 0
229
+ }
230
+ }
231
+ ],
232
+ "junctions": [],
233
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit316_connectivity_net0"
234
+ },
235
+ {
236
+ "type": "pcb_component",
237
+ "pcb_component_id": "pcb_component_0",
238
+ "center": {
239
+ "x": 0,
240
+ "y": 0
241
+ },
242
+ "width": 0,
243
+ "height": 0,
244
+ "layer": "top",
245
+ "rotation": 0,
246
+ "source_component_id": "source_component_0",
247
+ "subcircuit_id": "subcircuit_source_group_0",
248
+ "do_not_place": false,
249
+ "obstructs_within_bounds": true
250
+ },
251
+ {
252
+ "type": "pcb_missing_footprint_error",
253
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_0",
254
+ "message": "No footprint found for component: <resistor#310 name=\".R1\" />",
255
+ "source_component_id": "source_component_0",
256
+ "error_type": "pcb_missing_footprint_error"
257
+ },
258
+ {
259
+ "type": "pcb_component",
260
+ "pcb_component_id": "pcb_component_1",
261
+ "center": {
262
+ "x": null,
263
+ "y": null
264
+ },
265
+ "width": 0,
266
+ "height": 0,
267
+ "layer": "top",
268
+ "rotation": 0,
269
+ "source_component_id": "source_component_1",
270
+ "subcircuit_id": "subcircuit_source_group_0",
271
+ "do_not_place": false,
272
+ "obstructs_within_bounds": true
273
+ },
274
+ {
275
+ "type": "pcb_missing_footprint_error",
276
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_1",
277
+ "message": "No footprint found for component: <capacitor#313 name=\".C1\" />",
278
+ "source_component_id": "source_component_1",
279
+ "error_type": "pcb_missing_footprint_error"
280
+ },
281
+ {
282
+ "type": "pcb_board",
283
+ "pcb_board_id": "pcb_board_0",
284
+ "center": {
285
+ "x": 0,
286
+ "y": 0
287
+ },
288
+ "thickness": 1.4,
289
+ "num_layers": 2,
290
+ "width": 0,
291
+ "height": 0,
292
+ "material": "fr4"
293
+ },
294
+ {
295
+ "type": "pcb_autorouting_error",
296
+ "pcb_autorouting_error_id": "pcb_autorouting_error_0",
297
+ "pcb_error_id": "pcb_autorouter_error_subcircuit_subcircuit_source_group_0",
298
+ "error_type": "pcb_autorouting_error",
299
+ "message": "undefined is not an object (evaluating 'this.nodeEdgeMap.get(t.capacityMeshNodeId).some') (capacity-autorouter@0.0.140)"
300
+ }
301
+ ]