-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Provide mapping between all-paragraph and visible-paragraph index systems #599
Comments
I think there may be a bug in My real question is regarding the second if statement and the point of the method in general. Based on the name and short description, I assumed that this method returned the visible index given an index related to the entire area. If that's the case, I don't understand why it should matter if the index is within the size of the visible paragraphs. I'd imagine you'd want a check for whether or not it is visible, but I don't see why the other check is necessary. If I'm actually just misunderstand the point of this method, is there a way of getting the visible index from the general index? |
Yup, that's a typo.
Looking at the code again, that does look like a bug. I think it's supposed to check whether the |
@grenche I made a new snapshot release with the fix. |
@JordanMartinez Great! Thank you. How can I use it? |
@grenche see the Readme's instructions on the snapshot release. |
Given an index in
area.getParagraphs()
, one should be able to map it to its respectivearea.getVisibleParagraphs()
index. Likewise, the index of the latter should be mappable to the index of the former. Thus, we should add an API likeThe text was updated successfully, but these errors were encountered: