lib/usps_flags/generate.rb in usps_flags-0.3.22 vs lib/usps_flags/generate.rb in usps_flags-0.3.23
- old
+ new
@@ -91,13 +91,13 @@
# @param [String] outfile The path to save the SVG file to. If not set, prints to console.
# @param [Integer] fly The nominal fly length of an appropriate flag field for the generated tridents. Size labels scale to this size.
# @param [String] outfile The unit to append to all trident measurements.
# @param [String] scale The image scale divisor factor.
# @return [String] Returns the SVG data.
- def spec(outfile: nil, fly: USPSFlags::Config::BASE_FLY, unit: nil, scale: nil)
+ def spec(outfile: nil, fly: USPSFlags::Config::BASE_FLY, unit: nil, scale: nil, scaled_border: false)
svg = ""
svg << USPSFlags::Core.headers(scale: scale, title: "USPS Trident Specifications")
- svg << USPSFlags::Core.trident_spec(fly: fly, unit: unit)
+ svg << USPSFlags::Core.trident_spec(fly: fly, unit: unit, scaled_border: scaled_border)
svg << USPSFlags::Core.footer
USPSFlags::Helpers.output(svg, outfile: outfile)
end