minigl 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/LICENSE +19 -19
 - data/README.md +35 -36
 - data/Rakefile +11 -11
 - data/lib/minigl.rb +4 -4
 - data/lib/minigl/forms.rb +1485 -1485
 - data/lib/minigl/game_object.rb +379 -379
 - data/lib/minigl/global.rb +729 -729
 - data/lib/minigl/map.rb +256 -256
 - data/lib/minigl/movement.rb +585 -585
 - data/lib/minigl/text.rb +190 -188
 - data/test/data/img/barbg.svg +73 -73
 - data/test/data/img/barfg.svg +106 -106
 - data/test/data/img/square.svg +66 -66
 - data/test/data/img/square2.svg +66 -66
 - data/test/data/img/square3.svg +76 -76
 - data/test/data/img/tile1.svg +66 -66
 - data/test/data/img/tile2.svg +66 -66
 - data/test/game.rb +150 -150
 - data/test/game_object_tests.rb +108 -108
 - data/test/iso_game.rb +39 -39
 - data/test/map_tests.rb +57 -57
 - data/test/mov_game.rb +76 -76
 - data/test/movement_tests.rb +86 -86
 - data/test/res_tests.rb +45 -45
 - data/test/vector_tests.rb +55 -55
 - metadata +24 -24
 
    
        data/test/data/img/barfg.svg
    CHANGED
    
    | 
         @@ -1,106 +1,106 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
         
     | 
