add label for left and right hand

This commit is contained in:
daniel
2023-07-09 23:57:15 +02:00
parent 887b6ca4d1
commit a5bbb85bbb
2 changed files with 24 additions and 4 deletions

View File

@@ -1,14 +1,15 @@
module.exports = {
params: {
text: '',
side: 'F'
side: 'F',
knockout: false
},
body: p => `
(module lib:text (layer F.Cu) (tedit 648E0265)
${p.at /* parametric position */}
(fp_text user "${p.text}" (at 0 0 ${p.rot + 90}) (layer ${p.side}.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) ${p.side === 'F' ? "" : "(justify mirror)"} ))
(fp_text user "${p.text}" (at 0 0 ${p.rot + 90}) (layer ${p.side}.SilkS ${p.knockout ? "knockout" : ""}) (effects (font (size 0.8 0.8) (thickness 0.15)) ${p.side === 'F' ? "" : "(justify mirror)"} ))
)
`