public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function() {
   
      var layerEl = this.container && this.container.layer ? this.container.layer.el : document.body;

      var obj = this.el;
		var curleft = 0, curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
				obj = obj.offsetParent;
			} while ( !!obj && obj != layerEl);
		}

		return [curleft+15,curtop+15];
   }
function() {
   
      var layerEl = this.container && this.container.layer ? this.container.layer.el : document.body;

      var obj = this.el;
		var curleft = 0, curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
				obj = obj.offsetParent;
			} while ( !!obj && obj != layerEl);
		}

		return [curleft+15,curtop+15];
   }
function ( ) { var layerEl = this . container && this . container . layer ? this . container . layer . el : document . body ; var obj = this . el ; var curleft = 0 , curtop = 0 ; if ( obj . offsetParent ) { do { curleft += obj . offsetLeft ; curtop += obj . offsetTop ; obj = obj . offsetParent ; } while ( ! ! obj && obj != layerEl ) ; } return [ curleft + 15 , curtop + 15 ] ; }
This function is a temporary test. I added the border width while traversing the DOM and
I calculated the offset to center the wire in the terminal just after its creation
@method getXY
This function is a temporary test . I added the border width while traversing the DOM and I calculated the offset to center the wire in the terminal just after its creation