lib/rubyvis/layout/partition.rb in rubyvis-0.3.1 vs lib/rubyvis/layout/partition.rb in rubyvis-0.3.2
- old
+ new
@@ -154,10 +154,10 @@
when 'descending'
root.sort(lambda {|a,b| b.size<=>a.size})
end
# Compute the unit breadth and depth of each node. #/
ds = 1 / max_depth.to_f
- root.min_breadth = 0;
+ root.min_breadth = 0
root.breadth = 0.5
root.max_breadth = 1
root.visit_before {|n,i|
b = n.min_breadth
ss = n.max_breadth - b