diff --git a/frontend/src/components/Container.svelte b/frontend/src/components/Container.svelte
index 87e9cbe..d3ab368 100644
--- a/frontend/src/components/Container.svelte
+++ b/frontend/src/components/Container.svelte
@@ -13,24 +13,42 @@
{ id: 2, x: 0, y: 0 },
]);
+ let width = $state(0);
+ let height = $state(0);
+
+ const resize = () => {
+ width = image?.getBoundingClientRect().width ?? 0;
+ height = image?.getBoundingClientRect().height ?? 0;
+ };
+
onMount(() => {
ws = new WebSocket("/ws");
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
trackers = data;
};
+
+ width = image?.getBoundingClientRect().width ?? 0;
+ height = image?.getBoundingClientRect().height ?? 0;
});
+
+