This covers the demo components subtask of https://github.com/allenai/scholar/issues/28339
The various demos in the Reader app were getting messy so I moved each demo into its own component.
Changes in this PR:
Created HighlightOverlayDemo component for the HighlightOverlay/mask demo
Created TextHighlightDemo component for the highlighted text demo
Created ScrollToDemo for the scroll to figure 1 demo
Created CitationsDemo for the citations popovers
Bug fix: updated highlight overlay and text highlight demos to show bounding boxes on specific pages rather than displaying all boxes on all pages
Bug fix: citation bounding boxes can now be displayed at the same time as the text highlight and highlight overlay demos (previously it was either/or)
Bug fix: citation bounding box respects page rotation (border doesn't rotate, it actually moves from border-bottom to border-left, border-right, or border-top to appear that way)
Testing Plan
Manually tested demos for highlight overlay, text highlight, scroll to figure, and citations
Description
This covers the demo components subtask of https://github.com/allenai/scholar/issues/28339 The various demos in the
Reader
app were getting messy so I moved each demo into its own component.Changes in this PR:
HighlightOverlayDemo
component for the HighlightOverlay/mask demoTextHighlightDemo
component for the highlighted text demoScrollToDemo
for the scroll to figure 1 demoCitationsDemo
for the citations popoversborder-bottom
toborder-left
,border-right
, orborder-top
to appear that way)Testing Plan