Bringing points stuff up to spec

This commit is contained in:
Bán Dénes 2020-06-26 21:00:10 +02:00
parent 0ab5a246e5
commit a5e686b059
11 changed files with 474 additions and 108 deletions

109
test/fixtures/absolem.yaml vendored Normal file
View file

@ -0,0 +1,109 @@
points:
zones:
matrix:
anchor:
rotate: 5
columns:
pinky:
rotate: -5
origin: [7, -7]
rows:
bottom:
home:
neighbors: [right]
top:
neighbors: [right]
ring:
stagger: 12
rows:
bottom:
neighbors: [left]
home:
neighbors: [right]
top:
neighbors: [right]
middle:
stagger: 5
rows:
bottom:
neighbors: [both]
home:
neighbors: [both]
top:
index:
stagger: -6
rows:
bottom:
neighbors: [right]
home:
neighbors: [left]
top:
neighbors: [left]
inner:
stagger: -2
rows:
bottom:
home:
neighbors: [left]
top:
neighbors: [left]
rows:
bottom:
neighbors: [,up]
home:
neighbors: [,up]
top:
thumbfan:
anchor:
ref: inner_bottom
shift: [-7, -19]
columns:
near:
spread: 21.25
rotate: -28
origin: [9.5, -9]
rows:
thumb:
neighbors: [right]
home:
spread: 21.25
rotate: -28
origin: [11.75, -9]
rows:
thumb:
neighbors: [both]
far:
rows:
thumb:
neighbors: [left]
rows:
thumb:
neighbors: [,up]
rotate: -20
mirror:
ref: pinky_home
distance: 223.7529778
outline:
bind: 10
glue:
top:
left:
ref: inner_top
shift: [,7]
right:
ref: mirror_inner_top
shift: [,7]
bottom:
left:
ref: far_thumb
shift: [7]
rotate: 90
right:
ref: mirror_far_thumb
shift: [-7]
rotate: 90
waypoints:
- percent: 50
width: 100
- percent: 90
width: 50

182
test/fixtures/absolem_points.json vendored Normal file
View file

@ -0,0 +1,182 @@
{
"pinky_bottom": {
"x": 0,
"y": 0,
"r": -15
},
"pinky_home": {
"x": 4.9175619,
"y": 18.3525907,
"r": -15
},
"pinky_top": {
"x": 9.8351237,
"y": 36.7051814,
"r": -15
},
"ring_bottom": {
"x": 22.7244416,
"y": 5.176704,
"r": -20
},
"ring_home": {
"x": 29.2228244,
"y": 23.0308638,
"r": -20
},
"ring_top": {
"x": 35.7212071,
"y": 40.8850235,
"r": -20
},
"middle_bottom": {
"x": 42.2887022,
"y": 3.3767843,
"r": -20
},
"middle_home": {
"x": 48.7870849,
"y": 21.2309442,
"r": -20
},
"middle_top": {
"x": 55.2854676,
"y": 39.0851039,
"r": -20
},
"index_bottom": {
"x": 58.0907411,
"y": -8.7597541,
"r": -20
},
"index_home": {
"x": 64.5891238,
"y": 9.0944057,
"r": -20
},
"index_top": {
"x": 71.0875065,
"y": 26.9485655,
"r": -20
},
"inner_bottom": {
"x": 75.2608606,
"y": -17.1375221,
"r": -20
},
"inner_home": {
"x": 81.7592433,
"y": 0.7166377,
"r": -20
},
"inner_top": {
"x": 88.257626,
"y": 18.5707976,
"r": -20
},
"near_thumb": {
"x": 62.1846295,
"y": -32.5975409,
"r": -20
},
"home_thumb": {
"x": 82.5841162,
"y": -47.013742,
"r": -48
},
"far_thumb": {
"x": 94.7890169,
"y": -68.8083815,
"r": -76
},
"mirror_pinky_bottom": {
"x": 233.5881016,
"y": 0,
"r": 15
},
"mirror_pinky_home": {
"x": 228.67053969999998,
"y": 18.3525907,
"r": 15
},
"mirror_pinky_top": {
"x": 223.7529779,
"y": 36.7051814,
"r": 15
},
"mirror_ring_bottom": {
"x": 210.86365999999998,
"y": 5.176704,
"r": 20
},
"mirror_ring_home": {
"x": 204.36527719999998,
"y": 23.0308638,
"r": 20
},
"mirror_ring_top": {
"x": 197.8668945,
"y": 40.8850235,
"r": 20
},
"mirror_middle_bottom": {
"x": 191.29939939999997,
"y": 3.3767843,
"r": 20
},
"mirror_middle_home": {
"x": 184.8010167,
"y": 21.2309442,
"r": 20
},
"mirror_middle_top": {
"x": 178.30263399999998,
"y": 39.0851039,
"r": 20
},
"mirror_index_bottom": {
"x": 175.49736049999998,
"y": -8.7597541,
"r": 20
},
"mirror_index_home": {
"x": 168.99897779999998,
"y": 9.0944057,
"r": 20
},
"mirror_index_top": {
"x": 162.5005951,
"y": 26.9485655,
"r": 20
},
"mirror_inner_bottom": {
"x": 158.327241,
"y": -17.1375221,
"r": 20
},
"mirror_inner_home": {
"x": 151.82885829999998,
"y": 0.7166377,
"r": 20
},
"mirror_inner_top": {
"x": 145.3304756,
"y": 18.5707976,
"r": 20
},
"mirror_near_thumb": {
"x": 171.4034721,
"y": -32.5975409,
"r": 20
},
"mirror_home_thumb": {
"x": 151.00398539999998,
"y": -47.013742,
"r": 48
},
"mirror_far_thumb": {
"x": 138.79908469999998,
"y": -68.8083815,
"r": 76
}
}