summaryrefslogtreecommitdiffstats
path: root/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/dragMoveListener.js
diff options
context:
space:
mode:
authorChristopher Lott (cl778h) <clott@research.att.com>2017-05-09 14:24:20 -0400
committerChristopher Lott (cl778h) <clott@research.att.com>2017-05-09 14:44:09 -0400
commite2aefda183de4f1c1256d97f7ce09f8bee5477db (patch)
tree4b0eaf3f153df90591711daf081e63a8b20ace74 /dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/dragMoveListener.js
parent472635713b7471b300a988db7e907bab0119eaee (diff)
[ONAP-rebase] Rebase as 1.1.0-SNAPSHOT
Consolidate into a single maven project; no more separate model and client jars. Change-Id: Ibbba982250b74c0dfd09ee1c65c0fb6c158dd632 Signed-off-by: Christopher Lott <cl778h@att.com> Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/dragMoveListener.js')
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/dragMoveListener.js55
1 files changed, 0 insertions, 55 deletions
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/dragMoveListener.js b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/dragMoveListener.js
deleted file mode 100644
index 138550c..0000000
--- a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/dragMoveListener.js
+++ /dev/null
@@ -1,55 +0,0 @@
-
-//Called when an node is moved, translates the arrow and updates attributes
-
-x = 0, y = 0; //Define coordinates
-
-function dragMoveListener (event) {
- var target = event.target,
- uuid = target.id,
- // keep the dragged position in the data-x/data-y attributes
- x = (parseFloat(target.getAttribute('data_x')) || 0) + event.dx,
- y = (parseFloat(target.getAttribute('data_y')) || 0) + event.dy;
- // translate the element
- target.style.webkitTransform =
- target.style.transform =
- 'translate(' + x + 'px, ' + y + 'px)';
-
-
- // update the position attributes
- target.setAttribute('data_x', x);
- target.setAttribute('data_y', y);
-
- if ($("#"+uuid).hasClass("drag-1")){
- storeXY(nodeArr,uuid);
- }
- if (y<30) {
- moveSelection(event.dx,event.dy,event.target.id);
- moveDependants(event.dx,event.dy,event.target.id);
- }
- else {
- for (var i=0; i<arrowArr.length; i++){
- if (arrowArr[i][8] == target.id){
- arrowArr[i][8] = null;
- }
- if (arrowArr[i][9] == target.id){
- arrowArr[i][9] = null;
- }
- determineLRNode(arrowArr[i][1],"arrow");
- }
- }
-
- if (isOverlapped(uuid) == true){
- document.getElementById(uuid).style.transition = "background .5s ease";
- document.getElementById(uuid).style.background = "rgba(255,255,0,.40)"; //yellow
- //shiftRight(event.target); Include for real-time shifting
- }
- else {
- document.getElementById(uuid).style.background = "#29e"; //remove yellow
- }
- while (x>$("#grid").width() - $("#sideBar").width()){
- addWidth();
- }
-}
-
-// this is used in resizing
-window.dragMoveListener = dragMoveListener; \ No newline at end of file