fix: cc1 layout keys

This commit is contained in:
2023-11-01 17:03:38 +01:00
parent a1760d518c
commit fade2f978e
2 changed files with 9 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ export function compileLayout(layout: VisualLayout): CompiledLayout {
} else if ("switch" in info) {
const cx = x + ox + 1
const cy = y + oy + 1
for (const [i, id] of [info.switch.n, info.switch.e, info.switch.s, info.switch.w].entries()) {
for (const [i, id] of [info.switch.s, info.switch.w, info.switch.n, info.switch.e].entries()) {
compiled.keys.push({
id,
shape: "quarter-circle",