keebio / kb-plategen

37 stars 6 forks source link

Cutout type `Keycap outline` ignores key rotation. #3

Closed codybloemhard closed 3 years ago

codybloemhard commented 3 years ago

When you have rotated keys, the position of the key is correct according to the rotation, but the key outline itself is not rotated. It does work for all other cutout types. Example input:

[{r:10,ry:3,y:-3,w:1.5},"Tab","Q","G","M","L","W"],
[{x:0.25,w:1.5},"Super","D","S","T","N","R"],
[{x:1,w:1.25},"Ctrl","Z","X","C","V","J"],
[{x:3.75,w:1.25},"Alt",{w:1.25},"Shift",{w:1.25},"Alpha"],
[{r:-10,rx:14.75,ry:1,y:-1,x:-7},"Y","F","U","B",":\n;",{w:1.5},"Bspc"],
[{x:-6.75},"I","A","E","O","H","\"\n'"],
[{x:-7.25},"J","K","P","<\n,",">\n.","?\n/"],
[{x:-7.5,w:1.25},"Beta",{w:1.25},"Space",{w:1.25},"Gamma"]
nooges commented 3 years ago

Fixed with https://github.com/keebio/kb-plategen/commit/c351025ab13be67b7ababd61a31acd916b404418