-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmk3.yaml
145 lines (145 loc) · 3.65 KB
/
mk3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
points:
zones:
matrix:
anchor:
rotate: 5
columns:
pinky:
rows:
home.bind: [,15]
top.bind: [,15]
ring:
rotate: -5
# hinge at the bottom right corner
# of the bottom pinky's 14x14 hole
# for historical reasons...
origin: [-12, -19]
stagger: 12
spread: cx
rows:
bottom.bind: [,,,5]
home.bind: [,5]
top.bind: [,5]
middle:
stagger: 5
spread: cx
rows:
bottom.bind: [,5,,5]
home.bind: [,5,,5]
index:
stagger: -6
spread: cx
rows:
bottom.bind: [,5]
home.bind: [,,,5]
top.bind: [,,,5]
inner:
stagger: -2
spread: cx
rows:
bottom.bind: [,,5]
home.bind: [,,,5]
top.bind: [,,,5]
rows:
bottom.bind: [5]
home.bind: [5]
top:
key.bind: [0,0,0,0]
key.padding: cy
thumbfan:
anchor:
ref: matrix_inner_bottom
shift: [-7, -cy]
columns:
near:
rows.thumb.bind: [5,5]
home:
spread: cx
rotate: -28
origin: [-cx/2, -cy/2]
rows.thumb.bind: [,,,5]
# far:
# spread: 21.25
# rotate: -28
# origin: [-9.5, -9]
# rows.thumb.bind: [,,,5]
rows:
thumb.bind: [0,0,0,0]
rotate: -20
mirror:
ref: matrix_pinky_home
# The mk1's origin was the bottom left corner of the bottom pinky key.
# But it later got rotated by the bottom *right* corner as the pinky angle
# and then rotated again for the inter-half angle so [0, 0] was nowhere on
# the actual result.
#
# Since the new origin is the center of the pinky home, we have to convert
# the old, round 250 width to this new coordinate system if we want backward
# compatibility. The following snippet was used to arrive at this distance.
#
# old_origin = new Point(7, 7 + 19)
# old_origin.rotate(5, [14, 0])
# old_origin.rotate(-20, [0, 0])
# new_width = 250 - (2 * old_origin.x)
distance: 223.7529778
outlines:
glue:
default:
top:
left:
ref: matrix_inner_top
shift: [, 0.5 sy]
right:
ref: mirror_matrix_inner_top
shift: [, 0.5 sy]
bottom:
left:
ref: thumbfan_home_thumb
shift: [0.5 sx, 0]
rotate: 90
right:
ref: mirror_thumbfan_home_thumb
shift: [0.5 sx, 0]
rotate: 90
waypoints:
- percent: 50
width: 50
exports:
raw:
- type: keys
side: both
size: [cx + 20, cy + 20]
bevel: 7
# refine under-middle mess with a staight line
- type: rectangle
ref: matrix_index_bottom
size: [50, cy + 20]
shift: [-sx, -sy/2]
mirror: true
# connect pinky to under-middle pinky at 45 degrees with a triangle
- type: polygon
points:
- ref: matrix_pinky_bottom
shift: [(cx + 20)/2 - 7, -(cy + 20)/2]
- shift: [20, 20]
- shift: [-20, 0]
mirror: true
# create flat bottom
- type: polygon
points:
- ref: thumbfan_home_thumb
shift: [7, 0]
rotate: 48
- shift: [70, 0]
- shift: [-25, 50]
refined:
- type: outline
name: raw
fillet: 2
plate:
- refined
- type: keys
side: both
size: 14
bound: false
operation: subtract