Sha256: aeae6eefcb2c37c0db46fb2fc909cbdb392863dabbd4a9029b282d5704482c32

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

module Prawn::SVG::Elements
  COMMA_WSP_REGEXP = /(?:\s+,?\s*|,\s*)/
end

%w(base root container style text line polyline polygon circle ellipse rect path use image gradient ignored).each do |filename|
  require "prawn/svg/elements/#{filename}"
end

module Prawn::SVG::Elements
  TAG_CLASS_MAPPING = {
    svg: Prawn::SVG::Elements::Container,
    g: Prawn::SVG::Elements::Container,
    symbol: Prawn::SVG::Elements::Container,
    defs: Prawn::SVG::Elements::Container,
    clipPath: Prawn::SVG::Elements::Container,
    style: Prawn::SVG::Elements::Style,
    text: Prawn::SVG::Elements::Text,
    line: Prawn::SVG::Elements::Line,
    polyline: Prawn::SVG::Elements::Polyline,
    polygon: Prawn::SVG::Elements::Polygon,
    circle: Prawn::SVG::Elements::Circle,
    ellipse: Prawn::SVG::Elements::Ellipse,
    rect: Prawn::SVG::Elements::Rect,
    path: Prawn::SVG::Elements::Path,
    use: Prawn::SVG::Elements::Use,
    image: Prawn::SVG::Elements::Image,
    linearGradient: Prawn::SVG::Elements::Gradient,
    title: Prawn::SVG::Elements::Ignored,
    desc: Prawn::SVG::Elements::Ignored,
    metadata: Prawn::SVG::Elements::Ignored,
    :"font-face" => Prawn::SVG::Elements::Ignored,
  }
end

Version data entries

3 entries across 3 versions & 1 rubygems

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