1
0
Fork 0
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:
Lukas Winkler 2022-11-25 20:55:00 +01:00
parent 71f4e26447
commit b9138a3385
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -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);
});