Sha256: b0983485f9a643ebfdf9c08632dd8fb7f8761940b2ace5b4847940ee0af979c6

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

module Rubyvis
  def self.Label
    Rubyvis::Label
  end

  class Label < Mark
    @properties=Mark.properties.dup
    attr_accessor_dsl :text, :font, :text_angle, :text_style, :text_align, :text_baseline, :text_margin, :text_decoration, :text_shadow
    def type
      'label'
    end
    def self.defaults
      Label.new.extend(Mark.defaults).events('none').text(lambda{|x| x}).font("10px sans-serif").text_angle(0).text_style(pv.color('black')).text_align('left').text_baseline('bottom').text_margin(3)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyvis-0.1.2 lib/rubyvis/mark/label.rb