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,558 @@
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": "unnamedsubcircuit337_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
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net1"
33
+ },
34
+ {
35
+ "type": "source_component",
36
+ "source_component_id": "source_component_0",
37
+ "ftype": "simple_resistor",
38
+ "name": "R1",
39
+ "resistance": 10000,
40
+ "display_resistance": "10kΩ",
41
+ "are_pins_interchangeable": true,
42
+ "source_group_id": "source_group_0"
43
+ },
44
+ {
45
+ "type": "source_port",
46
+ "source_port_id": "source_port_2",
47
+ "name": "pin1",
48
+ "pin_number": 1,
49
+ "port_hints": ["pin1", "anode", "pos", "left", "1"],
50
+ "source_component_id": "source_component_1",
51
+ "subcircuit_id": "subcircuit_source_group_0",
52
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net1"
53
+ },
54
+ {
55
+ "type": "source_port",
56
+ "source_port_id": "source_port_3",
57
+ "name": "pin2",
58
+ "pin_number": 2,
59
+ "port_hints": ["pin2", "cathode", "neg", "right", "2"],
60
+ "source_component_id": "source_component_1",
61
+ "subcircuit_id": "subcircuit_source_group_0",
62
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net2"
63
+ },
64
+ {
65
+ "type": "source_component",
66
+ "source_component_id": "source_component_1",
67
+ "ftype": "simple_resistor",
68
+ "name": "R2",
69
+ "resistance": 5600,
70
+ "display_resistance": "5.6kΩ",
71
+ "are_pins_interchangeable": true,
72
+ "source_group_id": "source_group_0"
73
+ },
74
+ {
75
+ "type": "source_port",
76
+ "source_port_id": "source_port_4",
77
+ "name": "pin1",
78
+ "pin_number": 1,
79
+ "port_hints": ["pin1", "pos", "1"],
80
+ "source_component_id": "source_component_2",
81
+ "subcircuit_id": "subcircuit_source_group_0",
82
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net0"
83
+ },
84
+ {
85
+ "type": "source_port",
86
+ "source_port_id": "source_port_5",
87
+ "name": "pin2",
88
+ "pin_number": 2,
89
+ "port_hints": ["pin2", "neg", "2"],
90
+ "source_component_id": "source_component_2",
91
+ "subcircuit_id": "subcircuit_source_group_0"
92
+ },
93
+ {
94
+ "type": "source_component",
95
+ "source_component_id": "source_component_2",
96
+ "ftype": "simple_capacitor",
97
+ "name": "C1",
98
+ "capacitance": 1e-7,
99
+ "display_capacitance": "100nF",
100
+ "are_pins_interchangeable": true,
101
+ "source_group_id": "source_group_0"
102
+ },
103
+ {
104
+ "type": "source_port",
105
+ "source_port_id": "source_port_6",
106
+ "name": "pin1",
107
+ "pin_number": 1,
108
+ "port_hints": ["pin1", "pos", "1"],
109
+ "source_component_id": "source_component_3",
110
+ "subcircuit_id": "subcircuit_source_group_0",
111
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net2"
112
+ },
113
+ {
114
+ "type": "source_port",
115
+ "source_port_id": "source_port_7",
116
+ "name": "pin2",
117
+ "pin_number": 2,
118
+ "port_hints": ["pin2", "neg", "2"],
119
+ "source_component_id": "source_component_3",
120
+ "subcircuit_id": "subcircuit_source_group_0"
121
+ },
122
+ {
123
+ "type": "source_component",
124
+ "source_component_id": "source_component_3",
125
+ "ftype": "simple_capacitor",
126
+ "name": "C2",
127
+ "capacitance": 0.000001,
128
+ "display_capacitance": "1uF",
129
+ "are_pins_interchangeable": true,
130
+ "source_group_id": "source_group_0"
131
+ },
132
+ {
133
+ "type": "source_board",
134
+ "source_board_id": "source_board_0",
135
+ "source_group_id": "source_group_0"
136
+ },
137
+ {
138
+ "type": "source_trace",
139
+ "source_trace_id": "source_trace_0",
140
+ "connected_source_port_ids": ["source_port_0", "source_port_4"],
141
+ "connected_source_net_ids": [],
142
+ "subcircuit_id": "subcircuit_source_group_0",
143
+ "max_length": null,
144
+ "display_name": ".R1 > .pin1 to .C1 > .pin1",
145
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net0"
146
+ },
147
+ {
148
+ "type": "source_trace",
149
+ "source_trace_id": "source_trace_1",
150
+ "connected_source_port_ids": ["source_port_1", "source_port_2"],
151
+ "connected_source_net_ids": [],
152
+ "subcircuit_id": "subcircuit_source_group_0",
153
+ "display_name": ".R1 > .pin2 to .R2 > .pin1",
154
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net1"
155
+ },
156
+ {
157
+ "type": "source_trace",
158
+ "source_trace_id": "source_trace_2",
159
+ "connected_source_port_ids": ["source_port_3", "source_port_6"],
160
+ "connected_source_net_ids": [],
161
+ "subcircuit_id": "subcircuit_source_group_0",
162
+ "max_length": null,
163
+ "display_name": ".R2 > .pin2 to .C2 > .pin1",
164
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net2"
165
+ },
166
+ {
167
+ "type": "source_pin_missing_trace_warning",
168
+ "source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_0",
169
+ "message": "Port pin2 on C1 is missing a trace",
170
+ "source_component_id": "source_component_2",
171
+ "source_port_id": "source_port_5",
172
+ "subcircuit_id": "subcircuit_source_group_0",
173
+ "warning_type": "source_pin_missing_trace_warning"
174
+ },
175
+ {
176
+ "type": "source_pin_missing_trace_warning",
177
+ "source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_1",
178
+ "message": "Port pin2 on C2 is missing a trace",
179
+ "source_component_id": "source_component_3",
180
+ "source_port_id": "source_port_7",
181
+ "subcircuit_id": "subcircuit_source_group_0",
182
+ "warning_type": "source_pin_missing_trace_warning"
183
+ },
184
+ {
185
+ "type": "schematic_component",
186
+ "schematic_component_id": "schematic_component_0",
187
+ "center": {
188
+ "x": 0,
189
+ "y": 0
190
+ },
191
+ "size": {
192
+ "width": 1.1,
193
+ "height": 0.388910699999999
194
+ },
195
+ "source_component_id": "source_component_0",
196
+ "is_box_with_pins": true,
197
+ "symbol_name": "boxresistor_right",
198
+ "symbol_display_value": "10kΩ",
199
+ "schematic_group_id": "schematic_group_0"
200
+ },
201
+ {
202
+ "type": "schematic_component",
203
+ "schematic_component_id": "schematic_component_1",
204
+ "center": {
205
+ "x": 1.8000000000000003,
206
+ "y": 0
207
+ },
208
+ "size": {
209
+ "width": 1.1,
210
+ "height": 0.388910699999999
211
+ },
212
+ "source_component_id": "source_component_1",
213
+ "is_box_with_pins": true,
214
+ "symbol_name": "boxresistor_right",
215
+ "symbol_display_value": "5.6kΩ",
216
+ "schematic_group_id": "schematic_group_0"
217
+ },
218
+ {
219
+ "type": "schematic_component",
220
+ "schematic_component_id": "schematic_component_2",
221
+ "center": {
222
+ "x": -1.8000000000000003,
223
+ "y": 0
224
+ },
225
+ "size": {
226
+ "width": 1.1,
227
+ "height": 0.84
228
+ },
229
+ "source_component_id": "source_component_2",
230
+ "is_box_with_pins": true,
231
+ "symbol_name": "capacitor_left",
232
+ "symbol_display_value": "100nF",
233
+ "schematic_group_id": "schematic_group_0"
234
+ },
235
+ {
236
+ "type": "schematic_component",
237
+ "schematic_component_id": "schematic_component_3",
238
+ "center": {
239
+ "x": 3.6000000000000005,
240
+ "y": 0
241
+ },
242
+ "size": {
243
+ "width": 1.1,
244
+ "height": 0.84
245
+ },
246
+ "source_component_id": "source_component_3",
247
+ "is_box_with_pins": true,
248
+ "symbol_name": "capacitor_right",
249
+ "symbol_display_value": "1uF",
250
+ "schematic_group_id": "schematic_group_0"
251
+ },
252
+ {
253
+ "type": "schematic_group",
254
+ "schematic_group_id": "schematic_group_0",
255
+ "is_subcircuit": true,
256
+ "subcircuit_id": "subcircuit_source_group_0",
257
+ "name": "unnamed_board1",
258
+ "center": {
259
+ "x": 0,
260
+ "y": 0
261
+ },
262
+ "width": 0,
263
+ "height": 0,
264
+ "schematic_component_ids": [],
265
+ "source_group_id": "source_group_0"
266
+ },
267
+ {
268
+ "type": "schematic_port",
269
+ "schematic_port_id": "schematic_port_0",
270
+ "schematic_component_id": "schematic_component_0",
271
+ "center": {
272
+ "x": -0.55,
273
+ "y": 0
274
+ },
275
+ "source_port_id": "source_port_0",
276
+ "facing_direction": "left",
277
+ "distance_from_component_edge": 0.4,
278
+ "pin_number": 1,
279
+ "display_pin_label": "anode",
280
+ "is_connected": true
281
+ },
282
+ {
283
+ "type": "schematic_port",
284
+ "schematic_port_id": "schematic_port_1",
285
+ "schematic_component_id": "schematic_component_0",
286
+ "center": {
287
+ "x": 0.55,
288
+ "y": 0
289
+ },
290
+ "source_port_id": "source_port_1",
291
+ "facing_direction": "right",
292
+ "distance_from_component_edge": 0.4,
293
+ "pin_number": 2,
294
+ "display_pin_label": "cathode",
295
+ "is_connected": true
296
+ },
297
+ {
298
+ "type": "schematic_port",
299
+ "schematic_port_id": "schematic_port_2",
300
+ "schematic_component_id": "schematic_component_1",
301
+ "center": {
302
+ "x": 1.2500000000000002,
303
+ "y": 0
304
+ },
305
+ "source_port_id": "source_port_2",
306
+ "facing_direction": "left",
307
+ "distance_from_component_edge": 0.4,
308
+ "pin_number": 1,
309
+ "display_pin_label": "anode",
310
+ "is_connected": true
311
+ },
312
+ {
313
+ "type": "schematic_port",
314
+ "schematic_port_id": "schematic_port_3",
315
+ "schematic_component_id": "schematic_component_1",
316
+ "center": {
317
+ "x": 2.3500000000000005,
318
+ "y": 0
319
+ },
320
+ "source_port_id": "source_port_3",
321
+ "facing_direction": "right",
322
+ "distance_from_component_edge": 0.4,
323
+ "pin_number": 2,
324
+ "display_pin_label": "cathode",
325
+ "is_connected": true
326
+ },
327
+ {
328
+ "type": "schematic_port",
329
+ "schematic_port_id": "schematic_port_4",
330
+ "schematic_component_id": "schematic_component_2",
331
+ "center": {
332
+ "x": -1.25,
333
+ "y": -6.735557395310446e-17
334
+ },
335
+ "source_port_id": "source_port_4",
336
+ "facing_direction": "right",
337
+ "distance_from_component_edge": 0.4,
338
+ "side_of_component": "right",
339
+ "pin_number": 1,
340
+ "display_pin_label": "pos",
341
+ "is_connected": true
342
+ },
343
+ {
344
+ "type": "schematic_port",
345
+ "schematic_port_id": "schematic_port_5",
346
+ "schematic_component_id": "schematic_component_2",
347
+ "center": {
348
+ "x": -2.3500000000000005,
349
+ "y": 6.735557395310444e-17
350
+ },
351
+ "source_port_id": "source_port_5",
352
+ "facing_direction": "left",
353
+ "distance_from_component_edge": 0.4,
354
+ "side_of_component": "left",
355
+ "pin_number": 2,
356
+ "display_pin_label": "neg",
357
+ "is_connected": false
358
+ },
359
+ {
360
+ "type": "schematic_port",
361
+ "schematic_port_id": "schematic_port_6",
362
+ "schematic_component_id": "schematic_component_3",
363
+ "center": {
364
+ "x": 3.0500000000000007,
365
+ "y": 0
366
+ },
367
+ "source_port_id": "source_port_6",
368
+ "facing_direction": "left",
369
+ "distance_from_component_edge": 0.4,
370
+ "pin_number": 1,
371
+ "display_pin_label": "pos",
372
+ "is_connected": true
373
+ },
374
+ {
375
+ "type": "schematic_port",
376
+ "schematic_port_id": "schematic_port_7",
377
+ "schematic_component_id": "schematic_component_3",
378
+ "center": {
379
+ "x": 4.15,
380
+ "y": 0
381
+ },
382
+ "source_port_id": "source_port_7",
383
+ "facing_direction": "right",
384
+ "distance_from_component_edge": 0.4,
385
+ "pin_number": 2,
386
+ "display_pin_label": "neg",
387
+ "is_connected": false
388
+ },
389
+ {
390
+ "type": "schematic_trace",
391
+ "schematic_trace_id": "schematic_trace_0",
392
+ "source_trace_id": "solver_R1.1-C1.1",
393
+ "edges": [
394
+ {
395
+ "from": {
396
+ "x": -0.55,
397
+ "y": 0
398
+ },
399
+ "to": {
400
+ "x": -1.25,
401
+ "y": -6.735557395310446e-17
402
+ }
403
+ }
404
+ ],
405
+ "junctions": [],
406
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net0"
407
+ },
408
+ {
409
+ "type": "schematic_trace",
410
+ "schematic_trace_id": "schematic_trace_1",
411
+ "source_trace_id": "solver_R1.2-R2.1",
412
+ "edges": [
413
+ {
414
+ "from": {
415
+ "x": 0.55,
416
+ "y": 0
417
+ },
418
+ "to": {
419
+ "x": 1.25,
420
+ "y": 0
421
+ }
422
+ }
423
+ ],
424
+ "junctions": [],
425
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net1"
426
+ },
427
+ {
428
+ "type": "schematic_trace",
429
+ "schematic_trace_id": "schematic_trace_2",
430
+ "source_trace_id": "solver_R2.2-C2.1",
431
+ "edges": [
432
+ {
433
+ "from": {
434
+ "x": 2.3500000000000005,
435
+ "y": 0
436
+ },
437
+ "to": {
438
+ "x": 3.0500000000000007,
439
+ "y": 0
440
+ }
441
+ }
442
+ ],
443
+ "junctions": [],
444
+ "subcircuit_connectivity_map_key": "unnamedsubcircuit337_connectivity_net2"
445
+ },
446
+ {
447
+ "type": "pcb_component",
448
+ "pcb_component_id": "pcb_component_0",
449
+ "center": {
450
+ "x": 0,
451
+ "y": 0
452
+ },
453
+ "width": 0,
454
+ "height": 0,
455
+ "layer": "top",
456
+ "rotation": 0,
457
+ "source_component_id": "source_component_0",
458
+ "subcircuit_id": "subcircuit_source_group_0",
459
+ "do_not_place": false,
460
+ "obstructs_within_bounds": true
461
+ },
462
+ {
463
+ "type": "pcb_missing_footprint_error",
464
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_0",
465
+ "message": "No footprint found for component: <resistor#322 name=\".R1\" />",
466
+ "source_component_id": "source_component_0",
467
+ "error_type": "pcb_missing_footprint_error"
468
+ },
469
+ {
470
+ "type": "pcb_component",
471
+ "pcb_component_id": "pcb_component_1",
472
+ "center": {
473
+ "x": null,
474
+ "y": null
475
+ },
476
+ "width": 0,
477
+ "height": 0,
478
+ "layer": "top",
479
+ "rotation": 0,
480
+ "source_component_id": "source_component_1",
481
+ "subcircuit_id": "subcircuit_source_group_0",
482
+ "do_not_place": false,
483
+ "obstructs_within_bounds": true
484
+ },
485
+ {
486
+ "type": "pcb_missing_footprint_error",
487
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_1",
488
+ "message": "No footprint found for component: <resistor#325 name=\".R2\" />",
489
+ "source_component_id": "source_component_1",
490
+ "error_type": "pcb_missing_footprint_error"
491
+ },
492
+ {
493
+ "type": "pcb_component",
494
+ "pcb_component_id": "pcb_component_2",
495
+ "center": {
496
+ "x": null,
497
+ "y": null
498
+ },
499
+ "width": 0,
500
+ "height": 0,
501
+ "layer": "top",
502
+ "rotation": 0,
503
+ "source_component_id": "source_component_2",
504
+ "subcircuit_id": "subcircuit_source_group_0",
505
+ "do_not_place": false,
506
+ "obstructs_within_bounds": true
507
+ },
508
+ {
509
+ "type": "pcb_missing_footprint_error",
510
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_2",
511
+ "message": "No footprint found for component: <capacitor#328 name=\".C1\" />",
512
+ "source_component_id": "source_component_2",
513
+ "error_type": "pcb_missing_footprint_error"
514
+ },
515
+ {
516
+ "type": "pcb_component",
517
+ "pcb_component_id": "pcb_component_3",
518
+ "center": {
519
+ "x": null,
520
+ "y": null
521
+ },
522
+ "width": 0,
523
+ "height": 0,
524
+ "layer": "top",
525
+ "rotation": 0,
526
+ "source_component_id": "source_component_3",
527
+ "subcircuit_id": "subcircuit_source_group_0",
528
+ "do_not_place": false,
529
+ "obstructs_within_bounds": true
530
+ },
531
+ {
532
+ "type": "pcb_missing_footprint_error",
533
+ "pcb_missing_footprint_error_id": "pcb_missing_footprint_error_3",
534
+ "message": "No footprint found for component: <capacitor#331 name=\".C2\" />",
535
+ "source_component_id": "source_component_3",
536
+ "error_type": "pcb_missing_footprint_error"
537
+ },
538
+ {
539
+ "type": "pcb_board",
540
+ "pcb_board_id": "pcb_board_0",
541
+ "center": {
542
+ "x": 0,
543
+ "y": 0
544
+ },
545
+ "thickness": 1.4,
546
+ "num_layers": 2,
547
+ "width": 0,
548
+ "height": 0,
549
+ "material": "fr4"
550
+ },
551
+ {
552
+ "type": "pcb_autorouting_error",
553
+ "pcb_autorouting_error_id": "pcb_autorouting_error_0",
554
+ "pcb_error_id": "pcb_autorouter_error_subcircuit_subcircuit_source_group_0",
555
+ "error_type": "pcb_autorouting_error",
556
+ "message": "undefined is not an object (evaluating 'this.nodeEdgeMap.get(t.capacityMeshNodeId).some') (capacity-autorouter@0.0.140)"
557
+ }
558
+ ]