Method: Svgcode::SVG::Command#apply_transforms!

Defined in:
lib/svgcode/svg/command.rb

#apply_transforms!(transforms) ⇒ Object



79
80
81
82
83
84
85
# File 'lib/svgcode/svg/command.rb', line 79

def apply_transforms!(transforms)
  unless transforms.empty?
    transforms.reverse.each do |transform|
      @points.collect! { |point| transform.apply(point) }
    end
  end
end