aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-07-06 22:49:06 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-07-06 22:49:06 +0200
commitc30e688113e317ff6aca8a63f16b202cbfff3820 (patch)
tree36967ba64c9803fb5179e496cc455f29e78f68b9 /src/routes
parent2df937df1372359babd123d1361e702a1a4b8168 (diff)
Connect sensor to database
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/index.svelte5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/index.svelte b/src/routes/index.svelte
index 2943d23..06c2357 100644
--- a/src/routes/index.svelte
+++ b/src/routes/index.svelte
@@ -4,6 +4,7 @@
import Palette from '$lib/components/palette.svelte';
import Hud from '$lib/components/hud.svelte';
import { modulo } from '$lib/math';
+ import { widgets } from '$lib/stores/widgets';
import { coordinateLength, maxSize } from '$lib/config';
@@ -56,7 +57,7 @@
on:contextmenu={showPalette}
on:mousedown={startDragging}
on:mouseup={stopDragging}
- on:mousemove={moveCanvas}>
+ on:mousemove={moveCanvas}
>
<Sensor x={x} y={y} />
<Background x={x} y={y} />
@@ -65,6 +66,8 @@
{#if shouldShowPalette }
<Palette/>
{/if}
+
+ <p>{JSON.stringify($widgets)}</p>
</div>
<style>