Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Respect $minkowski_radius for label depth
  • Loading branch information
asergunov committed Mar 4, 2025
commit 4d02d8a8215e50e085bd233b26c2e12aafff5df8
3 changes: 2 additions & 1 deletion src/features/legends.scad
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module keytext(text, position, font_size, font_face, depth) {
woffset = (top_total_key_width()/3.5) * position[0];
hoffset = (top_total_key_height()/3.5) * -position[1];
translate([woffset, hoffset, -depth]){
color($tertiary_color) linear_extrude(height=$dish_depth + depth){
height = $dish_depth + depth + ($rounded_key ? $minkowski_radius : 0);
color($tertiary_color) linear_extrude(height=height){
text(text=text, font=font_face, size=font_size, halign=$label_valign, valign=$label_halign);
}
}
Expand Down