easyeda 0.0.2 → 0.0.4

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 (33) hide show
  1. package/dist/cli/main.cjs +17 -5
  2. package/dist/cli/main.cjs.map +1 -1
  3. package/dist/lib/index.cjs +1 -1
  4. package/dist/lib/index.cjs.map +1 -1
  5. package/package.json +10 -3
  6. package/ai-assist-docs/soup-reference.md +0 -1325
  7. package/bun.lockb +0 -0
  8. package/cli/main.ts +0 -67
  9. package/dist/index.cjs +0 -29196
  10. package/dist/index.cjs.map +0 -1
  11. package/dist/index.d.cts +0 -1553
  12. package/lib/convert-easyeda-json-to-tscircuit-soup-json.ts +0 -204
  13. package/lib/fetch-easyeda-json.ts +0 -66
  14. package/lib/index.ts +0 -2
  15. package/lib/math/arc-utils.ts +0 -170
  16. package/lib/schemas/easy-eda-json-schema.ts +0 -158
  17. package/lib/schemas/package-detail-shape-schema.ts +0 -251
  18. package/lib/schemas/single-letter-shape-schema.ts +0 -201
  19. package/renovate.json +0 -6
  20. package/scripts/get-easyeda-json.ts +0 -12
  21. package/tests/assets/a555-timer-dip.raweasy.json +0 -244
  22. package/tests/assets/a555-timer-smd.raweasy.json +0 -226
  23. package/tests/assets/esp32.raweasy.json +0 -333
  24. package/tests/assets/usb-c.raweasy.json +0 -263
  25. package/tests/convert-to-soup-tests/a555timer-smd.test.ts +0 -18
  26. package/tests/convert-to-soup-tests/convert-easyeda-to-tscircuit-soup.test.ts +0 -49
  27. package/tests/convert-to-soup-tests/convert-usb-c-to-soup.test.ts +0 -18
  28. package/tests/convert-to-soup-tests/esp32-to-soup.test.ts +0 -13
  29. package/tests/parse-tests/parse-555-timer-json.test.ts +0 -9
  30. package/tests/parse-tests/parse-esp32.test.ts +0 -9
  31. package/tests/parse-tests/parse-usb-c.test.ts +0 -9
  32. package/tests/parse-tests/single-letter-shape-schema.test.ts +0 -30
  33. package/tsconfig.json +0 -28
