Sha256: 00a9dfc5aebba68e255b26257fef9213bde62851df8e5ebc0a059ea30193fca5

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.beta.1 lib/asciidoctor-pdf/prawn-svg_ext/interface.rb
asciidoctor-pdf-1.5.0.alpha.18 lib/asciidoctor-pdf/prawn-svg_ext/interface.rb
asciidoctor-pdf-1.5.0.alpha.17 lib/asciidoctor-pdf/prawn-svg_ext/interface.rb