Skip to content
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

feat(highlights): Render highlight annotations #550

Merged
merged 5 commits into from
Aug 7, 2020

Conversation

ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Aug 3, 2020

Screenshot:
Screen Shot 2020-08-06 at 12 17 42 AM

TODO:

  • unit tests
  • cross browser testing

src/highlight/HighlightAnnotation.tsx Outdated Show resolved Hide resolved
src/highlight/HighlightAnnotation.tsx Outdated Show resolved Hide resolved
src/highlight/HighlightAnnotation.tsx Outdated Show resolved Hide resolved
src/highlight/HighlightList.tsx Outdated Show resolved Hide resolved
@ChenCodes
Copy link
Contributor

Also in the screenshot it looks like the highlighted portion is little bit offset (it looks like it's higher than it should be). Will we eventually address this?

@ConradJChan
Copy link
Contributor Author

@ChenCodes yeah, unfortunately, this is a longstanding issue with PDFJS: mozilla/pdf.js#9316

@ConradJChan ConradJChan marked this pull request as ready for review August 5, 2020 22:37
@ConradJChan ConradJChan requested a review from a team as a code owner August 5, 2020 22:37
@mxiao6
Copy link
Contributor

mxiao6 commented Aug 7, 2020

Do we need to add FF guard for the new layers?

src/highlight/HighlightCanvas.tsx Outdated Show resolved Hide resolved
src/highlight/HighlightAnnotation.tsx Show resolved Hide resolved
src/highlight/__tests__/HighlightAnnotation-test.tsx Outdated Show resolved Hide resolved
@ConradJChan
Copy link
Contributor Author

@mxiao6 I think FF isn't needed because creation is disabled so there should be no impact. Let me know if you disagree

@ConradJChan ConradJChan merged commit 3586412 into box:master Aug 7, 2020
@ConradJChan ConradJChan deleted the render-highlights branch August 7, 2020 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants