Sha256: 0db1a30109bce010a9c7ab35e5bb08408d33c9630caeb461306f96bb7215cbfc

Contents?: true

Size: 1.63 KB

Versions: 10

Compression:

Stored size: 1.63 KB

Contents

# frozen_string_literal: true

new({ method: :top, type: :integer, renderer: :html }) do |params|
  html.style(:top, "#{params}px")
end

new({ method: :top, type: :integer, renderer: :html, specific: :text }) do |params|
  html.style(:top, "#{params}px")
end
new({ method: :top, type: :integer, renderer: :html, specific: :shadow })

new({ method: :bottom, type: :integer, renderer: :html }) do |params|
  html.style(:bottom, "#{params}px")
end

new({ method: :bottom, type: :integer, renderer: :html, specific: :text }) do |params|
  html.style(:bottom, "#{params}px")
end

new({ method: :right, type: :integer, renderer: :html }) do |params|
  html.style(:right, "#{params}px")
end

new({ method: :left, type: :integer, renderer: :html }) do |params|
  html.style(:left, "#{params}px")
end

new({ method: :left, type: :integer, specific: :color, renderer: :html })

new({ method: :left, type: :integer, renderer: :html, specific: :shadow })

new({ method: :top, type: :integer, specific: :color, renderer: :html })

new({ method: :rotate, type: :integer, renderer: :html }) do |params|
  html.transform(:rotate, params)
end

new({ method: :rotate, type: :integer, renderer: :html, specific: :paint })

new({renderer: :html, method: :position }) do |params|
  html.style("position", params)
end

new({renderer: :html, method: :depth }) do |params|
  html.style("z-index", params)
end

new({ method: :organise, renderer: :html }) do |params|
  html.style(:gridTemplateColumns, params)
end

new({ method: :spacing, renderer: :html }) do |params|
  html.style(:gap, "#{params}px")
end

new({ method: :display, renderer: :html }) do |params|
  html.style(:display, params)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
atome-0.5.5.7.7 lib/renderers/html/spatial.rb
atome-0.5.5.7.5 lib/renderers/html/spatial.rb
atome-0.5.5.7.3 lib/renderers/html/spatial.rb
atome-0.5.5.7.1 lib/renderers/html/spatial.rb
atome-0.5.5.7.0 lib/renderers/html/spatial.rb
atome-0.5.5.6.9 lib/renderers/html/spatial.rb
atome-0.5.5.6.8 lib/renderers/html/spatial.rb
atome-0.5.5.6.7.9 lib/renderers/html/spatial.rb
atome-0.5.5.6.6 lib/renderers/html/spatial.rb
atome-0.5.5.6.5 lib/renderers/html/spatial.rb