lib/atome/genesis/atomes.rb in atome-0.5.6.4.8 vs lib/atome/genesis/atomes.rb in atome-0.5.6.5.1
- old
+ new
@@ -33,11 +33,12 @@
params[:id] = "#{@id}_color_#{uniq_value}".to_sym
end
params
end
# new({ post: :color }) do
-# Atome.global_monitoring(self, [:red, :blue, :blue, :alpha, :left, :right, :diffusion], [:variable1, :variable2])
+#
+# # Atome.global_monitoring(self, [:red, :blue, :blue, :alpha, :left, :right, :diffusion], [:variable1, :variable2])
# end
new({ atome: :image })
new({ sanitizer: :image }) do |params|
unless params.instance_of? Hash
# TODO : we have to convert all image to png or maintain a database with extension
@@ -52,11 +53,10 @@
new({ post: :image }) do
# we have find the size od the image to set it in the atome
instance_variable_set("@width", compute({ particle: :width })[:value])
instance_variable_set("@height", compute({ particle: :height })[:value])
end
-
new({ atome: :video })
new({ sanitizer: :video }) do |params|
unless params.instance_of? Hash
# TODO : we have to convert all image to png or maintain a database with extension
# FIXME : temporary patch that add .mp4 to the string if no extension is found
@@ -67,29 +67,23 @@
# TODO : the line below should get the value from default params Essentials
params
end
new({ atome: :www })
new({ atome: :shadow }) do |params|
- # if params
- # if params.delete(:affect)
- # attach_value = params.delete(:affect)
- # else
- # attach_value=id
- # end
- #
- # params[:affect] = attach_value
- # alert "=> params : #{params}"
- #
- # end
-
if params
attach_value = params.delete(:affect)
params[:affect] = attach_value
end
- # alert "=> params : #{params}"
params
end
+new({ atome: :border }) do |params|
+ if params
+ attach_value = params.delete(:affect)
+ params[:affect] = attach_value
+ end
+ params
+end
new({ atome: :raw })
new({ atome: :shape })
new({ atome: :code })
new({ atome: :audio })
new({ atome: :element })
@@ -128,10 +122,9 @@
Universe.add_user = params[:id]
end
new({ atome: :machine })
new({ atome: :paint })
new({ atome: :vector })
-
new({ atome: :matrix })
new({ atome: :atomized, type: :hash })
# new({ atome: :color, type: :model })
# new({ atome: :color, type: :template })