Sha256: 77ac3a220fc8441ae7da7243cdb3b70d047fd9e424600a93d10b00440da40987

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

class Prawn::SVG::Elements::Root < Prawn::SVG::Elements::Base
  def initialize(document, source = document.root, parent_calls = [], state = ::Prawn::SVG::State.new)
    super
  end

  def apply
    add_call 'fill_color', '000000'
    add_call 'transformation_matrix', @document.sizing.x_scale, 0, 0, @document.sizing.y_scale, 0, 0
    add_call 'transformation_matrix', 1, 0, 0, 1, @document.sizing.x_offset, @document.sizing.y_offset

    process_child_elements
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prawn-svg-0.23.1 lib/prawn/svg/elements/root.rb
prawn-svg-0.23.0 lib/prawn/svg/elements/root.rb