annotate 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
rev   line source
286
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
3 <svg
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
4 xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
5 xmlns:dc="http://purl.org/dc/elements/1.1/"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
6 xmlns:cc="http://creativecommons.org/ns#"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
7 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
8 xmlns:svg="http://www.w3.org/2000/svg"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
9 xmlns="http://www.w3.org/2000/svg"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
12 width="640px"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
13 height="480px"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
14 id="svg2383"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
15 sodipodi:version="0.32"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
16 inkscape:version="0.46"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
17 sodipodi:docname="text.svg"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
18 inkscape:output_extension="org.inkscape.output.svg.inkscape">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
19 <sodipodi:namedview
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
20 id="base"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
21 pagecolor="#ffffff"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
22 bordercolor="#666666"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
23 borderopacity="1.0"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
24 inkscape:pageopacity="0.0"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
25 inkscape:pageshadow="2"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
26 inkscape:zoom="0.77472527"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
27 inkscape:cx="132.83688"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
28 inkscape:cy="240"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
29 inkscape:current-layer="layer1"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
30 inkscape:document-units="px"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
31 showgrid="false"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
32 inkscape:window-width="1400"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
33 inkscape:window-height="978"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
34 inkscape:window-x="0"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
35 inkscape:window-y="25" />
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
36 <defs
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
37 id="defs2385">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
38 <inkscape:perspective
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
39 id="perspective2391"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
40 inkscape:persp3d-origin="320 : 160 : 1"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
41 inkscape:vp_z="640 : 240 : 1"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
42 inkscape:vp_y="0 : 1000 : 0"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
43 inkscape:vp_x="0 : 240 : 1"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
44 sodipodi:type="inkscape:persp3d" />
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
45 </defs>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
46 <metadata
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
47 id="metadata2388">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
48 <rdf:RDF>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
49 <cc:Work
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
50 rdf:about="">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
51 <dc:format>image/svg+xml</dc:format>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
52 <dc:type
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
53 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
54 </cc:Work>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
55 </rdf:RDF>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
56 <ns0:scenes
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
57 current="3">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
58 <ns0:scene
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
59 ref="s7737"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
60 start="1" />
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
61 <ns0:scene
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
62 ref="s4405"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
63 start="2" />
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
64 <ns0:scene
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
65 ref="s4702"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
66 start="3" />
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
67 </ns0:scenes>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
68 </metadata>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
69 <g
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
70 inkscape:groupmode="layer"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
71 inkscape:label="Layer 1"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
72 id="layer1">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
73 <g
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
74 id="s7737">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
75 <text
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
76 xml:space="preserve"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
77 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"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
78 x="188.4539"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
79 y="189.57446"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
80 id="text2554"><tspan
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
81 sodipodi:role="line"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
82 id="mytext"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
83 x="188.4539"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
84 y="189.57446"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
85 mbname="mytext">This is scene 1</tspan></text>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
86 </g>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
87 <g
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
88 style="display:none"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
89 id="s4405">
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
90 <text
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
91 id="text2576"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
92 y="199.90071"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
93 x="196.19858"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
94 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"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
95 xml:space="preserve"><tspan
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
96 y="199.90071"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
97 x="196.19858"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
98 id="tspan2578"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
99 sodipodi:role="line">This is scene 2</tspan></text>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
100 </g>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
101 <g
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
102 id="s4702"
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
103 style="" />
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
104 </g>
22d771e1b710 Add text program for text API
wycc
parents:
diff changeset
105 </svg>