Had to update how we handled the too many rects break early since it would return an empty array, which when looking at the lengths of the arrays in getOffset made it difficult to know which case needed to be handled (returned empty due to too many rects or returned empty because there wasn't any visible rect). Talked to Wilco and we agreed that when we encountered too many rects we could throw and handle the error case in both checks.
Had to update how we handled the too many rects break early since it would return an empty array, which when looking at the lengths of the arrays in
getOffset
made it difficult to know which case needed to be handled (returned empty due to too many rects or returned empty because there wasn't any visible rect). Talked to Wilco and we agreed that when we encountered too many rects we could throw and handle the error case in both checks.Closes: #4387