',this.canvas.insertAdjacentHTML("beforeEnd",s),this.group=L(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,i,s,r){for(var n,a,h,o,l=[],g=0,p=e.length;g '},_drawCircle:function(t,e,i,s,r,n,a){return''},_drawPieSlice:function(t,e,i,s,r,n,a,h){var o,l,g,p,u,c,d;if(r===n)return"";if(n-r==2*z.PI&&(r=0,n=2*z.PI),l=e+z.round(z.cos(r)*s),g=i+z.round(z.sin(r)*s),p=e+z.round(z.cos(n)*s),u=i+z.round(z.sin(n)*s),l===p&&g===u){if(n-r ')},_drawRect:function(t,e,i,s,r,n,a){return this._drawShape(t,[[e,i],[e,i+r],[e+s,i+r],[e+s,i],[e,i]],n,a)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i=L("#jqsshape"+t),s=this["_draw"+e.type].apply(this,e.args);i[0].outerHTML=s},replaceWithShapes:function(t,e){for(var i=L("#jqsshape"+t[0]),s="",r=e.length,n=0;n