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