lib/rubyvis/layout/network.rb in rubyvis-0.3.0 vs lib/rubyvis/layout/network.rb in rubyvis-0.3.1
- old
+ new
@@ -134,11 +134,12 @@
#
# NOTE FOR PROTOVIS USERS: The original name of method was +label+
# but it was replaced to not conflict with Mark.label()
def _node_label
that=self
- nl=Mark.new.mark_extend(@node).
+ nl=Mark.new().
+ mark_extend(@node).
text_margin(7).
text_baseline("middle").
text(lambda {|n| n.node_name ? n.node_name : n.node_value }).
text_angle(lambda {|n|
a = n.mid_angle
@@ -196,10 +197,10 @@
if (s_id < self._id)
layout_build_properties(s,properties)
end
end
- def build_implied(s)
+ def build_implied(s)
network_build_implied(s)
end
def network_build_implied(s)
layout_build_implied(s)
return true if (!s._id.nil? and s._id >= self._id)