//>>built
define("dojox/drawing/tools/Arrow","dojo/_base/lang ../util/oo ../manager/_registry ./Line ../annotations/Arrow ../util/positioning".split(" "),function(d,b,e,f,c,g){b=b.declare(f,function(a){this.arrowStart&&(this.begArrow=new c({stencil:this,idx1:0,idx2:1}));this.arrowEnd&&(this.endArrow=new c({stencil:this,idx1:1,idx2:0}));this.points.length&&(this.render(),a.label&&this.setLabel(a.label))},{draws:!0,type:"dojox.drawing.tools.Arrow",baseRender:!1,arrowStart:!1,arrowEnd:!0,labelPosition:function(){var a=
this.data,a=g.label({x:a.x1,y:a.y1},{x:a.x2,y:a.y2});return{x:a.x,y:a.y}},onUp:function(a){if(!this.created&&this.shape){var b=this.points;this.util.distance(b[0].x,b[0].y,b[1].x,b[1].y)<this.minimumSize?this.remove(this.shape,this.hit):(a=this.util.snapAngle(a,this.angleSnap/180),this.setPoints([{x:b[0].x,y:b[0].y},{x:a.x,y:a.y}]),this.renderedOnce=!0,this.onRender(this))}}});d.setObject("dojox.drawing.tools.Arrow",b);b.setup={name:"dojox.drawing.tools.Arrow",tooltip:"Arrow Tool",iconClass:"iconArrow"};
e.register(b.setup,"tool");return b});