#60 nodes flip across the y axis on RadialTreeLayout redraw

open
nobody
None
5
2008-12-19
2008-12-19
No

Two fixes in sortedChildren appear to partially solve this problem (flipping the order of the x arguments):

base = normalize(Math.atan2(p.y-n.y, p.x-n.x));
...
angles[i] = normalize(-base + Math.atan2(c.y-n.y,c.x-n.x));

However the problem still occurs after a new root node is selected. Disabling calcAngularBounds using setTheta appears to be a workaround.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks