=n.endTime&&!n.hasEnded&&(n.hasEnded=!0,n.onEnd&&n.onEnd()),1===c&&(this.anims.splice(e,1),e--)}}}this.canvas.map(function(t){return t.draw(),t}),this.time=r.now()},t}();t.exports=a},function(t,e,n){function i(t){for(var e=[],n=0,i=t.length;nl.x?i.x:l.x,u=l.y+p/2):"xy"===r&&(n.isPolar?(o=n.center.x,u=n.center.y):(o=(l.x+h.x)/2,u=(l.y+h.y)/2));var d=a.getScaledMatrix(g,[o,u],r);g.isClip=!0,g.endState={matrix:d},g.set("canvas",t.get("canvas")),t.attr("clip",g);a.doAnimation(g,g.endState,e,function(){t.attr("clip",null),g.remove(!0)})}function r(t,e,n){for(var i,r,o,s=t.get("children"),u=0,c=s.length;u