aboutsummaryrefslogtreecommitdiff
path: root/src/lib/components/hud.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/components/hud.svelte')
-rw-r--r--src/lib/components/hud.svelte6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/components/hud.svelte b/src/lib/components/hud.svelte
index f79658a..ffea4de 100644
--- a/src/lib/components/hud.svelte
+++ b/src/lib/components/hud.svelte
@@ -1,8 +1,6 @@
<script>
import { coordinateLength } from '$lib/config';
-
- export let x;
- export let y;
+ import { canvas } from '$lib/stores/canvas';
const kSeparatorRegex = /([0-9a-z]{2})/g;
@@ -15,7 +13,7 @@
</script>
<div class="hud">
- { formatCoordinate(x) } × { formatCoordinate(y) }
+ { formatCoordinate($canvas.x) } × { formatCoordinate($canvas.y) }
</div>
<style>