lib/rubyvis/layout/network.rb in rubyvis-0.4.0 vs lib/rubyvis/layout/network.rb in rubyvis-0.4.1

- old
+ new

@@ -119,11 +119,11 @@ end def _link # :nodoc: - that=self + #that=self l=Mark.new(). mark_extend(@node). data(lambda {|d| [d.source_node, d.target_node] }). fill_style(nil). line_width(lambda {|d,_p| _p.link_value * 1.5 }). @@ -133,11 +133,11 @@ l end def _node_label #:nodoc: - that=self + #that=self nl=Mark.new(). mark_extend(@node). text_margin(7). text_baseline("middle"). text(lambda {|n| n.node_name ? n.node_name : n.node_value }). @@ -183,10 +183,10 @@ # Note that if the links property is defined after the nodes property, # the links can be defined in terms of <tt>self.nodes()</tt>. attr_accessor_dsl [:links, lambda {|v| - out=[] + # out=[] v.map {|d| if !d.link_value.is_a? Numeric d.link_value = !d.value.is_a?(Numeric) ? 1 : d.value end d