X-Git-Url: https://git.r.bdr.sh/rbdr/canvas/blobdiff_plain/3717f7fbf9ec110b51fe002cdced5d73ebd6136b..c30e688113e317ff6aca8a63f16b202cbfff3820:/src/lib/components/hud.svelte?ds=inline

diff --git a/src/lib/components/hud.svelte b/src/lib/components/hud.svelte
index ce32e0d..f79658a 100644
--- a/src/lib/components/hud.svelte
+++ b/src/lib/components/hud.svelte
@@ -1,14 +1,15 @@
 <script>
+  import { coordinateLength } from '$lib/config';
+
   export let x;
   export let y;
 
-  const kCoordinateLength = 6;
   const kSeparatorRegex = /([0-9a-z]{2})/g;
 
   const formatCoordinate = function formatCoordinate(coordinate) {
     return coordinate
       .toString(16)
-      .padStart(kCoordinateLength, 0)
+      .padStart(coordinateLength, 0)
       .replace(kSeparatorRegex, '$1 ');
   }
 </script>
