Mercurial > MadButterfly
comparison nodejs/test.svg @ 624:d45c928f6523
Add SVG parser sample code.
author | wycc |
---|---|
date | Thu, 15 Jul 2010 22:34:04 +0800 |
parents | |
children | 492da72e6537 |
comparison
equal
deleted
inserted
replaced
577:d561b2415711 | 624:d45c928f6523 |
---|---|
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
2 <!-- Created with Inkscape (http://www.inkscape.org/) --> | |
3 <svg | |
4 xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd" | |
5 xmlns:dc="http://purl.org/dc/elements/1.1/" | |
6 xmlns:cc="http://creativecommons.org/ns#" | |
7 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
8 xmlns:svg="http://www.w3.org/2000/svg" | |
9 xmlns="http://www.w3.org/2000/svg" | |
10 xmlns:xlink="http://www.w3.org/1999/xlink" | |
11 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | |
12 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | |
13 width="720" | |
14 height="480" | |
15 id="svg2" | |
16 sodipodi:version="0.32" | |
17 inkscape:version="0.46" | |
18 sodipodi:docname="list.svg" | |
19 version="1.0" | |
20 inkscape:output_extension="org.inkscape.output.svg.inkscape"> | |
21 <sodipodi:namedview | |
22 id="base" | |
23 pagecolor="#ffffff" | |
24 bordercolor="#666666" | |
25 borderopacity="1.0" | |
26 gridtolerance="10000" | |
27 guidetolerance="10" | |
28 objecttolerance="10" | |
29 inkscape:pageopacity="0.0" | |
30 inkscape:pageshadow="2" | |
31 inkscape:zoom="1.0347223" | |
32 inkscape:cx="267.0313" | |
33 inkscape:cy="228.90269" | |
34 inkscape:document-units="px" | |
35 inkscape:current-layer="layer4" | |
36 showgrid="false" | |
37 inkscape:window-width="1024" | |
38 inkscape:window-height="768" | |
39 inkscape:window-x="0" | |
40 inkscape:window-y="0" /> | |
41 <defs | |
42 id="defs4"> | |
43 <linearGradient | |
44 id="linearGradient3183"> | |
45 <stop | |
46 style="stop-color:#000000;stop-opacity:1;" | |
47 offset="0" | |
48 id="stop3185" /> | |
49 <stop | |
50 style="stop-color:#505050;stop-opacity:1;" | |
51 offset="1" | |
52 id="stop3187" /> | |
53 </linearGradient> | |
54 <inkscape:perspective | |
55 id="perspective10" | |
56 inkscape:persp3d-origin="372.04724 : 350.78739 : 1" | |
57 inkscape:vp_z="744.09448 : 526.18109 : 1" | |
58 inkscape:vp_y="0 : 1000 : 0" | |
59 inkscape:vp_x="0 : 526.18109 : 1" | |
60 sodipodi:type="inkscape:persp3d" /> | |
61 <linearGradient | |
62 inkscape:collect="always" | |
63 xlink:href="#linearGradient3183" | |
64 id="linearGradient3189" | |
65 x1="0" | |
66 y1="239.5" | |
67 x2="719.99998" | |
68 y2="239.5" | |
69 gradientUnits="userSpaceOnUse" /> | |
70 </defs> | |
71 <metadata | |
72 id="metadata7"> | |
73 <rdf:RDF> | |
74 <cc:Work | |
75 rdf:about=""> | |
76 <dc:format>image/svg+xml</dc:format> | |
77 <dc:type | |
78 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | |
79 </cc:Work> | |
80 </rdf:RDF> | |
81 <ns0:scenes | |
82 current="1" /> | |
83 </metadata> | |
84 <g | |
85 inkscape:groupmode="layer" | |
86 id="layer2" | |
87 inkscape:label="Background" | |
88 sodipodi:insensitive="true"> | |
89 <rect | |
90 style="opacity:1;fill:url(#linearGradient3189);fill-opacity:1;stroke:#000000;stroke-width:0.9993065;stroke-opacity:1" | |
91 id="rect3181" | |
92 width="719.00067" | |
93 height="480.0007" | |
94 x="0.49965325" | |
95 y="-0.50034672" /> | |
96 </g> | |
97 <g | |
98 id="layer1" | |
99 inkscape:groupmode="layer" | |
100 inkscape:label="Layer 1"> | |
101 <g | |
102 transform="translate(147.14286,-2.85715)" | |
103 id="item1" | |
104 mbname="item1" | |
105 style="fill-opacity:1"> | |
106 <text | |
107 id="text2395" | |
108 y="60" | |
109 x="157.14285" | |
110 style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Times New Roman;-inkscape-font-specification:Times New Roman Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" | |
111 xml:space="preserve" | |
112 sodipodi:linespacing="125%"><tspan | |
113 mbname="item1text" | |
114 y="60" | |
115 x="157.14285" | |
116 id="tspan2397" | |
117 sodipodi:role="line">item1</tspan></text> | |
118 </g> | |
119 <g | |
120 transform="translate(146.65319,39.689836)" | |
121 id="item2" | |
122 mbname="item2" | |
123 style="fill-opacity:1"> | |
124 <text | |
125 id="text2421" | |
126 y="60" | |
127 x="157.14285" | |
128 style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" | |
129 xml:space="preserve" | |
130 sodipodi:linespacing="125%"><tspan | |
131 mbname="item2text" | |
132 y="60" | |
133 x="157.14285" | |
134 id="tspan2423" | |
135 sodipodi:role="line">item1</tspan></text> | |
136 </g> | |
137 <g | |
138 transform="translate(148.3266,82.236798)" | |
139 id="item3" | |
140 mbname="item3" | |
141 style="fill-opacity:1"> | |
142 <text | |
143 id="item3text" | |
144 y="60" | |
145 x="157.14285" | |
146 style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" | |
147 xml:space="preserve" | |
148 sodipodi:linespacing="125%"><tspan | |
149 mbname="item3text" | |
150 y="60" | |
151 x="157.14285" | |
152 id="tspan2429" | |
153 sodipodi:role="line">item1</tspan></text> | |
154 </g> | |
155 <g | |
156 transform="translate(147.83692,124.7838)" | |
157 id="item4" | |
158 mbname="item4" | |
159 style="fill-opacity:1"> | |
160 <text | |
161 id="item4text" | |
162 y="60" | |
163 x="157.14285" | |
164 style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" | |
165 xml:space="preserve" | |
166 sodipodi:linespacing="125%"><tspan | |
167 mbname="item4text" | |
168 y="60" | |
169 x="157.14285" | |
170 id="tspan2435" | |
171 sodipodi:role="line">item1</tspan></text> | |
172 </g> | |
173 <g | |
174 transform="translate(146.30615,167.33077)" | |
175 id="item5" | |
176 mbname="item5" | |
177 style="fill-opacity:1"> | |
178 <text | |
179 id="item5text" | |
180 y="60" | |
181 x="157.14285" | |
182 style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" | |
183 xml:space="preserve" | |
184 sodipodi:linespacing="125%"><tspan | |
185 mbname="item5text" | |
186 y="60" | |
187 x="157.14285" | |
188 id="tspan2441" | |
189 sodipodi:role="line">item1</tspan></text> | |
190 </g> | |
191 <g | |
192 transform="translate(145.81648,209.87776)" | |
193 id="item6" | |
194 mbname="item6" | |
195 style="fill-opacity:1"> | |
196 <text | |
197 id="item6text" | |
198 y="60" | |
199 x="157.14285" | |
200 style="font-size:24px;font-style:normal;font-weight:bold;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" | |
201 xml:space="preserve" | |
202 sodipodi:linespacing="125%"><tspan | |
203 mbname="item6text" | |
204 y="60" | |
205 x="157.14285" | |
206 id="tspan2447" | |
207 sodipodi:role="line">item1</tspan></text> | |
208 </g> | |
209 <g | |
210 transform="translate(147.48989,252.42474)" | |
211 id="item7" | |
212 mbname="item7" | |
213 style="fill-opacity:1"> | |
214 <text | |
215 id="item7text" | |
216 y="60" | |
217 x="157.14285" | |
218 style="font-size:24px;font-style:oblique;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Oblique;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" | |
219 xml:space="preserve" | |
220 sodipodi:linespacing="125%"><tspan | |
221 mbname="item7text" | |
222 y="60" | |
223 x="157.14285" | |
224 id="tspan2453" | |
225 sodipodi:role="line">item1</tspan></text> | |
226 </g> | |
227 <g | |
228 transform="translate(147.00021,294.97172)" | |
229 id="item8" | |
230 mbname="item8" | |
231 style="fill-opacity:1"> | |
232 <text | |
233 id="item8text" | |
234 y="60" | |
235 x="157.14285" | |
236 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" | |
237 xml:space="preserve"><tspan | |
238 mbname="item8text" | |
239 y="60" | |
240 x="157.14285" | |
241 id="tspan2459" | |
242 sodipodi:role="line">item1</tspan></text> | |
243 </g> | |
244 <g | |
245 transform="translate(143.79604,337.5187)" | |
246 id="item9" | |
247 mbname="item9" | |
248 style="fill-opacity:1"> | |
249 <text | |
250 mbname="" | |
251 id="text2407" | |
252 y="60" | |
253 x="157.14285" | |
254 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" | |
255 xml:space="preserve"><tspan | |
256 mbname="item9text" | |
257 y="60" | |
258 x="157.14285" | |
259 id="tspan2409" | |
260 sodipodi:role="line">item1</tspan></text> | |
261 </g> | |
262 <text | |
263 id="text2416" | |
264 y="44.383541" | |
265 x="24.177626" | |
266 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" | |
267 xml:space="preserve"><tspan | |
268 mbname="item1text" | |
269 y="44.383541" | |
270 x="24.177626" | |
271 id="tspan2418" | |
272 sodipodi:role="line">Menu test</tspan></text> | |
273 </g> | |
274 <g | |
275 inkscape:groupmode="layer" | |
276 id="layer4" | |
277 inkscape:label="lightbar"> | |
278 <g | |
279 mbname="item_lightbar" | |
280 transform="matrix(0.9148913,0,0,1,168.41407,93.684101)" | |
281 id="item_lightbar" | |
282 style="stroke:none"> | |
283 <rect | |
284 style="opacity:0.3669725;fill:#001f41;fill-opacity:1;stroke:none;stroke-width:0.99680871;stroke-opacity:1" | |
285 id="rect3191" | |
286 width="442.8623" | |
287 height="29.190758" | |
288 x="0.19951171" | |
289 y="31.140766" | |
290 transform="matrix(0.9999958,-2.895334e-3,0,1,0,0)" | |
291 rx="10.000001" | |
292 ry="10" /> | |
293 <rect | |
294 style="opacity:0.3669725;fill:#eafbf3;fill-opacity:1;stroke:none;stroke-width:0.99680871;stroke-opacity:1" | |
295 id="rect2405" | |
296 width="442.86224" | |
297 height="29.190758" | |
298 x="-4.099226" | |
299 y="27.920256" | |
300 transform="matrix(0.9999958,-2.8953343e-3,0,1,0,0)" | |
301 rx="10" | |
302 ry="10" /> | |
303 </g> | |
304 </g> | |
305 </svg> |