Browse Source

Fix runtime warnings

mj-deploy
Standa Lukeš 4 years ago
parent
commit
28ea82f600
  1. 4
      frontend/src/Graph.svelte
  2. 1
      frontend/src/main.ts

4
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;

1
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'
}
});