view examples/dynamic/mytext.svg @ 1381:9a585df24e52

Consider the width and height attribute for the rect elements. The inkscape will change the width and height directly without using transform when we resize the rectangle.
author wycc
date Wed, 23 Mar 2011 23:02:36 +0800
parents 22d771e1b710
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: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="text.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="0.77472527"
     inkscape:cx="132.83688"
     inkscape:cy="240"
     inkscape:current-layer="layer1"
     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">
    <inkscape:perspective
       id="perspective2391"
       inkscape:persp3d-origin="320 : 160 : 1"
       inkscape:vp_z="640 : 240 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_x="0 : 240 : 1"
       sodipodi:type="inkscape:persp3d" />
  </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="3">
      <ns0:scene
         ref="s7737"
         start="1" />
      <ns0:scene
         ref="s4405"
         start="2" />
      <ns0:scene
         ref="s4702"
         start="3" />
    </ns0:scenes>
  </metadata>
  <g
     inkscape:groupmode="layer"
     inkscape:label="Layer 1"
     id="layer1">
    <g
       id="s7737">
      <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="188.4539"
         y="189.57446"
         id="text2554"><tspan
           sodipodi:role="line"
           id="mytext"
           x="188.4539"
           y="189.57446"
           mbname="mytext">This is scene 1</tspan></text>
    </g>
    <g
       style="display:none"
       id="s4405">
      <text
         id="text2576"
         y="199.90071"
         x="196.19858"
         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
           y="199.90071"
           x="196.19858"
           id="tspan2578"
           sodipodi:role="line">This is scene 2</tspan></text>
    </g>
    <g
       id="s4702"
       style="" />
  </g>
</svg>