lib/renderers/html/material.rb in atome-0.5.7.3.9 vs lib/renderers/html/material.rb in atome-0.5.7.4.2
- old
+ new
@@ -4,15 +4,10 @@
html.overflow(params, bloc)
end
new({ method: :gradient, renderer: :html, type: :hash })
-# new({ method: :remove, renderer: :html, type: :hash }) do |params|
-# # alert "===> #{params}"
-# # html.table_remove(params)
-# html.remove(params)
-# end
new({ method: :remove, renderer: :html, type: :string }) do |object_id_to_remove, bloc|
if object_id_to_remove.instance_of? Hash
object_id_to_remove.each do |particle, value|
@@ -62,26 +57,9 @@
apply(@apply)
end
end
end
-# new({ method: :border, type: :hash, renderer: :html }) do |value, _user_proc|
-# thickness = value[:thickness] || 5
-# type = value[:pattern] || :solid
-#
-# if value[:color].instance_of? Atome
-# color_found = value[:color]
-# else
-# color_found = grab('black_matter').color(value[:color])
-# end
-#
-# red = color_found.red * 255
-# green = color_found.green * 255
-# blue = color_found.blue * 255
-# alpha = color_found.alpha
-#
-# html.style(:border, "#{type} #{thickness}px rgba(#{red},#{green},#{blue},#{alpha})")
-# end
new({ method: :thickness, type: :integer, renderer: :html })
# end
new({ method: :pattern, type: :integer, renderer: :html })
\ No newline at end of file