comparison nodejs/examples/testsvg/test.svg @ 939:a74b4d986a91

Move examples for nodejs into nodejs/examples/ sub-directories. See INSTALL.txt. Use nodejs/examples/run.sh to run examples. For example, cd nodejs/examples; ./run.sh examples/testsvg/testsvg.js
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 12 Nov 2010 17:39:04 +0800
parents nodejs/test.svg@13b9acbbe9a3
children
comparison
equal deleted inserted replaced
938:13b9acbbe9a3 939:a74b4d986a91
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
4 <svg
5 xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd"
6 xmlns:dc="http://purl.org/dc/elements/1.1/"
7 xmlns:cc="http://creativecommons.org/ns#"
8 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
9 xmlns:svg="http://www.w3.org/2000/svg"
10 xmlns="http://www.w3.org/2000/svg"
11 xmlns:xlink="http://www.w3.org/1999/xlink"
12 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
13 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
14 width="720"
15 height="480"
16 id="svg2"
17 sodipodi:version="0.32"
18 inkscape:version="0.47 r22583"
19 sodipodi:docname="test.svg"
20 version="1.0"
21 inkscape:output_extension="org.inkscape.output.svg.inkscape">
22 <sodipodi:namedview
23 id="base"
24 pagecolor="#ffffff"
25 bordercolor="#666666"
26 borderopacity="1.0"
27 gridtolerance="10000"
28 guidetolerance="10"
29 objecttolerance="10"
30 inkscape:pageopacity="0.0"
31 inkscape:pageshadow="2"
32 inkscape:zoom="1.0347223"
33 inkscape:cx="151.05815"
34 inkscape:cy="228.90269"
35 inkscape:document-units="px"
36 inkscape:current-layer="layer1"
37 showgrid="false"
38 inkscape:window-width="1347"
39 inkscape:window-height="894"
40 inkscape:window-x="0"
41 inkscape:window-y="25"
42 inkscape:window-maximized="0" />
43 <defs
44 id="defs4">
45 <linearGradient
46 id="linearGradient3183">
47 <stop
48 style="stop-color:#000000;stop-opacity:1;"
49 offset="0"
50 id="stop3185" />
51 <stop
52 style="stop-color:#505050;stop-opacity:1;"
53 offset="1"
54 id="stop3187" />
55 </linearGradient>
56 <inkscape:perspective
57 id="perspective10"
58 inkscape:persp3d-origin="804.3173 : 267.38473 : 1"
59 inkscape:vp_z="1630.7262 : 376.00761 : 1"
60 inkscape:vp_y="0 : 619.30892 : 0"
61 inkscape:vp_x="-22.091594 : 376.00761 : 1"
62 sodipodi:type="inkscape:persp3d" />
63 <linearGradient
64 inkscape:collect="always"
65 xlink:href="#linearGradient3183"
66 id="linearGradient3189"
67 x1="0"
68 y1="239.5"
69 x2="719.99998"
70 y2="239.5"
71 gradientUnits="userSpaceOnUse" />
72 </defs>
73 <metadata
74 id="metadata7">
75 <rdf:RDF>
76 <cc:Work
77 rdf:about="">
78 <dc:format>image/svg+xml</dc:format>
79 <dc:type
80 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
81 </cc:Work>
82 </rdf:RDF>
83 <ns0:scenes
84 current="1" />
85 </metadata>
86 <g
87 inkscape:groupmode="layer"
88 id="layer2"
89 inkscape:label="Background"
90 sodipodi:insensitive="true">
91 <rect
92 style="opacity:1;fill:url(#linearGradient3189);fill-opacity:1;stroke:#000000;stroke-width:0.9993065;stroke-opacity:1"
93 id="rect3181"
94 width="719.00067"
95 height="480.0007"
96 x="0.49965325"
97 y="-0.50034672" />
98 </g>
99 <g
100 id="layer1"
101 inkscape:groupmode="layer"
102 inkscape:label="Layer 1">
103 <g
104 transform="translate(144.04213,-2.85715)"
105 id="item1"
106 mbname="item1"
107 style="fill-opacity:1"
108 inkscape:transform-center-x="0"
109 inkscape:transform-center-y="0"
110 inkscape:bbox-x="303.20061"
111 inkscape:bbox-y="422.51731"
112 inkscape:bbox-width="74.0625"
113 inkscape:bbox-height="18.574219">
114 <text
115 id="text2395"
116 y="60"
117 x="157.14285"
118 style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
119 xml:space="preserve"
120 sodipodi:linespacing="125%"
121 inkscape:transform-center-x="0"
122 inkscape:transform-center-y="0"
123 inkscape:bbox-x="303.20061"
124 inkscape:bbox-y="422.51731"
125 inkscape:bbox-width="74.0625"
126 inkscape:bbox-height="18.574219"><tspan
127 mbname="item1text"
128 y="60"
129 x="157.14285"
130 id="tspan2397"
131 sodipodi:role="line"
132 inkscape:transform-center-x="0"
133 inkscape:transform-center-y="0"
134 inkscape:bbox-x="303.20061"
135 inkscape:bbox-y="422.51731"
136 inkscape:bbox-width="74.0625"
137 inkscape:bbox-height="18.574219">item1</tspan></text>
138 </g>
139 <g
140 transform="translate(144.04213,39.689836)"
141 id="item2"
142 mbname="item2"
143 style="fill-opacity:1"
144 inkscape:transform-center-x="0"
145 inkscape:transform-center-y="0"
146 inkscape:bbox-x="303.20061"
147 inkscape:bbox-y="379.97032"
148 inkscape:bbox-width="74.0625"
149 inkscape:bbox-height="18.574219">
150 <text
151 id="text2421"
152 y="60"
153 x="157.14285"
154 style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
155 xml:space="preserve"
156 sodipodi:linespacing="125%"
157 inkscape:transform-center-x="0"
158 inkscape:transform-center-y="0"
159 inkscape:bbox-x="303.20061"
160 inkscape:bbox-y="379.97032"
161 inkscape:bbox-width="74.0625"
162 inkscape:bbox-height="18.574219"><tspan
163 mbname="item2text"
164 y="60"
165 x="157.14285"
166 id="tspan2423"
167 sodipodi:role="line"
168 inkscape:transform-center-x="0"
169 inkscape:transform-center-y="0"
170 inkscape:bbox-x="303.20061"
171 inkscape:bbox-y="379.97032"
172 inkscape:bbox-width="74.0625"
173 inkscape:bbox-height="18.574219">item1</tspan></text>
174 </g>
175 <g
176 transform="translate(144.04213,82.236798)"
177 id="item3"
178 mbname="item3"
179 style="fill-opacity:1"
180 inkscape:transform-center-x="0"
181 inkscape:transform-center-y="0"
182 inkscape:bbox-x="303.20061"
183 inkscape:bbox-y="337.42336"
184 inkscape:bbox-width="74.0625"
185 inkscape:bbox-height="18.574219">
186 <text
187 id="item3text"
188 y="60"
189 x="157.14285"
190 style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
191 xml:space="preserve"
192 sodipodi:linespacing="125%"
193 inkscape:transform-center-x="0"
194 inkscape:transform-center-y="0"
195 inkscape:bbox-x="303.20061"
196 inkscape:bbox-y="337.42336"
197 inkscape:bbox-width="74.0625"
198 inkscape:bbox-height="18.574219"><tspan
199 mbname="item3text"
200 y="60"
201 x="157.14285"
202 id="tspan2429"
203 sodipodi:role="line"
204 inkscape:transform-center-x="0"
205 inkscape:transform-center-y="0"
206 inkscape:bbox-x="303.20061"
207 inkscape:bbox-y="337.42336"
208 inkscape:bbox-width="74.0625"
209 inkscape:bbox-height="18.574219">item1</tspan></text>
210 </g>
211 <g
212 transform="translate(144.04213,124.7838)"
213 id="item4"
214 mbname="item4"
215 style="fill-opacity:1"
216 inkscape:transform-center-x="0"
217 inkscape:transform-center-y="0"
218 inkscape:bbox-x="303.20061"
219 inkscape:bbox-y="294.87636"
220 inkscape:bbox-width="74.0625"
221 inkscape:bbox-height="18.574219">
222 <text
223 id="item4text"
224 y="60"
225 x="157.14285"
226 style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
227 xml:space="preserve"
228 sodipodi:linespacing="125%"
229 inkscape:transform-center-x="0"
230 inkscape:transform-center-y="0"
231 inkscape:bbox-x="303.20061"
232 inkscape:bbox-y="294.87636"
233 inkscape:bbox-width="74.0625"
234 inkscape:bbox-height="18.574219"><tspan
235 mbname="item4text"
236 y="60"
237 x="157.14285"
238 id="tspan2435"
239 sodipodi:role="line"
240 inkscape:transform-center-x="0"
241 inkscape:transform-center-y="0"
242 inkscape:bbox-x="303.20061"
243 inkscape:bbox-y="294.87636"
244 inkscape:bbox-width="74.0625"
245 inkscape:bbox-height="18.574219">item1</tspan></text>
246 </g>
247 <g
248 transform="translate(144.04213,167.33077)"
249 id="item5"
250 mbname="item5"
251 style="fill-opacity:1"
252 inkscape:transform-center-x="0"
253 inkscape:transform-center-y="0"
254 inkscape:bbox-x="303.20061"
255 inkscape:bbox-y="252.32939"
256 inkscape:bbox-width="74.0625"
257 inkscape:bbox-height="18.574219">
258 <text
259 id="item5text"
260 y="60"
261 x="157.14285"
262 style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
263 xml:space="preserve"
264 sodipodi:linespacing="125%"
265 inkscape:transform-center-x="0"
266 inkscape:transform-center-y="0"
267 inkscape:bbox-x="303.20061"
268 inkscape:bbox-y="252.32939"
269 inkscape:bbox-width="74.0625"
270 inkscape:bbox-height="18.574219"><tspan
271 mbname="item5text"
272 y="60"
273 x="157.14285"
274 id="tspan2441"
275 sodipodi:role="line"
276 inkscape:transform-center-x="0"
277 inkscape:transform-center-y="0"
278 inkscape:bbox-x="303.20061"
279 inkscape:bbox-y="252.32939"
280 inkscape:bbox-width="74.0625"
281 inkscape:bbox-height="18.574219">item1</tspan></text>
282 </g>
283 <g
284 transform="translate(144.04213,209.87776)"
285 id="item6"
286 mbname="item6"
287 style="fill-opacity:1"
288 inkscape:transform-center-x="0"
289 inkscape:transform-center-y="0"
290 inkscape:bbox-x="303.20061"
291 inkscape:bbox-y="209.7824"
292 inkscape:bbox-width="74.0625"
293 inkscape:bbox-height="18.574219">
294 <text
295 id="item6text"
296 y="60"
297 x="157.14285"
298 style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
299 xml:space="preserve"
300 sodipodi:linespacing="125%"
301 inkscape:transform-center-x="0"
302 inkscape:transform-center-y="0"
303 inkscape:bbox-x="303.20061"
304 inkscape:bbox-y="209.7824"
305 inkscape:bbox-width="74.0625"
306 inkscape:bbox-height="18.574219"><tspan
307 mbname="item6text"
308 y="60"
309 x="157.14285"
310 id="tspan2447"
311 sodipodi:role="line"
312 inkscape:transform-center-x="0"
313 inkscape:transform-center-y="0"
314 inkscape:bbox-x="303.20061"
315 inkscape:bbox-y="209.7824"
316 inkscape:bbox-width="74.0625"
317 inkscape:bbox-height="18.574219">item1</tspan></text>
318 </g>
319 <g
320 transform="translate(145.21401,252.42474)"
321 id="item7"
322 mbname="item7"
323 style="fill-opacity:1"
324 inkscape:transform-center-x="0"
325 inkscape:transform-center-y="0"
326 inkscape:bbox-x="303.20061"
327 inkscape:bbox-y="167.23542"
328 inkscape:bbox-width="65.027344"
329 inkscape:bbox-height="18.574219">
330 <text
331 id="item7text"
332 y="60"
333 x="157.14285"
334 style="font-size:24px;font-style:oblique;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Oblique"
335 xml:space="preserve"
336 sodipodi:linespacing="125%"
337 inkscape:transform-center-x="0"
338 inkscape:transform-center-y="0"
339 inkscape:bbox-x="303.20061"
340 inkscape:bbox-y="167.23542"
341 inkscape:bbox-width="65.027344"
342 inkscape:bbox-height="18.574219"><tspan
343 mbname="item7text"
344 y="60"
345 x="157.14285"
346 id="tspan2453"
347 sodipodi:role="line"
348 inkscape:transform-center-x="0"
349 inkscape:transform-center-y="0"
350 inkscape:bbox-x="303.20061"
351 inkscape:bbox-y="167.23542"
352 inkscape:bbox-width="65.027344"
353 inkscape:bbox-height="18.574219">item1</tspan></text>
354 </g>
355 <g
356 transform="translate(143.79604,294.97172)"
357 id="item8"
358 mbname="item8"
359 style="fill-opacity:1"
360 inkscape:transform-center-x="0"
361 inkscape:transform-center-y="0"
362 inkscape:bbox-x="303.20061"
363 inkscape:bbox-y="124.68844"
364 inkscape:bbox-width="65.027344"
365 inkscape:bbox-height="18.574219">
366 <text
367 id="item8text"
368 y="60"
369 x="157.14285"
370 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
371 xml:space="preserve"
372 inkscape:transform-center-x="0"
373 inkscape:transform-center-y="0"
374 inkscape:bbox-x="303.20061"
375 inkscape:bbox-y="124.68844"
376 inkscape:bbox-width="65.027344"
377 inkscape:bbox-height="18.574219"><tspan
378 mbname="item8text"
379 y="60"
380 x="157.14285"
381 id="tspan2459"
382 sodipodi:role="line"
383 inkscape:transform-center-x="0"
384 inkscape:transform-center-y="0"
385 inkscape:bbox-x="303.20061"
386 inkscape:bbox-y="124.68844"
387 inkscape:bbox-width="65.027344"
388 inkscape:bbox-height="18.574219">item1</tspan></text>
389 </g>
390 <g
391 transform="translate(143.79604,337.5187)"
392 id="item9"
393 mbname="item9"
394 style="fill-opacity:1"
395 inkscape:transform-center-x="0"
396 inkscape:transform-center-y="0"
397 inkscape:bbox-x="303.20061"
398 inkscape:bbox-y="82.141456"
399 inkscape:bbox-width="65.027344"
400 inkscape:bbox-height="18.574219">
401 <text
402 mbname=""
403 id="text2407"
404 y="60"
405 x="157.14285"
406 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
407 xml:space="preserve"
408 inkscape:transform-center-x="0"
409 inkscape:transform-center-y="0"
410 inkscape:bbox-x="303.20061"
411 inkscape:bbox-y="82.141456"
412 inkscape:bbox-width="65.027344"
413 inkscape:bbox-height="18.574219"><tspan
414 mbname="item9text"
415 y="60"
416 x="157.14285"
417 id="tspan2409"
418 sodipodi:role="line"
419 inkscape:transform-center-x="0"
420 inkscape:transform-center-y="0"
421 inkscape:bbox-x="303.20061"
422 inkscape:bbox-y="82.141456"
423 inkscape:bbox-width="65.027344"
424 inkscape:bbox-height="18.574219">item1</tspan></text>
425 </g>
426 <text
427 id="text2416"
428 y="44.383541"
429 x="24.177626"
430 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"
431 xml:space="preserve"><tspan
432 mbname="title"
433 y="44.383541"
434 x="24.177626"
435 id="tspan2418"
436 sodipodi:role="line">Menu test</tspan></text>
437 </g>
438 <g
439 inkscape:groupmode="layer"
440 id="layer4"
441 inkscape:label="lightbar">
442 <g
443 mbname="item_lightbar"
444 transform="matrix(0.9148913,0,0,1,168.41407,93.684101)"
445 id="item_lightbar"
446 style="stroke:none"
447 inkscape:transform-center-x="0"
448 inkscape:transform-center-y="0"
449 inkscape:bbox-x="164.66374"
450 inkscape:bbox-y="326.01386"
451 inkscape:bbox-width="409.10203"
452 inkscape:bbox-height="33.623234">
453 <rect
454 style="opacity:0.3669725;fill:#001f41;fill-opacity:1;stroke:none"
455 id="rect3191"
456 width="442.8623"
457 height="29.190758"
458 x="0.19951171"
459 y="31.140766"
460 transform="matrix(0.9999958,-0.00289533,0,1,0,0)"
461 rx="10.000001"
462 ry="10"
463 inkscape:transform-center-x="0"
464 inkscape:transform-center-y="0"
465 inkscape:bbox-x="168.5966"
466 inkscape:bbox-y="326.01386"
467 inkscape:bbox-width="405.16917"
468 inkscape:bbox-height="30.41517" />
469 <rect
470 style="opacity:0.3669725;fill:#eafbf3;fill-opacity:1;stroke:none"
471 id="rect2405"
472 width="442.86224"
473 height="29.190758"
474 x="-4.099226"
475 y="27.920256"
476 transform="matrix(0.9999958,-0.00289533,0,1,0,0)"
477 rx="10"
478 ry="10"
479 inkscape:transform-center-x="0"
480 inkscape:transform-center-y="0"
481 inkscape:bbox-x="164.66374"
482 inkscape:bbox-y="329.22193"
483 inkscape:bbox-width="405.16911"
484 inkscape:bbox-height="30.41517" />
485 </g>
486 <image
487 y="78.788635"
488 x="34.986565"
489 id="image3033"
490 xlink:href="file:logo.png"
491 height="37"
492 width="46" />
493 <g
494 sodipodi:type="inkscape:box3d"
495 style="fill:none;stroke:none"
496 id="g2953"
497 inkscape:perspectiveID="#perspective10"
498 inkscape:corner0="11.418244 : -1.091331 : 0 : 1"
499 inkscape:corner7="6.2635014 : -2.542367 : 0.25 : 1">
500 <path
501 sodipodi:type="inkscape:box3dside"
502 id="path2963"
503 style="fill:#afafde;fill-rule:evenodd;stroke:none"
504 inkscape:box3dsidetype="13"
505 d="M 44.456373,239.52954 91.68396,335.71719 142.89318,328.00691 75.760432,236.8548 z" />
506 <path
507 sodipodi:type="inkscape:box3dside"
508 id="path2955"
509 style="fill:#353564;fill-rule:evenodd;stroke:none"
510 inkscape:box3dsidetype="6"
511 d="m 44.456373,167.16508 0,72.36446 31.304059,-2.67474 0,-70.93639 z" />
512 <path
513 sodipodi:type="inkscape:box3dside"
514 id="path2965"
515 style="fill:#e9e9ff;fill-rule:evenodd;stroke:none"
516 inkscape:box3dsidetype="11"
517 d="m 75.760432,165.91841 67.132748,42.48521 0,119.60329 -67.132748,-91.15211 z" />
518 <path
519 sodipodi:type="inkscape:box3dside"
520 id="path2957"
521 style="fill:#4d4d9f;fill-rule:evenodd;stroke:none"
522 inkscape:box3dsidetype="5"
523 d="m 44.456373,167.16508 47.227587,44.83223 51.20922,-3.59369 -67.132748,-42.48521 z" />
524 <path
525 sodipodi:type="inkscape:box3dside"
526 id="path2961"
527 style="fill:#d7d7ff;fill-rule:evenodd;stroke:none"
528 inkscape:box3dsidetype="14"
529 d="m 91.68396,211.99731 0,123.71988 51.20922,-7.71028 0,-119.60329 z" />
530 <path
531 sodipodi:type="inkscape:box3dside"
532 id="path2959"
533 style="fill:#8686bf;fill-rule:evenodd;stroke:none"
534 inkscape:box3dsidetype="3"
535 d="m 44.456373,167.16508 47.227587,44.83223 0,123.71988 -47.227587,-96.18765 z" />
536 </g>
537 </g>
538 </svg>