view nodejs/test.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 99186cce8cdd
children 191d3a5f74c8
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.47+devel r9312"
   sodipodi:docname="test.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="layer1"
     showgrid="false"
     inkscape:window-width="1347"
     inkscape:window-height="894"
     inkscape:window-x="0"
     inkscape:window-y="25"
     inkscape:window-maximized="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="804.3173 : 267.38473 : 1"
       inkscape:vp_z="1630.7262 : 376.00761 : 1"
       inkscape:vp_y="0 : 619.30892 : 0"
       inkscape:vp_x="-22.091594 : 376.00761 : 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="title"
         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>
    <image
       y="78.788635"
       x="34.986565"
       id="image3033"
       xlink:href="file:logo.png"
       height="37"
       width="46" />
    <g
       sodipodi:type="inkscape:box3d"
       style="fill:none;stroke:none"
       id="g2953"
       inkscape:perspectiveID="#perspective10"
       inkscape:corner0="11.418244 : -1.091331 : 0 : 1"
       inkscape:corner7="6.2635014 : -2.542367 : 0.25 : 1">
      <path
         sodipodi:type="inkscape:box3dside"
         id="path2963"
         style="fill:#afafde;fill-rule:evenodd;stroke:none"
         inkscape:box3dsidetype="13"
         d="M 44.456373,239.52954 91.68396,335.71719 142.89318,328.00691 75.760432,236.8548 z" />
      <path
         sodipodi:type="inkscape:box3dside"
         id="path2955"
         style="fill:#353564;fill-rule:evenodd;stroke:none"
         inkscape:box3dsidetype="6"
         d="m 44.456373,167.16508 0,72.36446 31.304059,-2.67474 0,-70.93639 z" />
      <path
         sodipodi:type="inkscape:box3dside"
         id="path2965"
         style="fill:#e9e9ff;fill-rule:evenodd;stroke:none"
         inkscape:box3dsidetype="11"
         d="m 75.760432,165.91841 67.132748,42.48521 0,119.60329 -67.132748,-91.15211 z" />
      <path
         sodipodi:type="inkscape:box3dside"
         id="path2957"
         style="fill:#4d4d9f;fill-rule:evenodd;stroke:none"
         inkscape:box3dsidetype="5"
         d="m 44.456373,167.16508 47.227587,44.83223 51.20922,-3.59369 -67.132748,-42.48521 z" />
      <path
         sodipodi:type="inkscape:box3dside"
         id="path2961"
         style="fill:#d7d7ff;fill-rule:evenodd;stroke:none"
         inkscape:box3dsidetype="14"
         d="m 91.68396,211.99731 0,123.71988 51.20922,-7.71028 0,-119.60329 z" />
      <path
         sodipodi:type="inkscape:box3dside"
         id="path2959"
         style="fill:#8686bf;fill-rule:evenodd;stroke:none"
         inkscape:box3dsidetype="3"
         d="m 44.456373,167.16508 47.227587,44.83223 0,123.71988 -47.227587,-96.18765 z" />
    </g>
  </g>
</svg>