Mercurial > MadButterfly
view examples/menu/browser.svg @ 842:76fe4afce640
The inkscape:bbox is defined as the global coordinate system. However, the center.x and center.y must be the coordiante system of the parent group of the SVG entity. Therefore, we need to do coordinate transformation from the global coordination system to the local coordination system.
author | wycc |
---|---|
date | Sat, 18 Sep 2010 21:23:51 +0800 |
parents | ab7f3c00fd05 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="720" height="480" id="svg2" sodipodi:version="0.32" inkscape:version="0.46" sodipodi:docname="browser.svg" version="1.0" inkscape:output_extension="org.inkscape.output.svg.inkscape"> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" gridtolerance="10000" guidetolerance="10" objecttolerance="10" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.0347223" inkscape:cx="352.90812" inkscape:cy="240.5" inkscape:document-units="px" inkscape:current-layer="layer4" showgrid="false" inkscape:window-width="1124" inkscape:window-height="867" inkscape:window-x="152" inkscape:window-y="56" /> <defs id="defs4"> <linearGradient id="linearGradient3183"> <stop id="stop3185" offset="0" style="stop-color:#0000ff;stop-opacity:1;" /> <stop id="stop3187" offset="1" style="stop-color:#505050;stop-opacity:1;" /> </linearGradient> <inkscape:perspective sodipodi:type="inkscape:persp3d" inkscape:vp_x="0 : 526.18109 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_z="744.09448 : 526.18109 : 1" inkscape:persp3d-origin="372.04724 : 350.78739 : 1" id="perspective10" /> <linearGradient gradientUnits="userSpaceOnUse" y2="239.5" x2="719.99998" y1="239.5" x1="0" id="linearGradient3189" xlink:href="#linearGradient3183" inkscape:collect="always" /> <inkscape:perspective sodipodi:type="inkscape:persp3d" inkscape:vp_x="0 : 526.18109 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_z="744.09448 : 526.18109 : 1" inkscape:persp3d-origin="372.04724 : 350.78739 : 1" id="perspective2495" /> <inkscape:perspective sodipodi:type="inkscape:persp3d" inkscape:vp_x="0 : 526.18109 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_z="744.09448 : 526.18109 : 1" inkscape:persp3d-origin="372.04724 : 350.78739 : 1" id="perspective2496" /> <inkscape:perspective sodipodi:type="inkscape:persp3d" inkscape:vp_x="0 : 526.18109 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_z="744.09448 : 526.18109 : 1" inkscape:persp3d-origin="372.04724 : 350.78739 : 1" id="perspective2498" /> </defs> <metadata id="metadata7"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> <ns0:scenes current="1" /> </metadata> <g sodipodi:insensitive="true" inkscape:label="Background" id="layer2" inkscape:groupmode="layer"> <rect y="-0.50034672" x="0.49965325" height="480.0007" width="719.00067" id="rect3181" style="opacity:1;fill:url(#linearGradient3189);fill-opacity:1;stroke:#000000;stroke-width:0.9993065;stroke-opacity:1" /> </g> <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1"> <g style="fill-opacity:1" mbname="item1" id="item1" transform="translate(-124.18599,-2.85715)"> <text sodipodi:linespacing="125%" xml:space="preserve" 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;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Times New Roman;-inkscape-font-specification:Times New Roman Bold" x="157.14285" y="60" id="text2395"><tspan sodipodi:role="line" id="tspan2397" x="157.14285" y="60" mbname="item1text">item111111111111111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item2" id="item2" transform="translate(-124.67566,39.689836)"> <text sodipodi:linespacing="125%" xml:space="preserve" 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;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" x="157.14285" y="60" id="text2421"><tspan sodipodi:role="line" id="tspan2423" x="157.14285" y="60" mbname="item2text">item1111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item3" id="item3" transform="translate(-123.00225,82.236798)"> <text sodipodi:linespacing="125%" xml:space="preserve" 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;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" x="157.14285" y="60" id="item3text"><tspan sodipodi:role="line" id="tspan2429" x="157.14285" y="60" mbname="item3text">item1111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item4" id="item4" transform="translate(-123.49193,124.7838)"> <text sodipodi:linespacing="125%" xml:space="preserve" 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;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" x="157.14285" y="60" id="item4text"><tspan sodipodi:role="line" id="tspan2435" x="157.14285" y="60" mbname="item4text">item1111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item5" id="item5" transform="translate(-125.0227,167.33077)"> <text sodipodi:linespacing="125%" xml:space="preserve" 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;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" x="157.14285" y="60" id="item5text"><tspan sodipodi:role="line" id="tspan2441" x="157.14285" y="60" mbname="item5text">item1111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item6" id="item6" transform="translate(-125.51237,209.87776)"> <text sodipodi:linespacing="125%" xml:space="preserve" 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;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" x="157.14285" y="60" id="item6text"><tspan sodipodi:role="line" id="tspan2447" x="157.14285" y="60" mbname="item6text">item1111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item7" id="item7" transform="translate(-123.83896,252.42474)"> <text sodipodi:linespacing="125%" xml:space="preserve" 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;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Oblique" x="157.14285" y="60" id="item7text"><tspan sodipodi:role="line" id="tspan2453" x="157.14285" y="60" mbname="item7text">item111111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item8" id="item8" transform="translate(-124.32864,294.97172)"> <text xml:space="preserve" 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" x="157.14285" y="60" id="item8text"><tspan sodipodi:role="line" id="tspan2459" x="157.14285" y="60" mbname="item8text">item111111111111111111111</tspan></text> </g> <g style="fill-opacity:1" mbname="item9" id="item9" transform="translate(-127.53281,337.5187)"> <text xml:space="preserve" 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" x="157.14285" y="60" id="text2407" mbname=""><tspan sodipodi:role="line" id="tspan2409" x="157.14285" y="60" mbname="item9text">item111111111111111111111</tspan></text> </g> <g id="preview" mbname="preview"> <rect style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1" id="rect2418" width="252.24159" height="237.74495" x="449.39597" y="26.738289" rx="10" ry="10" /> </g> <flowRoot style="font-size:22px;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" id="flowRoot2420" xml:space="preserve"><flowRegion id="flowRegion2422"><rect style="font-size:22px;fill:#ffffff;fill-opacity:1" y="295.40942" x="458.09393" height="162.36241" width="240.64427" id="rect2424" /></flowRegion><flowPara id="flowPara2426" /></flowRoot> <g id="fileinfo" mbname="fileinfo"> <flowRoot xml:space="preserve" id="flowRoot2582" 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" mbname="fileinfo"><flowRegion id="flowRegion3200"><rect id="rect3202" width="244.51006" height="172.99327" x="454.22815" y="287.67786" style="font-size:24px" /></flowRegion><flowPara id="flowPara3204" style="fill:#ffffff;fill-opacity:1">File infiormation</flowPara></flowRoot> </g> <text id="text2427" y="185.23492" x="155.59731" style="font-size:40px;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" xml:space="preserve"><tspan id="tspan2430" sodipodi:role="line" /></text> <text id="text2429" y="393.02014" x="236.7785" style="font-size:40px;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" xml:space="preserve"><tspan id="tspan2431" sodipodi:role="line" /></text> </g> <g inkscape:label="lightbar" id="layer4" inkscape:groupmode="layer"> <g style="stroke:none" id="item_lightbar" transform="matrix(0.9148913,0,0,1,17.648985,179.69752)" mbname="item_lightbar"> <rect ry="10" rx="10.000001" transform="matrix(0.9999958,-2.895334e-3,0,1,0,0)" y="31.140766" x="0.19951171" height="29.190758" width="442.8623" id="rect3191" style="opacity:0.3669725;fill:#001f41;fill-opacity:1;stroke:none;stroke-width:0.99680871;stroke-opacity:1" /> <rect ry="10" rx="10" transform="matrix(0.9999958,-2.8953343e-3,0,1,0,0)" y="27.920256" x="-4.099226" height="29.190758" width="442.86224" id="rect2405" style="opacity:0.3669725;fill:#eafbf3;fill-opacity:1;stroke:none;stroke-width:0.99680871;stroke-opacity:1" /> </g> <image mbname="previewimg" xlink:href="../svg2code_ex/dsc_3241.png" sodipodi:absref="../svg2code_ex/dsc_3241.png" width="100" height="66" id="previewimg" x="514.40265" y="98.114113" /> </g> </svg>