dev: add board outline

This commit is contained in:
phiwan-dev 2025-06-05 00:33:34 +02:00
parent 27b011f388
commit 64ddd0fb6b

View file

@ -1,11 +1,14 @@
meta: meta:
engine: 4.1.0 engine: 4.1.0
author: phiwan author: phiwan
units: units:
kx: cx kx: cx
ky: cy ky: cy
# halfs
khx: kx/2
khy: ky/2
# padding # padding
px: kx + 2 px: kx + 2
py: ky + 2 py: ky + 2
@ -13,13 +16,13 @@ units:
$default_width: cx $default_width: cx
$default_height: cy $default_height: cy
points: points:
zones: zones:
matrix: matrix:
key: key:
padding: ky padding: ky
spread: kx spread: kx
columns: columns:
outer: outer:
rows.bottom.skip: true rows.bottom.skip: true
@ -33,12 +36,10 @@ points:
key.stagger: -7 key.stagger: -7
inner: inner:
key.stagger: 0 key.stagger: 0
rows: rows:
bottom: bottom:
home: home:
top: top:
thumbs: thumbs:
key: key:
spread: 22 spread: 22
@ -57,3 +58,61 @@ points:
rows: rows:
cluster: cluster:
mirror:
ref: thumbs_right_cluster
distance: 2ky
outlines:
keys:
- what: rectangle
where: true
size: [kx, ky]
board:
- what: polygon
operation: stack
points:
- ref: matrix_outer_top
shift: [-khx-2,khy+2]
- ref: matrix_outer_top
shift: [khx-2,khy+2]
- ref: matrix_pinky_top
shift: [-khx-2,khy+2]
- ref: matrix_pinky_top
shift: [khx-2,khy+2]
- ref: matrix_ring_top
shift: [-khx-2,khy+2]
- ref: matrix_ring_top
shift: [khx-2,khy+2]
- ref: matrix_middle_top
shift: [-khx-2,khy+2]
- ref: matrix_middle_top
shift: [khx+2,khy+2]
- ref: matrix_index_top
shift: [-khx+2,khy+2]
- ref: matrix_inner_top
shift: [29,khy+2]
- ref: thumbs_right_cluster
shift: [khx+2,khy]
- ref: thumbs_right_cluster
shift: [khx+2,-khy-2]
- ref: thumbs_right_cluster
shift: [-khx,-khy-2]
- ref: thumbs_middle_cluster
shift: [-khx-1,-khy-2]
- ref: thumbs_left_cluster
shift: [-khx-2,-khy-2]
- ref: matrix_pinky_bottom
shift: [khx,-khy-2]
- ref: matrix_pinky_bottom
shift: [-khx-2,-khy-2]
- ref: matrix_outer_home
shift: [khx-2,-khy-2]
- ref: matrix_outer_home
shift: [-khx-2,-khy-2]
fillet: 2
combined:
- name: board
- operation: stack
name: keys