@tscircuit/3d-viewer 0.0.1 → 0.0.3

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.
Files changed (43) hide show
  1. package/dist/index.cjs +657 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +10 -0
  4. package/dist/index.d.ts +10 -0
  5. package/dist/index.js +662 -0
  6. package/dist/index.js.map +1 -0
  7. package/package.json +2 -1
  8. package/.storybook/main.ts +0 -29
  9. package/.storybook/preview.tsx +0 -24
  10. package/ai-reference/soup-reference.md +0 -1301
  11. package/bun.lockb +0 -0
  12. package/index.html +0 -13
  13. package/src/App.tsx +0 -17
  14. package/src/App2.tsx +0 -48
  15. package/src/App3.tsx +0 -209
  16. package/src/App4.tsx +0 -88
  17. package/src/CadViewer.tsx +0 -56
  18. package/src/CadViewerContainer.tsx +0 -73
  19. package/src/GeomContext.ts +0 -3
  20. package/src/bug-pads-and-traces.json +0 -1516
  21. package/src/geoms/constants.ts +0 -9
  22. package/src/geoms/plated-hole.ts +0 -45
  23. package/src/hooks/index.ts +0 -1
  24. package/src/hooks/render/hooks.tsx +0 -62
  25. package/src/hooks/render/index.tsx +0 -440
  26. package/src/hooks/use-convert-children-to-soup.ts +0 -10
  27. package/src/hooks/use-stls-from-geom.ts +0 -54
  28. package/src/index.tsx +0 -1
  29. package/src/main.tsx +0 -9
  30. package/src/modules.d.ts +0 -3
  31. package/src/plated-hole-board.json +0 -213
  32. package/src/soup-to-3d/index.ts +0 -162
  33. package/src/themes.ts +0 -7
  34. package/src/three-components/GeomModel.tsx +0 -13
  35. package/src/three-components/MixedStlModel.tsx +0 -61
  36. package/src/three-components/STLModel.tsx +0 -33
  37. package/src/three-components/cube-with-labeled-sides.tsx +0 -116
  38. package/src/vite-env.d.ts +0 -1
  39. package/stories/Simple.stories.tsx +0 -10
  40. package/stories/assets/soic-with-traces.json +0 -1802
  41. package/tsconfig.json +0 -39
  42. package/vendor/@jscadui/format-three/index.ts +0 -252
  43. package/vite.config.ts +0 -17
