allenai / pdf-component-library

51 stars 5 forks source link

29029 Text Highlight Example #22

Closed carolinepaulic closed 3 years ago

carolinepaulic commented 3 years ago

Description

Ticket: https://github.com/allenai/scholar/issues/29029

The goal of this ticket was to implement a hardcoded example of "text highlighting" using our BoundingBox library component. In this case, text highlighting refers to making text appear as if it has been highlighted with a marker (as opposed to text selection with the cursor).

I made the following changes to our library components:

I made the following changes to our example Hello World app:

Reviewer Instructions

Reader is getting pretty messy with these hard coded examples. I added TODOs to functions that I would like to remove once we nail down a working backend and UI design.

Testing Plan

Demo

image