Sha256: a2a1e80a52b060659ec7a1b6b07fa99282ea9e393835fca3d2b88d715f88826c

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.5.5.6.4 lib/renderers/html/spatial.rb