lib/renderers/html/spatial.rb in atome-0.5.6.4.8 vs lib/renderers/html/spatial.rb in atome-0.5.6.5.1

- old
+ new

@@ -7,10 +7,11 @@ new({ method: :top, type: :integer, renderer: :html }) do |params| unit = @unit[:top] || :px if params.is_a? Numeric js[:style][:top] = "#{params}#{unit}" end + new({ method: :bottom, type: :integer, renderer: :html }) do |params| unit = @unit[:bottom] || :px if params.is_a? Numeric js[:style][:bottom] = "#{params}#{unit}" end @@ -18,11 +19,14 @@ unit = @unit[:right] || :px if params.is_a? Numeric js[:style][:right] = "#{params}#{unit}" end -new({ method: :top, type: :integer, renderer: :html, specific: :shadow }) +new({ method: :top, type: :integer, renderer: :html, specific: :shadow }) do + # now we refresh if needed for dynamic refresh od affected atomes + affect(affect) +end # new({ method: :top, type: :integer, renderer: :html, specific: :text }) do |params| # unit = @unit[:left] || :px # html.style(:top, "#{params}#{unit}" # end @@ -31,10 +35,13 @@ # html.style(:bottom, "#{params}#{unit}") # end new({ method: :left, type: :integer, specific: :color, renderer: :html }) -new({ method: :left, type: :integer, renderer: :html, specific: :shadow }) +new({ method: :left, type: :integer, renderer: :html, specific: :shadow }) do + # now we refresh if needed for dynamic refresh od affected atomes + affect(affect) +end new({ method: :top, type: :integer, specific: :color, renderer: :html }) new({ method: :rotate, type: :integer, renderer: :html }) do |params| html.transform(:rotate, params)