@typecad/passives
Version:
typeCAD package that includes simple access to common components
16 lines • 683 B
JavaScript
import { Component } from '@typecad/typecad';
const sizeToFootprint = {
'M2': 'MountingHole:MountingHole_2.2mm_M2',
'M2.5': 'MountingHole:MountingHole_2.7mm_M2.5',
'M3': 'MountingHole:MountingHole_3.2mm_M3',
'M4': 'MountingHole:MountingHole_4.3mm_M4',
'M5': 'MountingHole:MountingHole_5.3mm_M5',
'M6': 'MountingHole:MountingHole_6.4mm_M6',
'M8': 'MountingHole:MountingHole_8.4mm_M8'
};
export class MountingHole extends Component {
constructor({ size = 'M2', ...opts } = {}) {
super({ ...opts, footprint: opts.footprint || sizeToFootprint[size], symbol: 'Mechanical:MountingHole_Pad', prefix: 'MH' });
}
}
//# sourceMappingURL=index.js.map