annotate examples/tank/bullet.svg @ 1395:a768d74e5f49

Fix the svg:use. For a svg:use, it is a group which include the content it reference. It means that we can not tween it to its origin object directly. Instead, we need to ungroup it and then use the result matrix to generate the tweened transformation matrix. Therefore, we need to concate its matrix to the referenced object. Ad center object when the bbox-x is not available.
author wycc
date Sat, 02 Apr 2011 05:36:36 +0800
parents 3895d2224e67
children
rev   line source
115
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 <svg
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 xmlns:dc="http://purl.org/dc/elements/1.1/"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 xmlns:cc="http://creativecommons.org/ns#"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 xmlns:svg="http://www.w3.org/2000/svg"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 xmlns="http://www.w3.org/2000/svg"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 width="10"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 height="10"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 id="svg2523"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 sodipodi:version="0.32"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15 inkscape:version="0.46"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 version="1.0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17 sodipodi:docname="bullet.svg"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 inkscape:output_extension="org.inkscape.output.svg.inkscape">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
19 <defs
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
20 id="defs2525">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
21 <inkscape:perspective
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
22 sodipodi:type="inkscape:persp3d"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
23 inkscape:vp_x="0 : 526.18109 : 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
24 inkscape:vp_y="0 : 1000 : 0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
25 inkscape:vp_z="744.09448 : 526.18109 : 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
26 inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
27 id="perspective2531" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
28 </defs>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
29 <sodipodi:namedview
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
30 id="base"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
31 pagecolor="#ffffff"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
32 bordercolor="#666666"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
33 borderopacity="1.0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
34 gridtolerance="10000"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
35 guidetolerance="10"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
36 objecttolerance="10"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
37 inkscape:pageopacity="0.0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
38 inkscape:pageshadow="2"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
39 inkscape:zoom="1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
40 inkscape:cx="5.3383085"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
41 inkscape:cy="5"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
42 inkscape:document-units="px"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
43 inkscape:current-layer="layer1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
44 showgrid="false"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
45 inkscape:window-width="640"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
46 inkscape:window-height="695"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
47 inkscape:window-x="393"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
48 inkscape:window-y="151" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
49 <metadata
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
50 id="metadata2528">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
51 <rdf:RDF>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
52 <cc:Work
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
53 rdf:about="">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
54 <dc:format>image/svg+xml</dc:format>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
55 <dc:type
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
56 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
57 </cc:Work>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
58 </rdf:RDF>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
59 </metadata>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
60 <g
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
61 inkscape:label="Layer 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
62 inkscape:groupmode="layer"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
63 id="layer1">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
64 <rect
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
65 style="opacity:1;fill:#333333;fill-opacity:1;stroke:#4d4d4d;stroke-width:0.62018234000000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
66 id="rect2533"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
67 width="2.2188118"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
68 height="5.6734467"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
69 x="3.9087794"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
70 y="3.5517902" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
71 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
72 sodipodi:type="star"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
73 style="opacity:1;fill:#333333;fill-opacity:1;stroke:#4d4d4d;stroke-width:1.54299998000000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
74 id="path2535"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
75 sodipodi:sides="3"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
76 sodipodi:cx="8.1385279"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
77 sodipodi:cy="1.0822511"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
78 sodipodi:r1="5.0263076"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
79 sodipodi:r2="2.5131538"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
80 sodipodi:arg1="0.53303411"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
81 sodipodi:arg2="1.5802317"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
82 inkscape:flatsided="true"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
83 inkscape:rounded="0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
84 inkscape:randomized="0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
85 d="M 12.467532,3.6363635 L 3.7620995,3.5542224 L 8.1859521,-3.9438328 L 12.467532,3.6363635 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
86 transform="matrix(0.3813576,0,0,0.3735973,1.9227663,2.306617)" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
87 </g>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
88 </svg>