Sha256: 3448cb983f58828d7c04b77d41c97d382d9eb306f70ba35a79ce2962e8cbcbb5
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Rubyvis def self.Rule Rubyvis::Rule end class Rule < Mark @properties=Mark.properties attr_accessor_dsl :width, :height, :line_width, :stroke_style def defaults sd=super return sd.merge({:line_width=>1,:stroke_style=>pv.color('black'),:antialias=>false}) end def type 'rule' 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.0 | lib/rubyvis/mark/rule.rb |