Please disable Adblockers and enable JavaScript for domain CEWebS.cs.univie.ac.at! We have NO ADS, but they may interfere with some of our course material.

Name: orgviz-js/orbitflower.js 
1:
url = "http://cpee.org/~demo/orgviz/organisation.xml"
2:
 
3:
xmlhttp=new XMLHttpRequest();
4:
xmlhttp.open("GET",url,false);
5:
xmlhttp.send();
6:
xmlDoc=xmlhttp.responseXML;
7:
 
8:
function height_of_text(){
9:
  var span = document.createElement("span");
10:
  var text = document.createTextNode("Test");
11:
  span.appendChild(text);
12:
  span.style.display = "hidden";
13:
  span.id = "textheight";
14:
  document.body.appendChild(span);
15:
 
16:
}
17:
 
18:
 
19:
### Umfang des Kreises, Position der Knoten
20:
textgap = 3
21:
circumference = 0
22:
maxnoderadius = 0
23:
maxtextwidth = 0
24:
maxradius = 25.0
25:
orbitgap = 5
26:
nodegap = 10
27:
lineheight = SVG::height_of('Text') + textgap
28:
xgap = 5
29:
ygap = 5
30:
maxwidth = 0
31:
maxheight = 0
32:
usergap = 10