Sha256: 28355690d9deba29de97be1f032e0f300dc696d4fada34ea84fe38b41fb02b3c
Contents?: true
Size: 752 Bytes
Versions: 5
Compression:
Stored size: 752 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.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
5 entries across 5 versions & 1 rubygems