X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=static%2Fpublic%2Ftm.js;h=7dde7e98016032ac42d33b0144dd5614e22db520;hb=f60f09e5b8f639c255e83387770f4af0daf1e679;hp=0bb0dd83e1751e1858b51613d583117b3dd9b3c0;hpb=f9d8678b3c36613155a92def12743761cd14e00c;p=p5sagit%2FDevel-Size.git diff --git a/static/public/tm.js b/static/public/tm.js index 0bb0dd8..7dde7e9 100644 --- a/static/public/tm.js +++ b/static/public/tm.js @@ -34,9 +34,9 @@ function init(){ //where to inject the visualization injectInto: 'infovis', //show only one tree level - levelsToShow: 2, + levelsToShow: 1, //parent box title heights - titleHeight: 10, + titleHeight: 11, //enable animations animate: animate, //box offsets @@ -84,7 +84,7 @@ function init(){ } }, //duration of the animations - duration: 1000, + duration: 500, //Enable tips Tips: { enable: true, @@ -100,21 +100,14 @@ function init(){ + "
"; var data = node.data; - //"child_seqns" => 4, - //"depth" => 2, - //"id" => 3, - //"kids_node_count" => 4426, - //"kids_size" => 560058, - //"name" => "SV(PVHV)", - //"parent_seqn" => 2, - //"self_size" => 1080, - - html += sprintf("Name: %s
\n", data.name); html += sprintf("Size: %d (%d + %d)
", data.self_size+data.kids_size, data.self_size, data.kids_size); if (data.child_count) { html += sprintf("Children: %d of %d
", data.child_count, data.kids_node_count); } - html += JSON.stringify(data, undefined, 4); + html += sprintf("Depth: %d
", data.depth); + html += sprintf("Parent: %d
", data.parent_id); + html += sprintf("Id: %s%s
", node.id, data._ids_merged ? data._ids_merged : ""); + html += JSON.stringify(data.attr, undefined, 4); tip.innerHTML = html; }