Sha256: 0256153a2636b9378eb427b7afa2b6c45b3abfbd10b75b34220b517e0626d5a7

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

class Prawn::SVG::State
  attr_accessor :text, :preserve_space,
    :fill_opacity, :stroke_opacity, :stroke_width,
    :computed_properties,
    :viewport_sizing,
    :inside_use, :inside_clip_path

  def initialize
    @stroke_width = 1
    @fill_opacity = 1
    @stroke_opacity = 1
    @computed_properties = Prawn::SVG::Properties.new.load_default_stylesheet
  end

  def initialize_dup(_other)
    @computed_properties = @computed_properties.dup
  end

  def disable_drawing
    inside_clip_path
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prawn-svg-0.35.1 lib/prawn/svg/state.rb
prawn-svg-0.35.0 lib/prawn/svg/state.rb