lib/atome/genesis/particles/geometry.rb in atome-0.5.7.3.6 vs lib/atome/genesis/particles/geometry.rb in atome-0.5.7.3.9

- old
+ new

@@ -5,14 +5,14 @@ new({ particle: :size, category: :geometry, type: :int }) do |params| params = { value: params } unless params.instance_of? Hash params[:recursive] ||= false params[:reference] ||= :x - params[:target] ||= :self # :all resize atome + attached +distance between to the value + params[:target] ||= :self # :all resize atome + fasten +distance between to the value # self: resize the current atome to current value params[:propagate] ||= :raw # proportional atome children will be resize according - # to its parent , raw apply the raw value to the attached atomes + # to its parent , raw apply the raw value to the fasten atomes if params[:reference] == :x original_width = width width(params[:value]) height(height * params[:value] / original_width) if value else @@ -20,10 +20,10 @@ height(params[:value]) width(width * params[:value] / original_height) end if params[:recursive] - attached.each do |atome_id| + fasten.each do |atome_id| grab(atome_id).size(params) end end