@@ -1,263 +0,0 @@
1
- {
2
- "uuid": "04b7d8073e854006b41709a96b7a21a9",
3
- "title": "TYPE-C 16PIN 2MD(073)",
4
- "description": "",
5
- "docType": 2,
6
- "type": 3,
7
- "lcsc": {
8
- "id": 2901843,
9
- "number": "C2765186"
10
- },
11
- "szlcsc": {
12
- "id": 2901843,
13
- "number": "C2765186"
14
- },
15
- "owner": {
16
- "uuid": "0819f05c4eef4c71ace90d822a990e87",
17
- "username": "LCSC",
18
- "nickname": "LCSC",
19
- "avatar": "//image.lceda.cn/avatars/2018/6/kFlrasi7W06gTdBLAqW3fkrqbDhbowynuSzkjqso.png"
20
- },
21
- "tags": [
22
- "USB Connectors"
23
- ],
24
- "updateTime": 1704942616,
25
- "updated_at": "2024-06-22 18:59:02",
26
- "dataStr": {
27
- "head": {
28
- "docType": "2",
29
- "editorVersion": "6.4.20.2",
30
- "x": 410,
31
- "y": 290,
32
- "c_para": {
33
- "pre": "USB?",
34
- "name": "TYPE-C 16PIN 2MD(073)",
35
- "package": "USB-C-SMD_TYPE-C-6PIN-2MD-073",
36
- "Contributor": "LCSC",
37
- "Supplier": "LCSC",
38
- "Supplier Part": "C2765186",
39
- "Manufacturer": "SHOU HAN(首韩)",
40
- "Manufacturer Part": "TYPE-C 16PIN 2MD(073)",
41
- "JLCPCB Part Class": "Extended Part"
42
- },
43
- "uuid": "04b7d8073e854006b41709a96b7a21a9",
44
- "puuid": "5a7e9ad3682242f88608293ce637ea1d",
45
- "importFlag": 0,
46
- "c_spiceCmd": null,
47
- "hasIdFlag": true,
48
- "utime": 1624702573
49
- },
50
- "canvas": "CA~1000~1000~#FFFFFF~yes~#CCCCCC~5~1000~1000~line~5~pixel~5~410~290",
51
- "shape": [
52
- "R~375~225~2~2~65~130~#880000~1~0~none~gge1~0~",
53
- "E~380~230~1.5~1.5~#880000~1~0~#880000~gge2~0",
54
- "P~show~0~1~365~235~180~gge5~0^^365~235^^M365,235h10~#000000^^1~378.7~239~0~GND~start~~~#000000^^1~374.5~234~0~1~end~~~#000000^^0~372~235^^0~M 375 238 L 378 235 L 375 232",
55
- "P~show~0~2~365~245~180~gge6~0^^365~245^^M365,245h10~#880000^^1~378.7~249~0~VBUS~start~~~#0000FF^^1~374.5~244~0~2~end~~~#0000FF^^0~372~245^^0~M 375 248 L 378 245 L 375 242",
56
- "P~show~0~3~365~255~180~gge7~0^^365~255^^M365,255h10~#880000^^1~378.7~259~0~SBU2~start~~~#0000FF^^1~374.5~254~0~3~end~~~#0000FF^^0~372~255^^0~M 375 258 L 378 255 L 375 252",
57
- "P~show~0~4~365~265~180~gge8~0^^365~265^^M365,265h10~#880000^^1~378.7~269~0~CC1~start~~~#0000FF^^1~374.5~264~0~4~end~~~#0000FF^^0~372~265^^0~M 375 268 L 378 265 L 375 262",
58
- "P~show~0~5~365~275~180~gge9~0^^365~275^^M365,275h10~#880000^^1~378.7~279~0~DN2~start~~~#0000FF^^1~374.5~274~0~5~end~~~#0000FF^^0~372~275^^0~M 375 278 L 378 275 L 375 272",
59
- "P~show~0~6~365~285~180~gge10~0^^365~285^^M365,285h10~#880000^^1~378.7~289~0~DP1~start~~~#0000FF^^1~374.5~284~0~6~end~~~#0000FF^^0~372~285^^0~M 375 288 L 378 285 L 375 282",
60
- "P~show~0~7~365~295~180~gge11~0^^365~295^^M365,295h10~#880000^^1~378.7~299~0~DN1~start~~~#0000FF^^1~374.5~294~0~7~end~~~#0000FF^^0~372~295^^0~M 375 298 L 378 295 L 375 292",
61
- "P~show~0~8~365~305~180~gge12~0^^365~305^^M365,305h10~#880000^^1~378.7~309~0~DP2~start~~~#0000FF^^1~374.5~304~0~8~end~~~#0000FF^^0~372~305^^0~M 375 308 L 378 305 L 375 302",
62
- "P~show~0~9~365~315~180~gge13~0^^365~315^^M365,315h10~#880000^^1~378.7~319~0~SBU1~start~~~#0000FF^^1~374.5~314~0~9~end~~~#0000FF^^0~372~315^^0~M 375 318 L 378 315 L 375 312",
63
- "P~show~0~10~365~325~180~gge14~0^^365~325^^M365,325h10~#880000^^1~378.7~329~0~CC2~start~~~#0000FF^^1~374.5~324~0~10~end~~~#0000FF^^0~372~325^^0~M 375 328 L 378 325 L 375 322",
64
- "P~show~0~11~365~335~180~gge15~0^^365~335^^M365,335h10~#880000^^1~378.7~339~0~VBUS~start~~~#0000FF^^1~374.5~334~0~11~end~~~#0000FF^^0~372~335^^0~M 375 338 L 378 335 L 375 332",
65
- "P~show~0~12~365~345~180~gge16~0^^365~345^^M365,345h10~#000000^^1~378.7~349~0~GND~start~~~#000000^^1~374.5~344~0~12~end~~~#000000^^0~372~345^^0~M 375 348 L 378 345 L 375 342",
66
- "P~show~0~13~450~345~0~gge17~0^^450~345^^M 450 345 h -10~#880000^^1~436.3~349~0~SHELL~end~~~#0000FF^^1~440.5~344~0~13~start~~~#0000FF^^0~443~345^^0~M 440 342 L 437 345 L 440 348",
67
- "P~show~0~14~450~235~0~gge18~0^^450~235^^M 450 235 h -10~#880000^^1~436.3~239~0~SHELL~end~~~#0000FF^^1~440.5~234~0~14~start~~~#0000FF^^0~443~235^^0~M 440 232 L 437 235 L 440 238"
68
- ],
69
- "BBox": {
70
- "x": 362.6,
71
- "y": 224.5,
72
- "width": 89.8,
73
- "height": 130.5
74
- },
75
- "colors": []
76
- },
77
- "verify": true,
78
- "datastrid": "720c8fff08994a6d9b58a3d309fa6250",
79
- "SMT": true,
80
- "jlcOnSale": 1,
81
- "writable": false,
82
- "isFavorite": false,
83
- "packageDetail": {
84
- "uuid": "5a7e9ad3682242f88608293ce637ea1d",
85
- "title": "USB-C-SMD_TYPE-C-6PIN-2MD-073",
86
- "docType": 4,
87
- "updateTime": 1700530688,
88
- "owner": {
89
- "uuid": "0819f05c4eef4c71ace90d822a990e87",
90
- "username": "lcsc",
91
- "nickname": "LCSC",
92
- "avatar": "//image.lceda.cn/avatars/2018/6/kFlrasi7W06gTdBLAqW3fkrqbDhbowynuSzkjqso.png"
93
- },
94
- "datastrid": "7e43d155957e4c6582c26c0c2e9e487a",
95
- "writable": false,
96
- "dataStr": {
97
- "head": {
98
- "docType": "4",
99
- "editorVersion": "6.5.39",
100
- "newgId": true,
101
- "c_para": {
102
- "package": "USB-C-SMD_TYPE-C-6PIN-2MD-073",
103
- "pre": "U?",
104
- "Contributor": "lcsc",
105
- "link": "https://atta.szlcsc.com/upload/public/pdf/source/20210409/C2765186_34D42616F62DF94D17C4D63D74D9FD03.pdf",
106
- "3DModel": "USB-C-SMD_TYPE-C-6PIN-2MD-073"
107
- },
108
- "x": 4010.8265,
109
- "y": 3009.3505,
110
- "hasIdFlag": true,
111
- "utime": 1700530688,
112
- "uuid": "5a7e9ad3682242f88608293ce637ea1d",
113
- "importFlag": 0,
114
- "transformList": "",
115
- "uuid_3d": "ff475a240fa34f8baecaa5e4563511b1"
116
- },
117
- "canvas": "CA~1000~1000~#000000~yes~#FFFFFF~10~1000~1000~line~0.03937~mm~1~45~visible~0.5~4010.8265~3009.3505~0~none",
118
- "shape": [
119
- "CIRCLE~3993.307~2998.921~0.118~0.2362~101~gge564~0~~",
120
- "CIRCLE~3999.449~3004.213~0.492~0.9843~12~gge242~0~~",
121
- "CIRCLE~4022.205~3004.213~0.492~0.9843~12~gge245~0~~",
122
- "SOLIDREGION~100~~M 4003.5433 2998.9208 L 4004.3307 2998.9208 L 4004.3307 3002.2672 L 4003.5433 3002.2672 Z ~solid~gge211~~~~0",
123
- "SOLIDREGION~100~~M 4007.4803 2998.9208 L 4008.2677 2998.9208 L 4008.2677 3002.2672 L 4007.4803 3002.2672 Z ~solid~gge212~~~~0",
124
- "SOLIDREGION~100~~M 4005.5123 2998.9208 L 4006.2997 2998.9208 L 4006.2997 3002.2672 L 4005.5123 3002.2672 Z ~solid~gge213~~~~0",
125
- "SOLIDREGION~100~~M 4009.4483 2998.9208 L 4010.2357 2998.9208 L 4010.2357 3002.2672 L 4009.4483 3002.2672 Z ~solid~gge214~~~~0",
126
- "SOLIDREGION~100~~M 4011.4173 2998.9208 L 4012.2047 2998.9208 L 4012.2047 3002.2672 L 4011.4173 3002.2672 Z ~solid~gge215~~~~0",
127
- "SOLIDREGION~100~~M 4013.3853 2998.9208 L 4014.1727 2998.9208 L 4014.1727 3002.2672 L 4013.3853 3002.2672 Z ~solid~gge216~~~~0",
128
- "SOLIDREGION~100~~M 4015.3543 2998.9208 L 4016.1417 2998.9208 L 4016.1417 3002.2672 L 4015.3543 3002.2672 Z ~solid~gge217~~~~0",
129
- "SOLIDREGION~100~~M 4017.3233 2998.9208 L 4018.1107 2998.9208 L 4018.1107 3002.2672 L 4017.3233 3002.2672 Z ~solid~gge218~~~~0",
130
- "SOLIDREGION~100~~M 3997.4406 2998.9208 L 3999.0154 2998.9208 L 3999.0154 3002.2672 L 3997.4406 3002.2672 Z ~solid~gge219~~~~0",
131
- "SOLIDREGION~100~~M 4000.5906 2998.9208 L 4002.1654 2998.9208 L 4002.1654 3002.2672 L 4000.5906 3002.2672 Z ~solid~gge220~~~~0",
132
- "SOLIDREGION~100~~M 4019.4886 2998.9208 L 4021.0634 2998.9208 L 4021.0634 3002.2672 L 4019.4886 3002.2672 Z ~solid~gge221~~~~0",
133
- "SOLIDREGION~100~~M 4022.6376 2998.9208 L 4024.2124 2998.9208 L 4024.2124 3002.2672 L 4022.6376 3002.2672 Z ~solid~gge222~~~~0",
134
- "SOLIDREGION~100~~M 3993.3069 3000.1019 L 3994.2911 3000.1019 L 3994.2911 3004.4327 L 3993.3069 3004.4327 Z ~solid~gge237~~~~0",
135
- "SOLIDREGION~100~~M 4027.3619 3000.1019 L 4028.3461 3000.1019 L 4028.3461 3004.4327 L 4027.3619 3004.4327 Z ~solid~gge238~~~~0",
136
- "SOLIDREGION~100~~M 3993.3069 3017.323 L 3994.2911 3017.323 L 3994.2911 3020.079 L 3993.3069 3020.079 Z~solid~gge239~~~~0",
137
- "SOLIDREGION~100~~M 4027.3619 3017.323 L 4028.3461 3017.323 L 4028.3461 3020.079 L 4027.3619 3020.079 Z~solid~gge240~~~~0",
138
- "SOLIDREGION~99~~M 3993.3069 3029.0389 L 3993.3069 3000.1019 L 4028.3463 3000.1019 L 4028.3463 3029.0389 Z ~solid~gge206~~~~0",
139
- "SOLIDREGION~5~~M4016.3386,3002.1653L4016.3386,2997.8346L4015.1574,2997.8346L4015.1574,3002.1653Z~solid~gge499~~~~0",
140
- "SOLIDREGION~5~~M4017.1264,2997.8346L4017.1264,3002.1653L4018.3076,3002.1653L4018.3076,2997.8346Z~solid~gge502~~~~0",
141
- "SOLIDREGION~5~~M3997.0469,2997.8346L3997.0469,3002.1653L3999.4091,3002.1653L3999.4091,2997.8346Z~solid~gge505~~~~0",
142
- "SOLIDREGION~5~~M4014.3696,3002.1653L4014.3696,2997.8346L4013.1884,2997.8346L4013.1884,3002.1653Z~solid~gge508~~~~0",
143
- "SOLIDREGION~5~~M4019.0949,2997.8346L4019.0949,3002.1653L4021.4571,3002.1653L4021.4571,2997.8346Z~solid~gge511~~~~0",
144
- "SOLIDREGION~5~~M4024.6061,3002.1653L4024.6061,2997.8346L4022.2439,2997.8346L4022.2439,3002.1653Z~solid~gge514~~~~0",
145
- "SOLIDREGION~5~~M4012.4016,3002.1653L4012.4016,2997.8346L4011.2204,2997.8346L4011.2204,3002.1653Z~solid~gge517~~~~0",
146
- "SOLIDREGION~5~~M4010.4326,3002.1653L4010.4326,2997.8346L4009.2514,2997.8346L4009.2514,3002.1653Z~solid~gge520~~~~0",
147
- "SOLIDREGION~5~~M4000.1969,2997.8346L4000.1969,3002.1653L4002.5591,3002.1653L4002.5591,2997.8346Z~solid~gge523~~~~0",
148
- "SOLIDREGION~5~~M4008.4646,3002.1653L4008.4646,2997.8346L4007.2834,2997.8346L4007.2834,3002.1653Z~solid~gge526~~~~0",
149
- "SOLIDREGION~5~~M4006.4966,3002.1653L4006.4966,2997.8346L4005.3154,2997.8346L4005.3154,3002.1653Z~solid~gge529~~~~0",
150
- "SOLIDREGION~5~~M4004.5276,3002.1653L4004.5276,2997.8346L4003.3464,2997.8346L4003.3464,3002.1653Z~solid~gge532~~~~0",
151
- "SOLIDREGION~5~~M4028.0305,2998.2346L4027.9129,2998.2287L4027.7951,2998.2287L4027.6775,2998.2346L4027.5603,2998.2463L4027.4438,2998.2639L4027.3284,2998.2872L4027.2142,2998.3163L4027.1017,2998.351L4026.991,2998.3913L4026.8825,2998.437L4026.7763,2998.4881L4026.6729,2998.5445L4026.5724,2998.6059L4026.4751,2998.6722L4026.3812,2998.7434L4026.291,2998.8191L4026.2046,2998.8992L4026.1224,2998.9835L4026.0444,2999.0718L4025.971,2999.1639L4025.9023,2999.2595L4025.8384,2999.3585L4025.7795,2999.4605L4025.7257,2999.5653L4025.6773,2999.6726L4025.6343,2999.7823L4025.5967,2999.8939L4025.5648,3000.0073L4025.5386,3000.1221L4025.5182,3000.2381L4025.5035,3000.355L4025.4947,3000.4725L4025.4918,3000.5902L4025.4918,3003.7398L4025.4947,3003.8575L4025.5035,3003.975L4025.5182,3004.0919L4025.5386,3004.2079L4025.5648,3004.3227L4025.5967,3004.4361L4025.6343,3004.5477L4025.6773,3004.6574L4025.7257,3004.7647L4025.7795,3004.8695L4025.8384,3004.9715L4025.9023,3005.0705L4025.971,3005.1661L4026.0444,3005.2582L4026.1224,3005.3465L4026.2046,3005.4308L4026.291,3005.5109L4026.3812,3005.5866L4026.4751,3005.6578L4026.5724,3005.7241L4026.6729,3005.7855L4026.7763,3005.8419L4026.8825,3005.893L4026.991,3005.9387L4027.1017,3005.979L4027.2142,3006.0137L4027.3284,3006.0428L4027.4438,3006.0661L4027.5603,3006.0837L4027.6775,3006.0954L4027.7951,3006.1013L4027.9129,3006.1013L4028.0305,3006.0954L4028.1477,3006.0837L4028.2642,3006.0661L4028.3796,3006.0428L4028.4938,3006.0137L4028.6063,3005.979L4028.717,3005.9387L4028.8255,3005.893L4028.9317,3005.8419L4029.0351,3005.7855L4029.1356,3005.7241L4029.2329,3005.6578L4029.3268,3005.5866L4029.417,3005.5109L4029.5034,3005.4308L4029.5856,3005.3465L4029.6636,3005.2582L4029.737,3005.1661L4029.8057,3005.0705L4029.8696,3004.9715L4029.9285,3004.8695L4029.9823,3004.7647L4030.0307,3004.6574L4030.0737,3004.5477L4030.1113,3004.4361L4030.1432,3004.3227L4030.1694,3004.2079L4030.1898,3004.0919L4030.2045,3003.975L4030.2133,3003.8575L4030.2162,3003.7398L4030.2162,3000.5902L4030.2133,3000.4725L4030.2045,3000.355L4030.1898,3000.2381L4030.1694,3000.1221L4030.1432,3000.0073L4030.1113,2999.8939L4030.0737,2999.7823L4030.0307,2999.6726L4029.9823,2999.5653L4029.9285,2999.4605L4029.8696,2999.3585L4029.8057,2999.2595L4029.737,2999.1639L4029.6636,2999.0718L4029.5856,2998.9835L4029.5034,2998.8992L4029.417,2998.8191L4029.3268,2998.7434L4029.2329,2998.6722L4029.1356,2998.6059L4029.0351,2998.5445L4028.9317,2998.4881L4028.8255,2998.437L4028.717,2998.3913L4028.6063,2998.351L4028.4938,2998.3163L4028.3796,2998.2872L4028.2642,2998.2639L4028.1477,2998.2463Z~solid~gge535~~~~0",
152
- "SOLIDREGION~5~~M3993.7401,2998.2287L3993.6225,2998.2346L3993.5053,2998.2463L3993.3888,2998.2639L3993.2734,2998.2872L3993.1592,2998.3163L3993.0467,2998.351L3992.936,2998.3913L3992.8275,2998.437L3992.7213,2998.4881L3992.6179,2998.5445L3992.5174,2998.6059L3992.4201,2998.6722L3992.3262,2998.7434L3992.236,2998.8191L3992.1496,2998.8992L3992.0674,2998.9835L3991.9894,2999.0718L3991.916,2999.1639L3991.8473,2999.2595L3991.7834,2999.3585L3991.7245,2999.4605L3991.6707,2999.5653L3991.6223,2999.6726L3991.5793,2999.7823L3991.5417,2999.8939L3991.5098,3000.0073L3991.4836,3000.1221L3991.4632,3000.2381L3991.4485,3000.355L3991.4397,3000.4725L3991.4368,3000.5902L3991.4368,3003.7398L3991.4397,3003.8575L3991.4485,3003.975L3991.4632,3004.0919L3991.4836,3004.2079L3991.5098,3004.3227L3991.5417,3004.4361L3991.5793,3004.5477L3991.6223,3004.6574L3991.6707,3004.7647L3991.7245,3004.8695L3991.7834,3004.9715L3991.8473,3005.0705L3991.916,3005.1661L3991.9894,3005.2582L3992.0674,3005.3465L3992.1496,3005.4308L3992.236,3005.5109L3992.3262,3005.5866L3992.4201,3005.6578L3992.5174,3005.7241L3992.6179,3005.7855L3992.7213,3005.8419L3992.8275,3005.893L3992.936,3005.9387L3993.0467,3005.979L3993.1592,3006.0137L3993.2734,3006.0428L3993.3888,3006.0661L3993.5053,3006.0837L3993.6225,3006.0954L3993.7401,3006.1013L3993.8579,3006.1013L3993.9755,3006.0954L3994.0927,3006.0837L3994.2092,3006.0661L3994.3246,3006.0428L3994.4388,3006.0137L3994.5513,3005.979L3994.662,3005.9387L3994.7705,3005.893L3994.8767,3005.8419L3994.9801,3005.7855L3995.0806,3005.7241L3995.1779,3005.6578L3995.2718,3005.5866L3995.362,3005.5109L3995.4484,3005.4308L3995.5306,3005.3465L3995.6086,3005.2582L3995.682,3005.1661L3995.7507,3005.0705L3995.8146,3004.9715L3995.8735,3004.8695L3995.9273,3004.7647L3995.9757,3004.6574L3996.0187,3004.5477L3996.0563,3004.4361L3996.0882,3004.3227L3996.1144,3004.2079L3996.1348,3004.0919L3996.1495,3003.975L3996.1583,3003.8575L3996.1612,3003.7398L3996.1612,3000.5902L3996.1583,3000.4725L3996.1495,3000.355L3996.1348,3000.2381L3996.1144,3000.1221L3996.0882,3000.0073L3996.0563,2999.8939L3996.0187,2999.7823L3995.9757,2999.6726L3995.9273,2999.5653L3995.8735,2999.4605L3995.8146,2999.3585L3995.7507,2999.2595L3995.682,2999.1639L3995.6086,2999.0718L3995.5306,2998.9835L3995.4484,2998.8992L3995.362,2998.8191L3995.2718,2998.7434L3995.1779,2998.6722L3995.0806,2998.6059L3994.9801,2998.5445L3994.8767,2998.4881L3994.7705,2998.437L3994.662,2998.3913L3994.5513,2998.351L3994.4388,2998.3163L3994.3246,2998.2872L3994.2092,2998.2639L3994.0927,2998.2463L3993.9755,2998.2346L3993.8579,2998.2287Z~solid~gge538~~~~0",
153
- "SOLIDREGION~5~~M3993.9755,3015.7549L3993.8579,3015.749L3993.7401,3015.749L3993.6225,3015.7549L3993.5053,3015.7666L3993.3888,3015.7842L3993.2734,3015.8075L3993.1592,3015.8366L3993.0467,3015.8713L3992.936,3015.9116L3992.8275,3015.9573L3992.7213,3016.0084L3992.6179,3016.0648L3992.5174,3016.1262L3992.4201,3016.1925L3992.3262,3016.2637L3992.236,3016.3394L3992.1496,3016.4195L3992.0674,3016.5038L3991.9894,3016.5921L3991.916,3016.6842L3991.8473,3016.7798L3991.7834,3016.8788L3991.7245,3016.9808L3991.6707,3017.0856L3991.6223,3017.1929L3991.5793,3017.3026L3991.5417,3017.4142L3991.5098,3017.5276L3991.4836,3017.6424L3991.4632,3017.7584L3991.4485,3017.8753L3991.4397,3017.9928L3991.4368,3018.1105L3991.4368,3019.2916L3991.4397,3019.4093L3991.4485,3019.5268L3991.4632,3019.6437L3991.4836,3019.7597L3991.5098,3019.8745L3991.5417,3019.9879L3991.5793,3020.0995L3991.6223,3020.2092L3991.6707,3020.3165L3991.7245,3020.4213L3991.7834,3020.5233L3991.8473,3020.6223L3991.916,3020.7179L3991.9894,3020.81L3992.0674,3020.8983L3992.1496,3020.9826L3992.236,3021.0627L3992.3262,3021.1384L3992.4201,3021.2096L3992.5174,3021.2759L3992.6179,3021.3373L3992.7213,3021.3937L3992.8275,3021.4448L3992.936,3021.4905L3993.0467,3021.5308L3993.1592,3021.5655L3993.2734,3021.5946L3993.3888,3021.6179L3993.5053,3021.6355L3993.6225,3021.6472L3993.7401,3021.6531L3993.8579,3021.6531L3993.9755,3021.6472L3994.0927,3021.6355L3994.2092,3021.6179L3994.3246,3021.5946L3994.4388,3021.5655L3994.5513,3021.5308L3994.662,3021.4905L3994.7705,3021.4448L3994.8767,3021.3937L3994.9801,3021.3373L3995.0806,3021.2759L3995.1779,3021.2096L3995.2718,3021.1384L3995.362,3021.0627L3995.4484,3020.9826L3995.5306,3020.8983L3995.6086,3020.81L3995.682,3020.7179L3995.7507,3020.6223L3995.8146,3020.5233L3995.8735,3020.4213L3995.9273,3020.3165L3995.9757,3020.2092L3996.0187,3020.0995L3996.0563,3019.9879L3996.0882,3019.8745L3996.1144,3019.7597L3996.1348,3019.6437L3996.1495,3019.5268L3996.1583,3019.4093L3996.1612,3019.2916L3996.1612,3018.1105L3996.1583,3017.9928L3996.1495,3017.8753L3996.1348,3017.7584L3996.1144,3017.6424L3996.0882,3017.5276L3996.0563,3017.4142L3996.0187,3017.3026L3995.9757,3017.1929L3995.9273,3017.0856L3995.8735,3016.9808L3995.8146,3016.8788L3995.7507,3016.7798L3995.682,3016.6842L3995.6086,3016.5921L3995.5306,3016.5038L3995.4484,3016.4195L3995.362,3016.3394L3995.2718,3016.2637L3995.1779,3016.1925L3995.0806,3016.1262L3994.9801,3016.0648L3994.8767,3016.0084L3994.7705,3015.9573L3994.662,3015.9116L3994.5513,3015.8713L3994.4388,3015.8366L3994.3246,3015.8075L3994.2092,3015.7842L3994.0927,3015.7666Z~solid~gge541~~~~0",
154
- "SOLIDREGION~5~~M4027.7951,3015.749L4027.6775,3015.7549L4027.5603,3015.7666L4027.4438,3015.7842L4027.3284,3015.8075L4027.2142,3015.8366L4027.1017,3015.8713L4026.991,3015.9116L4026.8825,3015.9573L4026.7763,3016.0084L4026.6729,3016.0648L4026.5724,3016.1262L4026.4751,3016.1925L4026.3812,3016.2637L4026.291,3016.3394L4026.2046,3016.4195L4026.1224,3016.5038L4026.0444,3016.5921L4025.971,3016.6842L4025.9023,3016.7798L4025.8384,3016.8788L4025.7795,3016.9808L4025.7257,3017.0856L4025.6773,3017.1929L4025.6343,3017.3026L4025.5967,3017.4142L4025.5648,3017.5276L4025.5386,3017.6424L4025.5182,3017.7584L4025.5035,3017.8753L4025.4947,3017.9928L4025.4918,3018.1105L4025.4918,3019.2916L4025.4947,3019.4093L4025.5035,3019.5268L4025.5182,3019.6437L4025.5386,3019.7597L4025.5648,3019.8745L4025.5967,3019.9879L4025.6343,3020.0995L4025.6773,3020.2092L4025.7257,3020.3165L4025.7795,3020.4213L4025.8384,3020.5233L4025.9023,3020.6223L4025.971,3020.7179L4026.0444,3020.81L4026.1224,3020.8983L4026.2046,3020.9826L4026.291,3021.0627L4026.3812,3021.1384L4026.4751,3021.2096L4026.5724,3021.2759L4026.6729,3021.3373L4026.7763,3021.3937L4026.8825,3021.4448L4026.991,3021.4905L4027.1017,3021.5308L4027.2142,3021.5655L4027.3284,3021.5946L4027.4438,3021.6179L4027.5603,3021.6355L4027.6775,3021.6472L4027.7951,3021.6531L4027.9129,3021.6531L4028.0305,3021.6472L4028.1477,3021.6355L4028.2642,3021.6179L4028.3796,3021.5946L4028.4938,3021.5655L4028.6063,3021.5308L4028.717,3021.4905L4028.8255,3021.4448L4028.9317,3021.3937L4029.0351,3021.3373L4029.1356,3021.2759L4029.2329,3021.2096L4029.3268,3021.1384L4029.417,3021.0627L4029.5034,3020.9826L4029.5856,3020.8983L4029.6636,3020.81L4029.737,3020.7179L4029.8057,3020.6223L4029.8696,3020.5233L4029.9285,3020.4213L4029.9823,3020.3165L4030.0307,3020.2092L4030.0737,3020.0995L4030.1113,3019.9879L4030.1432,3019.8745L4030.1694,3019.7597L4030.1898,3019.6437L4030.2045,3019.5268L4030.2133,3019.4093L4030.2162,3019.2916L4030.2162,3018.1105L4030.2133,3017.9928L4030.2045,3017.8753L4030.1898,3017.7584L4030.1694,3017.6424L4030.1432,3017.5276L4030.1113,3017.4142L4030.0737,3017.3026L4030.0307,3017.1929L4029.9823,3017.0856L4029.9285,3016.9808L4029.8696,3016.8788L4029.8057,3016.7798L4029.737,3016.6842L4029.6636,3016.5921L4029.5856,3016.5038L4029.5034,3016.4195L4029.417,3016.3394L4029.3268,3016.2637L4029.2329,3016.1925L4029.1356,3016.1262L4029.0351,3016.0648L4028.9317,3016.0084L4028.8255,3015.9573L4028.717,3015.9116L4028.6063,3015.8713L4028.4938,3015.8366L4028.3796,3015.8075L4028.2642,3015.7842L4028.1477,3015.7666L4028.0305,3015.7549L4027.9129,3015.749Z~solid~gge544~~~~0",
155
- "PAD~RECT~3998.228~3000~2.1654~4.3307~1~~1~0~3997.1453 2997.8346 3999.3107 2997.8346 3999.3107 3002.1653 3997.1453 3002.1653~0~gge8~0~~Y~0~-393.7008~0.1969~3998.2284,3000",
156
- "PAD~RECT~4001.378~3000~2.1654~4.3307~1~~2~0~4000.2953 2997.8346 4002.4607 2997.8346 4002.4607 3002.1653 4000.2953 3002.1653~0~gge20~0~~Y~0~-393.7008~0.1969~4001.378,3000",
157
- "PAD~RECT~4003.937~3000~1.1811~4.3307~1~~3~0~4003.3464 2997.8346 4004.5276 2997.8346 4004.5276 3002.1653 4003.3464 3002.1653~0~gge28~0~~Y~0~-393.7008~0.1969~4003.937,3000",
158
- "PAD~RECT~4005.906~3000~1.1811~4.3307~1~~4~0~4005.3154 2997.8346 4006.4966 2997.8346 4006.4966 3002.1653 4005.3154 3002.1653~0~gge36~0~~Y~0~-393.7008~0.1969~4005.9055,3000",
159
- "PAD~RECT~4007.874~3000~1.1811~4.3307~1~~5~0~4007.2834 2997.8346 4008.4646 2997.8346 4008.4646 3002.1653 4007.2834 3002.1653~0~gge44~0~~Y~0~-393.7008~0.1969~4007.874,3000",
160
- "PAD~RECT~4009.842~3000~1.1811~4.3307~1~~6~0~4009.2514 2997.8346 4010.4326 2997.8346 4010.4326 3002.1653 4009.2514 3002.1653~0~gge52~0~~Y~0~-393.7008~0.1969~4009.8425,3000",
161
- "PAD~RECT~4011.811~3000~1.1811~4.3307~1~~7~0~4011.2204 2997.8346 4012.4016 2997.8346 4012.4016 3002.1653 4011.2204 3002.1653~0~gge60~0~~Y~0~-393.7008~0.1969~4011.811,3000",
162
- "PAD~RECT~4013.779~3000~1.1811~4.3307~1~~8~0~4013.1884 2997.8346 4014.3696 2997.8346 4014.3696 3002.1653 4013.1884 3002.1653~0~gge68~0~~Y~0~-393.7008~0.1969~4013.7795,3000",
163
- "PAD~RECT~4015.748~3000~1.1811~4.3307~1~~9~0~4015.1574 2997.8346 4016.3386 2997.8346 4016.3386 3002.1653 4015.1574 3002.1653~0~gge76~0~~Y~0~-393.7008~0.1969~4015.748,3000",
164
- "PAD~RECT~4017.717~3000~1.1811~4.3307~1~~10~0~4017.1264 2997.8346 4018.3076 2997.8346 4018.3076 3002.1653 4017.1264 3002.1653~0~gge84~0~~Y~0~-393.7008~0.1969~4017.7165,3000",
165
- "PAD~RECT~4020.276~3000~2.1654~4.3307~1~~11~0~4019.1933 2997.8346 4021.3587 2997.8346 4021.3587 3002.1653 4019.1933 3002.1653~0~gge92~0~~Y~0~-393.7008~0.1969~4020.2756,3000",
166
- "PAD~RECT~4023.425~3000~2.1654~4.3307~1~~12~0~4022.3423 2997.8346 4024.5077 2997.8346 4024.5077 3002.1653 4022.3423 3002.1653~0~gge100~0~~Y~0~-393.7008~0.1969~4023.4252,3000",
167
- "TRACK~1~3~~4028.8268 3014.8503 4028.8268 3007.0001~gge183~0",
168
- "TRACK~1~3~~4028.8268 3028.3504 4028.8268 3022.5513~gge182~0",
169
- "TRACK~1~3~~3993.1103 3014.838 3993.1103 3007.0123~gge180~0",
170
- "TRACK~1~3~~3993.1103 3028.937 3993.1103 3022.5636~gge179~0",
171
- "TRACK~1~3~~4028.5433 3028.937 3993.1103 3028.937~gge177~0",
172
- "HOLE~3999.449~3004.213~1.378~gge152~0",
173
- "HOLE~4022.205~3004.213~1.378~gge157~0",
174
- "PAD~OVAL~3993.799~3002.165~4.3307~7.874~11~~13~1.1811~3993.799 3000.3934 3993.799 3003.9367~0~gge114~5.9055~3993.7992 3003.9369 3993.7992 3000.3936~Y~0~0~0.1969~3993.7992,3002.1653",
175
- "PAD~OVAL~4027.854~3002.165~4.3307~7.874~11~~14~1.1811~4027.854 3000.3934 4027.854 3003.9367~0~gge122~5.9056~4027.8544 3003.9371 4027.8544 3000.3937~Y~0~0~0.1969~4027.8544,3002.1654",
176
- "PAD~OVAL~3993.799~3018.701~4.7244~7.0866~11~~13~1.1811~3993.799 3017.5199 3993.799 3019.8821~0~gge142~4.7244~3993.7992 3019.8819 3993.7992 3017.5197~Y~0~0~0.1969~3993.799,3018.701",
177
- "PAD~OVAL~4027.854~3018.701~4.7244~7.0866~11~~14~1.1811~4027.854 3017.5199 4027.854 3019.8821~0~gge141~4.7244~4027.8544 3019.8819 4027.8544 3017.5197~Y~0~0~0.1969~4027.854,3018.701",
178
- "SVGNODE~{\"gId\":\"g1_outline\",\"nodeName\":\"g\",\"nodeType\":1,\"layerid\":\"19\",\"attrs\":{\"c_width\":\"35.19678\",\"c_height\":\"29.84246\",\"c_rotation\":\"0,0,0\",\"z\":\"-3.5433\",\"c_origin\":\"4010.8265,3014.0749\",\"uuid\":\"4ee8413127e64716b804db03d4b340ae\",\"c_etype\":\"outline3D\",\"id\":\"g1_outline\",\"title\":\"USB-C-SMD_TYPE-C-6PIN-2MD-073\",\"layerid\":\"19\",\"transform\":\"scale(1) translate(0, 0)\"},\"childNodes\":[{\"gId\":\"g1_outline_line0\",\"nodeName\":\"polyline\",\"nodeType\":1,\"attrs\":{\"fill\":\"none\",\"id\":\"g1_outline_line0\",\"c_shapetype\":\"line\",\"points\":\"3993.2282 3000.0592 3993.2282 3000.1379 3993.2282 3000.2167 3993.2282 3000.3742 3993.2282 3000.6104 3993.2282 3000.9253 3993.2282 3001.319 3993.2282 3001.7127 3993.2282 3002.1064 3993.2282 3002.3033 3993.2282 3002.3427 3993.2282 3002.5001 3993.2282 3002.6182 3993.2282 3002.7364 3993.2282 3002.8151 3993.2282 3002.8938 3993.2282 3003.3269 3993.2282 3003.6812 3993.2282 3004.0356 3993.2282 3004.2718 3993.2282 3004.4293 3993.2282 3004.508 3993.2282 3004.5867 3993.2282 3004.7049 3993.2282 3004.8623 3993.2282 3005.0592 3993.2282 3005.256 3993.2282 3005.3741 3993.2282 3005.4923 3993.2282 3005.571 3993.2282 3005.6497 3993.2282 3005.7678 3993.2282 3005.8466 3993.2282 3005.886 3993.2282 3005.9647 3993.2282 3013.2481 3993.2282 3013.2875 3993.2282 3013.3663 3993.2282 3013.4844 3993.2282 3013.6418 3993.2282 3013.8387 3993.2282 3014.0355 3993.2282 3014.2718 3993.2282 3014.4292 3993.2282 3014.6261 3993.2282 3014.7442 3993.2282 3014.8229 3993.2282 3014.8623 3993.2282 3014.9411 3993.2282 3015.0592 3993.2282 3015.2166 3993.2282 3015.4135 3993.2282 3015.6103 3993.2282 3016.3977 3993.2282 3016.634 3993.2282 3016.7914 3993.2282 3016.9883 3993.2282 3017.1064 3993.2282 3017.1851 3993.2282 3017.2639 3993.2282 3017.4214 3993.2282 3017.6576 3993.2282 3017.9725 3993.2282 3018.3662 3993.2282 3018.7599 3993.2282 3019.193 3993.2282 3019.5473 3993.2282 3019.9017 3993.2282 3020.1379 3993.2282 3020.2954 3993.2282 3020.3347 3993.2282 3020.3741 3993.2282 3020.4529 3993.2282 3020.571 3993.2282 3020.7284 3993.2282 3020.9253 3993.2282 3021.1221 3993.2282 3021.3584 3993.2282 3021.5158 3993.2282 3021.7127 3993.2282 3021.8308 3993.2282 3021.9095 3993.2282 3028.9961 3993.3069 3028.9961 3993.6219 3028.9961 3994.0549 3028.9961 3994.4093 3028.9961 3994.488 3028.9961 3994.6849 3028.9961 3994.7636 3028.9961 3995.236 3028.9961 3995.4329 3028.9961 3995.8266 3028.9961 3996.2597 3028.9961 3996.5352 3028.9961 3997.2045 3028.9961 3997.3226 3028.9961 3998.1494 3028.9961 4008.7793 3028.9961 4023.5037 3028.9961 4024.3305 3028.9961 4024.4486 3028.9961 4025.1179 3028.9961 4025.3935 3028.9961 4025.8265 3028.9961 4026.2202 3028.9961 4026.4171 3028.9961 4026.8895 3028.9961 4026.9683 3028.9961 4027.1651 3028.9961 4027.2438 3028.9961 4027.5982 3028.9961 4028.0312 3028.9961 4028.3462 3028.9961 4028.4249 3028.9961 4028.4249 3023.4056 4028.4249 3021.9095 4028.4249 3021.8308 4028.4249 3021.7127 4028.4249 3021.5158 4028.4249 3021.3584 4028.4249 3021.1221 4028.4249 3020.9253 4028.4249 3020.7284 4028.4249 3020.571 4028.4249 3020.4529 4028.4249 3020.3741 4028.4249 3020.3347 4028.4249 3020.2954 4028.4249 3020.1379 4028.4249 3019.9017 4028.4249 3019.5473 4028.4249 3019.193 4028.4249 3018.7599 4028.4249 3018.3662 4028.4249 3017.9725 4028.4249 3017.6576 4028.4249 3017.4214 4028.4249 3017.2639 4028.4249 3017.1851 4028.4249 3017.1064 4028.4249 3016.9883 4028.4249 3016.7914 4028.4249 3016.634 4028.4249 3016.3977 4028.4249 3015.6103 4028.4249 3015.4135 4028.4249 3015.2166 4028.4249 3015.0592 4028.4249 3014.9411 4028.4249 3014.8623 4028.4249 3014.8229 4028.4249 3014.7442 4028.4249 3014.6261 4028.4249 3014.4292 4028.4249 3014.2718 4028.4249 3014.0355 4028.4249 3013.8387 4028.4249 3013.6418 4028.4249 3013.4844 4028.4249 3013.3663 4028.4249 3013.2875 4028.4249 3013.2481 4028.4249 3005.9647 4028.4249 3005.886 4028.4249 3005.8466 4028.4249 3005.7678 4028.4249 3005.6497 4028.4249 3005.571 4028.4249 3005.4923 4028.4249 3005.3741 4028.4249 3005.256 4028.4249 3005.0592 4028.4249 3004.8623 4028.4249 3004.7049 4028.4249 3004.5867 4028.4249 3004.4686 4028.4249 3004.4293 4028.4249 3004.2718 4028.4249 3004.0356 4028.4249 3003.6812 4028.4249 3003.3269 4028.4249 3002.8938 4028.4249 3002.7757 4028.4249 3002.697 4028.4249 3002.6182 4028.4249 3002.5789 4028.4249 3002.4608 4028.4249 3002.4214 4028.4249 3002.3427 4028.4249 3002.3033 4028.4249 3002.1064 4028.4249 3001.7127 4028.4249 3001.319 4028.4249 3000.9253 4028.4249 3000.6104 4028.4249 3000.3742 4028.4249 3000.2167 4028.4249 3000.1379 4028.4249 3000.0592 4027.2438 3000.0592 4025.6297 3000.0592 4025.1179 3000.0592 4024.3305 3000.0592 4024.0942 3000.0592 4024.0942 2999.1537 4022.5194 2999.1537 4022.5194 3000.0592 4022.3226 3000.0592 4020.9446 3000.0592 4020.9446 2999.1537 4019.3698 2999.1537 4019.3698 3000.0592 4018.11 3000.0592 4018.11 2999.1537 4017.3226 2999.1537 4017.3226 3000.0592 4016.1415 3000.0592 4016.1415 2999.1537 4015.3541 2999.1537 4015.3541 3000.0592 4014.173 3000.0592 4014.173 2999.1537 4013.3856 2999.1537 4013.3856 3000.0592 4012.2045 3000.0592 4012.2045 2999.1537 4011.4171 2999.1537 4011.4171 3000.0592 4010.236 3000.0592 4010.236 2999.1537 4009.4486 2999.1537 4009.4486 3000.0592 4008.2675 3000.0592 4008.2675 2999.1537 4007.4801 2999.1537 4007.4801 3000.0592 4006.299 3000.0592 4006.299 2999.1537 4005.5116 2999.1537 4005.5116 3000.0592 4004.3305 3000.0592 4004.3305 2999.1537 4003.5431 2999.1537 4003.5431 3000.0592 4002.3226 3000.0592 4002.3226 2999.1537 4000.7478 2999.1537 4000.7478 3000.0592 3999.3305 3000.0592 3999.173 3000.0592 3999.173 2999.1537 3997.5982 2999.1537 3997.5982 3000.0592 3997.3226 3000.0592 3996.5352 3000.0592 3996.0234 3000.0592 3994.4093 3000.0592 3993.2282 3000.0592 3993.2282 3000.0592\"}}]}"
179
- ],
180
- "layers": [
181
- "1~TopLayer~#FF0000~true~true~true~",
182
- "2~BottomLayer~#0000FF~true~false~true~",
183
- "3~TopSilkLayer~#FFCC00~true~false~true~",
184
- "4~BottomSilkLayer~#66CC33~true~false~true~",
185
- "5~TopPasteMaskLayer~#808080~true~false~true~",
186
- "6~BottomPasteMaskLayer~#800000~true~false~true~",
187
- "7~TopSolderMaskLayer~#800080~true~false~true~0.3",
188
- "8~BottomSolderMaskLayer~#AA00FF~true~false~true~0.3",
189
- "9~Ratlines~#6464FF~true~false~true~",
190
- "10~BoardOutLine~#FF00FF~true~false~true~",
191
- "11~Multi-Layer~#C0C0C0~true~false~true~",
192
- "12~Document~#FFFFFF~true~false~true~",
193
- "13~TopAssembly~#33CC99~true~false~true~",
194
- "14~BottomAssembly~#5555FF~true~false~true~",
195
- "15~Mechanical~#F022F0~true~false~true~",
196
- "19~3DModel~#66CCFF~true~false~true~",
197
- "21~Inner1~#999966~false~false~false~~",
198
- "22~Inner2~#008000~false~false~false~~",
199
- "23~Inner3~#00FF00~false~false~false~~",
200
- "24~Inner4~#BC8E00~false~false~false~~",
201
- "25~Inner5~#70DBFA~false~false~false~~",
202
- "26~Inner6~#00CC66~false~false~false~~",
203
- "27~Inner7~#9966FF~false~false~false~~",
204
- "28~Inner8~#800080~false~false~false~~",
205
- "29~Inner9~#008080~false~false~false~~",
206
- "30~Inner10~#15935F~false~false~false~~",
207
- "31~Inner11~#000080~false~false~false~~",
208
- "32~Inner12~#00B400~false~false~false~~",
209
- "33~Inner13~#2E4756~false~false~false~~",
210
- "34~Inner14~#99842F~false~false~false~~",
211
- "35~Inner15~#FFFFAA~false~false~false~~",
212
- "36~Inner16~#99842F~false~false~false~~",
213
- "37~Inner17~#2E4756~false~false~false~~",
214
- "38~Inner18~#3535FF~false~false~false~~",
215
- "39~Inner19~#8000BC~false~false~false~~",
216
- "40~Inner20~#43AE5F~false~false~false~~",
217
- "41~Inner21~#C3ECCE~false~false~false~~",
218
- "42~Inner22~#728978~false~false~false~~",
219
- "43~Inner23~#39503F~false~false~false~~",
220
- "44~Inner24~#0C715D~false~false~false~~",
221
- "45~Inner25~#5A8A80~false~false~false~~",
222
- "46~Inner26~#2B937E~false~false~false~~",
223
- "47~Inner27~#23999D~false~false~false~~",
224
- "48~Inner28~#45B4E3~false~false~false~~",
225
- "49~Inner29~#215DA1~false~false~false~~",
226
- "50~Inner30~#4564D7~false~false~false~~",
227
- "51~Inner31~#6969E9~false~false~false~~",
228
- "52~Inner32~#9069E9~false~false~false~~",
229
- "99~ComponentShapeLayer~#00CCCC~true~false~true~0.4",
230
- "100~LeadShapeLayer~#CC9999~true~false~true~",
231
- "101~ComponentMarkingLayer~#66FFCC~true~false~true~",
232
- "Hole~Hole~#222222~false~false~true~",
233
- "DRCError~DRCError~#FAD609~false~false~true~"
234
- ],
235
- "objects": [
236
- "All~true~false",
237
- "Component~true~true",
238
- "Prefix~true~true",
239
- "Name~true~false",
240
- "Track~true~true",
241
- "Pad~true~true",
242
- "Via~true~true",
243
- "Hole~true~true",
244
- "Copper_Area~true~true",
245
- "Circle~true~true",
246
- "Arc~true~true",
247
- "Solid_Region~true~true",
248
- "Text~true~true",
249
- "Image~true~true",
250
- "Rect~true~true",
251
- "Dimension~true~true",
252
- "Protractor~true~true"
253
- ],
254
- "BBox": {
255
- "x": 3991.4,
256
- "y": 2997.8,
257
- "width": 38.8,
258
- "height": 31.2
259
- },
260
- "netColors": []
261
- }
262
- }
263
- }
@@ -1,18 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import { logSoup } from "@tscircuit/log-soup"
3
- import a555TimerEasyEdaJson from "../a555-timer-smd.json"
4
- import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
5
- import { convertEasyEdaJsonToTscircuitSoupJson } from "lib/convert-easyeda-json-to-tscircuit-soup-json"
6
- import { su } from "@tscircuit/soup-util"
7
- import type { AnySoupElement } from "@tscircuit/soup"
8
-
9
- it("should parse easyeda json for a 555 timer (smd) and convert to tscircuit soup", async () => {
10
- const parsedJson = EasyEdaJsonSchema.parse(a555TimerEasyEdaJson)
11
- // console.log(parsedJson.packageDetail.dataStr.shape)
12
- const soupElements = convertEasyEdaJsonToTscircuitSoupJson(parsedJson)
13
-
14
- await logSoup(
15
- "a555timer smd easyeda to soup",
16
- soupElements as AnySoupElement[]
17
- )
18
- })
@@ -1,49 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import { logSoup } from "@tscircuit/log-soup"
3
- import a555TimerEasyEdaJson from "../assets/a555-timer-dip.raweasy.json"
4
- import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
5
- import { convertEasyEdaJsonToTscircuitSoupJson } from "lib/convert-easyeda-json-to-tscircuit-soup-json"
6
- import { su } from "@tscircuit/soup-util"
7
- import type { AnySoupElement } from "@tscircuit/soup"
8
-
9
- it("should parse easyeda json for a 555 timer and convert to tscircuit soup", async () => {
10
- const parsedJson = EasyEdaJsonSchema.parse(a555TimerEasyEdaJson)
11
- const soupElements = convertEasyEdaJsonToTscircuitSoupJson(parsedJson)
12
-
13
- // Check if the result is an array and has elements
14
- expect(Array.isArray(soupElements)).toBe(true)
15
- expect(soupElements.length).toBeGreaterThan(0)
16
-
17
- // Check for the presence of a source component
18
- const sourceComponent = su(soupElements).source_component.list()[0]!
19
- expect(sourceComponent).toBeDefined()
20
- expect(sourceComponent?.name).toBe("U1")
21
- expect(sourceComponent?.ftype).toBe("simple_bug")
22
-
23
- // Check for the presence of source ports
24
- const sourcePorts = su(soupElements).source_port.list()
25
- expect(sourcePorts.length).toBeGreaterThan(0)
26
-
27
- // Check for the presence of pcb_smtpads and pcb_plated_holes
28
- const pcbSmtPads = su(soupElements).pcb_smtpad.list()
29
- const pcbPlatedHoles = su(soupElements).pcb_plated_hole.list()
30
- expect(pcbSmtPads.length + pcbPlatedHoles.length).toBeGreaterThan(0)
31
- expect(pcbSmtPads.length + pcbPlatedHoles.length).toBe(sourcePorts.length)
32
-
33
- // Check properties of a pcb_smtpad or pcb_plated_hole
34
- const firstPad = pcbSmtPads[0] || pcbPlatedHoles[0]
35
- expect(firstPad).toBeDefined()
36
- expect(firstPad.x).toBeDefined()
37
- expect(firstPad.y).toBeDefined()
38
- expect(firstPad.port_hints).toBeDefined()
39
- expect(firstPad.pcb_component_id).toBeDefined()
40
- expect(firstPad.pcb_port_id).toBeDefined()
41
-
42
- if (firstPad.type === "pcb_smtpad") {
43
- expect(firstPad.pcb_smtpad_id).toBeDefined()
44
- expect(firstPad.shape).toBeDefined()
45
- expect(firstPad.layer).toBe("top")
46
- }
47
-
48
- await logSoup("easyeda to tscircuit soup", soupElements as AnySoupElement[])
49
- })
@@ -1,18 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import { logSoup } from "@tscircuit/log-soup"
3
- import usbCEasyEdaJson from "../assets/usb-c.raweasy.json"
4
- import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
5
- import { convertEasyEdaJsonToTscircuitSoupJson } from "lib/convert-easyeda-json-to-tscircuit-soup-json"
6
- import type { AnySoupElement } from "@tscircuit/soup"
7
- import { su } from "@tscircuit/soup-util"
8
-
9
- it("should convert a usb-c footprint to tscircuit soup json", async () => {
10
- const parsedJson = EasyEdaJsonSchema.parse(usbCEasyEdaJson)
11
- const soupElements = convertEasyEdaJsonToTscircuitSoupJson(parsedJson)
12
-
13
- expect(su(soupElements).pcb_component.list()[0]).toBeTruthy()
14
-
15
- expect(su(soupElements).cad_component.list().length).toBe(1)
16
-
17
- await logSoup("easyeda usb-c to soup", soupElements as AnySoupElement[])
18
- })
@@ -1,13 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import { logSoup } from "@tscircuit/log-soup"
3
- import esp32RawEasy from "../assets/esp32.raweasy.json"
4
- import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
5
- import { convertEasyEdaJsonToTscircuitSoupJson } from "lib/convert-easyeda-json-to-tscircuit-soup-json"
6
- import type { AnySoupElement } from "@tscircuit/soup"
7
-
8
- it("should parse easyeda json for a 555 timer (smd) and convert to tscircuit soup", async () => {
9
- const parsedJson = EasyEdaJsonSchema.parse(esp32RawEasy)
10
- const soupElements = convertEasyEdaJsonToTscircuitSoupJson(parsedJson)
11
-
12
- await logSoup("easyeda esp32 to soup", soupElements as AnySoupElement[])
13
- })
@@ -1,9 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import a555TimerEasyEdaJson from "../assets/a555-timer-dip.raweasy.json"
3
- import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
4
-
5
- it("should parse easyeda json for a 555 timer", async () => {
6
- const result = EasyEdaJsonSchema.parse(a555TimerEasyEdaJson)
7
-
8
- expect(result.uuid).toBe("10ef6812c442bf476dd26c0c12f96e15")
9
- })
@@ -1,9 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import esp32Json from "../assets/esp32.raweasy.json"
3
- import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
4
-
5
- it("should parse easyeda json for a 555 timer", async () => {
6
- const result = EasyEdaJsonSchema.parse(esp32Json)
7
-
8
- expect(result.uuid).toBe("f3fe56761e5d4bb49b034efdb56ea9e7")
9
- })
@@ -1,9 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import usbCJson from "../assets/usb-c.raweasy.json"
3
- import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
4
-
5
- it("should parse easyeda json for a mounted usb c plug", async () => {
6
- const result = EasyEdaJsonSchema.parse(usbCJson)
7
-
8
- expect(result.uuid).toBe("04b7d8073e854006b41709a96b7a21a9")
9
- })
@@ -1,30 +0,0 @@
1
- import { it, expect } from "bun:test"
2
- import { SingleLetterShapeSchema } from "lib/schemas/single-letter-shape-schema"
3
-
4
- const examples = [
5
- "R~365~275~2~2~70~50~#880000~1~0~none~gge1~0~",
6
- "E~370~280~1.5~1.5~#880000~1~0~#880000~gge2~0",
7
- "P~show~0~1~355~285~180~gge5~0^^355~285^^M355,285h10~#000000^^1~368.7~289~0~GND~start~~~#000000^^1~364.5~284~0~1~end~~~#000000^^0~362~285^^0~M 365 288 L 368 285 L 365 282",
8
- "P~show~0~2~355~295~180~gge6~0^^355~295^^M355,295h10~#880000^^1~368.7~299~0~TRIG~start~~~#0000FF^^1~364.5~294~0~2~end~~~#0000FF^^0~362~295^^0~M 365 298 L 368 295 L 365 292",
9
- "P~show~0~3~355~305~180~gge7~0^^355~305^^M355,305h10~#880000^^1~368.7~309~0~OUT~start~~~#0000FF^^1~364.5~304~0~3~end~~~#0000FF^^0~362~305^^0~M 365 308 L 368 305 L 365 302",
10
- "P~show~0~4~355~315~180~gge8~0^^355~315^^M355,315h10~#880000^^1~368.7~319~0~RESET~start~~~#0000FF^^1~364.5~314~0~4~end~~~#0000FF^^0~362~315^^0~M 365 318 L 368 315 L 365 312",
11
- "P~show~0~5~445~315~0~gge9~0^^445~315^^M445,315h-10~#880000^^1~431.3~319~0~CONT~end~~~#0000FF^^1~435.5~314~0~5~start~~~#0000FF^^0~438~315^^0~M 435 312 L 432 315 L 435 318",
12
- "P~show~0~6~445~305~0~gge10~0^^445~305^^M445,305h-10~#880000^^1~431.3~309~0~THRES~end~~~#0000FF^^1~435.5~304~0~6~start~~~#0000FF^^0~438~305^^0~M 435 302 L 432 305 L 435 308",
13
- "P~show~0~7~445~295~0~gge11~0^^445~295^^M445,295h-10~#880000^^1~431.3~299~0~DISCH~end~~~#0000FF^^1~435.5~294~0~7~start~~~#0000FF^^0~438~295^^0~M 435 292 L 432 295 L 435 298",
14
- "P~show~0~8~445~285~0~gge12~0^^445~285^^M445,285h-10~#FF0000^^1~431.3~289~0~VCC~end~~~#FF0000^^1~435.5~284~0~8~start~~~#FF0000^^0~438~285^^0~M 435 282 L 432 285 L 435 288",
15
- ]
16
-
17
- it("parses examples for single letter shape schema", () => {
18
- examples.forEach((example) => {
19
- expect(() => {
20
- try {
21
- SingleLetterShapeSchema.parse(example)
22
- } catch (error: any) {
23
- console.log(error)
24
- throw new Error(
25
- `Failed to parse example: ${example}. Error: ${error.message}`
26
- )
27
- }
28
- }).not.toThrow()
29
- })
30
- })
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Enable latest features
4
- "lib": ["ESNext", "DOM"],
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
- "baseUrl": ".",
11
-
12
- // Bundler mode
13
- "moduleResolution": "bundler",
14
- "allowImportingTsExtensions": true,
15
- "verbatimModuleSyntax": true,
16
- "noEmit": true,
17
-
18
- // Best practices
19
- "strict": true,
20
- "skipLibCheck": true,
21
- "noFallthroughCasesInSwitch": true,
22
-
23
- // Some stricter flags (disabled by default)
24
- "noUnusedLocals": false,
25
- "noUnusedParameters": false,
26
- "noPropertyAccessFromIndexSignature": false
27
- }
28
- }