Mercurial > MadButterfly
view pyink/primitive_test.svg @ 1161:a7faab54e8f8
Fix broken of running animation
- Running animation is stop automatically after a certain time.
- It is 300ms according MBScene._updateUI().
- It is caused by notification of changing DOM tree. The
notification handlers would call MBScene.updateUI() to update
framelines and buttons.
- MBScene.updateUI() would call MBScene.show() after 300ms,
MBScene.show() calls MBScene.parseScene() in turn.
- MBScene.parseScene() would remove duplicate group that is using
by code of running animation, MBScene.doRunNext(). It make
running animation stop.
- fixed by setting MBScene.lockui when a running animation is started
or stoped.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 28 Dec 2010 13:35:34 +0800 |
parents | 3a891dccabd8 |
children | 64c54ef39480 |
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.09448" height="1052.3622" id="svg2" version="1.1" inkscape:version="0.48+devel r9776" sodipodi:docname="primitive_test.svg" style="display:inline"> <defs id="defs4" /> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.7" inkscape:cx="481.6562" inkscape:cy="910.80426" inkscape:document-units="px" inkscape:current-layer="Layer 1s6197" showgrid="false" inkscape:window-width="1680" inkscape:window-height="975" inkscape:window-x="0" inkscape:window-y="25" inkscape:window-maximized="1" /> <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" end="19" ref="Layer 1s1983" type="scale" /> <ns0:scene start="1" end="19" ref="Layer 1s1983" type="scale" /> <ns0:scene start="20" ref="Layer 1s6197" type="normal" /> </ns0:scenes> </metadata> <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" style="display:inline"> <g id="Layer 1s1983" inkscape:groupmode="layer" style="display:none"> <g id="g3077"> <path transform="translate(-48.571429,-100)" d="m 145.71428,168.07646 a 42.857143,47.142857 0 1 1 -85.714284,0 42.857143,47.142857 0 1 1 85.714284,0 z" sodipodi:ry="47.142857" sodipodi:rx="42.857143" sodipodi:cy="168.07646" sodipodi:cx="102.85714" id="path3237" style="fill:#ff0000;fill-opacity:1" sodipodi:type="arc" /> </g> <g id="g3072"> <rect transform="matrix(0.8189798,0.57382236,-0.57382236,0.8189798,0,0)" y="-68.432068" x="171.42537" height="160" width="25.714285" id="rect3229" style="fill:#ff0000;fill-opacity:1" /> </g> <rect style="fill:#808000;fill-opacity:1" id="rect3098" width="57.142857" height="61.42857" x="21.428572" y="153.79076" /> </g> <g style="" inkscape:groupmode="layer" id="Layer 1s6197" ns0:duplicate-src="Layer 1s1983"> <g id="g3087" ns0:duplicate-src="g3077" transform="translate(265.71429,167.14286)"> <path sodipodi:type="arc" style="fill:#ff0000;fill-opacity:1" id="path3089" sodipodi:cx="102.85714" sodipodi:cy="168.07646" sodipodi:rx="42.857143" sodipodi:ry="47.142857" d="m 145.71428,168.07646 a 42.857143,47.142857 0 1 1 -85.714284,0 42.857143,47.142857 0 1 1 85.714284,0 z" transform="translate(-48.571429,-100)" ns0:duplicate-src="path3237" /> </g> <g id="g3091" ns0:duplicate-src="g3072" transform="translate(58.571429,51.428571)"> <rect style="fill:#ff0000;fill-opacity:1" id="rect3093" width="25.714285" height="160" x="171.42537" y="-68.432068" transform="matrix(0.8189798,0.57382236,-0.57382236,0.8189798,0,0)" ns0:duplicate-src="rect3229" /> </g> </g> <g inkscape:label="dup" sodipodi:insensitive="1" style="display:none" id="g3086"> <g ref="g3077" id="g3088" transform="matrix(1,0,0,1,225.857,142.071)"> <g id="g3090"> <path sodipodi:type="arc" style="fill:#ff0000;fill-opacity:1" id="path3092" sodipodi:cx="102.85714" sodipodi:cy="168.07646" sodipodi:rx="42.857143" sodipodi:ry="47.142857" d="m 145.71428,168.07646 c 0,26.03628 -19.18779,47.14286 -42.85714,47.14286 -23.669347,0 -42.857144,-21.10658 -42.857144,-47.14286 0,-26.03628 19.187797,-47.14285 42.857144,-47.14285 23.66935,0 42.85714,21.10657 42.85714,47.14285 z" transform="translate(-48.571429,-100)" /> </g> </g> <g ref="g3072" id="g3094" transform="matrix(1,0,0,1,0,0)"> <g id="g3096"> <rect style="fill:#ff0000;fill-opacity:1" id="rect3099" width="25.714285" height="160" x="171.42537" y="-68.432068" transform="matrix(0.8189798,0.57382236,-0.57382236,0.8189798,0,0)" /> </g> </g> <g ref="rect3098" id="g3101" transform="matrix(1,0,0,1,0,0)"> <rect y="153.79076" x="21.428572" height="61.42857" width="57.142857" id="rect3103" style="fill:#808000;fill-opacity:1" /> </g> </g> </g> </svg>