Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from unchartedsoftware/bugfix/DCE-1826-overlapp…
Browse files Browse the repository at this point in the history
…ing-groups-fix

[DCE-1826] Fix typos!
  • Loading branch information
donmarks authored Jan 21, 2020
2 parents 8fcc0d5 + c88deb0 commit ba433b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cueUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ module.exports = function (params, cy, api) {
let currentZDepth = group.zDepth(); // zDepth is depth of element on graph e.g. child nodes have > z depth than their parents
let currentZIndex = group.style('z-index'); // z-index is order of elements at same z depth
// if we find groups with a higher zDepth/zIndex combo, keep track of those
if (currentZDepth > highestZDepth || (currentZDepth === highestZDepth && currentZIndex > highestZIndex)) {
if (currentZDepth > highestZDepth || (currentZDepth === highestZDepth && currentZIndex > highestZIndexWithinZDepth)) {
highestZDepth = currentZDepth;
highestZIndex = currentZIndex;
highestZIndexWithinZDepth = currentZIndex;
highestZDepthGroups = [group];
} else if (currentZDepth === highestZDepth && currentZIndex === highestZIndex) {
} else if (currentZDepth === highestZDepth && currentZIndex === highestZIndexWithinZDepth) {
highestZDepthGroups.push(group);
}
});
Expand Down

0 comments on commit ba433b0

Please sign in to comment.