public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function(ctxt, hRatio, vRatio) {
      var wires = this.layer.wires;
      var n = wires.length,i,wire;
      for(i = 0 ; i < n ; i++) {
         wire = wires[i];
         var pos1 = wire.terminal1.getXY(), 
             pos2 = wire.terminal2.getXY();

         // Stroked line
         // TODO:
         ctxt.beginPath();
         ctxt.moveTo(pos1[0]*hRatio,pos1[1]*vRatio);
         ctxt.lineTo(pos2[0]*hRatio,pos2[1]*vRatio);
         ctxt.closePath();
         ctxt.stroke();
      }
      
   }
function(ctxt, hRatio, vRatio) {
      var wires = this.layer.wires;
      var n = wires.length,i,wire;
      for(i = 0 ; i < n ; i++) {
         wire = wires[i];
         var pos1 = wire.terminal1.getXY(), 
             pos2 = wire.terminal2.getXY();

         // Stroked line
         // TODO:
         ctxt.beginPath();
         ctxt.moveTo(pos1[0]*hRatio,pos1[1]*vRatio);
         ctxt.lineTo(pos2[0]*hRatio,pos2[1]*vRatio);
         ctxt.closePath();
         ctxt.stroke();
      }
      
   }
function ( ctxt , hRatio , vRatio ) { var wires = this . layer . wires ; var n = wires . length , i , wire ; for ( i = 0 ; i < n ; i ++ ) { wire = wires [ i ] ; var pos1 = wire . terminal1 . getXY ( ) , pos2 = wire . terminal2 . getXY ( ) ; // Stroked line // TODO: ctxt . beginPath ( ) ; ctxt . moveTo ( pos1 [ 0 ] * hRatio , pos1 [ 1 ] * vRatio ) ; ctxt . lineTo ( pos2 [ 0 ] * hRatio , pos2 [ 1 ] * vRatio ) ; ctxt . closePath ( ) ; ctxt . stroke ( ) ; } }
Subroutine to draw the wires
@method drawWires
Subroutine to draw the wires