lib/rubyvis/mark.rb in rubyvis-0.3.0 vs lib/rubyvis/mark.rb in rubyvis-0.3.1

- old
+ new

@@ -977,11 +977,10 @@ # # @param parent the instance of the parent panel from the scene graph. def build scene=self.scene stack=Mark.stack - if(!scene) self.scene=SceneElement.new scene=self.scene scene.mark=self scene.type=self.type @@ -1044,21 +1043,22 @@ def build_properties(ss,props) # :nodoc: mark_build_properties(ss,props) end def mark_build_properties(ss, props) # :nodoc: - #p props + #p "#{type}:"+props.map {|prop| prop.name}.join(",") props.each do |prop| v=prop.value # p "#{prop.name}=#{v}" if prop._type==3 v=v.js_apply(self, Mark.stack) end ss.send((prop.name.to_s+"=").to_sym, v) end end + # @todo implement def event(type,handler) # :nodoc: #@_handlers[type]=handler self end @@ -1073,7 +1073,6 @@ require 'rubyvis/mark/line' require 'rubyvis/mark/rule' require 'rubyvis/mark/label' require 'rubyvis/mark/dot' require 'rubyvis/mark/wedge' -require 'rubyvis/mark/shorcut_methods'