Sha256: cb3a1fc4ccca7e630c1f6935869d272512767f7322b614e4b7d32f1e1b32f8b8
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
module Rubyvis # Alias for Rubyvis::Rule def self.Rule Rubyvis::Rule end class Rule < Mark include LinePrototype @properties=Mark.properties.dup attr_accessor_dsl :width, :height, :line_width, [:stroke_style, lambda {|d| Rubyvis.color(d)}] def self.defaults Rule.new.mark_extend(Mark.defaults).line_width(1).stroke_style('black').antialias(false) end def type 'rule' end def anchor(name) line_anchor(name) end def build_implied(s) l=s.left r=s.right t=s.top b=s.bottom if((!s.width.nil?) or ((l.nil?) and (r.nil?)) or ((!r.nil?) and (!l.nil?))) s.height=0 else s.width=0 end mark_build_implied(s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.4.0 | lib/rubyvis/mark/rule.rb |