From 0398234f081861edcdc805d1c75ad2a3c1c2414f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Thu, 6 Jul 2023 21:20:30 +0200 Subject: [PATCH] radial thing --- src/lib/components/RingInput.svelte | 90 ++++++++++++++--------------- 1 file changed, 42 insertions(+), 48 deletions(-) diff --git a/src/lib/components/RingInput.svelte b/src/lib/components/RingInput.svelte index 7fdbc266..aa596057 100644 --- a/src/lib/components/RingInput.svelte +++ b/src/lib/components/RingInput.svelte @@ -8,65 +8,67 @@ ["g", "h", "i"], ["j", "k", "l"], ] - - /** - * @param index {number} - * @returns number - */ - function calcLayerPosition(index) { - return index - activeLayer - }
- {#each Array.from({length: layers}) as _, i} + {#each layout as key, j} -
- - - - -
+ {/each}