swill / kad

Keyboard Automated Design (KAD) is a Golang library for designing mechanical keyboards
http://builder.swillkb.com
GNU Affero General Public License v3.0
232 stars 58 forks source link

CAD not being built correctly with "offset" switch #24

Open jrucker2004 opened 3 years ago

jrucker2004 commented 3 years ago

If I add a switch to the right side of a numpad, and move it so that it's 1/4u or 1/2u above the rest of the row, the cad generated completely ignores that switch.

example: image

[{y:0.25,x:4,a:7},""], [{y:-0.75,a:4},"Num Lock","/","*","-"], ["7\nHome","8\n↑","9\nPgUp",{h:2},"+"], ["4\n←","5","6\n→"], ["1\nEnd","2\n↓","3\nPgDn",{h:2},"Enter"], [{w:2},"0\nIns",".\nDel"]

When pasted into http://builder.swillkb.com/ the following cad is generated: image

jrucker2004 commented 3 years ago

Second example: If there is a column under that offset switch, only half of the offset switch is included in the cad

image

[{x:3.5,a:7},""], [{a:4},"Num Lock","/","*","-"], ["7\nHome","8\n↑","9\nPgUp",{h:2},"+"], ["4\n←","5","6\n→"], ["1\nEnd","2\n↓","3\nPgDn",{h:2},"Enter"], [{w:2},"0\nIns",".\nDel"]

image