mirror of
https://github.com/Findus23/RPGnotes.git
synced 2024-09-19 15:43:45 +02:00
revert graph.ts
This commit is contained in:
parent
71f4e26447
commit
b9138a3385
1 changed files with 1 additions and 5 deletions
|
@ -10,17 +10,13 @@ const graph = new Graph({
|
|||
});
|
||||
|
||||
|
||||
fetch('http://localhost:8080')
|
||||
fetch('/graph/graph')
|
||||
.then((response) => response.json())
|
||||
.then((a) => new Promise(resolve => setTimeout(resolve, 1000, a)))
|
||||
.then((data) => {
|
||||
console.log(data)
|
||||
graph.import(data)
|
||||
random.assign(graph);
|
||||
layout.start();
|
||||
window.setInterval(function(){
|
||||
console.info(layout.isRunning())
|
||||
}, 500);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue