neyric/wireit

View on GitHub
build/straight-wire/straight-wire-min.js

Summary

Maintainability
A
0 mins
Test Coverage
YUI.add("straight-wire",function(e,t){e.StraightWire=function(t){e.StraightWire.superclass.constructor.apply(this,arguments)},e.StraightWire.NAME="straightwire",e.extend(e.StraightWire,e.WireBase,{_draw:function(){this.clear();var e=this.get("src").getXY(),t=this.get("tgt").getXY();this.moveTo(e[0]+6,e[1]+6),this.lineTo(t[0]+6,t[1]+6),this.end()}}),e.StraightWire.ATTRS=e.merge(e.WireBase.ATTRS,{})},"@VERSION@",{requires:["wire-base"]});