view inkscape/mbtest.svg @ 776:77b561bb7929

Implement new algorithm to calculate the origin of the SVG elemnts so that we can implement object resize without changing the position of the object. However, the image does not work here since it does not use the transformation of the group.
author wycc
date Mon, 30 Aug 2010 08:56:44 +0800
parents 1499b8b86fcc
children
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
   xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="640px"
   height="480px"
   id="svg2383"
   sodipodi:version="0.32"
   inkscape:version="0.46"
   sodipodi:docname="mbtest.svg"
   inkscape:output_extension="org.inkscape.output.svg.inkscape">
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="1.6029106"
     inkscape:cx="310.3301"
     inkscape:cy="240.5"
     inkscape:current-layer="layer2"
     inkscape:document-units="px"
     showgrid="false"
     inkscape:window-width="1400"
     inkscape:window-height="978"
     inkscape:window-x="0"
     inkscape:window-y="25" />
  <defs
     id="defs2385">
    <linearGradient
       inkscape:collect="always"
       id="linearGradient3211">
      <stop
         style="stop-color:#001dff;stop-opacity:1;"
         offset="0"
         id="stop3213" />
      <stop
         style="stop-color:#001dff;stop-opacity:0;"
         offset="1"
         id="stop3215" />
    </linearGradient>
    <inkscape:perspective
       sodipodi:type="inkscape:persp3d"
       inkscape:vp_x="0 : 240 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_z="640 : 240 : 1"
       inkscape:persp3d-origin="320 : 160 : 1"
       id="perspective2391" />
    <linearGradient
       inkscape:collect="always"
       xlink:href="#linearGradient3211"
       id="linearGradient3217"
       x1="31.940987"
       y1="28.009715"
       x2="104.68548"
       y2="28.009715"
       gradientUnits="userSpaceOnUse" />
    <filter
       inkscape:collect="always"
       id="filter3295">
      <feGaussianBlur
         inkscape:collect="always"
         stdDeviation="0.67110109"
         id="feGaussianBlur3297" />
    </filter>
    <linearGradient
       inkscape:collect="always"
       xlink:href="#linearGradient3211"
       id="linearGradient3316"
       gradientUnits="userSpaceOnUse"
       x1="31.940987"
       y1="28.009715"
       x2="104.68548"
       y2="28.009715" />
    <linearGradient
       y2="28.009715"
       x2="104.68548"
       y1="28.009715"
       x1="31.940987"
       gradientUnits="userSpaceOnUse"
       id="linearGradient3542"
       xlink:href="#linearGradient3211"
       inkscape:collect="always" />
    <linearGradient
       y2="28.009715"
       x2="104.68548"
       y1="28.009715"
       x1="31.940987"
       gradientUnits="userSpaceOnUse"
       id="linearGradient3544"
       xlink:href="#linearGradient3211"
       inkscape:collect="always" />
    <filter
       height="1.34432"
       y="-0.17216"
       width="1.0257982"
       x="-0.012899101"
       id="filter3854"
       inkscape:collect="always">
      <feGaussianBlur
         id="feGaussianBlur3856"
         stdDeviation="3.3563945"
         inkscape:collect="always" />
    </filter>
  </defs>
  <metadata
     id="metadata2388">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
      </cc:Work>
    </rdf:RDF>
    <ns0:scenes
       current="1">
      <ns0:scene
         end="2"
         start="1"
         ref="s4393" />
      <ns0:scene
         start="1"
         ref="s4427" />
      <ns0:scene
         start="2"
         ref="s4159" />
    </ns0:scenes>
  </metadata>
  <g
     inkscape:groupmode="layer"
     id="layer2"
     inkscape:label="Background">
    <rect
       style="fill:#00ffff;fill-opacity:1;stroke:#000000;stroke-opacity:1"
       id="rect2437"
       width="641.95721"
       height="481.62387"
       x="0"
       y="-0.37614822" />
    <rect
       ry="10"
       rx="10"
       y="10.780138"
       x="8.5505733"
       height="46.789886"
       width="624.48901"
       id="rect3700"
       style="fill:#ff831d;fill-opacity:1;stroke:none;stroke-opacity:1;filter:url(#filter3854)" />
    <rect
       ry="10"
       rx="10"
       y="5.8625031"
       x="6.8625164"
       height="46.789886"
       width="624.48901"
       id="rect3698"
       style="fill:#ffcc1d;fill-opacity:1;stroke:none;stroke-opacity:1" />
    <g
       id="s4393"
       style="" />
  </g>
  <g
     inkscape:groupmode="layer"
     id="layer3"
     inkscape:label="Buton">
    <g
       id="g3303">
      <rect
         y="15.22048"
         x="32.440987"
         height="25.57847"
         width="71.744492"
         id="rect2439"
         style="fill:url(#linearGradient3217);fill-opacity:1;stroke:none;stroke-opacity:1;filter:url(#filter3295)" />
      <text
         id="text3299"
         y="33.312569"
         x="39.927368"
         style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
         xml:space="preserve"><tspan
           style="font-size:16px"
           y="33.312569"
           x="39.927368"
           id="tspan3301"
           sodipodi:role="line">Action</tspan></text>
    </g>
    <g
       id="g3308"
       transform="translate(88.276915,0.3119326)">
      <rect
         y="15.22048"
         x="32.440987"
         height="25.57847"
         width="71.744492"
         id="rect3310"
         style="fill:url(#linearGradient3316);fill-opacity:1;stroke:none;stroke-opacity:1;filter:url(#filter3295)" />
      <text
         id="text3312"
         y="33.312569"
         x="39.927368"
         style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
         xml:space="preserve"><tspan
           style="font-size:16px"
           y="33.312569"
           x="39.927368"
           id="tspan3314"
           sodipodi:role="line">Select</tspan></text>
    </g>
    <g
       id="s4427"
       style="" />
    <g
       id="s4159"
       style="display:none">
      <g
         transform="translate(4.9909171,0.3119319)"
         id="g3370">
        <rect
           style="fill:url(#linearGradient3542);fill-opacity:1;stroke:none;stroke-opacity:1;filter:url(#filter3295)"
           id="rect3372"
           width="71.744492"
           height="25.57847"
           x="32.440987"
           y="15.22048" />
        <text
           xml:space="preserve"
           style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
           x="35.927368"
           y="33.312569"
           id="text3374"><tspan
             sodipodi:role="line"
             id="tspan3376"
             x="35.927368"
             y="33.312569"
             style="font-size:16px">GNOME</tspan></text>
      </g>
      <g
         transform="translate(102.93775,-0.9357981)"
         id="g3380">
        <rect
           style="fill:url(#linearGradient3544);fill-opacity:1;stroke:none;stroke-opacity:1;filter:url(#filter3295)"
           id="rect3382"
           width="71.744492"
           height="25.57847"
           x="32.440987"
           y="15.22048" />
        <text
           xml:space="preserve"
           style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
           x="39.927368"
           y="33.312569"
           id="text3384"><tspan
             sodipodi:role="line"
             id="tspan3386"
             x="39.927368"
             y="33.312569"
             style="font-size:16px">KDE</tspan></text>
      </g>
    </g>
  </g>
  <g
     id="layer1"
     inkscape:label="Layer 1"
     inkscape:groupmode="layer" />
</svg>