@@ -1,1802 +0,0 @@
1
- [
2
- {
3
- "type": "source_component",
4
- "source_component_id": "simple_bug_0",
5
- "name": "U1",
6
- "supplier_part_numbers": {},
7
- "ftype": "simple_bug",
8
- "pinLabels": {
9
- "1": "VCC",
10
- "2": "TRIG1",
11
- "3": "TRIG2",
12
- "4": "OUT1",
13
- "5": "OUT2",
14
- "6": "RESET",
15
- "7": "CTRL",
16
- "8": "GND"
17
- },
18
- "schPortArrangement": {
19
- "leftSize": 4,
20
- "rightSize": 4,
21
- "left_size": 4,
22
- "right_size": 4
23
- },
24
- "pin_labels": {
25
- "1": "VCC",
26
- "2": "TRIG1",
27
- "3": "TRIG2",
28
- "4": "OUT1",
29
- "5": "OUT2",
30
- "6": "RESET",
31
- "7": "CTRL",
32
- "8": "GND"
33
- },
34
- "sch_port_arrangement": {
35
- "leftSize": 4,
36
- "rightSize": 4,
37
- "left_size": 4,
38
- "right_size": 4
39
- }
40
- },
41
- {
42
- "type": "schematic_component",
43
- "source_component_id": "simple_bug_0",
44
- "schematic_component_id": "schematic_component_simple_bug_0",
45
- "rotation": 0,
46
- "size": {
47
- "width": 1,
48
- "height": 2
49
- },
50
- "center": {
51
- "x": 0,
52
- "y": 0
53
- },
54
- "port_labels": {
55
- "1": "VCC",
56
- "2": "TRIG1",
57
- "3": "TRIG2",
58
- "4": "OUT1",
59
- "5": "OUT2",
60
- "6": "RESET",
61
- "7": "CTRL",
62
- "8": "GND"
63
- },
64
- "port_arrangement": {
65
- "left_size": 4,
66
- "right_size": 4
67
- }
68
- },
69
- {
70
- "type": "source_port",
71
- "name": "VCC",
72
- "source_port_id": "source_port_0",
73
- "source_component_id": "simple_bug_0",
74
- "pin_number": 1,
75
- "port_hints": [
76
- "VCC",
77
- "1"
78
- ]
79
- },
80
- {
81
- "type": "schematic_port",
82
- "schematic_port_id": "schematic_port_0",
83
- "source_port_id": "source_port_0",
84
- "center": {
85
- "x": -0.75,
86
- "y": 0.75
87
- },
88
- "facing_direction": "left",
89
- "schematic_component_id": "schematic_component_simple_bug_0"
90
- },
91
- {
92
- "type": "schematic_text",
93
- "schematic_port_id": "schematic_port_0",
94
- "schematic_text_id": "schematic_text_8",
95
- "text": "1",
96
- "anchor": "center",
97
- "rotation": 0,
98
- "position": {
99
- "x": -0.6262563132923542,
100
- "y": 0.6262563132923542
101
- },
102
- "schematic_component_id": "schematic_component_simple_bug_0"
103
- },
104
- {
105
- "type": "pcb_port",
106
- "pcb_port_id": "pcb_port_0",
107
- "source_port_id": "source_port_0",
108
- "pcb_component_id": "pcb_component_simple_bug_0",
109
- "x": -2.65,
110
- "y": 1.905,
111
- "layers": [
112
- "top"
113
- ]
114
- },
115
- {
116
- "type": "source_port",
117
- "name": "TRIG1",
118
- "source_port_id": "source_port_1",
119
- "source_component_id": "simple_bug_0",
120
- "pin_number": 2,
121
- "port_hints": [
122
- "TRIG1",
123
- "2"
124
- ]
125
- },
126
- {
127
- "type": "schematic_port",
128
- "schematic_port_id": "schematic_port_1",
129
- "source_port_id": "source_port_1",
130
- "center": {
131
- "x": -0.75,
132
- "y": 0.25
133
- },
134
- "facing_direction": "left",
135
- "schematic_component_id": "schematic_component_simple_bug_0"
136
- },
137
- {
138
- "type": "schematic_text",
139
- "schematic_port_id": "schematic_port_1",
140
- "schematic_text_id": "schematic_text_9",
141
- "text": "2",
142
- "anchor": "center",
143
- "rotation": 0,
144
- "position": {
145
- "x": -0.6262563132923542,
146
- "y": 0.12625631329235418
147
- },
148
- "schematic_component_id": "schematic_component_simple_bug_0"
149
- },
150
- {
151
- "type": "pcb_port",
152
- "pcb_port_id": "pcb_port_1",
153
- "source_port_id": "source_port_1",
154
- "pcb_component_id": "pcb_component_simple_bug_0",
155
- "x": -2.65,
156
- "y": 0.635,
157
- "layers": [
158
- "top"
159
- ]
160
- },
161
- {
162
- "type": "source_port",
163
- "name": "TRIG2",
164
- "source_port_id": "source_port_2",
165
- "source_component_id": "simple_bug_0",
166
- "pin_number": 3,
167
- "port_hints": [
168
- "TRIG2",
169
- "3"
170
- ]
171
- },
172
- {
173
- "type": "schematic_port",
174
- "schematic_port_id": "schematic_port_2",
175
- "source_port_id": "source_port_2",
176
- "center": {
177
- "x": -0.75,
178
- "y": -0.25
179
- },
180
- "facing_direction": "left",
181
- "schematic_component_id": "schematic_component_simple_bug_0"
182
- },
183
- {
184
- "type": "schematic_text",
185
- "schematic_port_id": "schematic_port_2",
186
- "schematic_text_id": "schematic_text_10",
187
- "text": "3",
188
- "anchor": "center",
189
- "rotation": 0,
190
- "position": {
191
- "x": -0.6262563132923542,
192
- "y": -0.3737436867076458
193
- },
194
- "schematic_component_id": "schematic_component_simple_bug_0"
195
- },
196
- {
197
- "type": "pcb_port",
198
- "pcb_port_id": "pcb_port_2",
199
- "source_port_id": "source_port_2",
200
- "pcb_component_id": "pcb_component_simple_bug_0",
201
- "x": -2.65,
202
- "y": -0.635,
203
- "layers": [
204
- "top"
205
- ]
206
- },
207
- {
208
- "type": "source_port",
209
- "name": "OUT1",
210
- "source_port_id": "source_port_3",
211
- "source_component_id": "simple_bug_0",
212
- "pin_number": 4,
213
- "port_hints": [
214
- "OUT1",
215
- "4"
216
- ]
217
- },
218
- {
219
- "type": "schematic_port",
220
- "schematic_port_id": "schematic_port_3",
221
- "source_port_id": "source_port_3",
222
- "center": {
223
- "x": -0.75,
224
- "y": -0.75
225
- },
226
- "facing_direction": "left",
227
- "schematic_component_id": "schematic_component_simple_bug_0"
228
- },
229
- {
230
- "type": "schematic_text",
231
- "schematic_port_id": "schematic_port_3",
232
- "schematic_text_id": "schematic_text_11",
233
- "text": "4",
234
- "anchor": "center",
235
- "rotation": 0,
236
- "position": {
237
- "x": -0.6262563132923542,
238
- "y": -0.8737436867076458
239
- },
240
- "schematic_component_id": "schematic_component_simple_bug_0"
241
- },
242
- {
243
- "type": "pcb_port",
244
- "pcb_port_id": "pcb_port_3",
245
- "source_port_id": "source_port_3",
246
- "pcb_component_id": "pcb_component_simple_bug_0",
247
- "x": -2.65,
248
- "y": -1.905,
249
- "layers": [
250
- "top"
251
- ]
252
- },
253
- {
254
- "type": "source_port",
255
- "name": "OUT2",
256
- "source_port_id": "source_port_4",
257
- "source_component_id": "simple_bug_0",
258
- "pin_number": 5,
259
- "port_hints": [
260
- "OUT2",
261
- "5"
262
- ]
263
- },
264
- {
265
- "type": "schematic_port",
266
- "schematic_port_id": "schematic_port_4",
267
- "source_port_id": "source_port_4",
268
- "center": {
269
- "x": 0.75,
270
- "y": -0.75
271
- },
272
- "facing_direction": "right",
273
- "schematic_component_id": "schematic_component_simple_bug_0"
274
- },
275
- {
276
- "type": "schematic_text",
277
- "schematic_port_id": "schematic_port_4",
278
- "schematic_text_id": "schematic_text_12",
279
- "text": "5",
280
- "anchor": "center",
281
- "rotation": 0,
282
- "position": {
283
- "x": 0.6262563132923542,
284
- "y": -0.8737436867076458
285
- },
286
- "schematic_component_id": "schematic_component_simple_bug_0"
287
- },
288
- {
289
- "type": "pcb_port",
290
- "pcb_port_id": "pcb_port_4",
291
- "source_port_id": "source_port_4",
292
- "pcb_component_id": "pcb_component_simple_bug_0",
293
- "x": 2.65,
294
- "y": -1.905,
295
- "layers": [
296
- "top"
297
- ]
298
- },
299
- {
300
- "type": "source_port",
301
- "name": "RESET",
302
- "source_port_id": "source_port_5",
303
- "source_component_id": "simple_bug_0",
304
- "pin_number": 6,
305
- "port_hints": [
306
- "RESET",
307
- "6"
308
- ]
309
- },
310
- {
311
- "type": "schematic_port",
312
- "schematic_port_id": "schematic_port_5",
313
- "source_port_id": "source_port_5",
314
- "center": {
315
- "x": 0.75,
316
- "y": -0.25
317
- },
318
- "facing_direction": "right",
319
- "schematic_component_id": "schematic_component_simple_bug_0"
320
- },
321
- {
322
- "type": "schematic_text",
323
- "schematic_port_id": "schematic_port_5",
324
- "schematic_text_id": "schematic_text_13",
325
- "text": "6",
326
- "anchor": "center",
327
- "rotation": 0,
328
- "position": {
329
- "x": 0.6262563132923542,
330
- "y": -0.3737436867076458
331
- },
332
- "schematic_component_id": "schematic_component_simple_bug_0"
333
- },
334
- {
335
- "type": "pcb_port",
336
- "pcb_port_id": "pcb_port_5",
337
- "source_port_id": "source_port_5",
338
- "pcb_component_id": "pcb_component_simple_bug_0",
339
- "x": 2.65,
340
- "y": -0.635,
341
- "layers": [
342
- "top"
343
- ]
344
- },
345
- {
346
- "type": "source_port",
347
- "name": "CTRL",
348
- "source_port_id": "source_port_6",
349
- "source_component_id": "simple_bug_0",
350
- "pin_number": 7,
351
- "port_hints": [
352
- "CTRL",
353
- "7"
354
- ]
355
- },
356
- {
357
- "type": "schematic_port",
358
- "schematic_port_id": "schematic_port_6",
359
- "source_port_id": "source_port_6",
360
- "center": {
361
- "x": 0.75,
362
- "y": 0.25
363
- },
364
- "facing_direction": "right",
365
- "schematic_component_id": "schematic_component_simple_bug_0"
366
- },
367
- {
368
- "type": "schematic_text",
369
- "schematic_port_id": "schematic_port_6",
370
- "schematic_text_id": "schematic_text_14",
371
- "text": "7",
372
- "anchor": "center",
373
- "rotation": 0,
374
- "position": {
375
- "x": 0.6262563132923542,
376
- "y": 0.12625631329235418
377
- },
378
- "schematic_component_id": "schematic_component_simple_bug_0"
379
- },
380
- {
381
- "type": "pcb_port",
382
- "pcb_port_id": "pcb_port_6",
383
- "source_port_id": "source_port_6",
384
- "pcb_component_id": "pcb_component_simple_bug_0",
385
- "x": 2.65,
386
- "y": 0.635,
387
- "layers": [
388
- "top"
389
- ]
390
- },
391
- {
392
- "type": "source_port",
393
- "name": "GND",
394
- "source_port_id": "source_port_7",
395
- "source_component_id": "simple_bug_0",
396
- "pin_number": 8,
397
- "port_hints": [
398
- "GND",
399
- "8"
400
- ]
401
- },
402
- {
403
- "type": "schematic_port",
404
- "schematic_port_id": "schematic_port_7",
405
- "source_port_id": "source_port_7",
406
- "center": {
407
- "x": 0.75,
408
- "y": 0.75
409
- },
410
- "facing_direction": "right",
411
- "schematic_component_id": "schematic_component_simple_bug_0"
412
- },
413
- {
414
- "type": "schematic_text",
415
- "schematic_port_id": "schematic_port_7",
416
- "schematic_text_id": "schematic_text_15",
417
- "text": "8",
418
- "anchor": "center",
419
- "rotation": 0,
420
- "position": {
421
- "x": 0.6262563132923542,
422
- "y": 0.6262563132923542
423
- },
424
- "schematic_component_id": "schematic_component_simple_bug_0"
425
- },
426
- {
427
- "type": "pcb_port",
428
- "pcb_port_id": "pcb_port_7",
429
- "source_port_id": "source_port_7",
430
- "pcb_component_id": "pcb_component_simple_bug_0",
431
- "x": 2.65,
432
- "y": 1.905,
433
- "layers": [
434
- "top"
435
- ]
436
- },
437
- {
438
- "type": "schematic_text",
439
- "schematic_text_id": "schematic_text_0",
440
- "schematic_component_id": "schematic_component_simple_bug_0",
441
- "text": "VCC",
442
- "anchor": "left",
443
- "rotation": 0,
444
- "position": {
445
- "x": -0.35,
446
- "y": 0.75
447
- }
448
- },
449
- {
450
- "type": "schematic_text",
451
- "schematic_text_id": "schematic_text_1",
452
- "schematic_component_id": "schematic_component_simple_bug_0",
453
- "text": "TRIG1",
454
- "anchor": "left",
455
- "rotation": 0,
456
- "position": {
457
- "x": -0.35,
458
- "y": 0.25
459
- }
460
- },
461
- {
462
- "type": "schematic_text",
463
- "schematic_text_id": "schematic_text_2",
464
- "schematic_component_id": "schematic_component_simple_bug_0",
465
- "text": "TRIG2",
466
- "anchor": "left",
467
- "rotation": 0,
468
- "position": {
469
- "x": -0.35,
470
- "y": -0.25
471
- }
472
- },
473
- {
474
- "type": "schematic_text",
475
- "schematic_text_id": "schematic_text_3",
476
- "schematic_component_id": "schematic_component_simple_bug_0",
477
- "text": "OUT1",
478
- "anchor": "left",
479
- "rotation": 0,
480
- "position": {
481
- "x": -0.35,
482
- "y": -0.75
483
- }
484
- },
485
- {
486
- "type": "schematic_text",
487
- "schematic_text_id": "schematic_text_4",
488
- "schematic_component_id": "schematic_component_simple_bug_0",
489
- "text": "OUT2",
490
- "anchor": "right",
491
- "rotation": 0,
492
- "position": {
493
- "x": 0.35,
494
- "y": -0.75
495
- }
496
- },
497
- {
498
- "type": "schematic_text",
499
- "schematic_text_id": "schematic_text_5",
500
- "schematic_component_id": "schematic_component_simple_bug_0",
501
- "text": "RESET",
502
- "anchor": "right",
503
- "rotation": 0,
504
- "position": {
505
- "x": 0.35,
506
- "y": -0.25
507
- }
508
- },
509
- {
510
- "type": "schematic_text",
511
- "schematic_text_id": "schematic_text_6",
512
- "schematic_component_id": "schematic_component_simple_bug_0",
513
- "text": "CTRL",
514
- "anchor": "right",
515
- "rotation": 0,
516
- "position": {
517
- "x": 0.35,
518
- "y": 0.25
519
- }
520
- },
521
- {
522
- "type": "schematic_text",
523
- "schematic_text_id": "schematic_text_7",
524
- "schematic_component_id": "schematic_component_simple_bug_0",
525
- "text": "GND",
526
- "anchor": "right",
527
- "rotation": 0,
528
- "position": {
529
- "x": 0.35,
530
- "y": 0.75
531
- }
532
- },
533
- {
534
- "type": "pcb_component",
535
- "source_component_id": "simple_bug_0",
536
- "pcb_component_id": "pcb_component_simple_bug_0",
537
- "layer": "top",
538
- "center": {
539
- "x": 0,
540
- "y": 0
541
- },
542
- "rotation": 0,
543
- "width": 6.3,
544
- "height": 4.41
545
- },
546
- {
547
- "type": "pcb_smtpad",
548
- "pcb_smtpad_id": "pcb_smtpad_0",
549
- "shape": "rect",
550
- "x": -2.65,
551
- "y": 1.905,
552
- "width": 1,
553
- "height": 0.6,
554
- "layer": "top",
555
- "pcb_component_id": "pcb_component_simple_bug_0",
556
- "port_hints": [
557
- "1"
558
- ],
559
- "pcb_port_id": "pcb_port_0"
560
- },
561
- {
562
- "type": "pcb_smtpad",
563
- "pcb_smtpad_id": "pcb_smtpad_3",
564
- "shape": "rect",
565
- "x": -2.65,
566
- "y": 0.635,
567
- "width": 1,
568
- "height": 0.6,
569
- "layer": "top",
570
- "pcb_component_id": "pcb_component_simple_bug_0",
571
- "port_hints": [
572
- "2"
573
- ],
574
- "pcb_port_id": "pcb_port_1"
575
- },
576
- {
577
- "type": "pcb_smtpad",
578
- "pcb_smtpad_id": "pcb_smtpad_6",
579
- "shape": "rect",
580
- "x": -2.65,
581
- "y": -0.635,
582
- "width": 1,
583
- "height": 0.6,
584
- "layer": "top",
585
- "pcb_component_id": "pcb_component_simple_bug_0",
586
- "port_hints": [
587
- "3"
588
- ],
589
- "pcb_port_id": "pcb_port_2"
590
- },
591
- {
592
- "type": "pcb_smtpad",
593
- "pcb_smtpad_id": "pcb_smtpad_7",
594
- "shape": "rect",
595
- "x": -2.65,
596
- "y": -1.905,
597
- "width": 1,
598
- "height": 0.6,
599
- "layer": "top",
600
- "pcb_component_id": "pcb_component_simple_bug_0",
601
- "port_hints": [
602
- "4"
603
- ],
604
- "pcb_port_id": "pcb_port_3"
605
- },
606
- {
607
- "type": "pcb_smtpad",
608
- "pcb_smtpad_id": "pcb_smtpad_8",
609
- "shape": "rect",
610
- "x": 2.65,
611
- "y": -1.905,
612
- "width": 1,
613
- "height": 0.6,
614
- "layer": "top",
615
- "pcb_component_id": "pcb_component_simple_bug_0",
616
- "port_hints": [
617
- "5"
618
- ],
619
- "pcb_port_id": "pcb_port_4"
620
- },
621
- {
622
- "type": "pcb_smtpad",
623
- "pcb_smtpad_id": "pcb_smtpad_9",
624
- "shape": "rect",
625
- "x": 2.65,
626
- "y": -0.635,
627
- "width": 1,
628
- "height": 0.6,
629
- "layer": "top",
630
- "pcb_component_id": "pcb_component_simple_bug_0",
631
- "port_hints": [
632
- "6"
633
- ],
634
- "pcb_port_id": "pcb_port_5"
635
- },
636
- {
637
- "type": "pcb_smtpad",
638
- "pcb_smtpad_id": "pcb_smtpad_10",
639
- "shape": "rect",
640
- "x": 2.65,
641
- "y": 0.635,
642
- "width": 1,
643
- "height": 0.6,
644
- "layer": "top",
645
- "pcb_component_id": "pcb_component_simple_bug_0",
646
- "port_hints": [
647
- "7"
648
- ],
649
- "pcb_port_id": "pcb_port_6"
650
- },
651
- {
652
- "type": "pcb_smtpad",
653
- "pcb_smtpad_id": "pcb_smtpad_11",
654
- "shape": "rect",
655
- "x": 2.65,
656
- "y": 1.905,
657
- "width": 1,
658
- "height": 0.6,
659
- "layer": "top",
660
- "pcb_component_id": "pcb_component_simple_bug_0",
661
- "port_hints": [
662
- "8"
663
- ],
664
- "pcb_port_id": "pcb_port_7"
665
- },
666
- {
667
- "type": "pcb_silkscreen_path",
668
- "layer": "top",
669
- "pcb_component_id": "pcb_component_simple_bug_0",
670
- "pcb_silkscreen_path_id": "pcb_silkscreen_path_0",
671
- "route": [
672
- {
673
- "x": -2.05,
674
- "y": -2.205
675
- },
676
- {
677
- "x": -2.05,
678
- "y": 2.205
679
- },
680
- {
681
- "x": -0.6833333333333332,
682
- "y": 2.205
683
- },
684
- {
685
- "x": -0.6313176805493792,
686
- "y": 1.943499654550522
687
- },
688
- {
689
- "x": -0.48318963381080743,
690
- "y": 1.7218103661891926
691
- },
692
- {
693
- "x": -0.2615003454494779,
694
- "y": 1.5736823194506209
695
- },
696
- {
697
- "x": 4.184209897086789e-17,
698
- "y": 1.521666666666667
699
- },
700
- {
701
- "x": 0.26150034544947803,
702
- "y": 1.5736823194506209
703
- },
704
- {
705
- "x": 0.4831896338108075,
706
- "y": 1.7218103661891926
707
- },
708
- {
709
- "x": 0.6313176805493792,
710
- "y": 1.943499654550522
711
- },
712
- {
713
- "x": 0.6833333333333332,
714
- "y": 2.205
715
- },
716
- {
717
- "x": 2.05,
718
- "y": 2.205
719
- },
720
- {
721
- "x": 2.05,
722
- "y": -2.205
723
- },
724
- {
725
- "x": -2.05,
726
- "y": -2.205
727
- }
728
- ],
729
- "stroke_width": 0.1
730
- },
731
- {
732
- "type": "source_component",
733
- "source_component_id": "simple_resistor_0",
734
- "name": "R1",
735
- "supplier_part_numbers": {},
736
- "ftype": "simple_resistor",
737
- "resistance": "10kohm",
738
- "pcbX": 5,
739
- "pcbY": 0
740
- },
741
- {
742
- "type": "schematic_component",
743
- "source_component_id": "simple_resistor_0",
744
- "schematic_component_id": "schematic_component_simple_resistor_0",
745
- "rotation": 0,
746
- "size": {
747
- "width": 1,
748
- "height": 0.3
749
- },
750
- "center": {
751
- "x": 0,
752
- "y": 0
753
- }
754
- },
755
- {
756
- "type": "source_port",
757
- "name": "left",
758
- "source_port_id": "source_port_8",
759
- "source_component_id": "simple_resistor_0"
760
- },
761
- {
762
- "type": "schematic_port",
763
- "schematic_port_id": "schematic_port_8",
764
- "source_port_id": "source_port_8",
765
- "center": {
766
- "x": -0.5,
767
- "y": 0
768
- },
769
- "facing_direction": "left",
770
- "schematic_component_id": "schematic_component_simple_resistor_0"
771
- },
772
- {
773
- "type": "pcb_port",
774
- "pcb_port_id": "pcb_port_8",
775
- "source_port_id": "source_port_8",
776
- "pcb_component_id": "pcb_component_simple_resistor_0",
777
- "x": 5.765730710285985,
778
- "y": -0.08702981863769477,
779
- "layers": [
780
- "top"
781
- ]
782
- },
783
- {
784
- "type": "source_port",
785
- "name": "right",
786
- "source_port_id": "source_port_9",
787
- "source_component_id": "simple_resistor_0"
788
- },
789
- {
790
- "type": "schematic_port",
791
- "schematic_port_id": "schematic_port_9",
792
- "source_port_id": "source_port_9",
793
- "center": {
794
- "x": 0.5,
795
- "y": 0
796
- },
797
- "facing_direction": "right",
798
- "schematic_component_id": "schematic_component_simple_resistor_0"
799
- },
800
- {
801
- "type": "pcb_port",
802
- "pcb_port_id": "pcb_port_9",
803
- "source_port_id": "source_port_9",
804
- "pcb_component_id": "pcb_component_simple_resistor_0",
805
- "x": 7.6657307102859855,
806
- "y": -0.08702981863769477,
807
- "layers": [
808
- "top"
809
- ]
810
- },
811
- {
812
- "type": "schematic_text",
813
- "text": "R1",
814
- "schematic_text_id": "schematic_text_16",
815
- "schematic_component_id": "schematic_component_simple_resistor_0",
816
- "anchor": "left",
817
- "position": {
818
- "x": -0.2,
819
- "y": -0.5
820
- },
821
- "rotation": 0
822
- },
823
- {
824
- "type": "schematic_text",
825
- "text": "10kohm",
826
- "schematic_text_id": "schematic_text_17",
827
- "schematic_component_id": "schematic_component_simple_resistor_0",
828
- "anchor": "left",
829
- "position": {
830
- "x": -0.2,
831
- "y": -0.3
832
- },
833
- "rotation": 0
834
- },
835
- {
836
- "type": "pcb_component",
837
- "source_component_id": "simple_resistor_0",
838
- "pcb_component_id": "pcb_component_simple_resistor_0",
839
- "layer": "top",
840
- "center": {
841
- "x": 6.715730710285985,
842
- "y": -0.08702981863769477
843
- },
844
- "rotation": 0,
845
- "width": 3.1,
846
- "height": 1.2
847
- },
848
- {
849
- "type": "pcb_smtpad",
850
- "pcb_smtpad_id": "pcb_smtpad_1",
851
- "shape": "rect",
852
- "x": 5.765730710285985,
853
- "y": -0.08702981863769477,
854
- "width": 1.2,
855
- "height": 1.2,
856
- "layer": "top",
857
- "pcb_component_id": "pcb_component_simple_resistor_0",
858
- "port_hints": [
859
- "1",
860
- "left"
861
- ],
862
- "pcb_port_id": "pcb_port_8"
863
- },
864
- {
865
- "type": "pcb_smtpad",
866
- "pcb_smtpad_id": "pcb_smtpad_4",
867
- "shape": "rect",
868
- "x": 7.6657307102859855,
869
- "y": -0.08702981863769477,
870
- "width": 1.2,
871
- "height": 1.2,
872
- "layer": "top",
873
- "pcb_component_id": "pcb_component_simple_resistor_0",
874
- "port_hints": [
875
- "2",
876
- "right"
877
- ],
878
- "pcb_port_id": "pcb_port_9"
879
- },
880
- {
881
- "type": "source_component",
882
- "source_component_id": "simple_capacitor_0",
883
- "name": "C1",
884
- "supplier_part_numbers": {},
885
- "ftype": "simple_capacitor",
886
- "capacitance": "1uF",
887
- "pcbRotation": "90deg",
888
- "pcbX": -4,
889
- "pcbY": 0
890
- },
891
- {
892
- "type": "schematic_component",
893
- "source_component_id": "simple_capacitor_0",
894
- "schematic_component_id": "schematic_component_simple_capacitor_0",
895
- "rotation": 0,
896
- "size": {
897
- "width": 0.75,
898
- "height": 0.75
899
- },
900
- "center": {
901
- "x": 0,
902
- "y": 0
903
- }
904
- },
905
- {
906
- "type": "source_port",
907
- "name": "left",
908
- "source_port_id": "source_port_10",
909
- "source_component_id": "simple_capacitor_0"
910
- },
911
- {
912
- "type": "schematic_port",
913
- "schematic_port_id": "schematic_port_10",
914
- "source_port_id": "source_port_10",
915
- "center": {
916
- "x": -0.5,
917
- "y": 0
918
- },
919
- "facing_direction": "left",
920
- "schematic_component_id": "schematic_component_simple_capacitor_0"
921
- },
922
- {
923
- "type": "pcb_port",
924
- "pcb_port_id": "pcb_port_10",
925
- "source_port_id": "source_port_10",
926
- "pcb_component_id": "pcb_component_simple_capacitor_0",
927
- "x": -5.690865047818071,
928
- "y": -0.9002686750641746,
929
- "layers": [
930
- "top"
931
- ]
932
- },
933
- {
934
- "type": "source_port",
935
- "name": "right",
936
- "source_port_id": "source_port_11",
937
- "source_component_id": "simple_capacitor_0"
938
- },
939
- {
940
- "type": "schematic_port",
941
- "schematic_port_id": "schematic_port_11",
942
- "source_port_id": "source_port_11",
943
- "center": {
944
- "x": 0.5,
945
- "y": 0
946
- },
947
- "facing_direction": "right",
948
- "schematic_component_id": "schematic_component_simple_capacitor_0"
949
- },
950
- {
951
- "type": "pcb_port",
952
- "pcb_port_id": "pcb_port_11",
953
- "source_port_id": "source_port_11",
954
- "pcb_component_id": "pcb_component_simple_capacitor_0",
955
- "x": -5.690865047818071,
956
- "y": 0.9997313249358253,
957
- "layers": [
958
- "top"
959
- ]
960
- },
961
- {
962
- "type": "schematic_text",
963
- "text": "C1",
964
- "schematic_text_id": "schematic_text_18",
965
- "schematic_component_id": "schematic_component_simple_capacitor_0",
966
- "anchor": "left",
967
- "position": {
968
- "x": -0.5,
969
- "y": -0.3
970
- },
971
- "rotation": 0
972
- },
973
- {
974
- "type": "schematic_text",
975
- "text": "1uF",
976
- "schematic_text_id": "schematic_text_19",
977
- "schematic_component_id": "schematic_component_simple_capacitor_0",
978
- "anchor": "left",
979
- "position": {
980
- "x": -0.3,
981
- "y": -0.3
982
- },
983
- "rotation": 0
984
- },
985
- {
986
- "type": "pcb_component",
987
- "source_component_id": "simple_capacitor_0",
988
- "pcb_component_id": "pcb_component_simple_capacitor_0",
989
- "layer": "top",
990
- "center": {
991
- "x": -5.690865047818071,
992
- "y": 0.04973132493582533
993
- },
994
- "rotation": 1.5707963267948966,
995
- "width": 1.2000000000000002,
996
- "height": 3.0999999999999996
997
- },
998
- {
999
- "type": "pcb_smtpad",
1000
- "pcb_smtpad_id": "pcb_smtpad_2",
1001
- "shape": "rect",
1002
- "x": -5.690865047818071,
1003
- "y": -0.9002686750641746,
1004
- "width": 1.2,
1005
- "height": 1.2,
1006
- "layer": "top",
1007
- "pcb_component_id": "pcb_component_simple_capacitor_0",
1008
- "port_hints": [
1009
- "1",
1010
- "left"
1011
- ],
1012
- "pcb_port_id": "pcb_port_10"
1013
- },
1014
- {
1015
- "type": "pcb_smtpad",
1016
- "pcb_smtpad_id": "pcb_smtpad_5",
1017
- "shape": "rect",
1018
- "x": -5.690865047818071,
1019
- "y": 0.9997313249358253,
1020
- "width": 1.2,
1021
- "height": 1.2,
1022
- "layer": "top",
1023
- "pcb_component_id": "pcb_component_simple_capacitor_0",
1024
- "port_hints": [
1025
- "2",
1026
- "right"
1027
- ],
1028
- "pcb_port_id": "pcb_port_11"
1029
- },
1030
- {
1031
- "type": "pcb_trace_hint",
1032
- "pcb_trace_hint_id": "pcb_trace_hint_0",
1033
- "pcb_component_id": "pcb_component_simple_resistor_0",
1034
- "pcb_port_id": "pcb_port_8",
1035
- "route": [
1036
- {
1037
- "x": 6.009796574599028,
1038
- "y": -3.3550799986079776,
1039
- "via": true
1040
- },
1041
- {
1042
- "x": -0.0201265738698293,
1043
- "y": 0.4369335277487263,
1044
- "via": true
1045
- }
1046
- ]
1047
- },
1048
- {
1049
- "type": "pcb_trace_hint",
1050
- "pcb_trace_hint_id": "pcb_trace_hint_1",
1051
- "pcb_component_id": "pcb_component_simple_capacitor_0",
1052
- "pcb_port_id": "pcb_port_11",
1053
- "route": [
1054
- {
1055
- "x": -5.726796110255819,
1056
- "y": 2.63754465615901,
1057
- "via": true
1058
- },
1059
- {
1060
- "x": 2.541036660325192,
1061
- "y": 3.557574167471784,
1062
- "via": true
1063
- }
1064
- ]
1065
- },
1066
- {
1067
- "type": "pcb_trace_hint",
1068
- "pcb_trace_hint_id": "pcb_trace_hint_2",
1069
- "pcb_component_id": "pcb_component_simple_capacitor_0",
1070
- "pcb_port_id": "pcb_port_10",
1071
- "route": [
1072
- {
1073
- "x": -4.471080155626221,
1074
- "y": -0.806349595646914,
1075
- "via": false
1076
- }
1077
- ]
1078
- },
1079
- {
1080
- "type": "source_trace",
1081
- "source_trace_id": "source_trace_0",
1082
- "connected_source_port_ids": [
1083
- "source_port_8",
1084
- "source_port_0"
1085
- ]
1086
- },
1087
- {
1088
- "type": "schematic_trace",
1089
- "source_trace_id": "source_trace_0",
1090
- "schematic_trace_id": "schematic_trace_0",
1091
- "edges": [
1092
- {
1093
- "from": {
1094
- "x": -0.65,
1095
- "y": 0,
1096
- "schematic_port_id": "schematic_port_8",
1097
- "facing_direction": "left"
1098
- },
1099
- "to": {
1100
- "x": -0.9,
1101
- "y": 0.75,
1102
- "schematic_port_id": "schematic_port_0",
1103
- "facing_direction": "left"
1104
- }
1105
- },
1106
- {
1107
- "from": {
1108
- "x": -0.5,
1109
- "y": 0,
1110
- "ti": 0
1111
- },
1112
- "to": {
1113
- "x": -0.65,
1114
- "y": 0,
1115
- "schematic_port_id": "schematic_port_8",
1116
- "facing_direction": "left"
1117
- }
1118
- },
1119
- {
1120
- "from": {
1121
- "x": -0.75,
1122
- "y": 0.75,
1123
- "ti": 1
1124
- },
1125
- "to": {
1126
- "x": -0.9,
1127
- "y": 0.75,
1128
- "schematic_port_id": "schematic_port_0",
1129
- "facing_direction": "left"
1130
- }
1131
- }
1132
- ]
1133
- },
1134
- {
1135
- "type": "pcb_trace",
1136
- "pcb_trace_id": "pcb_trace_0",
1137
- "source_trace_id": "source_trace_0",
1138
- "route": [
1139
- {
1140
- "route_type": "wire",
1141
- "layer": "top",
1142
- "width": 0.2,
1143
- "x": 5.8,
1144
- "y": 0
1145
- },
1146
- {
1147
- "route_type": "wire",
1148
- "layer": "top",
1149
- "width": 0.2,
1150
- "x": 5.8,
1151
- "y": -1.4000000000000004
1152
- },
1153
- {
1154
- "route_type": "wire",
1155
- "layer": "top",
1156
- "width": 0.2,
1157
- "x": 6,
1158
- "y": -1.5999999999999996
1159
- },
1160
- {
1161
- "route_type": "wire",
1162
- "layer": "top",
1163
- "width": 0.2,
1164
- "x": 6,
1165
- "y": -3.4000000000000004
1166
- },
1167
- {
1168
- "route_type": "wire",
1169
- "layer": "bottom",
1170
- "width": 0.2,
1171
- "x": 6,
1172
- "y": -3.4000000000000004
1173
- },
1174
- {
1175
- "route_type": "wire",
1176
- "layer": "bottom",
1177
- "width": 0.2,
1178
- "x": 5.800000000000001,
1179
- "y": -3.2
1180
- },
1181
- {
1182
- "route_type": "wire",
1183
- "layer": "bottom",
1184
- "width": 0.2,
1185
- "x": 5.600000000000001,
1186
- "y": -3.2
1187
- },
1188
- {
1189
- "route_type": "wire",
1190
- "layer": "bottom",
1191
- "width": 0.2,
1192
- "x": 3.4000000000000004,
1193
- "y": -1
1194
- },
1195
- {
1196
- "route_type": "wire",
1197
- "layer": "bottom",
1198
- "width": 0.2,
1199
- "x": 2.6000000000000005,
1200
- "y": -1
1201
- },
1202
- {
1203
- "route_type": "wire",
1204
- "layer": "bottom",
1205
- "width": 0.2,
1206
- "x": 2.4000000000000004,
1207
- "y": -0.7999999999999998
1208
- },
1209
- {
1210
- "route_type": "wire",
1211
- "layer": "bottom",
1212
- "width": 0.2,
1213
- "x": 2,
1214
- "y": -0.7999999999999998
1215
- },
1216
- {
1217
- "route_type": "wire",
1218
- "layer": "bottom",
1219
- "width": 0.2,
1220
- "x": 1.4000000000000004,
1221
- "y": -0.20000000000000018
1222
- },
1223
- {
1224
- "route_type": "wire",
1225
- "layer": "bottom",
1226
- "width": 0.2,
1227
- "x": 1,
1228
- "y": -0.20000000000000018
1229
- },
1230
- {
1231
- "route_type": "wire",
1232
- "layer": "bottom",
1233
- "width": 0.2,
1234
- "x": 0.6000000000000005,
1235
- "y": 0.20000000000000018
1236
- },
1237
- {
1238
- "route_type": "wire",
1239
- "layer": "bottom",
1240
- "width": 0.2,
1241
- "x": 0.20000000000000018,
1242
- "y": 0.20000000000000018
1243
- },
1244
- {
1245
- "route_type": "wire",
1246
- "layer": "bottom",
1247
- "width": 0.2,
1248
- "x": 0,
1249
- "y": 0.40000000000000036
1250
- },
1251
- {
1252
- "route_type": "wire",
1253
- "layer": "top",
1254
- "width": 0.2,
1255
- "x": 0,
1256
- "y": 0.3999999999999999
1257
- },
1258
- {
1259
- "route_type": "wire",
1260
- "layer": "top",
1261
- "width": 0.2,
1262
- "x": -0.40000000000000036,
1263
- "y": 0.3999999999999999
1264
- },
1265
- {
1266
- "route_type": "wire",
1267
- "layer": "top",
1268
- "width": 0.2,
1269
- "x": -0.7999999999999998,
1270
- "y": 0.8000000000000003
1271
- },
1272
- {
1273
- "route_type": "wire",
1274
- "layer": "top",
1275
- "width": 0.2,
1276
- "x": -1,
1277
- "y": 0.8000000000000003
1278
- },
1279
- {
1280
- "route_type": "wire",
1281
- "layer": "top",
1282
- "width": 0.2,
1283
- "x": -1.2000000000000002,
1284
- "y": 1.0000000000000004
1285
- },
1286
- {
1287
- "route_type": "wire",
1288
- "layer": "top",
1289
- "width": 0.2,
1290
- "x": -1.4000000000000004,
1291
- "y": 1.0000000000000004
1292
- },
1293
- {
1294
- "route_type": "wire",
1295
- "layer": "top",
1296
- "width": 0.2,
1297
- "x": -1.7999999999999998,
1298
- "y": 1.4
1299
- },
1300
- {
1301
- "route_type": "wire",
1302
- "layer": "top",
1303
- "width": 0.2,
1304
- "x": -2,
1305
- "y": 1.4
1306
- },
1307
- {
1308
- "route_type": "wire",
1309
- "layer": "top",
1310
- "width": 0.2,
1311
- "x": -2.6000000000000005,
1312
- "y": 2.0000000000000004
1313
- }
1314
- ]
1315
- },
1316
- {
1317
- "type": "pcb_via",
1318
- "x": 6,
1319
- "y": -3.4000000000000004,
1320
- "from_layer": "top",
1321
- "to_layer": "bottom",
1322
- "hole_diameter": 0.2,
1323
- "outer_diameter": 0.4
1324
- },
1325
- {
1326
- "type": "pcb_via",
1327
- "x": 0,
1328
- "y": 0.40000000000000036,
1329
- "from_layer": "bottom",
1330
- "to_layer": "top",
1331
- "hole_diameter": 0.2,
1332
- "outer_diameter": 0.4
1333
- },
1334
- {
1335
- "type": "source_trace",
1336
- "source_trace_id": "source_trace_1",
1337
- "connected_source_port_ids": [
1338
- "source_port_9",
1339
- "source_port_6"
1340
- ]
1341
- },
1342
- {
1343
- "type": "schematic_trace",
1344
- "source_trace_id": "source_trace_1",
1345
- "schematic_trace_id": "schematic_trace_1",
1346
- "edges": [
1347
- {
1348
- "from": {
1349
- "x": 0.8,
1350
- "y": 0.09999999999999998,
1351
- "directionBias": "right"
1352
- },
1353
- "to": {
1354
- "x": 0.9000000000000001,
1355
- "y": 0.09999999999999998
1356
- }
1357
- },
1358
- {
1359
- "from": {
1360
- "x": 0.9000000000000001,
1361
- "y": 0.09999999999999998
1362
- },
1363
- "to": {
1364
- "x": 0.9000000000000001,
1365
- "y": 0.20000000000000007,
1366
- "directionBias": "right"
1367
- }
1368
- },
1369
- {
1370
- "from": {
1371
- "x": 0.5,
1372
- "y": 0,
1373
- "ti": 0
1374
- },
1375
- "to": {
1376
- "x": 0.8,
1377
- "y": 0.09999999999999998,
1378
- "directionBias": "right"
1379
- }
1380
- },
1381
- {
1382
- "from": {
1383
- "x": 0.75,
1384
- "y": 0.25,
1385
- "ti": 1
1386
- },
1387
- "to": {
1388
- "x": 0.9000000000000001,
1389
- "y": 0.20000000000000007,
1390
- "directionBias": "right"
1391
- }
1392
- }
1393
- ]
1394
- },
1395
- {
1396
- "type": "pcb_trace",
1397
- "pcb_trace_id": "pcb_trace_1",
1398
- "source_trace_id": "source_trace_1",
1399
- "route": [
1400
- {
1401
- "route_type": "wire",
1402
- "layer": "top",
1403
- "width": 0.2,
1404
- "x": 2.5999999999999996,
1405
- "y": 0.6000000000000005
1406
- },
1407
- {
1408
- "route_type": "wire",
1409
- "layer": "top",
1410
- "width": 0.2,
1411
- "x": 4.2,
1412
- "y": 0.6000000000000005
1413
- },
1414
- {
1415
- "route_type": "wire",
1416
- "layer": "top",
1417
- "width": 0.2,
1418
- "x": 4.6,
1419
- "y": 1
1420
- },
1421
- {
1422
- "route_type": "wire",
1423
- "layer": "top",
1424
- "width": 0.2,
1425
- "x": 6.800000000000001,
1426
- "y": 1
1427
- },
1428
- {
1429
- "route_type": "wire",
1430
- "layer": "top",
1431
- "width": 0.2,
1432
- "x": 6.800000000000001,
1433
- "y": 0.8000000000000007
1434
- },
1435
- {
1436
- "route_type": "wire",
1437
- "layer": "top",
1438
- "width": 0.2,
1439
- "x": 7.6,
1440
- "y": 0
1441
- }
1442
- ]
1443
- },
1444
- {
1445
- "type": "source_trace",
1446
- "source_trace_id": "source_trace_2",
1447
- "connected_source_port_ids": [
1448
- "source_port_10",
1449
- "source_port_0"
1450
- ]
1451
- },
1452
- {
1453
- "type": "schematic_trace",
1454
- "source_trace_id": "source_trace_2",
1455
- "schematic_trace_id": "schematic_trace_2",
1456
- "edges": [
1457
- {
1458
- "from": {
1459
- "x": -0.65,
1460
- "y": 0,
1461
- "schematic_port_id": "schematic_port_10",
1462
- "facing_direction": "left"
1463
- },
1464
- "to": {
1465
- "x": -0.9,
1466
- "y": 0.75,
1467
- "schematic_port_id": "schematic_port_0",
1468
- "facing_direction": "left"
1469
- }
1470
- },
1471
- {
1472
- "from": {
1473
- "x": -0.5,
1474
- "y": 0,
1475
- "ti": 0
1476
- },
1477
- "to": {
1478
- "x": -0.65,
1479
- "y": 0,
1480
- "schematic_port_id": "schematic_port_10",
1481
- "facing_direction": "left"
1482
- }
1483
- },
1484
- {
1485
- "from": {
1486
- "x": -0.75,
1487
- "y": 0.75,
1488
- "ti": 1
1489
- },
1490
- "to": {
1491
- "x": -0.9,
1492
- "y": 0.75,
1493
- "schematic_port_id": "schematic_port_0",
1494
- "facing_direction": "left"
1495
- }
1496
- }
1497
- ]
1498
- },
1499
- {
1500
- "type": "pcb_trace",
1501
- "pcb_trace_id": "pcb_trace_2",
1502
- "source_trace_id": "source_trace_2",
1503
- "route": [
1504
- {
1505
- "route_type": "wire",
1506
- "layer": "top",
1507
- "width": 0.2,
1508
- "x": -5.600000000000001,
1509
- "y": -1
1510
- },
1511
- {
1512
- "route_type": "wire",
1513
- "layer": "top",
1514
- "width": 0.2,
1515
- "x": -5.400000000000001,
1516
- "y": -0.7999999999999998
1517
- },
1518
- {
1519
- "route_type": "wire",
1520
- "layer": "top",
1521
- "width": 0.2,
1522
- "x": -4.400000000000001,
1523
- "y": -0.7999999999999998
1524
- },
1525
- {
1526
- "route_type": "wire",
1527
- "layer": "top",
1528
- "width": 0.2,
1529
- "x": -4.4,
1530
- "y": -0.8000000000000007
1531
- },
1532
- {
1533
- "route_type": "wire",
1534
- "layer": "top",
1535
- "width": 0.2,
1536
- "x": -3.8,
1537
- "y": -0.20000000000000018
1538
- },
1539
- {
1540
- "route_type": "wire",
1541
- "layer": "top",
1542
- "width": 0.2,
1543
- "x": -3.8,
1544
- "y": 1.3999999999999995
1545
- },
1546
- {
1547
- "route_type": "wire",
1548
- "layer": "top",
1549
- "width": 0.2,
1550
- "x": -3.5999999999999996,
1551
- "y": 1.5999999999999996
1552
- },
1553
- {
1554
- "route_type": "wire",
1555
- "layer": "top",
1556
- "width": 0.2,
1557
- "x": -3,
1558
- "y": 1.5999999999999996
1559
- },
1560
- {
1561
- "route_type": "wire",
1562
- "layer": "top",
1563
- "width": 0.2,
1564
- "x": -2.5999999999999996,
1565
- "y": 2
1566
- }
1567
- ]
1568
- },
1569
- {
1570
- "type": "source_trace",
1571
- "source_trace_id": "source_trace_3",
1572
- "connected_source_port_ids": [
1573
- "source_port_11",
1574
- "source_port_7"
1575
- ]
1576
- },
1577
- {
1578
- "type": "schematic_trace",
1579
- "source_trace_id": "source_trace_3",
1580
- "schematic_trace_id": "schematic_trace_3",
1581
- "edges": [
1582
- {
1583
- "from": {
1584
- "x": 0.8,
1585
- "y": -0.09999999999999998,
1586
- "directionBias": "right"
1587
- },
1588
- "to": {
1589
- "x": 0.8,
1590
- "y": 0
1591
- }
1592
- },
1593
- {
1594
- "from": {
1595
- "x": 0.8,
1596
- "y": 0
1597
- },
1598
- "to": {
1599
- "x": 1.0000000000000002,
1600
- "y": 0
1601
- }
1602
- },
1603
- {
1604
- "from": {
1605
- "x": 1.0000000000000002,
1606
- "y": 0
1607
- },
1608
- "to": {
1609
- "x": 1.0000000000000002,
1610
- "y": 0.8
1611
- }
1612
- },
1613
- {
1614
- "from": {
1615
- "x": 1.0000000000000002,
1616
- "y": 0.8
1617
- },
1618
- "to": {
1619
- "x": 0.9000000000000001,
1620
- "y": 0.8,
1621
- "directionBias": "right"
1622
- }
1623
- },
1624
- {
1625
- "from": {
1626
- "x": 0.5,
1627
- "y": 0,
1628
- "ti": 0
1629
- },
1630
- "to": {
1631
- "x": 0.8,
1632
- "y": 0
1633
- }
1634
- },
1635
- {
1636
- "from": {
1637
- "x": 0.75,
1638
- "y": 0.75,
1639
- "ti": 1
1640
- },
1641
- "to": {
1642
- "x": 0.9000000000000001,
1643
- "y": 0.8,
1644
- "directionBias": "right"
1645
- }
1646
- }
1647
- ]
1648
- },
1649
- {
1650
- "type": "pcb_trace",
1651
- "pcb_trace_id": "pcb_trace_3",
1652
- "source_trace_id": "source_trace_3",
1653
- "route": [
1654
- {
1655
- "route_type": "wire",
1656
- "layer": "top",
1657
- "width": 0.2,
1658
- "x": -5.6000000000000005,
1659
- "y": 1
1660
- },
1661
- {
1662
- "route_type": "wire",
1663
- "layer": "top",
1664
- "width": 0.2,
1665
- "x": -5.6000000000000005,
1666
- "y": 2.4000000000000004
1667
- },
1668
- {
1669
- "route_type": "wire",
1670
- "layer": "top",
1671
- "width": 0.2,
1672
- "x": -5.800000000000001,
1673
- "y": 2.6000000000000005
1674
- },
1675
- {
1676
- "route_type": "wire",
1677
- "layer": "bottom",
1678
- "width": 0.2,
1679
- "x": -5.800000000000001,
1680
- "y": 2.5999999999999996
1681
- },
1682
- {
1683
- "route_type": "wire",
1684
- "layer": "bottom",
1685
- "width": 0.2,
1686
- "x": -3.4000000000000004,
1687
- "y": 2.5999999999999996
1688
- },
1689
- {
1690
- "route_type": "wire",
1691
- "layer": "bottom",
1692
- "width": 0.2,
1693
- "x": -3.2,
1694
- "y": 2.8
1695
- },
1696
- {
1697
- "route_type": "wire",
1698
- "layer": "bottom",
1699
- "width": 0.2,
1700
- "x": -2.6000000000000005,
1701
- "y": 2.8
1702
- },
1703
- {
1704
- "route_type": "wire",
1705
- "layer": "bottom",
1706
- "width": 0.2,
1707
- "x": -2.4000000000000004,
1708
- "y": 3
1709
- },
1710
- {
1711
- "route_type": "wire",
1712
- "layer": "bottom",
1713
- "width": 0.2,
1714
- "x": -1.8000000000000007,
1715
- "y": 3
1716
- },
1717
- {
1718
- "route_type": "wire",
1719
- "layer": "bottom",
1720
- "width": 0.2,
1721
- "x": -1.5999999999999996,
1722
- "y": 3.2
1723
- },
1724
- {
1725
- "route_type": "wire",
1726
- "layer": "bottom",
1727
- "width": 0.2,
1728
- "x": 0.1999999999999993,
1729
- "y": 3.2
1730
- },
1731
- {
1732
- "route_type": "wire",
1733
- "layer": "bottom",
1734
- "width": 0.2,
1735
- "x": 0.40000000000000036,
1736
- "y": 3.4000000000000004
1737
- },
1738
- {
1739
- "route_type": "wire",
1740
- "layer": "bottom",
1741
- "width": 0.2,
1742
- "x": 1.1999999999999993,
1743
- "y": 3.4000000000000004
1744
- },
1745
- {
1746
- "route_type": "wire",
1747
- "layer": "bottom",
1748
- "width": 0.2,
1749
- "x": 1.4000000000000004,
1750
- "y": 3.5999999999999996
1751
- },
1752
- {
1753
- "route_type": "wire",
1754
- "layer": "bottom",
1755
- "width": 0.2,
1756
- "x": 2.5999999999999996,
1757
- "y": 3.5999999999999996
1758
- },
1759
- {
1760
- "route_type": "wire",
1761
- "layer": "top",
1762
- "width": 0.2,
1763
- "x": 2.5999999999999996,
1764
- "y": 3.6000000000000005
1765
- },
1766
- {
1767
- "route_type": "wire",
1768
- "layer": "top",
1769
- "width": 0.2,
1770
- "x": 2.5999999999999996,
1771
- "y": 2
1772
- }
1773
- ]
1774
- },
1775
- {
1776
- "type": "pcb_via",
1777
- "x": -5.800000000000001,
1778
- "y": 2.6000000000000005,
1779
- "from_layer": "top",
1780
- "to_layer": "bottom",
1781
- "hole_diameter": 0.2,
1782
- "outer_diameter": 0.4
1783
- },
1784
- {
1785
- "type": "pcb_via",
1786
- "x": 2.5999999999999996,
1787
- "y": 3.5999999999999996,
1788
- "from_layer": "bottom",
1789
- "to_layer": "top",
1790
- "hole_diameter": 0.2,
1791
- "outer_diameter": 0.4
1792
- },
1793
- {
1794
- "type": "pcb_board",
1795
- "center": {
1796
- "x": 0,
1797
- "y": 0
1798
- },
1799
- "width": 20,
1800
- "height": 20
1801
- }
1802
- ]