Verified Commit b1758168 authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Add more packages to auto-conversion script

parent 6a0aa52f
......@@ -78,8 +78,35 @@ const replacers = {
]
}
const map = {
/*
missing:
- L1812 (cívka)
- MSS-1290 (přepínač)
*/
SOD123: {
path: 'smd_diode/sod123.wrl',
rotate: [0,0,180],
},
C0805: 'Capacitors_SMD.3dshapes/C_0805.wrl',
C0603: 'Capacitors_SMD.3dshapes/C_0603.wrl',
R0805: 'Resistors_SMD.3dshapes/R_0805.wrl',
M0805: 'Resistors_SMD.3dshapes/R_0805.wrl',
R0603: 'Resistors_SMD.3dshapes/R_0603.wrl',
'1981568-MICROUSB': 'conn_pc/usb_B_micro_smd.wrl',
CTS406: 'Crystals.3dshapes/Crystal_SMD_5032-4pin_5.0x3.2mm.wrl',
'QFP50P1600X1600X120-100N': {
path: 'smd_lqfp/tqfp-100.wrl',
rotate: [0,0,90],
},
SSOP16: 'Housings_SSOP.3dshapes/SSOP-16_3.9x4.9mm_Pitch0.635mm.wrl',
SMC_B: {
path: 'Capacitors_Tantalum_SMD.3dshapes/CP_Tantalum_Case-B_EIA-3528-21.wrl',
rotate: [0,0,180],
},
CHIPLED_0805: {
path: 'LEDs.3dshapes/LED_0805.wrl',
at: [0, 0.007874015748031498, 0],
......@@ -90,6 +117,10 @@ const replacers = {
at: [0, 0.007874015748031498, 0],
rotate: [0, 0, 90],
},
CHIPLED_0603: {
path: 'LEDs.3dshapes/LED_0603.wrl',
rotate: [0, 0, 90],
},
SOT23: 'TO_SOT_Packages_SMD.3dshapes/SOT-23.wrl',
'SOT-23': {
path: 'TO_SOT_Packages_SMD.3dshapes/SOT-23.wrl',
......@@ -101,6 +132,26 @@ const replacers = {
at: [-0.1161417322834646, 0.3248031496062992, 0],
rotate: [0, 0, -180]
},
S1G2_JUM: 'Pin_Headers.3dshapes/Pin_Header_Straight_1x02_Pitch2.54mm.wrl',
S1G4_JUM: 'Socket_Strips.3dshapes/Socket_Strip_Straight_1x04_Pitch2.54mm.wrl',
S1G5_JUM: 'Socket_Strips.3dshapes/Socket_Strip_Straight_1x05_Pitch2.54mm.wrl',
'MA06-1_THT_2.54_180': 'Socket_Strips.3dshapes/Socket_Strip_Straight_1x06_Pitch2.54mm.wrl',
S1G7_JUM: 'Socket_Strips.3dshapes/Socket_Strip_Straight_1x07_Pitch2.54mm.wrl',
PIN1: {
path: 'Pin_Headers.3dshapes/Pin_Header_Straight_1x01_Pitch2.54mm.wrl',
at: [0, 0.03937007874015748, 0.015748031496063],
rotate: [90, 0, 0],
},
PIN2: {
path: 'Pin_Headers.3dshapes/Pin_Header_Straight_1x02_Pitch2.54mm.wrl',
at: [0, 0.03937007874015748, 0.015748031496063],
rotate: [90, 0, 0],
},
PIN3: {
path: 'Pin_Headers.3dshapes/Pin_Header_Straight_1x03_Pitch2.54mm.wrl',
at: [0, 0.03937007874015748, 0.015748031496063],
rotate: [90, 0, 0],
},
}
if(map[a[1]]) return model(map[a[1]])
return a
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment