view examples/menu/list.svg @ 842:76fe4afce640

The inkscape:bbox is defined as the global coordinate system. However, the center.x and center.y must be the coordiante system of the parent group of the SVG entity. Therefore, we need to do coordinate transformation from the global coordination system to the local coordination system.
author wycc
date Sat, 18 Sep 2010 21:23:51 +0800
parents 58b6337fb3b2
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="720"
   height="480"
   id="svg2"
   sodipodi:version="0.32"
   inkscape:version="0.46"
   sodipodi:docname="list.svg"
   version="1.0"
   inkscape:output_extension="org.inkscape.output.svg.inkscape">
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     gridtolerance="10000"
     guidetolerance="10"
     objecttolerance="10"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="1.0347223"
     inkscape:cx="267.0313"
     inkscape:cy="228.90269"
     inkscape:document-units="px"
     inkscape:current-layer="layer4"
     showgrid="false"
     inkscape:window-width="1024"
     inkscape:window-height="768"
     inkscape:window-x="0"
     inkscape:window-y="0" />
  <defs
     id="defs4">
    <linearGradient
       id="linearGradient3183">
      <stop
         style="stop-color:#000000;stop-opacity:1;"
         offset="0"
         id="stop3185" />
      <stop
         style="stop-color:#505050;stop-opacity:1;"
         offset="1"
         id="stop3187" />
    </linearGradient>
    <inkscape:perspective
       id="perspective10"
       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
       inkscape:vp_z="744.09448 : 526.18109 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_x="0 : 526.18109 : 1"
       sodipodi:type="inkscape:persp3d" />
    <linearGradient
       inkscape:collect="always"
       xlink:href="#linearGradient3183"
       id="linearGradient3189"
       x1="0"
       y1="239.5"
       x2="719.99998"
       y2="239.5"
       gradientUnits="userSpaceOnUse" />
  </defs>
  <metadata
     id="metadata7">
    <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" />
  </metadata>
  <g
     inkscape:groupmode="layer"
     id="layer2"
     inkscape:label="Background"
     sodipodi:insensitive="true">
    <rect
       style="opacity:1;fill:url(#linearGradient3189);fill-opacity:1;stroke:#000000;stroke-width:0.9993065;stroke-opacity:1"
       id="rect3181"
       width="719.00067"
       height="480.0007"
       x="0.49965325"
       y="-0.50034672" />
  </g>
  <g
     id="layer1"
     inkscape:groupmode="layer"
     inkscape:label="Layer 1">
    <g
       transform="translate(147.14286,-2.85715)"
       id="item1"
       mbname="item1"
       style="fill-opacity:1">
      <text
         id="text2395"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Times New Roman;-inkscape-font-specification:Times New Roman Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
         xml:space="preserve"
         sodipodi:linespacing="125%"><tspan
           mbname="item1text"
           y="60"
           x="157.14285"
           id="tspan2397"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(146.65319,39.689836)"
       id="item2"
       mbname="item2"
       style="fill-opacity:1">
      <text
         id="text2421"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
         xml:space="preserve"
         sodipodi:linespacing="125%"><tspan
           mbname="item2text"
           y="60"
           x="157.14285"
           id="tspan2423"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(148.3266,82.236798)"
       id="item3"
       mbname="item3"
       style="fill-opacity:1">
      <text
         id="item3text"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
         xml:space="preserve"
         sodipodi:linespacing="125%"><tspan
           mbname="item3text"
           y="60"
           x="157.14285"
           id="tspan2429"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(147.83692,124.7838)"
       id="item4"
       mbname="item4"
       style="fill-opacity:1">
      <text
         id="item4text"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
         xml:space="preserve"
         sodipodi:linespacing="125%"><tspan
           mbname="item4text"
           y="60"
           x="157.14285"
           id="tspan2435"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(146.30615,167.33077)"
       id="item5"
       mbname="item5"
       style="fill-opacity:1">
      <text
         id="item5text"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
         xml:space="preserve"
         sodipodi:linespacing="125%"><tspan
           mbname="item5text"
           y="60"
           x="157.14285"
           id="tspan2441"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(145.81648,209.87776)"
       id="item6"
       mbname="item6"
       style="fill-opacity:1">
      <text
         id="item6text"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
         xml:space="preserve"
         sodipodi:linespacing="125%"><tspan
           mbname="item6text"
           y="60"
           x="157.14285"
           id="tspan2447"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(147.48989,252.42474)"
       id="item7"
       mbname="item7"
       style="fill-opacity:1">
      <text
         id="item7text"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:oblique;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Oblique;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
         xml:space="preserve"
         sodipodi:linespacing="125%"><tspan
           mbname="item7text"
           y="60"
           x="157.14285"
           id="tspan2453"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(147.00021,294.97172)"
       id="item8"
       mbname="item8"
       style="fill-opacity:1">
      <text
         id="item8text"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;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
           mbname="item8text"
           y="60"
           x="157.14285"
           id="tspan2459"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <g
       transform="translate(143.79604,337.5187)"
       id="item9"
       mbname="item9"
       style="fill-opacity:1">
      <text
         mbname=""
         id="text2407"
         y="60"
         x="157.14285"
         style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;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
           mbname="item9text"
           y="60"
           x="157.14285"
           id="tspan2409"
           sodipodi:role="line">item1</tspan></text>
    </g>
    <text
       id="text2416"
       y="44.383541"
       x="24.177626"
       style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;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
         mbname="item1text"
         y="44.383541"
         x="24.177626"
         id="tspan2418"
         sodipodi:role="line">Menu test</tspan></text>
  </g>
  <g
     inkscape:groupmode="layer"
     id="layer4"
     inkscape:label="lightbar">
    <g
       mbname="item_lightbar"
       transform="matrix(0.9148913,0,0,1,168.41407,93.684101)"
       id="item_lightbar"
       style="stroke:none">
      <rect
         style="opacity:0.3669725;fill:#001f41;fill-opacity:1;stroke:none;stroke-width:0.99680871;stroke-opacity:1"
         id="rect3191"
         width="442.8623"
         height="29.190758"
         x="0.19951171"
         y="31.140766"
         transform="matrix(0.9999958,-2.895334e-3,0,1,0,0)"
         rx="10.000001"
         ry="10" />
      <rect
         style="opacity:0.3669725;fill:#eafbf3;fill-opacity:1;stroke:none;stroke-width:0.99680871;stroke-opacity:1"
         id="rect2405"
         width="442.86224"
         height="29.190758"
         x="-4.099226"
         y="27.920256"
         transform="matrix(0.9999958,-2.8953343e-3,0,1,0,0)"
         rx="10"
         ry="10" />
    </g>
  </g>
</svg>