/* 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.tools.Line"]){dojo._hasResource["dojox.drawing.tools.Line"]=true;dojo.provide("dojox.drawing.tools.Line");dojox.drawing.tools.Line=dojox.drawing.util.oo.declare(dojox.drawing.stencil.Line,function(){},{draws:true,showAngle:true,onTransformEnd:function(_1){this._toggleSelected();if(this.getRadius()x1?((x2-x1)/2):((x1-x2)/-2);var dy=y2>y1?((y2-y1)/2):((y1-y2)/-2);x1-=dx;x2-=dx;y1-=dy;y2-=dy;}this.setPoints([{x:x1,y:y1},{x:x2,y:y2}]);this.render();},onUp:function(_4){if(this.created||!this.shape){return;}if(this.getRadius()