annotate examples/drag/menu.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 09ad4382aa41
children
rev   line source
199
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
3 <svg
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
4 xmlns:dc="http://purl.org/dc/elements/1.1/"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
5 xmlns:cc="http://creativecommons.org/ns#"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
6 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
7 xmlns:svg="http://www.w3.org/2000/svg"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
8 xmlns="http://www.w3.org/2000/svg"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
9 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
10 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
11 width="744.09448819"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
12 height="1052.3622047"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
13 id="svg2"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
14 sodipodi:version="0.32"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
15 inkscape:version="0.46"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
16 sodipodi:docname="menu.svg"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
17 inkscape:output_extension="org.inkscape.output.svg.inkscape">
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
18 <sodipodi:namedview
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
19 id="base"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
20 pagecolor="#ffffff"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
21 bordercolor="#666666"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
22 borderopacity="1.0"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
23 gridtolerance="10000"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
24 guidetolerance="10"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
25 objecttolerance="10"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
26 inkscape:pageopacity="0.0"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
27 inkscape:pageshadow="2"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
28 inkscape:zoom="0.35"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
29 inkscape:cx="375"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
30 inkscape:cy="520"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
31 inkscape:document-units="px"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
32 inkscape:current-layer="layer1"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
33 showgrid="false"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
34 inkscape:window-width="645"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
35 inkscape:window-height="725"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
36 inkscape:window-x="450"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
37 inkscape:window-y="154" />
214
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
38 <defs
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
39 id="defs4">
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
40 <inkscape:perspective
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
41 sodipodi:type="inkscape:persp3d"
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
42 inkscape:vp_x="0 : 526.18109 : 1"
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
43 inkscape:vp_y="0 : 1000 : 0"
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
44 inkscape:vp_z="744.09448 : 526.18109 : 1"
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
45 inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
46 id="perspective10" />
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
47 </defs>
199
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
48 <metadata
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
49 id="metadata7">
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
50 <rdf:RDF>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
51 <cc:Work
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
52 rdf:about="">
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
53 <dc:format>image/svg+xml</dc:format>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
54 <dc:type
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
55 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
56 </cc:Work>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
57 </rdf:RDF>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
58 </metadata>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
59 <g
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
60 inkscape:label="Layer 1"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
61 inkscape:groupmode="layer"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
62 id="layer1">
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
63 <g
214
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
64 id="star"
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
65 inkscape:label="#g2382"
09ad4382aa41 Modify the drag example to use the sprite API.
wycc
parents: 199
diff changeset
66 mbname="star">
199
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
67 <path
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
68 transform="translate(-257.14286,-237.14286)"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
69 inkscape:label="#path2383"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
70 d="M 291.42856,309.50504 L 269.44241,294.96605 L 245.00125,304.83533 L 252.03456,279.43246 L 235.09558,259.23731 L 261.42856,258.07647 L 275.40086,235.7259 L 284.64222,260.41133 L 310.21655,266.79307 L 289.59505,283.21034 L 291.42856,309.50504 z"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
71 inkscape:randomized="0"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
72 inkscape:rounded="0"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
73 inkscape:flatsided="false"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
74 sodipodi:arg2="1.6710404"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
75 sodipodi:arg1="1.0427219"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
76 sodipodi:r2="19.84635"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
77 sodipodi:r1="39.692696"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
78 sodipodi:cy="275.21933"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
79 sodipodi:cx="271.42856"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
80 sodipodi:sides="5"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
81 id="c1"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
82 style="fill:#ffff00;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
83 sodipodi:type="star"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
84 inkscape:transform-center-x="-38.060483"
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
85 inkscape:transform-center-y="37.389571" />
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
86 </g>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
87 </g>
55533146efdf Add drag example
wycc@wycc-desktop
parents:
diff changeset
88 </svg>