|
60 | 60 | beta (get c :configuration-beta)
|
61 | 61 | tenting-angle (get c :configuration-tenting-angle)
|
62 | 62 | z-offset (get c :configuration-z-offset)
|
| 63 | + switch-type (get c :configuration-switch-type) |
63 | 64 | manuform-offset? (get c :configuration-manuform-offset? false)
|
64 | 65 | offset (if manuform-offset?
|
65 | 66 | (manuform-column-offset column)
|
66 | 67 | (column-offset column))
|
67 | 68 | column-angle (* beta (- 2 column))
|
68 | 69 | placed-shape (->> shape
|
69 |
| - (translate [(wide-pinky c column row) 0 (- (frow-radius alpha))]) |
| 70 | + (translate [(wide-pinky c column row) 0 (- (frow-radius alpha switch-type))]) |
70 | 71 | (rotate (* alpha (- 2 row)) [1 0 0])
|
71 |
| - (translate [0 0 (frow-radius alpha)]) |
72 |
| - (translate [0 0 (- (fcolumn-radius beta))]) |
| 72 | + (translate [0 0 (frow-radius alpha switch-type)]) |
| 73 | + (translate [0 0 (- (fcolumn-radius beta switch-type))]) |
73 | 74 | (rotate column-angle [0 1 0])
|
74 |
| - (translate [0 0 (fcolumn-radius beta)]) |
| 75 | + (translate [0 0 (fcolumn-radius beta switch-type)]) |
75 | 76 | (translate offset))]
|
76 | 77 | (->> placed-shape
|
77 | 78 | (rotate tenting-angle [0 1 0])
|
|
88 | 89 | (> row 2))
|
89 | 90 | [0 -10.35 8.64]
|
90 | 91 | [0 -4.35 8.64])
|
| 92 | + switch-type (get c :configuration-switch-type) |
91 | 93 | column-angle (* beta (- 2 column))
|
92 | 94 | placed-shape (->> shape
|
93 |
| - (translate [0 0 (- (frow-radius alpha))]) |
| 95 | + (translate [0 0 (- (frow-radius alpha switch-type))]) |
94 | 96 | (rotate (* alpha (- 2 row)) [1 0 0])
|
95 |
| - (translate [0 0 (frow-radius alpha)]) |
96 |
| - (translate [0 0 (- (fcolumn-radius beta))]) |
| 97 | + (translate [0 0 (frow-radius alpha switch-type)]) |
| 98 | + (translate [0 0 (- (fcolumn-radius beta switch-type))]) |
97 | 99 | (rotate column-angle [0 1 0])
|
98 |
| - (translate [0 0 (fcolumn-radius beta)]) |
| 100 | + (translate [0 0 (fcolumn-radius beta switch-type)]) |
99 | 101 | (translate column-offset))]
|
100 | 102 | (->> placed-shape
|
101 | 103 | (rotate tenting-angle [0 1 0])
|
|
0 commit comments