Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ducku committed Jan 14, 2024
1 parent 83c2fd7 commit e3d2ac4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/tubemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ function placeReads() {
reads.forEach((read, idx) => {
read.path.forEach((element, pathIdx) => {
if (!element.hasOwnProperty("y")) {
// previous y value from pathIdx - 1 might not exist yet if that segment is also without node
// use previous y value from last segment with node instead
let previousValidY = null;
let lastIndex = pathIdx - 1;
while (!previousValidY && lastIndex >= 0) {
Expand Down

0 comments on commit e3d2ac4

Please sign in to comment.