@tscircuit/pcb-viewer 1.0.0

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,843 @@
1
+ export default {
2
+ version: "7.1.0",
3
+ settings: {
4
+ alwaysvectorfont: "no",
5
+ verticaltext: "up",
6
+ },
7
+ grid: {
8
+ distance: 0.1,
9
+ unitdist: "inch",
10
+ unit: "inch",
11
+ style: "lines",
12
+ multiple: 1,
13
+ display: "no",
14
+ altdistance: 0.01,
15
+ altunitdist: "inch",
16
+ altunit: "inch",
17
+ },
18
+ layers: [
19
+ {
20
+ number: 1,
21
+ name: "Top",
22
+ color: 4,
23
+ fill: 1,
24
+ visible: "yes",
25
+ active: "yes",
26
+ },
27
+ {
28
+ number: 16,
29
+ name: "Bottom",
30
+ color: 1,
31
+ fill: 1,
32
+ visible: "yes",
33
+ active: "yes",
34
+ },
35
+ {
36
+ number: 17,
37
+ name: "Pads",
38
+ color: 2,
39
+ fill: 1,
40
+ visible: "yes",
41
+ active: "yes",
42
+ },
43
+ {
44
+ number: 18,
45
+ name: "Vias",
46
+ color: 2,
47
+ fill: 1,
48
+ visible: "yes",
49
+ active: "yes",
50
+ },
51
+ {
52
+ number: 19,
53
+ name: "Unrouted",
54
+ color: 6,
55
+ fill: 1,
56
+ visible: "yes",
57
+ active: "yes",
58
+ },
59
+ {
60
+ number: 20,
61
+ name: "Dimension",
62
+ color: 15,
63
+ fill: 1,
64
+ visible: "yes",
65
+ active: "yes",
66
+ },
67
+ {
68
+ number: 21,
69
+ name: "tPlace",
70
+ color: 7,
71
+ fill: 1,
72
+ visible: "yes",
73
+ active: "yes",
74
+ },
75
+ {
76
+ number: 22,
77
+ name: "bPlace",
78
+ color: 7,
79
+ fill: 1,
80
+ visible: "yes",
81
+ active: "yes",
82
+ },
83
+ {
84
+ number: 23,
85
+ name: "tOrigins",
86
+ color: 15,
87
+ fill: 1,
88
+ visible: "yes",
89
+ active: "yes",
90
+ },
91
+ {
92
+ number: 24,
93
+ name: "bOrigins",
94
+ color: 15,
95
+ fill: 1,
96
+ visible: "yes",
97
+ active: "yes",
98
+ },
99
+ {
100
+ number: 25,
101
+ name: "tNames",
102
+ color: 7,
103
+ fill: 1,
104
+ visible: "yes",
105
+ active: "yes",
106
+ },
107
+ {
108
+ number: 26,
109
+ name: "bNames",
110
+ color: 7,
111
+ fill: 1,
112
+ visible: "yes",
113
+ active: "yes",
114
+ },
115
+ {
116
+ number: 27,
117
+ name: "tValues",
118
+ color: 7,
119
+ fill: 1,
120
+ visible: "yes",
121
+ active: "yes",
122
+ },
123
+ {
124
+ number: 28,
125
+ name: "bValues",
126
+ color: 7,
127
+ fill: 1,
128
+ visible: "yes",
129
+ active: "yes",
130
+ },
131
+ {
132
+ number: 29,
133
+ name: "tStop",
134
+ color: 7,
135
+ fill: 3,
136
+ visible: "yes",
137
+ active: "yes",
138
+ },
139
+ {
140
+ number: 30,
141
+ name: "bStop",
142
+ color: 7,
143
+ fill: 6,
144
+ visible: "no",
145
+ active: "yes",
146
+ },
147
+ {
148
+ number: 31,
149
+ name: "tCream",
150
+ color: 7,
151
+ fill: 4,
152
+ visible: "yes",
153
+ active: "yes",
154
+ },
155
+ {
156
+ number: 32,
157
+ name: "bCream",
158
+ color: 7,
159
+ fill: 5,
160
+ visible: "no",
161
+ active: "yes",
162
+ },
163
+ {
164
+ number: 33,
165
+ name: "tFinish",
166
+ color: 6,
167
+ fill: 3,
168
+ visible: "no",
169
+ active: "yes",
170
+ },
171
+ {
172
+ number: 34,
173
+ name: "bFinish",
174
+ color: 6,
175
+ fill: 6,
176
+ visible: "no",
177
+ active: "yes",
178
+ },
179
+ {
180
+ number: 35,
181
+ name: "tGlue",
182
+ color: 7,
183
+ fill: 4,
184
+ visible: "no",
185
+ active: "yes",
186
+ },
187
+ {
188
+ number: 36,
189
+ name: "bGlue",
190
+ color: 7,
191
+ fill: 5,
192
+ visible: "no",
193
+ active: "yes",
194
+ },
195
+ {
196
+ number: 37,
197
+ name: "tTest",
198
+ color: 7,
199
+ fill: 1,
200
+ visible: "no",
201
+ active: "yes",
202
+ },
203
+ {
204
+ number: 38,
205
+ name: "bTest",
206
+ color: 7,
207
+ fill: 1,
208
+ visible: "no",
209
+ active: "yes",
210
+ },
211
+ {
212
+ number: 39,
213
+ name: "tKeepout",
214
+ color: 4,
215
+ fill: 11,
216
+ visible: "yes",
217
+ active: "yes",
218
+ },
219
+ {
220
+ number: 40,
221
+ name: "bKeepout",
222
+ color: 1,
223
+ fill: 11,
224
+ visible: "yes",
225
+ active: "yes",
226
+ },
227
+ {
228
+ number: 41,
229
+ name: "tRestrict",
230
+ color: 4,
231
+ fill: 10,
232
+ visible: "yes",
233
+ active: "yes",
234
+ },
235
+ {
236
+ number: 42,
237
+ name: "bRestrict",
238
+ color: 1,
239
+ fill: 10,
240
+ visible: "yes",
241
+ active: "yes",
242
+ },
243
+ {
244
+ number: 43,
245
+ name: "vRestrict",
246
+ color: 2,
247
+ fill: 10,
248
+ visible: "yes",
249
+ active: "yes",
250
+ },
251
+ {
252
+ number: 44,
253
+ name: "Drills",
254
+ color: 7,
255
+ fill: 1,
256
+ visible: "no",
257
+ active: "yes",
258
+ },
259
+ {
260
+ number: 45,
261
+ name: "Holes",
262
+ color: 7,
263
+ fill: 1,
264
+ visible: "no",
265
+ active: "yes",
266
+ },
267
+ {
268
+ number: 46,
269
+ name: "Milling",
270
+ color: 3,
271
+ fill: 1,
272
+ visible: "no",
273
+ active: "yes",
274
+ },
275
+ {
276
+ number: 47,
277
+ name: "Measures",
278
+ color: 7,
279
+ fill: 1,
280
+ visible: "no",
281
+ active: "yes",
282
+ },
283
+ {
284
+ number: 48,
285
+ name: "Document",
286
+ color: 7,
287
+ fill: 1,
288
+ visible: "yes",
289
+ active: "yes",
290
+ },
291
+ {
292
+ number: 49,
293
+ name: "Reference",
294
+ color: 7,
295
+ fill: 1,
296
+ visible: "yes",
297
+ active: "yes",
298
+ },
299
+ {
300
+ number: 51,
301
+ name: "tDocu",
302
+ color: 7,
303
+ fill: 1,
304
+ visible: "yes",
305
+ active: "yes",
306
+ },
307
+ {
308
+ number: 52,
309
+ name: "bDocu",
310
+ color: 7,
311
+ fill: 1,
312
+ visible: "yes",
313
+ active: "yes",
314
+ },
315
+ {
316
+ number: 90,
317
+ name: "Modules",
318
+ color: 5,
319
+ fill: 1,
320
+ visible: "yes",
321
+ active: "yes",
322
+ },
323
+ {
324
+ number: 91,
325
+ name: "Nets",
326
+ color: 2,
327
+ fill: 1,
328
+ visible: "yes",
329
+ active: "yes",
330
+ },
331
+ {
332
+ number: 92,
333
+ name: "Busses",
334
+ color: 1,
335
+ fill: 1,
336
+ visible: "yes",
337
+ active: "yes",
338
+ },
339
+ {
340
+ number: 93,
341
+ name: "Pins",
342
+ color: 2,
343
+ fill: 1,
344
+ visible: "yes",
345
+ active: "yes",
346
+ },
347
+ {
348
+ number: 94,
349
+ name: "Symbols",
350
+ color: 4,
351
+ fill: 1,
352
+ visible: "yes",
353
+ active: "yes",
354
+ },
355
+ {
356
+ number: 95,
357
+ name: "Names",
358
+ color: 7,
359
+ fill: 1,
360
+ visible: "yes",
361
+ active: "yes",
362
+ },
363
+ {
364
+ number: 96,
365
+ name: "Values",
366
+ color: 7,
367
+ fill: 1,
368
+ visible: "yes",
369
+ active: "yes",
370
+ },
371
+ {
372
+ number: 97,
373
+ name: "Info",
374
+ color: 7,
375
+ fill: 1,
376
+ visible: "yes",
377
+ active: "yes",
378
+ },
379
+ {
380
+ number: 98,
381
+ name: "Guide",
382
+ color: 6,
383
+ fill: 1,
384
+ visible: "yes",
385
+ active: "yes",
386
+ },
387
+ ],
388
+ library: {
389
+ packages: [
390
+ {
391
+ circle: [
392
+ {
393
+ x: -4.44,
394
+ y: 4.4,
395
+ radius: 0.1,
396
+ width: 0.2,
397
+ layer: 21,
398
+ },
399
+ ],
400
+ wire: [
401
+ {
402
+ x1: -1.9475,
403
+ y1: 4.425,
404
+ x2: 1.9475,
405
+ y2: 4.425,
406
+ width: 0.127,
407
+ layer: 21,
408
+ },
409
+ {
410
+ x1: -1.9475,
411
+ y1: -4.425,
412
+ x2: 1.9475,
413
+ y2: -4.425,
414
+ width: 0.127,
415
+ layer: 21,
416
+ },
417
+ {
418
+ x1: -3.705,
419
+ y1: 4.5725,
420
+ x2: 3.705,
421
+ y2: 4.5725,
422
+ width: 0.05,
423
+ layer: 39,
424
+ },
425
+ {
426
+ x1: -3.705,
427
+ y1: -4.5725,
428
+ x2: 3.705,
429
+ y2: -4.5725,
430
+ width: 0.05,
431
+ layer: 39,
432
+ },
433
+ {
434
+ x1: -3.705,
435
+ y1: 4.5725,
436
+ x2: -3.705,
437
+ y2: -4.5725,
438
+ width: 0.05,
439
+ layer: 39,
440
+ },
441
+ {
442
+ x1: 3.705,
443
+ y1: 4.5725,
444
+ x2: 3.705,
445
+ y2: -4.5725,
446
+ width: 0.05,
447
+ layer: 39,
448
+ },
449
+ ],
450
+ text: [
451
+ {
452
+ "#text": ">VALUE",
453
+ x: -3.965,
454
+ y: -4.602,
455
+ size: 1.27,
456
+ layer: 27,
457
+ align: "top-left",
458
+ },
459
+ {
460
+ "#text": ">NAME",
461
+ x: -3.965,
462
+ y: 4.602,
463
+ size: 1.27,
464
+ layer: 25,
465
+ },
466
+ ],
467
+ smd: [
468
+ {
469
+ name: 1,
470
+ x: -2.47,
471
+ y: 3.81,
472
+ dx: 1.97,
473
+ dy: 0.59,
474
+ layer: 1,
475
+ roundness: 25,
476
+ },
477
+ {
478
+ name: 2,
479
+ x: -2.47,
480
+ y: 2.54,
481
+ dx: 1.97,
482
+ dy: 0.59,
483
+ layer: 1,
484
+ roundness: 25,
485
+ },
486
+ {
487
+ name: 3,
488
+ x: -2.47,
489
+ y: 1.27,
490
+ dx: 1.97,
491
+ dy: 0.59,
492
+ layer: 1,
493
+ roundness: 25,
494
+ },
495
+ {
496
+ name: 4,
497
+ x: -2.47,
498
+ y: 0,
499
+ dx: 1.97,
500
+ dy: 0.59,
501
+ layer: 1,
502
+ roundness: 25,
503
+ },
504
+ {
505
+ name: 5,
506
+ x: -2.47,
507
+ y: -1.27,
508
+ dx: 1.97,
509
+ dy: 0.59,
510
+ layer: 1,
511
+ roundness: 25,
512
+ },
513
+ {
514
+ name: 6,
515
+ x: -2.47,
516
+ y: -2.54,
517
+ dx: 1.97,
518
+ dy: 0.59,
519
+ layer: 1,
520
+ roundness: 25,
521
+ },
522
+ {
523
+ name: 7,
524
+ x: -2.47,
525
+ y: -3.81,
526
+ dx: 1.97,
527
+ dy: 0.59,
528
+ layer: 1,
529
+ roundness: 25,
530
+ },
531
+ {
532
+ name: 8,
533
+ x: 2.47,
534
+ y: -3.81,
535
+ dx: 1.97,
536
+ dy: 0.59,
537
+ layer: 1,
538
+ roundness: 25,
539
+ },
540
+ {
541
+ name: 9,
542
+ x: 2.47,
543
+ y: -2.54,
544
+ dx: 1.97,
545
+ dy: 0.59,
546
+ layer: 1,
547
+ roundness: 25,
548
+ },
549
+ {
550
+ name: 10,
551
+ x: 2.47,
552
+ y: -1.27,
553
+ dx: 1.97,
554
+ dy: 0.59,
555
+ layer: 1,
556
+ roundness: 25,
557
+ },
558
+ {
559
+ name: 11,
560
+ x: 2.47,
561
+ y: 0,
562
+ dx: 1.97,
563
+ dy: 0.59,
564
+ layer: 1,
565
+ roundness: 25,
566
+ },
567
+ {
568
+ name: 12,
569
+ x: 2.47,
570
+ y: 1.27,
571
+ dx: 1.97,
572
+ dy: 0.59,
573
+ layer: 1,
574
+ roundness: 25,
575
+ },
576
+ {
577
+ name: 13,
578
+ x: 2.47,
579
+ y: 2.54,
580
+ dx: 1.97,
581
+ dy: 0.59,
582
+ layer: 1,
583
+ roundness: 25,
584
+ },
585
+ {
586
+ name: 14,
587
+ x: 2.47,
588
+ y: 3.81,
589
+ dx: 1.97,
590
+ dy: 0.59,
591
+ layer: 1,
592
+ roundness: 25,
593
+ },
594
+ ],
595
+ name: "SOIC127P599X175-14N",
596
+ rect: [],
597
+ },
598
+ ],
599
+ devicesets: [
600
+ {
601
+ description:
602
+ "MCU 8-bit ATtiny AVR CISC 8KB Flash 1.8V/2.5V/3.3V/5V 14-Pin SOIC W Tray",
603
+ gates: [
604
+ {
605
+ name: "G$1",
606
+ symbol: "ATTINY841-SSU",
607
+ x: 0,
608
+ y: 0,
609
+ },
610
+ ],
611
+ devices: [
612
+ {
613
+ connects: [
614
+ {
615
+ gate: "G$1",
616
+ pin: "GND",
617
+ pad: 14,
618
+ },
619
+ {
620
+ gate: "G$1",
621
+ pin: "PA0",
622
+ pad: 13,
623
+ },
624
+ {
625
+ gate: "G$1",
626
+ pin: "PA1",
627
+ pad: 12,
628
+ },
629
+ {
630
+ gate: "G$1",
631
+ pin: "PA2",
632
+ pad: 11,
633
+ },
634
+ {
635
+ gate: "G$1",
636
+ pin: "PA3",
637
+ pad: 10,
638
+ },
639
+ {
640
+ gate: "G$1",
641
+ pin: "PA4",
642
+ pad: 9,
643
+ },
644
+ {
645
+ gate: "G$1",
646
+ pin: "PA5",
647
+ pad: 8,
648
+ },
649
+ {
650
+ gate: "G$1",
651
+ pin: "PA6",
652
+ pad: 7,
653
+ },
654
+ {
655
+ gate: "G$1",
656
+ pin: "PA7",
657
+ pad: 6,
658
+ },
659
+ {
660
+ gate: "G$1",
661
+ pin: "PB0",
662
+ pad: 2,
663
+ },
664
+ {
665
+ gate: "G$1",
666
+ pin: "PB1",
667
+ pad: 3,
668
+ },
669
+ {
670
+ gate: "G$1",
671
+ pin: "PB2",
672
+ pad: 5,
673
+ },
674
+ {
675
+ gate: "G$1",
676
+ pin: "PB3",
677
+ pad: 4,
678
+ },
679
+ {
680
+ gate: "G$1",
681
+ pin: "VCC",
682
+ pad: 1,
683
+ },
684
+ ],
685
+ name: "",
686
+ package: "SOIC127P599X175-14N",
687
+ },
688
+ ],
689
+ name: "ATTINY841-SSU",
690
+ prefix: "U",
691
+ },
692
+ ],
693
+ symbols: [
694
+ {
695
+ wire: [
696
+ {
697
+ x1: 10.16,
698
+ y1: 15.24,
699
+ x2: 10.16,
700
+ y2: -17.78,
701
+ width: 0.1524,
702
+ layer: 94,
703
+ },
704
+ {
705
+ x1: 10.16,
706
+ y1: -17.78,
707
+ x2: -10.16,
708
+ y2: -17.78,
709
+ width: 0.1524,
710
+ layer: 94,
711
+ },
712
+ {
713
+ x1: -10.16,
714
+ y1: -17.78,
715
+ x2: -10.16,
716
+ y2: 15.24,
717
+ width: 0.1524,
718
+ layer: 94,
719
+ },
720
+ {
721
+ x1: -10.16,
722
+ y1: 15.24,
723
+ x2: 10.16,
724
+ y2: 15.24,
725
+ width: 0.1524,
726
+ layer: 94,
727
+ },
728
+ ],
729
+ text: [
730
+ {
731
+ "#text": ">NAME",
732
+ x: -10.16,
733
+ y: 16.002,
734
+ size: 1.778,
735
+ layer: 95,
736
+ },
737
+ {
738
+ "#text": ">VALUE",
739
+ x: -10.16,
740
+ y: -20.32,
741
+ size: 1.778,
742
+ layer: 96,
743
+ },
744
+ ],
745
+ pin: [
746
+ {
747
+ name: "VCC",
748
+ x: 15.24,
749
+ y: 12.7,
750
+ length: "middle",
751
+ direction: "pwr",
752
+ rot: "R180",
753
+ },
754
+ {
755
+ name: "PB0",
756
+ x: 15.24,
757
+ y: 2.54,
758
+ length: "middle",
759
+ rot: "R180",
760
+ },
761
+ {
762
+ name: "PA0",
763
+ x: -15.24,
764
+ y: 7.62,
765
+ length: "middle",
766
+ },
767
+ {
768
+ name: "GND",
769
+ x: 15.24,
770
+ y: -15.24,
771
+ length: "middle",
772
+ direction: "pwr",
773
+ rot: "R180",
774
+ },
775
+ {
776
+ name: "PB1",
777
+ x: 15.24,
778
+ y: 0,
779
+ length: "middle",
780
+ rot: "R180",
781
+ },
782
+ {
783
+ name: "PB2",
784
+ x: 15.24,
785
+ y: -2.54,
786
+ length: "middle",
787
+ rot: "R180",
788
+ },
789
+ {
790
+ name: "PB3",
791
+ x: 15.24,
792
+ y: -5.08,
793
+ length: "middle",
794
+ rot: "R180",
795
+ },
796
+ {
797
+ name: "PA6",
798
+ x: -15.24,
799
+ y: -7.62,
800
+ length: "middle",
801
+ },
802
+ {
803
+ name: "PA7",
804
+ x: -15.24,
805
+ y: -10.16,
806
+ length: "middle",
807
+ },
808
+ {
809
+ name: "PA1",
810
+ x: -15.24,
811
+ y: 5.08,
812
+ length: "middle",
813
+ },
814
+ {
815
+ name: "PA2",
816
+ x: -15.24,
817
+ y: 2.54,
818
+ length: "middle",
819
+ },
820
+ {
821
+ name: "PA3",
822
+ x: -15.24,
823
+ y: 0,
824
+ length: "middle",
825
+ },
826
+ {
827
+ name: "PA4",
828
+ x: -15.24,
829
+ y: -2.54,
830
+ length: "middle",
831
+ },
832
+ {
833
+ name: "PA5",
834
+ x: -15.24,
835
+ y: -5.08,
836
+ length: "middle",
837
+ },
838
+ ],
839
+ name: "ATTINY841-SSU",
840
+ },
841
+ ],
842
+ },
843
+ }