lib/usps_flags/generate/flag.rb in usps_flags-0.5.8 vs lib/usps_flags/generate/flag.rb in usps_flags-0.5.9

- old
+ new

@@ -22,16 +22,17 @@ USPSFlags::Helpers.output(svg, outfile: outfile) end def special(type, level:, field: true) + translate = (type == :f && level == :n) || !field # Paths were designed for a base fly of 3000 pixels, but the base was changed for more useful fractions. svg = +'' - svg << "<g transform=\"translate(#{USPSFlags::Config::BASE_FLY / 10})\">" unless field + svg << "<g transform=\"translate(#{USPSFlags::Config::BASE_FLY / 10})\">" if translate svg << "<g transform=\"scale(#{Rational(USPSFlags::Config::BASE_FLY, 3000).to_f})\">" svg << special_icon(type, level) svg << '</g>' - svg << '</g>' unless field + svg << '</g>' if translate svg end def pennant(type: 'CRUISE', outfile: nil, scale: nil)