Sha256: 90d37908179d695675646cedab2d36c9df3f0dbcfbd10158adfc2cf3b21a2480

Contents?: true

Size: 545 Bytes

Versions: 6

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

# for browser rendering
module BrowserHelper

  def self.browser_left_shape(value, browser_object, _atome)
    browser_object.style[:left] = "#{value}px"
  end

  def self.browser_right_shape(value, browser_object, _atome)
    browser_object.style[:right] = "#{value}px"
  end

  def self.browser_top_shape(value, browser_object, _atome)
    browser_object.style[:top] = "#{value}px"
  end

  def self.browser_bottom_shape(value, browser_object, _atome)
    browser_object.style[:bottom] = "#{value}px"
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
atome-0.5.3.4 lib/atome/renderers/browser/helpers/shape_helper.rb
atome-0.5.3.2 lib/atome/renderers/browser/helpers/shape_helper.rb
atome-0.5.2.8 lib/atome/renderers/browser/helpers/shape_helper.rb
atome-0.5.2.7 lib/atome/renderers/browser/helpers/shape_helper.rb
atome-0.5.2.5 lib/atome/renderers/browser/helpers/shape_helper.rb
atome-0.5.1.9 lib/atome/renderers/browser/helpers/shape_helper.rb