| 
       2 
     | 
    
         
            -
            <!-- Created with Inkscape (http://www.inkscape.org/) -->
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            <svg
         
     | 
| 
       5 
     | 
    
         
            -
               xmlns:dc="http://purl.org/dc/elements/1.1/"
         
     | 
| 
       6 
     | 
    
         
            -
               xmlns:cc="http://creativecommons.org/ns#"
         
     | 
| 
       7 
     | 
    
         
            -
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         
     | 
| 
       8 
     | 
    
         
            -
               xmlns:svg="http://www.w3.org/2000/svg"
         
     | 
| 
       9 
     | 
    
         
            -
               xmlns="http://www.w3.org/2000/svg"
         
     | 
| 
       10 
     | 
    
         
            -
               xmlns:xlink="http://www.w3.org/1999/xlink"
         
     | 
| 
       11 
     | 
    
         
            -
               xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
         
     | 
| 
       12 
     | 
    
         
            -
               xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
         
     | 
| 
       13 
     | 
    
         
            -
               width="20"
         
     | 
| 
       14 
     | 
    
         
            -
               height="20"
         
     | 
| 
       15 
     | 
    
         
            -
               id="svg2"
         
     | 
| 
       16 
     | 
    
         
            -
               version="1.1"
         
     | 
| 
       17 
     | 
    
         
            -
               inkscape:version="0.48.4 r9939"
         
     | 
| 
       18 
     | 
    
         
            -
               sodipodi:docname="barfg.svg"
         
     | 
| 
       19 
     | 
    
         
            -
               inkscape:export-filename="/home/victor/Projects/TCC/minigl/test/data/img/barfg.png"
         
     | 
| 
       20 
     | 
    
         
            -
               inkscape:export-xdpi="90"
         
     | 
| 
       21 
     | 
    
         
            -
               inkscape:export-ydpi="90">
         
     | 
| 
       22 
     | 
    
         
            -
              <defs
         
     | 
| 
       23 
     | 
    
         
            -
                 id="defs4">
         
     | 
| 
       24 
     | 
    
         
            -
                <linearGradient
         
     | 
| 
       25 
     | 
    
         
            -
                   id="linearGradient3778">
         
     | 
| 
       26 
     | 
    
         
            -
                  <stop
         
     | 
| 
       27 
     | 
    
         
            -
                     style="stop-color:#008000;stop-opacity:1;"
         
     | 
| 
       28 
     | 
    
         
            -
                     offset="0"
         
     | 
| 
       29 
     | 
    
         
            -
                     id="stop3780" />
         
     | 
| 
       30 
     | 
    
         
            -
                  <stop
         
     | 
| 
       31 
     | 
    
         
            -
                     id="stop3786"
         
     | 
| 
       32 
     | 
    
         
            -
                     offset="0.5"
         
     | 
| 
       33 
     | 
    
         
            -
                     style="stop-color:#00ff00;stop-opacity:1;" />
         
     | 
| 
       34 
     | 
    
         
            -
                  <stop
         
     | 
| 
       35 
     | 
    
         
            -
                     style="stop-color:#008000;stop-opacity:1;"
         
     | 
| 
       36 
     | 
    
         
            -
                     offset="1"
         
     | 
| 
       37 
     | 
    
         
            -
                     id="stop3782" />
         
     | 
| 
       38 
     | 
    
         
            -
                </linearGradient>
         
     | 
| 
       39 
     | 
    
         
            -
                <linearGradient
         
     | 
| 
       40 
     | 
    
         
            -
                   inkscape:collect="always"
         
     | 
| 
       41 
     | 
    
         
            -
                   xlink:href="#linearGradient3778"
         
     | 
| 
       42 
     | 
    
         
            -
                   id="linearGradient3784"
         
     | 
| 
       43 
     | 
    
         
            -
                   x1="0.51369864"
         
     | 
| 
       44 
     | 
    
         
            -
                   y1="1032.3622"
         
     | 
| 
       45 
     | 
    
         
            -
                   x2="0.52054793"
         
     | 
| 
       46 
     | 
    
         
            -
                   y2="1052.3965"
         
     | 
| 
       47 
     | 
    
         
            -
                   gradientUnits="userSpaceOnUse"
         
     | 
| 
       48 
     | 
    
         
            -
                   gradientTransform="scale(20,1)" />
         
     | 
| 
       49 
     | 
    
         
            -
              </defs>
         
     | 
| 
       50 
     | 
    
         
            -
              <sodipodi:namedview
         
     | 
| 
       51 
     | 
    
         
            -
                 id="base"
         
     | 
| 
       52 
     | 
    
         
            -
                 pagecolor="#ffffff"
         
     | 
| 
       53 
     | 
    
         
            -
                 bordercolor="#666666"
         
     | 
| 
       54 
     | 
    
         
            -
                 borderopacity="1.0"
         
     | 
| 
       55 
     | 
    
         
            -
                 inkscape:pageopacity="0.0"
         
     | 
| 
       56 
     | 
    
         
            -
                 inkscape:pageshadow="2"
         
     | 
| 
       57 
     | 
    
         
            -
                 inkscape:zoom="1"
         
     | 
| 
       58 
     | 
    
         
            -
                 inkscape:cx="10"
         
     | 
| 
       59 
     | 
    
         
            -
                 inkscape:cy="10"
         
     | 
| 
       60 
     | 
    
         
            -
                 inkscape:document-units="px"
         
     | 
| 
       61 
     | 
    
         
            -
                 inkscape:current-layer="layer1"
         
     | 
| 
       62 
     | 
    
         
            -
                 showgrid="false"
         
     | 
| 
       63 
     | 
    
         
            -
                 inkscape:window-width="1364"
         
     | 
| 
       64 
     | 
    
         
            -
                 inkscape:window-height="718"
         
     | 
| 
       65 
     | 
    
         
            -
                 inkscape:window-x="0"
         
     | 
| 
       66 
     | 
    
         
            -
                 inkscape:window-y="0"
         
     | 
| 
       67 
     | 
    
         
            -
                 inkscape:window-maximized="1" />
         
     | 
| 
       68 
     | 
    
         
            -
              <metadata
         
     | 
| 
       69 
     | 
    
         
            -
                 id="metadata7">
         
     | 
| 
       70 
     | 
    
         
            -
                <rdf:RDF>
         
     | 
| 
       71 
     | 
    
         
            -
                  <cc:Work
         
     | 
| 
       72 
     | 
    
         
            -
                     rdf:about="">
         
     | 
| 
       73 
     | 
    
         
            -
                    <dc:format>image/svg+xml</dc:format>
         
     | 
| 
       74 
     | 
    
         
            -
                    <dc:type
         
     | 
| 
       75 
     | 
    
         
            -
                       rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
         
     | 
| 
       76 
     | 
    
         
            -
                    <dc:title />
         
     | 
| 
       77 
     | 
    
         
            -
                  </cc:Work>
         
     | 
| 
       78 
     | 
    
         
            -
                </rdf:RDF>
         
     | 
| 
       79 
     | 
    
         
            -
              </metadata>
         
     | 
| 
       80 
     | 
    
         
            -
              <g
         
     | 
| 
       81 
     | 
    
         
            -
                 inkscape:label="Layer 1"
         
     | 
| 
       82 
     | 
    
         
            -
                 inkscape:groupmode="layer"
         
     | 
| 
       83 
     | 
    
         
            -
                 id="layer1"
         
     | 
| 
       84 
     | 
    
         
            -
                 transform="translate(0,-1032.3622)">
         
     | 
| 
       85 
     | 
    
         
            -
                <rect
         
     | 
| 
       86 
     | 
    
         
            -
                   style="fill:url(#linearGradient3784);fill-opacity:1;stroke:none"
         
     | 
| 
       87 
     | 
    
         
            -
                   id="rect3776"
         
     | 
| 
       88 
     | 
    
         
            -
                   width="20"
         
     | 
| 
       89 
     | 
    
         
            -
                   height="20"
         
     | 
| 
       90 
     | 
    
         
            -
                   x="0"
         
     | 
| 
       91 
     | 
    
         
            -
                   y="1032.3622" />
         
     | 
| 
       92 
     | 
    
         
            -
                <path
         
     | 
| 
       93 
     | 
    
         
            -
                   style="opacity:0.15;fill:#000000;fill-opacity:1;stroke:none"
         
     | 
| 
       94 
     | 
    
         
            -
                   d="M 0,0 0,10 10,0 z"
         
     | 
| 
       95 
     | 
    
         
            -
                   id="path3766"
         
     | 
| 
       96 
     | 
    
         
            -
                   inkscape:connector-curvature="0"
         
     | 
| 
       97 
     | 
    
         
            -
                   transform="translate(0,1032.3622)"
         
     | 
| 
       98 
     | 
    
         
            -
                   sodipodi:nodetypes="cccc" />
         
     | 
| 
       99 
     | 
    
         
            -
                <path
         
     | 
| 
       100 
     | 
    
         
            -
                   sodipodi:nodetypes="ccccc"
         
     | 
| 
       101 
     | 
    
         
            -
                   inkscape:connector-curvature="0"
         
     | 
| 
       102 
     | 
    
         
            -
                   id="path3768"
         
     | 
| 
       103 
     | 
    
         
            -
                   d="m 10,1052.3622 10,-10 0,-10 -20,20 z"
         
     | 
| 
       104 
     | 
    
         
            -
                   style="opacity:0.15;fill:#000000;fill-opacity:1;stroke:none" />
         
     | 
| 
       105 
     | 
    
         
            -
              </g>
         
     | 
| 
       106 
     | 
    
         
            -
            </svg>
         
     | 
| 
      
 1 
     | 
    
         
            +
            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <!-- Created with Inkscape (http://www.inkscape.org/) -->
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            <svg
         
     | 
| 
      
 5 
     | 
    
         
            +
               xmlns:dc="http://purl.org/dc/elements/1.1/"
         
     | 
| 
      
 6 
     | 
    
         
            +
               xmlns:cc="http://creativecommons.org/ns#"
         
     | 
| 
      
 7 
     | 
    
         
            +
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         
     | 
| 
      
 8 
     | 
    
         
            +
               xmlns:svg="http://www.w3.org/2000/svg"
         
     | 
| 
      
 9 
     | 
    
         
            +
               xmlns="http://www.w3.org/2000/svg"
         
     | 
| 
      
 10 
     | 
    
         
            +
               xmlns:xlink="http://www.w3.org/1999/xlink"
         
     | 
| 
      
 11 
     | 
    
         
            +
               xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
         
     | 
| 
      
 12 
     | 
    
         
            +
               xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
         
     | 
| 
      
 13 
     | 
    
         
            +
               width="20"
         
     | 
| 
      
 14 
     | 
    
         
            +
               height="20"
         
     | 
| 
      
 15 
     | 
    
         
            +
               id="svg2"
         
     | 
| 
      
 16 
     | 
    
         
            +
               version="1.1"
         
     | 
| 
      
 17 
     | 
    
         
            +
               inkscape:version="0.48.4 r9939"
         
     | 
| 
      
 18 
     | 
    
         
            +
               sodipodi:docname="barfg.svg"
         
     | 
| 
      
 19 
     | 
    
         
            +
               inkscape:export-filename="/home/victor/Projects/TCC/minigl/test/data/img/barfg.png"
         
     | 
| 
      
 20 
     | 
    
         
            +
               inkscape:export-xdpi="90"
         
     | 
| 
      
 21 
     | 
    
         
            +
               inkscape:export-ydpi="90">
         
     | 
| 
      
 22 
     | 
    
         
            +
              <defs
         
     | 
| 
      
 23 
     | 
    
         
            +
                 id="defs4">
         
     | 
| 
      
 24 
     | 
    
         
            +
                <linearGradient
         
     | 
| 
      
 25 
     | 
    
         
            +
                   id="linearGradient3778">
         
     | 
| 
      
 26 
     | 
    
         
            +
                  <stop
         
     | 
| 
      
 27 
     | 
    
         
            +
                     style="stop-color:#008000;stop-opacity:1;"
         
     | 
| 
      
 28 
     | 
    
         
            +
                     offset="0"
         
     | 
| 
      
 29 
     | 
    
         
            +
                     id="stop3780" />
         
     | 
| 
      
 30 
     | 
    
         
            +
                  <stop
         
     | 
| 
      
 31 
     | 
    
         
            +
                     id="stop3786"
         
     | 
| 
      
 32 
     | 
    
         
            +
                     offset="0.5"
         
     | 
| 
      
 33 
     | 
    
         
            +
                     style="stop-color:#00ff00;stop-opacity:1;" />
         
     | 
| 
      
 34 
     | 
    
         
            +
                  <stop
         
     | 
| 
      
 35 
     | 
    
         
            +
                     style="stop-color:#008000;stop-opacity:1;"
         
     | 
| 
      
 36 
     | 
    
         
            +
                     offset="1"
         
     | 
| 
      
 37 
     | 
    
         
            +
                     id="stop3782" />
         
     | 
| 
      
 38 
     | 
    
         
            +
                </linearGradient>
         
     | 
| 
      
 39 
     | 
    
         
            +
                <linearGradient
         
     | 
| 
      
 40 
     | 
    
         
            +
                   inkscape:collect="always"
         
     | 
| 
      
 41 
     | 
    
         
            +
                   xlink:href="#linearGradient3778"
         
     | 
| 
      
 42 
     | 
    
         
            +
                   id="linearGradient3784"
         
     | 
| 
      
 43 
     | 
    
         
            +
                   x1="0.51369864"
         
     | 
| 
      
 44 
     | 
    
         
            +
                   y1="1032.3622"
         
     | 
| 
      
 45 
     | 
    
         
            +
                   x2="0.52054793"
         
     | 
| 
      
 46 
     | 
    
         
            +
                   y2="1052.3965"
         
     | 
| 
      
 47 
     | 
    
         
            +
                   gradientUnits="userSpaceOnUse"
         
     | 
| 
      
 48 
     | 
    
         
            +
                   gradientTransform="scale(20,1)" />
         
     | 
| 
      
 49 
     | 
    
         
            +
              </defs>
         
     | 
| 
      
 50 
     | 
    
         
            +
              <sodipodi:namedview
         
     | 
| 
      
 51 
     | 
    
         
            +
                 id="base"
         
     | 
| 
      
 52 
     | 
    
         
            +
                 pagecolor="#ffffff"
         
     | 
| 
      
 53 
     | 
    
         
            +
                 bordercolor="#666666"
         
     | 
| 
      
 54 
     | 
    
         
            +
                 borderopacity="1.0"
         
     | 
| 
      
 55 
     | 
    
         
            +
                 inkscape:pageopacity="0.0"
         
     | 
| 
      
 56 
     | 
    
         
            +
                 inkscape:pageshadow="2"
         
     | 
| 
      
 57 
     | 
    
         
            +
                 inkscape:zoom="1"
         
     | 
| 
      
 58 
     | 
    
         
            +
                 inkscape:cx="10"
         
     | 
| 
      
 59 
     | 
    
         
            +
                 inkscape:cy="10"
         
     | 
| 
      
 60 
     | 
    
         
            +
                 inkscape:document-units="px"
         
     | 
| 
      
 61 
     | 
    
         
            +
                 inkscape:current-layer="layer1"
         
     | 
| 
      
 62 
     | 
    
         
            +
                 showgrid="false"
         
     | 
| 
      
 63 
     | 
    
         
            +
                 inkscape:window-width="1364"
         
     | 
| 
      
 64 
     | 
    
         
            +
                 inkscape:window-height="718"
         
     | 
| 
      
 65 
     | 
    
         
            +
                 inkscape:window-x="0"
         
     | 
| 
      
 66 
     | 
    
         
            +
                 inkscape:window-y="0"
         
     | 
| 
      
 67 
     | 
    
         
            +
                 inkscape:window-maximized="1" />
         
     | 
| 
      
 68 
     | 
    
         
            +
              <metadata
         
     | 
| 
      
 69 
     | 
    
         
            +
                 id="metadata7">
         
     | 
| 
      
 70 
     | 
    
         
            +
                <rdf:RDF>
         
     | 
| 
      
 71 
     | 
    
         
            +
                  <cc:Work
         
     | 
| 
      
 72 
     | 
    
         
            +
                     rdf:about="">
         
     | 
| 
      
 73 
     | 
    
         
            +
                    <dc:format>image/svg+xml</dc:format>
         
     | 
| 
      
 74 
     | 
    
         
            +
                    <dc:type
         
     | 
| 
      
 75 
     | 
    
         
            +
                       rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
         
     | 
| 
      
 76 
     | 
    
         
            +
                    <dc:title />
         
     | 
| 
      
 77 
     | 
    
         
            +
                  </cc:Work>
         
     | 
| 
      
 78 
     | 
    
         
            +
                </rdf:RDF>
         
     | 
| 
      
 79 
     | 
    
         
            +
              </metadata>
         
     | 
| 
      
 80 
     | 
    
         
            +
              <g
         
     | 
| 
      
 81 
     | 
    
         
            +
                 inkscape:label="Layer 1"
         
     | 
| 
      
 82 
     | 
    
         
            +
                 inkscape:groupmode="layer"
         
     | 
| 
      
 83 
     | 
    
         
            +
                 id="layer1"
         
     | 
| 
      
 84 
     | 
    
         
            +
                 transform="translate(0,-1032.3622)">
         
     | 
| 
      
 85 
     | 
    
         
            +
                <rect
         
     | 
| 
      
 86 
     | 
    
         
            +
                   style="fill:url(#linearGradient3784);fill-opacity:1;stroke:none"
         
     | 
| 
      
 87 
     | 
    
         
            +
                   id="rect3776"
         
     | 
| 
      
 88 
     | 
    
         
            +
                   width="20"
         
     | 
| 
      
 89 
     | 
    
         
            +
                   height="20"
         
     | 
| 
      
 90 
     | 
    
         
            +
                   x="0"
         
     | 
| 
      
 91 
     | 
    
         
            +
                   y="1032.3622" />
         
     | 
| 
      
 92 
     | 
    
         
            +
                <path
         
     | 
| 
      
 93 
     | 
    
         
            +
                   style="opacity:0.15;fill:#000000;fill-opacity:1;stroke:none"
         
     | 
| 
      
 94 
     | 
    
         
            +
                   d="M 0,0 0,10 10,0 z"
         
     | 
| 
      
 95 
     | 
    
         
            +
                   id="path3766"
         
     | 
| 
      
 96 
     | 
    
         
            +
                   inkscape:connector-curvature="0"
         
     | 
| 
      
 97 
     | 
    
         
            +
                   transform="translate(0,1032.3622)"
         
     | 
| 
      
 98 
     | 
    
         
            +
                   sodipodi:nodetypes="cccc" />
         
     | 
| 
      
 99 
     | 
    
         
            +
                <path
         
     | 
| 
      
 100 
     | 
    
         
            +
                   sodipodi:nodetypes="ccccc"
         
     | 
| 
      
 101 
     | 
    
         
            +
                   inkscape:connector-curvature="0"
         
     | 
| 
      
 102 
     | 
    
         
            +
                   id="path3768"
         
     | 
| 
      
 103 
     | 
    
         
            +
                   d="m 10,1052.3622 10,-10 0,-10 -20,20 z"
         
     | 
| 
      
 104 
     | 
    
         
            +
                   style="opacity:0.15;fill:#000000;fill-opacity:1;stroke:none" />
         
     | 
| 
      
 105 
     | 
    
         
            +
              </g>
         
     | 
| 
      
 106 
     | 
    
         
            +
            </svg>
         
     | 
    
        data/test/data/img/square.svg
    CHANGED
    
    | 
         @@ -1,66 +1,66 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
         
     | 
| 
       2 
     | 
    
         
            -
            <!-- Created with Inkscape (http://www.inkscape.org/) -->
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            <svg
         
     | 
| 
       5 
     | 
    
         
            -
               xmlns:dc="http://purl.org/dc/elements/1.1/"
         
     | 
| 
       6 
     | 
    
         
            -
               xmlns:cc="http://creativecommons.org/ns#"
         
     | 
| 
       7 
     | 
    
         
            -
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         
     | 
| 
       8 
     | 
    
         
            -
               xmlns:svg="http://www.w3.org/2000/svg"
         
     | 
| 
       9 
     | 
    
         
            -
               xmlns="http://www.w3.org/2000/svg"
         
     | 
| 
       10 
     | 
    
         
            -
               xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
         
     | 
| 
       11 
     | 
    
         
            -
               xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
         
     | 
| 
       12 
     | 
    
         
            -
               width="50"
         
     | 
| 
       13 
     | 
    
         
            -
               height="50"
         
     | 
| 
       14 
     | 
    
         
            -
               id="svg2"
         
     | 
| 
       15 
     | 
    
         
            -
               version="1.1"
         
     | 
| 
       16 
     | 
    
         
            -
               inkscape:version="0.48.4 r9939"
         
     | 
| 
       17 
     | 
    
         
            -
               sodipodi:docname="square.svg"
         
     | 
| 
       18 
     | 
    
         
            -
               inkscape:export-filename="/home/victor/Projects/TCC/minigl/test/data/img/square.png"
         
     | 
| 
       19 
     | 
    
         
            -
               inkscape:export-xdpi="90"
         
     | 
| 
       20 
     | 
    
         
            -
               inkscape:export-ydpi="90">
         
     | 
| 
       21 
     | 
    
         
            -
              <defs
         
     | 
| 
       22 
     | 
    
         
            -
                 id="defs4" />
         
     | 
| 
       23 
     | 
    
         
            -
              <sodipodi:namedview
         
     | 
| 
       24 
     | 
    
         
            -
                 id="base"
         
     | 
| 
       25 
     | 
    
         
            -
                 pagecolor="#ffffff"
         
     | 
| 
       26 
     | 
    
         
            -
                 bordercolor="#666666"
         
     | 
| 
       27 
     | 
    
         
            -
                 borderopacity="1.0"
         
     | 
| 
       28 
     | 
    
         
            -
                 inkscape:pageopacity="0.0"
         
     | 
| 
       29 
     | 
    
         
            -
                 inkscape:pageshadow="2"
         
     | 
| 
       30 
     | 
    
         
            -
                 inkscape:zoom="11.68"
         
     | 
| 
       31 
     | 
    
         
            -
                 inkscape:cx="25"
         
     | 
| 
       32 
     | 
    
         
            -
                 inkscape:cy="25"
         
     | 
| 
       33 
     | 
    
         
            -
                 inkscape:document-units="px"
         
     | 
| 
       34 
     | 
    
         
            -
                 inkscape:current-layer="layer1"
         
     | 
| 
       35 
     | 
    
         
            -
                 showgrid="false"
         
     | 
| 
       36 
     | 
    
         
            -
                 inkscape:window-width="1364"
         
     | 
| 
       37 
     | 
    
         
            -
                 inkscape:window-height="718"
         
     | 
| 
       38 
     | 
    
         
            -
                 inkscape:window-x="0"
         
     | 
| 
       39 
     | 
    
         
            -
                 inkscape:window-y="0"
         
     | 
| 
       40 
     | 
    
         
            -
                 inkscape:window-maximized="1" />
         
     | 
| 
       41 
     | 
    
         
            -
              <metadata
         
     | 
| 
       42 
     | 
    
         
            -
                 id="metadata7">
         
     | 
| 
       43 
     | 
    
         
            -
                <rdf:RDF>
         
     | 
| 
       44 
     | 
    
         
            -
                  <cc:Work
         
     | 
| 
       45 
     | 
    
         
            -
                     rdf:about="">
         
     | 
| 
       46 
     | 
    
         
            -
                    <dc:format>image/svg+xml</dc:format>
         
     | 
| 
       47 
     | 
    
         
            -
                    <dc:type
         
     | 
| 
       48 
     | 
    
         
            -
                       rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
         
     | 
| 
       49 
     | 
    
         
            -
                    <dc:title></dc:title>
         
     | 
| 
       50 
     | 
    
         
            -
                  </cc:Work>
         
     | 
| 
       51 
     | 
    
         
            -
                </rdf:RDF>
         
     | 
| 
       52 
     | 
    
         
            -
              </metadata>
         
     | 
| 
       53 
     | 
    
         
            -
              <g
         
     | 
| 
       54 
     | 
    
         
            -
                 inkscape:label="Layer 1"
         
     | 
| 
       55 
     | 
    
         
            -
                 inkscape:groupmode="layer"
         
     | 
| 
       56 
     | 
    
         
            -
                 id="layer1"
         
     | 
| 
       57 
     | 
    
         
            -
                 transform="translate(0,-1002.3622)">
         
     | 
| 
       58 
     | 
    
         
            -
                <rect
         
     | 
| 
       59 
     | 
    
         
            -
                   style="fill:#ffffff;fill-opacity:1;stroke:none"
         
     | 
| 
       60 
     | 
    
         
            -
                   id="rect3753"
         
     | 
| 
       61 
     | 
    
         
            -
                   width="50"
         
     | 
| 
       62 
     | 
    
         
            -
                   height="50"
         
     | 
| 
       63 
     | 
    
         
            -
                   x="0"
         
     | 
| 
       64 
     | 
    
         
            -
                   y="1002.3622" />
         
     | 
| 
       65 
     | 
    
         
            -
              </g>
         
     | 
| 
       66 
     | 
    
         
            -
            </svg>
         
     | 
| 
      
 1 
     | 
    
         
            +
            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <!-- Created with Inkscape (http://www.inkscape.org/) -->
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            <svg
         
     | 
| 
      
 5 
     | 
    
         
            +
               xmlns:dc="http://purl.org/dc/elements/1.1/"
         
     | 
| 
      
 6 
     | 
    
         
            +
               xmlns:cc="http://creativecommons.org/ns#"
         
     | 
| 
      
 7 
     | 
    
         
            +
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         
     | 
| 
      
 8 
     | 
    
         
            +
               xmlns:svg="http://www.w3.org/2000/svg"
         
     | 
| 
      
 9 
     | 
    
         
            +
               xmlns="http://www.w3.org/2000/svg"
         
     | 
| 
      
 10 
     | 
    
         
            +
               xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
         
     | 
| 
      
 11 
     | 
    
         
            +
               xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
         
     | 
| 
      
 12 
     | 
    
         
            +
               width="50"
         
     | 
| 
      
 13 
     | 
    
         
            +
               height="50"
         
     | 
| 
      
 14 
     | 
    
         
            +
               id="svg2"
         
     | 
| 
      
 15 
     | 
    
         
            +
               version="1.1"
         
     | 
| 
      
 16 
     | 
    
         
            +
               inkscape:version="0.48.4 r9939"
         
     | 
| 
      
 17 
     | 
    
         
            +
               sodipodi:docname="square.svg"
         
     | 
| 
      
 18 
     | 
    
         
            +
               inkscape:export-filename="/home/victor/Projects/TCC/minigl/test/data/img/square.png"
         
     | 
| 
      
 19 
     | 
    
         
            +
               inkscape:export-xdpi="90"
         
     | 
| 
      
 20 
     | 
    
         
            +
               inkscape:export-ydpi="90">
         
     | 
| 
      
 21 
     | 
    
         
            +
              <defs
         
     | 
| 
      
 22 
     | 
    
         
            +
                 id="defs4" />
         
     | 
| 
      
 23 
     | 
    
         
            +
              <sodipodi:namedview
         
     | 
| 
      
 24 
     | 
    
         
            +
                 id="base"
         
     | 
| 
      
 25 
     | 
    
         
            +
                 pagecolor="#ffffff"
         
     | 
| 
      
 26 
     | 
    
         
            +
                 bordercolor="#666666"
         
     | 
| 
      
 27 
     | 
    
         
            +
                 borderopacity="1.0"
         
     | 
| 
      
 28 
     | 
    
         
            +
                 inkscape:pageopacity="0.0"
         
     | 
| 
      
 29 
     | 
    
         
            +
                 inkscape:pageshadow="2"
         
     | 
| 
      
 30 
     | 
    
         
            +
                 inkscape:zoom="11.68"
         
     | 
| 
      
 31 
     | 
    
         
            +
                 inkscape:cx="25"
         
     | 
| 
      
 32 
     | 
    
         
            +
                 inkscape:cy="25"
         
     | 
| 
      
 33 
     | 
    
         
            +
                 inkscape:document-units="px"
         
     | 
| 
      
 34 
     | 
    
         
            +
                 inkscape:current-layer="layer1"
         
     | 
| 
      
 35 
     | 
    
         
            +
                 showgrid="false"
         
     | 
| 
      
 36 
     | 
    
         
            +
                 inkscape:window-width="1364"
         
     | 
| 
      
 37 
     | 
    
         
            +
                 inkscape:window-height="718"
         
     | 
| 
      
 38 
     | 
    
         
            +
                 inkscape:window-x="0"
         
     | 
| 
      
 39 
     | 
    
         
            +
                 inkscape:window-y="0"
         
     | 
| 
      
 40 
     | 
    
         
            +
                 inkscape:window-maximized="1" />
         
     | 
| 
      
 41 
     | 
    
         
            +
              <metadata
         
     | 
| 
      
 42 
     | 
    
         
            +
                 id="metadata7">
         
     | 
| 
      
 43 
     | 
    
         
            +
                <rdf:RDF>
         
     | 
| 
      
 44 
     | 
    
         
            +
                  <cc:Work
         
     | 
| 
      
 45 
     | 
    
         
            +
                     rdf:about="">
         
     | 
| 
      
 46 
     | 
    
         
            +
                    <dc:format>image/svg+xml</dc:format>
         
     | 
| 
      
 47 
     | 
    
         
            +
                    <dc:type
         
     | 
| 
      
 48 
     | 
    
         
            +
                       rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
         
     | 
| 
      
 49 
     | 
    
         
            +
                    <dc:title></dc:title>
         
     | 
| 
      
 50 
     | 
    
         
            +
                  </cc:Work>
         
     | 
| 
      
 51 
     | 
    
         
            +
                </rdf:RDF>
         
     | 
| 
      
 52 
     | 
    
         
            +
              </metadata>
         
     | 
| 
      
 53 
     | 
    
         
            +
              <g
         
     | 
| 
      
 54 
     | 
    
         
            +
                 inkscape:label="Layer 1"
         
     | 
| 
      
 55 
     | 
    
         
            +
                 inkscape:groupmode="layer"
         
     | 
| 
      
 56 
     | 
    
         
            +
                 id="layer1"
         
     | 
| 
      
 57 
     | 
    
         
            +
                 transform="translate(0,-1002.3622)">
         
     | 
| 
      
 58 
     | 
    
         
            +
                <rect
         
     | 
| 
      
 59 
     | 
    
         
            +
                   style="fill:#ffffff;fill-opacity:1;stroke:none"
         
     | 
| 
      
 60 
     | 
    
         
            +
                   id="rect3753"
         
     | 
| 
      
 61 
     | 
    
         
            +
                   width="50"
         
     | 
| 
      
 62 
     | 
    
         
            +
                   height="50"
         
     | 
| 
      
 63 
     | 
    
         
            +
                   x="0"
         
     | 
| 
      
 64 
     | 
    
         
            +
                   y="1002.3622" />
         
     | 
| 
      
 65 
     | 
    
         
            +
              </g>
         
     | 
| 
      
 66 
     | 
    
         
            +
            </svg>
         
     | 
    
        data/test/data/img/square2.svg
    CHANGED
    
    | 
         @@ -1,66 +1,66 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
         
     | 
| 
       2 
     | 
    
         
            -
            <!-- Created with Inkscape (http://www.inkscape.org/) -->
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            <svg
         
     | 
| 
       5 
     | 
    
         
            -
               xmlns:dc="http://purl.org/dc/elements/1.1/"
         
     | 
| 
       6 
     | 
    
         
            -
               xmlns:cc="http://creativecommons.org/ns#"
         
     | 
| 
       7 
     | 
    
         
            -
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         
     | 
| 
       8 
     | 
    
         
            -
               xmlns:svg="http://www.w3.org/2000/svg"
         
     | 
| 
       9 
     | 
    
         
            -
               xmlns="http://www.w3.org/2000/svg"
         
     | 
| 
       10 
     | 
    
         
            -
               xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
         
     | 
| 
       11 
     | 
    
         
            -
               xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
         
     | 
| 
       12 
     | 
    
         
            -
               width="50"
         
     | 
| 
       13 
     | 
    
         
            -
               height="50"
         
     | 
| 
       14 
     | 
    
         
            -
               id="svg2"
         
     | 
| 
       15 
     | 
    
         
            -
               version="1.1"
         
     | 
| 
       16 
     | 
    
         
            -
               inkscape:version="0.91 r13725"
         
     | 
| 
       17 
     | 
    
         
            -
               sodipodi:docname="square2.svg"
         
     | 
| 
       18 
     | 
    
         
            -
               inkscape:export-filename="/home/victor/aleva/minigl/test/data/img/square2.png"
         
     | 
| 
       19 
     | 
    
         
            -
               inkscape:export-xdpi="90"
         
     | 
| 
       20 
     | 
    
         
            -
               inkscape:export-ydpi="90">
         
     | 
| 
       21 
     | 
    
         
            -
              <defs
         
     | 
| 
       22 
     | 
    
         
            -
                 id="defs4" />
         
     | 
| 
       23 
     | 
    
         
            -
              <sodipodi:namedview
         
     | 
| 
       24 
     | 
    
         
            -
                 id="base"
         
     | 
| 
       25 
     | 
    
         
            -
                 pagecolor="#ffffff"
         
     | 
| 
       26 
     | 
    
         
            -
                 bordercolor="#666666"
         
     | 
| 
       27 
     | 
    
         
            -
                 borderopacity="1.0"
         
     | 
| 
       28 
     | 
    
         
            -
                 inkscape:pageopacity="0.0"
         
     | 
| 
       29 
     | 
    
         
            -
                 inkscape:pageshadow="2"
         
     | 
| 
       30 
     | 
    
         
            -
                 inkscape:zoom="11.68"
         
     | 
| 
       31 
     | 
    
         
            -
                 inkscape:cx="11.429795"
         
     | 
| 
       32 
     | 
    
         
            -
                 inkscape:cy="25"
         
     | 
| 
       33 
     | 
    
         
            -
                 inkscape:document-units="px"
         
     | 
| 
       34 
     | 
    
         
            -
                 inkscape:current-layer="layer1"
         
     | 
| 
       35 
     | 
    
         
            -
                 showgrid="false"
         
     | 
| 
       36 
     | 
    
         
            -
                 inkscape:window-width="1920"
         
     | 
| 
       37 
     | 
    
         
            -
                 inkscape:window-height="1026"
         
     | 
| 
       38 
     | 
    
         
            -
                 inkscape:window-x="0"
         
     | 
| 
       39 
     | 
    
         
            -
                 inkscape:window-y="0"
         
     | 
| 
       40 
     | 
    
         
            -
                 inkscape:window-maximized="1" />
         
     | 
| 
       41 
     | 
    
         
            -
              <metadata
         
     | 
| 
       42 
     | 
    
         
            -
                 id="metadata7">
         
     | 
| 
       43 
     | 
    
         
            -
                <rdf:RDF>
         
     | 
| 
       44 
     | 
    
         
            -
                  <cc:Work
         
     | 
| 
       45 
     | 
    
         
            -
                     rdf:about="">
         
     | 
| 
       46 
     | 
    
         
            -
                    <dc:format>image/svg+xml</dc:format>
         
     | 
| 
       47 
     | 
    
         
            -
                    <dc:type
         
     | 
| 
       48 
     | 
    
         
            -
                       rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
         
     | 
| 
       49 
     | 
    
         
            -
                    <dc:title></dc:title>
         
     | 
| 
       50 
     | 
    
         
            -
                  </cc:Work>
         
     | 
| 
       51 
     | 
    
         
            -
                </rdf:RDF>
         
     | 
| 
       52 
     | 
    
         
            -
              </metadata>
         
     | 
| 
       53 
     | 
    
         
            -
              <g
         
     | 
| 
       54 
     | 
    
         
            -
                 inkscape:label="Layer 1"
         
     | 
| 
       55 
     | 
    
         
            -
                 inkscape:groupmode="layer"
         
     | 
| 
       56 
     | 
    
         
            -
                 id="layer1"
         
     | 
| 
       57 
     | 
    
         
            -
                 transform="translate(0,-1002.3622)">
         
     | 
| 
       58 
     | 
    
         
            -
                <rect
         
     | 
| 
       59 
     | 
    
         
            -
                   style="fill:#99ffff;fill-opacity:1;stroke:none"
         
     | 
| 
       60 
     | 
    
         
            -
                   id="rect3753"
         
     | 
| 
       61 
     | 
    
         
            -
                   width="50"
         
     | 
| 
       62 
     | 
    
         
            -
                   height="50"
         
     | 
| 
       63 
     | 
    
         
            -
                   x="0"
         
     | 
| 
       64 
     | 
    
         
            -
                   y="1002.3622" />
         
     | 
| 
       65 
     | 
    
         
            -
              </g>
         
     | 
| 
       66 
     | 
    
         
            -
            </svg>
         
     | 
| 
      
 1 
     | 
    
         
            +
            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <!-- Created with Inkscape (http://www.inkscape.org/) -->
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            <svg
         
     | 
| 
      
 5 
     | 
    
         
            +
               xmlns:dc="http://purl.org/dc/elements/1.1/"
         
     | 
| 
      
 6 
     | 
    
         
            +
               xmlns:cc="http://creativecommons.org/ns#"
         
     | 
| 
      
 7 
     | 
    
         
            +
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         
     | 
| 
      
 8 
     | 
    
         
            +
               xmlns:svg="http://www.w3.org/2000/svg"
         
     | 
| 
      
 9 
     | 
    
         
            +
               xmlns="http://www.w3.org/2000/svg"
         
     | 
| 
      
 10 
     | 
    
         
            +
               xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
         
     | 
| 
      
 11 
     | 
    
         
            +
               xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
         
     | 
| 
      
 12 
     | 
    
         
            +
               width="50"
         
     | 
| 
      
 13 
     | 
    
         
            +
               height="50"
         
     | 
| 
      
 14 
     | 
    
         
            +
               id="svg2"
         
     | 
| 
      
 15 
     | 
    
         
            +
               version="1.1"
         
     | 
| 
      
 16 
     | 
    
         
            +
               inkscape:version="0.91 r13725"
         
     | 
| 
      
 17 
     | 
    
         
            +
               sodipodi:docname="square2.svg"
         
     | 
| 
      
 18 
     | 
    
         
            +
               inkscape:export-filename="/home/victor/aleva/minigl/test/data/img/square2.png"
         
     | 
| 
      
 19 
     | 
    
         
            +
               inkscape:export-xdpi="90"
         
     | 
| 
      
 20 
     | 
    
         
            +
               inkscape:export-ydpi="90">
         
     | 
| 
      
 21 
     | 
    
         
            +
              <defs
         
     | 
| 
      
 22 
     | 
    
         
            +
                 id="defs4" />
         
     | 
| 
      
 23 
     | 
    
         
            +
              <sodipodi:namedview
         
     | 
| 
      
 24 
     | 
    
         
            +
                 id="base"
         
     | 
| 
      
 25 
     | 
    
         
            +
                 pagecolor="#ffffff"
         
     | 
| 
      
 26 
     | 
    
         
            +
                 bordercolor="#666666"
         
     | 
| 
      
 27 
     | 
    
         
            +
                 borderopacity="1.0"
         
     | 
| 
      
 28 
     | 
    
         
            +
                 inkscape:pageopacity="0.0"
         
     | 
| 
      
 29 
     | 
    
         
            +
                 inkscape:pageshadow="2"
         
     | 
| 
      
 30 
     | 
    
         
            +
                 inkscape:zoom="11.68"
         
     | 
| 
      
 31 
     | 
    
         
            +
                 inkscape:cx="11.429795"
         
     | 
| 
      
 32 
     | 
    
         
            +
                 inkscape:cy="25"
         
     | 
| 
      
 33 
     | 
    
         
            +
                 inkscape:document-units="px"
         
     | 
| 
      
 34 
     | 
    
         
            +
                 inkscape:current-layer="layer1"
         
     | 
| 
      
 35 
     | 
    
         
            +
                 showgrid="false"
         
     | 
| 
      
 36 
     | 
    
         
            +
                 inkscape:window-width="1920"
         
     | 
| 
      
 37 
     | 
    
         
            +
                 inkscape:window-height="1026"
         
     | 
| 
      
 38 
     | 
    
         
            +
                 inkscape:window-x="0"
         
     | 
| 
      
 39 
     | 
    
         
            +
                 inkscape:window-y="0"
         
     | 
| 
      
 40 
     | 
    
         
            +
                 inkscape:window-maximized="1" />
         
     | 
| 
      
 41 
     | 
    
         
            +
              <metadata
         
     | 
| 
      
 42 
     | 
    
         
            +
                 id="metadata7">
         
     | 
| 
      
 43 
     | 
    
         
            +
                <rdf:RDF>
         
     | 
| 
      
 44 
     | 
    
         
            +
                  <cc:Work
         
     | 
| 
      
 45 
     | 
    
         
            +
                     rdf:about="">
         
     | 
| 
      
 46 
     | 
    
         
            +
                    <dc:format>image/svg+xml</dc:format>
         
     | 
| 
      
 47 
     | 
    
         
            +
                    <dc:type
         
     | 
| 
      
 48 
     | 
    
         
            +
                       rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
         
     | 
| 
      
 49 
     | 
    
         
            +
                    <dc:title></dc:title>
         
     | 
| 
      
 50 
     | 
    
         
            +
                  </cc:Work>
         
     | 
| 
      
 51 
     | 
    
         
            +
                </rdf:RDF>
         
     | 
| 
      
 52 
     | 
    
         
            +
              </metadata>
         
     | 
| 
      
 53 
     | 
    
         
            +
              <g
         
     | 
| 
      
 54 
     | 
    
         
            +
                 inkscape:label="Layer 1"
         
     | 
| 
      
 55 
     | 
    
         
            +
                 inkscape:groupmode="layer"
         
     | 
| 
      
 56 
     | 
    
         
            +
                 id="layer1"
         
     | 
| 
      
 57 
     | 
    
         
            +
                 transform="translate(0,-1002.3622)">
         
     | 
| 
      
 58 
     | 
    
         
            +
                <rect
         
     | 
| 
      
 59 
     | 
    
         
            +
                   style="fill:#99ffff;fill-opacity:1;stroke:none"
         
     | 
| 
      
 60 
     | 
    
         
            +
                   id="rect3753"
         
     | 
| 
      
 61 
     | 
    
         
            +
                   width="50"
         
     | 
| 
      
 62 
     | 
    
         
            +
                   height="50"
         
     | 
| 
      
 63 
     | 
    
         
            +
                   x="0"
         
     | 
| 
      
 64 
     | 
    
         
            +
                   y="1002.3622" />
         
     | 
| 
      
 65 
     | 
    
         
            +
              </g>
         
     | 
| 
      
 66 
     | 
    
         
            +
            </svg>
         
     |