lib/middleware/flip.rb in tracksperanto-2.9.5 vs lib/middleware/flip.rb in tracksperanto-2.9.6

- old
+ new

@@ -1,12 +1,14 @@ # -*- encoding : utf-8 -*- # Flips the comp being exported horizontally class Tracksperanto::Middleware::Flip < Tracksperanto::Middleware::Base - - attr_accessor :enabled + def self.action_description + "Mirrors all the tracker paths horizontally" + end + def start_export(w, h) - factor = enabled ? -1 : 1 + factor = -1 @exporter = Tracksperanto::Middleware::Scaler.new(@exporter, :x_factor => factor) super end end