diff --git a/frontend/src/Editor.svelte b/frontend/src/Editor.svelte index ad48a12..a4f1673 100644 --- a/frontend/src/Editor.svelte +++ b/frontend/src/Editor.svelte @@ -51,16 +51,13 @@ tasks = tasks; // run simulation - toggleDivnaPromena(); + graph.runSimulation() } else { alert("Nope, prvni musis nekam klikat..."); } } - let hovnoDivnaPromenaKteraJeFaktFuj = true; - function toggleDivnaPromena() { - hovnoDivnaPromenaKteraJeFaktFuj = !hovnoDivnaPromenaKteraJeFaktFuj; - } + let graph: Graph async function saveCurrentState() { await saveTasks(tasks); @@ -127,7 +124,7 @@ {repulsionForce} bind:selectedTask on:selectTask={clickTask} - runSimulationWeirdHack={hovnoDivnaPromenaKteraJeFaktFuj} /> + bind:this={graph} />