Fix runtime warnings

This commit is contained in:
Standa Lukeš 2020-10-05 21:23:12 +00:00
parent 3979847be6
commit 28ea82f600
2 changed files with 2 additions and 3 deletions

View file

@ -18,8 +18,8 @@
// Svelte automatically fills these with a reference // Svelte automatically fills these with a reference
let container: HTMLElement; let container: HTMLElement;
let clientHeight: number; let clientHeight: number = window.innerHeight;
let clientWidth: number; let clientWidth: number = window.innerWidth;
let svgElement: SVGElement; let svgElement: SVGElement;
let innerSvgGroup: SVGElement; let innerSvgGroup: SVGElement;
let selectionRectangle: [[number, number], [number, number]] | null = null; let selectionRectangle: [[number, number], [number, number]] | null = null;

View file

@ -3,7 +3,6 @@ import App from './App.svelte';
const app = new App({ const app = new App({
target: document.getElementById("svelte-root")!, target: document.getElementById("svelte-root")!,
props: { props: {
name: 'world'
} }
}); });