Template:Team:Bonn:Network
From 2013.igem.org
(Difference between revisions)
Line 47: | Line 47: | ||
type:"parent", | type:"parent", | ||
cheight:5, | cheight:5, | ||
- | + | cwidth:5, | |
cradius:0 | cradius:0 | ||
Line 62: | Line 62: | ||
type:"child", | type:"child", | ||
cheight:5, | cheight:5, | ||
- | + | cwidth:5, | |
cradius:0 | cradius:0 | ||
}); | }); | ||
Line 519: | Line 519: | ||
var genwidth = parseInt(document.getElementById(divnetworkTop).style.width); | var genwidth = parseInt(document.getElementById(divnetworkTop).style.width); | ||
if(general.cheight) { | if(general.cheight) { | ||
+ | cheight=general.cheight; | ||
} else{ | } else{ | ||
general.cheight = 10; | general.cheight = 10; | ||
} | } | ||
if(general.cwidth){ | if(general.cwidth){ | ||
+ | cwidth=general.cwidth; | ||
} else{ | } else{ | ||
general.cwidth = 10; | general.cwidth = 10; | ||
Line 821: | Line 823: | ||
type:"child", | type:"child", | ||
cheight:5, | cheight:5, | ||
- | + | cwidth:5, | |
top:node[i].top+general.cheight/2, | top:node[i].top+general.cheight/2, | ||
left:node[i].left+general.cwidth/2, | left:node[i].left+general.cwidth/2, |
Revision as of 22:09, 1 October 2013