Sha256: e8adf0634b4f2f076f64f964671d5d7b51b870cdef1320217251aaef63110a2c

Contents?: true

Size: 645 Bytes

Versions: 6

Compression:

Stored size: 645 Bytes

Contents

# frozen_string_literal: true

# for browser rendering
module BrowserHelper
  # text
  def self.browser_left_text(value, browser_object, _atome)
    browser_object.style[:left] = "#{value}px"
  end

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

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

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

  def self.browser_data_text(value,atome_send)
    atome_send.browser_object.text = value
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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