diff --git a/index.html b/index.html index f380175..6630488 100644 --- a/index.html +++ b/index.html @@ -2142,6 +2142,7 @@ let edges = [] let wikiStructure = null fetch('https://vatelier.benetou.fr/MyDemo/newtooling/wiki_graph.json').then( r => r.json() ).then( r => displayGraph(r.Nodes) ); +// alternatively there is the issue component that could also display linked issues function displayGraph(mynodes){ wikiStructure = mynodes let startingNode = "Wiki.VirtualRealityInterface" @@ -2152,7 +2153,7 @@ function displayGraph(mynodes){ AFRAME.scenes[0].appendChild( graphEl ) let node_names = Object.keys( mynodes ) - let rootEl = addNodeFromGraph(root.Id, "" + (Math.random()*2) + " " + (Math.random()*2) + " -" + (Math.random()*2) ) + let rootEl = addNodeFromGraph(root.Id, "" + (Math.random()*2-1) + " " + (Math.random()+1) + " -" + (Math.random()*2-0.5) ) rootEl.setAttribute('update-links-on-pinchended', true) displayLeafs( mynodes, graphEl, root.Id, rootEl, 2) setTimeout( _ => { edges_to_display.map( i => addEdgeBetweenNodesFromGraph( i.graphel, i.source, i.target ))}, 2000 )