From 28ea82f6004dfc09d219be5ef36f6a3f58a7891f Mon Sep 17 00:00:00 2001 From: exyi Date: Mon, 5 Oct 2020 21:23:12 +0000 Subject: [PATCH 1/2] Fix runtime warnings --- frontend/src/Graph.svelte | 4 ++-- frontend/src/main.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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' } }); From e3bd4e171840af6536ef716ae4fd8bed689b07a2 Mon Sep 17 00:00:00 2001 From: exyi Date: Mon, 5 Oct 2020 21:41:43 +0000 Subject: [PATCH 2/2] Few comments --- tasks.json | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tasks.json b/tasks.json index 06ee31d..f83f464 100644 --- a/tasks.json +++ b/tasks.json @@ -460,7 +460,8 @@ 2578.840576171875, 1147.3673400878906 ], - "title": "Jízda na biomotorce" + "title": "Jízda na biomotorce", + "comment": "Prohledávání statového prostoru - hledání cesty v obohacneném grafu" }, { "type": "open-data", @@ -980,10 +981,11 @@ "taskReference": "30-1-4", "requires": [], "position": [ - 2426.829833984375, + 2425.829833984375, 1017.5477600097656 ], - "title": "Cesta v bunkru" + "title": "Cesta v bunkru", + "comment": "Hledání cesty v hilbertově křivce" }, { "type": "open-data", @@ -1227,8 +1229,8 @@ "taskReference": "31-1-1", "requires": [], "position": [ - 2438.366792678833, - 941.1978244781494 + 2454.366792678833, + 946.1978244781494 ], "title": "Karkulčin byznys" }, @@ -1238,8 +1240,8 @@ "taskReference": "31-2-4", "requires": [], "position": [ - 2276.184907913208, - 942.7135105133057 + 2271.184907913208, + 947.7135105133057 ], "title": "Továrna na perník" }, @@ -2024,6 +2026,9 @@ ], "Nápad": [ "26-Z4-2" + ], + "matematické": [ + "30-1-4" ] } } \ No newline at end of file