layouts (mostly) accept children

This commit is contained in:
Bob 2020-01-12 19:20:05 -05:00
parent 9a7740cdfb
commit e475ee7b6e
6 changed files with 15 additions and 6 deletions

View File

@ -8,6 +8,14 @@ include <../layout.scad>
[1.25,1.25,1.25,6.25,1.25,1.25,1.25,1.25]
];
60_percent_legends = [
["`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", "⌫"],
["tab", "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "[", "]", "\\"],
["caps", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "'", "enter"],
["shift", "z", "x", "c", "v", "b", "n", "m", ",", ".", "/", "shift"],
["ctl", "win", "alt", "", "mnu", "win", "alt", "ctl"],
];
module 60_percent_default(profile) {
layout(60_percent, profile);
layout(60_percent, profile, 60_percent_legends) children();
}

View File

@ -8,5 +8,5 @@ gherkin_mapping = [
];
module gherkin_default(profile) {
layout(gherkin_mapping, profile, row_sculpting_offset=1);
layout(gherkin_mapping, profile, row_sculpting_offset=1) children();
}

View File

@ -11,5 +11,5 @@ planck_layout_mapping = [
];
module planck_default(profile) {
layout(planck_layout_mapping, profile, row_sculpting_offset=1);
layout(planck_layout_mapping, profile, row_sculpting_offset=1) children();
}

View File

@ -9,5 +9,5 @@ preonic_layout_mapping = [
];
module preonic_default(profile, column_sculpt_profile="2hands") {
layout(preonic_layout_mapping, profile, column_sculpt_profile=column_sculpt_profile);
layout(preonic_layout_mapping, profile, column_sculpt_profile=column_sculpt_profile) children();
}

View File

@ -1,3 +1,4 @@
// TODO make this use layout()
module preonic_mit(profile) {
for(x = [0:1:4]) {
for(y=[-2.5:0.5:3]) {

View File

@ -14,6 +14,6 @@ project_zen_thumbs = [
];
module project_zen_default(profile) {
layout(project_zen_main, profile);
translate_u(4.5,-5) layout(project_zen_thumbs, profile, row_override=3);
layout(project_zen_main, profile) children();
translate_u(4.5,-5) layout(project_zen_thumbs, profile, row_override=3) children();
}