Skip to content

Commit

Permalink
zOrder instead of zIndex for edges
Browse files Browse the repository at this point in the history
  • Loading branch information
ivp08001 committed Jan 26, 2016
1 parent 3559188 commit 7bf6795
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions VQI_PathwayEditorGUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,14 +475,18 @@ var VQI_PathwayEditorGUI = function (parent) {
}

if (typeof (cy.$("node")[i].data("zIndex")) != "undefined") {
cy.$("node")[i].style("zIndex", cy.$("node")[i].data("zIndex"));
cy.$("node")[i].style("z-index", cy.$("node")[i].data("zIndex"));
}
}

for (var i = 0; i < cy.$("edge").length; i++) {
if (typeof (cy.$("edge")[i].data("curveStyle")) != "undefined") {
cy.$("edge")[i].style("curve-style", cy.$("edge")[i].data("curveStyle"));
}

if (typeof (cy.$("edge")[i].data("zOrder")) != "undefined") {
cy.$("edge")[i].style("z-index", cy.$("edge")[i].data("zOrder"));
}

if (typeof (cy.$("edge")[i].data("segmentDistances")) != "undefined") {
cy.$("edge")[i].style("segment-distances", cy.$("edge")[i].data("segmentDistances"));
Expand Down Expand Up @@ -1377,7 +1381,7 @@ var VQI_PathwayEditorGUI = function (parent) {
selectedForEditNodes.style("z-index", 0);
selectedForEditNodes.data("zIndex", 0);
selectedForEditEdges.style("z-index", 0);
selectedForEditEdges.data("zIndex", 0);
selectedForEditEdges.data("zOrder", 0);
saveState();
}

Expand All @@ -1386,7 +1390,7 @@ var VQI_PathwayEditorGUI = function (parent) {
selectedForEditNodes.style("z-index", highestZOrder);
selectedForEditNodes.data("zIndex", highestZOrder);
selectedForEditEdges.style("z-index", highestZOrder);
selectedForEditEdges.data("zIndex", highestZOrder);
selectedForEditEdges.data("zOrder", highestZOrder);
saveState();
}

Expand Down

0 comments on commit 7bf6795

Please sign in to comment.