{"id":477,"date":"2012-02-18T13:03:38","date_gmt":"2012-02-18T13:03:38","guid":{"rendered":"http:\/\/www.themissingdocs.net\/wordpress\/?p=477"},"modified":"2012-02-18T13:03:38","modified_gmt":"2012-02-18T13:03:38","slug":"treemap-maker","status":"publish","type":"post","link":"https:\/\/www.themissingdocs.net\/?p=477","title":{"rendered":"Treemap Maker"},"content":{"rendered":"<p>So I&#8217;ve added a new little utility to the web site.\u00a0 Its under the default software page, not one of the sub-pages.<\/p>\n<p>This utility is a bit like Sequoia View, but not actually as good right now.\u00a0 Only advantage it has over Sequoia is that it can do file count based layout as well as file size based layout.\u00a0 I find this of interest when backing up a system as the raw file count can often slow down the process as much as large data, so this lets me target where to trim\/create archives.<\/p>\n<p>It has left click to zoom in one level (even down to the one file taking up your entire screen level) and right click to undo a zoom.\u00a0 The layout algorithm is one I found on-line, something called Pivot-by-Middle. does a decent job and wasn&#8217;t too complex to implement.\u00a0 It has a black rectangle to indicate the top-level directory your mouse is currently over, which is very expensive to draw in the current implementation, so it will lag behind if you have a large number of rectangles in the window.\u00a0 It also shows whatever file your mouse is over up the top.<\/p>\n<p>The colouring is one of the big steps backwards compared to Sequoia &#8211; I use a random colour blending approach, where the colour of a square is the blending of the colour of the file and all of its parent directories, and all colours are initialized at random.\u00a0 Its better than nothing, but that is about all I can say for it&#8230;<\/p>\n<p>Caveats: It ignores all errors while trying to walk the file\/directory hierarchy &#8211; so if you don&#8217;t have read access to a large directory, it won&#8217;t tell you (it won&#8217;t know) and your graph may not be as interesting as it first appears.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;ve added a new little utility to the web site.\u00a0 Its under the default software page, not one of the sub-pages. This utility is a bit like Sequoia View, but not actually as good right now.\u00a0 Only advantage it has over Sequoia is that it can do file count based layout as well as &hellip; <a href=\"https:\/\/www.themissingdocs.net\/?p=477\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Treemap Maker<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-net-stuff"],"_links":{"self":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=477"}],"version-history":[{"count":0,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/posts\/477\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}