nativeTextSupport = labelType == 'Native';
useGradients = nativeCanvasSupport;
animate = !(iStuff || !nativeCanvasSupport);
+ console.log({ "labelType":labelType, "useGradients":useGradients, "nativeTextSupport":nativeTextSupport });
})();
var Log = {
function request_jit_tree(nodeId, level, depth, onComplete){
- var params = { logarea: 1 };
+ var params = { logarea: 0 };
jQuery.getJSON('jit_tree/'+nodeId+'/'+depth, params, onComplete);
}
//show only one tree level
levelsToShow: levelsToShow,
//parent box title heights
- titleHeight: 11,
+ titleHeight: 12,
//enable animations
animate: animate,
//box offsets
//This method is called once, on label creation and only for DOM labels.
onCreateLabel: function(domElement, node){
domElement.innerHTML = node.name;
+
+ // this doesn't work with Label:{} above
+ var style = domElement.style;
+ style.display = '';
+ style.border = '1px solid transparent';
+ domElement.onmouseover = function() {
+ style.border = '1px solid #9FD4FF';
+ };
+ domElement.onmouseout = function() {
+ style.border = '1px solid transparent';
+ };
+
}
});