diff --git a/frontend/src/Graph.svelte b/frontend/src/Graph.svelte index 8925a09..88ff49a 100644 --- a/frontend/src/Graph.svelte +++ b/frontend/src/Graph.svelte @@ -18,8 +18,8 @@ // Svelte automatically fills these with a reference let container: HTMLElement; - let clientHeight: number; - let clientWidth: number; + let clientHeight: number = window.innerHeight; + let clientWidth: number = window.innerWidth; let svgElement: SVGElement; let innerSvgGroup: SVGElement; let selectionRectangle: [[number, number], [number, number]] | null = null; diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 7b37e0a..65190cf 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -3,7 +3,6 @@ import App from './App.svelte'; const app = new App({ target: document.getElementById("svelte-root")!, props: { - name: 'world' } });