class GerbilCharts::SVGDC::TScale

Attributes

sx[RW]
sy[RW]

Public Class Methods

new(x,y=0) click to toggle source
Calls superclass method
# File lib/gerbilcharts/svgdc/transformations.rb, line 49
def initialize(x,y=0)
  super
  @sx=x
  @sy=y if y>0
end

Public Instance Methods

render() click to toggle source
# File lib/gerbilcharts/svgdc/transformations.rb, line 55
def render
  if @sy
    "scale(#{@sx} #{@sy} "
  else
    "scale(#{@sx} "
  end
end