Sha256: edee8c3f20d0735789ff5ca5db227e151dbfea21f97c9b6976c8d28f98baa5b7
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
module Rubyvis def self.Rule Rubyvis::Rule end class Rule < Mark include LinePrototype @properties=Mark.properties.dup attr_accessor_dsl :width, :height, :line_width, :stroke_style def self.defaults Rule.new.extend(Mark.defaults).line_width(1).stroke_style(pv.color('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?) or (!l.nil?))) s.height=0 else s.width=0 end super(s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.1.2 | lib/rubyvis/mark/rule.rb |