diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-07-07 23:14:18 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-07-07 23:14:18 +0200 |
| commit | d7cea96940ddeb764c7343e05526f611863019d8 (patch) | |
| tree | 7258a9ee7321153363ea6e23c092291f5f0dc4d4 /src/lib/components/hud.svelte | |
| parent | c30e688113e317ff6aca8a63f16b202cbfff3820 (diff) | |
Partially render the boxes
Diffstat (limited to 'src/lib/components/hud.svelte')
| -rw-r--r-- | src/lib/components/hud.svelte | 6 |
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> |