Sha256: 54e8ad51a85615a2e702f2ee1401a7cd34aa43d4a64ff3e8295d2d450d01ef5c

Contents?: true

Size: 1.05 KB

Versions: 31

Compression:

Stored size: 1.05 KB

Contents

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100px" height="200px" version="1.1"
     viewBox="0 0 1500 1000" preserveAspectRatio="none"
     xmlns="http://www.w3.org/2000/svg">
  <desc>Example ViewBox - uses the viewBox 
   attribute to automatically create an initial user coordinate
   system which causes the graphic to scale to fit into the
   viewport no matter what size the viewport is.</desc>
  <!-- This rectangle goes from (0,0) to (1500,1000) in user space.
       Because of the viewBox attribute above,
       the rectangle will end up filling the entire area
       reserved for the SVG content. -->
  <rect x="0" y="0" width="1500" height="1000" 
        fill="yellow" stroke="blue" stroke-width="12"  />
  <!-- A large, red triangle -->
  <path fill="red"  d="M 750,100 L 250,900 L 1250,900 z"/>
  <!-- A text string that spans most of the viewport -->
  <text x="100" y="600" font-size="200" font-family="Verdana" >
    Stretch to fit
  </text>
</svg>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
prawn-svg-0.36.0 spec/sample_svg/viewport.svg
prawn-svg-0.35.1 spec/sample_svg/viewport.svg
prawn-svg-0.35.0 spec/sample_svg/viewport.svg
prawn-svg-0.34.2 spec/sample_svg/viewport.svg
prawn-svg-0.34.1 spec/sample_svg/viewport.svg
prawn-svg-0.34.0 spec/sample_svg/viewport.svg
prawn-svg-0.33.0 spec/sample_svg/viewport.svg
prawn-svg-0.32.0 spec/sample_svg/viewport.svg
prawn-svg-0.31.0 spec/sample_svg/viewport.svg
prawn-svg-0.30.0 spec/sample_svg/viewport.svg
prawn-svg-0.29.1 spec/sample_svg/viewport.svg
prawn-svg-0.29.0 spec/sample_svg/viewport.svg
prawn-svg-0.28.0 spec/sample_svg/viewport.svg
prawn-svg-0.27.1 spec/sample_svg/viewport.svg
prawn-svg-0.27.0 spec/sample_svg/viewport.svg
prawn-svg-0.26.0 spec/sample_svg/viewport.svg
prawn-svg-0.25.2 spec/sample_svg/viewport.svg
prawn-svg-0.25.1 spec/sample_svg/viewport.svg
prawn-svg-0.25.0 spec/sample_svg/viewport.svg
prawn-svg-0.24.0 spec/sample_svg/viewport.svg