lib/renderers/html/effect.rb in atome-0.5.6.4.8 vs lib/renderers/html/effect.rb in atome-0.5.6.5.1
- old
+ new
@@ -25,5 +25,27 @@
html.backdropFilter(:blur, "#{params[:value]}px")
else
html.filter(:blur, "#{params[:value]}px")
end
end
+
+
+new({ renderer: :html, method: :blur, type: :integer, specific: :shadow }) do |params, _user_proc|
+ if params[:affect] == :back
+ html.backdropFilter(:blur, "#{params[:value]}px")
+ else
+ html.filter(:blur, "#{params[:value]}px")
+ end
+ # now we refresh if needed for dynamic refresh od affected atomes
+ affect(affect)
+end
+
+# new({ particle: :blur, category: :effect, type: :int , specific: :shadow}) do |params|
+# alert :cool
+# if affect.nil?
+# affect_to = affect
+# else
+# affect_to = [:self]
+# end
+# val= { value: params, affect: affect_to } unless params.instance_of?(Hash)
+# val
+# end
\ No newline at end of file