-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Move text layer UI to viewer.js... #954
Conversation
…eplaces innerHTML to textContent
@pdfjsbot test |
Processing command test by user notmasteryet. Queue size: 0 Live script output is available (after queueing is done) at: http://184.73.87.52:8989/3197309.txt [bot:processed:3197309] |
ERROR(s) foundATTENTION: There was a snapshot difference: Output:
Bot response time: 29.41 mins |
reference images were not updated for #947 |
The patch looks good, thanks Yury! Should the code for the /cc @arturadib as he is Mr. Text Selection. |
Great factoring work, Yury. However the text layer seems to be rendering all messed up here (you can change to
Yes, I agree Julian, but we seem to be divided about this :) Yury seems to prefer for this to be a viewer feature, like annotations. I actually prefer for both text selection and annotations to be in But that's not urgent, and can be part of perhaps a future effort to revisit what we want to offer with our API. |
Do you think it's worth discussing this during the Thursday call? /cc @wfwalker There might be also a middle way for this: We can place it under |
…tlayout-ui Conflicts: web/viewer.js
@arturadib, the layout issue is fixed. The TextLayerBuilder is about 50 lines and will not get much bigger. I don't think it worth to create separate file for this. Same, I think, will happen with annotations (see |
Git-rotten. We can merge this and decide on where to place annotations + text layer when we revisit our API, hopefully this quarter. EDIT: I still want to play with the text selection here before +1'ing... |
…tlayout-ui Conflicts: src/canvas.js
the master merged... again :) |
Interesting, this seems to fix #924... must be related to the append order. |
As I said, we'll probably have to revisit this for the new API, but it's nice to have the code factored out of |
Move text layer UI to viewer.js...
also fixes adding div with single char and replaces innerHTML to textContent