Sha256: 740713fe0e2ce9a79bc0cf1d68c03efcd8b5404fad132f406110eec2fcb38720

Contents?: true

Size: 288 Bytes

Versions: 3

Compression:

Stored size: 288 Bytes

Contents

module Prawn; module Svg
  class Interface
    def resize opts = {}
      sizing = document.sizing
      sizing.requested_width = opts[:width]
      sizing.requested_height = opts[:height]
      sizing.calculate
    end
  end
end; end unless Prawn::Svg::Interface.method_defined? :resize

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.alpha.16 lib/asciidoctor-pdf/prawn-svg_ext/interface.rb
asciidoctor-pdf-1.5.0.alpha.15 lib/asciidoctor-pdf/prawn-svg_ext/interface.rb
asciidoctor-pdf-1.5.0.alpha.14 lib/asciidoctor-pdf/prawn-svg_ext/interface.rb