Index: trunk/extensions/TreeAndMenu/star.js |
— | — | @@ -144,13 +144,11 @@ |
145 | 145 | } |
146 | 146 | } |
147 | 147 | |
148 | | - // Current radius for this elements children |
149 | | - var r = window.star_config.radii; |
150 | | - r = d > r.length ? r[r.length-1] : r[d-1]; |
151 | | - r = r * t; |
152 | | - |
153 | 148 | // Position the children to their locations around the parent |
154 | | - var k = Math.PI * 2 / data.children.length; |
| 149 | + var n = data.children.length; |
| 150 | + var k = Math.PI * 2 / n; |
| 151 | + var r = t * n * 8; |
| 152 | + if( r < 20 ) r = 20; |
155 | 153 | for( var i in data.children ) { |
156 | 154 | var child = data.children[i]; |
157 | 155 | var cdata = getData(child); |