Sha256: 6a4e315fb744a864b1b9de03f1071738e545280eda5990bcdce475ef99ee74b7

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

class Prawn::SVG::Elements::Container < Prawn::SVG::Elements::Base
  def parse
    state.disable_drawing = true if name == 'clipPath'

    if %w(symbol defs clipPath).include?(name)
      properties.display = 'none'
      computed_properties.display = 'none'
    end
  end

  def container?
    true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prawn-svg-0.25.2 lib/prawn/svg/elements/container.rb
prawn-svg-0.25.1 lib/prawn/svg/elements/container.rb
prawn-svg-0.25.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.24.0 lib/prawn/svg/elements/container.rb