Method: Rubyvis::AreaPrototype#area_bind

Defined in:
lib/rubyvis/mark/area.rb

#area_bindObject



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/rubyvis/mark/area.rb', line 68

def area_bind
  mark_bind
  
  binds = self.binds
  required = binds.required
  optional = binds.optional
  
  optional.size.times {|i|
    prop = optional[i]
    prop.fixed = fixed.keys.include? prop.name
    
    if (prop.name == "segmented")
      required.push(prop)
    end
  }
  optional.delete_if {|v| v.name=='segmented'}
  # Cache the original arrays so they can be restored on build. */
  @binds._required = required
  @binds._optional = optional
end