assets/scripts/jsplumb/2.0/jsplumb.js
function (evt, el, zoom) {
			var box = typeof el.getBoundingClientRect !== "undefined" ? el.getBoundingClientRect() : { left: 0, top: 0, width: 0, height: 0 },
				body = document.body,
				docElem = document.documentElement,
				scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop,
				scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft,
				clientTop = docElem.clientTop || body.clientTop || 0,
				clientLeft = docElem.clientLeft || body.clientLeft || 0,
				pst = 0,
				psl = 0,
				top = box.top + scrollTop - clientTop + (pst * zoom),
				left = box.left + scrollLeft - clientLeft + (psl * zoom),
				cl = jsPlumb.pageLocation(evt),
				w = box.width || (el.offsetWidth * zoom),
				h = box.height || (el.offsetHeight * zoom),
				x = (cl[0] - left) / w,
				y = (cl[1] - top) / h;

			return [ x, y ];
		}
function (evt, el, zoom) {
			var box = typeof el.getBoundingClientRect !== "undefined" ? el.getBoundingClientRect() : { left: 0, top: 0, width: 0, height: 0 },
				body = document.body,
				docElem = document.documentElement,
				scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop,
				scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft,
				clientTop = docElem.clientTop || body.clientTop || 0,
				clientLeft = docElem.clientLeft || body.clientLeft || 0,
				pst = 0,
				psl = 0,
				top = box.top + scrollTop - clientTop + (pst * zoom),
				left = box.left + scrollLeft - clientLeft + (psl * zoom),
				cl = jsPlumb.pageLocation(evt),
				w = box.width || (el.offsetWidth * zoom),
				h = box.height || (el.offsetHeight * zoom),
				x = (cl[0] - left) / w,
				y = (cl[1] - top) / h;

			return [ x, y ];
		}
function ( evt , el , zoom ) { var box = typeof el . getBoundingClientRect !== "undefined" ? el . getBoundingClientRect ( ) : { left : 0 , top : 0 , width : 0 , height : 0 } , body = document . body , docElem = document . documentElement , scrollTop = window . pageYOffset || docElem . scrollTop || body . scrollTop , scrollLeft = window . pageXOffset || docElem . scrollLeft || body . scrollLeft , clientTop = docElem . clientTop || body . clientTop || 0 , clientLeft = docElem . clientLeft || body . clientLeft || 0 , pst = 0 , psl = 0 , top = box . top + scrollTop - clientTop + ( pst * zoom ) , left = box . left + scrollLeft - clientLeft + ( psl * zoom ) , cl = jsPlumb . pageLocation ( evt ) , w = box . width || ( el . offsetWidth * zoom ) , h = box . height || ( el . offsetHeight * zoom ) , x = ( cl [ 0 ] - left ) / w , y = ( cl [ 1 ] - top ) / h ; return [ x , y ] ; }
return x+y proportion of the given element's size corresponding to the location of the given event.
return x + y proportion of the given element s size corresponding to the location of the given event .