jit
jit copied to clipboard
TreeMap: Weirdness when using Loader.getJson() on second level or above of existing graph
Loading a second graph via getJson(); while zoomed in to a level greater than root causes the layout to break. Calling out(); multiple times before the getJson(); call seems to prevent this from happening.
Example code:
util.addEvent(vc, 'change', function() {
if(!vc.checked) return;
tm.loadJSON(json2);
tm.refresh();
});
No error is reported to console.
(Note: I was also getting some weird errors in console with cushion: 'useGradients' and animate: 'animate', but I can't seem to reproduce them now.)