-var Drag = {\r
-\r
- obj : null,\r
-\r
- init : function(o, mouseup_cb, oRoot, minX, maxX, minY, maxY, bSwapHorzRef, bSwapVertRef, fXMapper, fYMapper)\r
- {\r
- o.onmousedown = Drag.start;\r
- o.mouseup_cb = mouseup_cb;\r
- o.connect = function(conn)\r
- {\r
- this.parentNode.connected[this.parentNode.connected.length] = conn;\r
- }\r
-\r
- o.connected = new Array();\r
- /* alert("agnulla"+o.style.left); */\r
-\r
- o.hmode = bSwapHorzRef ? false : true ;\r
- o.vmode = bSwapVertRef ? false : true ;\r
-\r
- o.root = oRoot && oRoot != null ? oRoot : o ;\r
-\r
- if (o.hmode && isNaN(parseInt(o.root.style.left ))) {\r
- var res = parseInt(getStyle(o, "left", "left"));\r
- if (isNaN(res)) {\r
- o.root.style.left = "0px";\r
- }\r
- else {\r
- o.root.style.left = res;\r
- }\r
- }\r
- if (o.vmode && isNaN(parseInt(o.root.style.top ))) {\r
- var res = parseInt(getStyle(o, "top", "top"));\r
+function Drag(mouseup_cb, minX, maxX, minY, maxY, bSwapHorzRef, bSwapVertRef, fXMapper, fYMapper)\r
+{\r
+ console.log("xx"+this);\r
+ this.onmousedown = Drag.prototype.start;\r
+ this.mouseup_cb = mouseup_cb;\r
+ this.connect = function(conn)\r
+ {\r
+ this.parentNode.connected[this.parentNode.connected.length] = conn;\r
+ }\r
+ \r
+ this.connected = new Array();\r
+ /* alert("agnulla"+this.style.left); */\r
+ \r
+ this.hmode = bSwapHorzRef ? false : true ;\r
+ this.vmode = bSwapVertRef ? false : true ;\r
+ \r
+ this.root = this.xynt_dom_el && this.xynt_dom_el != null ? this.xynt_dom_el : this ;\r
+ \r
+ if (this.hmode && isNaN(parseInt(this.root.style.left ))) {\r
+ var res = parseInt(getStyle(o, "left", "left"));\r