/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.drawing.annotations.Angle"]){dojo._hasResource["dojox.drawing.annotations.Angle"]=true;dojo.provide("dojox.drawing.annotations.Angle");dojox.drawing.annotations.Angle=dojox.drawing.util.oo.declare(function(_1){this.stencil=_1.stencil;this.util=_1.stencil.util;this.mouse=_1.stencil.mouse;this.stencil.connectMult([["onDrag",this,"showAngle"],["onUp",this,"hideAngle"],["onTransformBegin",this,"showAngle"],["onTransform",this,"showAngle"],["onTransformEnd",this,"hideAngle"]]);},{type:"dojox.drawing.tools.custom",angle:0,showAngle:function(){if(!this.stencil.selected&&this.stencil.created){return;}if(this.stencil.getRadius()0.9){dojo.fadeOut({node:this._angleNode,duration:500,onEnd:function(_3){dojo.destroy(_3);}}).play();this._angleNode=null;}}});}