//>>built define(["dojo/_base/lang","../util/oo","../manager/_registry","../stencil/Path"],function(c,b,d,e){b=b.declare(e,function(){this._started=!1},{draws:!0,minDist:15,onDown:function(a){this._started=!0;a={x:a.x,y:a.y};this.points=[a];this.lastPoint=a;this.revertRenderHit=this.renderHit;this.closePath=this.renderHit=!1},onDrag:function(a){if(this._started&&!(this.minDist>this.util.distance(a.x,a.y,this.lastPoint.x,this.lastPoint.y))){var b={x:a.x,y:a.y};this.points.push(b);this.render();this.checkClosePoint(this.points[0], a);this.lastPoint=b}},onUp:function(a){if(this._started)if(!this.points||2>this.points.length)this._started=!1,this.points=[];else{var b=this.getBounds();b.w