Mercurial > MadButterfly
view pyink/primitive_test.svg @ 1139:a2b068594412
Use pybind with new DOM API (at PYNode).
- MBScene.document is a PYDocument instead of PYSPDocument.
- MBScene.root is a PYNode isntead of PYSPItem.
- getNext() was replaced by next().
- attribute() was replaced by getAttribute().
- getID() was removed, use setAttribute() instead.
- MBScene.dom was removed, use MBScene.document.root() instead.
- MBScene.nodeToItem was removed, use PYNode.spitem instead.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 22 Dec 2010 13:27:37 +0800 |
parents | a821ad26f6d9 |
children | d4dbcb93aee0 |
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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="744.09448819" height="1052.3622047" id="svg2" version="1.1" inkscape:version="0.48+devel r9774 custom" sodipodi:docname="aa.svg"> <defs id="defs4" /> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.35" inkscape:cx="375" inkscape:cy="862.85714" inkscape:document-units="px" inkscape:current-layer="Layer 1s8009" showgrid="false" inkscape:window-width="741" inkscape:window-height="639" inkscape:window-x="614" inkscape:window-y="288" inkscape:window-maximized="0" /> <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" /> <dc:title /> </cc:Work> </rdf:RDF> <ns0:scenes> <ns0:scene start="1" ref="Layer 1s1983" end="20" type="scale" /> <ns0:scene start="21" ref="Layer 1s8009" type="normal" /> </ns0:scenes> </metadata> <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1"> <g id="Layer 1s1983" inkscape:groupmode="layer" style="display:none"> <rect x="31.90139" y="-22.552591" width="23.144594" height="99.921394" id="rect3070" transform="matrix(0.97036454,0.24164574,-0.39246616,0.91976645,0,0)" /> </g> <g style="" inkscape:groupmode="layer" id="Layer 1s8009"> <rect transform="matrix(0.80629826,-0.59150919,0.67689515,0.73607945,0,0)" id="rect3431" height="432.13434" width="64.699173" y="213.35323" x="9.338623" /> </g> </g> </svg>