text: Ext.data.JsonP.qrenderer_animation_GlobalAnimationMgr({"tagname":"class","name":"qrenderer.animation.GlobalAnimationMgr","autodetected":{},"files":[{"filename":"GlobalAnimationMgr.js","href":"GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr"}],"singleton":true,"author":[{"tagname":"author","name":"pissang(https://github.com/pissang)","email":null}],"docauthor":[{"tagname":"docauthor","name":"大漠穷秋","email":"damoqiongqiu@126.com"}],"members":[{"name":"constructor","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-constructor","meta":{}},{"name":"_startLoop","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-_startLoop","meta":{"private":true}},{"name":"_update","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-_update","meta":{"private":true}},{"name":"addAnimatable","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-addAnimatable","meta":{}},{"name":"clear","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-clear","meta":{}},{"name":"pause","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-pause","meta":{}},{"name":"removeAnimatable","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-removeAnimatable","meta":{}},{"name":"resume","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-resume","meta":{}},{"name":"start","tagname":"method","owner":"qrenderer.animation.GlobalAnimationMgr","id":"method-start","meta":{}}],"alternateClassNames":[],"aliases":{},"id":"class-qrenderer.animation.GlobalAnimationMgr","short_doc":"Animation manager, global singleton, controls all the animation processes. ...","component":false,"superclasses":[],"subclasses":[],"mixedInto":[],"mixins":[],"parentMixins":[],"requires":[],"uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr' target='_blank'>GlobalAnimationMgr.js</a></div></pre><div class='doc-contents'><p>Animation manager, global singleton, controls all the animation processes.\nEach QRenderer instance has a GlobalAnimationMgr instance. GlobalAnimationMgr\nis designed to manage all the elements that are animating.</p>\n\n<p>动画管理器，全局单例，控制和调度所有动画过程。每个 qrenderer 实例中会持有一个\nGlobalAnimationMgr 实例。GlobalAnimationMgr 会管理 qrenderer 实例中的所有\n正在进行动画的元素。</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-constructor' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-constructor' target='_blank' class='view-source'>view source</a></div><strong class='new-keyword'>new</strong><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-constructor' class='name expandable'>qrenderer.animation.GlobalAnimationMgr</a>( <span class='pre'>[options]</span> ) : <a href=\"#!/api/qrenderer.animation.GlobalAnimationMgr\" rel=\"qrenderer.animation.GlobalAnimationMgr\" class=\"docClass\">qrenderer.animation.GlobalAnimationMgr</a><span class=\"signature\"></span></div><div class='description'><div class='short'>GlobalAnimationMgr ...</div><div class='long'><p>GlobalAnimationMgr</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/qrenderer.animation.GlobalAnimationMgr\" rel=\"qrenderer.animation.GlobalAnimationMgr\" class=\"docClass\">qrenderer.animation.GlobalAnimationMgr</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-_startLoop' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-_startLoop' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-_startLoop' class='name expandable'>_startLoop</a>( <span class='pre'></span> )<span class=\"signature\"><span class='private' >private</span></span></div><div class='description'><div class='short'>Execute recursively with requestAnimationFrame. ...</div><div class='long'><p>Execute recursively with requestAnimationFrame.\nThe 60fps is a recommended standard of W3C, the nextFrame function\nhere will be called every 16ms.\nIf the _update() method here can't finish a round of animations in 16ms, there will be significant lags.</p>\n\n<p>这里开始利用 requestAnimationFrame 递归执行，\n按照 W3C 的推荐标准 60fps，这里的 nextFrame 函数大约每隔 16ms 被调用一次，\n如果这里的 _update() 不能在 6ms 的时间内完成一轮动画，就会出现明显的卡顿。\n@see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame</p>\n</div></div></div><div id='method-_update' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-_update' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-_update' class='name expandable'>_update</a>( <span class='pre'></span> )<span class=\"signature\"><span class='private' >private</span></span></div><div class='description'><div class='short'> ...</div><div class='long'>\n</div></div></div><div id='method-addAnimatable' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-addAnimatable' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-addAnimatable' class='name expandable'>addAnimatable</a>( <span class='pre'>animatable</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>animatable</span> : *<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-clear' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-clear' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-clear' class='name expandable'>clear</a>( <span class='pre'></span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>Clear the animations. ...</div><div class='long'><p>Clear the animations.</p>\n\n<p>清除动画。</p>\n</div></div></div><div id='method-pause' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-pause' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-pause' class='name expandable'>pause</a>( <span class='pre'></span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>Pause the animations. ...</div><div class='long'><p>Pause the animations.</p>\n\n<p>暂停动画。</p>\n</div></div></div><div id='method-removeAnimatable' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-removeAnimatable' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-removeAnimatable' class='name expandable'>removeAnimatable</a>( <span class='pre'>animatable</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>animatable</span> : *<div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-resume' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-resume' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-resume' class='name expandable'>resume</a>( <span class='pre'></span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>Resume the animations. ...</div><div class='long'><p>Resume the animations.</p>\n\n<p>恢复动画。</p>\n</div></div></div><div id='method-start' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='qrenderer.animation.GlobalAnimationMgr'>qrenderer.animation.GlobalAnimationMgr</span><br/><a href='source/GlobalAnimationMgr.html#qrenderer-animation-GlobalAnimationMgr-method-start' target='_blank' class='view-source'>view source</a></div><a href='#!/api/qrenderer.animation.GlobalAnimationMgr-method-start' class='name expandable'>start</a>( <span class='pre'></span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>Start animating. ...</div><div class='long'><p>Start animating.</p>\n\n<p>启动动画。</p>\n</div></div></div></div></div></div></div>","meta":{}});